/* 算一杆 · SnookerByNumbers — Crucible Broadcast / Editorial Dark */
:root {
  --bg-void: #050b09;
  --bg: #081210;
  --bg-elevated: #0d1c18;
  --surface: #11241f;
  --surface-2: #162e28;
  --surface-3: #1c3a32;
  --border: rgba(223, 180, 86, 0.16);
  --border-subtle: rgba(245, 242, 234, 0.08);
  --border-strong: rgba(223, 180, 86, 0.42);
  --text: #f5f2ea;
  --text-2: #c6cdc7;
  --muted: #84948c;
  --muted-dim: #5e6f67;
  --gold: #dfb456;
  --gold-bright: #f2cf7c;
  --gold-dim: rgba(223, 180, 86, 0.12);
  --red: #d12e2a;
  --blue: #4c96ee;
  --felt: #0e6f38;
  --font-sans: "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif CJK SC", "Songti SC", "STSong", "Georgia",
    "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono",
    "Cascadia Mono", monospace;
  color-scheme: dark;
  font-family: var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 50% -120px, rgba(20, 74, 52, 0.48) 0%, transparent 62%),
    radial-gradient(640px 420px at 88% 12%, rgba(223, 180, 86, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #091512 0%, #060e0c 55%, #050a08 100%);
  color: var(--text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--gold-bright);
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: 960px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 18, 16, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex: 0 0 13px;
  background: radial-gradient(circle at 32% 28%, #f2554e 0%, #c8231c 52%, #74100c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 14px rgba(209, 46, 42, 0.55);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
}

.brand-sep {
  width: 1px;
  height: 13px;
  background: var(--border-strong);
  align-self: center;
  opacity: 0.6;
}

.brand-sub {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a[aria-current="page"] {
  color: var(--gold-bright);
  background: var(--gold-dim);
  border-color: rgba(223, 180, 86, 0.28);
}

.nav a.nav-cta {
  margin-left: 6px;
  padding: 7px 16px;
  color: #161105;
  font-weight: 700;
  background: linear-gradient(180deg, #ecc566 0%, #cfa03a 100%);
  border-color: rgba(242, 207, 124, 0.6);
  box-shadow: 0 4px 14px rgba(223, 180, 86, 0.18);
}

.nav a.nav-cta:hover {
  color: #161105;
  background: linear-gradient(180deg, #f5d37b 0%, #daa941 100%);
  transform: translateY(-1px);
}

main {
  flex: 1;
}

/* ---------- 通用标眉与按钮 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 36, 31, 0.72);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(17, 36, 31, 0.85);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: rgba(242, 207, 124, 0.65);
  background: linear-gradient(180deg, #ecc566 0%, #c89732 100%);
  color: #161105;
  box-shadow:
    0 8px 24px rgba(223, 180, 86, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  border-color: #fae09b;
  background: linear-gradient(180deg, #f4d178 0%, #d5a43c 100%);
  color: #161105;
}

.btn small {
  color: var(--muted);
  font-weight: 400;
  font-size: 12.5px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- 首页首屏 ---------- */
.hero-home {
  padding: 64px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
}

.hero h1,
.hero-home h1 {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.2vw, 54px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero-home .en {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.hero p.lead,
.hero-home p.lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.8;
}

.channel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--muted);
}

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-weight: 500;
}

.channel-link:hover {
  color: var(--gold-bright);
}

.channel-link small {
  color: var(--muted);
  font-weight: 400;
}

.channel-link svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

/* 右侧克鲁斯堡播报视觉卡片 */
.broadcast-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 280px at 50% 0%, rgba(19, 122, 67, 0.22) 0%, transparent 65%),
    linear-gradient(180deg, rgba(17, 36, 31, 0.92) 0%, rgba(10, 21, 18, 0.98) 100%);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.broadcast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 14, 12, 0.45);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.broadcast-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-weight: 700;
}

.broadcast-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(209, 46, 42, 0.8);
}

.table-art-wrap {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.table-art {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.48));
}

.mini-rankings {
  padding: 14px 18px 16px;
}

.mini-rankings-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-rankings-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.mini-rankings-more {
  font-size: 12px;
  color: var(--muted);
}

.mini-rankings-more:hover {
  color: var(--gold-bright);
}

.mini-rank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-rank-row {
  display: grid;
  grid-template-columns: 22px 1fr 78px 46px;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(8, 18, 15, 0.55);
  border: 1px solid rgba(245, 242, 234, 0.04);
  font-size: 13px;
}

.mini-rank-row.top1 {
  background: rgba(223, 180, 86, 0.09);
  border-color: rgba(223, 180, 86, 0.22);
}

.mini-rank-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.mini-rank-row.top1 .mini-rank-num {
  color: var(--gold-bright);
}

.mini-rank-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--text);
}

.mini-rank-name small {
  margin-left: 5px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.mini-rank-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mini-rank-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
}

.mini-rank-elo {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

/* ---------- 关键指标带 ---------- */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 36, 31, 0.72), rgba(10, 22, 19, 0.86));
  overflow: hidden;
  margin: 12px 0 16px;
}

.metric-item {
  padding: 18px 20px;
  border-right: 1px solid var(--border-subtle);
}

.metric-item:last-child {
  border-right: 0;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.metric-val em {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  margin-left: 4px;
}

.metric-label {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 栏目通用 ---------- */
.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head h2::before {
  content: "";
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: var(--gold);
}

.section-note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 工具双卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(380px 180px at 100% 0%, rgba(223, 180, 86, 0.07) 0%, transparent 65%),
    linear-gradient(180deg, rgba(18, 38, 33, 0.85) 0%, rgba(11, 24, 20, 0.94) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

a.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(14, 111, 56, 0.22);
  border: 1px solid rgba(223, 180, 86, 0.28);
  color: var(--gold-bright);
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.75;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.card-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(8, 18, 15, 0.65);
  border: 1px solid var(--border-subtle);
}

.card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

a.card:hover .go {
  color: var(--gold-bright);
}

a.card:hover .go .arrow {
  transform: translateX(4px);
}

.go .arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

/* ---------- 频道专题五宫格 ---------- */
.topics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topics li {
  padding: 18px 16px 20px;
  border-radius: 13px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 31, 27, 0.58);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.topics li:hover {
  border-color: var(--border);
  background: rgba(20, 42, 36, 0.78);
}

.topic-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  opacity: 0.85;
}

.topics b {
  display: block;
  margin-bottom: 6px;
  font-size: 15.5px;
  color: var(--text);
}

/* ---------- 模型页首屏与结构 ---------- */
.hero {
  padding: 52px 0 32px;
}

.hero p.lead {
  max-width: 680px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.pillar {
  padding: 18px 18px 20px;
  border-radius: 13px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 31, 27, 0.62);
}

.pillar b {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-bright);
  font-size: 15px;
}

.pillar p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.68;
}

.prose p {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 15.5px;
}

.callout {
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: rgba(15, 31, 27, 0.65);
}

.callout ul {
  margin: 0;
  padding-left: 1.25em;
}

.callout li {
  color: var(--text-2);
  font-size: 14.5px;
  margin-bottom: 8px;
}

.callout li:last-child {
  margin-bottom: 0;
}

.callout .disclaimer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 实力榜与原理表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 26, 22, 0.82);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

tbody tr {
  transition: background-color 0.14s ease;
}

tbody tr:hover {
  background: rgba(223, 180, 86, 0.045);
}

tr:last-child td,
tr:last-child th {
  border-bottom: 0;
}

thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(8, 18, 15, 0.72);
  white-space: nowrap;
}

.spec-table th {
  width: 132px;
  color: var(--gold);
  font-weight: 600;
  font-size: 13.5px;
  background: rgba(8, 18, 15, 0.45);
  white-space: nowrap;
}

.spec-table td {
  color: var(--text-2);
}

.formula {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(223, 180, 86, 0.1);
  border: 1px solid rgba(223, 180, 86, 0.22);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 13px;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rank-pill {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.rank-pill.r1 {
  color: #161105;
  background: linear-gradient(180deg, #f0cb6f 0%, #c99935 100%);
}

.rank-pill.r23 {
  color: var(--gold-bright);
  background: rgba(223, 180, 86, 0.14);
  border: 1px solid rgba(223, 180, 86, 0.28);
}

.player-cell {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.player-zh {
  font-weight: 700;
  color: var(--text);
}

.player-en {
  color: var(--muted);
  font-size: 12.5px;
}

.player-nat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.player-mobile-meta,
.th-short {
  display: none;
}

/* 实力分与 ±1 SD 误差可视化轨道 */
.elo-cell {
  min-width: 200px;
}

.elo-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.elo-track {
  position: relative;
  width: 112px;
  height: 16px;
  flex: 0 0 112px;
  display: flex;
  align-items: center;
}

.elo-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.elo-ref {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(245, 242, 234, 0.22);
}

.elo-whisker {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  background: rgba(223, 180, 86, 0.42);
}

.elo-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(223, 180, 86, 0.55);
}

.elo-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.elo-sd {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.win-bar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.win-bar {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.win-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.range-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
}

.caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- 404 ---------- */
.not-found {
  padding: 84px 0 64px;
  text-align: center;
}

.not-found-card {
  max-width: 540px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 36, 31, 0.85), rgba(10, 21, 18, 0.94));
}

.not-found-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}

.not-found h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 36px;
}

.not-found p {
  margin: 14px 0 0;
  color: var(--text-2);
}

.not-found .actions {
  justify-content: center;
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: rgba(5, 11, 9, 0.65);
}

.footer .wrap {
  padding-top: 22px;
  padding-bottom: 32px;
  color: var(--muted-dim);
  font-size: 12.5px;
  line-height: 1.75;
}

.footer a {
  color: #93aca1;
}

.footer a:hover {
  color: var(--gold-bright);
}

.footer code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-item:nth-child(2) {
    border-right: 0;
  }

  .metric-item:nth-child(1),
  .metric-item:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }

  .topbar .wrap {
    height: 56px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-sep,
  .brand-sub {
    display: none;
  }

  .nav {
    gap: 3px;
  }

  .nav a {
    padding: 6px 9px;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav a.nav-cta {
    padding: 6px 11px;
    margin-left: 2px;
  }

  .hero-home {
    padding: 28px 0 22px;
  }

  .hero {
    padding: 32px 0 22px;
  }

  .hero h1,
  .hero-home h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .hero-home .en {
    font-size: 15.5px;
  }

  .hero p.lead,
  .hero-home p.lead {
    font-size: 14.5px;
    margin-top: 14px;
  }

  .actions {
    margin-top: 20px;
    gap: 10px;
  }

  .actions .btn {
    padding: 10px 15px;
    font-size: 13.5px;
  }

  .channel-bar {
    margin-top: 20px;
    padding-top: 16px;
    gap: 8px 14px;
    font-size: 12.5px;
  }

  .table-art-wrap {
    padding: 12px 12px 10px;
  }

  .mini-rankings {
    padding: 12px 14px 14px;
  }

  .mini-rank-row {
    grid-template-columns: 20px 1fr 48px 40px;
    gap: 8px;
    font-size: 12.5px;
  }

  .metric-item {
    padding: 14px 14px;
  }

  .metric-val {
    font-size: 18px;
  }

  .metric-label {
    font-size: 11.5px;
  }

  .section {
    padding: 28px 0;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .cards,
  .pillars {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 20px 18px 18px;
  }

  .topics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topics li {
    padding: 14px 15px;
  }

  .topic-num {
    display: inline-block;
    margin: 0 8px 0 0;
  }

  .topics b {
    display: inline;
    margin-right: 6px;
    font-size: 14.5px;
  }

  /* 实力榜：手机零横向滚动，紧凑单屏可读 */
  .elo-track,
  .win-bar,
  .th-full,
  .rankings-table .player-en,
  .rankings-table .player-nat,
  .rankings-table .col-range {
    display: none;
  }

  .th-short {
    display: inline;
  }

  .rankings-table .player-cell {
    flex-direction: column;
    gap: 1px;
  }

  .rankings-table .player-zh {
    font-size: 13.5px;
    line-height: 1.3;
  }

  .rankings-table .player-mobile-meta {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.3;
  }

  .elo-cell {
    min-width: 0;
  }

  .elo-val {
    font-size: 13px;
  }

  .elo-sd {
    font-size: 11px;
  }

  .rankings-table th,
  .rankings-table td {
    padding: 9px 8px;
  }

  .rankings-table .col-rank {
    padding-left: 10px;
    padding-right: 4px;
    width: 38px;
  }

  .rankings-table .col-win {
    padding-right: 10px;
    font-size: 13px;
  }

  /* 原理一页纸表格：窄屏紧凑双列 */
  .spec-table th {
    width: 82px;
    padding: 10px 10px;
    font-size: 12.5px;
    vertical-align: top;
  }

  .spec-table td {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  .callout {
    padding: 16px 16px;
  }

  .footer {
    margin-top: 28px;
  }
}

@media (max-width: 370px) {
  .brand-name {
    font-size: 16.5px;
  }

  .nav a {
    padding: 5px 7px;
    font-size: 12px;
  }

  .nav a.nav-cta {
    padding: 5px 9px;
  }
}

/* ---------- 实力榜：前 16 / 前 64 / 全部 ---------- */
.rank-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.rank-tabs button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.rank-tabs button:hover {
  color: var(--text);
}

.rank-tabs button[aria-pressed="true"] {
  background: var(--gold);
  color: #1d1505;
  font-weight: 700;
}

.rankings[data-show="16"] tr.tier-64,
.rankings[data-show="16"] tr.tier-all,
.rankings[data-show="64"] tr.tier-all {
  display: none;
}

/* 页脚的访问统计（worker/index.js） */
.footer .site-stats {
  white-space: nowrap;
}
