/* =========================================================
   完美体育赛场 · 共享样式 /assets/site.css
   框架式导航 + 赛场控制台配色 + 复古出版刻度
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

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

:root {
  /* 调色板 */
  --ink-blue: #0A1633;
  --stand-blue: #12234F;
  --cream: #F3EBDD;
  --ink-black: #1B1714;
  --neon-orange: #FF5A1F;
  --electric-cyan: #2FE0D0;
  --energy-yellow: #FFD23F;
  --haze-blue: #8FA3C8;
  --press-red: #C8321E;
  --glass-white: #E8EEF9;

  /* 框架尺寸 */
  --rail-w: 104px;
  --bar-h: 64px;
  --shell: 1280px;
  --gutter: 32px;

  /* 字体 */
  --font-display: "Noto Sans SC", "Alibaba PuHuiTi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --line: rgba(143, 163, 200, .22);
}

body {
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: var(--bar-h);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--glass-white);
  background-color: var(--ink-blue);
  background-image:
    linear-gradient(rgba(143, 163, 200, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 200, .065) 1px, transparent 1px),
    radial-gradient(120% 80% at 88% -6%, rgba(47, 224, 208, .16), transparent 58%),
    radial-gradient(100% 70% at 4% 104%, rgba(255, 90, 31, .14), transparent 60%);
  background-size: 52px 52px, 52px 52px, auto, auto;
  background-attachment: fixed;
}

/* ---------- 基础排版 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .62em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--cream);
}

h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }

a { color: var(--electric-cyan); }

strong { color: var(--cream); font-weight: 800; }

img { max-width: 100%; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--energy-yellow);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 通用容器与工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--electric-cyan);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--energy-yellow);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--neon-orange);
}

.note-vertical {
  display: inline-block;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--press-red);
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--haze-blue);
  background: rgba(232, 238, 249, .05);
}

.tag--live {
  color: var(--ink-blue);
  background: var(--energy-yellow);
  border-color: var(--energy-yellow);
  font-weight: 700;
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--haze-blue);
  background: rgba(232, 238, 249, .04);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.chip:hover, .chip:focus-visible {
  color: var(--cream);
  border-color: var(--electric-cyan);
  background: rgba(47, 224, 208, .1);
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn--primary {
  background: var(--neon-orange);
  color: #150A05;
  box-shadow: 0 0 0 rgba(255, 90, 31, 0);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #FF7A45;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 90, 31, .32);
}

.btn--ghost {
  background: rgba(232, 238, 249, .06);
  border-color: rgba(232, 238, 249, .26);
  color: var(--glass-white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--electric-cyan);
  border-color: var(--electric-cyan);
  background: rgba(47, 224, 208, .1);
}

.btn--sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* ---------- 玻璃背板 / 奶油纸层 / 斜切 ---------- */
.panel {
  background: rgba(18, 35, 79, .68);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
}

.panel--paper {
  background: var(--cream);
  color: var(--ink-black);
  border-color: rgba(27, 23, 20, .14);
  background-image: radial-gradient(rgba(27, 23, 20, .05) 1px, transparent 1px);
  background-size: 4px 4px;
}

.panel--paper h1,
.panel--paper h2,
.panel--paper h3 {
  color: var(--ink-black);
}

.cut-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

/* ---------- 响应式图片容器基座 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 78% 12%, rgba(47, 224, 208, .22), transparent 62%),
    linear-gradient(135deg, var(--stand-blue), #060E24 82%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.media-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(160deg, rgba(47, 224, 208, .18), transparent 55%),
    repeating-linear-gradient(0deg, rgba(232, 238, 249, .055) 0 1px, transparent 1px 4px);
}

/* ---------- 显现动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

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

/* =========================================================
   头部：左侧导航轨道 + 顶部刻度栏 + 进度条
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-180%);
  padding: 12px 18px;
  background: var(--energy-yellow);
  color: var(--ink-black);
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
  transition: transform .2s var(--ease);
}

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

/* 左侧轨道 */
.header-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 4;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 18px;
  background: linear-gradient(180deg, rgba(10, 22, 51, .97), rgba(16, 32, 72, .94));
  border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow-y: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--cream);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  color: #150A05;
  background: var(--neon-orange);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand__word {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--cream);
}

/* 轨道导航 */
.rail-nav {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.rail-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-nav__item {
  margin: 0;
}

.rail-nav__link {
  position: relative;
  display: block;
  padding: 11px 4px 11px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  color: var(--haze-blue);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}

.rail-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--energy-yellow);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .22s var(--ease);
}

.rail-nav__link:hover,
.rail-nav__link:focus-visible {
  color: var(--cream);
  background: rgba(232, 238, 249, .08);
}

.rail-nav__link[aria-current="page"] {
  color: var(--ink-blue);
  background: var(--electric-cyan);
}

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

.rail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

.rail-actions .btn {
  padding: 9px 4px;
  font-size: 12px;
  letter-spacing: .02em;
}

/* 顶部刻度栏 */
.header-bar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 3;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  background: rgba(9, 19, 44, .84);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.bar-brand {
  display: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--cream);
  text-decoration: none;
}

.bar-tagline {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--haze-blue);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 238, 249, .05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--haze-blue);
}

.bar-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric-cyan);
  box-shadow: 0 0 10px rgba(47, 224, 208, .9);
  animation: pill-pulse 2.4s ease-in-out infinite;
}

@keyframes pill-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 238, 249, .06);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--electric-cyan);
  background: rgba(47, 224, 208, .12);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background .2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .24s var(--ease), top .24s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.header-progress {
  position: fixed;
  top: calc(var(--bar-h) - 3px);
  left: var(--rail-w);
  right: 0;
  z-index: 5;
  height: 3px;
  background: rgba(143, 163, 200, .18);
  pointer-events: none;
}

.header-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--electric-cyan), var(--energy-yellow) 58%, var(--neon-orange));
  transition: width .12s linear;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 88px;
  padding-top: 4px;
  color: var(--haze-blue);
  background: linear-gradient(180deg, rgba(18, 35, 79, .5), rgba(7, 16, 39, .96) 36%, #050C1F 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(--neon-orange), var(--energy-yellow) 42%, var(--electric-cyan) 76%, transparent);
  opacity: .85;
}

.footer-frame {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 56px var(--gutter) 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr);
  gap: 44px 44px;
  align-items: start;
}

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

.footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--energy-yellow);
}

.footer-kicker__mark {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--neon-orange);
}

.footer-title {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--cream);
}

.footer-summary {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--haze-blue);
}

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--electric-cyan);
}

.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  font-size: 15px;
  color: var(--glass-white);
  text-decoration: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--energy-yellow);
  transform: translateX(4px);
}

.footer-contact {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 28px var(--gutter) 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px 36px;
  border-top: 1px dashed rgba(143, 163, 200, .22);
}

.footer-contact__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--haze-blue);
}

.footer-contact__val {
  font-size: 14px;
  line-height: 1.6;
  color: var(--glass-white);
  overflow-wrap: anywhere;
}

.footer-base {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 22px var(--gutter) 40px;
  border-top: 1px solid rgba(143, 163, 200, .18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--haze-blue);
}

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-link--legal {
  font-size: 13px;
  color: var(--haze-blue);
}

.footer-link--legal:hover,
.footer-link--legal:focus-visible {
  color: var(--electric-cyan);
  transform: none;
}

.to-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--energy-yellow);
  color: var(--ink-black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--electric-cyan);
  transform: translateY(-2px);
}

.to-top__arrow {
  font-size: 14px;
  line-height: 1;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  :root { --rail-w: 92px; }
  .rail-nav__link { font-size: 12px; padding-left: 8px; }
  .bar-pill { display: none; }
}

@media (max-width: 900px) {
  :root {
    --rail-w: 0px;
    --bar-h: 58px;
    --gutter: 20px;
  }

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

  /* 轨道变抽屉 */
  .header-rail {
    width: min(80vw, 320px);
    padding: 22px 20px 26px;
    align-items: stretch;
    border-right: 1px solid var(--line);
    box-shadow: 30px 0 70px rgba(2, 6, 20, .62);
    transform: translateX(-104%);
    transition: transform .34s var(--ease);
    z-index: 6;
  }

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

  .brand {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 8px;
  }

  .brand__word {
    writing-mode: horizontal-tb;
    font-size: 17px;
    letter-spacing: .04em;
  }

  .rail-nav {
    flex: 0 0 auto;
    margin-top: 20px;
  }

  .rail-nav__list { gap: 0; }

  .rail-nav__link {
    padding: 14px 12px;
    text-align: left;
    font-size: 15px;
    letter-spacing: .04em;
    border-bottom: 1px solid rgba(143, 163, 200, .14);
    border-radius: 0;
  }

  .rail-nav__link::before {
    top: 0;
    bottom: 0;
    transform-origin: left center;
  }

  .rail-actions {
    margin-top: 22px;
  }

  .rail-actions .btn {
    padding: 12px 10px;
    font-size: 14px;
  }

  /* 顶部栏 */
  .header-bar {
    padding: 0 16px;
    gap: 12px;
  }

  .bar-brand { display: inline-block; }
  .bar-tagline,
  .bar-actions { display: none; }

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

  .header-progress { background: rgba(143, 163, 200, .22); }

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

  /* 页脚 */
  .site-footer { margin-top: 64px; }

  .footer-frame {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px var(--gutter) 34px;
  }

  .footer-col__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 22px;
  }

  .footer-contact { padding-top: 24px; padding-bottom: 26px; }

  .footer-base { padding-bottom: 34px; }

  .to-top { margin-left: 0; }
}

@media (max-width: 520px) {
  .footer-legal { gap: 14px; }
  .footer-contact { grid-template-columns: 1fr; }
}

/* =========================================================
   降级与可访问性
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .bar-pill__dot { box-shadow: none; }
}
