:root {
  --bg: #F4F2EC;
  --bg-subtle: #EAE6DC;
  --surface: #FFFFFF;
  --surface-alt: #FAF9F5;
  --ink: #111820;
  --ink-2: #3E4A56;
  --ink-3: #6D7882;
  --line: #DCD7CA;
  --line-strong: #B8B1A1;

  --green: #147A3D;
  --green-bg: rgba(20, 122, 61, 0.10);
  --amber: #B85D14;
  --amber-bg: rgba(184, 93, 20, 0.11);
  --red: #B8251E;
  --red-bg: rgba(184, 37, 30, 0.10);
  --blue: #2358A6;
  --blue-bg: rgba(35, 88, 166, 0.10);
  --purple: #65449B;

  --sans: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 顶部导航栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 242, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { border-color: var(--ink-2); color: var(--ink); }
.nav a.on { background: var(--ink); color: #FFF; border-color: var(--ink); }
.quick-jump { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }
.quick-jump a { text-decoration: none; color: var(--ink-3); font-weight: 500; }
.quick-jump a:hover { color: var(--ink); }

.shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 24px 64px;
}

/* 头部标题与三列核心结论 */
.hero {
  margin-bottom: 18px;
}
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 6px;
}
h1 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.sub {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 14px;
  max-width: 68em;
}

.takeaways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.tk {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.tk.tk-app { border-top-color: var(--amber); }
.tk.tk-arr { border-top-color: var(--green); }
.tk.tk-mkt { border-top-color: var(--red); }
.tk-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  background: var(--bg-subtle);
  color: var(--ink);
}
.tk.tk-app .tk-tag { background: var(--amber-bg); color: var(--amber); }
.tk.tk-arr .tk-tag { background: var(--green-bg); color: var(--green); }
.tk.tk-mkt .tk-tag { background: var(--red-bg); color: var(--red); }
.tk h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.35;
}
.tk p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* KPI 指标带 */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
}
.kpi-label {
  font-size: 12px;
  color: var(--ink-3);
  display: block;
  margin-bottom: 2px;
}
.kpi-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  display: block;
}
.kpi-sub {
  font-size: 12px;
  color: var(--ink-2);
  display: block;
  margin-top: 2px;
}
.up { color: var(--green); }
.dn { color: var(--red); }
.warn { color: var(--amber); }

/* 区块头 */
.sec {
  margin-top: 28px;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.sec-head h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.sec-desc {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  max-width: 72em;
}

/* 面板卡片 */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}

/* 控制栏 */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.ctrl-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ctrl-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin-right: 2px;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.seg button {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink-2);
  transition: all 0.12s;
}
.seg button:hover { border-color: var(--ink-2); color: var(--ink); }
.seg button.on { background: var(--ink); color: #FFF; border-color: var(--ink); font-weight: 600; }

/* 阶段摘要横条 */
.phase-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}
.phase-banner b { font-family: var(--mono); }

/* 联动读数条 */
.scrub-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  background: #141C24;
  color: #F4F2EC;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 12px;
}
.scrub-item span {
  display: block;
  color: #9AA5B1;
  font-size: 11px;
}
.scrub-item b {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
}
.scrub-item b.s-up { color: #5CE08A; }
.scrub-item b.s-dn { color: #FF7B73; }
.scrub-item b.s-warn { color: #FFB562; }

/* 图例与口径说明 */
.legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}
.legend i.dash {
  background: none !important;
  border-top: 2px dashed currentColor;
  height: 0;
}
.dot-key {
  font-size: 11.5px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot-key em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.dot-key b {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-2);
}
.dot-key b.solid { background: var(--ink-2); }
.dot-key b.hollow { background: #FFF; }

/* SVG 文字通用类 */
svg { display: block; max-width: 100%; overflow: visible; }
.ax { font-family: var(--mono); font-size: 11px; fill: #5A6672; }
.track-title { font-family: var(--sans); font-size: 12.5px; font-weight: 700; fill: #111820; }
.track-sub { font-family: var(--sans); font-size: 11px; fill: #6D7882; }
.ev-tag { font-family: var(--sans); font-size: 11px; font-weight: 600; fill: #111820; }
.val-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.halo {
  paint-order: stroke;
  stroke: #FFFFFF;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.halo-bg {
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* 悬浮提示框 */
.tip {
  position: absolute;
  pointer-events: none;
  background: #141C24;
  color: #FFF;
  font-size: 12px;
  line-height: 1.5;
  padding: 7px 10px;
  border-radius: 6px;
  max-width: 280px;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.tip b { font-family: var(--mono); }
.tip .k-badge {
  display: inline-block;
  font-size: 10.5px;
  padding: 0 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.16);
  margin-left: 4px;
}

/* 五条应用曲线：上三栏（Chatbot/Coding/网安）+ 下双宽栏（数字员工/AI4S） */
.curve-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.curve-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.curve-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.curve-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.curve-stage {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.st-mature { background: var(--green-bg); color: var(--green); }
.st-scale { background: var(--amber-bg); color: var(--amber); }
.st-early { background: var(--red-bg); color: var(--red); }
.st-engine { background: #E4F4F7; color: #0E7490; }
.st-ai4s { background: #EBF1FA; color: #2358A6; }
.curve-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  margin-bottom: 10px;
}
.mini-metrics div span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
}
.mini-metrics div b {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
}
.chart-box {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-bottom: 8px;
}
.chart-box h4 {
  font-size: 12.5px;
  font-weight: 700;
  margin: 0 0 2px;
}
.chart-box .u {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 0 0 4px;
}
.curve-notes {
  margin: 4px 0 8px;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.curve-notes li { margin-bottom: 4px; }
.curve-notes b { color: var(--ink); }

/* 双栏布局与表格 */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tablewrap {
  overflow-x: auto;
  overscroll-behavior: contain;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12.5px;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 1.5px solid var(--ink);
  background: var(--surface);
  white-space: nowrap;
}
td:first-child { font-weight: 600; white-space: nowrap; }
th.num, td.num { text-align: right; font-family: var(--mono); white-space: nowrap; }

/* 表格内联可视化条 */
.bar-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-family: var(--mono);
  white-space: nowrap;
}
.ibar {
  display: inline-block;
  height: 7px;
  border-radius: 2px;
  min-width: 2px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}
.b-acc { background: var(--green-bg); color: var(--green); }
.b-dec { background: var(--amber-bg); color: var(--amber); }
.b-flat { background: var(--bg-subtle); color: var(--ink-2); }

/* 3D 沙盘容器 */
.stage3 {
  position: relative;
  height: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
#scene { position: absolute; inset: 0; }
#scene canvas { display: block; }
.cam-bar {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.92);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.cam-bar button {
  font-size: 12px;
  padding: 4px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
}
.cam-bar button.on { background: var(--ink); color: #FFF; font-weight: 600; }
.hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-3);
  background: rgba(255,255,255,0.85);
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
}
.lb {
  font-family: var(--sans);
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.lb.year { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.lb.l3 { font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.9); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }
.lb.v3 { font-family: var(--mono); font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.88); padding: 0 4px; border-radius: 3px; }
.lb.ev3 { font-size: 11px; font-weight: 600; background: #141C24; color: #FFF; padding: 2px 6px; border-radius: 4px; }

/* 光纤点亮率百格图与历史时间线 */
.fiber-meter {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 3px;
  margin: 8px 0;
}
.fiber-cell {
  height: 12px;
  border-radius: 2px;
  background: #DCD7CA;
}
.fiber-cell.lit { background: var(--amber); }
.fiber-cell.lit-strong { background: var(--green); }

.tl {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--ink);
}
.tl li {
  position: relative;
  padding: 0 0 12px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.tl li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.tl time {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 8px;
}

.src {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
  margin: 6px 0 0;
}
.src a { margin-right: 10px; color: var(--ink-2); }

.facts {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.facts li { margin-bottom: 5px; }
.facts b { color: var(--ink); }

.panel, .curve-card, .tk, .kpi { min-width: 0; }
svg { display: block; max-width: 100%; overflow: hidden; }

@media (max-width: 1120px) {
  .curve-grid, .curve-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .takeaways { grid-template-columns: minmax(0, 1fr); }
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scrub-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .topbar-inner, .shell { padding-left: 14px; padding-right: 14px; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scrub-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-val { font-size: 18px; }
  .stage3 { height: 360px; }
  .quick-jump { display: none; }
}
