:root {
  --background: #f6f7f9;
  --foreground: #14161b;
  --card: #ffffff;
  --border: #e7e9ee;
  --muted: #f1f2f5;
  --muted-fg: #5c6470;
  --tertiary: #8b93a1;
  --primary: #14161b;
  --accent: #f2f3f5;
  --brand: #4f46e5;
  --brand-soft: rgba(79, 70, 229, 0.09);
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.1);
  --family-openai: #10a37f;
  --family-anthropic: #d97757;
  --family-google: #4285f4;
  --family-xai: #23252b;
  --family-meta: #0866ff;
  --family-alibaba: #ff6a00;
  --family-deepseek: #4d6bfe;
  --family-zhipu: #0b74e5;
  --family-moonshot: #6e6e73;
  --family-muse: #6d5ae6;
  --family-other: #8b93a1;
  --lang-go: #00add8;
  --lang-python: #3776ab;
  --lang-typescript: #3178c6;
  --lang-javascript: #f0db4f;
  --lang-rust: #b7410e;
  --lang-other: #8b93a1;
  --pass: #10a37f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(79, 70, 229, 0.16); color: var(--foreground); }
a { color: var(--foreground); text-decoration: none; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }

/* ========== 头部 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(231, 233, 238, 0.9);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  line-height: 1;
}
.brand-mark {
  display: inline-block;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 5px rgba(79, 70, 229, 0.35));
}
.brand:hover { opacity: 0.85; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted-fg);
  padding: 0 13px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  border-radius: 9px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--foreground); background: var(--muted); }
.site-nav a.active {
  color: var(--foreground);
  font-weight: 600;
  background: #eceef3;
}
.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 17px;
  padding: 5px 11px;
  cursor: pointer;
  color: var(--foreground);
}

/* ========== 主体 ========== */
.main-content { padding: 0 20px 72px; min-height: 60vh; }

/* ========== hero ========== */
.hero {
  position: relative;
  padding: 44px 0 8px;
  overflow: clip;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 860px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(79, 70, 229, 0.09), rgba(139, 92, 246, 0.05) 55%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  background: linear-gradient(115deg, #14161b 20%, #4f46e5 72%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-tagline {
  font-size: 17.5px;
  color: var(--muted-fg);
  max-width: 52ch;
  margin: 20px auto 0;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--muted-fg); }
.hero-note a {
  color: var(--brand);
  font-weight: 500;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.hero-note a:hover { border-color: var(--brand); }
.hero-sync {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--tertiary);
}
.hero-sync::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pass);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.14);
}

/* ========== 区块标题 ========== */
.section { margin-top: 40px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 22px;
}
.section-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.lb-meta { font-size: 13.5px; color: var(--tertiary); }
.lb-meta strong { color: var(--muted-fg); font-weight: 600; }

/* ========== 分段控件 ========== */
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #eef0f4;
  border-radius: 11px;
}
.segmented button, .segmented a.seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border: none;
  background: none;
  color: var(--muted-fg);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
  text-decoration: none;
  white-space: nowrap;
}
.segmented button:hover, .segmented a.seg:hover { color: var(--foreground); }
.segmented button.on, .segmented a.seg.on {
  background: #fff;
  color: var(--foreground);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}
.segmented button.on:hover, .segmented a.seg.on:hover { background: #fff; color: var(--foreground); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.toolbar input[type=search] {
  padding: 0 13px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
  min-width: 180px;
}
.toolbar input[type=search]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ========== 图表 ========== */
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 0;
}
.chart-title { font-size: 14.5px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.chart-sub { font-size: 12px; color: var(--tertiary); white-space: nowrap; }
.chart-body { padding: 4px 10px 10px; }
.chart { width: 100%; height: auto; display: block; }
.grid-line { stroke: #dfe3ea; stroke-width: 1; stroke-dasharray: 3 4; }
.axis { stroke: #c3c9d4; stroke-width: 1.2; }
.axis-label { font-size: 12px; fill: var(--tertiary); }
.axis-title { font-size: 13px; fill: var(--muted-fg); font-weight: 600; }
.series-line { stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: 0.9; }
.pt-ring {
  fill: #fff;
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 3px rgba(16, 24, 40, 0.25));
}
.pt-label {
  font-size: 10.5px;
  fill: var(--muted-fg);
  font-weight: 500;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.pt-lead { stroke: #b9c0cc; stroke-width: 1; }
.pt-link { stroke: #c3c9d4; stroke-width: 1; stroke-dasharray: 2 3; }
.pt-anchor { opacity: 0.75; }
a:hover .pt-ring { stroke: #fff; stroke-width: 3; }
.chart-pt .pt-ring { transition: stroke-width 0.15s ease; }
.chart-pt:hover .pt-ring { stroke-width: 3.5; }
.chart-tooltip {
  position: fixed;
  z-index: 100;
  display: none;
  min-width: 158px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16), 0 2px 8px rgba(16, 24, 40, 0.06);
  font-size: 12.5px;
  pointer-events: none;
  transform: translateX(-50%);
}
.chart-tooltip .ct-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.chart-tooltip .ct-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--foreground);
  vertical-align: 1px;
}
.chart-tooltip .ct-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.chart-tooltip .ct-row span { color: var(--tertiary); }
.chart-tooltip .ct-row b { color: var(--foreground); font-weight: 600; }
.chart-note { font-size: 13px; color: var(--tertiary); margin-top: 8px; padding: 0 6px; }
.chart-badge {
  font-size: 11.5px;
  font-style: italic;
  fill: var(--tertiary);
}

/* ========== 图表筛选（纯前端即时显隐，无 JS 时整体隐藏） ========== */
.chart-filter { display: none; }
.js .chart-filter { display: block; }
.cf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--muted);
  background: linear-gradient(180deg, #fafbfd, #f7f8fb);
}
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 460px; }
.cf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-fg);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.cf-chip .cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cf, #8b93a1);
  opacity: 0.4;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.cf-chip .cf-n {
  font-size: 11px;
  color: var(--tertiary);
  font-variant-numeric: tabular-nums;
  background: var(--muted);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 17px;
}
.cf-chip:hover { border-color: #c9cdd9; color: var(--foreground); }
.cf-chip.on {
  border-color: color-mix(in srgb, var(--cf, #4f46e5) 38%, #fff);
  background: color-mix(in srgb, var(--cf, #4f46e5) 9%, #fff);
  color: var(--foreground);
  font-weight: 600;
}
.cf-chip.on .cf-dot {
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cf, #4f46e5) 20%, transparent);
}
.cf-chip.on .cf-n { background: #fff; }
.cf-chip.mix { border-color: color-mix(in srgb, var(--cf, #4f46e5) 45%, #fff); color: var(--foreground); }
.cf-chip.mix .cf-dot { opacity: 1; }
.cf-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cf-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-left: auto; }
.cf-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--tertiary);
}
.cf-opt select {
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12.5px;
  font-family: inherit;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
}
.cf-opt select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cf-reset {
  border: none;
  background: none;
  padding: 0 0 1px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}
.cf-reset:hover { border-color: var(--brand); }

.cf-models { border-bottom: 1px solid var(--muted); }
.cf-models summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--muted-fg);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s;
}
.cf-models summary:hover { color: var(--foreground); }
.cf-models summary::-webkit-details-marker { display: none; }
.cf-models summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid var(--tertiary);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  transition: transform 0.15s;
}
.cf-models[open] summary::before { transform: rotate(90deg); }
.cf-count { color: var(--tertiary); font-variant-numeric: tabular-nums; }
.cf-groups { padding: 10px 14px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 24px; }
.cf-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-ghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
.cf-gname {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--foreground);
}
.cf-gname::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cf, #8b93a1);
  flex: 0 0 auto;
}
.cf-gtools { display: inline-flex; gap: 10px; flex: 0 0 auto; }
.cf-gtools button {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  color: var(--tertiary);
  cursor: pointer;
  transition: color 0.13s;
}
.cf-gtools button:hover { color: var(--brand); }
.cf-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.cf-model { position: relative; display: inline-flex; cursor: pointer; }
.cf-model input { position: absolute; opacity: 0; pointer-events: none; }
.cf-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
  color: var(--muted-fg);
  white-space: nowrap;
  transition: border-color 0.13s, background 0.13s, color 0.13s;
}
.cf-model:hover .cf-pill { border-color: #c9cdd9; color: var(--foreground); background: #f5f6fa; }
.cf-model input:checked + .cf-pill {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 45%, #fff);
  color: var(--brand);
  font-weight: 600;
}
.cf-model input:checked + .cf-pill::before {
  content: "✓";
  margin-right: 4px;
  font-weight: 700;
}
.cf-model input:focus-visible + .cf-pill { outline: 2px solid var(--brand); outline-offset: 2px; }
.cf-models-foot { display: flex; gap: 16px; padding: 0 14px 12px; font-size: 12.5px; }
.cf-models-foot button {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 500;
  cursor: pointer;
}
.cf-models-foot button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ========== 排行榜行 ========== */
.lb-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.lb-row:hover {
  border-color: #d5d9e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.lb-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lb-rank {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lb-rank.r1 { background: #fdf0c8; color: #a16207; }
.lb-rank.r2 { background: #e8eaf0; color: #4b5563; }
.lb-rank.r3 { background: #fbe4d5; color: #c2410c; }
.lb-model {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
}
.lb-model .icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}
.lb-model .name { font-weight: 600; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-model .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb-effort { color: var(--tertiary); flex: 0 0 auto; font-size: 12px; }
.lb-bar {
  position: relative;
  width: 100%;
  height: 20px;
}
.lb-bar-track {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  right: 0;
  background: #f0f2f6;
  border-radius: 999px;
}
.lb-bar-fill {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lb-bar-mark {
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: #9aa3b2;
  border-radius: 2px;
  opacity: 0.9;
}
.lb-bar-cap {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 2px;
  transform: translateY(-50%);
  background: #9aa3b2;
  border-radius: 2px;
  opacity: 0.9;
}
.lb-row-nums {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  font-size: 12.5px;
  color: var(--tertiary);
}
.lb-num-label { display: inline-flex; gap: 6px; align-items: baseline; }
.lb-num-label b { color: var(--foreground); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-num-label .ci { font-size: 11.5px; color: var(--tertiary); }
.lb-num-sm { display: inline; }
.lb-pass-sm { display: inline-flex; }
@media (min-width: 640px) {
  .lb-num-sm { display: none; }
  .lb-pass-sm { display: none; }
}
@media (min-width: 640px) {
  .lb-row {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .lb-row-top { width: 266px; flex: 0 0 auto; }
  .lb-model { flex: 1 1 auto; }
  .lb-bar { flex: 1 1 auto; }
  .lb-row-nums { gap: 16px; flex: 0 0 auto; }
  .lb-num-label { width: 68px; justify-content: flex-end; }
  .lb-num-label.cost { width: 68px; }
  .lb-num-label.tok { width: 64px; }
  .lb-num-label.steps { width: 56px; }
}
.lb-footnote { margin-top: 14px; }
.lb-head {
  display: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tertiary);
  border-bottom: 1px solid var(--border);
  padding: 4px 16px 10px;
}
@media (min-width: 640px) {
  .lb-head { display: flex; gap: 16px; }
  .lb-head .h-rank { width: 34px; flex: 0 0 auto; text-transform: none; }
  .lb-head .h-model { width: 216px; flex: 0 0 auto; }
  .lb-head .h-bar { flex: 1 1 auto; }
  .lb-head .h-pass { width: 68px; flex: 0 0 auto; text-align: right; }
  .lb-head .h-cost { width: 68px; flex: 0 0 auto; text-align: right; }
  .lb-head .h-tok { width: 64px; flex: 0 0 auto; text-align: right; }
  .lb-head .h-steps { width: 56px; flex: 0 0 auto; text-align: right; }
}

/* ========== 通用面板/表格 ========== */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 30px;
  margin-top: 32px;
}
.panel > :first-child { margin-top: 0; }
.panel h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.panel h2 { font-size: 19px; font-weight: 700; margin: 30px 0 14px; }
.panel-sub { font-size: 12.5px; color: var(--tertiary); font-weight: 500; margin-left: 8px; }
.panel p { margin-bottom: 12px; line-height: 1.75; }
.panel p:last-child { margin-bottom: 0; }
.muted { color: var(--tertiary); font-size: 13.5px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.data-table th, .data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid #eef0f4;
  white-space: nowrap;
}
.data-table th {
  font-weight: 600;
  color: var(--tertiary);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.data-table tbody tr { transition: background 0.12s; }
.data-table tbody tr:hover { background: #f8f9fc; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .col-title { white-space: normal; min-width: 220px; max-width: 420px; }
.data-table .col-repo { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.data-table .td-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted-fg); }
.data-table .td-num b { color: var(--foreground); }
.data-table .th-num { text-align: right; }
.data-table .rank { font-weight: 600; color: var(--tertiary); width: 1%; font-variant-numeric: tabular-nums; }

.model-cell { display: inline-flex; align-items: center; gap: 9px; line-height: 1.2; }
.model-cell a { font-weight: 600; color: var(--foreground); }
.model-cell a:hover { color: var(--brand); }
.model-avatar {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  border-radius: 6px;
  background: var(--muted);
  padding: 3px;
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 11px;
  line-height: 1.7;
  font-weight: 600;
  vertical-align: 2px;
  cursor: help;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff !important;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 18px;
  height: 38px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:hover {
  background: #4338ca;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: #4338ca; }
.btn-outline {
  background: var(--brand-soft);
  color: var(--brand) !important;
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: rgba(79, 70, 229, 0.16); border-color: var(--brand); }
.btn-plain { background: var(--muted); color: var(--foreground) !important; }
.btn-plain:hover { background: #e5e7ec; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }

/* ========== 任务筛选条 ========== */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.filter-bar input[type=search],
.filter-bar select {
  padding: 0 13px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
  min-width: 180px;
}
.filter-bar input[type=search]:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ========== 详情页 ========== */
.note-list { margin: 12px 0 0 22px; }
.note-list li { margin-bottom: 10px; color: var(--foreground); line-height: 1.7; }
.note-list li::marker { color: var(--brand); }
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px 36px;
  margin-top: 10px;
}
.detail-list p {
  margin-bottom: 0;
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed #e6e8ee;
  padding-bottom: 11px;
}
.detail-list strong { color: var(--tertiary); font-weight: 500; flex: 0 0 auto; }
.detail-list span { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.prose { margin-bottom: 20px; white-space: pre-wrap; word-break: break-word; line-height: 1.75; }
.notice {
  background: #f7f8fb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted-fg);
}
.notice strong { color: var(--foreground); }
.center { text-align: center; }
.center h1 { margin-bottom: 12px; }

/* ========== 统计卡（模型详情页） ========== */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0 10px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--tertiary);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-num {
  font-size: 23px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.stat-num.small { font-size: 15px; }

/* ========== 页脚 ========== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 34px 0 42px;
  text-align: center;
  color: var(--tertiary);
  font-size: 13.5px;
}
.site-footer p { margin-bottom: 7px; }
.site-footer .icp { margin-top: 14px; font-size: 13.5px; }
.site-footer .icp a { color: var(--muted-fg); font-weight: 500; }
.site-footer .icp a:hover { color: var(--brand); }

/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .hero { padding: 32px 0 0; }
  .hero h1 { font-size: 34px; }
  .hero-tagline { font-size: 15.5px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 12px 14px;
    gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { height: 42px; padding: 0 12px; }
  .panel { padding: 22px; }
  .detail-list { grid-template-columns: 1fr; }
  .eff-list { grid-template-columns: 1fr; }
  .cf-row { padding: 10px 12px; }
  .cf-opts { width: 100%; margin-left: 0; }
  .cf-opt { flex: 1 1 auto; }
  .cf-opt select { flex: 1 1 auto; }
  .cf-group { grid-template-columns: 1fr; gap: 6px; }
  .cf-gname { padding-top: 0; }
  .chart-body { padding: 2px 4px 8px; }
  .chart-head { padding: 11px 12px 0; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1600px) {
  body { font-size: 16px; }
  .container { max-width: 1152px; }
}