/* ==========================================================================
   /assets/site.css — 九州体育赛事 共享外壳
   框架式导轨导航 · 战术板网格 · 切角面板 · 记分牌配色
   ========================================================================== */

:root {
  /* 品牌色 */
  --ink-950: #05070A;
  --night-900: #0B1220;
  --panel-800: #141C2B;
  --seam-600: #2C3A52;
  --fog-400: #8C9AB0;
  --chalk-050: #EEF3F8;
  --home-ember: #FF4E1A;
  --volt-450: #33F2C4;
  --signal-amber: #FFC53D;
  --alert-rose: #FF5C7A;
  --paper-mist: #DCE4EF;

  /* 度量 */
  --rail-w: 200px;
  --topbar-h: 78px;
  --shell: 1120px;
  --cut: 12px;

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --line: 1px solid var(--seam-600);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 20px);
}

body {
  margin: 0;
  padding-top: var(--topbar-h);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(51, 242, 196, 0.075), transparent 70%),
    radial-gradient(900px 520px at 4% 104%, rgba(255, 78, 26, 0.07), transparent 72%),
    repeating-linear-gradient(0deg, rgba(44, 58, 82, 0.2) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(90deg, rgba(44, 58, 82, 0.14) 0 1px, transparent 1px 74px);
  color: var(--chalk-050);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--chalk-050);
}
h1 { font-size: clamp(38px, 4.2vw, 68px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; letter-spacing: 0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--paper-mist); }
a:hover { color: var(--volt-450); }

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

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

button { font: inherit; color: inherit; }

::selection { background: var(--home-ember); color: #0A0503; }

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

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--volt-450);
  color: #04120E;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease-out);
}
.skip-link:focus-visible {
  transform: translateY(0);
  color: #04120E;
}

/* ---------- 顶部状态条 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-inline: clamp(14px, 2vw, 26px);
  background: rgba(5, 7, 10, 0.93);
  border-bottom: var(--line);
  backdrop-filter: blur(10px);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 2px;
  background: var(--home-ember);
}

.topbar__brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk-050);
  text-decoration: none;
}
.brand:hover { color: var(--chalk-050); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  color: #0A0503;
  background: var(--home-ember);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--fog-400);
  line-height: 1;
}
.brand__meta .mono { color: var(--volt-450); }

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--home-ember);
  flex: none;
}

.topbar__stats {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 26px);
  margin-left: auto;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}
.stat__key {
  color: var(--fog-400);
  letter-spacing: 0.08em;
}
.stat__val {
  font-size: 15px;
  font-weight: 600;
  color: var(--chalk-050);
  letter-spacing: 0.02em;
}
.stat + .stat .stat__val { color: var(--fog-400); }
.stat:first-child .stat__val { color: var(--volt-450); }

.topbar__cta { flex: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--seam-600);
  background: var(--panel-800);
  color: var(--chalk-050);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background 0.22s var(--ease-out), color 0.22s var(--ease-out),
              border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  color: var(--chalk-050);
  border-color: var(--volt-450);
}
.btn__arrow {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn--ember {
  background: var(--home-ember);
  border-color: transparent;
  color: #160502;
}
.btn--ember:hover {
  background: #FF6A3C;
  color: #160502;
  border-color: transparent;
}
.btn--ghost {
  background: transparent;
  color: var(--paper-mist);
}
.btn--ghost:hover {
  color: var(--volt-450);
  border-color: var(--volt-450);
  background: rgba(51, 242, 196, 0.06);
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
  border: 1px solid var(--seam-600);
  background: var(--panel-800);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--chalk-050);
  transition: transform 0.24s var(--ease-out), opacity 0.24s var(--ease-out),
              background 0.24s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--volt-450);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--volt-450);
}

/* ---------- 遮罩 ---------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(5, 7, 10, 0.7);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.nav-scrim[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 主导航（桌面：左导轨） ---------- */
.site-nav {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  z-index: 50;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 14px 20px;
  overflow-y: auto;
  background: rgba(11, 18, 32, 0.72);
  border-right: var(--line);
}

.site-nav__label {
  margin: 0;
  padding-left: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--fog-400);
  text-transform: uppercase;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-nav__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-left: 2px solid transparent;
  color: var(--paper-mist);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out);
}
.site-nav__list a:hover {
  background: rgba(44, 58, 82, 0.45);
  color: var(--chalk-050);
}
.site-nav__list a[aria-current="page"] {
  background: var(--panel-800);
  border-left-color: var(--home-ember);
  color: var(--chalk-050);
}
.site-nav__list a[aria-current="page"] .site-nav__num { color: var(--home-ember); }

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--seam-600);
  flex: none;
  transition: color 0.2s var(--ease-out);
}

.site-nav__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fog-400);
}
.site-nav__foot p { margin: 0; }
.site-nav__foot .mono { color: var(--fog-400); }
.site-nav__foot p:first-child .mono { color: var(--volt-450); }

/* ---------- 右导轨 ---------- */
.rail {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  z-index: 40;
}
.rail--right {
  right: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 26px 0 20px;
  overflow: hidden;
  background: rgba(11, 18, 32, 0.55);
  border-left: var(--line);
}
.rail__vertical {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  color: var(--fog-400);
}
.rail__dial {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.rail__code {
  margin: auto 0 0;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--volt-450);
}

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: rgba(44, 58, 82, 0.5);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--volt-450), var(--home-ember));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(52px, 8vw, 108px);
  padding: clamp(52px, 7vw, 88px) clamp(18px, 3vw, 40px) 22px;
  background: linear-gradient(180deg, var(--night-900) 0%, #070B12 62%, var(--ink-950) 100%);
  border-top: var(--line);
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.45fr 1fr;
  gap: clamp(24px, 3vw, 46px);
  max-width: var(--shell);
  margin-inline: auto;
}

.footer__col { min-width: 0; }

.footer__brand {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  color: var(--chalk-050);
  line-height: 1.2;
}
.footer__note {
  margin: 0;
  max-width: 22em;
  color: var(--fog-400);
  font-size: 14.5px;
  line-height: 1.72;
}
.footer__tag {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--volt-450);
}

.footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--chalk-050);
  text-transform: uppercase;
}
.footer__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--home-ember);
  flex: none;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  color: var(--fog-400);
}
.footer__list a {
  color: var(--paper-mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.footer__list a:hover {
  color: var(--volt-450);
  border-bottom-color: var(--volt-450);
}
.footer__list--meta .mono {
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--fog-400);
  word-break: break-word;
}
.footer__hint {
  color: var(--signal-amber);
  font-size: 13px;
}

.footer__trace {
  display: block;
  width: 100%;
  max-width: var(--shell);
  height: 10px;
  margin: clamp(28px, 4vw, 46px) auto 0;
  color: var(--volt-450);
  opacity: 0.85;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 26px;
  max-width: var(--shell);
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: var(--line);
  font-size: 13px;
  color: var(--fog-400);
}
.footer__base p { margin: 0; }
.footer__base .mono { letter-spacing: 0.06em; }

/* ---------- 通用容器与基础组件 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 40px);
}

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

.section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
  border-bottom: var(--line);
}
.section__num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--home-ember);
  flex: none;
}
.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--volt-450);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--volt-450);
  flex: none;
}

.lede {
  max-width: 34em;
  color: var(--paper-mist);
  font-size: 17px;
  line-height: 1.78;
}

.prose {
  max-width: 34em;
  color: var(--paper-mist);
  font-size: 17px;
  line-height: 1.78;
}
.prose p { margin: 0 0 1.05em; }
.prose h3 { margin-top: 1.6em; }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}
.grid--split {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}

.cut-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--panel-800);
  border: var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--seam-600);
  background: rgba(44, 58, 82, 0.22);
  color: var(--fog-400);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.tag--volt {
  color: var(--volt-450);
  border-color: rgba(51, 242, 196, 0.45);
  background: rgba(51, 242, 196, 0.08);
}
.tag--amber {
  color: var(--signal-amber);
  border-color: rgba(255, 197, 61, 0.45);
  background: rgba(255, 197, 61, 0.08);
}
.tag--rose {
  color: var(--alert-rose);
  border-color: rgba(255, 92, 122, 0.45);
  background: rgba(255, 92, 122, 0.08);
}

.data {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--chalk-050);
  font-variant-numeric: tabular-nums;
}

.divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--seam-600);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fog-400);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before {
  content: "/";
  color: var(--seam-600);
}
.crumbs a {
  color: var(--fog-400);
  text-decoration: none;
}
.crumbs a:hover { color: var(--volt-450); }

/* ---------- 图片容器基础（页面阶段放置 img / svg） ---------- */
.media-frame {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(150deg, var(--panel-800), var(--night-900) 70%);
  border: var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(44, 58, 82, 0.42) 0 1px, transparent 1px 58px),
    linear-gradient(180deg, transparent 55%, rgba(5, 7, 10, 0.72) 100%);
}
.media-frame img,
.media-frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 9px 14px;
  background: rgba(5, 7, 10, 0.78);
  border-top: 1px solid var(--seam-600);
  border-right: 1px solid var(--seam-600);
  color: var(--fog-400);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- 滚动显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s var(--ease-out), transform 0.42s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式：平板与手机 ---------- */
@media (min-width: 1060px) {
  body {
    padding-left: var(--rail-w);
    padding-right: var(--rail-w);
  }
}

@media (max-width: 1179px) {
  :root { --rail-w: 168px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; }
}

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

  .nav-toggle { display: inline-flex; }
  .rail--right { display: none; }
  .topbar__stats { display: none; }

  .site-nav {
    top: var(--topbar-h);
    width: min(340px, 86vw);
    z-index: 70;
    padding-top: 22px;
    background: var(--night-900);
    box-shadow: 26px 0 70px rgba(0, 0, 0, 0.6);
    transform: translateX(-102%);
    transition: transform 0.34s var(--ease-out);
  }
  .site-nav[data-open="true"] {
    transform: translateX(0);
  }
  .site-nav__list a { padding: 13px 12px; font-size: 15.5px; }

  .topbar__cta { margin-left: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar__cta { display: none; }
  .grid--split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 64px; }
  body { font-size: 16px; }
  .brand__meta { font-size: 10.5px; letter-spacing: 0.06em; }
  .brand__mark { width: 22px; height: 22px; }
  .footer__brand { font-size: 21px; }
  .footer__base { flex-direction: column; gap: 6px; }
}

@media (max-width: 620px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .section__head { flex-wrap: wrap; gap: 10px; }
  .site-footer { clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%); }
  .btn { padding: 10px 15px; font-size: 13.5px; }
}

/* ---------- 动效降级 ---------- */
@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;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .btn--ember:hover {
    transform: none;
  }
  .site-nav { transition: none; }
  .scroll-progress__bar { transition: none; }
}
