/* =========================================================
   易贝体育 · CN联赛赛季数据站 — 全站共享样式
   路径：/assets/site.css
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body { margin: 0; }

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

ul, ol { list-style: none; }

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

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

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

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色彩 */
  --ink-900: #07100D;
  --ink-800: #0C1A16;
  --ink-700: #12312A;
  --glass: rgba(18, 49, 42, 0.62);
  --line: #1F3A33;
  --line-soft: #162A24;
  --cyan: #2BE8C8;
  --cyan-soft: #8FF6E4;
  --orange: #FF7A2F;
  --orange-soft: #FFB37A;
  --paper: #F2F7F4;
  --muted: #93A9A2;
  --dim: #5E7C74;

  /* 字体 */
  --font-heading: "Barlow Condensed", "Oswald", "HarmonyOS Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-numeric: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* 布局 */
  --rail-w: 268px;
  --shell: 1240px;
  --header-h: 66px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.012em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 底层坐标网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(31, 58, 51, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 58, 51, 0.5) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(130% 100% at 8% 0%, #000 0%, rgba(0, 0, 0, 0.4) 52%, transparent 88%);
  mask-image: radial-gradient(130% 100% at 8% 0%, #000 0%, rgba(0, 0, 0, 0.4) 52%, transparent 88%);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.008em;
}

strong, b { font-weight: 700; }

::selection {
  background: var(--cyan);
  color: #04120E;
}

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

/* ---------- 4. 工具结构与跳转链接 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 22px;
}

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04120E;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: top 0.18s var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 5. 页头：侧边索引轨道 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  min-height: var(--header-h);
  background: linear-gradient(180deg, #08130F 0%, #07100D 100%);
  border-bottom: 1px solid var(--line);
}

.rail-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--header-h);
  padding: 0 16px;
}

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

/* 品牌标识 */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: linear-gradient(140deg, var(--cyan) 0%, #16A98F 100%);
  color: #04120E;
  font-family: var(--font-numeric);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.brand-mark__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-mark__sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
}

/* 赛季短标签：移动端隐藏，桌面轨道内展开 */
.season-strip { display: none; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.14em;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 12px;
  background-image:
    linear-gradient(var(--cyan), var(--cyan)),
    linear-gradient(var(--cyan), var(--cyan)),
    linear-gradient(var(--cyan), var(--cyan));
  background-size: 100% 2px;
  background-position: 0 0, 0 5px, 0 10px;
  background-repeat: no-repeat;
}

/* 导航主体 */
.site-nav {
  display: flex;
  flex-direction: column;
}

.site-nav__caption {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  font-size: 15.5px;
  color: var(--muted);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.site-nav__list a:hover {
  color: var(--paper);
  background: rgba(18, 49, 42, 0.55);
  border-left-color: rgba(43, 232, 200, 0.55);
}

.site-nav__list a:hover .site-nav__idx { color: var(--cyan); }

.site-nav__list a[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(43, 232, 200, 0.18), rgba(43, 232, 200, 0) 74%);
  border-left-color: var(--cyan);
}

.site-nav__list a[aria-current="page"] .site-nav__idx { color: var(--cyan); }

.site-nav__idx {
  flex: none;
  font-family: var(--font-numeric);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: #3F5B54;
  transition: color 0.18s var(--ease);
}

/* 三条线索图例 */
.legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legend__caption {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2px;
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.legend__dot {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--dim);
}

.legend__item--promo .legend__dot {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(43, 232, 200, 0.55);
}

.legend__item--half .legend__dot {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 122, 47, 0.5);
}

.legend__item--round .legend__dot {
  background: var(--cyan-soft);
  opacity: 0.72;
}

/* 轨道行动入口 */
.rail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 16px;
  background: var(--cyan);
  color: #04120E;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color 0.18s var(--ease);
}

.rail-cta::after {
  content: "\2192";
  font-family: var(--font-numeric);
  font-size: 16px;
}

.rail-cta:hover { background: var(--cyan-soft); }

/* 移动端抽屉：仅在 JS 可用时折叠 */
@media (max-width: 1023px) {
  .js .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 39;
    display: flex;
    flex-direction: column;
    padding: 20px 18px 34px;
    overflow-y: auto;
    background: rgba(7, 16, 13, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s linear;
  }

  .js .site-nav__list { margin-bottom: auto; }

  .js .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ---------- 6. 主内容承载层 ---------- */
main {
  position: relative;
  z-index: 1;
  display: block;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, #08130F 0%, #050D0A 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0 34%, var(--orange) 34% 67%, #2F6A5C 67% 100%);
  opacity: 0.9;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) 22px clamp(28px, 4vw, 44px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-brand__line {
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 36px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.16s var(--ease), gap 0.16s var(--ease);
}

.footer-col__list a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.16s var(--ease);
}

.footer-col__list a:hover {
  color: var(--paper);
  gap: 8px;
}

.footer-col__list a:hover::before { width: 14px; }

.footer-contact {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-contact__item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.footer-contact__key {
  font-family: var(--font-numeric);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-bar {
  border-top: 1px solid var(--line);
  background: rgba(5, 13, 10, 0.7);
}

.footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 26px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px 22px 22px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
}

.footer-bar__legal { font-variant-numeric: tabular-nums; }

.footer-bar__note { max-width: 52ch; }

/* ---------- 8. 通用组件 ---------- */
.section-title {
  position: relative;
  padding-left: 17px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.01em;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(43, 232, 200, 0.14) 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

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

.breadcrumb__sep {
  color: #33504A;
  font-family: var(--font-numeric);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: #04120E;
}

.btn--primary:hover { background: var(--cyan-soft); }

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(18, 49, 42, 0.4);
}

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

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.grid-2,
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.5vw, 28px);
}

.stat-figure {
  font-family: var(--font-numeric);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* 筛选条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.09em;
  color: var(--muted);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.filter-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  opacity: 0.45;
}

.filter-chip:hover {
  color: var(--paper);
  border-color: var(--line);
}

.filter-chip[aria-pressed="true"] {
  background: var(--cyan);
  color: #04120E;
}

.filter-chip[aria-pressed="true"]::before {
  background: #04120E;
  opacity: 1;
}

.is-hidden { display: none !important; }

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(43, 232, 200, 0.16), transparent 58%),
    linear-gradient(155deg, #12312A 0%, #07100D 100%);
  border: 1px solid var(--line);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 16, 13, 0.74) 0%, rgba(7, 16, 13, 0) 62%);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }

/* ---------- 9. 动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ---------- 10. 响应式 ---------- */
@media (min-width: 560px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

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

  .footer-shell { grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

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

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    height: 100vh;
    min-height: 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(175deg, #0A1714 0%, #07100D 62%);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .rail-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
    min-height: 100%;
    padding: 28px 22px 24px;
  }

  .rail-brand {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-toggle { display: none; }

  .season-strip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 18px;
    padding: 12px 13px 13px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-left: 3px solid var(--orange);
  }

  .season-strip__num {
    font-family: var(--font-numeric);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: var(--cyan);
  }

  .season-strip__meta {
    font-size: 11.5px;
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: var(--muted);
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin-top: 26px;
    padding: 0;
    overflow: visible;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__caption { margin-bottom: 8px; }

  .site-nav__list { margin-bottom: auto; }

  .site-nav__list a { padding: 10px 10px; font-size: 14.5px; }

  .legend { margin-top: 22px; }

  .rail-cta { margin-top: 18px; }
}

@media (min-width: 1440px) {
  :root { --rail-w: 292px; }
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
