/* ============================================================
   /assets/site.css — 完美体育赛事 · LINEUP 共享外壳
   侧轨导航 / 堆叠面板 / 夜场战术板色系
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; }

main { display: block; }

/* ---------- 2. Design tokens ---------- */
:root {
  --ink-black: #070B09;
  --deep-green: #0E241C;
  --board-green: #173D2F;
  --pitch: #B9FF3D;
  --ref-yellow: #F4D64A;
  --red-card: #E04B43;
  --fog: #F3F7F0;
  --sage: #9EB3A6;
  --line: #2B3A32;
  --glass: #1B2E26;

  --rail-w: 92px;
  --content-max: 1320px;
  --gutter: clamp(18px, 4vw, 56px);

  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "DIN Condensed", "Barlow Condensed", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(56px, 8vw, 132px);
  --fs-h2: clamp(30px, 4vw, 56px);
  --fs-h3: clamp(20px, 2.2vw, 26px);
  --fs-body: clamp(16px, 1.05vw, 18px);
  --fs-sm: 14px;
  --fs-xs: 13px;

  --shadow-float: 0 30px 70px -38px rgba(0, 0, 0, 0.95);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-black);
  background-image:
    radial-gradient(120% 60% at 100% 0%, rgba(23, 61, 47, 0.55), transparent 62%),
    radial-gradient(90% 50% at 0% 100%, rgba(14, 36, 28, 0.7), transparent 60%);
  background-attachment: fixed;
  color: var(--fog);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: 0.01em;
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h2); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }

a {
  color: var(--pitch);
  text-decoration-color: rgba(185, 255, 61, 0.42);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--pitch); }

strong { color: var(--fog); font-weight: 700; }

::selection {
  background: var(--pitch);
  color: var(--ink-black);
}

/* ---------- 4. Focus & skip link ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--pitch);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--pitch);
  color: var(--ink-black);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.24s var(--ease);
}

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

/* ---------- 5. Header / left rail ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 0 20px;
  border-right: 1px solid var(--line);
  background-image:
    radial-gradient(120% 38% at 50% 0%, rgba(185, 255, 61, 0.13), transparent 72%),
    linear-gradient(180deg, #0F271E 0%, #0A1611 58%, #070B09 100%);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 74px;
  background: linear-gradient(180deg, var(--pitch), rgba(185, 255, 61, 0));
  pointer-events: none;
}

/* 品牌印章 */
.brand {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--fog);
  text-decoration: none;
}

.brand__glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--pitch);
  color: #0A140F;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 30px -16px rgba(185, 255, 61, 0.95);
  transition: transform 0.24s var(--ease), border-radius 0.24s var(--ease);
}

.brand:hover .brand__glyph {
  transform: rotate(-6deg);
  border-radius: 19px;
}

.brand__word {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fog);
  max-height: 132px;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--fog);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.nav-toggle:hover { border-color: var(--pitch); color: var(--pitch); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--pitch);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 侧轨导航 */
.site-nav {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

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

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.site-nav__item { display: block; }

.site-nav__link {
  display: block;
  padding: 16px 8px;
  border-radius: var(--radius-pill);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sage);
  text-decoration: none;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.site-nav__link:hover {
  color: var(--fog);
  background: var(--glass);
}

.site-nav__link[aria-current="page"] {
  color: #0A140F;
  background: var(--pitch);
  box-shadow: 0 14px 34px -20px rgba(185, 255, 61, 0.95);
}

.rail-note {
  writing-mode: vertical-rl;
  text-orientation: upright;
  max-height: 150px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sage);
  opacity: 0.72;
}

.rail-cta {
  display: block;
  padding: 15px 9px;
  border-radius: var(--radius-pill);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--ref-yellow);
  color: #1A1603;
  text-decoration: none;
  transition: background-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.rail-cta:hover {
  background: #FFE777;
  transform: translateY(-1px);
}

/* ---------- 6. Footer ---------- */
.site-footer {
  margin: clamp(48px, 7vw, 96px) clamp(10px, 1.6vw, 20px) 0;
  padding: clamp(30px, 4vw, 56px) var(--gutter) clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background-image:
    radial-gradient(90% 56% at 100% 0%, rgba(185, 255, 61, 0.09), transparent 62%),
    linear-gradient(180deg, #123026 0%, #0C1D16 58%, #08110D 100%);
  color: var(--fog);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer__brand { min-width: 0; }

.footer__mark {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fog);
  margin-bottom: 10px;
}

.footer__mark-dot { color: var(--pitch); }

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--sage);
  margin-bottom: 20px;
}

.footer__cta { margin-top: 2px; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.footer__col { min-width: 0; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--pitch);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.footer__text {
  font-size: var(--fs-sm);
  line-height: 1.68;
  color: var(--sage);
  margin-bottom: 10px;
}

.footer__text:last-child { margin-bottom: 0; }

.footer__key { color: var(--fog); }

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.footer__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  font-size: var(--fs-sm);
  color: var(--sage);
  border-bottom: 1px dashed rgba(43, 58, 50, 0.75);
}

.footer__item:last-child { border-bottom: 0; }

.footer__label {
  flex: none;
  min-width: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sage);
  opacity: 0.68;
}

.footer__value {
  color: var(--fog);
  word-break: break-word;
}

.footer__link {
  color: var(--fog);
  text-decoration-color: rgba(185, 255, 61, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.footer__link:hover { color: var(--pitch); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(26px, 3.4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer__note {
  flex: 1 1 260px;
  font-size: var(--fs-xs);
  color: var(--sage);
}

.footer__meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sage);
}

/* ---------- 7. Buttons & pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--pitch);
  color: #0A140F;
  box-shadow: 0 16px 36px -20px rgba(185, 255, 61, 0.95);
}

.btn--primary:hover { background: #CBFF6B; }

.btn--yellow {
  background: var(--ref-yellow);
  color: #1A1603;
  box-shadow: 0 16px 36px -22px rgba(244, 214, 74, 0.9);
}

.btn--yellow:hover { background: #FFE777; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fog);
}

.btn--ghost:hover {
  border-color: var(--pitch);
  color: var(--pitch);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--board-green);
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}

.pill--pitch {
  background: rgba(185, 255, 61, 0.12);
  border-color: rgba(185, 255, 61, 0.34);
  color: var(--pitch);
}

.pill--yellow {
  background: rgba(244, 214, 74, 0.12);
  border-color: rgba(244, 214, 74, 0.34);
  color: var(--ref-yellow);
}

.pill--red {
  background: rgba(224, 75, 67, 0.14);
  border-color: rgba(224, 75, 67, 0.4);
  color: var(--red-card);
}

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb { margin-bottom: clamp(18px, 2.4vw, 30px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sage);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb__link {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.breadcrumb__link:hover { color: var(--pitch); }

.breadcrumb__link[aria-current="page"] {
  color: var(--fog);
  text-decoration: none;
  pointer-events: none;
}

/* ---------- 9. Layout containers ---------- */
.page-shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel {
  background: var(--deep-green);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 40px);
  box-shadow: var(--shadow-float);
}

.panel--raised {
  background: var(--board-green);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pitch);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(18px, 2.4vw, 32px);
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(24px, 3vw, 40px) 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

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

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

/* ---------- 10. Media container base ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-image:
    radial-gradient(120% 100% at 15% 0%, rgba(185, 255, 61, 0.18), transparent 58%),
    radial-gradient(90% 80% at 100% 100%, rgba(244, 214, 74, 0.1), transparent 62%),
    linear-gradient(155deg, #1A4133 0%, #0E241C 52%, #070B09 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(243, 247, 240, 0.07) 1px, transparent 1px);
  background-size: 22% 100%;
  opacity: 0.85;
}

.media > img,
.media > picture,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(7, 11, 9, 0.74);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- 11. Data strip ---------- */
.data-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.data-strip__row {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--sage);
}

.data-strip__bar {
  position: relative;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}

.data-strip__bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--board-green), var(--pitch));
}

/* ---------- 12. Reveal motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ---------- 13. Responsive: tablet ---------- */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid--split,
  .grid--cols-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14. Responsive: mobile shell ---------- */
@media (max-width: 860px) {
  :root { --rail-w: 0px; }

  html { scroll-padding-top: 78px; }

  body { padding-left: 0; }

  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: 66px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background-image: linear-gradient(180deg, #0F271E, #0A1611);
  }

  .site-header::after { display: none; }

  .brand { flex-direction: row; gap: 10px; }

  .brand__glyph {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 19px;
  }

  .brand__word {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    max-height: none;
    font-size: 14px;
    letter-spacing: 0.06em;
  }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    flex: none;
    width: min(340px, 86vw);
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    padding: 86px 22px 28px;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background-image: linear-gradient(180deg, #14332A 0%, #0B1A14 72%, #070B09 100%);
    box-shadow: -34px 0 70px -34px rgba(0, 0, 0, 0.95);
    transform: translateX(103%);
    visibility: hidden;
    transition: transform 0.34s var(--ease), visibility 0.34s var(--ease);
  }

  .site-header[data-open] .site-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__list {
    width: 100%;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav__link {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 17px;
    letter-spacing: 0.04em;
  }

  .site-nav__link[aria-current="page"] { border-radius: var(--radius-md); }

  .rail-note {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    max-height: none;
    font-size: 12px;
    letter-spacing: 0.12em;
    padding-left: 16px;
  }

  .rail-cta {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: block;
    width: 100%;
    padding: 15px 16px;
    text-align: center;
    font-size: 15px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 640px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .grid--cols-2 { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .footer__cta { width: auto; }
}

/* ---------- 15. Reduced motion ---------- */
@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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
