/* MC_EZCAI · 静态站设计系统（web/site/assets/app.css）
   渲染纪律（_DOC/25 §3.5，不可协商）：
   1. 不用红绿轴——颜色不编码"好坏"，全站中性色 + 单一强调色；
   2. 不做综合评分——不存在任何"评分/推荐度/机会指数"样式；
   3. 区间带宽度即信息量——区间是数轴上的一等公民，不是脚注；
   4. 限度声明随可信度伸缩——由数据侧 limits 字段驱动，前端不增删。 */

/* ==================================================================
   1. 设计令牌（Design Tokens）
   ================================================================== */
:root {
  /* 色板：中性灰阶 + 单一强调蓝（无红绿） */
  --bg: #f4f6fa;
  --bg-subtle: #eef1f6;
  --card: #ffffff;
  --ink: #16202f;
  --ink-soft: #38445a;
  --muted: #5b6577;
  --faint: #8b95a8;
  --line: #dfe4ec;
  --line-strong: #c2cbda;
  --accent: #2f5fd0;
  --accent-ink: #23489f;
  --accent-soft: rgba(47, 95, 208, 0.10);
  --accent-softer: rgba(47, 95, 208, 0.055);
  --track: #e6eaf1;
  --mark-b: #3c4658;
  --mark-o: #9aa3b4;
  --warn-bg: #fbf6e7;
  --warn-border: #e2d5a4;
  --warn-ink: #6b5a1e;

  /* 排版 */
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 24px;
  --fs-xxl: 32px;

  /* 间距（4px 基准） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* 阴影层级 */
  --sh-1: 0 1px 2px rgba(18, 27, 45, 0.05);
  --sh-2: 0 2px 6px rgba(18, 27, 45, 0.06), 0 8px 24px rgba(18, 27, 45, 0.06);
  --sh-3: 0 4px 12px rgba(18, 27, 45, 0.10), 0 16px 40px rgba(18, 27, 45, 0.10);

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 0.18s;
}

/* ==================================================================
   2. 基础与重置
   ================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: var(--fs-md)/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); color: var(--accent-ink); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); }
h1 { font-size: var(--fs-xxl); margin: 0 0 var(--sp-2); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-lg); margin: var(--sp-6) 0 var(--sp-3); }
h3 { font-size: 16px; margin: 0 0 var(--sp-3); }
h4 { font-size: var(--fs-sm); margin: 0 0 var(--sp-2); color: var(--muted); font-weight: 600; }
p { margin: var(--sp-2) 0; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-5); }

/* ==================================================================
   3. 页头 / 页脚
   ================================================================== */
header.site {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.bar { display: flex; align-items: center; gap: var(--sp-5); height: 56px; }
.brand {
  display: flex; align-items: baseline; gap: var(--sp-2);
  font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.01em;
}
.brand .logo {
  width: 22px; height: 22px; border-radius: 6px; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800; flex: none;
}
.brand span { color: var(--muted); font-weight: 400; font-size: var(--fs-sm); }
nav.main { display: flex; gap: var(--sp-1); margin-left: auto; }
nav.main a {
  position: relative; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
nav.main a:hover { background: var(--accent-softer); color: var(--ink); text-decoration: none; }
nav.main a.on { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
nav.main a.on::after {
  content: ""; position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: 3px;
  height: 2px; border-radius: 1px; background: var(--accent);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  font-size: var(--fs-xs); color: var(--muted); background: var(--bg);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.badge.rec { border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

footer.site {
  margin-top: var(--sp-10); padding: var(--sp-5) 0 var(--sp-8);
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
}
footer.site p { margin: 3px 0; }
footer.site .foot-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2);
  padding-top: var(--sp-3); border-top: 1px dashed var(--line);
}

main.wrap { padding-top: var(--sp-6); padding-bottom: var(--sp-3); }

/* ==================================================================
   4. Hero（首页）与数据带状
   ================================================================== */
.hero { padding: var(--sp-5) 0 var(--sp-2); }
.hero h1 { font-size: 34px; letter-spacing: -0.025em; max-width: 800px; }
.hero .sub {
  color: var(--muted); font-size: var(--fs-md); max-width: 760px; margin: var(--sp-3) 0 0;
}
.hero .sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-6);
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5); box-shadow: var(--sh-1);
}
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--accent-ink); }
.stat .k { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

/* ==================================================================
   5. 卡片与栅格
   ================================================================== */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-6); box-shadow: var(--sh-1);
  margin-bottom: var(--sp-4);
}
.card > h3 {
  display: flex; align-items: center; gap: var(--sp-2);
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.card > h3::before {
  content: ""; flex: none; width: 3px; height: 16px; border-radius: 2px;
  background: var(--accent);
}
.card.flat { box-shadow: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }

/* ==================================================================
   6. 按钮
   ================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px; border-radius: var(--r-md); border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; letter-spacing: 0.01em;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-ink); text-decoration: none; box-shadow: var(--sh-2); }
.btn:active { transform: translateY(1px); box-shadow: var(--sh-1); }
.btn:disabled {
  background: var(--line-strong); border-color: var(--line-strong);
  cursor: not-allowed; box-shadow: none; transform: none;
}
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.btn-small { padding: 5px 13px; font-size: var(--fs-sm); font-weight: 500; border-radius: var(--r-sm); }
.btn-ghost {
  background: transparent; color: var(--accent-ink); border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--accent-soft); box-shadow: none; }
.btn-quiet {
  background: transparent; color: var(--muted); border-color: transparent;
}
.btn-quiet:hover { background: var(--bg-subtle); color: var(--ink); box-shadow: none; }

.spinner {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.6s linear infinite;
}
.btn-ghost .spinner, .btn-quiet .spinner {
  border-color: rgba(47, 95, 208, 0.3); border-top-color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================================================================
   7. 表单
   ================================================================== */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
select, input[type="text"], input[type="search"], input[type="number"] {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--card); color: var(--ink);
  font: inherit; font-size: 14px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 32px;
}
select:hover, input:hover { border-color: var(--faint); }
select:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-softer); }
select:disabled, input:disabled { background: var(--bg-subtle); color: var(--muted); cursor: not-allowed; }
input[type="search"] {
  padding-left: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b95a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px 50%;
}
.form-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3); margin-bottom: var(--sp-3);
}
.hint { font-size: 12.5px; color: var(--muted); min-height: 1.2em; }
.hint.warn-text { color: var(--warn-ink); }

/* ==================================================================
   8. 芯片
   ================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-2) 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: var(--r-pill); background: var(--bg-subtle); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.chip.em { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* ==================================================================
   9. 概率数轴（E/O/B 同轴 + 区间带；无红绿）
   核心可视化：区间带宽度即信息量，是数轴一等公民
   ================================================================== */
.axis { position: relative; height: 66px; margin: var(--sp-4) 4px 0; }
.axis-track {
  position: absolute; left: 0; right: 0; top: 31px; height: 6px;
  background: var(--track); border-radius: 3px;
}
.axis-band {
  position: absolute; top: 21px; height: 26px;
  background: linear-gradient(180deg, rgba(47, 95, 208, 0.16), rgba(47, 95, 208, 0.07));
  border: 1px solid rgba(47, 95, 208, 0.42); border-radius: var(--r-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: width var(--dur) var(--ease);
}
.mark {
  position: absolute; top: 19px; width: 17px; height: 17px; border-radius: 50%;
  transform: translateX(-50%); border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(18, 27, 45, 0.28);
}
.mark-e { background: var(--accent); }
.mark-o { background: var(--mark-o); width: 11px; height: 11px; top: 22px; border-width: 2px; }
.tick { position: absolute; top: 13px; width: 3px; height: 42px; transform: translateX(-50%); border-radius: 2px; }
.tick-b { background: var(--mark-b); }
.tick-b3 { background: repeating-linear-gradient(180deg, #8b93a5 0 5px, transparent 5px 9px); }
.axis-ticks { position: absolute; left: 0; right: 0; top: 46px; height: 20px; border-top: 1px solid var(--line); }
.axis-ticks span {
  position: absolute; transform: translateX(-50%); top: 5px;
  font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums;
}
.axis-ticks span::before {
  content: ""; position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
  width: 1px; height: 5px; background: var(--line-strong);
}
.axis-legend {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--sp-2);
  font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.axis-legend .k { font-weight: 700; color: var(--ink); }
.axis-legend .band-note {
  width: 100%; padding-top: 7px; border-top: 1px dashed var(--line);
  color: var(--accent-ink); font-weight: 600;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: baseline; }
.dot-e { background: var(--accent); }
.dot-o { background: var(--mark-o); }
.sq-b { display: inline-block; width: 3px; height: 13px; background: var(--mark-b); margin-right: 6px; vertical-align: -2px; border-radius: 1px; }
.sq-b3 { display: inline-block; width: 3px; height: 13px; margin-right: 6px; vertical-align: -2px; border-radius: 1px;
  background: repeating-linear-gradient(180deg, #8b93a5 0 3px, transparent 3px 6px); }

.fig-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); margin-bottom: 2px; }
.fig-e-num { font-size: 32px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fig-e-cap { font-size: 12.5px; color: var(--muted); }
.fig-foot {
  margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}

.limits-box {
  margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--bg-subtle);
}
.limits-box h4 { margin-bottom: var(--sp-2); color: var(--ink); }
.limits-box ul { margin: 4px 0 0; padding-left: 20px; }
.limits-box li { font-size: 12.5px; color: var(--muted); margin: 3px 0; }

/* ==================================================================
   10. 数据不足 / 放宽阶梯
   ================================================================== */
.insufficient { border-style: dashed; border-color: var(--line-strong); background: var(--bg-subtle); }
.reason { color: var(--ink-soft); }
.ladder { margin: var(--sp-3) 0 0; padding-left: 0; list-style: none; counter-reset: step; }
.ladder li {
  counter-increment: step; position: relative; padding: var(--sp-3) var(--sp-4) var(--sp-3) 48px;
  border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--sp-2);
  background: var(--card); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ladder li:hover { border-color: var(--accent); box-shadow: var(--sh-1); }
.ladder li::before {
  content: counter(step); position: absolute; left: 12px; top: 12px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-ink); font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ladder li.recommended { border-color: var(--accent); background: linear-gradient(0deg, var(--accent-softer), var(--accent-softer)), var(--card); }
.step-line { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.step-desc { font-weight: 600; }
.step-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.step-act { margin-top: var(--sp-2); }

/* ==================================================================
   11. 样本预算（前置）
   ================================================================== */
.budget { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-4); }
.budget .cur {
  font-size: var(--fs-sm); margin-bottom: var(--sp-3); padding: 9px 14px;
  background: var(--accent-soft); border-radius: var(--r-md); color: var(--accent-ink);
  font-variant-numeric: tabular-nums; border: 1px solid rgba(47, 95, 208, 0.25);
}
.opt {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2);
  width: 100%; text-align: left; padding: 7px 11px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
  font: inherit; font-size: 13.5px; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.opt:hover { border-color: var(--accent); }
.opt.active { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.opt .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.opt.active .n { color: var(--accent-ink); }
.bgroup h4 { margin-bottom: var(--sp-2); }

/* ==================================================================
   12. 模板卡
   ================================================================== */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: var(--sp-4); }
.tpl {
  display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: 0;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tpl:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.tpl .q { font-weight: 700; font-size: var(--fs-md); color: var(--ink); }
.tpl .risk {
  font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line);
  padding-top: var(--sp-2); display: flex; gap: 6px;
}
.tpl .act { margin-top: auto; display: flex; gap: var(--sp-2); align-items: center; padding-top: var(--sp-2); }

/* ==================================================================
   13. 球队页
   ================================================================== */
.team-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-4); align-items: start; }
.team-list { max-height: 70vh; overflow-y: auto; padding: var(--sp-3); position: sticky; top: 72px; }
.team-item {
  display: block; width: 100%; text-align: left; border: 1px solid transparent;
  background: transparent; border-radius: var(--r-md); padding: 8px 11px; font: inherit;
  cursor: pointer; font-size: 14px; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.team-item:hover { background: var(--accent-softer); }
.team-item.active {
  background: var(--accent-soft); border-color: var(--accent); font-weight: 600;
}
.team-item .m { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--sp-3); }
.ov-cell {
  text-align: left; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); padding: var(--sp-3) var(--sp-4); font: inherit; cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ov-cell:hover { border-color: var(--accent); box-shadow: var(--sh-1); transform: translateY(-1px); }
.ov-cell .t { font-size: 12.5px; color: var(--muted); }
.ov-cell .e { font-size: 23px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.ov-cell .m { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.depth-meter { font-size: 12.5px; color: var(--muted); }

/* ==================================================================
   14. 下钻表
   ================================================================== */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.matches { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.matches th, table.matches td {
  padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
table.matches thead th {
  position: sticky; top: 0; background: var(--bg-subtle); color: var(--muted);
  font-weight: 600; font-size: var(--fs-xs); z-index: 1;
}
table.matches tbody tr:last-child td { border-bottom: none; }
table.matches tbody tr:hover td { background: var(--accent-softer); }
table.matches .hit { color: var(--accent-ink); font-weight: 700; }

/* ==================================================================
   15. 告警 / 错误
   ================================================================== */
.warn {
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-ink);
  padding: 11px 15px; border-radius: var(--r-md); font-size: 13.5px; margin-bottom: var(--sp-3);
  display: flex; gap: var(--sp-2); align-items: flex-start;
}
.warn::before { content: "⚠"; flex: none; }

/* ==================================================================
   16. 方法页
   ================================================================== */
.note-list { padding-left: 22px; }
.note-list li { margin: 8px 0; }
.note-list li::marker { color: var(--accent); font-weight: 700; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-3); margin: var(--sp-3) 0; }
.kv .cell { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); background: var(--card); }
.kv .cell .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.kv .cell .k { font-size: var(--fs-xs); color: var(--muted); }

/* ==================================================================
   17. 页头（内页）
   ================================================================== */
.pagehead { margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.pagehead .sub { color: var(--muted); font-size: 13.5px; max-width: 760px; }
.pagehead .crumb { font-size: 12.5px; color: var(--faint); margin-bottom: var(--sp-2); }
.pagehead .crumb a { color: var(--muted); }

/* ==================================================================
   18. 骨架屏 / 加载
   ================================================================== */
.skeleton {
  background: linear-gradient(90deg, #e9edf3 25%, #f4f6fa 50%, #e9edf3 75%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-sm); color: transparent !important; user-select: none;
}
.sk-line { height: 14px; margin: 8px 0; }
.sk-card { height: 120px; border-radius: var(--r-md); }
.sk-cell { height: 84px; border-radius: var(--r-md); }
.sk-chip { display: inline-block; width: 96px; height: 24px; border-radius: var(--r-pill); margin: 0 8px 8px 0; }
.sk-title { height: 22px; width: 60%; margin-bottom: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-row { display: flex; align-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-sm); }

/* ==================================================================
   19. Toast 通知
   ================================================================== */
.toast-wrap {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 60;
  display: flex; flex-direction: column; gap: var(--sp-2); max-width: 360px;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
  background: var(--ink); color: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-3); font-size: 13.5px;
  animation: toast-in 0.22s var(--ease);
}
.toast.warn { background: var(--warn-ink); }
.toast.error { background: #7a2c2c; }
.toast .close { margin-left: auto; cursor: pointer; opacity: 0.7; background: none; border: 0; color: inherit; font: inherit; padding: 0 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==================================================================
   20. 响应式
   ================================================================== */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .team-layout { grid-template-columns: 1fr; }
  .team-list { position: static; max-height: 300px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 26px; }
  .bar { flex-wrap: wrap; height: auto; padding: 10px 0; gap: var(--sp-2); }
  nav.main { order: 3; width: 100%; margin-left: 0; }
  nav.main a { flex: 1; text-align: center; }
}
@media (max-width: 460px) {
  .stats-strip { grid-template-columns: 1fr; }
  .card { padding: var(--sp-4); }
}
