/* ==========================================================================
   完美体育赛场 · site.css
   夜间赛场控制台 / 非对称编辑部版式 / 左侧固定导航轨道
   ========================================================================== */

:root {
  --ink-900: #071426;
  --ink-800: #0D2138;
  --ink-850: #0a1b30;
  --grid: #173B5C;
  --ice: #EAF6FF;
  --mute: #9DB3C6;
  --dim: #7c93a8;
  --cyan: #00E5C3;
  --orange: #FF6B1A;
  --ochre: #B33A2B;
  --violet: #6C4DFF;
  --soft: #C9D8E4;

  --rail-w: 236px;
  --bar-h: 64px;
  --maxw: 1280px;

  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(23, 59, 92, 0.32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 59, 92, 0.32) 1px, transparent 1px);
  background-size: 96px 96px;
  color: var(--ice);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--ice); font-weight: 800; letter-spacing: -0.01em; line-height: 1.18; }
strong { color: var(--ice); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--grid); margin: 0; }
::selection { background: var(--cyan); color: #04222a; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 900;
  padding: 12px 20px;
  background: var(--cyan);
  color: #04222a;
  font: 700 14px/1 var(--sans);
  text-decoration: none;
  border: 1px solid #04222a;
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 14px; }

/* ==========================================================================
   头部 · 左侧固定赛事导航轨道
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 320;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #08182c 0%, var(--ink-900) 58%, #050e1c 100%);
  border-right: 1px solid var(--grid);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 58%, var(--orange) 100%);
}

.header-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* 品牌区 */
.header-brand {
  padding: 26px 20px 20px;
  border-bottom: 1px solid var(--grid);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ice);
}

.brand-mark {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 64% 100%, 0 100%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--ink-900);
  clip-path: polygon(0 0, 100% 0, 100% 52%, 52% 100%, 0 100%);
}

.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.brand-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ice);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  line-height: 1;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--grid);
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--cyan); }

.nav-toggle-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ice);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 导航本体 */
.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--grid) transparent;
}
.site-nav::-webkit-scrollbar { width: 6px; }
.site-nav::-webkit-scrollbar-thumb { background: var(--grid); }

.nav-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 20px 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--dim);
  text-transform: uppercase;
}
.nav-caption::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--grid);
}

.nav-list { display: flex; flex-direction: column; }

.nav-list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 18px 11px 20px;
  border-left: 2px solid transparent;
  color: var(--mute);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-idx {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4d6f8f;
  transition: color 0.18s ease;
}

.nav-label { display: block; }

.nav-list a:hover {
  color: var(--ice);
  background: rgba(0, 229, 195, 0.055);
  border-left-color: rgba(0, 229, 195, 0.4);
}

.nav-list a[aria-current="page"] {
  color: var(--ice);
  font-weight: 700;
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(0, 229, 195, 0.16), rgba(0, 229, 195, 0) 84%);
}
.nav-list a[aria-current="page"] .nav-idx { color: var(--cyan); }

/* 轨道底部出口 */
.nav-utility {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 24px;
  border-top: 1px solid var(--grid);
}

.nav-utility-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(23, 59, 92, 0.95);
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-utility-link::after {
  content: "↗";
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
}
.nav-utility-link:hover { color: var(--ice); }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--cta {
  background: var(--orange);
  color: #0a1424;
  border-color: var(--orange);
}
.btn--cta:hover { background: #ff8340; border-color: #ff8340; }

.btn--cyan {
  background: var(--cyan);
  color: #04222a;
  border-color: var(--cyan);
}
.btn--cyan:hover { background: #4df3da; border-color: #4df3da; }

.btn--ghost {
  background: transparent;
  color: var(--ice);
  border-color: var(--grid);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-utility .btn { width: 100%; margin-top: 12px; }

/* ==========================================================================
   页脚 · 控制台状态栏
   ========================================================================== */
.site-footer {
  margin-top: clamp(48px, 8vw, 104px);
  border-top: 1px solid var(--grid);
  background: linear-gradient(180deg, #08182c 0%, #050e1c 100%);
  color: var(--mute);
}

.footer-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 40px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  padding: clamp(38px, 5vw, 60px) 0 clamp(28px, 3vw, 40px);
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ice);
}

.footer-brand-line {
  margin-top: 10px;
  max-width: 26ch;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.85;
  color: var(--mute);
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  display: inline-block;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-col a:hover { color: var(--ice); border-bottom-color: var(--cyan); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px clamp(20px, 3vw, 40px);
  padding: 24px 0;
  border-top: 1px solid var(--grid);
}

.footer-contact-line {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
  word-break: break-word;
}

.footer-key {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--ochre);
  text-transform: uppercase;
}

.footer-contact-note { color: var(--dim); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--dim);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
}
.footer-status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 195, 0.18);
}

.footer-icp { color: var(--dim); }
.footer-copy { margin-left: auto; color: var(--dim); }

/* ==========================================================================
   通用页面零件
   ========================================================================== */
.page-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 56px) clamp(18px, 3vw, 40px) 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section { padding-block: clamp(34px, 5vw, 68px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--grid);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--cyan);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.display-1 {
  font-family: var(--sans);
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ice);
}

.display-2 {
  font-family: var(--sans);
  font-size: clamp(25px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ice);
}

.lede {
  max-width: 62ch;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.9;
  color: #c6d8e7;
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: #cfe0ee;
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; font-size: 23px; }
.prose h3 { margin-top: 1.6em; font-size: 19px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose blockquote {
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--ochre);
  font-family: var(--serif);
  color: #c6d8e7;
}
.prose code {
  padding: 2px 6px;
  background: var(--ink-800);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--cyan);
}

.num {
  font-family: var(--mono);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ice);
}

.panel {
  padding: clamp(16px, 2vw, 24px);
  background: var(--ink-800);
  border: 1px solid var(--grid);
}

/* 面包屑 */
.breadcrumbs {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--dim);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a { color: var(--mute); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--grid);
}
.breadcrumbs [aria-current="page"] { color: var(--ice); }

/* 12 列网格 */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* 图片容器基础 */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0D2138 0%, #071426 58%, #0b2540 100%);
  border: 1px solid var(--grid);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 229, 195, 0.09) 0%, rgba(7, 20, 38, 0.5) 100%);
}
.media:hover img { transform: scale(1.02); }

.media--slant {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
}

.media-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--dim);
}

/* ==========================================================================
   JS 注入组件：滚动进度 + 返回顶部
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 500;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 58%, var(--orange) 100%);
  transform: scaleX(var(--scroll, 0));
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 250;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--ink-800);
  border: 1px solid var(--grid);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.2s ease;
}
.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover { border-color: var(--cyan); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 1024px) {
  .scroll-progress { left: var(--rail-w); }
}

@media (max-width: 1023px) {
  body {
    padding-left: 0;
    background-size: 72px 72px;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--grid);
    background: rgba(7, 20, 38, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .header-shell {
    flex-direction: row;
    align-items: center;
    flex: 0 0 auto;
    min-height: var(--bar-h);
  }

  .header-brand {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border-bottom: 0;
  }

  .nav-toggle { display: block; margin-right: 14px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: 0 0 auto;
    min-height: 0;
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    padding: 6px 0 20px;
    background: #08182c;
    border-top: 1px solid var(--grid);
    border-bottom: 1px solid var(--grid);
    box-shadow: 0 18px 34px rgba(3, 9, 18, 0.6);
  }

  .site-nav[data-open] { display: flex; }

  .nav-caption { margin: 16px 18px 10px; }
  .nav-list a { padding: 12px 18px; }
  .nav-utility { margin-top: 14px; padding: 16px 18px 6px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 767px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5, .span-6 { grid-column: span 6; }
  .span-7, .span-8, .span-12 { grid-column: span 6; }
}

@media (max-width: 639px) {
  body { font-size: 15.5px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-contact { grid-template-columns: 1fr; }
  .site-nav { max-height: calc(100vh - 56px); }
  .back-to-top { right: 12px; bottom: 12px; }
}

@media print {
  .site-header, .site-footer, .back-to-top, .scroll-progress, .skip-link { display: none !important; }
  body {
    padding-left: 0;
    background: #fff;
    color: #111;
  }
  a { color: #111; text-decoration: underline; }
}

@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;
  }
  .media:hover img { transform: none; }
  .scroll-progress { transition: none; }
}
