@charset "utf-8";
/* ==========================================================================
   子涵全球AI排行榜 — 视觉系统
   zihan.huangtuoxie.com
   ========================================================================== */

:root {
  --bg: #07080a;
  --bg-elev: #0c0e12;
  --card: #101218;
  --card-2: #14171f;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --tx: #eef0f4;
  --tx-2: #b9bfca;
  --muted: #7e8593;
  --dim: #5b6270;
  --accent: #ff5b35;
  --accent-soft: rgba(255, 91, 53, 0.12);
  --gold: #f0c14b;
  --silver: #c9d1dd;
  --bronze: #c98a5a;
  --teal: #35d6b2;
  --blue: #6ba4ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% -8%, rgba(255, 91, 53, 0.14), transparent 62%),
    radial-gradient(680px 460px at 92% 4%, rgba(53, 214, 178, 0.08), transparent 60%),
    linear-gradient(180deg, #080a0d 0%, #07080a 42%, #050608 100%);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

::selection {
  background: rgba(255, 91, 53, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, #ff6a3d, #e03c17);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 20px -6px rgba(255, 91, 53, 0.8);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text b {
  font-size: 15.5px;
  font-weight: 700;
}

.brand-text span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
  font-family: var(--mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--tx-2);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--tx);
}

.nav-links a[aria-current="page"] {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  border: 1px solid var(--line-strong);
  color: var(--tx) !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 9px;
  color: var(--tx);
  font-size: 18px;
  cursor: pointer;
}

/* ---------- 通用排版 ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.26;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: 19px;
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: 17px;
  color: var(--tx-2);
  line-height: 1.85;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12.5px;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.accent {
  color: var(--accent);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s, background 0.18s, border-color 0.18s;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6a3d, #e8411c);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(255, 91, 53, 0.9);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--tx-2);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  color: var(--tx);
  border-color: rgba(255, 255, 255, 0.26);
}

/* 正文里的行内链接：全站 a{color:inherit} 会让“去 编程模型榜”看起来像普通文字，
   段落内的跳转必须可见，否则等于没放链接 */
.section-head p a,
.cat-card p a,
.legend a,
.notice a,
.lede a,
.page-head .desc a {
  color: #ff8a66;
  border-bottom: 1px solid rgba(255, 138, 102, 0.38);
  transition: color 0.15s, border-color 0.15s;
}

.section-head p a:hover,
.cat-card p a:hover,
.legend a:hover,
.notice a:hover,
.lede a:hover,
.page-head .desc a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.btn-row .btn {
  text-decoration: none;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 74px 0 44px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 420px at 30% 10%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(760px 420px at 30% 10%, #000 10%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 52px;
  align-items: center;
}

.hero h1 .grad {
  background: linear-gradient(102deg, #ff7a4d 0%, #f0c14b 58%, #ffe6a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 540px;
  font-size: 16px;
  color: var(--tx-2);
  line-height: 1.85;
  text-wrap: pretty;
}

.hero-sub strong {
  color: var(--tx);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--dim);
  font-family: var(--mono);
}.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* hero 内的其它榜单直达按钮 */
.hero-boards {
  margin-top: 24px;
}

.hb-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-bottom: 9px;
}

.hb-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 528px;
}

.hb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}

.hb b {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx);
  white-space: nowrap;
}

.hb span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}

.hb i {
  font-style: normal;
  font-size: 12px;
  color: var(--accent);
  opacity: 0.65;
}

.hb:hover {
  border-color: rgba(255, 91, 53, 0.45);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.hb:hover i {
  opacity: 1;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(53, 214, 178, 0.14);
}

.dot.orange {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 91, 53, 0.14);
}

/* Hero 侧栏：实时榜首卡 */
.spotlight {
  position: relative;
  background: linear-gradient(165deg, rgba(24, 27, 34, 0.96), rgba(12, 14, 18, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 91, 53, 0.5), transparent 38%, transparent 66%, rgba(53, 214, 178, 0.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.spotlight-title {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: var(--teal);
  border: 1px solid rgba(53, 214, 178, 0.25);
  background: rgba(53, 214, 178, 0.07);
  padding: 3px 8px;
  border-radius: 100px;
}

.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.mini-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.055);
}

.mini-row:last-of-type {
  border-bottom: 0;
}

.mini-rank {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  text-align: right;
}

.mini-row:nth-child(2) .mini-rank { color: var(--gold); }
.mini-row:nth-child(3) .mini-rank { color: var(--silver); }
.mini-row:nth-child(4) .mini-rank { color: var(--bronze); }

.mini-name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-name em {
  font-style: normal;
  color: var(--dim);
  font-weight: 400;
  font-size: 11.5px;
  margin-left: 7px;
}

.mini-score {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--tx);
  font-variant-numeric: tabular-nums;
}

.spotlight-foot {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- 统计条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  overflow: hidden;
}

.stat {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 区块 ---------- */
.section {
  padding: 66px 0;
}

.section.tight {
  padding: 44px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 28px;
}

.section-head .kicker {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(24px, 2.6vw, 31px);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 620px;
}

.link-more {
  font-size: 13px;
  color: var(--tx-2);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  white-space: nowrap;
}

.link-more:hover {
  border-color: var(--accent);
}

/* ---------- 排行榜表格 ---------- */
.board-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.board-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.search-box {
  position: relative;
  flex: 1 1 220px;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: #0a0c10;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--tx);
  font-size: 13px;
  font-family: var(--font);
}

.search-box input::placeholder {
  color: var(--dim);
}

.search-box input:focus {
  outline: none;
  border-color: rgba(255, 91, 53, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 91, 53, 0.1);
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: var(--dim);
  fill: none;
  stroke-width: 2;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.16s;
}

.chip:hover {
  color: var(--tx);
  border-color: var(--line-strong);
}

.chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: rgba(255, 91, 53, 0.4);
  color: #ff8a66;
}

.board-hint {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--dim);
  font-family: var(--mono);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 900px;
}

table.board thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0e1015;
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

table.board thead th.no-sort {
  cursor: default;
}

/* 表头右对齐：用类而非内联样式，便于区分排序箭头的落点 */
table.board thead th.ta-r {
  text-align: right;
}

/* “模型 ⟲”重置表头：可点但不排序，hover 提示它是重置入口 */
table.board thead th.th-reset {
  cursor: pointer;
  user-select: none;
}
table.board thead th.th-reset:hover {
  color: #ff8a66;
}

/* 排序指示：纯 CSS 三角，不依赖字体字形，任何编码下都不会变成乱码 */
table.board thead th[data-sort]::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 5px solid #ff8a66;
  opacity: 0;
}

/* 左对齐列（模型/工具/厂商）：三角紧跟文字 */
table.board thead th[data-sort]:not(.ta-r)::after {
  margin-left: 5px;
  vertical-align: 2px;
}

/* 右对齐列（数值）：三角绝对定位在右侧内边距内，不占文字宽度、不挤列 */
table.board thead th.ta-r[data-sort]::after {
  position: absolute;
  right: 3px;
  top: 50%;
  margin-top: -1px;
}

table.board thead th[data-dir]::after {
  opacity: 1;
}

table.board thead th[data-dir="asc"]::after {
  border-top: 0;
  border-bottom: 5px solid #ff8a66;
}

table.board thead th[data-sort]:not(.ta-r)[data-dir="asc"]::after {
  vertical-align: 0;
}

table.board thead th.ta-r[data-dir="asc"]::after {
  margin-top: -4px;
}

table.board tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
  white-space: nowrap;
}

table.board tbody tr:hover td {
  background: rgba(255, 255, 255, 0.022);
}

table.board tbody tr:last-child td {
  border-bottom: 0;
}

.c-rank {
  width: 52px;
  text-align: center !important;
  padding-right: 0 !important;
}

.rank-num {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

tr.top1 .rank-num { color: var(--gold); }
tr.top2 .rank-num { color: var(--silver); }
tr.top3 .rank-num { color: var(--bronze); }

tr.top1 td:first-child {
  box-shadow: inset 2px 0 0 var(--gold);
}

.c-model {
  min-width: 210px;
}

.model-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--tx);
}

.model-name .tag {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.tag.open {
  color: #6fe3c4;
  background: rgba(53, 214, 178, 0.1);
  border: 1px solid rgba(53, 214, 178, 0.22);
}

.tag.warn {
  color: #ffb454;
  background: rgba(255, 180, 84, 0.1);
  border: 1px solid rgba(255, 180, 84, 0.28);
}

.tag.cn {
  color: #ffb08f;
  background: rgba(255, 91, 53, 0.09);
  border: 1px solid rgba(255, 91, 53, 0.22);
}

.tag.new {
  color: #9ec1ff;
  background: rgba(107, 164, 255, 0.1);
  border: 1px solid rgba(107, 164, 255, 0.22);
}

.model-meta {
  display: block;
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 2px;
  font-family: var(--mono);
}

/* 行内展开的工程参数 */
.spec-btn {
  margin-left: 8px;
  padding: 0 0 1px;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s;
}

.spec-btn:hover,
.spec-btn[aria-expanded="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 特异性要压过 table.board tbody td（它给了 nowrap 和 12/14 内边距） */
table.board tbody tr.spec-row > td {
  padding: 0;
  white-space: normal;
  background: rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid var(--line);
}

.spec-panel {
  padding: 13px 18px 16px;
}

.spec-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 11px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.spec-head b {
  color: var(--tx-2);
  font-weight: 600;
  font-size: 12.5px;
}

.spec-head em {
  font-style: normal;
  padding: 1px 6px;
  border: 1px solid rgba(240, 193, 75, 0.35);
  border-radius: 5px;
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.spec-note {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tx-2);
}

.spec-note::before {
  content: "定位 · ";
  color: var(--dim);
  font-size: 12px;
}

.spec-flag {
  margin: 0 0 12px;
  padding: 7px 10px;
  border-left: 2px solid rgba(255, 180, 84, 0.5);
  background: rgba(255, 180, 84, 0.05);
  font-size: 12.5px;
  line-height: 1.55;
  color: #d8b07a;
}

.spec-grid {
  display: grid;
  /* 用显式列数而非 auto-fit：表格定宽布局下 auto-fit 的轨道计算结果不稳定 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 26px;
}

.spec-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* “工具与补全”文案最长，给它两列，避免只剩两字回行 */
.spec-grid > div:nth-child(5) {
  grid-column: span 2;
}

.spec-grid b {
  font-size: 11px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.03em;
}

.spec-grid span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--tx-2);
  font-family: var(--mono);
  word-break: break-word;
}

td.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--tx-2);
}

td.num.off {
  color: var(--dim);
}

td.num.strong {
  color: var(--tx);
  font-weight: 600;
}

td.num.miss {
  color: var(--dim);
}

/* 估算分：与实测分必须有可见差别，否则读者看不出这一行有 3 项是估出来的 */
.est-mark {
  color: var(--tx-2);
  font-style: italic;
  border-bottom: 1px dotted rgba(255, 180, 84, 0.55);
  cursor: help;
  padding-bottom: 1px;
}

td.num.has-est .bar i {
  background: linear-gradient(90deg, rgba(255, 180, 84, 0.28), rgba(255, 180, 84, 0.62));
}

.tag.est {
  color: #ffb454;
  background: rgba(255, 180, 84, 0.07);
  border: 1px dashed rgba(255, 180, 84, 0.45);
  cursor: help;
}

/* 未入 AA 榜：强度不排名的条目，整行弱化，名次与分数条留“—” */
.tag.nr {
  color: var(--tx-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  cursor: help;
}

tr.unranked td { opacity: 0.62; }

tr.unranked .model-name {
  color: var(--tx-2);
  font-weight: 500;
}

tr.unranked .rank-num { color: var(--muted); }

.est-title {
  color: #ffb454;
  font-weight: 600;
}

/* 角色扮演：中文适配列（不计入强度指数，只做筛选与参考） */
td.num.zh {
  color: var(--tx-2);
}

td.num.zh.zh-hi {
  color: var(--teal);
  font-weight: 600;
}

td.num.zh.zh-lo {
  color: var(--dim);
}

.score-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-end;
}

.bar {
  width: 58px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff5b35, #f0c14b);
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

tr.top1 .bar > i {
  background: linear-gradient(90deg, #f0c14b, #ffe6a8);
}

.pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tx-2);
  font-family: var(--mono);
}

.board-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.014);
}

.board-foot a {
  color: var(--tx-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

/* 首页摘录表：标题旁标记 + 表底说明条（讲清不是完整榜） */
.h2-note {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 138, 102, 0.34);
  border-radius: 999px;
  background: rgba(255, 138, 102, 0.07);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ff8a66;
  vertical-align: 6px;
  white-space: nowrap;
}

.table-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 13px 16px 13px 14px;
  border-top: 1px solid var(--line);
  border-left: 2px solid rgba(255, 138, 102, 0.45);
  background: linear-gradient(90deg, rgba(255, 138, 102, 0.055), rgba(255, 255, 255, 0.012) 42%);
  font-size: 12px;
  color: var(--tx-2);
}

.table-more .tm-note {
  flex: 1 1 300px;
  min-width: 0;
  line-height: 1.65;
}

.btn-more {
  appearance: none;
  display: none; /* 由脚本按折叠状态显示；无 JS 时服务端已折叠，按钮不出现 */
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--tx-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-more:hover {
  border-color: rgba(255, 138, 102, 0.55);
  color: #ff8a66;
}

.table-more .tm-link {
  flex: 0 0 auto;
  color: #ff8a66;
  font-weight: 600;
  white-space: nowrap;
}

.table-more .tm-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 分类卡片 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0));
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 91, 53, 0.32);
  color: inherit;
}

.cat-card .cc-no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.cat-card h3 {
  font-size: 17px;
}

.cat-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.cat-card .cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--dim);
  font-family: var(--mono);
}

.cc-go {
  color: var(--accent);
  font-weight: 600;
  flex: 0 0 auto;
  white-space: nowrap;
}

.cat-card .cc-foot > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 文章卡片 ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.post-card .pc-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.post-card h3 {
  font-size: 16px;
  line-height: 1.5;
}

.post-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .pc-meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
}

/* ---------- 榜单页头部 ---------- */
.page-head {
  padding: 52px 0 34px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 18px;
  font-family: var(--mono);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span.sep {
  opacity: 0.4;
}

.page-head h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 14px;
}

.page-head .desc {
  max-width: 780px;
  color: var(--tx-2);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--dim);
  font-family: var(--mono);
}

/* ---------- 正文文章 ---------- */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 56px;
  padding: 40px 0 60px;
}

.prose {
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.92;
  color: #d6dae2;
}

.prose > p:first-of-type {
  font-size: 17px;
  color: var(--tx-2);
}

.prose h2 {
  font-size: 25px;
  margin: 44px 0 16px;
  padding-top: 8px;
  color: var(--tx);
}

.prose h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 14px;
}

.prose h3 {
  font-size: 18px;
  margin: 30px 0 10px;
  color: var(--tx);
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose a {
  color: #ff8a66;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 138, 102, 0.35);
}

.prose blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 91, 53, 0.05);
  border-radius: 0 10px 10px 0;
  color: var(--tx-2);
  font-size: 14.5px;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.tbl {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: normal;
}

@media (max-width: 760px) {
  .tbl table {
    min-width: 560px;
  }
}

.prose thead th {
  background: #0f1116;
  text-align: left;
  padding: 10px 13px;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}

.prose tbody td {
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 5px;
  border-radius: 4px;
  color: #ffc9b6;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

.callout {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.callout-title {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout.teal .callout-title {
  color: var(--teal);
}

/* 侧栏 */
.aside {
  position: relative;
}

.aside-inner {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toc {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.toc-title {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 0;
  line-height: 1.5;
}

.toc a:hover {
  color: var(--accent);
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--card);
}

.aside-card h4 {
  font-size: 13px;
  margin-bottom: 8px;
}

.aside-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.aside-card .btn {
  width: 100%;
  justify-content: center;
  padding: 8px 12px;
  font-size: 12.5px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

details.q {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  padding: 0 18px;
  transition: border-color 0.18s;
}

details.q[open] {
  border-color: var(--line-strong);
}

details.q summary {
  cursor: pointer;
  padding: 15px 0;
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

details.q summary::-webkit-details-marker {
  display: none;
}

/* 展开/收起图标：用渐变画线，避免依赖任何字符（编码异常时不会变乱码） */
details.q summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent));
  background-size: 12px 1.5px, 1.5px 12px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.18s ease;
}

details.q[open] summary::after {
  background-size: 12px 1.5px, 0 0;
}

details.q .a {
  padding: 0 0 16px;
  font-size: 13.5px;
  color: var(--tx-2);
  line-height: 1.85;
}

/* ---------- CTA 条 ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 38px 40px;
  background:
    radial-gradient(520px 220px at 88% 0%, rgba(255, 91, 53, 0.16), transparent 70%),
    linear-gradient(150deg, #14161d, #0b0d11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(22px, 2.4vw, 27px);
  margin-bottom: 8px;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 560px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 30px;
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 30px;
}

.footer-brand p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
  margin: 14px 0 0;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: var(--mono);
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--tx);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--dim);
}

.footer-bottom .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

.footer-bottom a {
  color: var(--muted);
}

/* ---------- 杂项 ---------- */
.note {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.75;
}

.tier-key {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.tk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
}

.tk-head b {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx);
  letter-spacing: 0.02em;
}

.tk-head span {
  font-size: 12px;
  color: var(--muted);
}

.tk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
}

@media (max-width: 1180px) {
  .spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 两列时再让“工具与补全”跨两列会留下突兀的空位 */
  .spec-grid > div:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid > div:nth-child(5) {
    grid-column: auto;
  }

  .spec-panel {
    padding: 11px 14px 13px;
  }

  .tk-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tk-grid div {
    flex-direction: column;
    gap: 1px;
  }

  .tk-grid b {
    min-width: 0;
  }
}

.tk-grid div {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--tx-2);
}

.tk-grid b {
  flex: none;
  min-width: 82px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
}

.tk-foot {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 14px;
}

.legend b {
  color: var(--tx-2);
  font-weight: 500;
}

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 193, 75, 0.24);
  background: rgba(240, 193, 75, 0.05);
  border-radius: 10px;
  font-size: 12.5px;
  color: #d8c9a4;
  line-height: 1.75;
  margin: 22px 0 0;
}

.notice b {
  color: var(--gold);
}

.reveal {
  opacity: 1;
}

.reveal.in {
  opacity: 1;
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bar > i {
    transition: none;
  }
  .live i {
    animation: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cat-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .aside-inner {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aside-inner > * {
    flex: 1 1 240px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* 平板：收紧导航，过窄时折叠 */
@media (max-width: 1024px) {
  .nav-links a {
    padding: 7px 9px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 14px 16px;
    background: #0a0c10;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 40px -20px #000;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 11px 12px;
    font-size: 14px;
  }
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14.5px;
  }
  .wrap {
    padding: 0 18px;
  }
  .nav {
    height: 60px;
    gap: 12px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 14px 16px;
    background: #0a0c10;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 40px -20px #000;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 11px 12px;
    font-size: 14px;
  }
  .nav-toggle {
    display: block;
  }
  .hero {
    padding: 46px 0 32px;
  }
  .hero-sub {
    font-size: 14.5px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-child(2n) {
    border-right: 0;
  }
  .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .section {
    padding: 48px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cat-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .board-hint {
    display: none;
  }
  .cta-band {
    padding: 26px 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .prose {
    font-size: 15px;
  }
  .hero-meta {
    font-size: 11.5px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .aside,
  .cta-band {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}


/* 媒体榜单：固定列宽，避免数值列被拉出大片空白 */
table.board.media {
  table-layout: fixed;
}
table.board.media th:nth-child(1) { width: 56px; }
table.board.media th:nth-child(2) { width: 27%; }
table.board.media th:nth-child(3) { width: 16%; }
table.board.media th:nth-child(4) { width: 9%; }
table.board.media th:nth-child(5) { width: 13%; }
table.board.media td { white-space: normal; }
table.board.media thead th {
  text-align: left !important;
}
table.board.media td.num,
table.board.media .score-cell {
  text-align: left;
  justify-content: flex-start;
}

/* 洞察两列 */
.post-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .post-grid.two { grid-template-columns: 1fr; }
}


/* 移动端表格滑动提示 */
.scroll-hint {
  display: none;
}
@media (max-width: 760px) {
  .scroll-hint {
    display: block;
    padding: 8px 16px 0;
    font-size: 11px;
    color: var(--dim);
    font-family: var(--mono);
    letter-spacing: 0.04em;
  }
}

/* 国产阵营速览 */
.cn-grid {
  display: grid;
  /* 九张榜（含角色扮演）正好 3×3，避免第 9 张单独占一行 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cn-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cn-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tx);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.cn-count {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--dim);
  white-space: nowrap;
}

.cn-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 8px;
  align-items: baseline;
  font-size: 13px;
  color: var(--tx-2);
}

.cn-row b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
}

.cn-row span {
  color: var(--tx);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cn-row em {
  grid-column: 2;
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cn-more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
}

.cn-more:hover {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .cn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cn-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* 方法论：七条规则，奇数张时末卡通栏 */
.rules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

.rules-grid > .cat-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .rules-grid > .cat-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* 榜单切换条 */
.switch-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 14, 18, 0.7);
}

.switch-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 9px;
  padding-bottom: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.switch-inner::-webkit-scrollbar {
  display: none;
}

.switch-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-right: 4px;
  white-space: nowrap;
}

.switch-inner a {
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.switch-inner a:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.05);
}

.switch-inner a.on {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* 音频榜表：固定列宽，避免“特点”列把表撑破卡片 */
table.board.audio {
  table-layout: fixed;
}

table.board.audio td,
table.board.audio th {
  white-space: normal;
}

table.board.audio th:first-child {
  width: 54px;
}

table.board.audio td.num,
table.board.audio th:nth-child(n + 3) {
  text-align: right;
}

table.board.audio td:last-child,
table.board.audio th:last-child {
  text-align: left;
}

/* 6 列：模型 / Elo / 性价比 / 语种(时长) / 单价 / 特点 */
table.board.a5 th:nth-child(2) { width: 25%; }
table.board.a5 th:nth-child(3) { width: 14%; }
table.board.a5 th:nth-child(4) { width: 8%; }
table.board.a5 th:nth-child(5) { width: 8%; }
table.board.a5 th:nth-child(6) { width: 12%; }

/* 9 列：模型 / 相似度 / 性价比 / 方式 / 最少样本 / 跨语种 / 单价 / 特点 */
table.board.a7 th:nth-child(2) { width: 22%; }
table.board.a7 th:nth-child(3) { width: 9%; }
table.board.a7 th:nth-child(4) { width: 7%; }
table.board.a7 th:nth-child(5) { width: 6%; }
table.board.a7 th:nth-child(6) { width: 7%; }
table.board.a7 th:nth-child(7) { width: 6%; }
table.board.a7 th:nth-child(8) { width: 9%; }

/* 短数值列不折行：“30 分钟”在 7% 列宽下会被拆成两行 */
table.board td.num.nowrap {
  white-space: nowrap;
}

/* 克隆方式：即时＝常规色；微调 / 定制＝做出区分，避免与零样本混读 */
table.board .method {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}
table.board .method.strong {
  color: #ff8a66;
}

/* 性价比：同榜百分位，越高越划算 */
table.board td.cp {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
table.board td.cp.hot { color: #ff8a66; font-weight: 600; }
table.board td.cp.low { color: var(--dim); }
table.board td.cp.none { color: var(--line-strong); }
/* 估算条目的性价比：保留强弱色，只加斜体与虚线，表示位次是估出来的 */
table.board td.cp .est-mark {
  color: inherit;
  font-weight: inherit;
}
.board-foot .cp-key {
  color: var(--tx-2);
  font-weight: 600;
}

/* 编程模型表：10 列定宽，避免价格列把“上下文”挤出卡片 */
table.board.coding { table-layout: fixed; }
table.board.coding th:nth-child(1) { width: 56px; }
table.board.coding th:nth-child(2) { width: 22%; }
table.board.coding th:nth-child(3) { width: 11%; }
table.board.coding th:nth-child(4) { width: 6%; }
table.board.coding th:nth-child(5) { width: 10%; }
table.board.coding th:nth-child(6) { width: 9%; }
table.board.coding th:nth-child(7) { width: 10%; }
table.board.coding th:nth-child(8) { width: 9%; }
table.board.coding th:nth-child(9) { width: 10%; }
table.board.coding th:nth-child(10) { width: 8%; }

/* 编程 Agent 表：9 列定宽 */
table.board.agents { table-layout: fixed; }
table.board.agents th:nth-child(1) { width: 52px; }
table.board.agents th:nth-child(2) { width: 19%; }
table.board.agents th:nth-child(3) { width: 16%; }
table.board.agents th:nth-child(4) { width: 11%; }
table.board.agents th:nth-child(5) { width: 6%; }
table.board.agents th:nth-child(6) { width: 8%; }
table.board.agents th:nth-child(7) { width: 8%; }
table.board.agents th:nth-child(8) { width: 14%; }

/* 移动端切换条右侧渐隐，提示可横向滑动 */
@media (max-width: 760px) {
  .switch-bar {
    position: relative;
  }
  .switch-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(90deg, rgba(10, 12, 16, 0), #0a0c10);
    pointer-events: none;
  }
  .switch-inner {
    padding-right: 32px;
  }
}

/* 洞察列表：奇数篇时末篇通栏，避免右侧留空 */
.post-grid.two > .post-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ---------- 扩展跑分：四张说明卡 ---------- */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ext-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.ext-card b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--tx);
  font-family: var(--mono);
}

.ext-card span {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--tx-2);
}

.ext-card em {
  margin-top: 2px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

table.board.ext {
  table-layout: fixed;
}

table.board.ext th:nth-child(1) { width: 52px; }
table.board.ext th:nth-child(2) { width: 26%; }
table.board.ext th:nth-child(3) { width: 15%; }
table.board.ext th:nth-child(4) { width: 15%; }
table.board.ext th:nth-child(5) { width: 15%; }
table.board.ext th:nth-child(6) { width: 14%; }
table.board.ext th:nth-child(7) { width: 9%; }

/* ---------- 角色扮演榜：11 列定宽 ---------- */
table.board.rp {
  table-layout: fixed;
}

table.board.rp th:nth-child(1) { width: 52px; }
table.board.rp th:nth-child(2) { width: 18%; }
table.board.rp th:nth-child(3) { width: 10%; }
table.board.rp th:nth-child(4) { width: 6%; }
table.board.rp th:nth-child(5),
table.board.rp th:nth-child(6),
table.board.rp th:nth-child(7),
table.board.rp th:nth-child(8),
table.board.rp th:nth-child(9) { width: 6.6%; }
table.board.rp th:nth-child(10) { width: 7%; }
table.board.rp th:nth-child(11) { width: 6%; }
table.board.rp th:nth-child(12) { width: 12%; }

/* ---------- 评分细则表（角色扮演） ---------- */
.rubric {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rubric th {
  padding: 10px 14px;
  background: #0f1116;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.rubric td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
  color: var(--tx-2);
}

.rubric tbody tr:last-child td {
  border-bottom: 0;
}

.rubric td.num {
  font-family: var(--mono);
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ext-grid {
    grid-template-columns: 1fr;
  }
}

/* 七张榜单：末张通栏，避免第 7 张孤零零占一格 */
#categories .cat-grid > .cat-card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

/* hero 榜单按钮为奇数个时，末个通栏 */
.hb-list > .hb:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
