:root {
    --bg: #0C0B08;
    --bg-deep: #080706;
    --surface: #161410;
    --surface-2: #1E1A14;
    --title: #F3E6C0;
    --text: #E4D6B0;
    --muted: #B89A58;
    --quiet: #8A7040;
    --gold: #C9A227;
    --gold-bright: #E0C056;
    --gold-deep: #8A6E18;
    --copper: #8A5A2A;
    --warm: #F7EFD4;
    --border: rgba(201,162,39,0.22);
    --border-strong: rgba(201,162,39,0.50);
    --shadow: 0 12px 28px rgba(0,0,0,0.45);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; padding-top: 136px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.site-notice { height: 20px; position: fixed; z-index: 1100; top: 0; left: 0; right: 0; background: #070604; border-bottom: 1px solid rgba(201,162,39,.15); color: var(--gold-bright); font-size: 12px; }
.notice-inner { max-width: 1280px; height: 20px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.text-button { height: 20px; border: 0; background: transparent; padding: 0 2px; cursor: pointer; color: var(--gold-bright); }
.site-header { height: 52px; position: fixed; z-index: 1090; top: 20px; left: 0; right: 0; background: #0d0b07; border-bottom: 1px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.header-inner { max-width: 1280px; height: 52px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(150px,1fr) auto minmax(150px,1fr); align-items: center; gap: 16px; }
.brand-mark { min-height: 44px; display: inline-flex; align-items: center; justify-self: start; }
.logo-image { height: 24px; width: auto; object-fit: contain; object-position: center; }
.logo-fallback { font-size: 16px; color: var(--title); font-weight: 700; white-space: nowrap; }
.brand-en { color: var(--muted); font-size: 13px; letter-spacing: .14em; white-space: nowrap; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.header-app, .menu-open { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 7px; white-space: nowrap; }
.header-app { color: var(--title); border: 1px solid var(--border); }
.menu-open { background: transparent; border: 1px solid var(--border-strong); color: var(--gold-bright); cursor: pointer; }
.double-nav { height: 64px; position: fixed; z-index: 1080; top: 72px; left: 0; right: 0; background: #0a0906; border-bottom: 1px solid var(--border); }
.double-nav-row { height: 32px; max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 34px; }
.double-nav a { height: 32px; display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.double-nav a.is-active { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.site-shell { max-width: 1148px; margin: 0 auto; display: grid; grid-template-columns: 148px minmax(0,980px); gap: 20px; align-items: start; padding: 28px 0 0; }
.side-menu { width: 148px; position: sticky; top: 156px; padding: 14px 10px; border: 1px solid var(--border); background: #0f0d09; border-radius: 8px; }
.side-group + .side-group { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border); }
.side-group strong { display: block; margin-bottom: 4px; color: var(--quiet); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.side-group a { display: block; padding: 5px 4px; color: var(--text); font-size: 13px; border-radius: 5px; }
.side-group a:hover { background: var(--surface); }
.side-group a.is-active { color: var(--gold-bright); }
.page-main { width: 100%; max-width: 980px; min-width: 0; padding: 0 0 72px; }
.page-head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 12px; letter-spacing: .13em; }
h1 { margin: 0; color: var(--title); font-size: 24px; line-height: 1.3; }
h2 { margin: 0 0 12px; color: var(--title); font-size: 20px; line-height: 1.4; }
h3 { margin: 0 0 8px; color: var(--title); font-size: 16px; line-height: 1.45; }
p { margin: 0 0 1em; }
.lead { max-width: 760px; margin-top: 12px; color: var(--text); }
.kicker { color: var(--gold-bright); font-size: 13px; }
.section { margin: 34px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title p { margin: 0; color: var(--quiet); font-size: 13px; }
.card, .note-card, .clause, .method-card, .topic-item, .work-item, .faq-item, .help-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.card { padding: 18px; box-shadow: var(--shadow); }
.primary-btn, .secondary-btn { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 14px; white-space: nowrap; }
.primary-btn { background: linear-gradient(135deg,#E0C056 0%,#C9A227 55%,#8A6E18 100%); color: #1A1408; font-weight: 700; border: 1px solid rgba(224,192,86,.7); }
.secondary-btn { background: #0b0a07; color: var(--gold-bright); border: 1px solid var(--gold-bright); }
.primary-btn:hover, .secondary-btn:hover, .header-app:hover, .menu-open:hover { transform: translateY(-1px); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.media-slot { width: 100%; min-height: 120px; background: #090806; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-176 { height: 176px; }
.media-160 { height: 160px; }
.media-200 { height: 200px; }
.media-app { min-height: 220px; max-height: 320px; height: 320px; }
.media-icon { width: 64px; height: 64px; min-height: 64px; }
.media-icon img { width: 48px; height: 48px; }
.home-intro { padding: 24px 0 8px; max-width: 790px; }
.home-intro .hero-line { margin: 8px 0 12px; color: var(--gold-bright); font-size: 20px; font-weight: 700; }
.numbered-list { display: grid; gap: 12px; }
.numbered-item { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }
.numbered-item:first-child { border-top-color: var(--border-strong); }
.numbered-label { color: var(--gold-bright); font-weight: 700; letter-spacing: .08em; }
.numbered-body p:last-child { margin-bottom: 0; }
.observation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.observation-note { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.observation-note .media-slot { margin: 12px 0 14px; }
.flow-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.flow-node { flex: 1 1 210px; min-width: 0; padding: 16px; background: var(--surface); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; }
.flow-node strong { color: var(--gold-bright); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.work-head { margin-bottom: 12px; }
.work-item { padding: 17px; }
.period-stack { display: grid; gap: 14px; }
.period-block { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.period-block > strong { color: var(--gold-bright); }
.status-board { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 14px; align-items: center; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; }
.status-row strong { color: var(--gold-bright); }
.deep-band { margin: 34px calc(50% - 50vw); padding: 34px max(16px, calc((100vw - 980px)/2)); background: #080706; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.deep-band-inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 28px; align-items: center; }
.deep-band .app-visual { display: grid; grid-template-columns: 1fr 72px; gap: 10px; align-items: center; }
.points-list { margin: 0; padding-left: 1.2em; }
.points-list li + li { margin-top: 7px; }
.faq-mini { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0 16px; }
summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; color: var(--title); font-weight: 700; }
details p { padding: 0 0 14px; color: var(--text); }
.brand-box { padding: 22px; background: linear-gradient(135deg, #1a160e, #0f0d09); border: 1px solid var(--border-strong); border-radius: 8px; }
.single-notes { display: grid; gap: 12px; }
.note-card { padding: 18px; }
.note-card p:last-child { margin-bottom: 0; }
.memo-list { display: grid; gap: 10px; }
.memo-item { padding: 15px 17px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.memo-item strong { color: var(--gold-bright); }
.method-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.method-card { padding: 18px; }
.topic-list { display: grid; gap: 12px; }
.topic-item { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px; padding: 17px; }
.topic-item strong { color: var(--gold-bright); }
.works-double { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.app-page-band { padding: 26px; background: #080706; border: 1px solid var(--border-strong); border-radius: 9px; }
.app-page-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 28px; align-items: start; }
.step-list { counter-reset: steps; display: grid; gap: 12px; }
.step-item { padding: 17px 17px 17px 58px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.step-item::before { counter-increment: steps; content: counter(steps); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-bright); color: #1A1408; font-weight: 700; }
.clause-list { display: grid; gap: 12px; }
.clause { padding: 18px; }
.help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.help-card { padding: 18px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; }
.faq-item h2 { font-size: 17px; }
.contact-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.contact-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.about-banner { margin: 0 0 24px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-panel { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--gold-deep); color: var(--text); font-size: 13px; padding: 30px 16px 76px; }
.footer-inner { max-width: 1148px; margin: 0 auto; }
.footer-brand { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--title); font-size: 15px; }
.footer-brand span { color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.footer-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.footer-groups h2 { font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.footer-groups a { display: block; padding: 4px 0; }
.footer-note { max-width: 820px; color: #bda873; }
.copyright { margin-bottom: 0; color: var(--quiet); }
.overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.72); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-sheet { position: fixed; z-index: 1210; left: 0; right: 0; bottom: 0; max-height: 72vh; overflow-y: auto; background: #0a0906; border-top: 1px solid var(--gold-bright); transform: translateY(102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; box-shadow: 0 -18px 50px rgba(0,0,0,.55); }
.menu-sheet.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.sheet-head { position: sticky; top: 0; z-index: 1; background: #0a0906; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.sheet-brand { display: flex; align-items: center; gap: 12px; }
.sheet-brand strong, .sheet-brand span { display: block; }
.sheet-brand strong { color: var(--title); }
.sheet-brand span { color: var(--muted); font-size: 12px; }
.sheet-close { min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); background: #0d0b07; color: var(--gold-bright); border-radius: 7px; cursor: pointer; }
.menu-groups { max-width: 980px; margin: 0 auto; padding: 16px 18px 28px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.menu-groups h2 { color: var(--muted); font-size: 13px; }
.menu-groups a { display: block; padding: 9px 0; border-bottom: 1px solid rgba(201,162,39,.12); }
.menu-groups b, .menu-groups span { display: block; }
.menu-groups b { color: var(--title); font-size: 14px; }
.menu-groups span { color: #a58a51; font-size: 12px; line-height: 1.55; }
.search-panel { position: fixed; z-index: 1220; top: 72px; left: 0; right: 0; visibility: hidden; pointer-events: none; }
.search-panel.is-open { visibility: visible; pointer-events: auto; }
.search-card { max-width: 720px; margin: 0 auto; padding: 20px; background: #0a0906; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 14px; }
.search-head strong, .search-head span { display: block; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head span { color: var(--muted); font-size: 13px; }
.search-card label { display: block; color: var(--quiet); font-size: 12px; margin-bottom: 5px; }
.search-card input { width: 100%; height: 44px; padding: 0 12px; background: #0f0d09; color: var(--warm); border: 1px solid var(--border-strong); border-radius: 7px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-presets a { min-height: 40px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 7px; color: var(--gold-bright); }
.search-empty { margin-top: 12px; color: var(--muted); }
.panel-open { overflow: hidden; }
.mobile-bottom { display: none; }
@media (max-width: 1180px) {
    .site-shell { grid-template-columns: 148px minmax(0,1fr); max-width: 1100px; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 860px) {
    body { padding-top: 72px; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .header-inner { grid-template-columns: minmax(110px,1fr) auto; gap: 8px; }
    .brand-en { display: none; }
    .header-actions { gap: 5px; }
    .header-app, .menu-open { padding: 0 10px; }
    .double-nav, .side-menu { display: none; }
    .site-shell { display: block; max-width: none; padding: 20px 16px 0; }
    .page-main { max-width: 100%; padding-bottom: 42px; }
    .numbered-item { grid-template-columns: 1fr; gap: 6px; }
    .observation-grid, .work-grid, .works-double, .method-grid, .help-grid, .contact-paths, .about-grid { grid-template-columns: 1fr; }
    .topic-item { grid-template-columns: 1fr; gap: 6px; }
    .deep-band { margin-left: -16px; margin-right: -16px; padding: 28px 16px; }
    .deep-band-inner, .app-page-grid { grid-template-columns: 1fr; }
    .deep-band .app-visual { max-width: 360px; }
    .footer-groups, .menu-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .mobile-bottom { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4,1fr); background: #080706; border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-height: 48px; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
    .mobile-bottom a.is-active { background: var(--gold); color: #1A1408; font-weight: 700; }
    .search-panel { top: 0; bottom: 0; background: #080706; overflow-y: auto; }
    .search-card { min-height: 100%; max-width: none; margin: 0; border: 0; padding: 24px 16px 80px; }
}
@media (max-width: 520px) {
    .logo-fallback { font-size: 14px; }
    .header-app, .menu-open { font-size: 13px; padding: 0 8px; }
    .footer-groups, .menu-groups { grid-template-columns: 1fr; }
    .status-row { grid-template-columns: 1fr; gap: 4px; }
    .deep-band .app-visual { grid-template-columns: 1fr; }
}
