/* ============================================================
   爱体育赛场 · 全站共享样式 /assets/site.css
   01 reset  02 tokens  03 base  04 utilities  05 skip link
   06 header  07 footer  08 reveal  09 responsive
   ============================================================ */

/* ---------- 01 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 { margin: 0; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* ---------- 02 tokens ---------- */
:root {
  --ink: #040914;
  --night: #071224;
  --panel: #0D1B33;
  --league: #153A8A;
  --cyan: #22E6FF;
  --cyan-soft: #9BF6FF;
  --red: #FF4D5E;
  --gold: #FFC857;
  --paper: #EAF3FF;
  --muted: #8CA3C4;

  --line: rgba(155, 246, 255, 0.16);
  --line-soft: rgba(155, 246, 255, 0.09);

  --font-display: "Oswald", "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: 112px;
  --shell: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* ---------- 03 base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(34, 230, 255, 0.10), transparent 62%),
    radial-gradient(900px 560px at 4% 106%, rgba(21, 58, 138, 0.42), transparent 68%),
    repeating-linear-gradient(0deg, rgba(155, 246, 255, 0.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(155, 246, 255, 0.045) 0 1px, transparent 1px 72px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

h1 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.3; }

strong { color: #FFFFFF; font-weight: 700; }

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

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

#main-content:focus { outline: none; }

/* ---------- 04 utilities ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

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

.prose { max-width: 68ch; }
.prose p { margin-block: 0 1.1em; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 230, 255, 0.7);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 200, 87, 0.85);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 27, 51, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.chip:hover { color: var(--cyan-soft); border-color: var(--cyan-soft); }

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

.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(34, 230, 255, 0.55), rgba(155, 246, 255, 0.04));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
}

.panel--glass {
  background: rgba(13, 27, 51, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: #040914;
  box-shadow: 0 0 0 1px rgba(34, 230, 255, 0.45), 0 10px 26px rgba(34, 230, 255, 0.18);
}

.btn--primary:hover {
  background: var(--cyan-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(13, 27, 51, 0.55);
  border-color: rgba(155, 246, 255, 0.42);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 230, 255, 0.08);
}

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

.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.breadcrumb__link { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumb__link:hover { color: var(--cyan); }
.breadcrumb__sep { color: rgba(140, 163, 196, 0.5); }
.breadcrumb__current { color: var(--cyan-soft); }

/* 图片容器基础规则：页面阶段把所有图片放进 .media-frame */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, #0D1B33 0%, #071224 55%, #040914 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(155, 246, 255, 0.08) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(155, 246, 255, 0.08) 0 1px, transparent 1px 44px);
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(34, 230, 255, 0));
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 16 / 7; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 05 skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 06 header ---------- */
.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 80;
}

.mobile-bar { display: none; }

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 22px 10px 18px;
  background: linear-gradient(180deg, #071224 0%, #040914 62%, #040914 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { width: 0; height: 0; }

.rail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(34, 230, 255, 0));
}

/* 品牌锁片 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cyan);
  background: rgba(34, 230, 255, 0.12);
  transform: rotate(45deg);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--cyan);
}

.brand__pulse {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(34, 230, 255, 0.5);
  animation: railPulse 3.6s var(--ease) infinite;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__cn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--paper);
  white-space: nowrap;
}

.brand__en {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

/* 刷新状态 */
.rail__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  max-width: 86px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
  color: var(--cyan-soft);
}

.rail__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: railPulse 2.6s var(--ease) infinite;
  flex: 0 0 auto;
}

@keyframes railPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 230, 255, 0.55); opacity: 1; }
  70%  { box-shadow: 0 0 0 8px rgba(34, 230, 255, 0); opacity: 0.7; }
  100% { box-shadow: 0 0 0 0 rgba(34, 230, 255, 0); opacity: 1; }
}

/* 侧轨导航 */
.rail__nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 4px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.nav-list__item { display: flex; justify-content: center; width: 100%; }

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  color: var(--muted);
  transition: color 0.24s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 230, 255, 0.85);
  opacity: 0;
  transform: scaleY(0.25);
  transform-origin: top center;
  transition: opacity 0.24s var(--ease), transform 0.32s var(--ease);
}

.nav-link:hover { color: var(--cyan-soft); }
.nav-link:hover::before { opacity: 0.55; transform: scaleY(1); }

.nav-link[aria-current="page"] { color: #FFFFFF; }
.nav-link[aria-current="page"]::before { opacity: 1; transform: scaleY(1); }
.nav-link[aria-current="page"] .nav-link__idx { color: var(--cyan); }

.nav-link__idx {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(140, 163, 196, 0.65);
  transition: color 0.24s var(--ease);
}

.nav-link__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  line-height: 1.15;
}

/* 导轨 CTA */
.rail__cta {
  margin-top: auto;
  width: 100%;
  padding: 12px 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
}

/* 滚动刻度 */
.rail__meter {
  position: fixed;
  top: 0;
  left: calc(var(--rail-w) - 2px);
  width: 2px;
  height: 100vh;
  background: rgba(155, 246, 255, 0.10);
  pointer-events: none;
  z-index: 81;
}

.rail__meter-fill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--cyan), var(--league));
  box-shadow: 0 0 12px rgba(34, 230, 255, 0.6);
  transition: height 0.12s linear;
}

/* 移动端触发按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 27, 51, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--paper);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  background: linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: top 0.26s var(--ease), transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8.5px; }

.site-header[data-open="true"] .nav-toggle__bars { background-image: none; }
.site-header[data-open="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

/* ---------- 07 footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #040914 0%, #071224 46%, #040914 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.7;
}

.footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px) 26px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(26px, 4vw, 46px);
  border-bottom: 1px solid var(--line-soft);
}

.footer__brandline {
  margin-top: 14px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2vw, 1.6rem);
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

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

.footer__col { min-width: 0; }

.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__link:hover { color: var(--cyan-soft); transform: translateX(3px); }

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(140, 163, 196, 0.8);
}

.footer__contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--cyan-soft);
  overflow-wrap: anywhere;
}

.footer__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.72;
  color: var(--muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer__legal,
.footer__icp,
.footer__meta { margin: 0; }

.footer__icp { color: rgba(155, 246, 255, 0.55); }

/* ---------- 08 reveal ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

/* ---------- 09 responsive ---------- */
@media (max-width: 1099px) {
  :root { --rail-w: 100px; }
  .nav-link__label { font-size: 12px; letter-spacing: 0.12em; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  :root { --rail-w: 0px; }

  body {
    padding-left: 0;
    background-attachment: scroll;
    font-size: 16px;
  }

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

  .site-header {
    position: sticky;
    top: 0;
    bottom: auto;
    left: auto;
    width: 100%;
    z-index: 90;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(4, 9, 20, 0.94);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .brand--compact {
    flex-direction: row;
    align-items: center;
    gap: 11px;
    text-align: left;
  }

  .brand--compact .brand__mark { width: 16px; height: 16px; }
  .brand--compact .brand__mark::after { inset: 4px; }
  .brand--compact .brand__cn { font-size: 15px; letter-spacing: 0.04em; }
  .brand--compact .brand__en { font-size: 8px; letter-spacing: 0.14em; }

  .rail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 340px);
    height: 100vh;
    align-items: stretch;
    gap: 16px;
    padding: 22px 20px 28px;
    background: linear-gradient(180deg, #071224 0%, #040914 72%);
    border-right: 0;
    border-left: 1px solid var(--line);
    box-shadow: -34px 0 70px rgba(0, 0, 0, 0.62);
    transform: translateX(102%);
    transition: transform 0.34s var(--ease);
    z-index: 95;
  }

  .site-header[data-open="true"] .rail { transform: translateX(0); }

  .rail::before { display: none; }

  .rail .brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding-bottom: 4px;
  }

  .rail .brand__cn { font-size: 15px; }
  .rail .brand__en { font-size: 8px; }

  .rail__status {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    max-width: none;
    text-align: left;
  }

  .rail__nav {
    align-items: stretch;
    order: 3;
    padding-block: 0;
  }

  .nav-list { align-items: stretch; gap: 0; }

  .nav-list__item { justify-content: flex-start; }

  .nav-link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 12px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link::before {
    left: 0;
    top: 9px;
    bottom: 9px;
    transform: scaleY(0.2);
  }

  .nav-link__idx { font-size: 10px; }

  .nav-link__label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 16px;
    letter-spacing: 0.06em;
  }

  .rail__cta {
    order: 2;
    margin-top: 0;
    width: 100%;
    padding: 13px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .rail__meter { display: none; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .grid--split,
  .grid--halves { grid-template-columns: minmax(0, 1fr); }
  .breadcrumb { padding-block: 14px; }
}

@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;
  }

  .has-js [data-reveal] { opacity: 1; transform: none; }
  .rail__meter-fill { transition: none; }
}
