/* ============================================================
   MING COSMOS — Design System (Shared)
   ============================================================ */

:root {
    --bg-primary:    #0a0a0a;
    --bg-secondary:  #111111;
    --bg-tertiary:   #161616;
    --bg-card:       #131313;
    --bg-elevated:   #1a1a1a;

    --text-primary:   #e8e6e3;
    --text-secondary: #9a9a9a;
    --text-muted:     #5a5a5a;

    --accent:        #c9a96e;
    --accent-hover:  #dabe84;
    --accent-dim:    rgba(201, 169, 110, 0.12);
    --accent-glow:   rgba(201, 169, 110, 0.06);

    --border:        #1e1e1e;
    --border-light:  #2a2a2a;
    --border-accent: rgba(201, 169, 110, 0.25);

    --danger:        #c45c4a;
    --success:       #4a8c5c;

    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;

    --font-serif: 'EB Garamond', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
    --font-mono:  'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-serif);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 17px;
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 169, 110, 0.25);
    color: var(--text-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   Navigation
   ============================================================ */

nav {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 0.3s var(--ease-out);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 1.5rem;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-decoration: none;
    font-family: var(--font-serif);
    white-space: nowrap;
}

.nav-brand span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8em;
    margin-left: 0.6em;
    letter-spacing: 0.04em;
}

/* Hamburger */
.menu-toggle {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 40px; height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
}

.menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.menu-toggle .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.menu-toggle .bar::before,
.menu-toggle .bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s var(--ease-out);
}

.menu-toggle .bar::before { top: -6px; }
.menu-toggle .bar::after  { top: 6px;  }

.menu-toggle.active .bar { background: transparent; }
.menu-toggle.active .bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .bar::after  { top: 0; transform: rotate(-45deg); }

/* Nav Links */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), opacity 0.3s;
    opacity: 0;
}

.nav-links.active {
    display: flex;
    max-height: 500px;
    opacity: 1;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border-left: 3px solid transparent;
    transition: all 0.2s var(--ease-out);
}

.nav-links a:hover {
    color: var(--accent);
    background: var(--bg-tertiary);
    border-left-color: var(--accent);
}

.nav-links a.active-section {
    color: var(--accent);
    border-left-color: var(--accent);
}

@media (min-width: 900px) {
    .menu-toggle { display: none; }
    .nav-links {
        display: flex !important;
        flex-direction: row;
        gap: 0.3rem;
        position: static;
        background: none;
        border: none;
        padding: 0;
        max-height: none;
        opacity: 1;
        overflow: visible;
    }
    .nav-links a {
        padding: 0.4rem 0.8rem;
        border: none;
        border-radius: 4px;
        font-size: 0.9rem;
    }
    .nav-links a:hover {
        background: var(--accent-dim);
        border: none;
    }
    .nav-links a.active-section {
        border: none;
        background: var(--accent-dim);
    }
}

/* ============================================================
   Layout
   ============================================================ */

.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wide-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   Page Header (sub-pages)
   ============================================================ */

.page-header {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    pointer-events: none;
}

.page-header .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.page-header h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.page-header h1 em {
    font-style: italic;
    color: var(--accent);
}

.page-header .cn {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-style: italic;
    max-width: 560px;
    margin: 0 auto;
}

.page-header .divider {
    width: 50px;
    height: 1px;
    background: var(--accent);
    margin: 1.5rem auto 0;
    opacity: 0.5;
}

/* ============================================================
   Content Sections
   ============================================================ */

.section {
    padding: var(--space-xl) 0;
}

.section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.section-header .section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    font-style: italic;
}

.section-divider {
    width: 40px;
    height: 1px;
    background: var(--border-light);
    margin: 1.2rem auto;
}

/* ============================================================
   Typography
   ============================================================ */

h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--accent);
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-primary);
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
}

p {
    font-size: clamp(1rem, 2.5vw, 1.05rem);
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

strong { color: var(--text-primary); font-weight: 500; }
em { font-style: italic; }

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

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

/* ============================================================
   Blockquote
   ============================================================ */

blockquote {
    border-left: 3px solid var(--accent);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    line-height: 1.75;
}

/* ============================================================
   Note Box
   ============================================================ */

.note-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 1.3rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.note-box strong { color: var(--accent); }

/* ============================================================
   Tables
   ============================================================ */

.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 480px;
}

th {
    background: var(--bg-secondary);
    color: var(--accent);
    padding: 0.85rem 1.2rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-tertiary); }
td strong { color: var(--text-primary); font-weight: 500; }
td em { color: var(--text-muted); font-size: 0.9em; }

/* ============================================================
   Feature Cards
   ============================================================ */

.feature-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.8rem;
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), var(--accent-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.feature-card:hover::before { opacity: 0.6; }
.feature-card:hover::after  { opacity: 1; }

.feature-card .number {
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    margin-top: 0;
    transition: color 0.2s;
}

.feature-card h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.feature-card h3 a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.feature-card .arrow {
    margin-top: 1.4rem;
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
}

.feature-card:hover .arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ============================================================
   Content Cards
   ============================================================ */

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}

.content-card:hover { border-color: var(--border-light); }

.content-card h3 {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 0.3rem;
    margin-top: 0;
}

.content-card .sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-style: italic;
}

.content-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-card p:last-child { margin-bottom: 0; }

.content-card .read-more {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.content-card .read-more:hover { border-bottom-color: var(--accent); }

/* ============================================================
   Term Grid (Glossary)
   ============================================================ */

.term-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .term-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .term-grid { grid-template-columns: repeat(3, 1fr); }
}

.term-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.25s var(--ease-out);
}

.term-card:hover {
    border-color: var(--border-accent);
    border-left-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.term-card h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.term-card .pinyin {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
    margin-bottom: 0.6rem;
}

.term-card .literal {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.term-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

/* ============================================================
   Four Pillars Visualization
   ============================================================ */

.pillars-demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 640px) {
    .pillars-demo {
        flex-direction: row;
        gap: 1rem;
    }
}

.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.6;
}

.pillar:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.pillar .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.pillar .stem {
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1.2;
    font-family: 'Noto Serif SC', serif;
}

.pillar .stem-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.pillar .branch {
    font-size: 1.6rem;
    color: var(--text-secondary);
    font-family: 'Noto Serif SC', serif;
    margin-top: 0.3rem;
}

.pillar .branch-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ============================================================
   Flow Steps
   ============================================================ */

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 2rem 0;
    position: relative;
}

.flow-steps::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--border-light);
}

@media (min-width: 640px) {
    .flow-steps {
        flex-direction: row;
        gap: 1.5rem;
    }
    .flow-steps::before {
        left: 0; right: 0;
        top: 50%;
        bottom: auto;
        width: auto;
        height: 2px;
        transform: translateY(-50%);
    }
}

.flow-step {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}

.flow-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.flow-step h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.flow-step p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================================
   Compare Grid
   ============================================================ */

.compare-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .compare-grid { grid-template-columns: 1fr 1fr; }
}

.compare-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.compare-col h4 {
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.compare-col ul {
    list-style: none;
    padding: 0;
}

.compare-col li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.compare-col li:last-child { border-bottom: none; }

.compare-col li::before {
    content: '·';
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

/* ============================================================
   Avoid / Use
   ============================================================ */

.avoid-use {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .avoid-use { grid-template-columns: 1fr 1fr; }
}

.avoid-card, .use-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.8rem;
}

.avoid-card { border-top: 3px solid var(--danger); }
.use-card   { border-top: 3px solid var(--success); }

.avoid-card h4 {
    color: var(--danger);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.use-card h4 {
    color: #6aaa7a;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.avoid-card li, .use-card li {
    color: var(--text-secondary);
    font-size: 0.93rem;
    padding: 0.4rem 0;
    list-style: none;
}

.avoid-card li::before { content: '✕ '; color: var(--danger); font-size: 0.85rem; }
.use-card li::before    { content: '✓ '; color: #6aaa7a; font-size: 0.85rem; }

/* ============================================================
   Reading List
   ============================================================ */

.reading-list {
    list-style: none;
    padding: 0;
}

.reading-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

.reading-list li:last-child { border-bottom: none; }
.reading-list li strong { color: var(--text-primary); }

/* ============================================================
   Footer
   ============================================================ */

footer {
    border-top: 1px solid var(--border);
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: 780px;
    margin: 0 auto;
}

.footer-brand {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.8rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

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

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
    line-height: 1.6;
}

/* ============================================================
   Back to Top
   ============================================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out);
    z-index: 99;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ============================================================
   Scroll Reveal
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger.visible > *:nth-child(1)  { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2)  { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3)  { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4)  { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5)  { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(6)  { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(7)  { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(8)  { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(9)  { transition-delay: 0.45s; }
.stagger.visible > *:nth-child(10) { transition-delay: 0.5s; }
.stagger.visible > *:nth-child(11) { transition-delay: 0.55s; }
.stagger.visible > *:nth-child(12) { transition-delay: 0.6s; }
.stagger.visible > *:nth-child(13) { transition-delay: 0.65s; }
.stagger.visible > *:nth-child(14) { transition-delay: 0.7s; }
.stagger.visible > *:nth-child(15) { transition-delay: 0.75s; }
.stagger.visible > *:nth-child(16) { transition-delay: 0.8s; }

.stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Hero (Home only)
   ============================================================ */

.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0%   { opacity: 0.5; transform: translateX(-50%) scale(1); }
    100% { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

.hero::after {
    content: '命';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: clamp(15rem, 35vw, 28rem);
    font-family: 'Noto Serif SC', serif;
    color: rgba(201, 169, 110, 0.025);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
    user-select: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.8rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 400;
    line-height: 1.12;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-cn {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.55s forwards;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.75s forwards;
}

.hero-desc {
    max-width: 580px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.85s forwards;
}

.hero-desc em {
    color: var(--text-secondary);
    font-style: italic;
}

.hero-cta {
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

.btn-primary {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 2.2rem;
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.35s var(--ease-out);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--accent);
    transition: left 0.35s var(--ease-out);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-primary);
    border-color: var(--accent);
    border-bottom-color: var(--accent);
}

.btn-primary:hover::before { left: 0; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Quote Section
   ============================================================ */

.quote-section {
    padding: var(--space-xl) 0;
}

.quote-block {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.quote-mark {
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.quote-block blockquote {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    border: none;
    padding: 0;
    background: none;
}

.quote-block cite {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-style: normal;
    letter-spacing: 0.06em;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 480px) {
    body { font-size: 16px; }
    .hero { padding-top: 120px; padding-bottom: 60px; min-height: auto; }
    .page-header { padding-top: 110px; padding-bottom: 40px; }
    .section { padding: var(--space-xl) 0; }
    .feature-card { padding: 1.5rem 1.3rem; }
    .content-card { padding: 1.8rem 1.3rem; }
    .term-card { padding: 1.2rem; }
}

/* ============================================================
   Print
   ============================================================ */

@media print {
    nav, .back-to-top, .hero-cta, .menu-toggle { display: none; }
    body { background: white; color: #222; }
    .feature-card, .content-card, .term-card, .pillar, .compare-col {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }
    :root {
        --accent: #8B4513;
        --text-primary: #222;
        --text-secondary: #555;
        --text-muted: #888;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .stagger > * { opacity: 1; transform: none; }
    .hero-eyebrow, .hero h1, .hero-cn, .hero-subtitle,
    .hero-divider, .hero-desc, .hero-cta {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
