/* =========================================================
   中欧看台 · 共享样式 /assets/site.css
   夜场记分牌体系：深靛蓝底 + 信号橙行动 + 荧光青数据
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

:root {
  --ink-900: #050814;
  --ink-800: #0A1230;
  --ink-700: #1A2544;
  --ink-500: #5A6A96;
  --line: #2C3A63;
  --line-soft: rgba(44, 58, 99, 0.62);
  --orange: #FF5A1F;
  --orange-soft: rgba(255, 90, 31, 0.22);
  --cyan: #27E1D2;
  --cyan-soft: rgba(39, 225, 210, 0.12);
  --paper: #F7F2E8;
  --muted: #A8B2CC;
  --green: #42D392;
  --yellow: #FFC857;
  --white: #FFFFFF;
  --rail-w: 84px;
  --topbar-h: 36px;
  --maxw: 1440px;
  --pad: clamp(18px, 4vw, 56px);
  --radius: 2px;
  --font-display: "Barlow Condensed", "Oswald", "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
  position: relative;
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--topbar-h);
  background-color: var(--ink-800);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* 看台灯晕 */
body::after {
  content: "";
  position: fixed;
  top: -14vw;
  right: -12vw;
  width: 62vw;
  height: 62vw;
  max-width: 860px;
  max-height: 860px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 225, 210, 0.10), rgba(255, 90, 31, 0.05) 42%, transparent 66%);
  pointer-events: none;
  z-index: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 通用排版 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--paper);
}
.display--xl { font-size: clamp(3.2rem, 9vw, 8rem); }
.display--lg { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 400; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.lede {
  max-width: 64ch;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--muted);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 48px);
  background: var(--line);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: middle;
}
.dot--live { background: var(--green); box-shadow: 0 0 0 3px rgba(66, 211, 146, 0.16); }
.dot--warn { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.14); }

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 880px; }

.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 96px);
  z-index: 1;
}
.section--deep { background: var(--ink-900); }
.section--panel { background: var(--ink-700); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 32px); }
.grid--sidebar { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }

/* ---------- 面包屑 ---------- */
.breadcrumb { margin-block: clamp(16px, 3vw, 30px); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.breadcrumb__item { display: inline-flex; align-items: center; }
.breadcrumb__item::after { content: "/"; margin-left: 0.5em; color: var(--ink-500); }
.breadcrumb__item:last-child::after { content: none; }
.breadcrumb__link { transition: color 0.12s ease; }
.breadcrumb__link:hover { color: var(--cyan); }
.breadcrumb__current { color: var(--paper); }

/* ---------- 按钮 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.btn:hover { transform: translateX(2px); border-color: var(--cyan); color: var(--white); }
.btn__arrow { font-family: var(--font-mono); }
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #0A1230;
  font-weight: 700;
}
.btn--primary:hover { background: #FF753F; border-color: #FF753F; color: #0A1230; }
.btn--ghost { border-color: var(--line); color: var(--muted); }
.btn--ghost:hover { color: var(--paper); border-color: var(--paper); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: transparent;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.chip:hover { color: var(--paper); border-color: var(--cyan); }
.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #062229;
  font-weight: 700;
}

/* ---------- 面板 / 数据块 ---------- */
.panel {
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-700);
}
.panel--flat { background: transparent; border-color: var(--line-soft); }
.panel--paper {
  background: var(--paper);
  border-color: #DED6C4;
  color: #0A1230;
}

.stat { display: grid; gap: 0.15em; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.stat__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---------- 图片容器基础规则 ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(circle at 72% 18%, rgba(255, 90, 31, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(39, 225, 210, 0.07), transparent 62%),
    repeating-linear-gradient(90deg, rgba(44, 58, 99, 0.5) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(44, 58, 99, 0.5) 0 1px, transparent 1px 72px);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}
.image-frame--wide { aspect-ratio: 16 / 9; }
.image-frame--tall { aspect-ratio: 3 / 4; }
.image-frame--square { aspect-ratio: 1 / 1; }
.image-frame--fill { min-height: clamp(200px, 30vw, 380px); }
.image-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- 长文阅读 ---------- */
.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.85;
  color: #E4E2DA;
}
.prose p + p { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; margin-bottom: 0.6em; color: var(--paper); }
.prose ul, .prose ol { margin-top: 0.9em; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 章节目录 ---------- */
.toc { position: sticky; top: calc(var(--topbar-h) + 20px); }
.toc__list { display: grid; gap: 8px; font-size: 12px; letter-spacing: 0.1em; }
.toc__link {
  display: block;
  padding: 4px 0 4px 10px;
  border-left: 2px solid var(--line-soft);
  color: var(--muted);
  transition: color 0.12s ease, border-color 0.12s ease;
}
.toc__link:hover { color: var(--paper); border-left-color: var(--cyan); }
.toc__link[aria-current] { color: var(--paper); border-left-color: var(--orange); }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 130;
  pointer-events: none;
}
.scroll-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

/* =========================================================
   页头
   ========================================================= */
.site-header { position: relative; z-index: 80; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--orange);
  color: #0A1230;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* 顶部赛季细条 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding-left: calc(var(--rail-w) + clamp(14px, 3vw, 28px));
  padding-right: clamp(14px, 3vw, 28px);
  background: rgba(5, 8, 20, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.topbar__brand {
  display: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--paper);
}
.topbar__status {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__quick {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.topbar__quick-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-500);
}
.topbar__quick-link {
  position: relative;
  padding-bottom: 2px;
  color: var(--paper);
  letter-spacing: 0.1em;
  transition: color 0.12s ease;
}
.topbar__quick-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--orange);
  transition: right 0.12s ease;
}
.topbar__quick-link:hover { color: var(--orange); }
.topbar__quick-link:hover::after { right: 0; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: rgba(26, 37, 68, 0.6);
}
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 左侧框架竖栏 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 22px);
  width: var(--rail-w);
  padding: calc(var(--topbar-h) + 18px) 8px 18px;
  background: linear-gradient(180deg, #070C1F 0%, #0A1230 58%, #050814 100%);
  border-right: 1px solid var(--line);
}
.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}
.rail__mark {
  width: 2.2em;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--paper);
}
.rail__sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.85;
}
.rail__nav {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
}
.nav-list { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.nav-list__item { width: 100%; }
.nav-link {
  display: block;
  padding: 8px 2px;
  border-left: 2px solid transparent;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--muted);
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.nav-link__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink-500);
  transition: color 0.12s ease;
}
.nav-link:hover {
  color: var(--paper);
  background: rgba(39, 225, 210, 0.07);
  transform: translateX(2px);
}
.nav-link:hover .nav-link__idx { color: var(--cyan); }
.nav-link[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-soft), rgba(255, 90, 31, 0));
  border-left-color: var(--orange);
}
.nav-link[aria-current="page"] .nav-link__idx { color: var(--orange); }

.rail__tagline {
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
  opacity: 0.72;
}

/* 移动端底部快捷条 */
.quickbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  align-items: center;
  gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 8, 20, 0.97);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.quickbar__label {
  max-width: 5em;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.quickbar__link {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-700);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}
.quickbar__link:first-of-type {
  background: var(--orange);
  border-color: var(--orange);
  color: #0A1230;
  font-weight: 700;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  padding-top: clamp(40px, 6vw, 80px);
  background-color: var(--ink-900);
  background-image: repeating-linear-gradient(90deg, rgba(44, 58, 99, 0.34) 0 1px, transparent 1px 96px);
  border-top: 1px solid var(--line);
  color: var(--paper);
  z-index: 1;
}
.footer__inner { padding-bottom: 0; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.footer__brand { display: grid; gap: 12px; align-content: start; }
.footer__index {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.footer__tagline {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.footer__note {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer__col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--paper);
}
.footer__links { display: grid; gap: 10px; font-size: 14px; }
.footer__links a {
  display: inline-block;
  color: var(--muted);
  transition: color 0.12s ease, transform 0.12s ease;
}
.footer__links a:hover { color: var(--paper); transform: translateX(2px); }

.contact-list { display: grid; gap: 12px; }
.contact-list__item { display: grid; gap: 2px; }
.contact-list__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-500);
}
.contact-list__value {
  font-size: 13px;
  color: var(--paper);
  word-break: break-word;
}

.footer__note-full {
  max-width: 72ch;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__legal-links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.footer__legal-links a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.footer__copy { margin-left: auto; }
.footer__icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-500);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--paper);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.12s ease, border-color 0.12s ease;
}
.to-top[data-visible] { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink-700); border-color: var(--cyan); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1100px) {
  .grid--sidebar { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; --topbar-h: 56px; }

  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
    padding-bottom: 76px;
  }

  .topbar {
    padding-left: 14px;
    padding-right: 10px;
    gap: 10px;
  }
  .topbar__brand { display: block; }
  .topbar__status { display: none; }
  .topbar__quick { display: none; }
  .nav-toggle { display: inline-flex; }

  .rail {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
  }
  .rail__brand, .rail__tagline { display: none; }

  .rail__nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 110;
    display: block;
    width: min(86vw, 340px);
    max-width: 340px;
    padding: calc(var(--topbar-h) + 24px) 22px 40px;
    background: linear-gradient(180deg, #070C1F 0%, #0A1230 100%);
    border-right: 1px solid var(--line);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.2, 1);
    flex: none;
    align-items: stretch;
  }
  .rail__nav[data-open] { transform: translateX(0); }

  .nav-list { gap: 0; }
  .nav-list__item { width: auto; }
  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 10px;
    border-left: 2px solid transparent;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
    letter-spacing: 0.06em;
    text-align: left;
    transform: none;
  }
  .nav-link__idx { display: inline-block; width: 2.6em; font-size: 10px; }
  .nav-link:hover { transform: none; }

  body[data-nav-open] { overflow: hidden; }

  .quickbar { display: flex; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__contact { grid-column: auto; }
}

@media (max-width: 700px) {
  .footer__copy { margin-left: 0; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .rail__tagline { display: none; }
}

/* =========================================================
   减少动态
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .rail__nav { transition: none; }
  .to-top { transition: none; }
}
