/* =========================================================
   易倍体育主站 · /assets/site.css
   共享外壳：轨道导航、页脚、排版底座、通用组件
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #071A2E;
}

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

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

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

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

button { background: none; border: 0; }

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

main { display: block; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --night:        #071A2E;
  --ice:          #0F3352;
  --snowline:     #2C6A97;
  --rime:         #A7C6DD;
  --snow:         #F5F9FC;
  --glass:        rgba(255, 255, 255, .72);
  --glass-soft:   rgba(255, 255, 255, .10);
  --orange:       #FF4A1C;
  --cyan:         #6FD3E8;
  --ink:          #0C141C;
  --scrim:        rgba(10, 27, 46, .55);

  --rail:         88px;
  --rail-open:    232px;
  --topbar:       60px;
  --shell-max:    1440px;
  --pad-x:        clamp(20px, 4vw, 72px);

  --font-head: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
}

p { text-wrap: pretty; }

strong { font-weight: 700; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 12px 22px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 0 0 2px 0;
  transform: translateY(-130%);
  transition: transform .18s var(--ease);
}

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

/* ---------- 5. 左轨道导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background: var(--night);
  background-image: linear-gradient(180deg, #0B2644 0%, #071A2E 48%, #051220 100%);
  border-right: 1px solid rgba(167, 198, 221, .16);
  color: var(--snow);
  overflow: hidden;
  transition: width .26s var(--ease);
}

.site-header:hover,
.site-header:focus-within,
.site-header[data-open="true"] {
  width: var(--rail-open);
}

/* 轨道头部 */
.rail-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 0 20px;
  border-bottom: 1px solid rgba(167, 198, 221, .14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-inline: 22px;
}

.brand-mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  border-radius: 2px;
}

.brand-text {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--rime);
  white-space: nowrap;
}

.site-header:hover .brand-text,
.site-header:focus-within .brand-text,
.site-header[data-open="true"] .brand-text {
  opacity: 1;
  transform: none;
}

/* 移动端开关（桌面端隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(167, 198, 221, .35);
  border-radius: 2px;
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(111, 211, 232, .1);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease);
}

.site-header[data-open="true"] .nav-toggle-bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.nav-toggle-label { white-space: nowrap; }

/* 导航列表 */
.site-nav { flex: 0 0 auto; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding-inline: 32px;
  overflow: hidden;
  color: var(--rime);
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.nav-index {
  flex: 0 0 24px;
  width: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(167, 198, 221, .55);
  transition: color .18s var(--ease);
}

.nav-label {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.site-header:hover .nav-label,
.site-header:focus-within .nav-label,
.site-header[data-open="true"] .nav-label {
  opacity: 1;
  transform: none;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: 50% 50%;
  transition: transform .18s var(--ease);
}

.nav-link:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--snow);
  transform: translateX(4px);
}

.nav-link:hover .nav-index { color: var(--cyan); }

.nav-link[aria-current="page"] {
  background: rgba(255, 74, 28, .12);
  color: var(--snow);
}

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

.nav-link[aria-current="page"]::before { transform: scaleY(1); }

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

/* 轨道底部 */
.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(167, 198, 221, .14);
}

.rail-note {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .1em;
  color: rgba(167, 198, 221, .5);
  text-align: center;
}

.rail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 16px 9px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  border-radius: 2px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.rail-cta:hover {
  background: var(--snow);
  color: var(--orange);
}

/* ---------- 6. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  left: var(--rail);
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .18s linear;
  pointer-events: none;
  z-index: 120;
  aria-hidden: true;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 128px);
  background: var(--night);
  background-image: linear-gradient(180deg, #0A2440 0%, #071A2E 60%, #051220 100%);
  color: var(--snow);
  border-top: 1px solid rgba(167, 198, 221, .16);
  padding-block: clamp(48px, 6vw, 88px) clamp(28px, 3vw, 44px);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(280px, 1.4fr) minmax(240px, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
}

.footer-brand-link {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: color .18s var(--ease);
}

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

.footer-tag {
  margin-top: 12px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--rime);
}

.footer-coords {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed rgba(167, 198, 221, .28);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(167, 198, 221, .62);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col-title {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(167, 198, 221, .18);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--cyan);
}

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

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  font-size: 14px;
  color: var(--rime);
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--orange);
  transform: translateY(-50%) scaleX(0);
  transform-origin: 0 50%;
  transition: transform .18s var(--ease);
}

.footer-links a:hover {
  color: var(--snow);
  transform: translateX(4px);
}

.footer-links a:hover::before { transform: translateY(-50%) scaleX(1); }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  letter-spacing: .03em;
  color: var(--rime);
}

.footer-note {
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-size: 12px;
  line-height: 1.85;
  color: rgba(167, 198, 221, .72);
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: clamp(24px, 3vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(167, 198, 221, .16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}

.footer-legal,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(167, 198, 221, .6);
}

/* ---------- 8. 页面容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.col-4  { grid-column: span 4; }
.col-6  { grid-column: span 6; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

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

.section--tight {
  padding-block: clamp(32px, 4vw, 64px);
}

/* ---------- 9. 排版件 ---------- */
.display {
  font-family: var(--font-head);
  font-size: clamp(48px, 8.4vw, 168px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.02em;
}

.title-lg {
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -.01em;
}

.title-md {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
}

.lede {
  max-width: 68ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.75;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--snowline);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.stat {
  font-family: var(--font-mono);
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.btn:hover { transform: translateX(4px); }

.btn--solid {
  background: var(--orange);
  color: #FFFFFF;
}

.btn--solid:hover {
  background: #FFFFFF;
  color: var(--orange);
}

.btn--ghost {
  border-color: rgba(44, 106, 151, .5);
  color: var(--snowline);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--night);
  background: var(--cyan);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--snowline);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--rime);
}

.breadcrumb a {
  transition: color .18s var(--ease);
}

.breadcrumb a:hover { color: var(--orange); }

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

/* ---------- 12. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background: var(--ice);
  border-radius: 2px;
  isolation: isolate;
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media-frame[data-ratio="21x9"] { aspect-ratio: 21 / 9; }
.media-frame[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.media-frame[data-ratio="4x3"]  { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="1x1"]  { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="3x4"]  { aspect-ratio: 3 / 4; }

.media-frame--scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 46, .08) 0%, rgba(7, 26, 46, .55) 100%);
  pointer-events: none;
}

/* ---------- 13. 赛季筛选条 ---------- */
.season-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.season-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 9px 14px;
  border: 1px solid rgba(167, 198, 221, .45);
  border-radius: 2px;
  background: transparent;
  color: var(--snowline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.season-chip:hover {
  border-color: var(--cyan);
  transform: translateX(4px);
}

.season-chip[aria-pressed="true"] {
  background: var(--ice);
  border-color: var(--ice);
  color: var(--snow);
}

/* ---------- 14. 地图图例 ---------- */
.legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: rgba(15, 51, 82, .88);
  border: 1px solid rgba(167, 198, 221, .22);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--rime);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rime);
}

.legend-dot--gate {
  border-radius: 1px;
  background: var(--orange);
}

.legend-dot--transit {
  background: var(--cyan);
}

.legend-dot--zone {
  width: 16px;
  height: 0;
  border-radius: 0;
  border-top: 1px dashed var(--rime);
  background: none;
}

/* ---------- 15. 全出血 ---------- */
@media (min-width: 901px) {
  .full-bleed { margin-left: calc(-1 * var(--rail)); }
}

/* ---------- 16. 平板 ---------- */
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand,
  .footer-meta {
    grid-column: 1 / -1;
  }

  .col-4, .col-6, .col-8 { grid-column: span 6; }
}

/* ---------- 17. 移动端 ---------- */
@media (max-width: 900px) {
  :root { --rail: 0px; }

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

  .skip-link { border-radius: 0 0 2px 2px; }

  .site-header,
  .site-header:hover,
  .site-header:focus-within {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    flex-direction: column;
    background: rgba(7, 26, 46, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-right: 0;
    border-bottom: 1px solid rgba(167, 198, 221, .16);
    overflow: visible;
  }

  .rail-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--topbar);
    padding: 8px clamp(16px, 4vw, 24px);
    border-bottom: 0;
  }

  .brand {
    width: auto;
    padding-inline: 0;
    gap: 10px;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .brand-text {
    opacity: 1;
    transform: none;
  }

  .brand-tag { display: none; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }

  .site-header[data-open="true"] .site-nav {
    max-height: min(72vh, 560px);
    overflow-y: auto;
  }

  .nav-list { padding: 6px 0; }

  .nav-link {
    height: 54px;
    padding-inline: clamp(16px, 4vw, 24px);
  }

  .nav-label {
    opacity: 1;
    transform: none;
  }

  .nav-link::before {
    top: 11px;
    bottom: 11px;
  }

  .rail-foot { display: none; }

  .site-header[data-open="true"] .rail-foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 0;
    padding: 18px clamp(16px, 4vw, 24px) 24px;
    border-top: 1px solid rgba(167, 198, 221, .14);
  }

  .rail-note { display: none; }

  .rail-cta {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    width: 100%;
    padding: 14px 18px;
    letter-spacing: .08em;
  }

  .scroll-progress {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
  }

  .col-4, .col-6, .col-8 { grid-column: span 12; }
}

/* ---------- 18. 小屏 ---------- */
@media (max-width: 620px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 19. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .scroll-progress { transition: none; }

  .site-header { transition: none; }

  .nav-link:hover,
  .footer-links a:hover,
  .btn:hover,
  .season-chip:hover {
    transform: none !important;
  }
}
