/* ========== RESET & VARIABLES ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dark: #8a6d2b;
    --jade: #2d7a5f;
    --jade-light: #4aaa83;
    --deep-green: #0a1f14;
    --forest: #132e1f;
    --mist: #d4e8dc;
    --cream: #f5f0e1;
    --bronze: #a0764a;
    --ink: #1a1a12;
    --red-accent: #b83a2a;
    --sky: #4a90d9;
    --sky-light: #7ab3ed;
    --bg-card: rgba(20, 40, 80, 0.55);
    --bg-callout: rgba(201, 168, 76, 0.10);
    --bg-fact: rgba(183, 58, 42, 0.10);
    --bg-caution: rgba(180, 130, 70, 0.10);
    --bg-info: rgba(45, 122, 95, 0.10);
    --border-subtle: rgba(212, 232, 220, 0.15);
    --border-gold: rgba(201, 168, 76, 0.3);
    --font-display: 'Noto Serif SC', serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --text-primary: #ffffff;
    --text-secondary: #e8f0ec;
    --text-dim: rgba(212, 232, 220, 0.7);
    --amber: #a0764a;
    --slate: #8a8a9a;
    --bg-dark: #0a1f14;
    --red-soft: #a04848;
    --jade-dim: rgba(45, 122, 95, 0.3);
}

body {
    background: var(--deep-green);
    color: var(--cream);
    font-family: var(--font-body);
    --text-primary: #ffffff;
    --text-secondary: #e8f0ec;
    --text-dim: rgba(212, 232, 220, 0.7);
    --amber: #a0764a;
    --slate: #8a8a9a;
    --bg-dark: #0a1f14;
    --red-soft: #a04848;
    --jade-dim: rgba(45, 122, 95, 0.3);
    font-size: 1.25rem;
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background: url('/bg.webp') center/cover no-repeat;
    filter: brightness(0.75) saturate(0.8);
    pointer-events: none;
}
.article-wrapper, .mobile-nav, footer, .hub-hero, .hub-section { position: relative; z-index: 1; }

/* ========== NAV ========== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 40, 80, 0.65);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 144, 217, 0.25);
    padding: 1rem 2rem;
}
.nav-inner {
    max-width: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--sky-light);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--mist);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.6rem;
    cursor: pointer;
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--deep-green);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: var(--cream);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.3rem;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

/* ========== ARTICLE LAYOUT ========== */
.article-wrapper {
    background: rgba(10, 20, 40, 0.85);
    border-radius: 12px;
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 1.8rem 4rem;
}
.breadcrumb {
    font-size: 0.88rem;
    color: rgba(212, 232, 220, 0.5);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(212, 232, 220, 0.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ========== HERO ========== */
.hero-character {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0 1rem;
}
.hero-character .big-char {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.hero-character .char-label {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: rgba(212, 232, 220, 0.5);
    letter-spacing: 0.1em;
}
.article-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--cream);
    line-height: 1.25;
    margin-bottom: 0.8rem;
    text-align: center;
}
.article-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--mist);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* ========== BODY TEXT ========== */
.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-subtle);
}
.article-body h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--cream);
    margin: 1.8rem 0 0.8rem;
}
.article-body p {
    margin-bottom: 1.2rem;
    color: var(--cream);
}
.article-body a { color: var(--sky-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold); }

/* ========== CALLOUT BOXES ========== */
.callout {
    border-radius: 8px;
    padding: 1.3rem 1.5rem;
    margin: 1.8rem 0;
    border-left: 3px solid;
}
.callout-gold { background: var(--bg-callout); border-color: var(--gold); }
.callout-red { background: var(--bg-fact); border-color: var(--red-accent); }
.callout-amber { background: var(--bg-caution); border-color: var(--bronze); }
.callout-jade { background: var(--bg-info); border-color: var(--jade); }
.callout .callout-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.callout-gold .callout-title { color: var(--gold); }
.callout-red .callout-title { color: var(--red-accent); }
.callout-amber .callout-title { color: var(--bronze); }
.callout-jade .callout-title { color: var(--jade-light); }
.callout p { font-size: 0.95rem; margin-bottom: 0.6rem; }
.callout p:last-child { margin-bottom: 0; }

/* ========== PULL QUOTE ========== */
.pull-quote {
    border-left: 3px solid var(--gold);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-callout);
    border-radius: 0 8px 8px 0;
}
.pull-quote .pq-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.pull-quote .pq-source {
    font-size: 0.88rem;
    color: rgba(212, 232, 220, 0.5);
}

/* ========== COMPARISON BOX ========== */
.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.8rem 0;
}
.comp-col {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.2rem;
}
.comp-col h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-subtle);
}
.comp-col p, .comp-col li {
    font-size: 0.95rem;
    color: var(--mist);
    margin-bottom: 0.4rem;
}
.comp-positive h4 { color: var(--jade-light); }
.comp-negative h4 { color: var(--red-accent); }
.comp-neutral h4 { color: var(--bronze); }

/* ========== STAT STRIP ========== */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.8rem 0;
}
.stat-item {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.2rem 0.8rem;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.82rem;
    color: rgba(212, 232, 220, 0.5);
    margin-top: 0.3rem;
}

/* ========== CHARACTER DISPLAY ========== */
.char-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.8rem 0;
}
.char-display .cd-char {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
}
.char-display .cd-info { flex: 1; }
.char-display .cd-pinyin {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--gold-light);
    font-style: italic;
}
.char-display .cd-meaning {
    font-size: 0.95rem;
    color: var(--mist);
    margin-top: 0.3rem;
}

/* ========== REGION CARDS ========== */
.region-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.8rem 0;
}
.region-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.2rem;
}
.region-card h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
}
.region-card p {
    font-size: 0.92rem;
    color: var(--mist);
    line-height: 1.6;
}

/* ========== CTA CARD ========== */
.cta-card {
    background: var(--bg-callout);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    text-align: center;
    padding: 2rem 1.5rem;
    margin: 2.5rem 0;
}
.cta-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
}
.cta-card p {
    font-size: 0.95rem;
    color: var(--mist);
    margin-bottom: 1.2rem;
}
.cta-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 2rem;
    border-radius: 6px;
    transition: background 0.2s;
}
.cta-btn:hover { background: var(--gold-light); }

/* ========== RELATED ARTICLES ========== */
.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}
.related-section h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--mist);
    margin-bottom: 1.2rem;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.related-card:hover { border-color: var(--border-gold); background: var(--bg-callout); }
.related-card .rc-char {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
}
.related-card .rc-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.3;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 2rem;
}
footer p { font-size: 0.85rem; color: rgba(212, 232, 220, 0.5); }
footer a { color: rgba(212, 232, 220, 0.5); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-d1 { animation-delay: 0.1s; }
.fade-d2 { animation-delay: 0.2s; }
.fade-d3 { animation-delay: 0.3s; }
.fade-d4 { animation-delay: 0.4s; }
.fade-d5 { animation-delay: 0.5s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .article-title { font-size: 1.8rem; }
    .hero-character .big-char { font-size: 4.5rem; }
    .comparison-box { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .region-cards { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr; }
    .article-wrapper { padding: 1.8rem 1.2rem 3rem; }
    .pull-quote { padding: 1.2rem 1rem; }
    .pull-quote .pq-text { font-size: 1.1rem; }
    nav { padding: 0.8rem 1.2rem; }
}
.nav-logo span { color: #fff; }
