/* ==========================================================================
   完美体育 · 共享外壳样式 /assets/site.css
   夜间赛场指挥中心：墨绿底 + 细网格 + 荧光路径 + 框架式导航
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

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

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

table { border-collapse: collapse; }

/* ---------- 变量 ---------- */
:root {
  --bg: #061512;
  --bg-deep: #0B241D;
  --card: #12382C;
  --line: #1B4A3A;

  --white: #F2FFF5;
  --muted: #A9C6B8;
  --lime: #C6FF3D;
  --orange: #FF9F43;
  --violet: #9B6BFF;
  --teal: #2AE6B0;

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

  --rail-w: 92px;
  --dock-h: 56px;
  --topbar-h: 60px;

  --radius-card: clamp(20px, 2.2vw, 28px);
  --radius-pill: 999px;
  --radius-sm: 14px;

  --gutter: clamp(32px, 6vw, 96px);
  --maxw: 1240px;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-bottom: var(--dock-h);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(27, 74, 58, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 74, 58, 0.34) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--white);
}

h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 50px); }
h3 { font-size: clamp(20px, 2vw, 28px); }

p { max-width: 68ch; }

::selection {
  background: var(--lime);
  color: #061512;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- 通用布局 ---------- */
.container {
  width: min(var(--maxw), calc(100% - var(--gutter)));
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 8vw, 104px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.grid--12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line), transparent 85%);
}

/* ---------- 通用文字零件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.16);
  flex: none;
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 胶囊按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.btn--primary {
  background: var(--lime);
  color: #061512;
}

.btn--primary:hover {
  background: #d8ff6d;
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(18, 56, 44, 0.5);
  border-color: rgba(169, 198, 184, 0.32);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: rgba(198, 255, 61, 0.6);
  color: var(--lime);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- 标签 / 胶囊 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(18, 56, 44, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--live {
  background: var(--orange);
  border-color: var(--orange);
  color: #061512;
  font-weight: 700;
}

.tag--soon {
  border-color: rgba(255, 159, 67, 0.45);
  color: var(--orange);
}

.tag--metric {
  border-color: rgba(155, 107, 255, 0.45);
  color: var(--violet);
}

/* ---------- 档案卡 ---------- */
.card {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(160deg, rgba(18, 56, 44, 0.92), rgba(11, 36, 29, 0.94));
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumb a:hover { color: var(--lime); }

.breadcrumb__item[aria-current="page"] { color: var(--white); }

.breadcrumb__sep { color: rgba(169, 198, 184, 0.45); }

/* ---------- 图片容器基础 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(42, 230, 176, 0.16), transparent 60%),
    linear-gradient(160deg, #12382C, #0B241D 72%);
}

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.92) brightness(0.82);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 255, 245, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 255, 245, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: #061512;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.22s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ==========================================================================
   头部：框架式导航
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 60;
}

.frame-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: var(--rail-w);
  padding: 20px 12px 18px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(80% 40% at 0% 0%, rgba(42, 230, 176, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(11, 36, 29, 0.97), rgba(6, 21, 18, 0.98));
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled .frame-rail {
  box-shadow: 0 0 0 1px rgba(198, 255, 61, 0.08), 10px 0 34px rgba(0, 0, 0, 0.5);
}

/* 品牌 */
.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rail-brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 12px;
  background: conic-gradient(from 140deg, var(--lime), var(--teal), var(--violet), var(--lime));
  box-shadow: inset 0 0 0 1px rgba(242, 255, 245, 0.18);
}

.rail-brand__mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 6px;
  background: var(--bg);
}

.rail-brand__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.1;
  color: var(--white);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.rail-brand__tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(18, 56, 44, 0.7);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* 导航本体 */
.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.site-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 2px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(169, 198, 184, 0.55);
}

.site-nav__label { white-space: nowrap; }

.site-nav__link:hover {
  color: var(--white);
  background: rgba(198, 255, 61, 0.07);
  border-color: rgba(198, 255, 61, 0.22);
}

.site-nav__link[aria-current="page"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #061512;
  font-weight: 700;
}

.site-nav__link[aria-current="page"] .site-nav__idx { color: rgba(6, 21, 18, 0.62); }

/* 竖排主入口 */
.rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  margin-top: auto;
  padding: 16px 0;
  border: 1px solid var(--lime);
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: #061512;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3em;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: upright;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.rail-cta:hover {
  background: #d8ff6d;
  box-shadow: 0 0 22px rgba(198, 255, 61, 0.35);
}

/* 底部常驻快捷条 */
.dock {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--dock-h);
  padding: 0 clamp(12px, 2vw, 20px);
  border-top: 1px solid var(--line);
  background: rgba(11, 36, 29, 0.93);
  backdrop-filter: blur(10px);
  overflow-x: auto;
  scrollbar-width: none;
}

.dock::-webkit-scrollbar { display: none; }

.dock__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(169, 198, 184, 0.7);
}

.dock__link {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(18, 56, 44, 0.62);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dock__link:hover {
  border-color: rgba(198, 255, 61, 0.55);
  color: var(--lime);
}

.dock__link--accent {
  background: var(--lime);
  border-color: var(--lime);
  color: #061512;
}

.dock__link--accent:hover {
  background: #d8ff6d;
  color: #061512;
}

/* 阅读进度 */
.scroll-progress {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  bottom: calc(var(--dock-h) - 2px);
  z-index: 80;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--lime) 62%, var(--orange));
  pointer-events: none;
}

body.nav-open { overflow: hidden; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  margin-top: clamp(56px, 8vw, 120px);
  padding: clamp(44px, 6vw, 76px) 0 clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(155, 107, 255, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(11, 36, 29, 0.6), var(--bg-deep));
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(280px, 1.5fr) minmax(240px, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand__mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: conic-gradient(from 140deg, var(--lime), var(--teal), var(--violet), var(--lime));
  box-shadow: inset 0 0 0 1px rgba(242, 255, 245, 0.18);
}

.footer-brand__mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 5px;
  background: var(--bg-deep);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: var(--white);
}

.footer-brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

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

.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-list li + li { margin-top: 10px; }

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-list a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-contact__key {
  flex: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(169, 198, 184, 0.75);
}

.footer-contact__val {
  color: var(--white);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-copy,
.footer-icp {
  margin: 0;
  max-width: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--lime); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1023px) {
  :root {
    --rail-w: 0px;
    --dock-h: 52px;
  }

  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  .frame-rail {
    inset: 0 0 auto 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: var(--topbar-h);
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
    padding: 0 14px 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .rail-brand__mark {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }

  .rail-brand__mark::after {
    inset: 6px;
    border-radius: 4px;
  }

  .rail-brand__name {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .rail-brand__tag { display: none; }

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

  .site-nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 55;
    display: block;
    width: 100%;
    max-height: calc(100vh - var(--topbar-h) - var(--dock-h));
    padding: 10px 16px 20px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 21, 18, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list { gap: 2px; }

  .site-nav__link {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  .site-nav__idx { font-size: 11px; }

  .rail-cta { display: none; }

  .dock { left: 0; }

  .scroll-progress {
    left: 0;
    bottom: calc(var(--dock-h) - 2px);
  }
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --gutter: 32px; }

  .footer-links { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .dock__label { display: none; }
}

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