:root {
    --bg: #0C100E;
    --bg-deep: #080A09;
    --panel: #141A16;
    --panel-2: #1A2420;
    --title: #E8F6EE;
    --text: #CDE3D6;
    --muted: #8FB3A0;
    --soft: #6E8F7E;
    --green: #2A9D5C;
    --green-bright: #3CB371;
    --green-deep: #146B3A;
    --sand: #EFE6D2;
    --border: rgba(42,157,92,0.18);
    --border-strong: rgba(42,157,92,0.45);
    --shadow: 0 12px 28px rgba(8,10,9,0.35);
    --max: 1120px;
    --top-total: 122px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 15px; line-height: 1.7; }
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; padding: 8px 12px; background: var(--sand); color: var(--bg-deep); border-radius: 8px; }
.skip-link:focus { top: 8px; }
.topline { position: fixed; inset: 0 0 auto 0; z-index: 80; height: 22px; background: #050706; border-bottom: 1px solid var(--border); color: var(--green-bright); font-size: 12px; }
.topline-inner, .sitebar-inner, .layer-tabs-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topline-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button { min-height: 22px; border: 0; padding: 0 2px; color: var(--green-bright); background: transparent; cursor: pointer; }
.sitebar { position: fixed; top: 22px; inset-inline: 0; z-index: 79; height: 60px; background: var(--bg-deep); border-bottom: 1px solid var(--border-strong); }
.sitebar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand-mark { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo, .drawer-logo, .footer-logo { width: auto; height: 28px; object-fit: contain; object-position: center; }
.brand-text { font-size: 16px; font-weight: 800; color: var(--title); letter-spacing: .04em; }
.drawer-toggle { justify-self: center; min-width: 74px; min-height: 44px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel); color: var(--sand); cursor: pointer; }
.app-entry { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--text); background: #0B100D; font-size: 14px; }
.app-entry.is-active { background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color: #08110C; border-color: transparent; font-weight: 800; }
.layer-tabs { position: fixed; top: 82px; inset-inline: 0; z-index: 78; height: 40px; background: #0F281A; border-bottom: 1px solid var(--border-strong); }
.layer-tabs-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.layer-link { min-height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; color: var(--text); font-size: 13px; }
.layer-link.is-active { background: var(--green); color: #08110C; font-weight: 800; }
.site-main { min-height: 70vh; padding: calc(var(--top-total) + 30px) 16px 56px; }
.wrap { width: min(var(--max), 100%); margin: 0 auto; }
.page-hero { margin-bottom: 28px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, rgba(20,26,22,.96), rgba(12,16,14,.98)); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 8px; color: var(--green-bright); font-size: 12px; letter-spacing: .12em; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.45; }
p { margin: 0 0 1em; }
.lead { max-width: 820px; color: var(--text); }
.meta-line { color: var(--muted); font-size: 13px; }
.section { margin-top: 28px; padding: 24px; border: 1px solid var(--border); background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head p { color: var(--muted); margin: 0; font-size: 13px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .info-card, .link-card, .lesson-card, .scene-card, .shot-card { min-width: 0; border: 1px solid var(--border); background: var(--panel-2); border-radius: 12px; padding: 18px; }
.card p:last-child, .info-card p:last-child, .link-card p:last-child, .lesson-card p:last-child, .scene-card p:last-child, .shot-card p:last-child { margin-bottom: 0; }
.link-card { display: block; min-height: 100%; transition: border-color .2s ease, transform .2s ease; }
.link-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.link-card strong { display: block; color: var(--sand); font-size: 16px; margin-bottom: 8px; }
.link-card span { display: block; color: var(--muted); }
.media-slot { width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-deep); }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-slot.banner { height: 260px; }
.media-slot.card-media { height: 180px; margin-bottom: 14px; }
.media-slot.wide { height: 200px; margin-bottom: 16px; }
.media-slot.app-media { height: 360px; }
.media-slot.placeholder:empty::after { content: "91次元"; color: var(--soft); font-size: 13px; letter-spacing: .16em; }
.brand-intro { margin-top: 18px; }
.brand-intro h1 { margin-bottom: 8px; }
.brand-intro .brand-en { color: var(--green-bright); font-size: 13px; letter-spacing: .12em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color: #08110C; border: 1px solid transparent; }
.btn-secondary { background: #0B100D; border: 1px solid var(--border-strong); color: var(--text); }
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.number-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.number-item { padding: 14px; border-radius: 10px; background: #0F1712; border: 1px solid var(--border); }
.number-item b { color: var(--green-bright); margin-right: 8px; }
.topic-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.topic-list li { padding: 12px 14px; border-left: 3px solid var(--green); background: #0F1712; border-radius: 8px; }
.topic-list strong { color: var(--sand); }
.timeline { position: relative; display: grid; gap: 16px; margin-top: 16px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.timeline-item::before { content: ""; position: absolute; left: -25px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px var(--bg); }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(42,157,92,.14); border: 1px solid var(--border-strong); color: var(--text); font-size: 12px; }
.def-list { display: grid; gap: 12px; margin: 0; }
.def-list div { padding: 14px 16px; background: #0F1712; border-radius: 10px; border: 1px solid var(--border); }
.def-list dt { color: var(--sand); font-weight: 800; margin-bottom: 4px; }
.def-list dd { margin: 0; color: var(--text); }
.note-box { padding: 16px 18px; border: 1px solid var(--border-strong); background: rgba(20,107,58,.12); border-radius: 10px; color: var(--text); }
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); background: var(--panel-2); border-radius: 12px; padding: 18px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.icon-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-icon { width: 48px; height: 48px; object-fit: contain; object-position: center; border-radius: 12px; }
.site-footer { background: #050706; border-top: 1px solid var(--border-strong); color: var(--text); font-size: 13px; padding: 34px 16px calc(34px + env(safe-area-inset-bottom)); }
.footer-inner { width: min(var(--max), 100%); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.footer-brand div { display: grid; gap: 1px; }
.footer-brand strong { color: var(--title); font-size: 16px; }
.footer-brand span { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.footer-grid h2 { font-size: 13px; color: var(--green-bright); margin-bottom: 8px; }
.footer-grid a { display: block; min-height: 30px; padding: 4px 0; color: var(--text); }
.footer-grid a:hover { color: var(--sand); }
.footer-note { color: var(--muted); max-width: 900px; margin-top: 24px; }
.copyright { color: var(--soft); margin: 8px 0 0; }
.page-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.66); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-drawer { position: fixed; z-index: 120; top: 0; left: 0; width: min(400px, 86vw); height: 100dvh; background: var(--bg-deep); border-right: 1px solid var(--border-strong); box-shadow: var(--shadow); transform: translateX(-103%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; }
.nav-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 72px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.drawer-brand { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.drawer-brand span { display: grid; line-height: 1.2; }
.drawer-brand small { color: var(--muted); font-size: 10px; }
.icon-close { min-height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; }
.drawer-scroll { height: calc(100dvh - 72px); overflow-y: auto; padding: 18px 16px 34px; }
.drawer-group + .drawer-group { margin-top: 22px; }
.drawer-group h2 { color: var(--green-bright); font-size: 13px; margin-bottom: 8px; }
.drawer-group a { display: block; padding: 11px 12px; border-radius: 10px; border: 1px solid transparent; }
.drawer-group a:hover { border-color: var(--border); background: var(--panel); }
.drawer-group strong { display: block; color: var(--title); font-size: 14px; }
.drawer-group span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.search-layer { position: fixed; z-index: 121; top: 82px; left: 50%; width: min(760px, calc(100% - 32px)); transform: translate(-50%, -16px); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.search-layer.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { padding: 20px; background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.search-head strong { color: var(--title); }
.search-card label { display: block; color: var(--muted); margin-bottom: 8px; }
.search-card input { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--title); padding: 0 14px; }
.search-presets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 42px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.mobile-bottom { display: none; }
.kicker { color: var(--muted); font-size: 13px; }
.quote-line { color: var(--sand); font-size: 18px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tags span { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; }
hr.soft { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

@media (max-width: 800px) {
    :root { --top-total: 82px; }
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .topline-inner, .sitebar-inner { width: calc(100% - 32px); }
    .layer-tabs { display: none; }
    .sitebar-inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .brand-mark { max-width: 120px; overflow: hidden; }
    .brand-logo { max-width: 108px; }
    .drawer-toggle { min-width: 64px; padding: 0 12px; }
    .app-entry { padding: 0 10px; font-size: 13px; }
    .site-main { padding: calc(var(--top-total) + 24px) 16px 34px; }
    .page-hero, .section { padding: 20px 16px; }
    .grid-2, .grid-3, .grid-4, .footer-grid, .app-layout { grid-template-columns: 1fr; }
    .number-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .media-slot.banner { height: 220px; }
    .media-slot.app-media { height: 320px; }
    .search-layer { inset: 0; width: 100%; height: 100dvh; transform: none; background: var(--bg-deep); }
    .search-layer.is-open { transform: none; }
    .search-card { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; padding: calc(18px + env(safe-area-inset-top)) 16px 24px; }
    .search-presets { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mobile-bottom { position: fixed; z-index: 70; 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(5, 1fr); background: #050706; border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
    .mobile-bottom a.is-active { background: var(--green); color: #08110C; font-weight: 800; }
    .section-head { align-items: start; flex-direction: column; }
    .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
    .topline-inner, .sitebar-inner { width: calc(100% - 32px); }
    .brand-logo { max-width: 96px; }
    .brand-text { font-size: 15px; }
    .app-entry { padding-inline: 8px; }
    .media-slot.banner { height: 200px; }
    .number-list { grid-template-columns: 1fr; }
}
