/* ============================================================
   乐动体育官网 · shared site kit  /assets/site.css
   夜间赛场 × 数据指挥中心
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 74px) + 20px);
  background: #070A12;
}

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

ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid #FF5A1F;
  outline-offset: 3px;
}

::selection { background: #B8FF3C; color: #070A12; }

/* ---------- 2. Tokens ---------- */
:root {
  /* color */
  --ink: #070A12;
  --ink-2: #0B1326;
  --ink-3: #101B33;
  --blue: #2D6BFF;
  --orange: #FF5A1F;
  --orange-2: #FF8A00;
  --grad: linear-gradient(112deg, #FF3D00 0%, #FF8A00 100%);
  --lime: #B8FF3C;
  --steel: #A7B2C3;
  --ice: #8FC7FF;
  --white: #F7FAFF;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.095);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);

  /* metric */
  --header-h: 76px;
  --wrap: 1220px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* type */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(940px 540px at 84% -8%, rgba(45, 107, 255, 0.22), transparent 62%),
    radial-gradient(680px 440px at 2% 4%, rgba(255, 90, 31, 0.12), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.72rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.14rem, 1.7vw, 1.42rem); letter-spacing: -0.014em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { max-width: 68ch; }
strong { font-weight: 800; color: var(--white); }

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

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-head {
  display: grid;
  gap: 14px;
  max-width: 70ch;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 250px)), 1fr));
}

.grid--pair { --min: 320px; }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  margin-block: clamp(26px, 4vw, 46px);
}

/* ---------- 5. Typographic atoms ---------- */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--grad);
  flex: 0 0 auto;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.8;
  color: var(--steel);
  max-width: 64ch;
}

.vertical-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(167, 178, 195, 0.8);
}

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn--primary {
  background: var(--grad);
  color: #0A0E16;
  box-shadow: 0 12px 26px -16px rgba(255, 90, 31, 0.95);
}

.btn--primary::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: var(--ink);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -16px rgba(255, 90, 31, 1);
}

.btn--ghost {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--ice);
  color: var(--ice);
  background: rgba(143, 199, 255, 0.1);
}

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

/* ---------- 7. Tags / stats / panels ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--ice);
  background: rgba(143, 199, 255, 0.1);
  border: 1px solid rgba(143, 199, 255, 0.32);
  border-radius: 2px;
}

.tag--lime {
  color: var(--lime);
  background: rgba(184, 255, 60, 0.1);
  border-color: rgba(184, 255, 60, 0.36);
}

.tag--orange {
  color: var(--orange);
  background: rgba(255, 90, 31, 0.12);
  border-color: rgba(255, 90, 31, 0.4);
}

.stat { display: grid; gap: 4px; }

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    background-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.panel:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--glass-2);
  box-shadow: 0 24px 44px -34px rgba(45, 107, 255, 0.95);
}

.panel--cut {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.panel--accent {
  border-color: rgba(255, 90, 31, 0.45);
  background: linear-gradient(160deg, rgba(255, 90, 31, 0.14), rgba(255, 90, 31, 0.02));
}

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 16px 7px 12px;
  background: var(--glass);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  font-size: 12.5px;
  letter-spacing: 0.05em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb a { color: var(--steel); transition: color 0.18s var(--ease); }
.breadcrumb a:hover { color: var(--ice); }

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.26);
}

.breadcrumb [aria-current="page"] { color: var(--white); font-weight: 600; }

/* ---------- 9. Media frame ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 72%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(198deg, rgba(45, 107, 255, 0.2), transparent 56%);
  pointer-events: none;
}

.media:empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(143, 199, 255, 0.1) 0 1px,
    transparent 1px 18px
  );
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

.media--cut {
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

/* ---------- 10. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 3px;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 11. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background-color: transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-solid {
  background-color: rgba(11, 19, 38, 0.95);
  box-shadow: 0 1px 0 var(--line), 0 22px 48px -38px rgba(0, 0, 0, 1);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

body.is-nav-open .site-header { background-color: var(--ink-2); }

/* 左侧赛道轨道灯带 */
.header-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--blue) 42%, transparent 92%);
  opacity: 0.9;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #080C14;
  background: var(--grad);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.08;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
}

.brand-descriptor {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.17em;
  color: var(--steel);
  white-space: nowrap;
}

/* 导航 */
.nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--steel);
  transition: color 0.2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease), background-color 0.2s var(--ease);
}

.nav-list a:hover { color: var(--white); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] { color: var(--white); font-weight: 700; }
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--lime);
}

.nav-foot { display: none; }

.nav-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
  max-width: none;
}

/* 头部操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--glass);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--ice); background: rgba(143, 199, 255, 0.12); }

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

.nav-toggle-box span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}

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

.nav-toggle-label { white-space: nowrap; }

/* 滚动进度轨 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  z-index: 3;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  pointer-events: none;
}

/* 移动端导航态 */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: clamp(20px, 5vw, 34px) var(--gutter) 40px;
    overflow-y: auto;
    background-color: var(--ink-2);
    background-image:
      radial-gradient(620px 340px at 88% 0%, rgba(45, 107, 255, 0.3), transparent 66%),
      radial-gradient(420px 260px at 0% 100%, rgba(255, 90, 31, 0.16), transparent 70%);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s var(--ease);
  }

  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.07); }

  .nav-list a {
    display: block;
    padding: 15px 4px;
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
  }

  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--lime); }

  .nav-foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .nav-foot .btn { width: 100%; }

  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (min-width: 961px) {
  .nav-toggle { display: none; }
  .nav-foot { display: none; }
  body.is-nav-open { overflow: auto; }
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background-color: var(--ink);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-slice {
  position: absolute;
  inset: 0 0 auto 0;
  height: 190px;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      116deg,
      rgba(45, 107, 255, 0.13) 0 1px,
      transparent 1px 46px
    ),
    radial-gradient(720px 250px at 10% 0%, rgba(255, 90, 31, 0.16), transparent 70%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(44px, 6vw, 74px) 26px;
}

.footer-top {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}

.footer-brand { display: grid; align-content: start; gap: 0; }

.footer-statement {
  margin-top: 20px;
  max-width: 24ch;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--white);
}

.footer-cols {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.footer-col-title {
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ice);
}

.footer-col-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  vertical-align: 1px;
  background: var(--lime);
  transform: rotate(45deg);
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14.5px;
  color: var(--steel);
  transition: color 0.18s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 14px;
}

.footer-col a:hover::before { width: 9px; }

.footer-contact {
  display: grid;
  gap: 6px;
  margin-top: clamp(30px, 4vw, 50px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: clamp(13.5px, 1.4vw, 15.5px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  max-width: none;
  word-break: break-word;
}

.footer-note {
  font-size: 13.5px;
  color: var(--steel);
  max-width: 60ch;
}

.footer-addr {
  font-size: 13px;
  color: rgba(167, 178, 195, 0.78);
  max-width: 60ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  color: rgba(167, 178, 195, 0.8);
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  max-width: none;
}

.footer-icp {
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: rgba(167, 178, 195, 0.7);
  max-width: none;
}

@media (min-width: 780px) {
  .footer-top {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.35fr);
  }
}

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

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

/* ---------- 14. 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;
  }

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

/* ---------- 15. Small-screen polish ---------- */
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .brand-descriptor { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-toggle-label { display: none; }
  .btn { padding: 11px 17px; font-size: 14px; }
  .footer-icp { margin-left: 0; }
}
