/* ============================================================
   乐宝体育 · 夜间赛场数据面板 · 共享样式 /assets/site.css
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B1026;
  --panel: #15181F;
  --glass: rgba(32, 42, 74, 0.62);
  --cyan: #35F0D0;
  --orange: #FF6B2C;
  --white: #F4F7FF;
  --mist: #93A2C2;
  --jade: #0C3A3B;
  --wine: #3B1226;
  --violet: #221A45;
  --line: #2A3358;
  --warn: #FFC94A;

  --rail-w: 264px;
  --dock-h: 56px;
  --header-h: 58px;

  --radius: 14px;
  --container: 1200px;

  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-bottom: var(--dock-h);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(42, 51, 88, 0.32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 51, 88, 0.32) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main { display: block; }
#main-content { scroll-margin-top: 86px; }

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

/* ---------- typography utilities ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.display-xl { font-size: clamp(34px, 5.2vw, 64px); }
.display-l { font-size: clamp(28px, 3.6vw, 44px); }
.h-section { font-size: clamp(21px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.lead { font-size: 16px; line-height: 1.8; color: #cdd6ee; max-width: 46ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--line); }

/* ---------- layout ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

.section { position: relative; padding: clamp(48px, 6vw, 88px) 0; }
.section--panel { background: var(--panel); }
.section--jade { background: linear-gradient(180deg, var(--jade), #082a2b); }
.section--wine { background: linear-gradient(180deg, var(--wine), #2a0d1b); }
.section--violet { background: linear-gradient(180deg, var(--violet), #171134); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.grid + .grid { margin-top: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--orange); color: #180A01; }
.btn--primary:hover { background: #FF8149; transform: translateY(-1px); }
.btn--cyan { background: var(--cyan); color: #04211D; }
.btn--cyan:hover { background: #62f6dc; transform: translateY(-1px); }
.btn--ghost { background: rgba(32, 42, 74, 0.42); border-color: var(--line); color: var(--white); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--sm { padding: 8px 15px; font-size: 13px; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- cards / data / tags ---------- */
.card {
  position: relative;
  padding: 20px 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(53, 240, 208, 0.18);
}
.card__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.data-table { font-size: 14px; }
.data-table th {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(42, 51, 88, 0.62);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 24, 31, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
}
.tag--cyan { border-color: rgba(53, 240, 208, 0.5); background: rgba(53, 240, 208, 0.08); color: var(--cyan); }
.tag--orange { border-color: rgba(255, 107, 44, 0.5); background: rgba(255, 107, 44, 0.1); color: var(--orange); }
.tag--warn { border-color: rgba(255, 201, 74, 0.5); background: rgba(255, 201, 74, 0.1); color: var(--warn); }

/* ---------- media frames (page stage fills with images) ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, #0d1330 0%, #15181f 55%, #0c3a3b 100%);
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 46%, rgba(53, 240, 208, 0.16) 50%, transparent 54%),
    linear-gradient(180deg, transparent 60%, rgba(11, 16, 38, 0.72) 100%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   HEADER · 框架式导航
   ============================================================ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--cyan);
  color: #04211D;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--white); outline-offset: 2px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 60;
}

.frame-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 20px 22px;
  background: linear-gradient(180deg, #0c1230 0%, #070b18 100%);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.frame-rail::before {
  content: "";
  position: absolute;
  left: -40%;
  right: -40%;
  top: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 240, 208, 0.5), transparent);
  transform: rotate(-22deg);
  pointer-events: none;
}

.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  z-index: 3;
  transform-origin: top center;
  transform: scaleY(var(--progress, 0));
  background: linear-gradient(180deg, var(--cyan), var(--orange));
  pointer-events: none;
}

.rail-brand { position: relative; z-index: 2; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 22px;
}
.brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(53, 240, 208, 0.65);
  border-radius: 10px;
  background: rgba(53, 240, 208, 0.08);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(53, 240, 208, 0.9);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(-45deg);
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand-note {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.nav-toggle { display: none; }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--cyan); }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { position: relative; z-index: 2; flex: 1 1 auto; margin-top: 8px; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: block; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 10px 10px 0;
  color: var(--white);
  transition: background-color .18s ease, border-color .18s ease;
}
.nav-idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #5b6a92;
  transition: color .18s ease;
}
.nav-label {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mist);
  transition: color .18s ease;
}
.nav-link:hover { background: rgba(53, 240, 208, 0.07); border-left-color: rgba(53, 240, 208, 0.55); }
.nav-link:hover .nav-label { color: var(--white); }
.nav-link:hover .nav-idx { color: var(--cyan); }
.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(53, 240, 208, 0.16), rgba(53, 240, 208, 0));
  border-left-color: var(--cyan);
}
.nav-link[aria-current="page"] .nav-label { color: var(--cyan); }
.nav-link[aria-current="page"] .nav-idx { color: var(--orange); }

.rail-meta {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rail-meta__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #5b6a92;
}
.rail-meta__value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
  word-break: break-all;
}
.rail-meta__hint { display: block; margin-top: 5px; font-size: 11.5px; color: var(--mist); }

/* ---------- bottom dock ---------- */
.shell-dock {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  bottom: 0;
  height: var(--dock-h);
  z-index: 55;
  background: rgba(11, 16, 38, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.dock-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding: 0 24px;
}
.dock-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}
.dock-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 240, 208, 0.9);
  animation: dock-pulse 2.6s ease-in-out infinite;
}
@keyframes dock-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.dock-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dock-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 24, 31, 0.75);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.dock-link:hover { border-color: var(--cyan); color: var(--cyan); }
.dock-link--primary { background: var(--orange); border-color: var(--orange); color: #180A01; }
.dock-link--primary:hover { background: #FF8149; border-color: #FF8149; color: #180A01; }
.dock-contact {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mist);
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: #080c1a;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 32%, var(--orange) 68%, transparent);
  opacity: 0.75;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -200px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 240, 208, 0.1), transparent 70%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding: 56px 24px 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.2fr;
  gap: 36px 32px;
}
.footer-brand { max-width: 42ch; }
.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--white);
}
.footer-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.footer-note { margin-top: 14px; font-size: 13.5px; line-height: 1.78; color: var(--mist); }
.footer-brand .btn { margin-top: 20px; }

.footer-col__title {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #5f6f9a;
}
.footer-links li + li { margin-top: 11px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #c6d0e8;
  transition: color .18s ease;
}
.footer-links a::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  background: var(--line);
  transform: rotate(45deg);
  transition: background-color .18s ease;
}
.footer-links a:hover { color: var(--cyan); }
.footer-links a:hover::before { background: var(--orange); }

.footer-contact li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(42, 51, 88, 0.8);
  font-size: 13.5px;
}
.footer-contact li:last-child { border-bottom: 0; }
.footer-field {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #5f6f9a;
  padding-top: 3px;
}
.footer-value { color: #dfe6f7; word-break: break-word; }
.footer-value--mono { font-family: var(--font-mono); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--mist);
}
.footer-copy { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links a { color: #c6d0e8; transition: color .18s ease; }
.legal-links a:hover { color: var(--cyan); }
.footer-icp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #5f6f9a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  :root {
    --rail-w: 0px;
    --dock-h: 50px;
    --header-h: 58px;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    z-index: 60;
  }

  .frame-rail {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: var(--header-h);
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 13, 30, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    overflow: visible;
  }
  .frame-rail::before { display: none; }

  .rail-progress {
    top: auto;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    transform-origin: left center;
    transform: scaleX(var(--progress, 0));
  }

  .rail-brand { display: flex; align-items: center; }
  .brand { padding: 0; gap: 10px; }
  .brand-mark { flex-basis: 28px; width: 28px; height: 28px; border-radius: 8px; }
  .brand-name { font-size: 17px; }
  .brand-note { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(21, 24, 31, 0.8);
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
  }
  .nav-toggle__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex: none;
    margin: 0;
    padding: 12px 12px 20px;
    max-height: calc(100vh - var(--header-h) - var(--dock-h));
    overflow-y: auto;
    background: #0a1024;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
  }
  .site-nav[data-open] { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 13px 14px; border-radius: 0 10px 10px 0; }
  .nav-label { font-size: 15px; }

  .rail-meta { display: none; }

  .dock-inner { padding: 0 12px; gap: 10px; }
  .dock-status__text { display: none; }
  .dock-contact { display: none; }
  .dock-links { margin-left: auto; }
  .dock-link { padding: 6px 12px; font-size: 12.5px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 14px; line-height: 1.7; }
  .container { width: calc(100% - 32px); }
  .footer-inner { padding: 44px 16px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { margin-top: 34px; gap: 10px; }
  .footer-icp { margin-left: 0; width: 100%; }
  .grid--2, .grid--3, .grid--asym { grid-template-columns: 1fr; }
  .lead { font-size: 15px; }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- motion preferences ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .dock-dot { animation: none; }
}
