:root {
    --bg: #17171A;
    --bg-deep: #121214;
    --panel: #222226;
    --panel-soft: #29292e;
    --text: #F1EEEE;
    --muted: #A9A3A6;
    --brand: #C84A5A;
    --brand-soft: rgba(200, 74, 90, .14);
    --copper: #D08A48;
    --accent: #E59A3A;
    --line: rgba(241, 238, 238, .12);
    --line-strong: rgba(241, 238, 238, .2);
    --shadow: 0 20px 60px rgba(0, 0, 0, .22);
    --radius: 18px;
    --radius-sm: 12px;
    --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; left: 16px; top: 12px; z-index: 120;
    transform: translateY(-160%); background: var(--accent); color: #17120c;
    padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky; top: 0; z-index: 80;
    background: rgba(18, 18, 20, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 178px; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 1.06rem; letter-spacing: .04em; }
.brand-copy small { color: var(--muted); margin-top: 4px; font-size: .75rem; }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav a {
    color: #d9d5d6; padding: 9px 12px; border-radius: 10px;
    font-size: .94rem; transition: background .2s ease, color .2s ease;
}
.primary-nav a:hover, .primary-nav a:focus-visible { background: var(--panel); color: #fff; outline: none; }
.primary-nav a[aria-current="page"] { background: var(--brand-soft); color: #ffd9df; }
.search-open, .nav-toggle {
    border: 1px solid var(--line-strong); background: transparent; color: var(--text);
    border-radius: 10px; padding: 8px 12px;
}
.search-open:hover, .nav-toggle:hover { border-color: rgba(229, 154, 58, .6); }
.nav-toggle { display: none; }

.breadcrumbs {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding-top: 24px; color: var(--muted); font-size: .9rem;
}
.breadcrumbs a:hover { color: var(--accent); }

.home-hero { padding: 74px 0 28px; }
.hero-frame {
    display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(330px, .86fr);
    gap: 54px; align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: #f0b168; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
    font-weight: 800;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.hero-copy h1, .page-hero h1 {
    margin: 14px 0 18px; line-height: 1.16; letter-spacing: -.035em;
    font-size: clamp(2.35rem, 5vw, 4.8rem); max-width: 980px;
}
.hero-copy h1 span { color: #e5a0aa; }
.hero-copy > p { max-width: 760px; color: #c5bec1; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
    padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-strong);
    font-weight: 750; letter-spacing: .01em;
}
.button.primary { background: var(--brand); border-color: var(--brand); color: white; }
.button.primary:hover { background: #d45e6d; }
.button.secondary:hover { border-color: var(--copper); color: #f2bd83; }
.hero-art {
    position: relative; min-height: 470px; border-radius: 26px; overflow: hidden;
    background: var(--panel); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-art img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.hero-art::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(18,18,20,.78) 100%);
    pointer-events: none;
}
.hero-note {
    position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px;
    padding: 16px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px;
    background: rgba(18,18,20,.72); backdrop-filter: blur(10px);
}
.hero-note strong { display: block; }
.hero-note span { color: #c9c3c5; font-size: .9rem; }

.signal-strip { padding: 22px 0 8px; }
.signal-row {
    display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.signal-item { background: #1d1d20; padding: 22px; min-height: 125px; }
.signal-item strong { display: block; margin-bottom: 7px; font-size: 1rem; }
.signal-item p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.65; }
.signal-item.lead { background: var(--brand-soft); }
.signal-item.lead strong { color: #ffccd4; }

.section { padding: 76px 0; }
.section.compact { padding: 52px 0; }
.section.deep { background: var(--bg-deep); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.22; letter-spacing: -.025em; }
.section-head p { max-width: 620px; margin: 0; color: var(--muted); }
.section-kicker { color: var(--copper); font-size: .82rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 8px; }

.editorial-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 54px; align-items: start; }
.editorial-visual { position: sticky; top: 108px; }
.editorial-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); }
.editorial-visual figcaption { color: var(--muted); font-size: .86rem; margin-top: 10px; }
.number-list { border-top: 1px solid var(--line-strong); }
.number-item { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.number-item .num { color: var(--brand); font-size: .84rem; font-weight: 900; letter-spacing: .1em; }
.number-item h3 { margin: 0 0 7px; font-size: 1.12rem; }
.number-item p { margin: 0; color: var(--muted); }

.path-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
.path-primary, .path-secondary { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.path-primary { background: #202024; }
.path-secondary { background: var(--brand-soft); }
.path-media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.path-body { padding: 28px; }
.path-body h3 { margin: 0 0 8px; font-size: 1.45rem; }
.path-body p { color: var(--muted); margin: 0 0 20px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: #f0b168; font-weight: 750; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.reading-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.reading-band img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); }
.reading-copy h2 { margin: 0 0 16px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.reading-copy p { color: var(--muted); }
.inline-index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.inline-index a { padding: 8px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .88rem; }
.inline-index a:hover { border-color: var(--copper); color: #f1bd84; }

.note-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-card { padding: 23px; border-radius: 16px; border: 1px solid var(--line); background: #1d1d20; }
.note-card span { display: block; color: var(--brand); font-size: .78rem; font-weight: 900; margin-bottom: 10px; }
.note-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.note-card p { color: var(--muted); margin: 0; font-size: .92rem; }

.home-faq { display: grid; grid-template-columns: .72fr 1.28fr; gap: 52px; align-items: start; }
.home-faq aside { position: sticky; top: 112px; }
.home-faq aside img { border-radius: 18px; border: 1px solid var(--line); margin-bottom: 18px; }
.home-faq h2 { margin-top: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
    width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 16px;
    padding: 20px 0; background: transparent; border: 0; color: var(--text); font-weight: 750;
}
.faq-question span:last-child { color: var(--copper); font-size: 1.2rem; }
.faq-answer { color: var(--muted); padding: 0 0 21px; max-width: 860px; }
.faq-answer[hidden] { display: none; }

.soft-callout {
    display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
    padding: 32px; background: linear-gradient(100deg, rgba(200,74,90,.14), rgba(208,138,72,.08));
    border: 1px solid rgba(200,74,90,.28); border-radius: var(--radius);
}
.soft-callout h2, .soft-callout h3 { margin: 0 0 8px; }
.soft-callout p { color: var(--muted); margin: 0; max-width: 760px; }

.page-hero { padding: 64px 0 48px; }
.page-hero .lede { max-width: 830px; color: #c7c1c3; font-size: 1.08rem; }
.page-hero.compact-hero h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 48px; align-items: center; }
.page-hero-grid img { width: 100%; max-height: 390px; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); }
.meta-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.meta-pill { border: 1px solid var(--line); color: #c8c2c4; border-radius: 999px; padding: 7px 10px; font-size: .85rem; }
.meta-pill.emphasis { border-color: rgba(229,154,58,.4); color: #f1ba79; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 58px; align-items: start; }
.prose { min-width: 0; }
.prose > section { padding: 0 0 54px; }
.prose h2 { margin: 0 0 16px; font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1.3; }
.prose h3 { margin: 27px 0 9px; font-size: 1.14rem; }
.prose p { color: #cec8ca; margin: 0 0 16px; }
.prose strong { color: #fff; }
.prose ul, .prose ol { color: #cec8ca; padding-left: 1.2rem; }
.prose li + li { margin-top: 8px; }
.prose a:not(.button):not(.text-link) { color: #efb36f; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
    margin: 22px 0; padding: 18px 20px; border-left: 3px solid var(--brand);
    background: var(--brand-soft); color: #d8d2d4;
}
.side-index { position: sticky; top: 110px; border-left: 1px solid var(--line); padding-left: 22px; }
.side-index h2 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-index a { display: block; padding: 7px 0; color: #c7c0c2; font-size: .91rem; }
.side-index a:hover { color: var(--accent); }
.side-index .mini-cta { margin-top: 20px; padding: 18px; background: var(--panel); border-radius: 12px; }
.side-index .mini-cta strong { display: block; margin-bottom: 5px; }
.side-index .mini-cta p { margin: 0 0 10px; color: var(--muted); font-size: .85rem; }

.checklist { display: grid; gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 15px 16px 15px 46px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.checklist li::before {
    content: "✓"; position: absolute; left: 16px; top: 14px; width: 22px; height: 22px;
    display: grid; place-items: center; border-radius: 50%; background: rgba(208,138,72,.16); color: #f0b168; font-weight: 900;
}
.warning-box { padding: 20px; background: rgba(229,154,58,.08); border: 1px solid rgba(229,154,58,.28); border-radius: 14px; }
.warning-box strong { color: #f1bc7d; }

.comparison { width: 100%; border-collapse: collapse; margin: 20px 0; overflow: hidden; }
.comparison th, .comparison td { border-bottom: 1px solid var(--line); text-align: left; padding: 14px 12px; vertical-align: top; }
.comparison th { color: #fff; font-size: .9rem; background: #202024; }
.comparison td { color: #c9c3c5; }
.comparison tr:last-child td { border-bottom: 0; }

.step-flow { border-left: 1px solid rgba(200,74,90,.5); margin-left: 16px; }
.step { position: relative; padding: 0 0 34px 34px; }
.step:last-child { padding-bottom: 0; }
.step::before {
    content: attr(data-step); position: absolute; left: -16px; top: 0; width: 32px; height: 32px;
    display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 900;
}
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-panel { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.guide-panel h3 { margin-top: 0; }
.guide-panel ul { padding-left: 1.1rem; margin-bottom: 0; }
.guide-panel li { color: #c7c1c3; }

.topic-list { border-top: 1px solid var(--line-strong); }
.topic-row { display: grid; grid-template-columns: minmax(160px, .36fr) 1fr auto; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.topic-row h3 { margin: 0; font-size: 1rem; }
.topic-row p { margin: 0; color: var(--muted); }
.topic-row a { color: #efb36f; font-weight: 750; white-space: nowrap; }

.search-page { padding: 62px 0 90px; }
.search-page h1 { font-size: clamp(2rem, 4vw, 3.6rem); margin: 0 0 12px; }
.search-form-large { max-width: 760px; margin: 28px 0 38px; display: flex; gap: 10px; }
.search-form-large input {
    flex: 1; min-width: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong);
    border-radius: 12px; padding: 13px 15px; outline: none;
}
.search-form-large input:focus { border-color: var(--copper); }
.search-form-large button { border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; padding: 0 20px; }
.search-results { max-width: 900px; border-top: 1px solid var(--line); }
.search-result { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-result h2 { margin: 0 0 6px; font-size: 1.2rem; }
.search-result p { margin: 0 0 9px; color: var(--muted); }
.search-result a { color: #f0b168; font-weight: 700; }
.empty-state { max-width: 760px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }

.error-page { min-height: 65vh; display: grid; place-items: center; padding: 80px 0; }
.error-card { max-width: 760px; text-align: center; }
.error-code { color: var(--brand); font-size: clamp(4rem, 14vw, 9rem); line-height: 1; font-weight: 900; letter-spacing: -.06em; }
.error-card h1 { margin: 18px 0 10px; font-size: clamp(1.8rem, 4vw, 3rem); }
.error-card p { color: var(--muted); }
.error-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; }
.site-footer h2 { margin: 0 0 14px; font-size: 1rem; }
.site-footer p { color: var(--muted); margin: 0; max-width: 520px; }
.site-footer nav a { display: block; color: #c9c3c5; font-size: .9rem; padding: 4px 0; }
.site-footer nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; }
.footer-bottom p { font-size: .82rem; }

.search-modal[hidden] { display: none !important; }
.search-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: start center; padding: 12vh 22px 22px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.74); backdrop-filter: blur(5px); }
.search-dialog { position: relative; width: min(680px, 100%); background: #202024; border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow); padding: 30px; }
.search-dialog h2 { margin: 0 0 5px; font-size: 1.7rem; }
.search-dialog p { color: var(--muted); margin-top: 0; }
.search-close { position: absolute; right: 16px; top: 14px; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; }
.search-dialog label { display: block; margin-bottom: 7px; font-size: .88rem; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; background: #151517; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 13px; }
.search-row button { border: 0; border-radius: 10px; background: var(--brand); color: white; font-weight: 800; padding: 0 17px; }
.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: #242428; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.26); }
.back-top[hidden] { display: none; }

@media (max-width: 1024px) {
    .shell { width: min(var(--shell), calc(100% - 36px)); }
    .header-inner { gap: 12px; }
    .brand { min-width: 160px; }
    .primary-nav a { padding-inline: 8px; font-size: .9rem; }
    .hero-frame, .page-hero-grid { grid-template-columns: 1fr .8fr; gap: 32px; }
    .content-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 36px; }
    .guide-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .primary-nav {
        display: none; position: absolute; left: 18px; right: 18px; top: calc(100% + 8px);
        padding: 10px; background: #202024; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow);
    }
    .primary-nav.open { display: grid; }
    .primary-nav a { padding: 11px 12px; }
    .hero-frame, .page-hero-grid, .editorial-split, .reading-band, .home-faq, .content-layout { grid-template-columns: 1fr; }
    .hero-art, .hero-art img { min-height: 360px; }
    .editorial-visual, .home-faq aside, .side-index { position: static; }
    .side-index { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
    .signal-row { grid-template-columns: 1fr 1fr; }
    .path-grid { grid-template-columns: 1fr; }
    .note-stack { grid-template-columns: 1fr 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .shell { width: min(100% - 28px, var(--shell)); }
    .header-inner { min-height: 66px; }
    .brand img { width: 38px; height: 38px; }
    .brand-copy small { display: none; }
    .brand { min-width: 0; }
    .search-open { padding: 7px 9px; }
    .home-hero, .page-hero { padding-top: 44px; }
    .hero-copy h1, .page-hero h1 { font-size: clamp(2rem, 11vw, 3.1rem); }
    .hero-art, .hero-art img { min-height: 300px; }
    .hero-note { left: 14px; right: 14px; bottom: 14px; }
    .hero-actions .button { width: 100%; }
    .signal-row { grid-template-columns: 1fr; }
    .section { padding: 58px 0; }
    .section.compact { padding: 42px 0; }
    .note-stack, .guide-grid { grid-template-columns: 1fr; }
    .topic-row { grid-template-columns: 1fr; gap: 8px; }
    .soft-callout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-intro { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .search-row, .search-form-large { flex-direction: column; }
    .search-row button, .search-form-large button { min-height: 44px; }
    .comparison { font-size: .87rem; }
    .comparison th, .comparison td { padding: 11px 8px; }
}

@media (max-width: 375px) {
    .shell { width: calc(100% - 22px); }
    .brand-copy strong { font-size: .96rem; }
    .nav-toggle, .search-open { font-size: .84rem; }
    .hero-art, .hero-art img { min-height: 260px; }
    .path-body, .search-dialog { padding: 22px; }
    .number-item { grid-template-columns: 42px 1fr; gap: 10px; }
}
