/* ===== Variables ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f5;
    --bg-card: #ffffff;
    --bg-card-hover: #fafaf8;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-muted: #999999;
    --accent: #c49b6c;
    --accent-hover: #b08a5c;
    --accent-light: rgba(196, 155, 108, 0.08);
    --border: #ebebeb;
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.25s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

/* ===== Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    min-height: 100%;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.75;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: 0.02em;
}

.brand-icon {
    font-size: 1.3rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem !important;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent) !important;
}

.dropdown-menu {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0;
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 0.45rem 1.2rem;
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.dropdown-divider {
    border-color: var(--border);
    margin: 0.25rem 0;
}

.navbar-toggler {
    border-color: var(--border);
}

/* ===== Hero ===== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 0.4rem;
}

.hero-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 0.08em;
}

.btn-hero {
    display: inline-block;
    padding: 0.7rem 2.2rem;
    background: var(--text-primary);
    border: none;
    color: #fff;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all var(--transition);
}

.btn-hero:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== Featured Carousel ===== */
.featured-section {
    background: var(--bg-primary);
}

.featured-carousel {
    position: relative;
}

.featured-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.featured-card-img {
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.featured-card-img img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-card-img img {
    transform: scale(1.03);
}

.featured-card-info {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.featured-card-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.featured-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.carousel-control-prev,
.carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    opacity: 1;
    transition: all var(--transition);
}

.carousel-control-prev {
    left: -22px;
}

.carousel-control-next {
    right: -22px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.carousel-arrow {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
}

.carousel-control-prev:hover .carousel-arrow,
.carousel-control-next:hover .carousel-arrow {
    color: #fff;
}

@media (max-width: 768px) {
    .carousel-control-prev {
        left: -10px;
    }

    .carousel-control-next {
        right: -10px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 36px;
        height: 36px;
    }
}

/* ===== Sections ===== */
.main-content {
    padding-top: 0;
}

.section-block {
    padding: 4.5rem 0;
}

.section-dark {
    background: var(--bg-primary);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.section-title::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.6rem;
}

.section-title.mb-0::after {
    margin-top: 0.4rem;
}

.btn-more {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 400;
    transition: all var(--transition);
}

.btn-more:hover {
    color: var(--accent);
}

/* ===== Category Cards ===== */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    gap: 0.6rem;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 2rem;
}

.category-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.88rem;
}

/* ===== Article Cards ===== */
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.article-card:hover .article-card-title {
    color: var(--accent);
}

.article-card-img {
    position: relative;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.article-card-img img {
    display: block;
    width: 100%;
    height: auto;
}

.article-card-category {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-hover);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
}

.article-card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color var(--transition);
    line-height: 1.5;
}

.article-card-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.article-card-excerpt {
    font-size: 0.83rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.article-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ===== Page Header ===== */
.page-header {
    padding: 7rem 0 2.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

/* ===== Article Cover ===== */
.article-cover-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ===== Table of Contents ===== */
.toc-card {
    background: #eef5fb;
    border: 1px solid #c8ddf0;
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
}

.toc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c5d8f;
    text-align: center;
    margin-bottom: 1rem;
}

.toc-list {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 0;
}

.toc-list li {
    padding: 0.3rem 0;
}

.toc-list a {
    color: #2c5d8f;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.toc-list a:hover {
    color: var(--accent);
}

/* ===== Section Heading (unified) ===== */
.section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.section-heading:first-child,
.article-body .section-heading:first-of-type {
    margin-top: 0;
}

/* ===== Info Card ===== */
.info-card,
.tips-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.rating-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.info-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-hover);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    width: 80px;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
    white-space: nowrap;
}

.info-table td {
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.info-table tr + tr {
    border-top: 1px solid var(--border);
}

/* ===== Rating Card ===== */
.rating-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

.rating-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.35);
    transform: scale(1.2);
    z-index: 0;
}

.rating-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rating-card-inner {
    position: relative;
    z-index: 1;
    padding: 2rem 2.2rem;
}

.rating-card-heading {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.rating-suitable {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.rating-suitable-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border: 1px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.rating-suitable-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-bar-label {
    width: 72px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.rating-bar-track {
    flex: 1;
    height: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.rating-bar-fill {
    height: 100%;
    background: #1e3a6e;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.rating-bar-value {
    width: 36px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

.rating-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.6rem;
    padding-left: 88px;
    padding-right: 52px;
}

.rating-axis span {
    font-size: 0.82rem;
    color: inherit;
    font-weight: 500;
}

.rating-footer {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

/* ===== Rating Themes ===== */

/* 1. dark-blue (default) — 深藍：模糊封面背景 + 深藍色長條 */
.rating-theme-dark-blue .rating-bar-fill { background: #1e3a6e; }
.rating-theme-dark-blue .rating-card-bg { filter: blur(20px) brightness(0.35); }

/* 2. warm-sunset — 暖橘：琥珀色漸層長條，溫暖黃昏感 */
.rating-theme-warm-sunset .rating-card-bg { filter: blur(20px) brightness(0.3) saturate(1.5); }
.rating-theme-warm-sunset .rating-bar-fill { background: linear-gradient(90deg, #e67e22, #f39c12); }
.rating-theme-warm-sunset .rating-suitable-badge { background: rgba(230,126,34,0.3); border-color: rgba(243,156,18,0.4); }
.rating-theme-warm-sunset .rating-card-heading { border-bottom-color: rgba(243,156,18,0.3); }

/* 3. forest-green — 森林綠：自然清新風格 */
.rating-theme-forest-green .rating-card-bg { filter: blur(20px) brightness(0.3) hue-rotate(60deg); }
.rating-theme-forest-green .rating-bar-fill { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.rating-theme-forest-green .rating-suitable-badge { background: rgba(39,174,96,0.3); border-color: rgba(46,204,113,0.4); }
.rating-theme-forest-green .rating-card-heading { border-bottom-color: rgba(46,204,113,0.3); }

/* 4. rose-pink — 玫瑰粉：浪漫柔和風格 */
.rating-theme-rose-pink .rating-card-bg { filter: blur(20px) brightness(0.3) hue-rotate(-30deg) saturate(1.5); }
.rating-theme-rose-pink .rating-bar-fill { background: linear-gradient(90deg, #e84393, #fd79a8); }
.rating-theme-rose-pink .rating-suitable-badge { background: rgba(232,67,147,0.3); border-color: rgba(253,121,168,0.4); }
.rating-theme-rose-pink .rating-card-heading { border-bottom-color: rgba(253,121,168,0.3); }

/* 5. violet-purple — 神秘紫：深邃神秘風格 */
.rating-theme-violet-purple .rating-card-bg { filter: blur(20px) brightness(0.25) hue-rotate(200deg) saturate(2); }
.rating-theme-violet-purple .rating-bar-fill { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }
.rating-theme-violet-purple .rating-suitable-badge { background: rgba(108,92,231,0.3); border-color: rgba(162,155,254,0.4); }
.rating-theme-violet-purple .rating-card-heading { border-bottom-color: rgba(162,155,254,0.3); }

/* 6. ocean-teal — 海洋藍綠：清涼海洋風 */
.rating-theme-ocean-teal .rating-card-bg { filter: blur(20px) brightness(0.3) hue-rotate(140deg) saturate(1.3); }
.rating-theme-ocean-teal .rating-bar-fill { background: linear-gradient(90deg, #00b894, #00cec9); }
.rating-theme-ocean-teal .rating-suitable-badge { background: rgba(0,184,148,0.3); border-color: rgba(0,206,201,0.4); }
.rating-theme-ocean-teal .rating-card-heading { border-bottom-color: rgba(0,206,201,0.3); }

/* 7. crimson-red — 中式紅：東方傳統風格 */
.rating-theme-crimson-red .rating-card-bg { filter: blur(20px) brightness(0.25) saturate(1.5); }
.rating-theme-crimson-red .rating-bar-fill { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.rating-theme-crimson-red .rating-suitable-badge { background: rgba(192,57,43,0.3); border-color: rgba(231,76,60,0.4); }
.rating-theme-crimson-red .rating-card-heading { border-bottom-color: rgba(231,76,60,0.3); }

/* 8. gold-luxury — 金色奢華：高級質感風格 */
.rating-theme-gold-luxury .rating-card-bg { filter: blur(20px) brightness(0.2) sepia(0.5); }
.rating-theme-gold-luxury .rating-bar-fill { background: linear-gradient(90deg, #b8860b, #daa520); }
.rating-theme-gold-luxury .rating-bar-track { background: rgba(255,255,255,0.06); border-color: rgba(218,165,32,0.2); }
.rating-theme-gold-luxury .rating-suitable-badge { background: rgba(184,134,11,0.3); border-color: rgba(218,165,32,0.4); }
.rating-theme-gold-luxury .rating-card-heading { border-bottom-color: rgba(218,165,32,0.3); }

/* ===== Tips ===== */
.tips-list {
    padding-left: 1.2rem;
    margin: 0;
}

.tips-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    line-height: 1.6;
}

/* ===== Article Gallery ===== */
.article-gallery-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* ===== IG Embed ===== */
.ig-embed-wrap {
    display: flex;
    justify-content: center;
}

.ig-embed-wrap blockquote {
    margin: 0 auto !important;
}

/* ===== Article Detail ===== */
.article-header {
    text-align: center;
}

.article-header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-detail-category {
    background: var(--accent-light);
    color: var(--accent-hover);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-header-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.4rem;
}

.article-detail .article-body {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-primary);
}

.article-detail .article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.article-detail .article-body h3:first-child {
    margin-top: 0;
}

.article-detail .article-body p {
    margin-bottom: 1.5rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.article-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.article-nav {
    text-align: center;
}

/* ===== About Page ===== */
.about-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-content h2,
.about-content h3 {
    color: var(--text-primary);
}

.about-avatar-icon {
    font-size: 4rem;
    display: inline-block;
}

.about-type-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
    height: 100%;
}

.about-type-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.about-type-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.4rem;
}

.about-type-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.about-type-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== About Preview (Home) ===== */
.about-preview {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
}

.about-preview p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-preview-icon {
    font-size: 5rem;
    opacity: 0.85;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
}

.site-footer h5 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-divider {
    border-color: var(--border);
    margin: 1.5rem 0;
}

.text-muted-light {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
}

/* ===== Pagination ===== */
.pagination .page-item .page-link {
    background: var(--bg-primary);
    border-color: var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    margin: 0 0.15rem;
    font-size: 0.88rem;
    transition: all var(--transition);
}

.pagination .page-item .page-link:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .page-item.active .page-link {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #fff;
}

/* ===== Buttons ===== */
.btn-outline-light {
    color: var(--text-primary);
    border-color: var(--border);
    background: transparent;
    transition: all var(--transition);
}

.btn-outline-light:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-section {
        min-height: 65vh;
    }

    .section-block {
        padding: 3rem 0;
    }

    .page-header {
        padding: 5.5rem 0 1.8rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .about-preview {
        padding: 1.8rem;
    }

    .about-preview-icon {
        font-size: 3.5rem;
        margin-top: 1.5rem;
    }

    .article-card-img img {
        width: 100%;
        height: auto;
    }
}

/* ===== Collection (Table View) ===== */
.collection-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.collection-nav-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.collection-nav-link:hover {
    background: var(--accent);
    color: #fff;
}

.collection-region-title {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0.6rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    color: var(--text-primary);
}

/* Desktop table */
.collection-table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.collection-table thead th {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.6rem 0.75rem;
    white-space: nowrap;
    font-size: 0.85rem;
}

.collection-table tbody td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.collection-table tbody tr:hover {
    background: var(--accent-light);
}

.col-num { width: 60px; }
.col-studio { white-space: nowrap; }
.col-rating { width: 80px; text-align: center; }
.col-link { width: 70px; text-align: center; }

/* Shared elements */
.collection-num {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.85rem;
}

.collection-title-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.collection-title-link:hover {
    color: var(--accent);
}

.collection-closed td { opacity: 0.55; }

.collection-closed-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #c0392b;
    margin-left: 0.3rem;
}

.collection-score {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-outline-accent {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff;
}

/* RWD: progressive column hiding (priority: 編號 > 主題 > 工作室 > 官方人數 > 類型) */
/* ≤992px: hide 類型 */
@media (max-width: 992px) {
    .col-hide-lg { display: none; }
}

/* ≤768px: also hide 官方人數 */
@media (max-width: 768px) {
    .col-hide-md { display: none; }

    .collection-table { font-size: 0.85rem; }
    .collection-table thead th,
    .collection-table tbody td { padding: 0.5rem 0.5rem; }
    .col-num { width: 48px; }
    .col-link { width: 56px; }

    .collection-nav-link {
        font-size: 0.85rem;
        padding: 0.35rem 0.75rem;
    }

    .collection-region-title {
        font-size: 1.15rem;
    }
}

/* ≤480px: also hide 工作室 */
@media (max-width: 480px) {
    .col-hide-sm { display: none; }

    .collection-table { font-size: 0.8rem; }
    .collection-table thead th,
    .collection-table tbody td { padding: 0.4rem 0.35rem; }
    .col-num { width: 40px; }
    .col-link { width: 48px; }
    .btn-outline-accent { font-size: 0.75rem; padding: 0.2rem 0.45rem; }
}

/* ===== Selection ===== */
::selection {
    background: var(--accent);
    color: #fff;
}
