/* 空气源热泵除霜问题 · 交互可视化大屏
   依据《Power AI 设计语言规范》光明未来派 Bright Futurism */

:root {
  --bg: #FAFBFD;
  --bg-pure: #FFFFFF;
  --ink: #0B2B45;
  --ink-soft: #3D5A73;
  --ink-faint: #7A93A8;
  --energy: #00C2D1;
  --energy-deep: #0891B2;
  --energy-deeper: #0E7490;
  --energy-bright: #39E6F5;
  --energy-pale: #7FE9F2;
  --energy-glow: rgba(0, 194, 209, 0.14);
  --save: #0FB981;
  --save-deep: #0B8A63;
  --cost: #F59E0B;
  --cost-deep: #B45309;
  --danger: #E11D48;
  --danger-mid: #F43F5E;
  --line: rgba(11, 43, 69, 0.08);
  --line-strong: rgba(11, 43, 69, 0.16);
  --bg-tint: #F2FAFB;
  --bg-tint-3: #EFF9FA;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Courier New', monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgba(11, 43, 69, 0.04), 0 8px 32px rgba(11, 43, 69, 0.06);
  --shadow-lift: 0 2px 4px rgba(11, 43, 69, 0.05), 0 20px 60px rgba(0, 194, 209, 0.12);
  --nav-h: 64px;
  --max-w: 1280px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,43,69,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,43,69,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .55;
}

/* ── 导航 ── */
.topnav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 3vw, 36px);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--energy);
  box-shadow: 0 0 10px var(--energy);
  animation: breathe 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes breathe { 0%,100%{opacity:1} 50%{opacity:.45} }
.brand-text { min-width: 0; }
.brand-title {
  font-size: 14px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: var(--ink-faint); text-transform: uppercase;
}
.nav-acts {
  display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
}
.nav-acts::-webkit-scrollbar { display: none; }
.act-btn {
  border: 1px solid transparent; background: transparent;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--ink-soft); white-space: nowrap;
  transition: .3s var(--ease-out);
}
.act-btn:hover { color: var(--energy-deep); background: var(--bg-tint); }
.act-btn.active {
  color: var(--energy-deep); background: var(--bg-tint);
  border-color: rgba(8,145,178,.35);
}
.act-btn .idx {
  font-family: var(--font-mono); font-size: 10px; color: var(--energy-deep);
  margin-right: 4px; letter-spacing: .08em;
}
.mode-switch {
  display: flex; gap: 2px; padding: 3px;
  background: var(--bg-tint-3); border-radius: 999px; border: 1px solid var(--line);
  flex-shrink: 0;
}
.mode-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-faint); transition: .3s var(--ease-out);
}
.mode-btn.active {
  background: var(--ink); color: #fff;
}
.mode-btn:hover:not(.active) { color: var(--ink); }

/* ── 布局 ── */
main { position: relative; z-index: 1; }
.container {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.section {
  padding: clamp(56px, 8vw, 100px) 0 clamp(32px, 5vw, 56px);
}
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.sec-index {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em;
  color: var(--energy-deep); margin-bottom: 14px;
}
.sec-index::before {
  content: ''; width: 34px; height: 1px; background: var(--energy);
}
.sec-title {
  font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.sec-sub {
  font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-soft); max-width: 720px;
}
.energy-word {
  background: linear-gradient(100deg, #0891B2 10%, #00C2D1 45%, #39E6F5 70%, #0891B2 95%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: flow 5s linear infinite;
}
@keyframes flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

/* ── 卡片 ── */
.card {
  background: var(--bg-pure); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.4vw, 28px);
  transition: .35s var(--ease-out);
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(8,145,178,.4);
}
.card-grid {
  display: grid; gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Hero ── */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-tint); border: 1px solid rgba(8,145,178,.25);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--energy-deep); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 60px); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.025em;
  max-width: 920px; margin-bottom: 18px;
}
.hero-verdict {
  font-size: clamp(17px, 2vw, 22px); font-weight: 600;
  color: var(--ink); max-width: 820px; margin-bottom: 14px;
  padding-left: 16px; border-left: 3px solid var(--energy);
}
.hero-plain {
  font-size: 15.5px; color: var(--ink-soft); max-width: 780px; margin-bottom: 28px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint);
  letter-spacing: .06em; margin-bottom: 36px;
}

/* KPI */
.kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-pure);
  box-shadow: var(--shadow-card);
}
.kpi-cell {
  padding: clamp(18px, 2.2vw, 28px);
  border-right: 1px solid var(--line);
  transition: .3s var(--ease-out);
}
.kpi-cell:last-child { border-right: 0; }
.kpi-cell:hover { background: var(--bg-tint); }
.kpi-value {
  font-family: var(--font-mono); font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
}
.kpi-value.tone-danger { color: var(--danger); }
.kpi-value.tone-energy { color: var(--energy-deep); }
.kpi-value.tone-save { color: var(--save-deep); }
.kpi-value.tone-cost { color: var(--cost-deep); }
.kpi-label {
  font-size: 13.5px; font-weight: 600; margin-top: 8px; color: var(--ink);
}
.kpi-plain {
  font-size: 12.5px; color: var(--ink-soft); margin-top: 4px;
}
.kpi-src {
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint);
  margin-top: 10px; letter-spacing: .04em;
}
@media (max-width: 800px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-cell:nth-child(2) { border-right: 0; }
  .kpi-cell:nth-child(1), .kpi-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ── 内容块 ── */
.slide-block {
  margin-bottom: 18px;
}
.slide-title {
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 800;
  margin-bottom: 6px; letter-spacing: -0.015em;
}
.slide-subtitle {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  letter-spacing: .04em; margin-bottom: 22px;
}
.block {
  background: var(--bg-pure); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: clamp(18px, 2.2vw, 26px);
  margin-bottom: 14px; box-shadow: var(--shadow-card);
}
.block-head {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.block-title {
  font-size: 16.5px; font-weight: 700; flex: 1; min-width: 200px;
}
.block-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-tint); color: var(--energy-deep);
  border: 1px solid rgba(8,145,178,.25);
}
.block-tag.danger { background: rgba(225,29,72,.08); color: var(--danger); border-color: rgba(225,29,72,.25); }
.block-tag.cost { background: rgba(245,158,11,.1); color: var(--cost-deep); border-color: rgba(245,158,11,.3); }
.block-tag.save { background: rgba(15,185,129,.1); color: var(--save-deep); border-color: rgba(15,185,129,.3); }
.block-body {
  font-size: 15px; color: var(--ink-soft);
}
.block-body p + p { margin-top: 10px; }

/* 三层内容：比喻 / 硬科学 / 实证 */
.layer-metaphor {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 10px;
}
.layer-hard {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-soft);
}
body.mode-plain .layer-hard { display: none; }
body.mode-academic .layer-metaphor { display: none; }
body.mode-academic .layer-hard {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
}
.block.is-quote .layer-metaphor { color: #fff; }
.block.is-quote .layer-hard { color: rgba(255,255,255,0.75); }

/* 学术原文注释 · 常驻不折叠 */
.academic-note {
  display: block;
  margin-top: 14px;
  padding: 12px 14px 12px 16px;
  background: var(--bg-tint-3);
  border-left: 3px solid var(--energy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.academic-note-body {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre-wrap;
}
body.mode-academic .academic-note-body {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
}
body.mode-academic .academic-note {
  background: #F2FAFB;
}

/* 通俗模式隐藏部分学术块 */
body.mode-plain .academic-only { display: none !important; }

/* quote */
.block.is-quote {
  background: linear-gradient(135deg, #0B2B45 0%, #0E3D60 60%, #0A4A5E 100%);
  border: 0; color: #fff;
}
.block.is-quote .block-title { color: var(--energy-pale); }
.block.is-quote .block-body { color: rgba(255,255,255,0.82); }
.block.is-quote .quote-text {
  font-size: clamp(17px, 2vw, 22px); font-weight: 600; line-height: 1.5;
  margin: 12px 0 8px; color: #fff;
}
.block.is-quote .academic-note {
  background: rgba(255,255,255,0.06);
  border-left-color: var(--energy-bright);
}
.block.is-quote .academic-note-body { color: rgba(255,255,255,0.78); }

/* warning */
.block.is-warning {
  border-left: 4px solid var(--cost);
  background: linear-gradient(90deg, rgba(245,158,11,.06), transparent 40%), var(--bg-pure);
}

/* compare */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare-col {
  padding: 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-tint);
}
.compare-col.pos { background: var(--bg-tint-3); border-color: rgba(8,145,178,.25); }
.compare-col.neg { background: rgba(225,29,72,.04); border-color: rgba(225,29,72,.18); }
.compare-col h4 {
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.compare-col.pos h4 { color: var(--energy-deep); }
.compare-col.neg h4 { color: var(--danger); }

/* criteria list */
.criteria-list { display: grid; gap: 10px; }
.criteria-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-pure);
}
.criteria-item.primary {
  border-color: rgba(8,145,178,.35); background: var(--bg-tint);
}
.criteria-key {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--energy-deep);
}
.criteria-text { font-size: 14px; color: var(--ink); }
.criteria-plain { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* table */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-top: 8px;
}
table.data-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  min-width: 520px;
}
.data-table th {
  text-align: left; padding: 12px 14px;
  background: var(--bg-tint-3); color: var(--ink);
  font-weight: 700; font-size: 12.5px;
  border-bottom: 1px solid var(--line-strong);
  position: sticky; top: 0; white-space: nowrap;
}
.data-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); vertical-align: top;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--bg-tint); }
.data-table td:first-child, .data-table td:last-child { font-weight: 600; color: var(--ink); }
.data-table .hl td { background: rgba(245,158,11,.08); }

/* steps */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-top: 8px;
}
.step-card {
  padding: 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-pure);
  transition: .3s var(--ease-out); cursor: default;
}
.step-card:hover {
  border-color: rgba(8,145,178,.35); transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.step-no {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--energy); margin-bottom: 8px;
}
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-plain { font-size: 13px; color: var(--ink-soft); }

/* metrics detail */
.metric-detail {
  padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  background: var(--bg-pure);
}
.metric-detail-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
}
.metric-detail h4 { font-size: 15.5px; font-weight: 700; }

/* ── 可视化交互台 ── */
.viz-stage {
  background: var(--bg-pure); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: clamp(16px, 2vw, 24px);
  margin: 18px 0; box-shadow: var(--shadow-card);
}
.viz-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--energy-deep); margin-bottom: 6px;
}
.viz-lead {
  font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px;
}
.viz-canvas {
  width: 100%; min-height: 280px; position: relative;
}
.viz-canvas svg, .viz-canvas canvas { width: 100%; height: auto; display: block; }
.chart-box { width: 100%; height: 340px; }
@media (max-width: 600px) { .chart-box { height: 280px; } }
.viz-controls {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
}
.viz-controls label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ink-faint); display: flex; align-items: center; gap: 8px;
}
.viz-controls input[type=range] {
  width: 180px; accent-color: var(--energy-deep);
}
.viz-conclusion {
  margin-top: 14px; padding: 12px 16px;
  border: 1px dashed rgba(8,145,178,.4); background: var(--bg-tint);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.viz-conclusion strong { color: var(--energy-deep); font-family: var(--font-mono); }

/* 单元格模拟 */
.units-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 16px 0;
}
.unit-cell {
  width: 88px; height: 110px; border-radius: 12px;
  border: 2px solid var(--line-strong); background: var(--bg-tint);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; transition: .35s var(--ease-out);
  position: relative; overflow: hidden;
}
.unit-cell .u-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--ink-faint);
}
.unit-cell .u-state {
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.unit-cell.running {
  border-color: var(--save); background: rgba(15,185,129,.08);
}
.unit-cell.running .u-state { color: var(--save-deep); }
.unit-cell.defrost {
  border-color: var(--danger); background: rgba(225,29,72,.1);
}
.unit-cell.defrost .u-state { color: var(--danger); }
.unit-cell.defrost::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,194,209,.25));
  animation: frostmelt 1.2s linear infinite;
}
@keyframes frostmelt {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.r-gauge {
  height: 18px; border-radius: 999px; background: #EDF2F5;
  overflow: hidden; margin: 10px 0 6px; position: relative;
}
.r-gauge .fill {
  height: 100%; border-radius: 999px;
  transition: width .5s var(--ease-out), background .3s;
}
.r-gauge .mark50 {
  position: absolute; left: 50%; top: -4px; bottom: -4px;
  width: 2px; background: var(--danger); opacity: .7;
}
.r-gauge .mark70 {
  position: absolute; left: 70%; top: -4px; bottom: -4px;
  width: 2px; background: var(--cost); opacity: .7;
}

/* 时间轴 */
.timeline {
  display: grid; gap: 0; margin-top: 10px;
}
.tl-item {
  display: grid; grid-template-columns: 140px 24px 1fr; gap: 12px;
  padding-bottom: 22px; position: relative;
}
.tl-time {
  font-family: var(--font-mono); font-size: 12px; color: var(--energy-deep);
  text-align: right; padding-top: 2px; letter-spacing: .04em;
}
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before {
  content: ''; position: absolute; top: 8px; bottom: -22px;
  width: 2px; background: linear-gradient(var(--energy), rgba(0,194,209,.15));
}
.tl-item:last-child .tl-rail::before { display: none; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--energy); box-shadow: 0 0 10px var(--energy);
  margin-top: 4px; z-index: 1;
}
.tl-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tl-body p { font-size: 13.5px; color: var(--ink-soft); }
.tl-who {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  margin-top: 6px;
}
@media (max-width: 600px) {
  .tl-item { grid-template-columns: 18px 1fr; }
  .tl-time { grid-column: 2; text-align: left; }
  .tl-rail { grid-row: 1 / span 2; }
  .tl-body { grid-column: 2; }
}

/* closing */
.closing {
  background: linear-gradient(135deg, #0B2B45 0%, #0E3D60 60%, #0A4A5E 100%);
  color: #fff; padding: clamp(60px, 10vw, 120px) 0;
  margin-top: 48px; position: relative; overflow: hidden;
}
.closing::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 50%; height: 120%;
  background: radial-gradient(circle, rgba(0,194,209,0.18), transparent 65%);
}
.closing h2 {
  font-size: clamp(24px, 3.5vw, 40px); font-weight: 800;
  margin-bottom: 24px; line-height: 1.25;
}
.closing-line {
  font-size: clamp(16px, 1.8vw, 20px); line-height: 1.7;
  color: rgba(255,255,255,0.88); max-width: 820px; margin-bottom: 12px;
}
.closing-goal {
  margin-top: 28px; padding: 18px 22px;
  border-left: 3px solid var(--energy-bright);
  background: rgba(255,255,255,0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: clamp(16px, 1.8vw, 20px); font-weight: 600; max-width: 820px;
}
.closing-foot {
  margin-top: 36px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .12em; color: rgba(255,255,255,0.5);
}

/* 幻灯导航 */
.slide-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.slide-chip {
  border: 1px solid var(--line); background: var(--bg-pure);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-size: 13px; color: var(--ink-soft); transition: .25s var(--ease-out);
}
.slide-chip:hover { border-color: var(--energy); color: var(--energy-deep); }
.slide-chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.slide-chip .n {
  font-family: var(--font-mono); font-size: 10px; opacity: .7; margin-right: 4px;
}

/* reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.show { opacity: 1; transform: none; }

/* 键盘帮助 */
.hint-bar {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: .04em; margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   版式自适应 · 大屏播放最佳 / 手机完美适配
   断点：手机 ≤560 ｜ 平板 ≤900 ｜ 桌面 ≤1440 ｜ 大屏 ≥1600 ｜ 影院 ≥1920
   ========================================================================== */

/* 3D 画布高度由版式层统一控制（引擎只负责渲染） */
.viz-canvas.stage-3d {
  width: 100%;
  height: clamp(300px, 42vh, 460px);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #F7FAFC 0%, #EEF4F7 100%);
}
.viz-canvas.stage-3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  touch-action: none;
}

/* 图表高度自适应 */
.chart-box {
  width: 100%;
  height: clamp(280px, 38vh, 420px);
  min-height: 260px;
}

/* ── 手机 · ≤560 ─────────────────────────────────────────── */
@media (max-width: 560px) {
  :root {
    --nav-h: 56px;
    --radius: 14px;
    --radius-sm: 10px;
  }
  body { line-height: 1.65; }

  /* 顶栏两行：① 品牌 + 模式切换 ② 章节横滑 —— 保证内容区高度 */
  .topnav {
    gap: 8px 10px;
    padding: 8px 12px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    padding-bottom: 8px;
  }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-title { font-size: 12.5px; max-width: 42vw; }
  .brand-sub { display: none; }
  .brand-dot { width: 6px; height: 6px; }

  .mode-switch {
    order: 2;
    flex: 0 0 auto;
    padding: 2px;
  }
  .mode-btn {
    padding: 8px 10px;
    font-size: 11.5px;
    min-height: 36px;
  }

  .nav-acts {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    padding-bottom: 2px;
    gap: 6px;
    scroll-snap-type: x proximity;
  }
  .act-btn {
    padding: 10px 14px;
    font-size: 12.5px;
    min-height: 44px;
    border: 1px solid var(--line);
    background: var(--bg-pure);
    scroll-snap-align: start;
  }

  /* 首屏 */
  .hero { padding: 28px 0 24px; }
  .hero h1 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.2;
  }
  .hero-verdict {
    font-size: 16px;
    padding-left: 12px;
  }
  .hero-plain { font-size: 14.5px; }
  .hero-meta { gap: 8px 14px; font-size: 10.5px; margin-bottom: 22px; }
  .hero-badge { font-size: 10px; margin-bottom: 14px; }

  /* KPI：2×2，大数字压到可读比例 */
  .kpi-row {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
  }
  .kpi-cell {
    padding: 16px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .kpi-cell:nth-child(2n) { border-right: 0; }
  .kpi-cell:nth-child(n+3) { border-bottom: 0; }
  .kpi-value { font-size: clamp(28px, 9vw, 36px); }
  .kpi-label { font-size: 12.5px; }
  .kpi-plain { font-size: 12px; }
  .kpi-src { font-size: 9.5px; }

  /* 章节与卡片 */
  .section { padding: 36px 0 20px; }
  .container { padding: 0 14px; }
  .sec-title { font-size: clamp(22px, 6.5vw, 28px); }
  .sec-sub { font-size: 14px; }
  .sec-index { font-size: 10.5px; margin-bottom: 10px; }

  .slide-title { font-size: 18px; }
  .slide-subtitle { font-size: 11px; }
  .block { padding: 16px 14px; margin-bottom: 12px; }
  .block-title { font-size: 15px; min-width: 0; }
  .block-body { font-size: 14px; }
  .block.is-quote .quote-text { font-size: 16px; }

  .compare { grid-template-columns: 1fr; }
  .criteria-item { grid-template-columns: 44px 1fr; padding: 12px; }
  .criteria-key { font-size: 12px; }
  .criteria-text { font-size: 13.5px; }
  .criteria-plain { font-size: 12.5px; }

  .steps-grid { grid-template-columns: 1fr; gap: 10px; }
  .step-card { padding: 14px; }
  .step-no { font-size: 18px; }

  .metric-detail { padding: 14px; }

  /* 可视化交互台 */
  .viz-stage { padding: 14px 12px; margin: 14px 0; }
  .viz-lead { font-size: 13px; margin-bottom: 12px; }
  .chart-box { height: 260px; min-height: 240px; }
  .viz-canvas.stage-3d { height: clamp(260px, 52vh, 340px); }

  .viz-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .viz-controls label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 12px;
  }
  .viz-controls input[type=range] {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 28px;
  }
  .viz-controls select,
  .viz-controls button.slide-chip {
    min-height: 44px;
    width: 100%;
    text-align: center;
    font-size: 13px;
  }
  .viz-conclusion { font-size: 13px; padding: 12px 12px; }

  .units-row { gap: 8px; }
  .unit-cell { width: 56px; height: 84px; border-radius: 10px; }
  .unit-cell .u-label { font-size: 10px; }
  .unit-cell .u-state { font-size: 11px; }

  /* 表格：横向滚动 + 首列可读 */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
    margin-left: -2px;
    margin-right: -2px;
  }
  table.data-table {
    min-width: 480px;
    font-size: 12.5px;
  }
  .data-table th, .data-table td {
    padding: 10px 12px;
  }

  /* 时间轴手机单列 */
  .tl-item { grid-template-columns: 16px 1fr; gap: 10px; }
  .tl-time {
    grid-column: 2;
    text-align: left;
    font-size: 11.5px;
  }
  .tl-rail { grid-row: 1 / span 2; }
  .tl-body { grid-column: 2; }
  .tl-body h4 { font-size: 14px; }
  .tl-body p { font-size: 12.5px; }

  /* 触控目标统一 ≥44px */
  .slide-chip, .act-btn, .mode-btn,
  .viz-controls select, .viz-controls button {
    min-height: 44px;
  }
  input[type=range] { height: 32px; }

  .slide-nav { gap: 6px; }
  .slide-chip {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 40px;
  }

  /* 学术原文面板 */
  .academic-note {
    padding: 12px 12px 12px 14px;
    margin-top: 12px;
  }
  .academic-note-body {
    font-size: 11.5px;
    line-height: 1.7;
  }
  body.mode-academic .academic-note-body {
    font-size: 12.5px;
  }

  /* 尾声 */
  .closing { padding: 48px 0 56px; }
  .closing h2 { font-size: 22px; }
  .closing-line { font-size: 15px; }
  .closing-goal { font-size: 15px; padding: 14px 16px; }
  .closing-foot { font-size: 10.5px; line-height: 1.6; }

  /* 底部安全区（刘海/手势条） */
  .closing { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .topnav { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
}

/* ── 小屏手机 · ≤380 ─────────────────────────────────────── */
@media (max-width: 380px) {
  .brand-title { font-size: 11.5px; max-width: 42vw; }
  .act-btn { padding: 7px 10px; font-size: 11.5px; }
  .kpi-value { font-size: 26px; }
  .hero h1 { font-size: 24px; }
  .unit-cell { width: 48px; height: 74px; }
}

/* ── 平板 · ≤900 ─────────────────────────────────────────── */
@media (max-width: 900px) and (min-width: 561px) {
  :root { --max-w: 860px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-cell:nth-child(2) { border-right: 0; }
  .kpi-cell:nth-child(1),
  .kpi-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .chart-box { height: 320px; }
  .viz-canvas.stage-3d { height: clamp(300px, 40vh, 400px); }
  .nav-acts { gap: 2px; }
  .act-btn { padding: 7px 10px; font-size: 12px; }
  .brand-sub { display: none; }
}

/* ── 桌面 · 901 ~ 1599（默认） ───────────────────────────── */
@media (min-width: 901px) {
  .container { padding: 0 clamp(20px, 3.5vw, 40px); }
  .section { padding: clamp(56px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
}

/* ── 大屏播放 · ≥1600（投影 / 汇报屏） ───────────────────── */
@media (min-width: 1600px) {
  :root {
    --max-w: 1520px;
    --nav-h: 72px;
    --radius: 18px;
  }

  body {
    line-height: 1.75;
    font-size: 17px;
  }

  .topnav {
    padding: 0 clamp(28px, 3vw, 48px);
    gap: 22px;
  }
  .brand-title { font-size: 17px; }
  .brand-sub { font-size: 11.5px; }
  .act-btn {
    font-size: 15px;
    padding: 10px 18px;
  }
  .mode-btn {
    font-size: 13px;
    padding: 9px 16px;
  }

  .hero { padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); }
  .hero h1 {
    font-size: clamp(44px, 4.6vw, 72px);
    max-width: 1100px;
  }
  .hero-verdict {
    font-size: clamp(20px, 1.6vw, 26px);
    max-width: 1000px;
  }
  .hero-plain {
    font-size: 18px;
    max-width: 960px;
  }
  .hero-meta { font-size: 13.5px; letter-spacing: .08em; }

  /* KPI 大屏：四列满铺，数字主导 */
  .kpi-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .kpi-cell { padding: clamp(24px, 2.2vw, 36px); }
  .kpi-value { font-size: clamp(48px, 3.6vw, 72px); }
  .kpi-label { font-size: 16.5px; }
  .kpi-plain { font-size: 14.5px; }
  .kpi-src { font-size: 12px; }

  .sec-title { font-size: clamp(34px, 3.2vw, 52px); }
  .sec-sub { font-size: 18px; max-width: 900px; }
  .sec-index { font-size: 13px; letter-spacing: .2em; }

  .slide-title { font-size: clamp(24px, 1.8vw, 32px); }
  .slide-subtitle { font-size: 13.5px; }
  .block { padding: clamp(22px, 1.8vw, 32px); margin-bottom: 18px; }
  .block-title { font-size: 19px; }
  .block-body { font-size: 16.5px; }
  .block.is-quote .quote-text { font-size: clamp(20px, 1.6vw, 28px); }

  .compare { gap: 18px; }
  .compare-col { padding: 22px; }
  .compare-col h4 { font-size: 16.5px; }

  .criteria-item { padding: 16px 18px; }
  .criteria-key { font-size: 15px; width: 64px; }
  .criteria-text { font-size: 16px; }
  .criteria-plain { font-size: 14.5px; }

  .data-table { font-size: 15.5px; }
  .data-table th, .data-table td { padding: 14px 18px; }

  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .step-card { padding: 24px; }
  .step-no { font-size: 28px; }
  .step-title { font-size: 17px; }
  .step-plain { font-size: 14.5px; }

  .viz-stage { padding: clamp(22px, 2vw, 32px); margin: 22px 0; }
  .viz-title { font-size: 12.5px; letter-spacing: .18em; }
  .viz-lead { font-size: 17px; }
  .chart-box { height: clamp(360px, 42vh, 520px); }
  .viz-canvas.stage-3d { height: clamp(400px, 52vh, 580px); }
  .viz-controls {
    gap: 20px;
    padding-top: 18px;
  }
  .viz-controls label { font-size: 13.5px; gap: 12px; }
  .viz-controls input[type=range] { width: 240px; }
  .viz-conclusion {
    font-size: 17px;
    padding: 18px 22px;
  }

  .unit-cell { width: 110px; height: 140px; border-radius: 14px; }
  .unit-cell .u-label { font-size: 13px; }
  .unit-cell .u-state { font-size: 14px; }

  .tl-item { grid-template-columns: 180px 28px 1fr; }
  .tl-time { font-size: 14px; }
  .tl-body h4 { font-size: 18px; }
  .tl-body p { font-size: 15.5px; }

  .slide-chip {
    padding: 11px 18px;
    font-size: 14.5px;
  }

  .academic-note {
    padding: 16px 18px 16px 20px;
    margin-top: 16px;
  }
  .academic-note-body {
    font-size: 14px;
    line-height: 1.85;
  }
  body.mode-academic .academic-note-body {
    font-size: 15.5px;
  }

  .closing { padding: clamp(80px, 10vw, 140px) 0; }
  .closing h2 { font-size: clamp(32px, 2.8vw, 48px); }
  .closing-line { font-size: clamp(18px, 1.5vw, 24px); max-width: 1000px; }
  .closing-goal {
    font-size: clamp(18px, 1.5vw, 24px);
    max-width: 1000px;
    padding: 24px 28px;
  }
  .closing-foot { font-size: 14px; }

  /* 大屏三列块式布局更稳 */
  .card-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ── 影院级 · ≥1920（4K / LED 大屏） ─────────────────────── */
@media (min-width: 1920px) {
  :root {
    --max-w: 1760px;
  }
  body { font-size: 18px; }
  .hero h1 { font-size: clamp(56px, 3.8vw, 84px); }
  .hero-verdict { font-size: clamp(24px, 1.4vw, 30px); }
  .hero-plain { font-size: 19px; }
  .kpi-value { font-size: clamp(64px, 3.2vw, 88px); }
  .kpi-label { font-size: 18px; }
  .sec-title { font-size: clamp(42px, 2.8vw, 60px); }
  .slide-title { font-size: clamp(28px, 1.6vw, 36px); }
  .block-body { font-size: 17.5px; }
  .chart-box { height: clamp(420px, 44vh, 580px); }
  .viz-canvas.stage-3d { height: clamp(480px, 56vh, 660px); }
  .viz-conclusion { font-size: 18.5px; }
  .data-table { font-size: 16.5px; }
  .closing-line { font-size: clamp(22px, 1.3vw, 28px); }
}

/* ── 横屏手机（高度矮） ──────────────────────────────────── */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 20px 0 16px; }
  .hero h1 { font-size: 24px; }
  .chart-box { height: 200px; min-height: 180px; }
  .viz-canvas.stage-3d { height: 220px; }
  .section { padding: 28px 0 16px; }
}

/* ── 打印 / 无障碍 ───────────────────────────────────────── */
@media print {
  .topnav, .grid-bg, .viz-controls { display: none !important; }
  .academic-note { display: block !important; break-inside: avoid; }
  .block, .card, .viz-stage {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  body.mode-plain .academic-only { display: block !important; }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #2A4056;
    --ink-faint: #4A647A;
    --line: rgba(11, 43, 69, 0.14);
    --line-strong: rgba(11, 43, 69, 0.28);
  }
}

/* ==========================================================================
   炫动示意（SVG 动效） + 字号防溢出
   ========================================================================== */

/* 全局文字防溢出 */
html, body { overflow-x: hidden; }
h1, h2, h3, h4, .hero-verdict, .closing-line, .closing-goal,
.kpi-label, .block-title, .step-title, .viz-conclusion {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.kpi-value, .step-no {
  overflow-wrap: anywhere;
  line-height: 1.05;
}
.slide-title { overflow-wrap: anywhere; }

/* 字号阶梯收敛：避免“突然大字” */
.hero h1 { font-size: clamp(28px, 4.2vw, 52px) !important; }
.kpi-value { font-size: clamp(30px, 3.2vw, 56px) !important; }
.sec-title { font-size: clamp(24px, 3vw, 40px) !important; }
.slide-title { font-size: clamp(18px, 1.8vw, 26px) !important; }
.closing h2 { font-size: clamp(22px, 2.6vw, 36px) !important; }
.closing-line, .closing-goal { font-size: clamp(15px, 1.35vw, 19px) !important; }
.hero-verdict { font-size: clamp(16px, 1.5vw, 20px) !important; }
.block.is-quote .quote-text { font-size: clamp(16px, 1.4vw, 20px) !important; }
.step-no { font-size: clamp(18px, 1.6vw, 24px) !important; }

/* SVG 画布统一 */
.anim-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.anim-svg text {
  font-family: var(--font-sans);
  fill: #3D5A73;
  font-size: 11px;
}
.anim-svg .t-title { fill: #0B2B45; font-weight: 700; font-size: 12px; }
.anim-svg .t-mono { font-family: var(--font-mono); fill: #7A93A8; font-size: 10px; }
.anim-svg .t-hot { fill: #B45309; font-weight: 700; }
.anim-svg .t-cold { fill: #0891B2; font-weight: 700; }
.anim-svg .t-danger { fill: #E11D48; font-weight: 700; }
.anim-svg .t-save { fill: #0B8A63; font-weight: 700; }
.anim-svg .t-white { fill: rgba(255,255,255,0.9); }

/* 流光描边 */
.anim-flow {
  stroke-dasharray: 10 14;
  animation: dash-run 1.1s linear infinite;
}
.anim-flow-slow {
  stroke-dasharray: 8 16;
  animation: dash-run 2s linear infinite;
}
@keyframes dash-run {
  to { stroke-dashoffset: -48; }
}

/* 能量粒子沿路径 */
.anim-orb {
  animation: orb-fade 1.6s ease-in-out infinite;
}
@keyframes orb-fade {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* 呼吸辉光 */
.anim-glow {
  animation: glow-breathe 2.2s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.45; filter: drop-shadow(0 0 2px currentColor); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px currentColor); }
}

/* 风扇旋叶 */
.anim-spin {
  transform-origin: center;
  animation: spin-slow 2.4s linear infinite;
}
.anim-spin-fast { animation-duration: 1.1s; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* 水滴下落 */
.anim-drop {
  animation: drop-fall 1.4s linear infinite;
}
.anim-drop-2 { animation-delay: 0.35s; }
.anim-drop-3 { animation-delay: 0.7s; }
.anim-drop-4 { animation-delay: 1.05s; }
@keyframes drop-fall {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* 横流被吹偏 */
.anim-drift {
  animation: drift-x 1.8s ease-in-out infinite;
}
@keyframes drift-x {
  0% { transform: translate(0, 0); }
  50% { transform: translate(18px, 4px); }
  100% { transform: translate(0, 0); }
}

/* 霜晶生长 */
.anim-frost-grow {
  transform-origin: center;
  animation: frost-grow 2.4s ease-in-out infinite;
}
@keyframes frost-grow {
  0% { transform: scale(0.4); opacity: 0.2; }
  50% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(0.5); opacity: 0.25; }
}

/* 标签浮动 */
.anim-float {
  animation: float-y 3s ease-in-out infinite;
}
.anim-float-2 { animation-delay: 0.5s; }
.anim-float-3 { animation-delay: 1s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 扫描线 / 时间游标 */
.anim-scan {
  animation: scan-x 6s ease-in-out infinite;
}
@keyframes scan-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(220px); }
}

/* 卡片描边能量游走 */
.anim-stroke-energy {
  stroke: #00C2D1;
  filter: drop-shadow(0 0 4px rgba(0,194,209,0.65));
}

/* 四通阀换向闪烁 */
.anim-valve {
  animation: valve-flash 1s steps(2, end) infinite;
}
@keyframes valve-flash {
  0% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 箭头流动 */
.anim-arrow-move {
  animation: arrow-move 1.4s ease-in-out infinite;
}
@keyframes arrow-move {
  0% { transform: translateX(0); opacity: 0.4; }
  50% { opacity: 1; }
  100% { transform: translateX(8px); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-flow, .anim-flow-slow, .anim-orb, .anim-glow, .anim-spin,
  .anim-drop, .anim-drift, .anim-frost-grow, .anim-float, .anim-scan,
  .anim-valve, .anim-arrow-move {
    animation: none !important;
  }
}

/* ==========================================================================
   视觉全面升级 · 光效 / 质感 / 动势
   ========================================================================== */

/* 页面能量场背景 */
.grid-bg {
  background-image:
    linear-gradient(rgba(0,194,209,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,209,0.05) 1px, transparent 1px),
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(0,194,209,0.12), transparent 60%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
}

/* 顶栏能量底线 */
.topnav {
  box-shadow: 0 1px 0 rgba(0,194,209,0.15), 0 8px 32px rgba(11,43,69,0.04);
}
.topnav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, #00C2D1 35%, #39E6F5 55%, transparent);
  opacity: 0.55;
  animation: nav-sheen 4.5s linear infinite;
}
@keyframes nav-sheen {
  0% { transform: translateX(-30%); opacity: 0.25; }
  50% { opacity: 0.7; }
  100% { transform: translateX(30%); opacity: 0.25; }
}

/* 首屏光晕层 */
.hero { position: relative; overflow: hidden; contain: paint; }
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -60px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,194,209,0.16), transparent 65%);
  pointer-events: none;
  animation: hero-orb 7s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute; bottom: 10%; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(57,230,245,0.1), transparent 65%);
  pointer-events: none;
  animation: hero-orb 9s ease-in-out infinite reverse;
}
@keyframes hero-orb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-18px, 14px) scale(1.06); opacity: 1; }
}

/* KPI 大数字点睛光 */
.kpi-value.tone-danger {
  text-shadow: 0 0 24px rgba(225,29,72,0.18);
}
.kpi-value.tone-energy {
  text-shadow: 0 0 24px rgba(0,194,209,0.2);
}
.kpi-cell { position: relative; overflow: hidden; contain: paint; }
.kpi-cell::after {
  content: '';
  position: absolute; top: 0; left: -40%;
  width: 36%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(0,194,209,0.1), transparent);
  transform: skewX(-18deg);
  animation: kpi-shine 5.5s ease-in-out infinite;
}
@keyframes kpi-shine {
  0%, 70%, 100% { left: -40%; opacity: 0; }
  80% { opacity: 1; }
  90% { left: 110%; opacity: 0.3; }
}

/* 卡片能量顶条 + 悬停增强 */
.card, .block, .viz-stage {
  position: relative;
}
.card::before, .viz-stage::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, rgba(0,194,209,0.55), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.card:hover::before, .viz-stage:hover::before { opacity: 1; }
.card:hover, .viz-stage:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(11,43,69,0.06), 0 24px 64px rgba(0,194,209,0.14);
  border-color: rgba(8,145,178,0.4);
}
.viz-stage { transition: .35s var(--ease-out); }

/* 块标题前缀光点 */
.block-title::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--energy);
  box-shadow: 0 0 8px var(--energy);
  margin-right: 8px;
  vertical-align: 2px;
  animation: breathe 2.4s ease-in-out infinite;
}
.block.is-quote .block-title::before { background: var(--energy-pale); box-shadow: 0 0 8px var(--energy-pale); }
.block.is-warning .block-title::before { background: var(--cost); box-shadow: 0 0 8px var(--cost); }

/* 引用深色块辉光 */
.block.is-quote {
  box-shadow: inset 0 0 0 1px rgba(57,230,245,0.12), 0 12px 40px rgba(11,43,69,0.18);
  position: relative;
  overflow: hidden;
}
.block.is-quote::after {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 50%; height: 120%;
  background: radial-gradient(circle, rgba(0,194,209,0.16), transparent 65%);
  pointer-events: none;
}

/* 警示块琥珀呼吸边 */
.block.is-warning {
  box-shadow: inset 3px 0 0 var(--cost), 0 8px 28px rgba(245,158,11,0.08);
}

/* 步骤卡连线光 */
.step-card { position: relative; }
.step-no {
  background: linear-gradient(120deg, #0891B2, #00C2D1, #39E6F5);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.step-card::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--energy), transparent);
  border-radius: 3px;
  opacity: 0.35;
  transition: opacity .3s;
}
.step-card:hover::after { opacity: 1; }

/* 结论条能量顶线游走（transform 驱动，不触发 scrollWidth） */
.viz-conclusion {
  position: relative;
  overflow: hidden;
  contain: paint;
}
.viz-conclusion::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 36%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--energy), transparent);
  animation: conc-run 2.8s linear infinite;
  will-change: transform;
}
@keyframes conc-run {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}

/* 学术注释条 · 左侧光带呼吸 */
.academic-note {
  position: relative;
  overflow: hidden;
  contain: paint;
}
.academic-note::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #00C2D1, #39E6F5, #00C2D1);
  background-size: 100% 200%;
  animation: note-edge 3.5s linear infinite;
}
@keyframes note-edge {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 200%; }
}

/* 单元格：制热绿光 / 融霜红光扫过 */
.unit-cell.running {
  box-shadow: 0 0 0 1px rgba(15,185,129,0.35), 0 0 18px rgba(15,185,129,0.18);
}
.unit-cell.defrost {
  box-shadow: 0 0 0 1px rgba(225,29,72,0.4), 0 0 22px rgba(225,29,72,0.22);
}

/* 时间轴节点能量巡航 */
.tl-dot {
  box-shadow: 0 0 12px var(--energy);
}
.tl-item:hover .tl-dot {
  transform: scale(1.25);
  transition: transform .3s var(--ease-out);
}

/* 按钮能量态 */
.act-btn.active, .slide-chip.active {
  box-shadow: 0 0 0 1px rgba(8,145,178,0.35), 0 6px 20px rgba(0,194,209,0.16);
}
.mode-btn.active {
  box-shadow: 0 4px 14px rgba(11,43,69,0.2);
}

/* 滑块轨道发光 */
.viz-controls input[type=range] {
  accent-color: var(--energy-deep);
  filter: drop-shadow(0 0 4px rgba(0,194,209,0.25));
}

/* 尾声星尘 */
.closing::before {
  background: radial-gradient(circle, rgba(0,194,209,0.22), transparent 65%);
}
.closing-goal {
  box-shadow: 0 0 0 1px rgba(57,230,245,0.15), 0 16px 48px rgba(0,0,0,0.2);
}

/* 表格行微光 */
.data-table tbody tr:hover td {
  background: linear-gradient(90deg, rgba(0,194,209,0.06), transparent 50%);
}

/* reveal 上浮 + 微光 */
.reveal {
  filter: none;
}
.reveal.show {
  animation: reveal-in .9s var(--ease-out) both;
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .topnav::after, .hero::before, .hero::after, .kpi-cell::after,
  .viz-conclusion::after, .academic-note::after, .reveal.show {
    animation: none !important;
  }
}
