/* ==========================================================================
   乐动体育 · 共享站点样式  /assets/site.css
   夜间赛场 × 技术蓝图
   ========================================================================== */

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

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

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

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

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

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

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

/* ---- 02 Tokens ---------------------------------------------------------- */
:root {
  --ink-900: #060B18;
  --ink-800: #0E1A33;
  --line: #1E3357;
  --cyan: #35F2E0;
  --orange: #FF7A2F;
  --violet: #8B5CF6;
  --paper: #F2F6FF;
  --muted: #93A4C4;
  --deep: #04121F;
  --white: #FFFFFF;

  --rail: 84px;
  --maxw: 1240px;
  --u: 24px;
  --slant: -6deg;
  --progress: 0;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-data: "Archivo Black", "Barlow Condensed", "Arial Narrow", Impact, var(--font-body);

  --ease: cubic-bezier(.25, .8, .3, 1);
}

/* ---- 03 Base ------------------------------------------------------------ */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(30, 51, 87, .32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 51, 87, .32) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

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

::selection {
  background: var(--cyan);
  color: var(--deep);
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail); }
}

html.is-nav-open { overflow: hidden; }

/* ---- 04 Skip link ------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  padding: 14px 22px;
  background: var(--cyan);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  transform: translateY(-130%);
  transition: transform .2s var(--ease);
}

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

/* ---- 05 Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 24px);
  background-color: var(--ink-900);
  background-image: linear-gradient(90deg, rgba(53, 242, 224, .07), transparent 46%);
  border-bottom: 1px solid var(--line);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.brand:hover .brand__glyph {
  background-color: var(--cyan);
  color: var(--deep);
}

.brand__text {
  display: block;
  min-width: 0;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--paper);
}

.brand__line {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .16em;
  color: var(--muted);
}

/* 抽屉按钮 */
.nav-toggle {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}

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

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

.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

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

/* 导航（移动端抽屉） */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  width: min(84vw, 340px);
  height: 100vh;
  height: 100dvh;
  padding: 82px 20px 34px;
  background-color: var(--ink-800);
  background-image: linear-gradient(180deg, rgba(53, 242, 224, .08), transparent 220px);
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform .26s var(--ease), visibility .26s;
}

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

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

.nav-list__item + .nav-list__item { margin-top: 2px; }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 12px;
  border-left: 2px solid transparent;
  color: var(--paper);
  font-size: 16px;
  letter-spacing: .02em;
  transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}

.nav-link__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .15s var(--ease);
}

.nav-link__label {
  display: inline-block;
}

.nav-link:hover {
  color: var(--cyan);
  background-color: rgba(53, 242, 224, .07);
}

.nav-link:hover .nav-link__index { color: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background-color: rgba(53, 242, 224, .1);
}

.nav-link[aria-current="page"] .nav-link__index { color: var(--cyan); }

.site-nav__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.site-nav__note {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .1em;
  color: var(--muted);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(var(--progress));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---- 06 Header ≥1024：左侧轨道 ------------------------------------------ */
@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 20px 0 22px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background-image: linear-gradient(180deg, rgba(53, 242, 224, .09), transparent 34%);
  }

  .brand {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
  }

  .brand__text { text-align: center; }

  .brand__name {
    font-size: 13px;
    letter-spacing: .06em;
  }

  .brand__line { display: none; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    z-index: auto;
    width: 100%;
    height: auto;
    flex: 1;
    padding: 0;
    background: transparent;
    border: 0;
    transform: none;
    visibility: visible;
    overflow: visible;
    transition: none;
  }

  .nav-list { gap: 1px; }

  .nav-link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    padding: 15px 0;
    border-left-width: 2px;
  }

  .nav-link__index {
    font-size: 13px;
    letter-spacing: .12em;
  }

  .nav-link__label {
    position: absolute;
    top: 50%;
    left: 100%;
    z-index: 6;
    width: max-content;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--cyan);
    background-color: var(--ink-800);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(-8px, -50%);
    pointer-events: none;
    transition: opacity .12s var(--ease), transform .12s var(--ease), visibility .12s;
  }

  .nav-link:hover .nav-link__label,
  .nav-link:focus-visible .nav-link__label {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }

  .site-nav__foot { display: none; }

  .scroll-progress {
    top: 0;
    bottom: 0;
    left: auto;
    right: -1px;
    width: 2px;
    height: auto;
    transform: scaleY(var(--progress));
    transform-origin: 50% 0;
  }
}

/* ---- 07 Footer ---------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background-color: var(--ink-800);
  background-image: linear-gradient(180deg, rgba(53, 242, 224, .05), transparent 260px);
  color: var(--muted);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 48px);
  pointer-events: none;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(44px, 6vw, 76px) 34px;
}

@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: 44px;
  }
}

/* 品牌块 */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand__glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .05em;
  color: var(--paper);
}

.footer-intro {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-sign {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--line);
  text-transform: uppercase;
}

/* 链接分栏 */
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 519px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.footer-col__list li + li { margin-top: 9px; }

.footer-col__list a {
  display: inline-block;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--cyan);
}

/* 联系块 */
.footer-contact li + li { margin-top: 13px; }

.footer-contact__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .8;
}

.footer-contact__val {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

/* 底栏 */
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  line-height: 1.9;
}

.footer-legal { color: var(--paper); }
.footer-note { color: var(--muted); }

/* ---- 08 Layout helpers -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 3.6vw, 56px);
}

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

@media (max-width: 767px) {
  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---- 09 Typography & atoms ---------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--paper);
}

.figure {
  display: inline-block;
  font-family: var(--font-data);
  font-size: clamp(52px, 8vw, 120px);
  line-height: .9;
  letter-spacing: -.03em;
  font-style: italic;
  transform: skewX(-3deg);
  color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag--cyan { color: var(--cyan); border-color: rgba(53, 242, 224, .5); }
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 47, .5); }
.tag--violet { color: var(--violet); border-color: rgba(139, 92, 246, .55); }

.rule {
  position: relative;
  height: 22px;
  margin-block: clamp(32px, 5vw, 56px) var(--u);
  border-top: 1px solid var(--line);
}

.rule::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 48px);
}

/* ---- 10 Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .03em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--deep), inset 0 0 0 4px var(--cyan);
}

.btn--primary {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--deep);
}

.btn--primary:hover {
  background-color: var(--paper);
  border-color: var(--paper);
  color: var(--deep);
}

.btn--cyan {
  background-color: var(--cyan);
  border-color: var(--cyan);
  color: var(--deep);
}

.btn--cyan:hover {
  background-color: var(--paper);
  border-color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background-color: rgba(53, 242, 224, .08);
}

.nav-cta { width: 100%; }

/* ---- 11 Breadcrumbs ----------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.crumbs a {
  transition: color .15s var(--ease);
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--cyan);
}

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

/* ---- 12 Panels & archive cards ------------------------------------------ */
.panel {
  position: relative;
  padding: var(--u);
  border: 1px solid var(--line);
  background-color: var(--ink-800);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.file-card {
  position: relative;
  display: block;
  padding: var(--u);
  border: 1px solid var(--line);
  background-color: var(--ink-800);
  color: inherit;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

.file-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--cyan);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--ease);
}

.file-card:hover,
.file-card:focus-within {
  background-color: #101F3D;
  border-color: rgba(53, 242, 224, .45);
}

.file-card:hover::after,
.file-card:focus-within::after {
  opacity: 1;
}

/* ---- 13 Media placeholder ----------------------------------------------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--ink-800);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(30, 51, 87, .75) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(to bottom, rgba(30, 51, 87, .75) 0 1px, transparent 1px 32px);
  pointer-events: none;
}

.media > img,
.media > video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 10px;
  background: var(--deep);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }

/* ---- 14 Reveal ---------------------------------------------------------- */
html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}

html.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---- 15 Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .site-nav { transition: none; }
}
