/* ==========================================================================
   易倍赛场 · 共享样式表 /assets/site.css
   夜间赛场记分牌：夜场蓝 + 深墨绿连续画布，荧光青/暖金/信号橙只落在数据与动作上
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd, fieldset {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

table { width: 100%; border-collapse: collapse; }

/* 2. 设计变量 -------------------------------------------------------------- */
:root {
  /* 色彩 */
  --night: #071321;
  --ink: #0B2B26;
  --rail-blue: #123A5A;
  --cyan: #5FF0D0;
  --cyan-light: #B9FFF0;
  --gold: #F2C14E;
  --orange: #FF6B35;
  --stand-gray: #9AA7B1;
  --paper: #F4F8F7;
  --cut-black: #04110D;
  --state-green: #3DD68C;

  --line: rgba(95, 240, 208, 0.16);
  --line-soft: rgba(154, 167, 177, 0.18);
  --line-gold: rgba(242, 193, 78, 0.42);
  --line-orange: rgba(255, 107, 53, 0.45);

  /* 字体 */
  --font-display: 'Barlow Condensed', 'Oswald', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-editorial: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', 'Menlo', monospace;

  /* 尺度 */
  --rail-w: 272px;
  --scorebar-h: 38px;
  --gutter: clamp(18px, 4vw, 56px);
  --shell-max: 1180px;

  --cut-lg: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  --cut-sm: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

/* 3. 基础排版与画布 -------------------------------------------------------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 520px at 84% -8%, rgba(95, 240, 208, 0.10), transparent 62%),
    radial-gradient(820px 560px at -6% 12%, rgba(18, 58, 90, 0.55), transparent 68%),
    linear-gradient(180deg, #071321 0%, #08211D 48%, #071321 100%);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--paper);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.06em; }

p { max-width: 70ch; }

strong, b { color: var(--paper); font-weight: 700; }

small { font-size: 13px; color: var(--stand-gray); }

::selection { background: var(--cyan); color: var(--cut-black); }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  transform: translateY(-160%);
  padding: 10px 20px;
  background: var(--cyan);
  color: var(--cut-black);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  clip-path: var(--cut-sm);
  transition: transform 0.18s ease;
}

.skip-link:focus { transform: translateY(0); }

/* 4. 顶部比分条 ------------------------------------------------------------ */
.scorebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--scorebar-h);
  background: linear-gradient(90deg, #04110D 0%, #072019 46%, #0B2B26 100%);
  border-bottom: 1px solid rgba(95, 240, 208, 0.22);
  box-shadow: 0 12px 34px rgba(4, 17, 13, 0.6);
}

.scorebar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 0 var(--gutter);
  overflow: hidden;
}

.scorebar__pulse {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--state-green);
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
  animation: score-pulse 2.6s ease-in-out infinite;
}

@keyframes score-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(61, 214, 140, 0); }
}

.scorebar__tag {
  flex: 0 0 auto;
  padding: 2px 9px;
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: var(--cut-sm);
}

.scorebar__track {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--stand-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorebar__cta {
  flex: 0 0 auto;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(95, 240, 208, 0.5);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.scorebar__cta:hover { color: var(--cyan-light); border-color: var(--cyan-light); }

.scorebar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 62%, var(--orange));
  will-change: transform;
}

/* 5. 头部：侧边轨道 + 移动抽屉 -------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
}

.rail {
  position: fixed;
  top: var(--scorebar-h);
  left: 0;
  bottom: 0;
  z-index: 80;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 18px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #0B2B26 0%, #0A251F 44%, #071321 100%);
  border-right: 1px solid var(--line);
}

.rail::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, transparent 48%, rgba(95, 240, 208, 0.10) 49%, rgba(95, 240, 208, 0.10) 51%, transparent 52%);
  pointer-events: none;
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 34%;
  background: linear-gradient(180deg, var(--cyan), rgba(95, 240, 208, 0));
  opacity: 0.75;
  pointer-events: none;
}

.rail__brand { flex: 0 0 auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(120deg, rgba(18, 58, 90, 0.85), rgba(11, 43, 38, 0.45));
  border: 1px solid rgba(95, 240, 208, 0.22);
  clip-path: var(--cut-sm);
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

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

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: linear-gradient(140deg, var(--cyan), #2FAE95);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  box-shadow: 0 0 18px rgba(95, 240, 208, 0.32);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--night);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--paper);
}

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

.rail__nav { flex: 1 1 auto; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-list__item { position: relative; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 18px;
  color: var(--stand-gray);
  transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  background: transparent;
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.nav-link__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(154, 167, 177, 0.72);
}

.nav-link__label {
  font-family: var(--font-display);
  font-size: 17.5px;
  letter-spacing: 0.07em;
}

.nav-link:hover {
  color: var(--cyan-light);
  background-color: rgba(18, 58, 90, 0.5);
  transform: translateX(2px);
}

.nav-link:hover::before { background: rgba(95, 240, 208, 0.55); }

.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(18, 58, 90, 0.95), rgba(18, 58, 90, 0.12));
  color: var(--paper);
}

.nav-link[aria-current="page"]::before {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(95, 240, 208, 0.65);
}

.nav-link[aria-current="page"] .nav-link__index { color: var(--gold); }

.nav-link[aria-current="page"] .nav-link__label { color: var(--cyan-light); }

.quickband {
  flex: 0 0 auto;
  padding: 8px 10px 12px;
  background: rgba(4, 17, 13, 0.55);
  border: 1px solid var(--line);
  clip-path: var(--cut-sm);
}

.quickband__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 4px 2px 6px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quickband__chev {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

.quickband[data-collapsed] .quickband__chev { transform: rotate(-135deg) translate(-2px, -2px); }

.quickband__panel { padding-top: 6px; }

.quickband[data-collapsed] .quickband__panel { display: none; }

.quickband__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quickband__link {
  display: block;
  padding: 8px 10px;
  border-left: 2px solid rgba(95, 240, 208, 0.25);
  background: linear-gradient(90deg, rgba(18, 58, 90, 0.35), transparent);
  color: var(--stand-gray);
  font-size: 14.5px;
  transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.quickband__link:hover {
  padding-left: 15px;
  border-left-color: var(--orange);
  color: var(--cyan-light);
}

.rail__meta {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 167, 177, 0.75);
}

.nav-toggle { display: none; }

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 17, 13, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.is-nav-open { overflow: hidden; }

/* 6. 页面主体 -------------------------------------------------------------- */
#main-content {
  display: block;
  min-height: 60vh;
  padding: 88px var(--gutter) 64px;
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
}

/* 7. 面包屑 ---------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stand-gray);
}

.breadcrumbs__item { display: inline-flex; align-items: center; color: var(--stand-gray); }

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: rgba(154, 167, 177, 0.5);
}

.breadcrumbs__link { color: var(--stand-gray); transition: color 0.2s ease; }

.breadcrumbs__link:hover { color: var(--cyan); }

.breadcrumbs__item[aria-current="page"] { color: var(--cyan-light); }

/* 8. 通用文字与标签 -------------------------------------------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-editorial);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--stand-gray);
}

.section-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 240, 208, 0.5), transparent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line-gold);
  background: rgba(242, 193, 78, 0.06);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag--cyan {
  border-color: rgba(95, 240, 208, 0.42);
  background: rgba(95, 240, 208, 0.07);
  color: var(--cyan);
}

.tag--orange {
  border-color: var(--line-orange);
  background: rgba(255, 107, 53, 0.08);
  color: var(--orange);
}

.slash-divider {
  height: 1px;
  margin: clamp(28px, 5vw, 56px) 0;
  border: 0;
  background: repeating-linear-gradient(115deg, rgba(95, 240, 208, 0.42) 0 10px, transparent 10px 24px);
}

/* 9. 面板与栅格 ------------------------------------------------------------ */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(150deg, rgba(11, 43, 38, 0.86), rgba(7, 19, 33, 0.72));
  border: 1px solid var(--line);
}

.panel--cut { clip-path: var(--cut-lg); }

.panel--rail::before,
.panel--gold::before,
.panel--orange::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.panel--rail::before { background: var(--cyan); }
.panel--gold::before { background: var(--gold); }
.panel--orange::before { background: var(--orange); }

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
.grid--split { grid-template-columns: 1fr; }

/* 10. 数据展示 ------------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: 6px; }

.stat__number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan-light);
}

.stat__unit {
  font-family: var(--font-mono);
  font-size: 0.46em;
  letter-spacing: 0.08em;
  color: var(--stand-gray);
}

.stat__label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stand-gray);
}

/* 11. 图像容器与展签说明牌 ------------------------------------------------ */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(150deg, #0B2B26, #071321);
  border: 1px solid var(--line);
  clip-path: var(--cut-sm);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 17, 13, 0) 44%, rgba(4, 17, 13, 0.55));
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--stage { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame__caption {
  position: relative;
  margin-top: 10px;
  font-family: var(--font-editorial);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--stand-gray);
}

.exhibit-label {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(4, 17, 13, 0.72);
}

.exhibit-label__title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.exhibit-label__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stand-gray);
}

/* 12. 按钮 ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.12em;
  clip-path: var(--cut-sm);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--cyan), #33C7A8);
  color: var(--cut-black);
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(95, 240, 208, 0.22);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, var(--cyan-light), var(--cyan));
}

.btn--ghost {
  border-color: rgba(95, 240, 208, 0.45);
  background: rgba(18, 58, 90, 0.28);
  color: var(--cyan-light);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(18, 58, 90, 0.6);
}

.btn--gold {
  border-color: var(--line-gold);
  background: rgba(242, 193, 78, 0.08);
  color: var(--gold);
}

.btn--gold:hover {
  transform: translateY(-2px);
  background: rgba(242, 193, 78, 0.18);
  color: #FFD97A;
}

/* 13. 长文阅读 ------------------------------------------------------------ */
.prose {
  max-width: 74ch;
  font-size: 17.5px;
  color: rgba(244, 248, 247, 0.86);
}

.prose h2 { margin: 2.1em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; color: var(--cyan-light); }
.prose p { max-width: none; margin: 0 0 1.05em; }
.prose ul { display: grid; gap: 0.5em; margin: 0 0 1.2em; }

.prose li {
  position: relative;
  padding-left: 20px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(95, 240, 208, 0.45);
}

.prose a:hover { color: var(--cyan-light); }

/* 14. 折叠问答 ------------------------------------------------------------ */
.disclosure { border-bottom: 1px solid var(--line); }

.disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.disclosure__summary::-webkit-details-marker { display: none; }

.disclosure__summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
}

.disclosure[open] .disclosure__summary::after { content: "–"; }

.disclosure__body {
  padding: 0 4px 18px;
  color: rgba(244, 248, 247, 0.8);
}

/* 15. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 26px;
  background: linear-gradient(180deg, #04110D 0%, #0B2B26 68%, #071321 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(95, 240, 208, 0) 40%, rgba(242, 193, 78, 0.7) 72%, var(--orange) 100%);
}

.footer-shell {
  max-width: var(--shell-max);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 42ch;
}

.footer-brand__mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(140deg, var(--cyan), #2FAE95);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.footer-brand__line {
  max-width: none;
  font-family: var(--font-editorial);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--stand-gray);
}

.footer-col { display: block; }

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242, 193, 78, 0.22);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links { display: grid; gap: 9px; }

.footer-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 15px;
  color: rgba(244, 248, 247, 0.8);
  transition: color 0.2s ease;
}

.footer-link::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 0.65em;
  background: rgba(95, 240, 208, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.footer-link:hover { color: var(--cyan-light); }
.footer-link:hover::before { background: var(--orange); }

.footer-contact {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  max-width: none;
}

.footer-contact__item {
  display: grid;
  gap: 2px;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stand-gray);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer-contact__note {
  max-width: 42ch;
  font-family: var(--font-editorial);
  font-size: 13px;
  line-height: 1.7;
  color: var(--stand-gray);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stand-gray);
}

.footer-meta__item { white-space: nowrap; }
.footer-icp { color: var(--stand-gray); }
.footer-legal { color: rgba(154, 167, 177, 0.85); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(95, 240, 208, 0.4);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.16em;
  clip-path: var(--cut-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.to-top:hover {
  background: rgba(95, 240, 208, 0.14);
  color: var(--cyan-light);
}

html:not([data-js="on"]) .to-top { display: none; }

/* 16. 显现动效 ------------------------------------------------------------ */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html[data-js="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 17. 响应式 -------------------------------------------------------------- */
@media (max-width: 560px) {
  .scorebar__tag { display: none; }
  .scorebar__cta { font-size: 12.5px; letter-spacing: 0.08em; }
  .scorebar__track { font-size: 12px; }
  body { font-size: 16px; }
}

@media (max-width: 1023px) {
  .nav-toggle {
    position: fixed;
    top: calc(var(--scorebar-h) + 12px);
    right: 14px;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    background: linear-gradient(135deg, #123A5A, #0B2B26);
    border: 1px solid rgba(95, 240, 208, 0.42);
    clip-path: var(--cut-sm);
    box-shadow: 0 12px 28px rgba(4, 17, 13, 0.55);
  }

  .nav-toggle__bars {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cyan);
    transition: background-color 0.2s ease;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--cyan);
    transition: transform 0.25s ease, top 0.25s ease;
  }

  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }

  .nav-toggle__label {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--paper);
  }

  .site-header[data-open] .nav-toggle__bars { background: transparent; }
  .site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

  .rail {
    top: 0;
    bottom: 0;
    z-index: 110;
    width: min(332px, 88vw);
    padding: calc(var(--scorebar-h) + 24px) 18px 28px;
    transform: translateX(-104%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 24px 0 60px rgba(4, 17, 13, 0.7);
  }

  .site-header[data-open] .rail { transform: translateX(0); }
  .site-header[data-open] .rail-scrim { opacity: 1; visibility: visible; }
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .grid--split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

@media (min-width: 1024px) {
  .rail-scrim { display: none; }

  #main-content {
    margin-left: var(--rail-w);
    padding: 52px var(--gutter) 96px;
  }

  .site-footer { margin-left: var(--rail-w); }

  .scorebar__inner { padding-left: calc(var(--rail-w) + 24px); }

  .footer-grid { grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr)); }
}

/* 18. 减少动态偏好 -------------------------------------------------------- */
@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;
  }

  .scorebar__pulse { animation: none; }
  .scorebar__progress { transition: none; }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
