/* ==========================================================================
   WOTB LEAGUE · 联赛积分中心
   style.css — 完整样式表
   设计关键词：Premium Esports / Tactical Precision / Dark Editorial / Data Clarity
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 背景层级 */
  --bg: #0b1016;
  --bg-deep: #070a0f;
  --surface: #111923;
  --surface-2: #172330;
  --surface-3: #1c2b3a;
  --tactical: #233548;

  /* 品牌色 */
  --gold: #d1ae73;
  --gold-bright: #e8cd97;
  --gold-dim: #8f7749;
  --gold-glow: rgba(209, 174, 115, 0.16);

  /* 文字 */
  --text: #f2f5f7;
  --text-2: #96a6b5;
  --text-3: #64757f;

  /* 线条 */
  --line: rgba(150, 166, 181, 0.14);
  --line-soft: rgba(150, 166, 181, 0.08);
  --line-strong: rgba(150, 166, 181, 0.24);

  /* 语义色 */
  --ok: #5fa88a;
  --warn: #d1a05a;
  --err: #c96a6a;
  --info: #6f93b8;

  /* 尺寸 */
  --nav-h: 60px;
  --radius: 4px;
  --radius-lg: 8px;
  --max-w: 1600px;
  --gutter: 32px;

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC",
    "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Roboto Mono", "DejaVu Sans Mono", Consolas,
    "Courier New", ui-monospace, monospace;
  --font-display: "Impact", "Haettenschweiler", "Arial Narrow Bold", "PingFang SC",
    "Microsoft YaHei", sans-serif;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 20px 60px rgba(0, 0, 0, 0.6);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* 极细网格纹理 + 顶部冷光，纯 CSS，无图片依赖 */
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(35, 53, 72, 0.55), transparent 70%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  background-attachment: fixed, fixed, fixed;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 数字统一使用等宽数字，保证各列严格对齐 */
.num, .stat__value, .cell-score, .rank__value, .detail__num, td, th {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 焦点样式：键盘导航清晰可见 */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/*
  hidden 属性必须始终生效。
  浏览器 UA 样式表中的 [hidden]{display:none} 优先级低于作者样式表，
  因此像 .skeleton{display:flex}、.pager{display:flex}、.btn{display:inline-flex}
  这类规则会把它覆盖掉，导致元素设置 hidden 后依然可见。
  这里显式声明，确保隐藏行为可靠（骨架屏、分页条、模式按钮等均依赖它）。
*/
[hidden] { display: none !important; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  padding: 10px 18px; background: var(--gold); color: #0b1016;
  font-weight: 700; border-radius: var(--radius); transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. 布局容器
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  letter-spacing: 0.01em;
}
.section-title::before {
  content: "";
  width: 3px; height: 20px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border-radius: 2px;
  flex: none;
}
.section-sub {
  color: var(--text-2);
  font-size: 13.5px;
  margin-top: 6px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   4. 顶部导航
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 16, 22, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 12, 17, 0.95);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand__mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  background: linear-gradient(150deg, rgba(209, 174, 115, 0.2), rgba(209, 174, 115, 0.02));
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(209, 174, 115, 0.35);
  border-radius: 1px;
}
.brand__mark span {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.09em;
  color: var(--text);
  white-space: nowrap;
}
.brand__sub {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: 4px; }

.nav__link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); background: rgba(150, 166, 181, 0.08); }
.nav__link.is-active { color: var(--gold); }
.nav__link--cta {
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 7px 15px;
}
.nav__link--cta:hover {
  background: var(--gold-glow);
  color: var(--gold-bright);
}

.nav__toggle { display: none; }
.nav__link-short { display: none; }

/* --------------------------------------------------------------------------
   5. 主视觉区（克制，尽快让用户看到排行榜）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 46px 0 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  /* 战术斜线装饰 */
  content: "";
  position: absolute;
  top: -60px; right: -120px;
  width: 620px; height: 620px;
  background:
    repeating-linear-gradient(115deg,
      rgba(209, 174, 115, 0.055) 0 1px,
      transparent 1px 13px);
  transform: rotate(-6deg);
  pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 78%);
}
.hero::after {
  /* 底部金色渐隐分割 */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 22%, var(--gold) 50%, var(--gold-dim) 78%, transparent);
  opacity: 0.5;
}

.hero__inner { position: relative; z-index: 1; }

.hero__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  /* 赛季下拉菜单需要浮在下方内容之上 */
  position: relative;
  z-index: 20;
}

.season-badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(209, 174, 115, 0.16);
  flex: none;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin-bottom: 6px;
  background: linear-gradient(172deg, #ffffff 4%, #dfe7ee 38%, #9fb0be 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}

.hero__subtitle {
  font-size: clamp(17px, 2.3vw, 26px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.hero__english {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.35vw, 14px);
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.9;
}

.hero__rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 18px;
  max-width: 520px;
}
.hero__rule i {
  height: 1px; flex: 1;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.hero__rule b {
  width: 5px; height: 5px;
  background: var(--gold); transform: rotate(45deg); flex: none;
}

/* --------------------------------------------------------------------------
   5b. 赛季选择器（主标题上方，点击展开）
   -------------------------------------------------------------------------- */
.season-picker {
  position: relative;
  display: inline-block;
  flex: none;
}
.season-picker[hidden] { display: none; }

.season-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(23, 35, 48, 0.7);
  color: var(--text-2);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.season-picker__btn:hover {
  border-color: var(--gold-dim);
  background: var(--surface-3);
  color: var(--text);
}
.season-picker__btn[aria-expanded="true"] {
  border-color: var(--gold-dim);
  background: var(--surface-3);
  color: var(--text);
}

.season-picker__label { font-weight: 600; }

/* 下拉箭头 */
.season-picker__chevron {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.65;
  flex: none;
  transition: transform 0.2s var(--ease);
}
.season-picker__btn[aria-expanded="true"] .season-picker__chevron {
  transform: rotate(-135deg) translate(-2px, -1px);
}

/* 下拉菜单 */
.season-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  /* 选项只显示中文赛季名，无需过宽 */
  min-width: 190px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  animation: pickerIn 0.16s var(--ease);
}
.season-picker__menu[hidden] { display: none; }

@keyframes pickerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.season-picker__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.season-picker__item:hover,
.season-picker__item:focus {
  background: var(--surface-3);
  color: var(--text);
  outline: none;
}
.season-picker__item.is-active { color: var(--gold-bright); }

.season-picker__item-label { font-weight: 600; flex: 1; }

.season-picker__check {
  color: var(--gold);
  font-size: 12px;
  flex: none;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   5c. 数据待发布状态（正常赛事状态，非错误）
   -------------------------------------------------------------------------- */
.pending {
  padding: 56px 28px 52px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.pending[hidden] { display: none; }
.pending__icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(209, 174, 115, 0.07);
}
.pending__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.pending__msg {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}
.pending__actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pending__actions:empty { display: none; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13px;
  color: var(--text-2);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta b { color: var(--text); font-weight: 600; }
.hero__meta .dot {
  width: 4px; height: 4px; background: var(--text-3);
  transform: rotate(45deg); flex: none;
}

/* --------------------------------------------------------------------------
   6. 数据总览
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: -1px;
}

.stat {
  position: relative;
  background: linear-gradient(168deg, var(--surface) 0%, #0e1620 100%);
  padding: 20px 22px 18px;
  transition: background 0.25s var(--ease);
}
.stat:hover { background: linear-gradient(168deg, var(--surface-2) 0%, #101a25 100%); }

.stat::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 65%);
  opacity: 0.55;
}
.stat--accent::before { background: linear-gradient(90deg, var(--gold), var(--gold-dim)); opacity: 1; }

.stat__label {
  font-size: 12.5px;
  color: var(--text-2);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.stat__label .k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 4px;
  letter-spacing: 0.08em;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat__value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.stat--accent .stat__value { color: var(--gold-bright); }

.stat__foot {
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-3);
  min-height: 18px;
}

/* --------------------------------------------------------------------------
   7. 领先梯队
   -------------------------------------------------------------------------- */
.leaders {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(209, 174, 115, 0.055) 0%, transparent 42%),
    var(--surface);
  overflow: hidden;
  position: relative;
}
.leaders::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(209, 174, 115, 0.1) 60%, transparent);
}

.leaders__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.leaders__lead { display: flex; align-items: center; gap: 18px; min-width: 0; }

.leaders__crown {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  background: linear-gradient(150deg, rgba(209, 174, 115, 0.22), rgba(209, 174, 115, 0.03));
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-bright);
}
.leaders__crown.is-tied { font-size: 15px; }

.leaders__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.leaders__title .score {
  font-family: var(--font-mono);
  color: var(--gold-bright);
  font-size: 17px;
}
.leaders__desc {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 5px;
}

.leaders__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.leaders__body {
  border-top: 1px solid var(--line);
  padding: 18px 24px 22px;
  background: rgba(7, 10, 15, 0.35);
}
.leaders__body[hidden] { display: none; }

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 8px;
}

.leader-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
  text-align: left;
  min-width: 0;
}
.leader-chip:hover {
  border-color: var(--gold-dim);
  background: var(--surface-3);
  transform: translateY(-1px);
}
.leader-chip__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 1px 5px;
  flex: none;
  min-width: 26px;
  text-align: center;
}
.leader-chip__tag {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leader-chip__score {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold-bright);
  flex: none;
}

/* 唯一冠军聚焦卡片 */
.champion {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  flex-wrap: wrap;
}
.champion__tag {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   8. 排行榜工具栏
   -------------------------------------------------------------------------- */
.board {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  /*
    这里不能使用 overflow: hidden。
    它会把 .board 变成滚动容器，导致表格表头（position: sticky）
    只能相对 .board 吸附，整页滚动时表头会随页面滑走、失去吸附效果。
    圆角由首尾子元素各自的背景与圆角负责，见下方 .toolbar / .listfoot 规则。
  */
}

/* 圆角处的背景裁切：由首尾子元素自己处理，替代父级 overflow:hidden */
.toolbar {
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  flex-wrap: wrap;
}

.search {
  position: relative;
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 400px;
}
.search__icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-3);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 35px;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.search__input::placeholder { color: var(--text-3); }
.search__input:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(209, 174, 115, 0.1);
}
.search__clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1;
}
.search__clear:hover { background: rgba(150, 166, 181, 0.16); color: var(--text); }
.search.has-value .search__clear { display: grid; }

.toolbar__group { display: flex; align-items: center; gap: 8px; }
.toolbar__label {
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.select {
  height: 38px;
  padding: 0 30px 0 11px;
  background-color: var(--bg-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2396A6B5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.18s var(--ease);
}
.select:hover { border-color: var(--gold-dim); }
.select:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(209, 174, 115, 0.1); }
.select option { background: var(--surface-2); color: var(--text); }

/* 分段控件 */
.segmented {
  display: inline-flex;
  padding: 2px;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  gap: 2px;
}
.segmented__btn {
  padding: 6px 13px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 2px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.segmented__btn:hover { color: var(--text); background: rgba(150, 166, 181, 0.09); }
.segmented__btn[aria-pressed="true"] {
  background: var(--tactical);
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(209, 174, 115, 0.28);
}

/* 结果计数 */
.toolbar__count {
  font-size: 12.5px;
  color: var(--text-2);
  margin-left: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.toolbar__count b { color: var(--gold); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. 排行榜表格
   -------------------------------------------------------------------------- */
/*
  连续滚动模式：表格不再限制高度，整页自然向下滚动，用户可持续下滑浏览全部军团。
  表头改为吸附在顶部导航下方（--nav-h），滚动时始终可见。
  横向滚动容器仅在窄屏（需要横向滚动时）启用，见下方媒体查询。
*/
.table-scroll {
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--tactical) transparent;
}
.table-scroll::-webkit-scrollbar { width: 11px; height: 11px; }
.table-scroll::-webkit-scrollbar-track { background: var(--bg-deep); }
.table-scroll::-webkit-scrollbar-thumb {
  background: var(--tactical);
  border-radius: 6px;
  border: 2px solid var(--bg-deep);
}
.table-scroll::-webkit-scrollbar-thumb:hover { background: #2e4460; }

table.standings {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}
table.standings.is-full { min-width: 1180px; }

/*
  分轮明细模式有 13 列。由于桌面端表格容器使用 overflow:visible（为了让表头能吸附在
  页面滚动上），表格一旦宽于容器就会把整页撑出横向滚动条。
  因此在较窄的桌面宽度下压缩列宽，保证 13 列在 ≥901px 视口内也能完整放下。
  （≤900px 时改用卡片布局，或「完整表格模式」自带横向滚动容器。）
*/
@media (max-width: 1400px) {
  table.standings.is-full { min-width: 0; }
  table.standings.is-full thead th { padding-left: 8px; padding-right: 8px; }
  table.standings.is-full td { padding: 0 8px; }
  table.standings.is-full td.col-rank { width: 88px; padding-left: 10px; }
  table.standings.is-full td.col-tag { min-width: 110px; max-width: 200px; }
  table.standings.is-full td.cell-score { width: 54px; font-size: 12.5px; }
  table.standings.is-full td.col-total { width: 88px; font-size: 14px; }
  table.standings.is-full .rank__tie { font-size: 9px; padding: 0 3px; }
  table.standings.is-full .cell-tag__btn { font-size: 13.5px; }
  table.standings.is-full .cell-tag__badge { display: none; }
}

table.standings thead th {
  position: sticky;
  top: var(--nav-h);
  z-index: 3;
  background: #0d141d;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: right;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  user-select: none;
}
table.standings thead th.col-rank,
table.standings thead th.col-tag { text-align: left; }

/* 轮次分组表头（吸附位置在顶部导航下方） */
table.standings thead tr.round-group th {
  top: var(--nav-h);
  padding: 7px 14px 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  background: #0a1017;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
table.standings thead tr.round-group th.col-rank,
table.standings thead tr.round-group th.col-tag {
  background: #0a1017;
}
table.standings thead tr.round-cols th { top: calc(var(--nav-h) + 27px); }

/* 排序按钮 */
.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  padding: 2px 0;
  transition: color 0.16s var(--ease);
  width: 100%;
  justify-content: flex-end;
}
th.col-rank .th-sort, th.col-tag .th-sort { justify-content: flex-start; }
.th-sort:hover { color: var(--gold); }
.th-sort__arrow { opacity: 0; font-size: 9px; transition: opacity 0.16s var(--ease); }
.th-sort[data-active="true"] { color: var(--gold); }
.th-sort[data-active="true"] .th-sort__arrow { opacity: 1; }

/* 数据行 */
table.standings tbody tr {
  transition: background 0.14s var(--ease);
}
table.standings tbody tr.row {
  cursor: pointer;
}
table.standings tbody tr.row:hover { background: rgba(35, 53, 72, 0.42); }
table.standings tbody tr.row:hover .cell-tag { color: var(--gold-bright); }
table.standings tbody tr.row.is-open { background: rgba(35, 53, 72, 0.62); }
table.standings tbody tr.row.is-leader { background: rgba(209, 174, 115, 0.045); }
table.standings tbody tr.row.is-leader:hover { background: rgba(209, 174, 115, 0.1); }

table.standings td {
  padding: 0 14px;
  height: 46px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 14px;
}
table.standings tbody tr:last-child td { border-bottom: none; }

/* 排名列 */
td.col-rank {
  text-align: left;
  width: 92px;
  position: relative;
  padding-left: 16px;
}
.rank {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.rank__value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  min-width: 26px;
}
.rank--top .rank__value { color: var(--gold-bright); }
.rank--top1 .rank__value { font-size: 16px; }
.rank__tie {
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid rgba(209, 174, 115, 0.4);
  background: rgba(209, 174, 115, 0.1);
  border-radius: 2px;
  padding: 1px 4px;
  flex: none;
}
.rank__tie--plain {
  color: var(--text-3);
  border-color: var(--line);
  background: transparent;
}
.rank__bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
}
tr.is-leader .rank__bar { background: var(--gold); }

/* 军团标签列 */
td.col-tag {
  text-align: left;
  min-width: 200px;
  /*
    这里不设 max-width。
    表格是 width:100%，若给标签列设上上限，多出来的宽度会平均分给其它列，
    在标签列与积分列之间形成一段明显的空白。
    让标签列吸收全部剩余宽度，积分列靠右对齐，视觉上更紧凑。
  */
}
.cell-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.cell-tag__btn {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.14s var(--ease);
  text-align: left;
  min-width: 0;
  padding: 2px 0;
}
.cell-tag__btn:hover { color: var(--gold-bright); }
.cell-tag__badge {
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 2px;
  flex: none;
  border: 1px solid transparent;
}
.cell-tag__badge--leader {
  color: var(--gold-bright);
  border-color: rgba(209, 174, 115, 0.42);
  background: rgba(209, 174, 115, 0.12);
}

/* 展开指示 */
.cell-tag__caret {
  margin-left: auto;
  flex: none;
  color: var(--text-3);
  font-size: 10px;
  transition: transform 0.2s var(--ease), color 0.16s var(--ease);
}
tr.row:hover .cell-tag__caret { color: var(--gold); }
tr.row.is-open .cell-tag__caret { transform: rotate(180deg); color: var(--gold); }

/* 积分单元格 */
td.cell-score {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-2);
  width: 78px;
}
td.cell-score.is-empty { color: var(--text-3); opacity: 0.5; }
td.cell-score.has-value { color: var(--text); }

/* 总积分列：视觉权重最高 */
td.col-total {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  width: 112px;
  background: rgba(7, 10, 15, 0.34);
  border-left: 1px solid var(--line);
}
tr.is-leader td.col-total { color: var(--gold-bright); }
td.col-total.is-mismatch { color: var(--warn); }

/* 详情展开行 */
tr.detail-row > td {
  padding: 0;
  height: auto;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: normal;
}
.detail {
  padding: 20px 24px 22px;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 28px;
}
.detail__col { min-width: 0; }

.detail__title {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.detail__tag {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
  line-height: 1.25;
  margin-bottom: 4px;
}
.detail__tagline {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  word-break: break-all;
}

.detail__kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 16px;
  font-size: 13.5px;
}
.detail__kv dt { color: var(--text-2); }
.detail__kv dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 600;
}
.detail__kv dd.gold { color: var(--gold-bright); }

.detail__bars { display: flex; flex-direction: column; gap: 7px; }

.bar-row {
  display: grid;
  grid-template-columns: 52px 1fr 78px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.bar-row__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.bar-row__track {
  height: 16px;
  background: rgba(150, 166, 181, 0.07);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.bar-row__fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tactical), #37536f);
  transition: width 0.5s var(--ease);
  min-width: 2px;
}
.bar-row.is-top .bar-row__fill {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
}
.bar-row.is-zero .bar-row__fill { background: rgba(150, 166, 181, 0.22); }
.bar-row__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  text-align: right;
}
.bar-row.is-empty .bar-row__value { color: var(--text-3); }

.detail__foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail__flag { display: flex; align-items: flex-start; gap: 8px; }
.detail__flag i {
  width: 6px; height: 6px; border-radius: 50%; flex: none; margin-top: 6px;
  background: var(--ok);
}
.detail__flag--warn i { background: var(--warn); }
.detail__flag--err i { background: var(--err); }

/* --------------------------------------------------------------------------
   10. 移动端卡片列表
   -------------------------------------------------------------------------- */
.cards { display: none; }

.card {
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.card:last-child { border-bottom: none; }
.card.is-leader { background: rgba(209, 174, 115, 0.05); }

.card__main {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  min-height: 62px;
}
.card__main:active { background: rgba(35, 53, 72, 0.5); }

.card__rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
}
.card__rank-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1;
}
.card.is-leader .card__rank-num { color: var(--gold-bright); }
.card__rank-tie {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--gold);
  border: 1px solid rgba(209, 174, 115, 0.38);
  border-radius: 2px;
  padding: 0 3px;
  line-height: 1.5;
}

.card__tag {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.card__meta {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.card__total {
  text-align: right;
  flex: none;
}
.card__total-num {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.card.is-leader .card__total-num { color: var(--gold-bright); }
.card__total-label {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.card__detail {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line-soft);
  margin-top: -1px;
  background: rgba(7, 10, 15, 0.4);
}
.card__detail[hidden] { display: none; }

/* --------------------------------------------------------------------------
   11. 列表底部状态（连续滚动，无分页）
   -------------------------------------------------------------------------- */
.listfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.listfoot__info {
  font-size: 12.5px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.listfoot__info b { color: var(--text); font-weight: 600; }

/* 从领先梯队跳转到某支军团时的高亮提示 */
@keyframes rowFlash {
  0% { background: rgba(209, 174, 115, 0.28); }
  100% { background: transparent; }
}
tr.row.is-flash,
.card.is-flash {
  animation: rowFlash 1.6s var(--ease);
}

/* --------------------------------------------------------------------------
   12. 空状态 / 提示条
   -------------------------------------------------------------------------- */
.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-2);
}
.empty__icon {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 20px;
}
.empty__title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.empty__text { font-size: 13.5px; max-width: 440px; margin: 0 auto; }
.empty__actions { margin-top: 18px; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--gold-dim); background: var(--surface-3); color: var(--gold-bright); }
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: linear-gradient(170deg, rgba(209, 174, 115, 0.9), rgba(160, 130, 82, 0.9));
  border-color: var(--gold);
  color: #0b1016;
  font-weight: 600;
}
.btn--gold:hover {
  background: linear-gradient(170deg, var(--gold-bright), var(--gold));
  color: #0b1016;
}
.btn--sm { height: 32px; padding: 0 13px; font-size: 12.5px; }
.btn--ghost { background: transparent; }

/* 提示条 */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--info);
  border-radius: var(--radius);
  background: rgba(111, 147, 184, 0.08);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.notice-bar__icon { flex: none; font-size: 14px; line-height: 1.5; }
.notice-bar__body { flex: 1; min-width: 0; }
.notice-bar__title { color: var(--text); font-weight: 600; margin-bottom: 3px; }
.notice-bar--warn { border-left-color: var(--warn); background: rgba(209, 160, 90, 0.08); }
.notice-bar--err { border-left-color: var(--err); background: rgba(201, 106, 106, 0.08); }
.notice-bar--ok { border-left-color: var(--ok); background: rgba(95, 168, 138, 0.08); }
.notice-bar__list { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.notice-bar__list li { padding-left: 13px; position: relative; }
.notice-bar__list li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 3px; height: 3px; background: currentColor; border-radius: 50%;
  opacity: 0.6;
}
.notice-bar__toggle {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   13. 加载 / 错误 / 骨架屏
   -------------------------------------------------------------------------- */
.loading {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-2);
}
.spinner {
  width: 30px; height: 30px;
  margin: 0 auto 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading__text { font-size: 14px; }

.skeleton {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.skeleton__row {
  height: 42px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 220% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.fatal {
  padding: 52px 28px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.fatal__icon {
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  border: 1px solid rgba(201, 106, 106, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: var(--err);
  background: rgba(201, 106, 106, 0.07);
}
.fatal__title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.fatal__msg { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.fatal__detail {
  font-size: 13px;
  color: var(--text-3);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 15px;
  margin: 16px 0 22px;
  text-align: left;
  font-family: var(--font-mono);
  line-height: 1.65;
  word-break: break-word;
  /* 错误详情中使用 \n 排版（含操作步骤），必须保留换行 */
  white-space: pre-line;
  max-height: 320px;
  overflow-y: auto;
}
.fatal__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   14. 赞助模块
   -------------------------------------------------------------------------- */
.support {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(209, 174, 115, 0.05), transparent 45%),
    var(--surface);
  padding: 30px 32px 32px;
  position: relative;
  overflow: hidden;
}
.support::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(209, 174, 115, 0.08) 55%, transparent);
}
.support__head { max-width: 620px; margin-bottom: 26px; }
.support__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.support__sub { font-size: 14px; color: var(--text-2); line-height: 1.7; }

.support__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
  max-width: 760px;
}

.qr-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  text-align: center;
}
.qr-card.is-available { cursor: pointer; }
.qr-card.is-available:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.qr-card__head { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.qr-card__name { font-size: 16px; font-weight: 700; color: var(--text); }
.qr-card__en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.qr-card__frame {
  width: 178px; height: 178px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  padding: 8px;
}
.qr-card__img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 2px;
  background: #fff;
}
.qr-card__img[hidden] { display: none; }

.qr-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--text-3);
  padding: 12px;
}
.qr-card__placeholder[hidden] { display: none; }
.qr-card__placeholder svg { opacity: 0.5; }
.qr-card__placeholder span {
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.qr-card__placeholder small { font-size: 11px; opacity: 0.8; line-height: 1.5; }

.qr-card__desc { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.qr-card__hint {
  font-size: 11.5px;
  color: var(--text-3);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  width: 100%;
  line-height: 1.6;
}
.qr-card__hint[hidden] { display: none; }

.support__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 760px;
}

/* 二维码放大灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 8, 12, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn 0.2s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox__panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-width: min(440px, 100%);
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-3);
  animation: popIn 0.24s var(--ease);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.lightbox__title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.lightbox__en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.lightbox__img {
  width: min(300px, 68vw);
  height: min(300px, 68vw);
  margin: 0 auto 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: 8px;
  object-fit: contain;
}
.lightbox__hint { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }
.lightbox__close { width: 100%; }

/* --------------------------------------------------------------------------
   14b. 感谢赞助商
   -------------------------------------------------------------------------- */
.sponsors {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(209, 174, 115, 0.06) 0%, transparent 46%),
    var(--surface);
  padding: 28px 30px 30px;
  position: relative;
  overflow: hidden;
}
.sponsors::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(209, 174, 115, 0.08) 60%, transparent);
}

.sponsors__head { margin-bottom: 22px; }
.sponsors__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sponsors__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.sponsors__sub { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

.sponsors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.sponsor-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 20px 22px 22px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sponsor-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.sponsor-card__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.sponsor-card__head { margin-bottom: 10px; }
.sponsor-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  word-break: break-word;
}
.sponsor-card__en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.85;
}

.sponsor-card__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.sponsor-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.sponsor-card__link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  background: var(--surface-3);
}

.sponsor-card__note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-3);
}

.sponsors__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   15. 数据说明区
   -------------------------------------------------------------------------- */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.notice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px 24px;
  transition: border-color 0.2s var(--ease);
}
.notice-card:hover { border-color: var(--line-strong); }

.notice-card__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 11px;
}
.notice-card__title::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.notice-card__text { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }

.notice-list { display: flex; flex-direction: column; gap: 9px; }
.notice-list li {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 17px;
  position: relative;
}
.notice-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 1px;
  background: var(--gold-dim);
}

/* 校验面板 */
.verify {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
}
.verify__item { background: var(--surface-2); padding: 13px 15px; }
.verify__label { font-size: 11.5px; color: var(--text-3); letter-spacing: 0.05em; margin-bottom: 5px; }
.verify__value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.verify__value.is-ok { color: var(--ok); }
.verify__value.is-warn { color: var(--warn); }
.verify__value.is-err { color: var(--err); }

/* 联系方式 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.contact-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 13px 15px;
}
.contact-item__label { font-size: 11.5px; color: var(--text-3); letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-item__value { font-size: 14px; color: var(--text); font-weight: 500; word-break: break-all; }
.contact-item__value.is-placeholder { color: var(--text-3); font-style: italic; font-weight: 400; }

/* --------------------------------------------------------------------------
   15b. 外部链接与可复制联系方式
   -------------------------------------------------------------------------- */
.ext-link__icon {
  font-size: 0.82em;
  opacity: 0.6;
  margin-left: 3px;
  display: inline-block;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}
.ext-link:hover .ext-link__icon { opacity: 1; transform: translate(1px, -1px); }

/* 可点击的链接式联系方式（如 B 站主页） */
.contact-item__link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  word-break: break-all;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.contact-item__link:hover { color: var(--gold-bright); border-bottom-color: var(--gold-dim); }

/* 可复制的联系方式（如 QQ 号，点击复制） */
.contact-item__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text);
  padding: 2px 7px;
  margin-left: -7px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.contact-item__copy::after {
  content: "复制";
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.contact-item__copy:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  border-style: solid;
  background: var(--gold-glow);
}
.contact-item__copy:hover::after { color: var(--gold); }

/* 说明卡片内的链接行 */
.notice-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 11px;
}
.notice-card__links .ext-link {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.notice-card__links .ext-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  background: var(--surface-3);
}

/* 主视觉区的数据来源链接 */
.hero__source {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.hero__source:hover { color: var(--gold-bright); border-bottom-color: var(--gold-dim); }

/* --------------------------------------------------------------------------
   16. 页脚
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 34px 0 40px;
  margin-top: 20px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.footer__name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--text-2);
}
.footer__note { font-size: 12.5px; color: var(--text-3); line-height: 1.75; max-width: 560px; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__link {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.16s var(--ease);
}
.footer__link:hover { color: var(--gold); }
.footer__bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(17, 25, 35, 0.94);
  backdrop-filter: blur(8px);
  color: var(--text-2);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--gold); border-color: var(--gold-dim); }

/* Toast 提示 */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 400;
  padding: 11px 20px;
  background: rgba(23, 35, 48, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast--ok { border-color: rgba(95, 168, 138, 0.5); }
.toast--err { border-color: rgba(201, 106, 106, 0.5); }

/* --------------------------------------------------------------------------
   17. 响应式
   -------------------------------------------------------------------------- */

/* 宽屏优化：内容宽度保持 1600px 上限，通过增加留白提升呼吸感 */
@media (min-width: 1700px) {
  :root { --gutter: 48px; }
  .section { padding: 64px 0; }
  table.standings td { height: 48px; }
}

/* 小桌面 / 大平板 */
@media (max-width: 1180px) {
  :root { --gutter: 24px; }
  .detail { grid-template-columns: 1fr; gap: 22px; }
}

/* 平板：切换为卡片布局 */
@media (max-width: 900px) {
  :root { --gutter: 18px; --nav-h: 56px; }

  body { font-size: 14.5px; }

  .section { padding: 40px 0; }
  .section--tight { padding: 28px 0; }

  .hero { padding: 32px 0 26px; }
  .hero::before { width: 420px; height: 420px; right: -180px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 17px 15px; }
  .stat__value { font-size: 27px; }

  /* 表格切换为卡片 */
  .table-scroll { display: none; }
  /* 「完整表格模式」下需要横向滚动查看全部 13 列，此时才启用滚动容器 */
  .table-scroll.is-forced {
    display: block;
    overflow-x: auto;
    max-height: 76vh;
    overflow-y: auto;
  }
  .table-scroll.is-forced thead th { top: 0; }
  .table-scroll.is-forced thead tr.round-group th { top: 0; }
  .table-scroll.is-forced thead tr.round-cols th { top: 27px; }
  .cards { display: block; }
  .cards[hidden] { display: none; }

  .toolbar { padding: 12px 14px; gap: 10px; }
  .search { max-width: none; flex: 1 1 100%; }
  .toolbar__count { margin-left: 0; width: 100%; order: 10; }

  .support { padding: 24px 20px 26px; }
  .leaders__head { padding: 17px 18px; }
  .leaders__body { padding: 16px 18px 18px; }
  .leader-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }

  .listfoot { padding: 13px 14px; justify-content: center; }
  .listfoot__info { width: 100%; text-align: center; order: -1; }

  .to-top { right: 14px; bottom: 14px; }
}

/* 手机 */
@media (max-width: 560px) {
  :root { --gutter: 14px; }

  .section { padding: 32px 0; }

  .hero { padding: 26px 0 22px; }
  .hero__title { font-size: clamp(32px, 10.5vw, 44px); }
  .hero__subtitle { font-size: 16px; letter-spacing: 0.04em; }
  .hero__english { letter-spacing: 0.28em; font-size: 10.5px; }
  .hero__meta { font-size: 12px; gap: 7px 16px; }
  .hero__rule { margin: 16px 0 14px; }

  .nav__links { gap: 0; }
  .nav__link { padding: 8px 10px; font-size: 13px; }
  .nav__link--cta { padding: 6px 11px; }
  .nav__link-long { display: none; }
  .nav__link-short { display: inline; }
  .brand__sub { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 14px 14px 13px; }
  .stat__label { font-size: 11.5px; margin-bottom: 8px; }
  .stat__value { font-size: 23px; }
  .stat__value small { font-size: 11px; }
  .stat__foot { font-size: 11px; }

  .leaders__head { padding: 15px 15px; gap: 14px; }
  .leaders__lead { gap: 13px; }
  .leaders__crown { width: 44px; height: 44px; font-size: 17px; }
  .leaders__title { font-size: 16.5px; }
  .leaders__desc { font-size: 12.5px; }
  .leaders__actions { width: 100%; }
  .leaders__actions .btn { flex: 1; }
  .leaders__body { padding: 14px 15px 16px; }
  .leader-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .leader-chip { padding: 8px 9px; gap: 7px; }
  .leader-chip__idx { display: none; }
  .leader-chip__tag { font-size: 12.5px; }
  .leader-chip__score { font-size: 11.5px; }

  .card__main { grid-template-columns: 48px 1fr auto; gap: 10px; padding: 12px 14px; }
  .card__rank-num { font-size: 18px; }
  .card__tag { font-size: 14.5px; }
  .card__total-num { font-size: 17px; }

  .support { padding: 20px 16px 22px; }
  .support__title { font-size: 19px; }
  .support__sub { font-size: 13px; }
  .support__grid { grid-template-columns: 1fr; }
  .qr-card { padding: 18px 16px; }
  .qr-card__frame { width: 200px; height: 200px; }

  .notice-card { padding: 18px 17px; }
  .notice-grid { gap: 12px; }

  .listfoot { padding: 12px 14px; }

  .footer { padding: 26px 0 30px; }
  .footer__links { gap: 15px; }

  .detail { padding: 16px 15px 18px; }
  .detail__tag { font-size: 18px; }
  .bar-row { grid-template-columns: 46px 1fr 62px; gap: 9px; font-size: 12.5px; }

  .empty { padding: 46px 18px; }
  .fatal { padding: 40px 18px; }
  .toast { bottom: 16px; font-size: 13px; }
}

/* 超窄屏（360px 及以下） */
@media (max-width: 380px) {
  :root { --gutter: 12px; }
  .hero__title { font-size: 29px; }
  .hero__english { letter-spacing: 0.2em; }
  .stat { padding: 13px 12px 12px; }
  .stat__value { font-size: 20px; }
  .stat__label { font-size: 11px; }
  .leader-grid { grid-template-columns: 1fr; }
  .card__main { grid-template-columns: 42px 1fr auto; gap: 9px; padding: 11px 12px; }
  .card__rank-num { font-size: 17px; }
  .card__tag { font-size: 14px; }
  .card__total-num { font-size: 16px; }
  .nav__link { padding: 7px 8px; font-size: 12.5px; }
  .nav__link--cta { padding: 5px 9px; }
  .brand__name { font-size: 13.5px; letter-spacing: 0.04em; }
  .brand__mark { width: 25px; height: 25px; }
  .brand__mark span { font-size: 10.5px; }
  .qr-card__frame { width: 170px; height: 170px; }
  .toolbar { padding: 11px 12px; }
  .listfoot { padding: 11px 12px; }
  .notice-card { padding: 16px 14px; }
  .support { padding: 18px 14px 20px; }
}

/* 打印：保证数据可导出核对 */
@media print {
  body { background: #fff; color: #000; }
  .nav, .to-top, .toolbar, .listfoot, .support, .sponsors, .hero::before, .hero::after { display: none !important; }
  .board, .table-scroll { border-color: #ccc; max-height: none; overflow: visible; }
  .cards { display: none !important; }
  .table-scroll { display: block !important; }
  table.standings thead th { position: static; background: #f2f2f2; color: #000; }
  table.standings td { color: #000 !important; border-color: #ddd; }
  .stat__value, .hero__title { color: #000 !important; -webkit-text-fill-color: #000 !important; }
}

/* 尊重系统「减少动画」偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton__row { animation: none; background: var(--surface-2); }
  .spinner { animation: none; border-top-color: var(--gold); }
}
