/* ─────────────────────────────────────────────────────────────────────────
   评测工作展示 — 组件化样式（v2）
   布局协议：每个 eval 卡片是统一的 grid 流，块间距由 --block-gap 一处控制：
     sec-head → figure/intro → leaderboard → chart → kpis → facts
   meta.layout.blocks 可对未出现的块显式排序/裁剪（build_evals 校验）。
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --fs-h2: 24px;
  color-scheme: light;
  /* 全站底色统一为介绍栏的浅蓝（v11.1）：卡片面用纯白保持层次 */
  --page:        #e8f1fb;
  --surface:     #ffffff;
  --surface-2:   #eef4fb;
  --ink:         #0f1729;
  --ink-2:       #47546a;
  --ink-3:       #6b7890;
  --hairline:    rgba(15, 23, 41, 0.10);
  --hairline-2:  rgba(15, 23, 41, 0.06);
  --grid:        #d9e4f2;

  --s1: #2a78d6;  --s2: #eb6834;
  --s3: #1baf7a;  --s4: #eda100;  --s5: #e87ba4;  --s6: #008300;   /* 厂商分类色（已过 CVD 校验） */
  --good-text: #006300;  --critical: #d03b3b;

  --focus-ring: rgba(42, 120, 214, 0.55);
  --shadow-card: 0 1px 2px rgba(11,11,11,.03), 0 12px 32px rgba(11,11,11,.05);

  --block-gap: 30px;          /* 卡片内所有顶层块之间的统一间隙 */
  --inner-gap: 18px;          /* 组合块（intro/figure）内部间隙 */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* 字号阶梯（卡片内容统一从这里取） */
  --fs-eyebrow: 12px;
  --fs-h2: 30px;
  --fs-subtitle: 16px;
  --fs-body: 15px;
  --fs-note: 13px;
  --fs-table: 13.5px;
  --fs-kpi-v: 26px;
  --fs-kpi-l: 12px;

  /* ── 总览 v11（设计稿 C）：hero 浅蓝渐变 + 玻璃盾插画 + 彩色头带卡 ──
   * v11.1 底色统一：--page 即 hero 终点色，渐变起点仅微提亮 */
  --ov-hero-bg-from: #f3f8fe;
  --ov-hero-bg-to: var(--page);
  --ov-deco: rgba(42, 120, 214, .13);       /* hero 弧线 / 散点 */
  --ov-grad-a: #2563eb;  --ov-grad-b: #06b6d4;  /* 「安全」渐变字 + CTA */
  --ov-en: #3f5470;                          /* BigModelGym 副标题 */
  --ov-mesh: rgba(42, 120, 214, .34);        /* 网状球经纬线 */
  --ov-node: rgba(42, 120, 214, .80);        /* 网状球节点 */
  --ov-glow: rgba(37, 99, 235, .20);         /* 球心辉光 */
  --ov-orbit: rgba(37, 99, 235, .38);        /* 轨道环 */
  --ov-chip-bg: rgba(255, 255, 255, .58);
  --ov-chip-border: rgba(255, 255, 255, .72);
  --ov-logo-bg: var(--surface-2);            /* 导航盾牌 logo 圆底（与底色同源） */
}
:root[data-theme="dark"] {
  color-scheme: dark;
  /* 暗色与浅色同源：深蓝夜空底 + 深一档卡片面 */
  --page: #0e1522;  --surface: #16202f;  --surface-2: #1d2939;
  --ink: #eef4fb;   --ink-2: #b6c2d4;    --ink-3: #8b98ab;
  --hairline: rgba(238,244,251,.10);  --hairline-2: rgba(238,244,251,.06);
  --grid: #263447;
  --s1: #3987e5;  --s2: #d95926;
  --s3: #199e70;  --s4: #c98500;  --s5: #d55181;  --s6: #008300;
  --good-text: #0ca30c;  --critical: #e66767;
  --focus-ring: rgba(57,135,229,.65);
  --shadow-card: 0 1px 2px rgba(0,0,0,.25), 0 12px 32px rgba(0,0,0,.35);

  /* 总览 v11 暗色：深蓝夜空 + 提亮档渐变 stops（保证对比度）；
   * 底色与 --page 同源，hero 起点微提亮 */
  --ov-hero-bg-from: #131b2a;
  --ov-hero-bg-to: var(--page);
  --ov-deco: rgba(57, 135, 229, .17);
  --ov-grad-a: #3b82f6;  --ov-grad-b: #22d3ee;
  --ov-en: #93a7c4;
  --ov-mesh: rgba(57, 135, 229, .40);
  --ov-node: rgba(96, 165, 250, .85);
  --ov-glow: rgba(59, 130, 246, .30);
  --ov-orbit: rgba(96, 165, 250, .42);
  --ov-chip-bg: rgba(23, 32, 47, .60);
  --ov-chip-border: rgba(148, 163, 184, .30);
  --ov-logo-bg: var(--surface-2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 var(--fs-body)/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(42,120,214,.22); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--s1); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ══ hero（左对齐编辑式）════════════════════════════════════════════ */
.hero { padding: 28px 0 20px; }
.hero .wrap { display: grid; gap: 8px; }
h1 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.022em; font-weight: 700; margin: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.subtitle { font-size: 16px; color: var(--ink-2); font-weight: 550; margin: 0; }
.lede { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin: 0; }
.lede strong { color: var(--ink); font-weight: 620; }

/* ══ 总览视图 v11（设计稿 C 还原：分栏 hero + 玻璃盾插画 + 头带卡）═══
 * hero：左 45% 文字 / 句 55% 插画，浅蓝渐变 + 弧线散点氛围层；
 * 插画为纯 SVG/CSS（玻璃渐变 + 白高光描边 + 内发光合成玻璃感，
 * 无 canvas 无 rAF，动画全走 CSS/SMIL，切卡随 DOM 移除自动终止）。 */
.hero { position: relative; }
.hero.is-landing {
  padding: 64px 0 0;
  background: linear-gradient(160deg, var(--ov-hero-bg-from) 0%, var(--ov-hero-bg-to) 100%);
  overflow: hidden;
}
/* 右侧弧线 sweep + 装饰散点（低透明度氛围层，文字可读优先） */
.hero.is-landing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(28rem 28rem at 86% 30%, transparent 58%, var(--ov-deco) 58.6%, transparent 59.4%),
    radial-gradient(40rem 40rem at 86% 30%, transparent 58%, var(--ov-deco) 58.5%, transparent 59.2%),
    radial-gradient(1.4px 1.4px at 12% 22%, var(--ov-deco) 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 30% 78%, var(--ov-deco) 55%, transparent 58%),
    radial-gradient(1.6px 1.6px at 55% 12%, var(--ov-deco) 50%, transparent 53%),
    radial-gradient(1.2px 1.2px at 78% 82%, var(--ov-deco) 55%, transparent 58%);
}
.hero.is-landing #hero-wrap { position: relative; z-index: 1; }
.hero-split {
  display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: 48px; align-items: center; min-height: 420px;
}
.ov-hero-copy { text-align: left; display: grid; gap: 18px; justify-items: start; }
.hero.is-landing h1 {
  font-size: clamp(34px, 4.3vw, 54px); white-space: normal; overflow: visible;
  line-height: 1.16; letter-spacing: -0.026em; font-weight: 700; margin: 0;
}
/* 「安全」渐变强调字（设计稿双色标题） */
.ov-title-accent {
  background: linear-gradient(120deg, var(--ov-grad-a) 20%, var(--ov-grad-b) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ov-hero-en {
  margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 650;
  letter-spacing: 0.05em; color: var(--ov-en);
}
.ov-hero-lede {
  font-size: 16px; line-height: 1.9; color: var(--ink-2); margin: 0;
  max-width: 40rem; text-wrap: balance; text-align: justify;
}
.ov-hero-lede strong { color: var(--ink); font-weight: 620; }
.ov-actions { margin-top: 6px; }
/* CTA：渐变胶囊（设计稿主按钮），滚动到卡片区 */
.ov-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 620; letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(120deg, var(--ov-grad-a), var(--ov-grad-b));
  box-shadow: 0 6px 22px color-mix(in srgb, var(--ov-grad-a) 32%, transparent);
  transition: translate .16s ease, box-shadow .16s ease;
}
.ov-cta:hover {
  color: #fff; translate: 0 -2px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ov-grad-a) 42%, transparent);
}
.ov-cta svg { transition: transform .16s ease; }
.ov-cta:hover svg { transform: translateX(3px); }

/* ── hero 右列插画 ─────────────────────────────────────────────────── */
.ov-hero-art {
  position: relative; justify-self: center; width: 100%; max-width: 520px;
  aspect-ratio: 1; transform: translateZ(0); pointer-events: none;
}
/* 盾体投影：让玻璃盾在浅底上有「浮起」的轮廓感（SVG 内合成不了投影） */
.ov-art-svg .ov-shield { filter: drop-shadow(0 10px 26px rgba(37, 99, 235, .18)); }
.ov-art-svg .ov-cube { filter: drop-shadow(0 3px 8px rgba(37, 99, 235, .14)); }
.ov-art-glow {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--ov-glow), transparent 72%);
  animation: ovGlowPulse 6s ease-in-out infinite alternate;
}
.ov-art-svg { position: relative; width: 100%; height: 100%; display: block; }
@keyframes ovGlowPulse { from { opacity: .75; } to { opacity: 1; } }
/* 漂浮玻璃胶囊（设计稿 chips；真 backdrop-blur 仅用于此处与 nav） */
.ov-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ov-grad-a);
  background: var(--ov-chip-bg);
  border: 1px solid var(--ov-chip-border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(11, 30, 60, .10);
}
.ov-chip::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(120deg, var(--ov-grad-a), var(--ov-grad-b));
}
.ov-chip-1 { left: -3%; top: 15%; animation: ovFloat 7s ease-in-out infinite alternate; }
.ov-chip-2 { right: -4%; top: 46%; animation: ovFloat 8.5s .8s ease-in-out infinite alternate; }
.ov-chip-3 { left: 5%; bottom: 7%; animation: ovFloat 10s 1.6s ease-in-out infinite alternate; }
@keyframes ovFloat {
  from { transform: translateY(-7px) rotate(-1.2deg); }
  to   { transform: translateY(7px) rotate(1.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ov-chip, .ov-art-glow { animation: none; }
}

section.eval.overview { padding: 64px 0 48px; position: relative; }
/* hero → 卡片区过渡：两端渐隐发丝线（与分区头装饰线呼应） */
section.eval.overview::before {
  content: ""; position: absolute; top: 24px; left: 50%; translate: -50% 0;
  width: min(560px, 72vw); height: 1px;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--ov-grad-a) 26%, transparent) 32%,
    color-mix(in srgb, var(--ov-grad-a) 26%, transparent) 68%,
    transparent);
}
section.eval.overview .wrap { display: grid; gap: 36px; }
/* 分区头「── 评测体系 ──」：居中 + 两侧装饰短线（设计稿） */
.ov-head { text-align: center; display: grid; justify-items: center; gap: 10px; }
.ov-head h2 {
  font-size: 28px; letter-spacing: -0.02em; font-weight: 700; margin: 0;
  display: inline-flex; align-items: center; gap: 16px;
}
.ov-head h2::before, .ov-head h2::after {
  content: ""; width: 36px; height: 1px; background: var(--hairline);
}
.ov-lede { margin: 0; font-size: 15px; color: var(--ink-2); }
.ov-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; align-items: stretch;
}
/* teaser 卡：彩色头带 + 正文 + 统计行（设计稿 Benchmark Card） */
.ov-card {
  --ov-accent: var(--s1);
  display: flex; flex-direction: column; padding: 0;
  border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface); overflow: hidden;
  box-shadow: 0 2px 8px rgba(11, 11, 11, .04);
  transition: border-color .18s ease, translate .18s ease, box-shadow .18s ease;
}
.ov-card:hover {
  translate: 0 -3px;
  border-color: color-mix(in srgb, var(--ov-accent) 55%, var(--hairline));
  box-shadow: 0 8px 26px rgba(11, 11, 11, .08);
}
/* 头带：accent 浅渐变底（左饱和 → 右淡出）+ 图标 + kicker */
.ov-card-band {
  display: flex; align-items: center; gap: 11px; padding: 13px 22px;
  color: color-mix(in srgb, var(--ov-accent) 82%, var(--ink));
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ov-accent) 14%, var(--surface)) 0%,
    color-mix(in srgb, var(--ov-accent) 4%, var(--surface)) 78%);
  border-bottom: 1px solid color-mix(in srgb, var(--ov-accent) 14%, var(--hairline-2));
}
.ov-card-icon { display: inline-flex; }
.ov-card-icon svg { display: block; }
.ov-tag {
  font-size: 11.5px; font-weight: 660; letter-spacing: 0.09em;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-card-body {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 20px;
  flex: 1; min-width: 0;
}
.ov-card h3 { font-size: 20px; letter-spacing: -0.014em; font-weight: 680; line-height: 1.3; margin: 0; }
.ov-blurb { font-size: 14px; line-height: 1.75; color: var(--ink-2); margin: 0; flex: 1; text-wrap: pretty; }
/* 底部统计行：两组数字 + 组间竖线 + 右侧「查看详情 →」贴底 */
.ov-card-foot {
  display: flex; align-items: flex-end; gap: 18px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline-2);
}
.ov-stats { display: flex; gap: 20px; min-width: 0; }
.ov-stat { min-width: 0; }
.ov-stat + .ov-stat { border-left: 1px solid var(--hairline-2); padding-left: 20px; }
.ov-stat .v {
  font-size: 29px; font-weight: 720; letter-spacing: -0.018em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ov-accent) 76%, var(--ink));
}
.ov-stat .l { font-size: var(--fs-kpi-l); color: var(--ink-3); line-height: 1.55; margin-top: 5px; overflow-wrap: break-word; }
.ov-go {
  margin-left: auto; font-size: 13.5px; font-weight: 640; white-space: nowrap;
  color: color-mix(in srgb, var(--ov-accent) 82%, var(--ink));
  display: inline-flex; align-items: center; gap: 6px;
}
.ov-go svg { transition: transform .16s ease; }
.ov-card:hover .ov-go svg { transform: translateX(3px); }
@media (max-width: 860px) {
  .ov-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero.is-landing { padding: 44px 0 0; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .ov-hero-art { max-width: min(420px, 86vw); order: 2; }
  .ov-hero-copy { order: 1; }
}
@media (max-width: 640px) {
  .ov-chip { padding: 6px 12px; font-size: 11.5px; }
  .ov-chip-1 { left: 0; } .ov-chip-2 { right: 0; } .ov-chip-3 { left: 2%; }
  .ov-card-foot { flex-wrap: wrap; row-gap: 12px; }
  .ov-go { margin-left: 0; }
}

/* ══ nav ═════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--page) 80%, transparent);
}
/* v11.2：导航底线改为两端渐隐的柔和发丝线（配合浅蓝底色） */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--ink) 9%, transparent) 18%,
    color-mix(in srgb, var(--ink) 9%, transparent) 82%,
    transparent);
}
.nav-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 20px; height: 64px;
}
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 660; letter-spacing: -0.015em; font-size: 16px; white-space: nowrap; }
.wordmark:hover { color: inherit; }
.logo-mark { display: inline-flex; flex: none; }
/* 顶部 benchmark 切换器（≥2 个评测时显示）：品牌级导航，菜单列居中。
 * 激活态 = 蓝字 + 短居中下划线（设计稿）；移动端整行横向滚动收纳。 */
.bench-switch {
  display: flex; align-items: center; justify-content: center; gap: 30px;
  position: relative; min-width: 0;
}
.bench-switch::after {   /* 下划线指示条的轨道 */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--hairline);
}
.bench-switch button {
  position: relative; padding: 7px 2px 10px; font-size: 14.5px; font-weight: 550;
  letter-spacing: -0.01em; color: var(--ink-3); transition: color .2s; white-space: nowrap;
}
.bench-switch button::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 26px; height: 2px;
  margin-left: -13px; border-radius: 2px; background: var(--ov-grad-a);
  transform: scaleX(0); transform-origin: center; transition: transform .28s cubic-bezier(.22,.9,.28,1);
}
.bench-switch button:hover { color: var(--ink-2); }
.bench-switch button[aria-pressed="true"] { color: var(--ov-grad-a); font-weight: 640; }
.bench-switch button[aria-pressed="true"]::after { transform: scaleX(1); }
.nav .theme-btn { justify-self: end; }
@media (max-width: 960px) {
  .nav-inner { display: flex; flex-wrap: wrap; height: auto; padding: 10px 0 0; row-gap: 0; }
  .bench-switch {
    order: 3; width: 100%; justify-content: flex-start; gap: 22px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
  }
  .bench-switch::-webkit-scrollbar { display: none; }
  .bench-switch::after { display: none; }
  .bench-switch button::after { bottom: 2px; }
}
@media (max-width: 720px) { .bench-switch { gap: 16px; } .bench-switch button { font-size: 13px; } }

/* 卡片面板：同一时刻只显示当前 benchmark */
section.eval.bench-pane { display: none; }
section.eval.bench-pane.is-active { display: block; animation: benchIn .38s cubic-bezier(.22,.9,.28,1); }
@keyframes benchIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero { transition: opacity .17s ease, transform .17s ease; }
.hero.is-switching { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) {
  section.eval.bench-pane.is-active { animation: none; }
  .hero { transition: none; }
}

.nav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { padding: 6px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.theme-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink-2); transition: transform .15s; flex: none; }
.theme-btn:hover { color: var(--ink); transform: scale(1.05); }

/* ══ eval 卡片骨架：统一 grid 流 + 统一块间隙 ═══════════════════════ */
/* v11.2：块间分割线改为两端渐隐的柔和发丝线（取代整宽硬线） */
section.eval { padding: 18px 0 44px; position: relative; }
section.eval + section.eval::before {
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: min(720px, 84vw); height: 1px;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--ink) 10%, transparent) 24%,
    color-mix(in srgb, var(--ink) 10%, transparent) 76%,
    transparent);
}
section.eval.alt { background: color-mix(in srgb, var(--surface) 55%, var(--page)); }
section.eval .wrap { display: grid; gap: var(--block-gap); align-items: start; }
section.eval .wrap > * { width: 100%; }

/* ══ 块 1：卡片头（左对齐）═══════════════════════════════════════════ */
.sec-head { display: grid; gap: 5px; justify-items: start; margin-bottom: 12px; }
.sec-head .title-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 0.16em; color: var(--ink-3); margin: 0; text-transform: uppercase; }
h2 { font-size: 24px; font-weight: 680; letter-spacing: -0.022em; margin: 0; line-height: 1.2; }
.subtitle-card { font-size: 14px; color: var(--ink-2); font-weight: 550; margin: 0; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border: 1px solid var(--hairline); border-radius: 99px; background: var(--surface);
  font-size: 13px; font-weight: 550; color: var(--ink-2); box-shadow: var(--shadow-card);
  transition: all .15s;
}
.badge:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }
.badge.soon { opacity: .75; }
/* 「生成评测报告」：徽章行末位的动作按钮，走卡片 accent 色做信号位 */
.badge-report { cursor: pointer; color: var(--card-accent, var(--ink-2));
  border-color: color-mix(in srgb, var(--card-accent, var(--ink-3)) 42%, var(--hairline)); }
.badge-report:hover { color: var(--card-accent, var(--ink)); border-color: var(--card-accent, var(--ink-3)); }

/* ══ 块 2：介绍单元 = 导语 ‖ 总览图 并排 + 维度卡（图与介绍在一起）══ */
/* 介绍行：文字列与图列等高。文字列高度 = 图高度（JS 自适应字号填充），
   后端改 lead 文字后自动 re-fit，不溢出不留大空白。 */
.intro-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; align-items: stretch; text-align: left; }
.intro-text { grid-column: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.intro-text .lede { margin: 0; line-height: 1.8; font-size: var(--intro-fs, 14px); }
.intro-block figure.overview { grid-column: 2; grid-row: 1; align-self: stretch; }
.intro-block .rac-grid { grid-column: 1 / -1; }
@media (max-width: 1020px) {
  .intro-block { grid-template-columns: 1fr; }
  .intro-block figure.overview { grid-row: auto; }
}

figure.overview {
  margin: 0; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; box-shadow: var(--shadow-card); padding: 14px 16px 12px;
  display: grid; gap: 10px;
}
figure.overview img { display: block; width: 100%; height: auto; border-radius: 8px; }
figure.overview figcaption { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }

.rac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; width: 100%; }
.rac-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px 14px; box-shadow: var(--shadow-card); text-align: left; }
.rac-card .axis { font-size: 11.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rac-card .q { font-size: 15.5px; font-weight: 640; margin: 6px 0 8px; }
.rac-card .def { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 8px; }
.rac-legend { display: grid; gap: 5px; }
.rac-legend .row { display: flex; gap: 9px; font-size: 12px; color: var(--ink-2); }
.rac-legend .row b { font-weight: 620; color: var(--ink); min-width: 56px; }

/* ══ 块 3：排行榜（可多榜，每榜一张卡；表格 ⇄ 图表 双视图）══════════ */
.lb-boards { display: grid; gap: 26px; }

/* ══ 原：排行榜 ═════════════════════════════════════════════════════ */
/* 厂商颜色由 JS 按首现顺序内联到 bar/legend（单一事实源），无 .v-* 类 */
.lb-stage { position: relative; transition: height .45s cubic-bezier(.22,.9,.28,1); }
.lb-view { transition: opacity .32s ease, transform .32s cubic-bezier(.22,.9,.28,1); }
.lb-view:not(.is-active) {
  position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.995);
  pointer-events: none; visibility: hidden;
}
.lb-view.is-active { position: relative; opacity: 1; transform: none; }

.seg { display: inline-flex; gap: 4px; border: 1px solid var(--hairline); border-radius: 99px; padding: 3px; background: var(--surface); }
.seg button { padding: 3px 12px; border-radius: 99px; font-size: 12px; font-weight: 550; color: var(--ink-3); transition: all .18s; }
.seg button:hover { color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); font-weight: 620; }

.lb-chart-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lb-metric-chip {
  padding: 3px 11px; border-radius: 99px; border: 1px solid var(--hairline);
  font-size: 12px; font-weight: 550; color: var(--ink-2); background: var(--surface);
  cursor: pointer; transition: all .15s;
}
.lb-metric-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.lb-metric-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.lb-chart-body { display: grid; gap: 7px; }
.lb-bar-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 64px; align-items: center; gap: 12px; }
.lb-bar-name { font-size: 12.5px; font-weight: 540; color: var(--ink); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-bar-track { height: 16px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); border-radius: 4px; overflow: hidden; }
.lb-bar { height: 100%; border-radius: 4px; background: var(--ink-3); transform-origin: left center; transition: transform .5s cubic-bezier(.22,.9,.28,1); }
.lb-bar.danger { /* ↓ 指标：警示语义用左侧警示条 + 降饱和，避免 hue-rotate 在各厂商色上表现不可控 */
  border-left: 3px solid var(--critical);
  filter: saturate(.72) brightness(.96);
}
.lb-bar.missing { background: repeating-linear-gradient(135deg, var(--grid) 0 3px, transparent 3px 7px); }
.lb-bar.best { outline: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); outline-offset: 1px; }
.lb-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 12px; }
.lb-legend .li { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.lb-legend .li .sw { width: 9px; height: 9px; border-radius: 3px; }
.lb-bar-val { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .lb-stage, .lb-view, .lb-bar { transition: none !important; }
}

/* ══ 块 3 原：排行榜 ═════════════════════════════════════════════════ */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-card); padding: 22px 24px 18px; }
.card-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head .card-tools { margin-left: auto; }
.card-title { font-size: 16.5px; font-weight: 650; margin: 0; }
.card-sub { color: var(--ink-3); font-size: var(--fs-note); }
.card-note { color: var(--ink-3); font-size: var(--fs-note); line-height: 1.75; margin: 14px 0 0; white-space: pre-line; }

.tablewrap { overflow-x: auto; border: 1px solid var(--hairline-2); border-radius: 12px; }
table.data { border-collapse: collapse; width: 100%; font-size: var(--fs-table); }
table.data th, table.data td { padding: 9px 14px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data th:first-child, table.data td:first-child,
table.data th:nth-child(2), table.data td:nth-child(2) { text-align: left; }
table.data thead th { font-weight: 620; color: var(--ink-3); border-bottom: 1px solid var(--grid); font-size: 12.5px; position: sticky; top: 0; background: var(--surface); }
table.data thead th.sortable { cursor: pointer; user-select: none; }
table.data thead th.sortable:hover { color: var(--ink); }
table.data thead th[aria-sort="descending"], table.data thead th[aria-sort="ascending"] { color: var(--ink); }
table.data thead th[aria-sort="descending"]::after { content: " ↓"; font-size: 10px; }
table.data thead th[aria-sort="ascending"]::after { content: " ↑"; font-size: 10px; }
table.data tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.best { font-weight: 660; }
table.data td.danger { color: var(--critical); font-weight: 600; }

/* ══ 块 4：图表 ══════════════════════════════════════════════════════ */
figure.figcard { margin: 0; }
figure.figcard figcaption { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.6; }
figure.figcard figcaption b { color: var(--ink); }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .tick-label { font-size: 11.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .row-label { font-size: 12.5px; fill: var(--ink); font-weight: 540; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
#tooltip { position: fixed; left: 0; top: 0; z-index: 60; opacity: 0; pointer-events: none; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: 0 2px 6px rgba(11,11,11,.08), 0 16px 44px rgba(11,11,11,.14); padding: 10px 13px; max-width: 300px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); transition: opacity .1s; }
#tooltip .tt-title { font-weight: 650; color: var(--ink); font-size: 13px; margin-bottom: 3px; }

/* ══ 块 5：KPI（居中）════════════════════════════════════════════════ */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 18px 15px; box-shadow: var(--shadow-card); text-align: left; display: grid; gap: 7px; justify-items: stretch; }
.kpi .v { font-size: var(--fs-kpi-v); font-weight: 660; letter-spacing: -0.02em; line-height: 1.15; }
.kpi .l { font-size: var(--fs-kpi-l); color: var(--ink-3); line-height: 1.55; }

/* ══ 块 6：事实条 ════════════════════════════════════════════════════ */
.factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.factrow { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow-card); padding: 18px 20px; display: grid; gap: 6px; justify-items: stretch; min-width: 0; }
.factrow span { font-size: 23px; font-weight: 680; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.factrow div { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; max-width: 34ch; }

.block-error {
  border: 1px dashed var(--hairline); border-radius: 12px; padding: 14px 18px;
  color: var(--ink-3); font-size: 13px; background: var(--surface);
}

/* ══ footer（居中）═══════════════════════════════════════════════════ */
footer {
  margin-top: 64px; padding: 34px 0 60px; color: var(--ink-3);
  font-size: var(--fs-note); line-height: 1.85; position: relative;
}
footer::before {   /* v11.2：页脚顶线同样两端渐隐 */
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: min(720px, 84vw); height: 1px;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--ink) 10%, transparent) 24%,
    color-mix(in srgb, var(--ink) 10%, transparent) 76%,
    transparent);
}
footer .wrap { display: grid; gap: 10px; }
footer b { color: var(--ink-2); }
.cite-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cite-name { color: var(--ink-2); font-weight: 600; }
.cite-name:hover { color: var(--s1); }
.cite-date { color: var(--ink-3); }
.cite-link { color: var(--ink-3); }
.cite-link:hover { color: var(--s1); }
@media (max-width: 720px) { .cite-row { gap: 10px; } }

@media (max-width: 1020px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .rac-grid, .factgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .nav-links { max-width: 46vw; }
  section.eval { padding: 52px 0 44px; }
  :root { --block-gap: 34px; }
}


/* 「生成评测报告」按钮的下载态反馈（服务端生成期间/完成/失败） */
.badge-report.is-busy { opacity: .7; pointer-events: none; }
