/* ==========================================================
   星域计划 · 官网 V1.2 视觉系统「公益机构」版
   · 白天的页面讲清楚事，夜晚的画面让人想去
   · 明亮的纸面（白 / 雾蓝）承载信息，深夜蓝区块承载画面
   · 琥珀色 = 被正确使用的那盏灯：只用于主要行动与“通过”
   · 红色 = 观星红光：只用于未通过 / 警示
   ========================================================== */

:root {
  --paper: #ffffff;
  --mist: #eef2f6;
  --mist-2: #e3e9f0;
  --line: #d9e0e8;
  --ink: #0f1b2d;
  --ink-2: #435168;
  --ink-3: #78859a;
  --night: #0a1426;
  --night-2: #13233d;
  --night-3: #1d3150;
  --moon: #e9eef5;
  --lamp: #f2a33a;
  --lamp-ink: #a8620c;
  --lamp-tint: #fdf1e0;
  --red: #c2392e;
  --red-tint: #fbe9e7;
  --sim: #3a6ea5;
  --sim-tint: #e6eef8;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", serif;

  --max: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --r: 14px;
  --r-s: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p + p { margin-top: .9em; }
b, strong { font-weight: 600; }
::selection { background: var(--lamp); color: var(--night); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lamp); color: var(--night); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- 字阶 ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: .01em; color: inherit; }
h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.18; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; }
h3 { font-size: 21px; line-height: 1.45; }
h4 { font-size: 17px; }
.lead { font-size: clamp(18px, 1.7vw, 20px); color: var(--ink-2); max-width: 36em; line-height: 1.85; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.kicker { display: inline-block; font-size: 15px; font-weight: 600; color: var(--lamp-ink); margin-bottom: 14px; }
.serif { font-family: var(--serif); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 64px; }

/* ---------- 顶栏 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand svg { width: 40px; height: 40px; }
.brand .wm { font-weight: 700; font-size: 20px; letter-spacing: .14em; line-height: 1.1; }
.brand .wm small { display: block; font-weight: 500; font-size: 10px; letter-spacing: .2em; color: var(--ink-3); margin-top: 4px; }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a { padding: 8px 14px; font-size: 16px; font-weight: 500; color: var(--ink-2); border-radius: 8px; }
.top-nav a:hover { color: var(--ink); background: var(--mist); }
.top-nav a[aria-current] { color: var(--ink); background: var(--mist); }
.tools { display: flex; align-items: center; gap: 8px; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.tool:hover { color: var(--ink); border-color: var(--ink-3); }
.tool .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.tool[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.tool[aria-pressed="true"] .dot { background: #fff; }
.tool .bars { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.tool .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.bar .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }

.index-panel { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: none; overflow-y: auto; padding-bottom: 48px; }
.index-panel.open { display: block; }
.index-panel .bar { border-bottom: 1px solid var(--line); }
.index-panel .bar .tool { margin-left: auto; }
.index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; padding-top: 48px; }
.index-grid h4 { font-size: 14px; color: var(--ink-3); font-weight: 600; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.index-grid a { display: block; padding: 12px 0; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line); }
.index-grid a span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.index-grid a:hover, .index-grid a[aria-current] { color: var(--lamp-ink); }
.index-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---------- 按钮与链接 ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; font-size: 16px; font-weight: 600; border-radius: 26px; border: 1.5px solid var(--ink); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.lamp { background: var(--lamp); border-color: var(--lamp); color: var(--night); }
.btn.lamp:hover { background: #f7b65c; border-color: #f7b65c; color: var(--night); }
.on-night .btn:not(.lamp), .btn.ghost { border-color: rgba(233,238,245,.5); color: #fff; }
.on-night .btn:not(.lamp):hover, .btn.ghost:hover { background: #fff; color: var(--night); border-color: #fff; }
.link { font-weight: 600; color: var(--ink); background-image: linear-gradient(var(--lamp), var(--lamp)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; }
.link:hover { color: var(--lamp-ink); }
.on-night .link { color: #fff; }
.more { display: inline-block; margin-top: 28px; }

/* ---------- 分区 ---------- */
.band { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.band.mist { background: var(--mist); }
.band.night { background: var(--night); color: var(--moon); }
.band.tight { padding: clamp(48px, 6vw, 72px) 0; }
.on-night .lead, .on-night .muted { color: #b4c0d2; }
.on-night .small { color: #8796ad; }
.on-night .kicker { color: var(--lamp); }
.head { max-width: 760px; margin-bottom: 48px; }
.head .lead { margin-top: 18px; }
.head.center { text-align: center; }
.head.center .lead { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split.r { grid-template-columns: 1.1fr .9fr; }

/* ---------- 夜景插画 ---------- */
.scene { position: relative; overflow: hidden; background: var(--night); border-radius: var(--r); aspect-ratio: 4 / 3; }
.scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene.wide { aspect-ratio: 16 / 9; }
.scene.tall { aspect-ratio: 4 / 5; }
.scene .cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-size: 13px; color: #c9d3e1; background: rgba(10,20,38,.6); padding: 3px 10px; border-radius: 12px; }

/* ---------- 首页首屏 ---------- */
.hero { position: relative; min-height: min(calc(100svh - 72px), 900px); background: var(--night); color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero canvas, .hero .land { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .land { pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 200px; }
.hero h1 { max-width: 10em; text-shadow: 0 2px 40px rgba(10,20,38,.8); }
.hero .lead { color: #c9d3e1; margin-top: 24px; max-width: 30em; }
.hero .lead b { color: #fff; font-weight: 600; }
.lamp-ctl { position: absolute; z-index: 3; right: var(--gut); bottom: 28px; display: flex; align-items: center; gap: 20px; padding: 14px 16px 14px 22px; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 40px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.lamp-ctl .read { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.lamp-ctl .read b { font-size: 26px; font-weight: 700; color: var(--lamp-ink); vertical-align: -2px; margin-right: 2px; }
.lamp-off .lamp-ctl .read b { color: #2f7a52; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.switch .track { width: 52px; height: 30px; border-radius: 15px; background: var(--lamp); position: relative; transition: background .3s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 25px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .3s; }
.switch[aria-pressed="false"] .track { background: #c3ccd8; }
.switch[aria-pressed="false"] .track::after { left: 3px; }
.lamp-note { position: absolute; z-index: 3; left: var(--gut); bottom: 40px; max-width: 24em; font-size: 15px; color: #c9d3e1; }

/* ---------- 内页首屏 ---------- */
.page-hero { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,38,.92) 0%, rgba(10,20,38,.6) 50%, rgba(10,20,38,.1) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(72px, 10vw, 136px); }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); max-width: 12em; }
.page-hero .lead { color: #c9d3e1; margin-top: 22px; }
.page-hero .lead b { color: #fff; }
.crumb { font-size: 14px; color: #93a2b8; margin-bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a:hover { color: #fff; }

/* ---------- 数字带 ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--r); box-shadow: 0 1px 0 var(--line), 0 20px 50px -20px rgba(15,27,45,.25); margin-top: -64px; position: relative; z-index: 4; }
.facts > div { padding: 28px 28px 26px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts .n { font-size: clamp(36px, 4vw, 52px); font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts .n small { font-size: 18px; margin-left: 4px; color: var(--ink-2); }
.facts p { margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.band.mist .card { border-color: transparent; }
.card .scene { border-radius: 0; aspect-ratio: 16 / 10; }
.card .bd { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .go { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; color: var(--lamp-ink); }
a.card { transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(15,27,45,.35); }
.on-night .card { background: var(--night-2); border-color: var(--night-3); color: var(--moon); }
.on-night .card p { color: #b4c0d2; }

/* 四条标准 */
.crit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.crit > div { background: var(--paper); border-radius: var(--r); padding: 28px 24px; display: flex; flex-direction: column; }
.crit .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--night); display: grid; place-items: center; margin-bottom: 20px; }
.crit .icon svg { width: 30px; height: 30px; }
.crit .n { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.crit .k { font-size: 30px; font-weight: 700; margin: 2px 0 10px; line-height: 1.3; }
.crit .q { font-size: 15px; color: var(--ink-2); }
.crit .chk { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--ink-2); }
.crit .chk b { display: block; color: var(--lamp-ink); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* 四步 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps > div { position: relative; padding: 0 24px 0 0; }
.steps .no { width: 52px; height: 52px; border-radius: 50%; background: var(--lamp); color: var(--night); font-weight: 700; font-size: 20px; display: grid; place-items: center; position: relative; z-index: 1; }
.steps > div:not(:last-child)::before { content: ""; position: absolute; left: 52px; right: 0; top: 26px; border-top: 2px dashed rgba(242,163,58,.5); }
.steps .v { font-size: clamp(30px, 3vw, 40px); font-weight: 700; margin-top: 22px; line-height: 1.2; }
.steps .en { font-size: 14px; color: var(--ink-3); letter-spacing: .08em; margin-top: 2px; }
.on-night .steps .en { color: #8796ad; }
.steps p { margin-top: 12px; font-size: 16px; color: var(--ink-2); max-width: 15em; }
.on-night .steps p { color: #b4c0d2; }

/* ---------- 改造前后对比 ---------- */
.compare { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--night); user-select: none; touch-action: pan-y; }
.compare .layer { position: absolute; inset: 0; }
.compare .layer svg { width: 100%; height: 100%; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: var(--night); display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tagL, .compare .tagR { position: absolute; top: 16px; z-index: 2; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 14px; pointer-events: none; }
.compare .tagL { left: 16px; background: rgba(255,255,255,.92); color: var(--ink); }
.compare .tagR { right: 16px; background: var(--lamp); color: var(--night); }
.compare input:focus-visible ~ .handle::after { outline: 3px solid var(--lamp); outline-offset: 2px; }

/* ---------- 列表 ---------- */
.list { list-style: none; }
.list li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { border-top: 1px solid var(--line); }
.list .i { width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 14px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.band.mist .list .i { background: var(--paper); }
.list .i.ok { background: var(--lamp-tint); color: var(--lamp-ink); }
.list .i.no { background: var(--red-tint); color: var(--red); }
.list .d { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.on-night .list li { border-color: var(--night-3); }
.on-night .list .i { background: var(--night-3); color: var(--moon); }
.on-night .list .d { color: #b4c0d2; }
.list.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.list.cols li:nth-child(2) { border-top: 1px solid var(--line); }

/* 现场公示牌 */
.board { background: var(--night); color: var(--moon); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10,20,38,.6); }
.board .hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 28px; background: var(--red); color: #fff; }
.board .hd strong { font-size: 20px; letter-spacing: .1em; }
.board .hd span { font-size: 13px; opacity: .85; }
.board ol { list-style: none; padding: 10px 28px 20px; }
.board li { display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-bottom: 1px solid var(--night-3); font-weight: 600; }
.board li:last-child { border-bottom: 0; }
.board .i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #e2766c; color: #ff9d92; font-size: 13px; display: grid; place-items: center; }
.board .d { display: block; font-weight: 400; font-size: 14px; color: #a9b6c9; }

/* 天上/地上 */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pair > div { border-radius: var(--r); padding: 32px; background: var(--paper); border: 1px solid var(--line); }
.pair > div.on { background: var(--night); color: var(--moon); border-color: var(--night); }
.pair .tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 12px; background: var(--mist); color: var(--ink-2); }
.pair .on .tag { background: var(--lamp); color: var(--night); }
.pair h3 { margin: 16px 0 10px; font-size: 24px; }
.pair p { color: var(--ink-2); }
.pair .on p { color: #b4c0d2; }

/* ---------- 档案卡 ---------- */
.record { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 50px -24px rgba(15,27,45,.3); }
.record .scene { border-radius: 0; aspect-ratio: auto; min-height: 340px; }
.record .bd { padding: clamp(28px, 4vw, 44px); }
.record .id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.record .code { font-size: 28px; font-weight: 700; letter-spacing: .04em; }
.record h3 { font-size: 24px; margin-top: 10px; }
.fields { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px 16px; font-size: 15px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.fields dt { color: var(--ink-3); }
.fields .tbd { color: var(--ink-3); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 12px; background: var(--mist); color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--lamp-tint); color: var(--lamp-ink); }
.badge.fix { background: #fbf3d9; color: #8a6a0b; }
.badge.pause { background: var(--mist); color: var(--ink-2); }
.badge.void { background: var(--mist); color: var(--ink-3); text-decoration: line-through; }
.badge.sim { background: var(--sim-tint); color: var(--sim); }

.dossier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dossier > section { background: var(--paper); border-radius: var(--r); padding: 26px; }
.dossier h4 { font-size: 19px; }
.dossier h4 span { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.dossier .fields { font-size: 14px; grid-template-columns: 5.6em 1fr; margin-top: 14px; }

/* 地图 */
.chart { position: relative; aspect-ratio: 16 / 8; min-height: 320px; border-radius: var(--r); overflow: hidden; background: var(--night); }
.chart > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8796ad; }
.chart .pin i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #8796ad; }
.chart .overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
.chart .overlay > div { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 26px 28px; max-width: 440px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.chart .overlay p { color: var(--ink-2); font-size: 15px; }
.chart .legend { position: absolute; left: 18px; bottom: 14px; display: flex; gap: 18px; font-size: 13px; color: #a9b6c9; }
.chart .legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart .legend i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #8796ad; }
.chart .legend i.lit { background: var(--lamp); border-color: var(--lamp); }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; border-left: 2px solid var(--line); }
.on-night .timeline::before { border-color: var(--night-3); }
.timeline li { position: relative; padding: 0 0 28px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); }
.band.mist .timeline li::before { background: var(--mist); }
.on-night .timeline li::before { background: var(--night); border-color: #8796ad; }
.timeline li.pass::before { background: var(--lamp); border-color: var(--lamp); }
.timeline li.fail::before { background: var(--red); border-color: var(--red); }
.timeline .t { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.timeline li.fail .t { color: var(--red); }
.timeline li.pass .t { color: var(--lamp-ink); }
.on-night .timeline li.pass .t { color: var(--lamp); }
.on-night .timeline li.fail .t { color: #ff8d80; }
.timeline h3 { font-size: 19px; margin: 2px 0 4px; }
.timeline p { color: var(--ink-2); font-size: 15px; }
.on-night .timeline p { color: #b4c0d2; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 600px; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--mist); font-weight: 600; color: var(--ink-2); font-size: 14px; }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 600; }
td.hl { color: var(--ink); background: var(--lamp-tint); font-weight: 500; }

/* ---------- 引言 / 说明 ---------- */
.quote { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.6; letter-spacing: .04em; max-width: 20em; }
.note { display: flex; gap: 12px; background: var(--sim-tint); color: #23476e; font-size: 15px; padding: 14px 18px; border-radius: var(--r-s); line-height: 1.7; }
.note::before { content: "i"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--sim); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: 2px; font-family: Georgia, serif; }
.note b { color: #16314f; }
.callout { background: var(--lamp-tint); border-radius: var(--r-s); padding: 18px 22px; margin-top: 28px; color: #5c3a08; }
.callout b { color: #3f2804; }

/* 影像 */
.film { position: relative; aspect-ratio: 21 / 9; border-radius: var(--r); overflow: hidden; background: var(--night); }
.film > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.film .in { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: radial-gradient(ellipse at center, rgba(10,20,38,.55), rgba(10,20,38,.1)); }
.film .play { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; }
.film .play::after { content: ""; border-left: 18px solid var(--night); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.film p { color: #dbe3ee; font-size: 16px; }

/* 表单 */
.form { display: grid; gap: 22px; margin-top: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-size: 15px; font-weight: 600; }
.req { color: var(--red); margin-left: 4px; }
input, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--lamp); box-shadow: 0 0 0 3px var(--lamp-tint); }
fieldset[disabled] { opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 20px; font-size: 15px; background: var(--paper); cursor: pointer; }
.chips input:checked + span { border-color: var(--lamp); background: var(--lamp-tint); color: var(--lamp-ink); }
.form-panel { background: var(--paper); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); }
.form-done { display: none; margin-top: 20px; }
.form-done.show { display: block; }

/* FAQ */
.faq { max-width: 880px; }
.faq details { background: var(--paper); border-radius: var(--r-s); margin-bottom: 10px; border: 1px solid var(--line); }
.band.mist .faq details { border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-size: 18px; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--lamp); }
.faq .a { padding: 0 24px 22px; color: var(--ink-2); max-width: 46em; }

/* 下载 */
.doc { display: flex; gap: 18px; align-items: center; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.doc .ic { width: 52px; height: 64px; flex-shrink: 0; border-radius: 6px; background: var(--night); color: var(--lamp); font-size: 12px; font-weight: 700; display: grid; place-items: end center; padding-bottom: 8px; }
.doc h3 { font-size: 17px; }
.doc p { font-size: 14px; color: var(--ink-3); margin-top: 2px; }

/* 宣言 */
.manifesto p { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.8; letter-spacing: .05em; max-width: 22em; }
.manifesto p + p { margin-top: 1.2em; }
.manifesto .dim { color: #9fb0c6; font-weight: 400; }
.manifesto .big { font-size: clamp(34px, 5vw, 60px); line-height: 1.35; }
.manifesto .seal { color: var(--lamp); }

/* 文章 */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: 104px; font-size: 15px; background: var(--mist); border-radius: var(--r); padding: 20px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc a { display: block; padding: 7px 0; color: var(--ink-2); }
.toc a:hover { color: var(--lamp-ink); }
.article { max-width: 46em; }
.article h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 64px 0 18px; }
.article p { color: var(--ink-2); }

/* 收尾 CTA */
.cta { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: calc(var(--r) * 1.5); padding: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta > * { position: relative; }
.cta h2 { max-width: 14em; }
.cta .lead { color: #c9d3e1; margin-top: 14px; }
.cta .btns { margin-top: 0; justify-content: flex-end; }

.next { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.next a { background: var(--paper); border-radius: var(--r); padding: 22px 22px 20px; border: 1px solid var(--line); }
.next .k { font-size: 13px; color: var(--ink-3); }
.next .v { font-size: 19px; font-weight: 700; margin-top: 2px; }
.next a:hover { border-color: var(--lamp); }
.on-night .next a { background: var(--night-2); border-color: var(--night-3); }
.on-night .next .v { color: #fff; }

/* 页脚 */
.site-footer { background: var(--night); color: #a9b6c9; padding: 72px 0 32px; font-size: 15px; }
.site-footer .brand .wm { color: #fff; }
.site-footer .brand .wm small { color: #8796ad; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.foot h5 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.foot a { display: block; padding: 4px 0; }
.foot a:hover { color: var(--lamp); }
.foot .pledge { margin-top: 18px; max-width: 20em; line-height: 1.8; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--night-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #8796ad; }
.foot-bottom a:hover { color: #fff; }

/* 站点索引 */
.tree { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tree > section { background: var(--paper); border-radius: var(--r); padding: 28px; }
.tree h3 { font-size: 22px; }
.tree h3 span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.tree ul { list-style: none; margin-top: 14px; }
.tree li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.tree li a b { font-size: 17px; }
.tree li a span { grid-column: 1; color: var(--ink-2); font-size: 14px; }
.tree li a em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 13px; color: var(--ink-3); }
.tree li a:hover b { color: var(--lamp-ink); }

/* 红光模式 */
html.red-mode body > * { filter: grayscale(1) sepia(1) saturate(8) hue-rotate(-45deg) brightness(.55) contrast(1.1); }
html.red-mode body { background: #000; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .top-nav, .bar > .tools .btn { display: none; }
  .tools { margin-left: auto; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .index-grid { grid-template-columns: 1fr 1fr; }
  .crit, .cards.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .split, .split.r, .record, .pair, .doc-layout, .cta, .tree { grid-template-columns: 1fr; }
  .cta .btns { justify-content: flex-start; }
  .cards { grid-template-columns: 1fr; }
  .cards.two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps > div::before { display: none; }
  .dossier { grid-template-columns: 1fr; }
  .list.cols { grid-template-columns: 1fr; }
  .list.cols li:nth-child(2) { border-top: 0; }
  .next { grid-template-columns: 1fr 1fr; }
  .toc { position: static; }
  .record .scene { min-height: 220px; }
  .page-hero .bg::after { background: linear-gradient(180deg, rgba(10,20,38,.55), rgba(10,20,38,.92)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar { height: 64px; }
  .brand .wm small { display: none; }
  .tool .lbl { display: none; }
  .tool { padding: 0 12px; }
  .crit, .cards.four, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .index-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .hero .wrap { padding-bottom: 240px; }
  .lamp-ctl { left: var(--gut); right: var(--gut); bottom: 20px; justify-content: space-between; }
  .lamp-note { display: none; }
  .facts > div { padding: 22px 18px; }
  .compare { aspect-ratio: 4 / 3; }
  .film { aspect-ratio: 4 / 3; }
  .chart { aspect-ratio: 3 / 4; }
  .btn { flex: 1 1 auto; }
}

.page-hero .bg > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .btns { margin-top: 32px; }
.side-card { background: var(--paper); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.band:not(.mist) .side-card { background: var(--mist); }
.h3gap { margin-bottom: 14px; }
