/* ==========================================================================
   6米乐赛事 · 共享站点样式 /assets/site.css
   夜间球场指挥中心：墨绿骨架、青柠入口、橙色状态、银灰切割线
   ========================================================================== */

:root {
  --ink: #0B1512;
  --ink-2: #10201B;
  --ink-3: #1B2E27;
  --lime: #C8FF3D;
  --orange: #FF7A2F;
  --silver: #9AA8A2;
  --snow: #E9F3EE;
  --sage: #5F7A70;
  --cyan: #2FE0C0;

  --font-display: "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --rail: 208px;
  --maxw: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --line: rgba(154, 168, 162, 0.22);
  --line-strong: rgba(154, 168, 162, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 82% -10%, rgba(47, 224, 192, 0.06), transparent 70%),
    radial-gradient(900px 520px at 6% 12%, rgba(200, 255, 61, 0.045), transparent 68%);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1.1em; max-width: 34em; }
p:last-child { margin-bottom: 0; }

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

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

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

table { border-collapse: collapse; width: 100%; }

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

/* ---------- 工具类 ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -72px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- 容器与布局 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.layout-rail {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  align-items: start;
}

.section { padding-block: clamp(40px, 6vw, 80px); }
.section--tight { padding-block: clamp(24px, 3.5vw, 48px); }

.prose { max-width: 62ch; }
.prose p { max-width: 34em; }

/* ---------- 索引标签 / 色带 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lime);
}

.band {
  background: var(--ink-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(16px, 2.2vw, 26px);
}

.slant-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(18px, 2.6vw, 30px);
}
.slant-band::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(200, 255, 61, 0.14), rgba(47, 224, 192, 0.05) 46%, transparent 72%);
  transform: skewY(-6deg);
  transform-origin: left top;
  pointer-events: none;
}

/* ---------- 表面层 ---------- */
.panel {
  background: var(--ink-3);
  border: 1px solid var(--line);
  padding: clamp(16px, 2vw, 28px);
}

.glass {
  background: rgba(233, 243, 238, 0.08);
  border: 1px solid rgba(47, 224, 192, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(14px, 1.8vw, 22px);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--cyan); color: var(--ink); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--snow);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(200, 255, 61, 0.07);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silver);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb__link {
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.breadcrumb__sep { color: var(--sage); }
.breadcrumb__current { color: var(--snow); }

/* ---------- 章节锚点轨道 ---------- */
.toc { position: sticky; top: 88px; }
.toc__label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.toc__link {
  display: block;
  margin-left: -1px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--silver);
  border-left: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.toc__link:hover { color: var(--snow); }
.toc__link[aria-current="true"] {
  color: var(--lime);
  border-left-color: var(--lime);
}

/* ---------- 图片容器（页面阶段放占位图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #16241F 0%, #0E1A16 54%, #12211C 100%);
  border: 1px solid var(--line);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(154, 168, 162, 0.1) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(154, 168, 162, 0.1) 0 1px, transparent 1px 48px);
  opacity: 0.55;
  pointer-events: none;
}
.media-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--orange) 58%, transparent);
  opacity: 0.85;
  pointer-events: none;
}
.media-frame > img,
.media-frame > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 滚动进度条（JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  z-index: 120;
  pointer-events: none;
}

/* ---------- 滚动显现协议 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(6px);
}
.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 80;
  background: var(--ink);
}

/* 上层：品牌说明条 */
.topbar {
  position: relative;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.topbar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 42%;
  background: repeating-linear-gradient(
    90deg,
    rgba(47, 224, 192, 0.08) 0 1px,
    transparent 1px 14px
  );
  transform: skewX(-18deg);
  transform-origin: right top;
  pointer-events: none;
}
.topbar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--snow);
  white-space: nowrap;
}
.brand__mark {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  background: var(--lime);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.12);
}

.topbar__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sage);
  white-space: nowrap;
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.5);
  animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(200, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); }
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  flex: 0 0 auto;
}
.topbar__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silver);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.topbar__link:hover,
.topbar__link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* 下层：栏目轨道 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(11, 21, 18, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  max-width: var(--maxw);
  min-height: 62px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}
.nav__list {
  display: flex;
  align-items: stretch;
  gap: clamp(6px, 1.6vw, 28px);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__item { flex: 0 0 auto; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 20px 2px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--silver);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}
.nav__link:hover { color: var(--snow); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"] {
  color: var(--snow);
  border-bottom-color: var(--lime);
}
.nav__link[aria-current="page"]::after { transform: scaleX(0); }

.navbar__cta { flex: 0 0 auto; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: box-shadow 0.18s var(--ease);
}
.nav-toggle[aria-expanded="true"] {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(200, 255, 61, 0.08);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--lime) 0 26%,
    var(--orange) 26% 36%,
    var(--cyan) 36% 42%,
    transparent 42%
  );
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(24px, 4vw, 36px);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.7fr;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: start;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer__brand-name {
  margin: 0 0 8px;
  max-width: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--snow);
}
.footer__brand-note {
  margin: 0;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--silver);
}

.footer__col { min-width: 0; }

.footer__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
}
.footer__list--contact { gap: 6px; }

.footer__link {
  display: inline-block;
  color: var(--snow);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer__note {
  margin: 14px 0 0;
  max-width: 30em;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--silver);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--silver);
}
.footer__legal { margin: 0; max-width: none; }
.footer__copy { margin: 0; max-width: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .layout-rail { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }

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

  .navbar__inner { justify-content: space-between; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    display: none;
    flex: none;
    max-height: min(72vh, 540px);
    overflow-y: auto;
    padding: 8px 0;
    background: var(--ink-2);
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--lime);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  }
  .nav[data-open] { display: block; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }
  .nav__link {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: 1px solid rgba(154, 168, 162, 0.14);
    border-left: 3px solid transparent;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] {
    border-bottom-color: rgba(154, 168, 162, 0.14);
    border-left-color: var(--lime);
    background: rgba(200, 255, 61, 0.08);
  }
}

@media (max-width: 980px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body { font-size: 16px; line-height: 1.8; }

  .topbar__inner {
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-block: 9px;
  }
  .topbar__tagline { display: none; }
  .topbar__status {
    order: 3;
    flex-basis: 100%;
    font-size: 11px;
  }
  .topbar::after { width: 55%; opacity: 0.6; }
}

@media (max-width: 620px) {
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .navbar__cta { padding: 9px 14px; font-size: 12px; }
  .brand { font-size: 17px; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@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;
  }
  .status-dot { animation: none; }
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .scroll-progress { display: none; }
}
