/* =========================================================
   site.css — 共享外壳（框架轨道导航 + 赛程卷轴页脚）
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

:root {
  /* 色彩 */
  --ink-900: #071A14;
  --ink-800: #0C2A20;
  --ink-700: #12382B;
  --paper:   #F2E9D8;
  --paper-2: #D8CFBE;
  --cyan:    #34E3D0;
  --cyan-2:  #168C82;
  --orange:  #FF7A2E;
  --red:     #E2483D;
  --yellow:  #F3C63A;
  --mist:    #B7C6BE;

  --line-soft:  rgba(52, 227, 208, 0.16);
  --line-mid:   rgba(52, 227, 208, 0.32);
  --line-mist:  rgba(183, 198, 190, 0.16);
  --line-paper: rgba(27, 42, 34, 0.16);

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-score: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 布局 */
  --rail: 88px;
  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --radius: 2px;
}

body {
  margin: 0;
  padding-inline-start: var(--rail);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(110% 70% at 88% -6%, rgba(18, 56, 43, 0.85) 0%, rgba(7, 26, 20, 0) 60%),
    radial-gradient(80% 60% at 4% 104%, rgba(22, 140, 130, 0.14) 0%, rgba(7, 26, 20, 0) 62%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--paper);
}
h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(23px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.1vw, 22px); }
h4 { font-size: 17px; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
}
.lede {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--mist);
  max-width: 60ch;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.86em;
  letter-spacing: 0.01em;
}
.score {
  font-family: var(--font-score);
  font-weight: 800;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 0.92;
  display: inline-block;
}

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}
.paper :focus-visible { outline-color: var(--cyan-2); }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 18px;
  background: var(--cyan);
  color: #04201A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* =========================================================
   头部：框架轨道
   ========================================================= */
.site-rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 80;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background-color: var(--ink-900);
  background-image: linear-gradient(180deg, #0C2A20 0%, #081F18 48%, #061711 100%);
  border-inline-end: 1px solid var(--line-soft);
  color: var(--paper);
  --sp: 0;
}
/* 右缘刻度纹理 */
.site-rail::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 1px;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(52, 227, 208, 0.55) 0 2px,
    rgba(52, 227, 208, 0) 2px 14px
  );
  opacity: 0.55;
  pointer-events: none;
}
/* 阅读进度读秒条 */
.site-rail::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 5px;
  width: 3px;
  height: calc(var(--sp) * 100%);
  border-radius: 2px;
  background-image: linear-gradient(180deg, var(--cyan) 0%, var(--orange) 100%);
  box-shadow: 0 0 10px rgba(52, 227, 208, 0.45);
  pointer-events: none;
}

.rail-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
  padding: 20px 6px 16px;
}

/* 品牌 */
.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-block: 4px 6px;
  text-align: center;
}
.brand-mark__glyph {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--paper);
}
.brand-mark__glyph::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 7px auto 0;
  background-image: linear-gradient(90deg, var(--cyan), var(--orange));
}
.brand-mark__sub {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan-2);
  white-space: nowrap;
}
.brand-mark:hover .brand-mark__glyph,
.brand-mark:focus-visible .brand-mark__glyph { color: var(--cyan); }

/* 菜单按钮（桌面隐藏） */
.rail-toggle { display: none; }
.rail-toggle__bars {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -5px 0 var(--cyan), 0 5px 0 var(--cyan);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.rail-toggle__text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.site-rail[data-open] .rail-toggle { color: var(--orange); border-color: var(--orange); }
.site-rail[data-open] .rail-toggle__bars {
  background: var(--orange);
  box-shadow: 0 -4px 0 var(--orange), 0 4px 0 var(--orange);
}

/* 导航 */
.rail-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-700) transparent;
}
.rail-nav__list { display: flex; flex-direction: column; gap: 3px; }
.rail-nav__link {
  display: block;
  padding: 9px 4px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-align: center;
  text-wrap: balance;
  color: var(--mist);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.rail-nav__link:hover { color: var(--paper); background: var(--ink-700); }
.rail-nav__link:focus-visible { outline-offset: -2px; }
.rail-nav__link[aria-current="page"] {
  background: var(--cyan);
  color: #04201A;
  font-weight: 700;
}
.rail-nav__link[aria-current="page"]:hover { background: var(--cyan); color: #04201A; }

/* 轨道底部 CTA */
.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid var(--line-mist);
}
.rail-foot .btn--rail {
  width: 100%;
  padding: 10px 4px;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
}
.rail-foot__alt {
  display: block;
  padding: 7px 2px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.rail-foot__alt:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(52, 227, 208, 0.07);
}
.rail-foot__mark {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--cyan-2);
  padding-top: 4px;
}

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #221004;
}
.btn--primary:hover { background: #FF9257; border-color: #FF9257; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-mid);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(52, 227, 208, 0.08);
}
.btn--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: #14251D;
}
.btn--paper:hover { background: var(--paper-2); border-color: var(--paper-2); }
.btn--sm { padding: 9px 16px; font-size: 12.5px; letter-spacing: 0.05em; }

/* =========================================================
   容器 / 标题区 / 面包屑
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-main { display: block; min-height: 40vh; }
.stack > * + * { margin-top: var(--stack-gap, 20px); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-block: 22px 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumbs a { color: var(--mist); transition: color 0.18s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__sep { color: var(--cyan-2); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

.page-head {
  padding-block: clamp(28px, 4vw, 52px) clamp(22px, 3vw, 40px);
  border-bottom: 1px solid var(--line-soft);
}
.page-head__eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan-2);
}
.page-head__title { margin-bottom: 14px; }
.page-head__lede { max-width: 62ch; color: var(--mist); font-size: 16.5px; line-height: 1.8; }

/* =========================================================
   通用块：面板 / 纸面 / 徽标
   ========================================================= */
.panel {
  position: relative;
  background: var(--ink-800);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
  box-shadow: 0 12px 32px -26px rgba(0, 0, 0, 0.9);
}
.panel--flat { background: var(--ink-700); }
.panel--edge::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 2px;
  background: var(--orange);
  border-start-start-radius: var(--radius);
  border-end-start-radius: var(--radius);
}

.paper {
  background: var(--paper);
  color: #1B2A22;
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 46px);
  box-shadow: 0 20px 50px -34px rgba(0, 0, 0, 0.85);
}
.paper h2, .paper h3, .paper h4 { color: #10241C; }
.paper .paper__title { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 16px; }
.paper .paper__text {
  font-size: 17px;
  line-height: 1.85;
  color: #2A3B32;
}
.paper .paper__text + .paper__text { margin-top: 14px; }
.paper a { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 3px; }
.paper a:hover { color: #0F6C64; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.chip--cyan   { color: var(--cyan); }
.chip--orange { color: var(--orange); }
.chip--red    { color: var(--red); }
.chip--yellow { color: var(--yellow); }
.chip--mist   { color: var(--mist); }
.chip--solid-cyan { background: var(--cyan); border-color: var(--cyan); color: #04201A; }

/* =========================================================
   图片容器基础（供页面阶段使用）
   ========================================================= */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ink-700);
  background-image:
    repeating-linear-gradient(90deg, rgba(52, 227, 208, 0.07) 0 1px, transparent 1px 26px),
    linear-gradient(150deg, rgba(52, 227, 208, 0.12), rgba(255, 122, 46, 0.08));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(155deg, rgba(52, 227, 208, 0.12) 0%, rgba(7, 26, 20, 0) 44%, rgba(255, 122, 46, 0.1) 100%);
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--3x2  { aspect-ratio: 3 / 2; }
.media-frame--4x5  { aspect-ratio: 4 / 5; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }
.media-frame--shear { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%); }

/* =========================================================
   页脚：赛程卷轴底栏
   ========================================================= */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 7vw, 110px);
  padding: clamp(40px, 5.5vw, 78px) var(--gutter) 0;
  color: var(--mist);
  border-top: 1px solid var(--line-mid);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(120% 90% at 10% 0%, rgba(18, 56, 43, 0.92) 0%, rgba(7, 26, 20, 1) 64%),
    linear-gradient(180deg, rgba(12, 42, 32, 0.6) 0%, rgba(7, 26, 20, 1) 100%);
}
.site-foot::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, rgba(52, 227, 208, 0.5) 0 1px, rgba(52, 227, 208, 0) 1px 22px);
  opacity: 0.5;
  pointer-events: none;
}

.site-foot__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.55fr);
  gap: clamp(28px, 3.2vw, 54px);
  padding-bottom: clamp(32px, 4vw, 54px);
}

.site-foot__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.site-foot__tagline {
  margin-top: 9px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.site-foot__chip { margin-top: 16px; }

.site-foot__head {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.site-foot__list { display: grid; gap: 9px; }
.site-foot__list a {
  font-size: 14px;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}
.site-foot__list a:hover { color: var(--cyan); }

.site-foot__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 9px;
  word-break: break-word;
}
.site-foot__k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan-2);
  padding-top: 3px;
}
.site-foot__note {
  margin-top: 15px;
  max-width: 46ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(183, 198, 190, 0.78);
}

.site-foot__base {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--line-mist);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(183, 198, 190, 0.72);
}
.site-foot__scope { color: var(--cyan-2); }

/* =========================================================
   显现（reduced-motion 下直接可见）
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .site-foot__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .site-foot__contact { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  body { padding-inline-start: 0; padding-block-start: 66px; }

  .site-rail {
    inset: 0 0 auto 0;
    width: auto;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line-mid);
    background-image: linear-gradient(180deg, #0C2A20 0%, #071A14 100%);
  }
  .site-rail::before { content: none; }
  .site-rail::after {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    width: calc(var(--sp) * 100%);
    height: 2px;
    border-radius: 0;
  }

  .rail-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    height: auto;
    padding: 10px var(--gutter);
    min-height: 64px;
  }

  .brand-mark {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    margin-inline-end: auto;
    padding-block: 0;
    text-align: start;
  }
  .brand-mark__glyph { font-size: 16px; }
  .brand-mark__glyph::after { display: none; }
  .brand-mark__sub { display: none; }

  .rail-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid var(--line-mid);
    border-radius: var(--radius);
    background: rgba(18, 56, 43, 0.85);
    color: var(--paper);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  }

  .rail-nav {
    order: 3;
    flex: 1 0 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.32s var(--ease), opacity 0.22s var(--ease), visibility 0.32s;
  }
  .site-rail[data-open] .rail-nav {
    max-height: 62vh;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }
  .rail-nav__list { gap: 2px; padding-block: 6px 4px; }
  .rail-nav__link {
    padding: 12px 12px;
    font-size: 14px;
    text-align: start;
    letter-spacing: 0.04em;
  }

  .rail-foot {
    order: 4;
    flex: 1 0 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    margin-top: 0;
    padding: 0 0 12px;
    border-top: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.3s var(--ease), opacity 0.22s var(--ease), visibility 0.3s;
  }
  .site-rail[data-open] .rail-foot {
    max-height: 140px;
    visibility: visible;
    opacity: 1;
  }
  .rail-foot .btn--rail {
    flex: 1 1 0;
    width: auto;
    padding: 12px 10px;
    font-size: 12.5px;
  }
  .rail-foot__alt {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    font-size: 12.5px;
  }
  .rail-foot__mark { display: none; }

  .breadcrumbs { padding-block: 18px 2px; }
}

@media (max-width: 720px) {
  .site-foot__inner { grid-template-columns: minmax(0, 1fr); }
  .site-foot__contact { grid-column: auto; }
  .site-foot__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   减少动效
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
