/* ============================================================
   深色电影感重构层 · AI × BUILD
   覆盖 tokens/main 的浅色基调：#0A0C10 底 + 暖白文字 + 单一科技蓝
   ============================================================ */

:root {
  --cbg: #0A0C10;
  --cbg-2: #10131A;
  --cink: #F2EEE6;
  --cink-2: rgba(242, 238, 230, .62);
  --cink-3: rgba(242, 238, 230, .38);
  --cline: rgba(242, 238, 230, .12);
  --cblue: #3B82F6;
  --mega: clamp(52px, 9.5vw, 132px);
}

body { background: var(--cbg); color: var(--cink); }

/* ---------- 导航：暗底毛玻璃 ---------- */
.nav {
  background: rgba(10, 12, 16, .55);
  border-bottom-color: transparent;
}
.nav.scrolled {
  background: rgba(10, 12, 16, .82);
  border-bottom-color: var(--cline);
}
.nav-logo { color: var(--cink); }
.nav-links a { color: var(--cink-2); }
.nav-links a:hover { color: var(--cink); }
.nav-links a b { color: var(--cblue); }
.nav-cta { background: var(--cblue); }

/* ---------- 3DGS 全屏铺底层 ---------- */
#gsLayer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--cbg);
}
#gsLayer canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; filter: brightness(0.62) saturate(0.85) contrast(1.06); }
/* 电影感压暗 + 文字区可读性 */
#gsLayer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,16,.78) 0%, rgba(10,12,16,.38) 38%, rgba(10,12,16,0) 65%),
    linear-gradient(0deg, rgba(10,12,16,.72) 0%, rgba(10,12,16,0) 34%),
    radial-gradient(120% 100% at 50% 42%, rgba(10,12,16,0) 46%, rgba(10,12,16,.55) 100%);
}

/* hero + 看见 透明底，让铺底层透出；后续章节实底盖住 */
.heroX, #see { background: transparent; }
.section.solid { background: var(--cbg); }

/* ---------- 首屏 ---------- */
.heroX {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) clamp(70px, 12vh, 130px);
}
.heroX-inner { max-width: 1100px; }
.eyebrowX {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--cink-3);
  margin-bottom: 26px;
}
.mega {
  font-size: var(--mega);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--cink);
  text-wrap: balance;
}
.mega .ml { display: block; overflow: hidden; }
.mega .ml i { display: block; font-style: normal; will-change: transform; }
.closing .mega .ml { display: inline; overflow: visible; }
.leadX {
  margin-top: 30px;
  font-size: var(--lead);
  color: var(--cink-2);
  line-height: 1.8;
  max-width: 560px;
}
.hero-cta { margin-top: 40px; }
.btn--ghost {
  display: inline-block;
  font-size: 14px;
  color: var(--cink);
  border: 1px solid rgba(242, 238, 230, .3);
  border-radius: 999px;
  padding: 12px 30px;
  text-decoration: none;
  transition: border-color .3s, background .3s;
}
.btn--ghost:hover { border-color: var(--cblue); background: rgba(59, 130, 246, .12); }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(70px, 12vh, 130px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--cink-3);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 14px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 64px;
  background: linear-gradient(180deg, var(--cblue), transparent);
  animation: hintDrop 2.2s ease-in-out infinite;
}
@keyframes hintDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 看见工地：滚动长句 ---------- */
#see { position: relative; height: 320vh; }
.see-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.see-line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  max-width: 900px;
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cink);
  opacity: 0;
}
.see-line b { color: var(--cblue); font-weight: 700; }
.see-line .sub {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--cink-3);
}
.see-tag {
  position: absolute;
  bottom: 8vh;
  left: var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--cink-3);
}
.static-mode .see-line { position: static; opacity: 1; margin-bottom: 5vh; }
.static-mode #see { height: auto; }
.static-mode .see-sticky { position: static; height: auto; display: block; }

/* ---------- 重建：无人机环绕一周 · 角向泼墨重建 ---------- */
#recon { position: relative; height: 420vh; background: var(--cbg); }
.recon-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#reconGL { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.recon-head {
  position: absolute;
  top: 11vh;
  left: var(--gutter);
  max-width: 620px;
  pointer-events: none;
}
.recon-head .sec-sub { max-width: 520px; }
.recon-hud {
  position: absolute;
  top: 12vh;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-mono);
  pointer-events: none;
}
.recon-pct {
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--cink-3);
}
.recon-pct b {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--cink);
  margin-left: 10px;
}
.recon-pct .pct-sign { color: var(--cink-2); margin-left: 2px; }
.recon-ring { width: 64px; height: 64px; }
.recon-ring .rr-bg { stroke: var(--cline); }
.recon-ring #reconRingFg { stroke: var(--cblue); transition: stroke .5s; }
.recon-tele {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--cink-3);
  font-variant-numeric: tabular-nums;
}
.recon-phase {
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--cblue);
  transition: color .5s;
}
.recon-pin[data-phase="takeoff"] .recon-phase { color: #F59E0B; }
.recon-pin[data-phase="return"] .recon-phase,
.recon-pin[data-phase="landing"] .recon-phase { color: #93C5FD; }
.recon-pin[data-phase="landed"] .recon-phase { color: #34D399; }
.recon-pin[data-phase="holo"] .recon-phase { color: #22D3EE; }
.recon-pin[data-phase="holo"] .recon-ring #reconRingFg { stroke: #22D3EE; }
.recon-holo-note {
  font-size: 12px;
  letter-spacing: .3em;
  color: #22D3EE;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s, transform .6s;
}
.recon-pin[data-phase="holo"] .recon-holo-note { opacity: 1; transform: none; }
.recon-pin[data-phase="holo"] .recon-complete { opacity: 0; }
.recon-complete {
  font-size: 12px;
  letter-spacing: .3em;
  color: #34D399;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s, transform .6s;
}
.recon-pin.done .recon-complete { opacity: 1; transform: none; }
.recon-pin.done .recon-pct b { color: #34D399; }
.recon-pin.done .recon-ring #reconRingFg { stroke: #34D399; }
.recon-feats {
  position: absolute;
  bottom: 8vh;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--cink-2);
  pointer-events: none;
}
.recon-feats i { width: 4px; height: 4px; border-radius: 50%; background: var(--cblue); }
.recon-tag {
  position: absolute;
  bottom: 8vh;
  left: var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--cink-3);
  pointer-events: none;
}
.no-webgl #reconGL, .no-webgl .recon-hud { display: none; }
.no-webgl #recon { height: auto; }
.no-webgl .recon-pin { position: static; height: auto; padding: 14vh 0; }
.no-webgl .recon-head { position: static; }
.static-mode #recon { height: auto; }
.static-mode .recon-pin { position: static; height: 100vh; }

/* ---------- 指挥看板：暗底里的浅色大屏 ---------- */
#board .board-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 238, 230, .08);
}

/* ---------- 章节头（暗底版式） ---------- */
.sec-head { max-width: 880px; margin-bottom: clamp(40px, 6vh, 64px); }
.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--cblue);
  margin-bottom: 20px;
}
.sec-eyebrow b { font-weight: 400; color: var(--cink-3); margin-right: 10px; }
.sec-title {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--cink);
}
.sec-sub {
  margin-top: 20px;
  font-size: var(--lead);
  color: var(--cink-2);
  line-height: 1.8;
  max-width: 620px;
}

/* ---------- 理解工地：机械臂舞台 ---------- */
.stage-wrap {
  position: relative;
  height: min(86vh, 760px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--cbg-2);
  box-shadow: inset 0 0 0 1px var(--cline);
}
.stage-wrap canvas { display: block; width: 100%; height: 100%; }
.stage-hud {
  position: absolute;
  left: 22px; top: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: rgba(220, 231, 245, .62);
  pointer-events: none;
  line-height: 1.9;
  white-space: pre;
}
.stage-hud b { color: #7FB4FF; font-weight: 400; }
.stage-phase {
  position: absolute;
  right: 22px; top: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  color: rgba(220, 231, 245, .62);
  pointer-events: none;
}
.cv-box {
  position: absolute;
  border: 1.5px solid #34D399;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  box-shadow: 0 0 12px rgba(52, 211, 153, .25);
}
.cv-box span {
  position: absolute;
  top: -18px; left: -1px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: #34D399;
  white-space: nowrap;
}
.cv-box.on { opacity: 1; }

/* ---------- 爆炸分解 ---------- */
#explode { position: relative; background: var(--cbg); height: 280vh; }
.explode-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
}
.explode-stage {
  position: relative;
  height: min(78vh, 720px);
}
.explode-stage canvas { display: block; width: 100%; height: 100%; }
.x-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--cink-2);
  opacity: 0;
  transition: opacity .4s;
  white-space: nowrap;
}
.x-label::before {
  content: "";
  display: block;
  width: 34px; height: 1px;
  background: var(--cblue);
  margin-bottom: 6px;
}
.x-label i { color: var(--cblue); font-style: normal; margin-right: 8px; }
.x-label.on { opacity: 1; }
.x-cap {
  position: absolute;
  left: var(--gutter);
  bottom: 5vh;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--cink-3);
}

/* ---------- 规格（keynote 式大数字） ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--cline);
  border-bottom: 1px solid var(--cline);
}
.spec-cell {
  background: var(--cbg);
  border: 1px solid var(--cline);
  margin: -1px 0 0 -1px;
  padding: clamp(30px, 4vh, 48px) clamp(24px, 3vw, 40px);
}
.spec-num {
  font-family: var(--font-mono);
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--cink);
  font-variant-numeric: tabular-nums;
}
.spec-num .u { font-size: .42em; color: var(--cink-3); font-weight: 400; margin-left: 4px; }
.spec-name {
  margin-top: 14px;
  font-size: 13px;
  color: var(--cink-3);
  letter-spacing: .06em;
}

/* ---------- 场景卡片（暗版） ---------- */
.scenes .scene-item {
  background: var(--cbg-2);
  border-color: var(--cline);
  box-shadow: none;
}
.scenes .scene-item h3 { color: var(--cink); }
.scenes .scene-item p { color: var(--cink-2); }
.scenes .scene-item svg { color: var(--cblue); }

/* ---------- 收尾 ---------- */
.closing {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: var(--cbg);
}
.closing-inner { max-width: 980px; }
.closing .mega { font-size: clamp(44px, 7.5vw, 104px); }

/* ---------- 页脚（暗版） ---------- */
.footer {
  background: var(--cbg);
  border-top-color: var(--cline);
  color: var(--cink-3);
}
.footer a { color: var(--cblue); }
.footer .src { line-height: 1.9; }

/* ---------- 加载遮罩 ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--cbg);
  display: flex;
  align-items: center;
  transition: opacity .6s ease;
  justify-content: center;
  transition: opacity .7s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
.ld-box { width: min(420px, 76vw); text-align: center; }
.ld-pct {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--cink);
  font-variant-numeric: tabular-nums;
}
.ld-bar {
  height: 2px;
  margin-top: 18px;
  background: rgba(242, 238, 230, .12);
}
.ld-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cblue);
  transition: width .25s ease;
}
.ld-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--cink-3);
}

/* ---------- WebGL 失败降级 ---------- */
.no-webgl #gsLayer { background: radial-gradient(120% 90% at 30% 20%, #14213C 0%, #0A0C10 70%); }
.no-webgl .stage-wrap, .no-webgl .explode-stage {
  background: radial-gradient(100% 100% at 50% 30%, #16203A 0%, #0A0C10 75%);
}

/* ---------- 静态导出 ---------- */
.static-mode #loader { display: none; }
.static-mode .scroll-hint::after { animation: none; }
.static-mode .cv-box { display: none; }
.static-mode #explode { height: auto; }
.static-mode .explode-pin { position: static; height: auto; padding-top: 10vh; padding-bottom: 6vh; }

/* ---------- 打印 ---------- */
@media print {
  body { background: #fff; color: #0B1220; }
  #gsLayer, #loader { display: none !important; }
  .heroX, #see, .closing { min-height: 0; height: auto; padding-top: 40px; padding-bottom: 40px; }
  #explode { height: auto; }
  .explode-pin { position: static; height: auto; }
  .mega, .sec-title, .see-line, .leadX, .sec-sub { color: #0B1220; }
  .section.solid, #explode { background: #fff; }
  .stage-wrap, .explode-stage { box-shadow: none; border: 1px solid #E3E9F2; }
  .stage-hud, .stage-phase { color: #47536B; }
  .x-label { color: #47536B; opacity: 1; }
  .spec-cell { background: #fff; }
  .spec-num { color: #0B1220; }
  .footer { background: #fff; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .scroll-hint { display: none; }
  .stage-wrap { height: 64vh; }
  .explode-stage { height: 62vh; }
}

/* ============================================================
   以下移植自旧版内联样式：浅色 SaaS 看板组件（叙事中保留的一块浅色大屏）
   ============================================================ */
/* ---------- AI 看板：浅色 SaaS 仪表盘 ---------- */
  .board { margin-top: 48px; padding: 0; overflow: hidden; color: var(--ink); }
  .board-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 28px; border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #FBFCFE, #F6F9FC);
  }
  .board-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; }
  .board-title .live {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
    color: var(--green); margin-right: 14px;
  }
  .board-title .live i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--green);
    animation: pulse 1.6s ease-in-out infinite;
  }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  .board-time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .board-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; background: var(--line); }
  .board-col { background: var(--card); padding: 28px 28px 30px; }
  .b-label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
    color: var(--ink-3); margin-bottom: 16px; text-transform: uppercase;
  }
  .b-big { font-family: var(--font-mono); font-size: clamp(42px, 4.4vw, 58px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
  .b-big .pct { font-size: .48em; color: var(--ink-3); }
  .b-note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
  .b-note b { color: var(--green); font-weight: 600; }

  .phase-rows { margin-top: 26px; }
  .phase { display: grid; grid-template-columns: 60px 1fr 42px; align-items: center; gap: 12px; padding: 8px 0; font-size: 13px; }
  .phase-name { color: var(--ink-2); }
  .bar { height: 6px; background: #EDF2F8; border-radius: 3px; overflow: hidden; }
  .bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width 1.2s ease; }
  .bar i.hot { background: var(--cyan); }
  .phase-val { font-family: var(--font-mono); font-size: 12px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

  .ring-wrap { display: flex; align-items: center; gap: 20px; }
  .ring { width: 88px; height: 88px; transform: rotate(-90deg); }
  .ring .ring-bg { stroke: #EDF2F8; }
  .ring .ring-fg { stroke: var(--blue); transition: stroke-dashoffset 1.2s ease; }
  .ring-num { font-family: var(--font-mono); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .comp-rows { margin-top: 18px; }
  .comp-row { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
  .comp-row:last-child { border-bottom: none; }
  .comp-row .ok { color: var(--green); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; }
  .comp-row.warn { color: var(--amber); }
  .comp-row.warn .st { color: var(--amber); font-family: var(--font-mono); font-size: 11px; }

  .att-num { font-family: var(--font-mono); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .att-plan { font-size: 12px; color: var(--ink-3); margin-left: 8px; }
  .abars { display: flex; align-items: flex-end; gap: 5px; height: 42px; margin-top: 14px; }
  .abars i { flex: 1; height: 0; background: #C7D9F6; border-radius: 2px 2px 0 0; transition: height 1s ease; }
  .abars i.today { background: var(--blue); }
  .adays { display: flex; gap: 5px; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
  .adays span { flex: 1; text-align: center; }

  .mini-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
  .mini-row:last-child { border-bottom: none; }
  .mini-row .st { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); white-space: nowrap; }
  .mini-row .st.go { color: var(--blue); }
  .logi-next { font-size: 13px; color: var(--ink); border-left: 3px solid var(--blue); padding: 2px 0 2px 12px; margin-bottom: 12px; line-height: 1.7; }
  .logi-next .eta { font-family: var(--font-mono); color: var(--blue); font-size: 12px; }

  .board-insight {
    border-top: 1px solid var(--line);
    background: var(--blue-soft);
    padding: 16px 28px;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.8;
  }
  .board-insight b { color: var(--blue); font-weight: 600; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; margin-right: 10px; }
