/* ==========================================================================
   易倍体育看台 · 共享站点样式 /assets/site.css
   结构：reset → 变量 → 中文排版 → 轨道页头 → 抽屉导航 → 页脚 → 通用组件
   ========================================================================== */

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

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

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

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

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

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

a { color: inherit; }

/* ---------- 设计令牌 ---------- */

:root {
  --ink-950: #04120D;
  --ink-900: #071A14;
  --ink-800: #0E3A2C;
  --ink-700: #1A5542;
  --paper: #F3EDDD;
  --paper-edge: #E4D9C2;
  --mist: #DCE8E3;
  --cyan: #5BF0CF;
  --cyan-ink: #1E9E88;
  --amber: #FFB13B;
  --amber-ink: #8A4A00;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-data: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bar-h: 62px;
  --rail-w: 0px;
  --shell: 1440px;
  --gutter: clamp(16px, 4.2vw, 44px);
  --r-card: 16px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, .8, .36, 1);
}

/* ---------- 中文排版基础 ---------- */

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--mist);
  background-color: var(--ink-900);
  padding-top: var(--bar-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

p { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}

strong { font-weight: 700; }

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

::selection {
  background: var(--cyan);
  color: var(--ink-950);
}

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* ==========================================================================
   页头：轨道 + 舞台
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--bar-h);
  color: var(--mist);
  background-color: rgba(7, 26, 20, .88);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(91, 240, 207, .16);
}

.rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 14px;
}

/* 品牌方块：球门网纹理 */
.rail__mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background-image:
    repeating-linear-gradient(90deg, rgba(4, 18, 13, .55) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, rgba(4, 18, 13, .55) 0 1px, transparent 1px 6px),
    linear-gradient(150deg, var(--cyan) 0%, var(--ink-700) 100%);
  box-shadow: 0 0 0 1px rgba(91, 240, 207, .28), 0 6px 18px rgba(91, 240, 207, .16);
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
  color: var(--mist);
}

.rail__brand-cn {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

/* 移动端抽屉按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 13px;
  border: 1px solid rgba(91, 240, 207, .32);
  border-radius: var(--r-pill);
  background-color: rgba(91, 240, 207, .08);
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

.nav-toggle:hover {
  background-color: rgba(91, 240, 207, .16);
  border-color: rgba(91, 240, 207, .55);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.site-header[data-open] .nav-toggle {
  border-color: rgba(91, 240, 207, .6);
  background-color: rgba(91, 240, 207, .18);
  color: var(--cyan);
}

/* ---------- 移动端抽屉导航（默认形态） ---------- */

.rail__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px var(--gutter) 26px;
  max-height: calc(100vh - var(--bar-h));
  max-height: calc(100dvh - var(--bar-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background-image: linear-gradient(180deg, rgba(7, 26, 20, .99) 0%, rgba(14, 58, 44, .99) 100%);
  background-color: var(--ink-900);
  border-bottom: 1px solid rgba(91, 240, 207, .22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
}

.site-header[data-open] .rail__nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail__list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(220, 232, 227, .7);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.rail__list a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 2px 2px 0;
  background-color: var(--cyan);
  transform: translateY(-50%);
  transition: height .2s var(--ease);
}

.rail__list a:hover {
  color: var(--mist);
  background-color: rgba(91, 240, 207, .08);
}

.rail__list a[aria-current="page"] {
  color: var(--cyan);
  background-color: rgba(91, 240, 207, .1);
}

.rail__list a[aria-current="page"]::before {
  height: 20px;
}

.rail__idx {
  flex: none;
  font-family: var(--font-data);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: .16em;
  color: rgba(91, 240, 207, .5);
  transition: color .18s var(--ease);
}

.rail__list a[aria-current="page"] .rail__idx {
  color: var(--cyan);
}

.rail__label {
  display: block;
}

.rail__nav-cta {
  width: 100%;
}

/* 滚动进度：移动端贴顶栏底边 */
.rail__meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background-color: rgba(91, 240, 207, .1);
}

.rail__meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--cyan) 0%, var(--amber) 100%);
}

/* ---------- 桌面端：竖向常驻轨道 ---------- */

@media (min-width: 900px) {

  :root { --rail-w: 112px; }

  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .skip-link { left: calc(var(--rail-w) + 12px); }

  .site-header {
    inset: 0 auto 0 0;
    width: var(--rail-w);
    height: 100vh;
    height: 100dvh;
    background-image: linear-gradient(180deg, rgba(7, 26, 20, .92) 0%, rgba(14, 58, 44, .9) 100%);
    border-bottom: 0;
    border-right: 1px solid rgba(91, 240, 207, .18);
  }

  .rail {
    height: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
    padding: 22px 10px 16px;
  }

  .rail__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-right: 0;
    padding-left: 2px;
  }

  .rail__mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .rail__brand-cn {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    white-space: normal;
  }

  .nav-toggle { display: none; }

  .rail__nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    background-image: none;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .rail__list { gap: 2px; }

  .rail__list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .rail__list a::before {
    left: -10px;
  }

  .rail__list a[aria-current="page"]::before {
    height: 26px;
  }

  .rail__idx { font-size: 9.5px; letter-spacing: .18em; }

  .rail__list a[aria-current="page"] {
    background-color: rgba(91, 240, 207, .12);
  }

  .rail__nav-cta {
    margin-top: auto;
    width: 100%;
    padding: 11px 6px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 10px;
    text-align: center;
    white-space: normal;
  }

  .rail__meter {
    position: static;
    flex: none;
    height: 3px;
    margin-top: 4px;
    border-radius: 2px;
    background-color: rgba(91, 240, 207, .16);
  }
}

/* ==========================================================================
   页脚：看台剖面
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--mist);
  background-color: var(--ink-900);
  background-image: radial-gradient(120% 130% at 10% 0%, rgba(26, 85, 66, .68) 0%, rgba(7, 26, 20, 1) 64%);
  border-top: 1px solid rgba(91, 240, 207, .18);
  padding-top: clamp(48px, 7vw, 88px);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(91, 240, 207, .055) 0 1px, transparent 1px 9px);
  opacity: .8;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -55%;
  width: 78%;
  height: 90%;
  pointer-events: none;
  background-image: radial-gradient(closest-side, rgba(91, 240, 207, .16), transparent 100%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer__leader {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid rgba(91, 240, 207, .16);
}

.footer__kicker {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--mist);
}

.footer__summary {
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(220, 232, 227, .72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px);
  padding-block: clamp(32px, 5vw, 56px);
}

.footer__col { min-width: 0; }

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.4;
  color: rgba(91, 240, 207, .78);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 15.5px;
  line-height: 1.5;
  text-decoration: none;
  color: rgba(220, 232, 227, .78);
  transition: color .18s var(--ease);
}

.footer__links a::before {
  content: "";
  display: block;
  flex: none;
  width: 0;
  height: 1px;
  margin-right: 0;
  background-color: var(--cyan);
  transition: width .18s var(--ease), margin-right .18s var(--ease);
}

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

.footer__links a:hover::before {
  width: 14px;
  margin-right: 8px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.footer__label {
  flex: none;
  padding: 2px 9px;
  border: 1px solid rgba(91, 240, 207, .28);
  border-radius: var(--r-pill);
  font-family: var(--font-data);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: .14em;
  color: rgba(91, 240, 207, .82);
}

.footer__value {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(220, 232, 227, .9);
  word-break: break-word;
}

.copy-btn {
  flex: none;
  padding: 3px 10px;
  border: 1px solid rgba(91, 240, 207, .34);
  border-radius: var(--r-pill);
  background-color: transparent;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--cyan);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.copy-btn:hover {
  background-color: rgba(91, 240, 207, .14);
}

.copy-btn[data-copied] {
  background-color: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-950);
}

.footer__note {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(220, 232, 227, .5);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(91, 240, 207, .14);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.6;
  color: rgba(220, 232, 227, .5);
}

.footer__copy,
.footer__icp { margin: 0; }

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

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr 1.7fr; }
  .footer__col--contact { padding-left: clamp(0px, 2vw, 20px); }
}

/* ==========================================================================
   通用组件
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.band {
  padding-block: clamp(56px, 8vw, 120px);
}

.band--paper {
  background-color: var(--paper);
  color: var(--ink-900);
}

.band--paper a { color: var(--cyan-ink); }

.band--ink {
  background-color: var(--ink-800);
  color: var(--mist);
}

.divider {
  height: 1px;
  border: 0;
  background-color: rgba(91, 240, 207, .18);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.2;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background-color: currentColor;
  opacity: .8;
}

.eyebrow--ink { color: var(--cyan-ink); }

.h-display {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: .98;
}

.h-section {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.data-num {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(91, 240, 207, .3);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.6;
  color: var(--cyan);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(220, 232, 227, .22);
  border-radius: var(--r-pill);
  background-color: rgba(7, 26, 20, .55);
  color: rgba(220, 232, 227, .82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.chip:hover {
  border-color: rgba(91, 240, 207, .5);
  color: var(--cyan);
}

.chip[aria-pressed="true"] {
  background-color: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-950);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--cta {
  background-color: var(--cyan);
  color: var(--ink-950);
}

.btn--cta:hover { background-color: #8BFBE3; }

.btn--ghost {
  background-color: transparent;
  border-color: rgba(91, 240, 207, .34);
  color: var(--mist);
}

.btn--ghost:hover {
  background-color: rgba(91, 240, 207, .1);
  color: var(--cyan);
}

.btn--amber {
  background-color: var(--amber);
  color: #2A1500;
}

.btn--amber:hover { background-color: #FFC467; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.8;
  color: rgba(220, 232, 227, .55);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
}

.crumbs li::after {
  content: "/";
  margin-inline: 8px;
  color: rgba(91, 240, 207, .38);
}

.crumbs li:last-child::after { content: none; }

.crumbs a {
  text-decoration: none;
  color: inherit;
  transition: color .18s var(--ease);
}

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

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

.band--paper .crumbs { color: rgba(7, 26, 20, .55); }
.band--paper .crumbs a:hover { color: var(--cyan-ink); }
.band--paper .crumbs [aria-current="page"] { color: var(--cyan-ink); }

/* ---------- 图片容器基础（页面阶段放入 img） ---------- */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  background-color: var(--ink-800);
  background-image:
    repeating-linear-gradient(115deg, rgba(91, 240, 207, .1) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, var(--ink-700) 0%, var(--ink-900) 100%);
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--mist);
  background-image: linear-gradient(0deg, rgba(4, 18, 13, .82), transparent);
}

/* ---------- 降低动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
