/* ============ 1. Reset 与设计令牌 ============ */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #0B1310;
  --ink-2: #131F19;
  --fence: #233C2E;
  --pitch: #1FA45B;
  --pitch-hi: #3BD984;
  --attack: #FF5A2B;
  --amber: #FFC24B;
  --red: #E23B3B;
  --yellow: #F2C230;
  --white: #F3F8F4;
  --mute: #93A79B;

  --rail-w: 88px;
  --cmd-h: 60px;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 44px);
  --r: 4px;

  --line: 3px solid var(--fence);
  --hard: 6px 6px 0 var(--fence);
  --hard-sm: 4px 4px 0 var(--fence);

  --f-head: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input { font: inherit; }
[hidden] { display: none !important; }

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

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

/* ============ 2. 通用工具类 ============ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(40px, 6vw, 84px); }
.section--tight { padding-block: clamp(26px, 4vw, 52px); }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--pitch-hi);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--pitch);
}

.sec-title {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--mute);
  max-width: 38em;
}

.rule {
  height: 3px;
  border: 0;
  margin: 0;
  background: var(--fence);
}

.breadcrumb {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--mute); border-bottom: 1px solid var(--fence); }
.breadcrumb a:hover { color: var(--pitch-hi); }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--fence);
}

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

/* 图片容器基础规则（页面阶段放置 <img>） */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: var(--line);
  border-radius: 2px;
  box-shadow: var(--hard-sm);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.media__note {
  position: absolute;
  left: 0; bottom: 0;
  padding: 6px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--white);
  background: rgba(11, 19, 16, 0.84);
  border-top: 2px solid var(--fence);
  border-right: 2px solid var(--fence);
}

/* ============ 3. 按钮与标签 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--white);
  background: var(--ink-2);
  border: 3px solid var(--fence);
  border-radius: 2px;
  box-shadow: var(--hard-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--fence);
  border-color: var(--pitch);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--fence);
}
.btn--attack {
  color: #160A05;
  background: var(--attack);
  border-color: #7A2A12;
}
.btn--ghost { background: transparent; }
.btn--sm { padding: 8px 14px; font-size: 13px; box-shadow: 3px 3px 0 var(--fence); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--fence);
  border-radius: 2px;
  white-space: nowrap;
}
.tag--pitch { color: #06120C; background: var(--pitch); border-color: var(--pitch-hi); }
.tag--amber { color: #1A1405; background: var(--amber); border-color: #8A6412; }
.tag--attack { color: #160A05; background: var(--attack); border-color: #8A2D10; }

/* ============ 4. 跳转链接 ============ */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  font-weight: 800;
  color: #160A05;
  background: var(--amber);
  border-radius: 2px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

#main-content { scroll-margin-top: 20px; }

/* ============ 5. 头部：品牌轨道 ============ */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--ink);
}

.rail { display: none; }

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0 10px;
  color: var(--white);
}
.rail__brand-cn {
  writing-mode: vertical-rl;
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.1;
}
.rail__brand-en {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--pitch-hi);
}

.rail__ticks {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.rail__tick {
  display: grid;
  place-items: center;
  width: 36px;
  height: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
  border: 2px solid transparent;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.rail__tick.is-on {
  color: var(--ink);
  background: var(--pitch);
  border-color: var(--pitch-hi);
  font-weight: 700;
}

.rail__top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  background: var(--ink-2);
  border: 3px solid var(--fence);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, border-color 0.12s ease;
}
.rail__top.is-visible { opacity: 1; pointer-events: auto; }
.rail__top:hover { border-color: var(--pitch-hi); color: var(--pitch-hi); }

/* ============ 6. 头部：命令栏 ============ */
.cmdbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--cmd-h);
  padding: 9px var(--gut);
  background: var(--ink);
  border-bottom: 3px solid var(--fence);
}

.cmdbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--white);
}
.cmdbar__brand::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--pitch);
  box-shadow: 0 0 0 3px rgba(31, 164, 91, 0.24);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 12px;
  color: var(--white);
  background: var(--ink-2);
  border: 2px solid var(--fence);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.12s ease;
}
.nav-toggle:hover { border-color: var(--pitch); }
.nav-toggle[aria-expanded="true"] { border-color: var(--amber); }
.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--pitch-hi);
  box-shadow: 0 -6px 0 var(--pitch-hi), 0 6px 0 var(--pitch-hi);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: var(--amber);
  box-shadow: 0 -6px 0 var(--amber), 0 6px 0 var(--amber);
}
.nav-toggle__text {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* 移动端抽屉导航 */
.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(88vw, 360px);
  padding: 22px 20px 28px;
  overflow-y: auto;
  background: var(--ink-2);
  border-left: 3px solid var(--pitch);
  box-shadow: -10px 0 0 rgba(35, 60, 46, 0.55);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.32s;
}
.site-nav[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 34px;
}

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  border: 2px solid transparent;
  border-bottom: 2px solid var(--fence);
  border-radius: 2px;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.site-nav__link:hover { color: var(--pitch-hi); border-color: var(--pitch); }
.site-nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--pitch);
  border-color: var(--pitch-hi);
  font-weight: 800;
}

.site-nav__cta { align-self: flex-start; margin-top: 6px; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 19, 16, 0.74);
}

/* 命令栏工具组 */
.cmdbar__tools { display: none; }

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--ink-2);
  border: 2px solid var(--fence);
  border-radius: 2px;
  transition: border-color 0.12s ease;
}
.field:focus-within { border-color: var(--pitch-hi); }
.field__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.field__input {
  width: 148px;
  padding: 4px 0;
  color: var(--white);
  background: transparent;
  border: 0;
  font-size: 13px;
}
.field__input::placeholder { color: #5F7268; }

.terminal {
  display: inline-flex;
  overflow: hidden;
  background: var(--ink-2);
  border: 2px solid var(--fence);
  border-radius: 2px;
}
.terminal__btn {
  padding: 7px 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mute);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.terminal__btn + .terminal__btn { border-left: 2px solid var(--fence); }
.terminal__btn:hover { color: var(--white); }
.terminal__btn.is-on {
  color: #06120C;
  background: var(--pitch);
  font-weight: 700;
}

/* ============ 7. 头部：赛程条 ============ */
.fixtures {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border-bottom: 3px solid var(--fence);
}

.fixtures__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px var(--gut);
  border-bottom: 2px solid var(--fence);
}

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

.fixtures__more {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--pitch-hi);
  border-bottom: 2px solid transparent;
}
.fixtures__more:hover { border-color: var(--pitch-hi); }

.fixtures__track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--fence) transparent;
  outline-offset: -3px;
}
.fixtures__track::-webkit-scrollbar { height: 6px; }
.fixtures__track::-webkit-scrollbar-thumb { background: var(--fence); }

.fixture {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  border-right: 2px solid var(--fence);
  transition: background 0.12s ease;
}
.fixture:hover { background: rgba(31, 164, 91, 0.1); }
.fixture__no {
  font-size: 11px;
  font-weight: 700;
  color: var(--pitch);
}
.fixture__time { font-size: 13px; color: var(--mute); }
.fixture__score {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber);
}
.fixture__state {
  padding: 2px 6px;
  font-size: 11px;
  color: var(--mute);
  border: 1px solid var(--fence);
  border-radius: 2px;
}

/* 终端预览：移动视图收窄赛程条 */
.site-header[data-terminal="mobile"] .fixtures { background: #0E1714; }
.site-header[data-terminal="mobile"] .fixtures__track {
  max-width: 380px;
  margin-inline: auto;
  border-left: 2px solid var(--fence);
  border-right: 2px solid var(--fence);
}

/* ============ 8. 阅读进度线 ============ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  background: rgba(35, 60, 46, 0.55);
  pointer-events: none;
}
.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pitch), var(--pitch-hi) 58%, var(--amber));
  transition: width 0.1s linear;
}

/* ============ 9. 页脚 ============ */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--ink-2);
  border-top: 3px solid var(--pitch);
  color: var(--white);
}

.footer__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 56px) var(--gut) 26px;
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr);
}

.footer__mark {
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.footer__mark::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 10px;
  background: var(--attack);
}
.footer__desc {
  margin-top: 14px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mute);
}
.footer__col--brand .btn { margin-top: 18px; }

.footer__title {
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--pitch-hi);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.footer__list a {
  display: inline-block;
  color: var(--white);
  border-bottom: 2px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.footer__list a:hover {
  color: var(--pitch-hi);
  border-color: var(--pitch);
}
.footer__list--plain { color: var(--mute); }

.footer__meta {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mute);
}
.footer__legal {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--mute);
}

/* ============ 10. 滚动显现 ============ */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.42s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
html.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 11. 响应式 ============ */
@media (min-width: 720px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split--rev { grid-template-columns: 5fr 7fr; }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: var(--rail-w);
    padding: 18px 0;
    background: var(--ink-2);
    border-right: 3px solid var(--fence);
  }

  .progress { left: var(--rail-w); }

  .cmdbar__brand { display: none; }
  .nav-toggle { display: none; }
  .nav-backdrop { display: none !important; }

  .cmdbar__tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
  }

  .site-nav {
    position: static;
    z-index: auto;
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
  }
  .site-nav__link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
    border: 2px solid transparent;
    border-bottom: 2px solid transparent;
  }
  .site-nav__cta {
    margin-top: 0;
    margin-left: 8px;
  }

  .footer__grid { grid-template-columns: 1.4fr 0.8fr 1fr 1fr; }
}

@media (max-width: 719px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .fixtures__label { display: none; }
  .field__input { width: 120px; }
}

/* ============ 12. 减少动效 ============ */
@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;
  }

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

  .btn:hover,
  .btn:active {
    transform: none;
  }

  .fixtures__track { scroll-behavior: auto; }
  .site-nav { transition: none; }
}
