/* Dino English · 登录注册健康 —— Android / iOS 两页共用样式 */
/* ===================== 设计令牌 ===================== */
  :root {
    color-scheme: light;
    --plane:          #f6f6f4;   /* 页面 */
    --plane-sunk:     #eeeeeb;
    --sheet:          #ffffff;   /* 内容纸 */
    --surface-1:      #ffffff;   /* 图表底(供 JS 读取) */
    --text-primary:   #111111;
    --text-secondary: #3a3a36;
    --text-muted:     #6b6b63;
    --line:           #e4e4df;
    --line-2:         #cbcbc4;
    --grid:           #ededea;
    --axis:           #c9c9c2;
    --track:          #eaeae6;
    --row-hover:      #f7f7f5;
    --code-bg:        #f1f1ee;
    --accent:         #111111;
    --accent-wash:    #eeeeea;
    --series-1:       #2a78d6;
    --series-1-wash:  rgba(42,120,214,0.10);
    --good:           #0ca5b8;   --good-wash:     rgba(12,165,184,0.10);
    --warning:        #fab219;   --warning-wash:  rgba(200,140,10,0.12);
    --serious:        #ec835a;   --serious-wash:  rgba(236,131,90,0.12);
    --critical:       #e03131;   --critical-wash: rgba(224,49,49,0.10);
    --ok-text:        #0b7d8c;   /* 数字用色:对白底 ≥4.5:1 */
    --warn-text:      #8a5b00;
    --bad-text:       #c92a2a;
    --ok-lg:          #0b95a8;   /* ≥24px 的大数字用色 */
    --fn-fill:        #0b7d8c;   --fn-ink: #ffffff;   --fn-wedge: #eeeeea;
    --warn-lg:        #b8760a;
    --bad-lg:         #e03131;
    --shadow:         none;
  }
  @media (prefers-color-scheme: dark) {
    :root:where(:not([data-theme="light"])) {
      color-scheme: dark;
      --plane:          #0d0d0c;
      --plane-sunk:     #060606;
      --sheet:          #161615;
      --surface-1:      #161615;
      --text-primary:   #fafaf8;
      --text-secondary: #cbcbc4;
      --text-muted:     #9b9b93;
      --line:           #272725;
      --line-2:         #3b3b37;
      --grid:           #242422;
      --axis:           #34342f;
      --track:          #2a2a27;
      --row-hover:      #1d1d1b;
      --code-bg:        #212120;
      --accent:         #fafaf8;
      --accent-wash:    #262624;
      --series-1:       #3987e5;
      --series-1-wash:  rgba(57,135,229,0.14);
      --good:           #22c3d6;
      --good-wash:      rgba(34,195,214,0.16);
      --warning-wash:   rgba(250,178,25,0.14);
      --serious-wash:   rgba(236,131,90,0.14);
      --critical:       #ff6b6b;
      --critical-wash:  rgba(255,107,107,0.16);
      --ok-text:        #4dd8e8;
      --warn-text:      #fab219;
      --bad-text:       #ff8787;
      --ok-lg:          #4dd8e8;
    --fn-fill:        #22c3d6;   --fn-ink: #0d0d0c;   --fn-wedge: #201f1c;
      --warn-lg:        #fab219;
      --bad-lg:         #ff8787;
      --fn-fill:        #22c3d6;   --fn-ink: #0d0d0c;   --fn-wedge: #201f1c;   --fn-wedge: #201f1c;
      --shadow:         none;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --plane:          #0d0d0c;
    --plane-sunk:     #060606;
    --sheet:          #161615;
    --surface-1:      #161615;
    --text-primary:   #fafaf8;
    --text-secondary: #cbcbc4;
    --text-muted:     #9b9b93;
    --line:           #272725;
    --line-2:         #3b3b37;
    --grid:           #242422;
    --axis:           #34342f;
    --track:          #2a2a27;
    --row-hover:      #1d1d1b;
    --code-bg:        #212120;
    --accent:         #fafaf8;
    --accent-wash:    #262624;
    --series-1:       #3987e5;
    --series-1-wash:  rgba(57,135,229,0.14);
    --good:           #22c3d6;
    --good-wash:      rgba(34,195,214,0.16);
    --warning-wash:   rgba(250,178,25,0.14);
    --serious-wash:   rgba(236,131,90,0.14);
    --critical:       #ff6b6b;
    --critical-wash:  rgba(255,107,107,0.16);
    --ok-text:        #4dd8e8;
    --warn-text:      #fab219;
    --bad-text:       #ff8787;
    --ok-lg:          #4dd8e8;
    --fn-fill:        #22c3d6;   --fn-ink: #0d0d0c;   --fn-wedge: #201f1c;
    --warn-lg:        #fab219;
    --bad-lg:         #ff8787;
    --shadow:         none;
  }

  /* ===================== 基础 ===================== */
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--plane); color: var(--text-primary);
    font: 15.5px/1.7 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
    text-rendering: optimizeLegibility;
  }
  b, strong { font-weight: 640; color: var(--text-primary); }
  code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.87em;
    background: var(--code-bg); border-radius: 4px; padding: 0.5px 4px; }
  .eyebrow { font-size: 12.5px; font-weight: 640; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted); }

  /* ===================== 骨架 ===================== */
  .app { display: grid; grid-template-columns: 244px minmax(0, 1fr); align-items: start; }
  .rail { position: sticky; top: 0; height: 100vh; padding: 30px 20px 24px 30px;
    display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--line); }
  .rail-top { display: flex; align-items: center; gap: 11px; }
  .mark { flex: none; width: 34px; height: 34px; border-radius: 7px; background: var(--text-primary); color: var(--sheet);
    display: grid; place-items: center; font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; }
  .rail-title { font-size: 14.5px; font-weight: 680; letter-spacing: -0.01em; line-height: 1.25; }
  .rail-sub { font-size: 13px; color: var(--text-muted); }

  .toc { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; margin: -4px -6px; padding: 4px 6px; }
  .toc a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-secondary);
    font-size: 14px; padding: 6px 9px; border-radius: 6px; line-height: 1.3; }
  .toc a .n { flex: none; width: 19px; text-align: center; font-size: 12.5px; font-weight: 650;
    color: var(--text-muted); font-variant-numeric: tabular-nums; }
  .toc a:hover { background: var(--row-hover); color: var(--text-primary); }
  .toc a.on { background: var(--accent-wash); color: var(--text-primary); font-weight: 620; }
  .toc a.on .n { color: var(--text-primary); }
  .rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
  .rail-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
  .btn { border: 1px solid var(--line-2); background: transparent; color: var(--text-secondary);
    border-radius: 6px; padding: 7px 12px; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
  .btn:hover { color: var(--text-primary); border-color: var(--text-muted); }

  .main { min-width: 0; padding: 40px 44px 96px; max-width: 1240px; }
  @media (max-width: 980px) {
    .app { grid-template-columns: 1fr; }
    .rail { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 22px 24px; }
    .toc { flex-direction: row; flex-wrap: wrap; }
    .main { padding: 28px 24px 72px; }
  }

  /* ===================== 封面 ===================== */
  .cover { padding-bottom: 26px; }
  h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; margin: 12px 0 0; }
  .lede { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin: 12px 0 0; max-width: 74ch; }
  .facts { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 0; padding: 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .facts div { padding: 12px 22px 12px 0; margin-right: 22px; border-right: 1px solid var(--line); }
  .facts div:last-child { border-right: none; }
  .facts dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
  .facts dd { margin: 2px 0 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }

  /* ===================== 颜色说明条 ===================== */
  .keybar { margin-top: 26px; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px;
    padding: 18px 24px 16px; display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(280px, 1fr); gap: 22px 40px; }
  @media (max-width: 980px) { .keybar { grid-template-columns: 1fr; } }
  .key-label { font-size: 12px; font-weight: 640; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 11px; }
  /* 轴自 90% 起,50% 处 = 95%,90% 处 = 99%(真实比例) */
  .scale-names { display: flex; margin-bottom: 7px; font-size: 13.5px; font-weight: 640; }
  .scale-names span { min-width: 0; white-space: nowrap; }
  .scale-names .n1 { flex: 50; }
  .scale-names .n2 { flex: 40; }
  .scale-names .n3 { flex: 10; text-align: right; }
  .scale-bar { height: 10px; border-radius: 5px;
    background: linear-gradient(90deg,
      var(--critical) 0% 40%, var(--warning) 60% 85%, var(--good) 95% 100%); }
  .scale-axis { position: relative; height: 16px; margin-top: 6px;
    font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
  .scale-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
  .scale-axis span.l { transform: none; left: 0; }
  .scale-axis span.r { transform: none; right: 0; left: auto; }
  .scale-foot { margin-top: 4px; font-size: 12.5px; color: var(--text-muted); }
  .keys { display: flex; flex-wrap: wrap; gap: 9px 20px; }
  .keys span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); }
  .keys i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
  .key-note { grid-column: 1 / -1; margin: 2px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
    font-size: 13px; line-height: 1.6; color: var(--text-muted); }

  /* ===================== 结论区 ===================== */
  .sheet { min-width: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px;
    padding: 24px 26px; }
  .verdict { display: grid; grid-template-columns: minmax(260px, 0.95fr) minmax(0, 2fr); gap: 18px; margin-top: 30px; }
  @media (max-width: 1080px) { .verdict { grid-template-columns: minmax(0, 1fr); } }
  .hero .big { font-size: 68px; line-height: 1; font-weight: 700; letter-spacing: -0.045em; margin: 14px 0 0; }
  .hero .big.ok { color: var(--ok-lg); } .hero .big.warn { color: var(--warn-lg); } .hero .big.bad { color: var(--bad-lg); }
  .hero .frac { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 14.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
  .hero .fine { font-size: 13.5px; color: var(--text-secondary); margin: 13px 0 0; line-height: 1.65; }
  .pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
    padding: 3px 11px 3px 9px; border-radius: 999px; white-space: nowrap;
    border: 1px solid var(--line-2); color: var(--text-secondary); }
  .pill i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
  .pill.good i { background: var(--good); }
  .pill.warn i { background: var(--warning); }
  .pill.crit i { background: var(--critical); }

  .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
  @media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
  .stat { padding: 22px 18px; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; }
  .stat:last-child { border-right: none; }
  @media (max-width: 760px) {
    .stat:nth-child(2n) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  }
  .stat .k { font-size: 13.5px; color: var(--text-muted); line-height: 1.4;
    min-height: 2.8em; display: flex; align-items: flex-start; }
  .stat .v { font-size: 31px; font-weight: 660; letter-spacing: -0.03em; line-height: 1.12;
    margin-top: 2px; white-space: nowrap; }
  .stat .n { font-size: 13px; color: var(--text-secondary); margin-top: 6px; line-height: 1.45; }
  .stat .flag { margin-top: auto; padding-top: 9px; }

  /* ===================== 危险归因 ===================== */
  .why { margin-top: 18px; background: var(--sheet); border: 1px solid var(--line);
    border-left: 3px solid var(--critical); border-radius: 8px; padding: 20px 24px 18px; }
  .why-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .why-h b { font-size: 16px; font-weight: 670; }
  .why-h span { font-size: 13.5px; color: var(--text-secondary); }
  .why-bar { display: flex; gap: 2px; height: 13px; margin-bottom: 8px; }
  .why-bar i { display: block; height: 100%; border-radius: 2px; min-width: 3px; }
  .why-bar i:first-child { border-radius: 7px 2px 2px 7px; } .why-bar i:last-child { border-radius: 2px 7px 7px 2px; }
  .why-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted);
    font-variant-numeric: tabular-nums; margin-bottom: 18px; }
  .why-key span { display: inline-flex; align-items: center; gap: 6px; }
  .why-key i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
  .why-list { display: grid; gap: 0; }
  .why-row { display: grid; grid-template-columns: 168px 1fr; gap: 18px; padding: 12px 0;
    border-top: 1px solid var(--grid); align-items: baseline; }
  .why-row:first-child { border-top: none; padding-top: 0; }
  .why-n { font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
  .why-n small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-muted); margin-top: 3px; }
  .why-t { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
  .why-t .who { color: var(--text-primary); font-weight: 600; }
  .why-when { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
    font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

  /* ===================== 播报行(文档「整体看板 & 播报」要求) ===================== */
  .cast { margin-top: 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px;
    padding: 14px 22px; display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
  .cast .tag { font-size: 12px; font-weight: 640; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-muted); margin-right: 20px; }
  .cast .it { display: flex; align-items: baseline; gap: 8px; padding: 0 20px; border-left: 1px solid var(--line); }
  .cast .it:first-of-type { border-left: none; padding-left: 0; }
  .cast .k { font-size: 13px; color: var(--text-muted); }
  .cast .v { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
  .cast .v.sm { font-size: 14px; font-weight: 560; }
  .cast .na { color: var(--text-muted); font-weight: 500; font-size: 13.5px; }

  /* ===================== 版本对照 ===================== */
  .vc { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0; }
  .vc > div { padding: 11px 12px; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
  .vc .h { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted);
    border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
  .vc .m { text-align: left; font-size: 14px; }
  .vc .n2 { text-align: right; font-size: 15px; }
  .vc .d { text-align: right; font-size: 14px; font-weight: 640; }
  .vc .d.up { color: var(--ok-text); } .vc .d.dn { color: var(--bad-text); } .vc .d.flat { color: var(--text-muted); }
  .vc .h.r, .vc .n2, .vc .d { text-align: right; }

  /* ===================== 矩阵 ===================== */
  .mx { width: 100%; border-collapse: collapse; font-size: 14px; }
  .mx th, .mx td { padding: 9px 10px; text-align: right; white-space: nowrap; }
  .mx thead th { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted);
    font-weight: 620; border-bottom: 1px solid var(--line-2); }
  .mx th:first-child, .mx td:first-child { text-align: left; }
  .mx tbody tr { border-bottom: 1px solid var(--grid); }
  .mx tbody tr:hover { background: var(--row-hover); }
  .mx .cell b { font-variant-numeric: tabular-nums; }
  .mx .cell small { display: block; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
  .mx tfoot td { border-top: 1px solid var(--line-2); font-weight: 640; padding-top: 10px; font-variant-numeric: tabular-nums; }

  /* ===================== 枚举覆盖 ===================== */
  .cov { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 4px; }
  .cov span { font-size: 13px; border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 9px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
  .cov span.seen { border-color: var(--good); color: var(--ok-text); }
  .cov span.miss { color: var(--text-muted); border-style: dashed; }
  .cov span.extra { border-color: var(--warning); color: var(--warn-text); }
  .cov-h { font-size: 13px; color: var(--text-secondary); margin-top: 14px; font-weight: 620; }
  .cov-h:first-child { margin-top: 0; }

  /* ===================== 提示条 ===================== */
  .alerts { display: grid; gap: 12px; margin-top: 18px; }
  .alert { display: flex; gap: 14px; align-items: flex-start; background: var(--sheet);
    border: 1px solid var(--line); border-left: 3px solid var(--critical); border-radius: 8px;
    padding: 18px 22px; }
  .alert.warn { border-left-color: var(--warning); }
  .alert .ico { flex: none; width: 20px; height: 20px; display: grid; place-items: center; margin-top: 2px; }
  .alert h3 { font-size: 16px; font-weight: 670; margin: 3px 0 6px; letter-spacing: -0.01em; }
  .alert p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
  .alert p + p { margin-top: 7px; }

  /* ===================== 章节 ===================== */
  section { margin-top: 54px; scroll-margin-top: 12px; }
  .sec-head { position: sticky; top: 0; z-index: 8; background: var(--plane);
    padding: 14px 0 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .sec-head h2 { font-size: 24px; font-weight: 690; letter-spacing: -0.025em; margin: 0;
    display: inline-flex; align-items: center; gap: 12px; }
  .sec-head h2 .n { flex: none; display: grid; place-items: center; min-width: 28px; height: 28px;
    border-radius: 6px; background: var(--accent-wash); color: var(--text-primary);
    font-size: 14px; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: 0; }
  .chip { font-size: 13px; color: var(--text-secondary); border: 1px solid var(--line-2);
    background: transparent; border-radius: 999px; padding: 3px 11px;
    font-variant-numeric: tabular-nums; white-space: nowrap; }
  .chip.area { color: var(--text-muted); }
  .chip.area code { font-size: 12.5px; }
  .lead { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 20px; max-width: 100ch; }

  .row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .row-2.top { align-items: start; }
  .row-2 + .row-2, .sheet + .row-2, .row-2 + .sheet { margin-top: 18px; }
  @media (max-width: 1080px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }

  .sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
  .sheet-title { font-size: 16px; font-weight: 670; letter-spacing: -0.01em; }
  .sheet-sub { font-size: 13.5px; color: var(--text-secondary); margin: 5px 0 16px; }
  .toggle { border: 1px solid var(--line-2); background: transparent; color: var(--text-secondary);
    border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; flex: none; }
  .toggle:hover { color: var(--text-primary); }

  /* ===================== 漏斗(N 步通用:左对齐 + 灰色收窄楔形) ===================== */
  .funnel { min-width: 0; overflow-x: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; padding: 20px 26px 22px; }
  .fn-grid { display: grid; grid-template-columns: minmax(210px, 1.05fr) minmax(300px, 2.7fr) 96px 128px;
    gap: 0 24px; align-items: center; }
  .fn-hd { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
    padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
  .fn-hd span:nth-child(3), .fn-hd span:nth-child(4) { text-align: right; }
  .fn-name { font-size: 16px; font-weight: 650; line-height: 1.25; letter-spacing: -.005em; }
  .fn-name small { display: block; font-size: 13px; font-weight: 400; color: var(--text-muted);
    margin-top: 4px; line-height: 1.45; }
  .fn-bar { height: 42px; border-radius: 3px; }
  .fn-n { text-align: right; font-size: 19px; font-weight: 660; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .fn-n small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-muted); margin-top: 3px;
    letter-spacing: 0; }
  .fn-dur { text-align: right; font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; line-height: 1.5; }
  .fn-dur small { color: var(--text-muted); font-size: 12.5px; line-height: 1.4; display: inline-block; }
  /* 楔形:从上一条的宽度收到下一条的宽度,转化率与流失原因压在楔形上 */
  .fn-gap { position: relative; height: 52px; display: flex; align-items: center; }
  .fn-wedge { position: absolute; inset: 0; background: var(--fn-wedge); }
  .fn-conv { position: relative; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-left: 16px; font-size: 13.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
  .fn-conv .rate { background: var(--sheet); border: 1px solid var(--line-2); border-radius: 6px;
    padding: 3px 10px; font-weight: 660; font-size: 14px; color: var(--text-primary); }
  .fn-conv .fn-why { display: inline-flex; align-items: center; gap: 6px; }
  .fn-conv .fn-why i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
  .fn-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
    font-size: 13.5px; line-height: 1.75; color: var(--text-secondary); }
  .fn-foot b { color: var(--text-primary); }
  /* 侧栏占 245px,内容区实际可用宽度比视口窄很多 —— 断点按内容区算,不是视口 */
  @media (max-width: 1160px) {
    .fn-grid { grid-template-columns: minmax(0, 1fr) auto; }
    .fn-hd { display: none; }
    .fn-grid > .fn-bar, .fn-grid > .fn-gap { grid-column: 1 / -1; margin: 6px 0; }
  }

  /* ===================== 图表 ===================== */
  .chart { width: 100%; overflow-x: auto; }
  .chart svg { display: block; }
  .legend { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 14px; }
  .legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-secondary); }
  .legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
  .tv { display: none; } .tv.on { display: block; } .cv.off { display: none; }

  /* ===================== 表格 ===================== */
  .tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
  table { border-collapse: collapse; width: 100%; font-size: 14px; }
  th, td { text-align: right; padding: 9px 11px; white-space: nowrap; }
  th:first-child, td:first-child { text-align: left; padding-left: 2px; }
  th:last-child, td:last-child { padding-right: 2px; }
  thead th { font-weight: 620; color: var(--text-muted); font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.08em; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
  tbody tr { border-bottom: 1px solid var(--grid); }
  tbody tr:last-child { border-bottom: none; }
  tbody tr:hover { background: var(--row-hover); }
  tbody td { font-variant-numeric: tabular-nums; }
  tbody td.dim, tfoot td.dim { color: var(--text-muted); }
  tbody tr.sub td:first-child { padding-left: 20px; color: var(--text-secondary); }
  tfoot td { border-top: 1px solid var(--line-2); font-weight: 640; font-variant-numeric: tabular-nums; padding-top: 10px; }
  .grp { font-size: 13px; letter-spacing: .02em; font-weight: 660;
    color: var(--text-primary); padding-top: 18px !important; padding-bottom: 4px !important; }
  tbody tr:has(.grp):hover { background: none; }
  .meter { display: flex; align-items: center; gap: 9px; justify-content: flex-end; }
  .meter .track { width: 64px; height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; flex: none; }
  .meter .fill { display: block; height: 100%; border-radius: 3px; background: var(--series-1); }
  .meter b { font-weight: 620; min-width: 54px; text-align: right; }
  /* 健康分档:健康 ≥99% / 需关注 95–99% / 危险 <95% */
  .meter.none .fill { background: var(--text-muted); opacity: .4; }
  .meter.none b, .r.none { color: var(--text-muted); font-weight: 560; }
  .meter.ok   .fill { background: var(--good); }
  .meter.warn .fill { background: var(--warning); }
  .meter.bad  .fill { background: var(--critical); }
  .meter.ok   b, .r.ok   { color: var(--ok-text); }
  .meter.warn b, .r.warn { color: var(--warn-text); }
  .meter.bad  b, .r.bad  { color: var(--bad-text); }
  .r { font-weight: 640; font-variant-numeric: tabular-nums; }
  .tiers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 18px;
    font-size: 13px; color: var(--text-secondary); }
  .tiers span { display: inline-flex; align-items: center; gap: 7px; }
  .tiers i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
  .tiers i.ok { background: var(--good); } .tiers i.warn { background: var(--warning); } .tiers i.bad { background: var(--critical); }
  .tiers .note { color: var(--text-muted); }
  .swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; }

  /* ===================== 清单 ===================== */
  .gaps { margin: 0; padding: 0; list-style: none; counter-reset: g; }
  .gaps li { counter-increment: g; position: relative; padding: 16px 0 16px 44px;
    border-bottom: 1px solid var(--grid); font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
  .gaps li:last-child { border-bottom: none; padding-bottom: 2px; }
  .gaps li:first-child { padding-top: 2px; }
  .gaps li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: 17px;
    font-size: 12.5px; font-weight: 680; color: var(--text-primary); background: var(--accent-wash);
    border-radius: 5px; padding: 2px 7px; font-variant-numeric: tabular-nums; }
  .gaps li:first-child::before { top: 3px; }

  /* ===================== 提示气泡 ===================== */
  .tip { position: fixed; pointer-events: none; opacity: 0; transition: opacity .1s;
    background: var(--sheet); border: 1px solid var(--line-2); border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14); padding: 10px 12px; font-size: 13.5px; z-index: 60; max-width: 270px; }
  .tip.on { opacity: 1; }
  .tip .t-h { font-weight: 660; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
  .tip .t-r { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 3px; color: var(--text-secondary); }
  .tip .t-r i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
  .tip .t-r b { font-weight: 620; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .tip .t-r span { display: inline-flex; align-items: center; gap: 8px; }
  .tip .t-b { color: var(--text-secondary); line-height: 1.6; font-size: 13px; }
  .tip .t-b b { color: var(--text-primary); font-weight: 620; }
  .tip .t-b code { font-size: 13px; }
  .tip .t-f { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line-2);
    color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }



  /* ---- 平台身份用「图标」,不占颜色通道 ----
     颜色只留给健康度。折线图两端用同一色相的深浅两阶(蓝),
     再配端点图标 + 直接标注,不引入第二个色相。 */
  :root { --plat-a: #1c5cab; --plat-i: #6da7ec; }
  @media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) {
          --plat-a: #9ec5f4; --plat-i: #3987e5; } }
  :root[data-theme="dark"] { --plat-a: #9ec5f4; --plat-i: #3987e5; }

  .ptag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 620;
    color: var(--text-secondary); white-space: nowrap; }
  .ptag svg { flex: none; width: 14px; height: 14px; fill: currentColor; opacity: .85; }
  .ptag.lg { font-size: 15px; font-weight: 660; color: var(--text-primary); }
  .ptag.lg svg { width: 17px; height: 17px; opacity: 1; }

  /* 对照表:两端各占一组列,中间一条分隔线,永不相加 */
  table.cmp th.sepL, table.cmp td.sepL { border-left: 1px solid var(--line-2); }
  table.cmp th.ga, table.cmp th.gi { font-size: 12px; letter-spacing: .06em; text-transform: none; padding-bottom: 4px; }
  table.cmp th.ga, table.cmp th.gi { color: var(--text-primary); font-weight: 660; }
  table.cmp th.ga .ptag, table.cmp th.gi .ptag { color: var(--text-primary); font-size: 12.5px; }
  table.cmp tbody td.miss { color: var(--critical); font-weight: 680; }

  /* 结论区:两端并排的大卡 */
  .duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
  @media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); } }
  .duo .sheet { padding: 24px 26px 26px; }
  .duo .phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
  .duo .big { font-size: 58px; line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; margin: 10px 0 0; }
  .duo .big.ok { color: var(--ok-lg); } .duo .big.warn { color: var(--warn-lg); } .duo .big.bad { color: var(--bad-lg); }
  .duo .big.none { color: var(--text-muted); }
  .duo .frac { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 14px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
  .duo .fine { font-size: 13.5px; color: var(--text-secondary); margin: 12px 0 0; line-height: 1.6; }
  .duo .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px;
    padding-top: 16px; border-top: 1px solid var(--line); }
  .duo .mini .k { font-size: 12.5px; color: var(--text-muted); line-height: 1.35; min-height: 2.7em; }
  .duo .mini .v { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px; white-space: nowrap; }
  .duo .mini .v.dim { color: var(--text-muted); }
  .duo .mini .v.miss { color: var(--critical); }
  .duo .mini .n { font-size: 12px; color: var(--text-secondary); margin-top: 3px; line-height: 1.4; }

  .nosum { font-size: 12.5px; color: var(--text-muted); margin: 10px 0 0; }
  .nosum b { color: var(--text-secondary); }

  /* 暂定 / 过期:两个「这个数别当真」的标记,都不用状态色,免得和健康度抢通道 */
  .prov, .age { margin-left: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
    padding: 1px 6px; border-radius: 4px; background: var(--code-bg); color: var(--text-muted);
    border-bottom: 1px dashed var(--line-2); cursor: help; white-space: nowrap; }
  .age { border-bottom: 0; cursor: default; }
  .age.stale { background: var(--warning-wash); color: var(--warn-text); }
  .stalebar { margin: 0 0 22px; padding: 11px 15px; border-radius: 8px;
    border: 1px solid var(--line-2); border-left: 3px solid var(--warning);
    background: var(--sheet); font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }
  .stalebar b { color: var(--text-primary); }
  .stalebar code { font-size: 12.5px; }

  /* 术语提示:表面写大白话,精确定义收进 hover */
  .hint { border-bottom: 1px dashed var(--line-2); cursor: help; }
  .hint:hover { border-bottom-color: var(--text-muted); }
  th.hint, .fn-dur .hint, .fn-n .hint { border-bottom-style: dotted; }
  .pill.hint, .fn-conv .rate.hint { border-bottom: none; }
  .pill.hint:hover, .fn-conv .rate.hint:hover { border-color: var(--text-muted); }
  @media (hover: none) { .hint { border-bottom: none; } }

  footer { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line);
    font-size: 13px; line-height: 1.7; color: var(--text-muted); max-width: 100ch; }
  footer a { color: var(--text-secondary); }

  /* ===================== 打印 =====================
     这页是拿去开会讲的,导出 PDF 是常规动作而不是意外。
     侧栏、主题按钮、hover 提示在纸上没有意义,一律去掉;
     真正要保住的是「两端并排」—— 对照关系一断,整页的论点就没了。 */
  @media print {
    @page { margin: 12mm 10mm; }
    html, body { background: #fff; }
    .rail, #themeBtn, .tip { display: none !important; }
    .app { display: block; }
    .main { max-width: none; padding: 0; }

    /* 两列对照是本页的论点,窄纸上也不许折成上下 */
    .duo { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    table.cmp { font-size: 10.5px; }
    .tbl-wrap { overflow: visible !important; }

    /* 一张表、一段结论不要被切两页 */
    .sheet, .alert, .duo > *, .gaps li, tr { break-inside: avoid; page-break-inside: avoid; }
    thead { display: table-header-group; }   /* 表格跨页时表头跟着走 */
    section { break-before: page; page-break-before: always; }
    section:first-of-type, header { break-before: auto; page-break-before: auto; }
    h2, h3 { break-after: avoid; page-break-after: avoid; }

    /* 提示藏在 hover 里,纸上点不动 —— 把虚线去掉,免得像错别字 */
    .hint, .prov { border-bottom: 0; }
    a { text-decoration: none; color: inherit; }
    .chart svg { max-width: 100%; height: auto; }
  }

  /* 正文里少量需要点名的红字。只用于「这个数不能用」这类事实陈述,不用于判好坏 */
  .bad-ink { color: var(--bad-text); }
