/* ==========================================================================
   FSR-VLN 复现台 — 官方代码移植主题
   深色工程蓝 + 双速撞色：快=青绿(#35e2ae) / 慢=琥珀(#ffb648)
   ========================================================================== */

:root {
  --bg: #06090f;
  --bg2: #0a0f17;
  --panel: #0b121c;
  --panel2: #0f1824;
  --line: #182a3d;
  --line2: #24415c;
  --ink: #e8f1fa;
  --ink2: #9db0c6;
  --ink3: #64768c;
  --fast: #35e2ae;
  --fast-bg: rgba(53, 226, 174, 0.1);
  --slow: #ffb648;
  --slow-bg: rgba(255, 182, 72, 0.1);
  --bad: #ff6f55;
  --r1: #4ea8ff;
  --r2: #35e2ae;
  --r3: #b98cff;
  --r4: #ffb648;
  --sans: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", "SF Mono", Consolas, monospace;
  --maxw: 1300px;
  --e: cubic-bezier(0.2, 0.75, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.68;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(110, 160, 210, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 160, 210, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 55% at 50% 0%, #000 15%, transparent 80%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50rem 28rem at 88% -10%, rgba(53, 226, 174, 0.07), transparent 62%),
    radial-gradient(44rem 26rem at 4% 4%, rgba(78, 168, 255, 0.06), transparent 60%);
}

::selection { background: rgba(53, 226, 174, 0.26); color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -0.022em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: 0.88em; color: #a8e8d2; background: rgba(53, 226, 174, 0.07);
  border: 1px solid rgba(53, 226, 174, 0.14); border-radius: 3px; padding: 1px 5px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: var(--fast); color: #04140f; padding: 8px 14px; border-radius: 3px; }

/* ------------------------------------------------------------------ 导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(24, 42, 61, 0.9);
  background: rgba(6, 9, 15, 0.84); backdrop-filter: blur(16px) saturate(150%);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 34px; height: 64px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand svg { display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.14; }
.brand-name { font-size: 14.5px; font-weight: 660; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; color: var(--ink3); letter-spacing: 0.16em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 13px; color: var(--ink2); padding: 7px 13px; border-radius: 4px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.045); }
.nav-links a.active { color: var(--fast); background: rgba(53, 226, 174, 0.08); }
.nav-tag { font-family: var(--mono); font-size: 11px; color: var(--ink2); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.nav-tag b { color: var(--fast); font-weight: 500; }

main { position: relative; z-index: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 34px; }

/* ------------------------------------------------------------------ 首屏 */
.hero { padding: 76px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 46px; align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 11px;
  background: rgba(11, 18, 28, 0.7);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--fast); box-shadow: 0 0 0 4px rgba(53, 226, 174, 0.15); animation: dot 2.6s var(--e) infinite; }
@keyframes dot { 50% { box-shadow: 0 0 0 7px rgba(53, 226, 174, 0.04); } }

.hero h1 { margin-top: 24px; font-size: clamp(34px, 4.6vw, 58px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
.hero h1 .hl-g { color: var(--fast); }
.hero h1 .hl-a { color: var(--slow); }
.hero h1 .en {
  display: block; margin-top: 16px; font-size: 0.36em; font-weight: 500;
  letter-spacing: -0.005em; color: var(--ink3); line-height: 1.4;
}
.lede { margin-top: 22px; max-width: 62ch; color: var(--ink2); font-size: 15.5px; }
.lede b { color: var(--ink); font-weight: 620; }
.hero-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 13px; font-weight: 520;
  color: var(--ink); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line2); border-radius: 4px;
  padding: 9px 16px; cursor: pointer; transition: all 0.2s var(--e);
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--ink3); transform: translateY(-1px); }
.btn.primary { background: var(--fast); color: #04140f; border-color: var(--fast); font-weight: 620; }
.btn.primary:hover { background: #4ef0bd; border-color: #4ef0bd; }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.hero-meta span::before { content: "// "; color: var(--line2); }

.hero-card { border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(180deg, var(--panel2), var(--panel)); overflow: hidden; }
.hc-head { display: flex; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 560; }
.hc-head .mono { font-size: 10.5px; color: var(--ink3); font-weight: 400; }
.hc-rows { padding: 6px 0; }
.hc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 17px; border-bottom: 1px solid rgba(24, 42, 61, 0.55); }
.hc-row:last-child { border-bottom: 0; }
.hc-row .hn { font-size: 12.8px; display: flex; align-items: center; gap: 8px; }
.hc-row .hn i { width: 7px; height: 7px; border-radius: 2px; }
.hc-row .hv { font-family: var(--mono); font-size: 17px; font-weight: 500; }
.hc-row .hv.best { color: var(--fast); }
.hc-row .hb { width: 74px; height: 4px; background: rgba(255, 255, 255, 0.055); border-radius: 2px; overflow: hidden; }
.hc-row .hb i { display: block; height: 100%; border-radius: 2px; }
.hc-foot { padding: 12px 17px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink3); line-height: 1.6; }
.hc-foot a { color: var(--ink2); border-bottom: 1px solid var(--line2); }

/* ------------------------------------------------------------------ 章节 */
.sec { padding: 80px 0 0; }
.sec-head { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(0, 390px); gap: 6px 30px; align-items: start; border-top: 1px solid var(--line); padding-top: 24px; }
.sec-num { font-family: var(--mono); font-size: 12px; color: var(--fast); letter-spacing: 0.1em; padding-top: 7px; }
.sec-head h2 { font-size: clamp(23px, 2.4vw, 32px); letter-spacing: -0.03em; }
.sec-head .dek { color: var(--ink2); font-size: 13.8px; padding-top: 5px; }

/* 卡片 */
.card { border: 1px solid var(--line); border-radius: 5px; background: var(--panel); overflow: hidden; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); flex-wrap: wrap; }
.card-h h3 { font-size: 13.2px; letter-spacing: 0.005em; }
.card-h .sub { font-family: var(--mono); font-size: 10.5px; color: var(--ink3); }
.card-b { padding: 18px; }

/* ------------------------------------------------------------------ 01 仓库 */
.repo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 22px; margin-top: 32px; align-items: start; }

.tree-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.tree-list .tl-root { font-family: var(--mono); font-size: 12.5px; color: var(--ink); padding-bottom: 10px; }
.tree-list .tl-dir { padding-left: 0; margin-bottom: 12px; }
.tree-list .tl-dir b { font-family: var(--mono); font-size: 12.5px; color: var(--fast); font-weight: 500; display: block; }
.tree-list .tl-dir em { font-style: normal; font-size: 11.8px; color: var(--ink3); display: block; margin: 1px 0 6px; }
.tree-list ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.tree-list .lv2 { padding: 4px 0; font-size: 12px; color: var(--ink2); }
.tree-list .lv2 code { font-size: 11px; }
.tree-list .lv2 em { display: block; font-style: normal; font-size: 11px; color: var(--ink3); margin-top: 1px; }

.map-tbl { width: 100%; border-collapse: collapse; font-size: 12.2px; }
.map-tbl th { text-align: left; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); font-weight: 500; padding: 7px 9px; border-bottom: 1px solid var(--line2); }
.map-tbl td { padding: 8px 9px; border-bottom: 1px solid rgba(24, 42, 61, 0.6); color: var(--ink2); vertical-align: top; }
.map-tbl td:first-child { color: var(--ink); font-weight: 560; width: 30%; }
.map-tbl code { font-size: 10.5px; background: none; border: 0; padding: 0; color: #8fd6bd; word-break: break-all; }
.map-tbl tr:last-child td { border-bottom: 0; }
.st { font-family: var(--mono); font-size: 9.5px; padding: 2px 7px; border-radius: 2px; white-space: nowrap; letter-spacing: 0.04em; }
.st.yes { color: var(--fast); background: var(--fast-bg); border: 1px solid rgba(53, 226, 174, 0.3); }
.st.no { color: var(--bad); background: rgba(255, 111, 85, 0.1); border: 1px solid rgba(255, 111, 85, 0.3); }
.st.part { color: var(--slow); background: var(--slow-bg); border: 1px solid rgba(255, 182, 72, 0.3); }

.callout { display: flex; gap: 16px; margin-top: 22px; padding: 20px 22px; border: 1px solid rgba(255, 182, 72, 0.28); border-left: 3px solid var(--slow); border-radius: 5px; background: rgba(255, 182, 72, 0.045); }
.callout-i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--slow); color: var(--slow); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700; margin-top: 2px; }
.callout b { color: var(--slow); }
.callout ol { margin: 10px 0 0; padding-left: 20px; font-size: 13px; color: var(--ink2); line-height: 1.75; }
.callout li { margin-bottom: 8px; }
.callout li b { color: var(--ink); }
.callout li code { font-size: 11.5px; }

/* ------------------------------------------------------------------ 02 HMSG */
.hmsg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; margin-top: 32px; align-items: start; }
.card.grow { min-width: 0; }
.hmsg-ctl { display: flex; align-items: center; gap: 12px; }

.layers-view { display: grid; grid-template-columns: 1fr; gap: 8px; }
.layer { border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, 0.012); opacity: 0.4; transition: all 0.45s var(--e); }
.layer.on { opacity: 1; border-color: rgba(53, 226, 174, 0.35); background: rgba(53, 226, 174, 0.035); }
.layer-tag { display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink3); }
.layer.on .layer-tag { color: var(--fast); border-bottom-color: rgba(53, 226, 174, 0.18); }
.layer-tag .mono { color: var(--slow); font-size: 10px; }
.layer-body { padding: 11px 14px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; }
.lc { font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; border-radius: 3px; border: 1px solid var(--line2); color: var(--ink2); opacity: 0; transform: translateY(4px); animation: pop 0.4s var(--e) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.lc.floor { color: var(--fast); border-color: rgba(53, 226, 174, 0.35); }
.lc.room { color: var(--r1); border-color: rgba(78, 168, 255, 0.3); }
.lc.view { color: var(--slow); border-color: rgba(255, 182, 72, 0.25); font-size: 9.8px; }
.lc.obj { color: var(--ink2); }
.lc.obj.small { border-style: dashed; color: var(--r3); border-color: rgba(185, 140, 255, 0.35); }
.lc.more { border-style: dashed; color: var(--ink3); }

.build-log { margin: 14px 18px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #05080d; font-size: 11px; line-height: 1.9; color: var(--ink3); max-height: 130px; overflow-y: auto; }
.build-log .ln { display: block; opacity: 0; animation: fadein 0.3s forwards; }
.build-log .ln b { color: var(--fast); font-weight: 500; }
.build-log .ln.dim { color: #445a71; }
@keyframes fadein { to { opacity: 1; } }

.side-stack { display: flex; flex-direction: column; gap: 22px; }
.fields { display: flex; flex-direction: column; gap: 0; }
.fld { padding: 9px 0; border-top: 1px solid rgba(24, 42, 61, 0.6); }
.fld:first-child { border-top: 0; padding-top: 0; }
.fld-n { font-family: var(--mono); font-size: 11px; color: var(--fast); }
.fld-d { font-size: 11.8px; color: var(--ink3); margin-top: 2px; line-height: 1.6; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.sg { background: var(--panel); padding: 12px 14px; }
.sg b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.sg span { font-family: var(--mono); font-size: 9.5px; color: var(--ink3); letter-spacing: 0.1em; text-transform: uppercase; }

/* ------------------------------------------------------------------ 03 动态 */
.run-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; margin-top: 32px; align-items: start; }
.list-card { position: sticky; top: 82px; }
.instr-list { max-height: 720px; overflow-y: auto; scrollbar-width: thin; }
.iput {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid transparent;
  padding: 9px 16px; cursor: pointer; color: var(--ink2); font-family: var(--sans); font-size: 12.4px;
  line-height: 1.45; transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.iput:hover { background: rgba(255, 255, 255, 0.035); color: var(--ink); }
.iput[aria-pressed="true"] { background: rgba(53, 226, 174, 0.07); color: var(--ink); border-left-color: var(--fast); }
.iput .it { min-width: 0; }
.iput .isub { display: block; font-family: var(--mono); font-size: 9.8px; color: var(--ink3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iput .ipip { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.iput .ipip.hit { background: var(--fast); box-shadow: 0 0 8px rgba(53, 226, 174, 0.6); }
.iput .ipip.miss { background: var(--bad); box-shadow: 0 0 8px rgba(255, 111, 85, 0.5); }
.igrp { padding: 10px 16px 5px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.15em; color: var(--ink3); text-transform: uppercase; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.instr-list > .igrp:first-child { border-top: 0; }

.stage { min-width: 0; }
.stage-head { align-items: flex-start; }
.stage-head h3 { font-size: 16px; line-height: 1.4; max-width: 62ch; }
.stage-ctl { display: flex; gap: 7px; flex: none; }
.stage-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; }

.timeline { display: flex; flex-direction: column; gap: 5px; }
.tl-row { display: grid; grid-template-columns: 96px 1fr 76px; gap: 12px; align-items: center; opacity: 0.3; transition: opacity 0.3s; }
.tl-row.live { opacity: 1; }
.tl-row.done { opacity: 1; }
.tl-k { font-family: var(--mono); font-size: 10px; color: var(--ink3); letter-spacing: 0.03em; }
.tl-row.live .tl-k { color: var(--fast); }
.tl-row.slow.live .tl-k { color: var(--slow); }
.tl-track { height: 6px; background: rgba(255, 255, 255, 0.05); border-radius: 2px; overflow: hidden; }
.tl-track i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--fast); transition: width 0.16s linear; }
.tl-row.slow .tl-track i { background: var(--slow); }
.tl-v { font-family: var(--mono); font-size: 10px; color: var(--ink3); text-align: right; }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.phase { border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, 0.012); opacity: 0.35; transition: all 0.4s var(--e); min-height: 96px; }
.phase.live { opacity: 1; border-color: rgba(53, 226, 174, 0.4); background: rgba(53, 226, 174, 0.04); box-shadow: inset 0 2px 0 var(--fast); }
.phase.live.slow { border-color: rgba(255, 182, 72, 0.4); background: rgba(255, 182, 72, 0.04); box-shadow: inset 0 2px 0 var(--slow); }
.phase.done { opacity: 0.85; }
.ph-h { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.ph-n { font-family: var(--mono); font-size: 9.5px; color: var(--fast); }
.phase.slow .ph-n { color: var(--slow); }
.ph-h em { font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--ink3); letter-spacing: 0.08em; margin-left: auto; }
.ph-b { padding: 10px 13px; font-family: var(--mono); font-size: 10.6px; line-height: 1.85; color: var(--ink2); }
.ph-b .kv { display: flex; justify-content: space-between; gap: 8px; }
.ph-b .kv span:first-child { color: var(--ink3); }
.ph-b .g { color: var(--fast); }
.ph-b .a { color: var(--slow); }
.ph-b .r { color: var(--bad); }
.ph-b .w { color: var(--ink); }

.mini-map-hold { position: relative; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px 0; background: #070c13; }
.mm-badge { position: absolute; top: 14px; right: 18px; font-family: var(--mono); font-size: 10.5px; padding: 4px 9px; border: 1px solid var(--line2); border-radius: 2px; background: rgba(6, 9, 15, 0.9); color: var(--ink2); z-index: 3; }
.mm-badge.hit { border-color: rgba(53, 226, 174, 0.5); color: var(--fast); }
.mm-badge.miss { border-color: rgba(255, 111, 85, 0.5); color: var(--bad); }
#miniMap svg { display: block; width: 100%; height: auto; }
#miniMap text { font-family: var(--mono); }
.mini-foot { padding: 8px 4px 10px; font-size: 10px; color: var(--ink3); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mini-foot i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: -1px; }

.tip { position: fixed; z-index: 90; pointer-events: none; opacity: 0; background: #08111b; border: 1px solid var(--line2); border-radius: 3px; padding: 6px 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); transition: opacity 0.12s; max-width: 280px; line-height: 1.6; white-space: pre-line; }
.tip.on { opacity: 1; }

/* ------------------------------------------------------------------ 04 结果 */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 30px; flex-wrap: wrap; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; padding: 11px 20px 13px; font-family: var(--sans); font-size: 13.4px; color: var(--ink2); margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--fast); }
.tab span { font-family: var(--mono); font-size: 10px; color: var(--ink3); margin-left: 7px; }
.tab[aria-selected="true"] span { color: var(--fast); }
.panel { display: none; padding-top: 26px; }
.panel.on { display: block; }

.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.res-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; color: var(--ink2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 13px; height: 2px; border-radius: 1px; }
.legend i.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px) !important; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 12.2px; }
table.tbl th { text-align: right; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); font-weight: 500; padding: 7px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.tbl th:first-child, table.tbl th:nth-child(2) { text-align: left; }
table.tbl td { padding: 8px 8px; text-align: right; border-bottom: 1px solid rgba(24, 42, 61, 0.6); font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink2); white-space: nowrap; }
table.tbl td:first-child, table.tbl td:nth-child(2) { text-align: left; font-family: var(--sans); }
table.tbl td:first-child { color: var(--ink); font-weight: 560; }
table.tbl tr.ours td { background: rgba(53, 226, 174, 0.04); color: var(--ink); }
table.tbl tr.ours td:first-child { color: var(--fast); }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td.dim { color: var(--ink3); }
table.tbl td.win { color: var(--fast); font-weight: 500; }

.verdict { margin-top: 20px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--fast); border-radius: 4px; background: rgba(53, 226, 174, 0.035); font-size: 13px; color: var(--ink2); line-height: 1.75; }
.verdict b { color: var(--ink); }
.verdict .good { color: var(--fast); }
.verdict .warn { color: var(--slow); }

.abl { display: flex; flex-direction: column; gap: 15px; }
.abl-row .ah { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 5px; }
.abl-row .ah b { font-size: 12.4px; font-weight: 560; }
.abl-row .ah span { font-family: var(--mono); font-size: 10.5px; color: var(--ink2); }
.abl-track { height: 26px; background: rgba(255, 255, 255, 0.045); border-radius: 2px; position: relative; overflow: hidden; }
.abl-fill { height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, rgba(78, 168, 255, 0.5), rgba(78, 168, 255, 0.28)); border-right: 2px solid #7cc0ff; transition: width 1s var(--e); }
.abl-row.hi .abl-fill { background: linear-gradient(90deg, rgba(53, 226, 174, 0.55), rgba(53, 226, 174, 0.25)); border-right-color: var(--fast); }
.abl-track .ghost { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.3); }
.abl-track .ghost::after { content: attr(data-l); position: absolute; top: 3px; left: 5px; font-family: var(--mono); font-size: 8.5px; color: var(--ink3); white-space: nowrap; }
.abl-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.3px; color: var(--ink2); line-height: 1.7; }
.abl-note b { color: var(--fast); }
.abl-note .pap { color: var(--ink3); font-size: 11.5px; display: block; margin-top: 6px; }

/* ------------------------------------------------------------------ 05 差异 */
.gap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; align-items: start; }
.faithful, .sim { list-style: none; margin: 0; padding: 0; }
.faithful li, .sim li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid rgba(24, 42, 61, 0.6); font-size: 12.5px; color: var(--ink2); line-height: 1.7; }
.faithful li:first-child, .sim li:first-child { border-top: 0; padding-top: 0; }
.faithful li::before { content: "✓"; position: absolute; left: 0; top: 9px; color: var(--fast); font-family: var(--mono); font-size: 11px; }
.faithful li:first-child::before { top: 0; }
.sim li::before { content: "≈"; position: absolute; left: 0; top: 9px; color: var(--slow); font-family: var(--mono); font-size: 12px; }
.sim li:first-child::before { top: 0; }
.faithful b, .sim b { color: var(--ink); font-weight: 560; }
.faithful code, .sim code { font-size: 11px; }

.run-cmd { margin-top: 22px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); overflow: hidden; }
.rc-head { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 560; }
.run-cmd pre { margin: 0; padding: 16px 18px; overflow-x: auto; background: #05080d; font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--ink2); }
.run-cmd .c { color: #445a71; }
.rc-note { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 11.8px; color: var(--ink3); }
.rc-note code { font-size: 11px; }

/* ------------------------------------------------------------------ 页脚 */
footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 26px 0 42px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; color: var(--ink3); line-height: 1.9; }
.foot a { color: var(--ink2); border-bottom: 1px solid var(--line2); }
.foot a:hover { color: var(--fast); }
.foot-r { text-align: right; }

/* ------------------------------------------------------------------ 动效 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--e), transform 0.7s var(--e); }
.reveal.in { opacity: 1; transform: none; }
@keyframes ringPulse { 0% { r: 3; opacity: 0.9; } 100% { r: 14; opacity: 0; } }
.pulse { animation: ringPulse 1.9s var(--e) infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1150px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-card { max-width: 520px; }
  .repo-grid, .gap-grid, .res-grid, .res-grid.two { grid-template-columns: minmax(0, 1fr); }
  .hmsg-layout { grid-template-columns: minmax(0, 1fr); }
  .side-stack { flex-direction: row; flex-wrap: wrap; }
  .side-stack > .card { flex: 1 1 300px; }
  .run-layout { grid-template-columns: minmax(0, 1fr); }
  .list-card { position: static; }
  .instr-list { max-height: 300px; }
  .sec-head { grid-template-columns: 54px minmax(0, 1fr); }
  .sec-head .dek { grid-column: 2; padding-top: 0; }
}
@media (max-width: 780px) {
  .nav-links { display: none; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 52px; }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .tl-row { grid-template-columns: 80px 1fr 56px; }
  .sec { padding-top: 60px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nav-tag { display: none; }
  .stage-head { flex-direction: column; }
  .hero h1 .en { font-size: 0.42em; }
}