/* ==========================================================================
   全站App / assets/site.css
   sport-ledongapp.com.cn
   Reset · Variables · Typography · Header · Footer · Base Components
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style-position: inside;
}

a {
  color: var(--c-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { margin-bottom: 1em; }

::selection {
  background: var(--c-green);
  color: var(--c-bg);
}

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

/* ---------- Variables ---------- */
:root {
  --c-bg: #0a1f3c;
  --c-panel: #0d2a4f;
  --c-data: #1e4a7a;
  --c-green: #39ff88;
  --c-orange: #ff5a36;
  --c-text: #e6f0f7;
  --c-sub: #9ab8d0;
  --c-line: #2a4a6a;
  --c-overlay: rgba(0, 0, 0, 0.5);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", "Courier New", monospace;

  --container-w: 1440px;
  --shadow-sm: 3px 3px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 6px 6px 0 rgba(0, 0, 0, 0.35);
  --shadow-lg: 10px 10px 0 rgba(0, 0, 0, 0.35);
}

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

.text-sub {
  color: var(--c-sub);
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 2000;
  padding: 10px 20px;
  background: var(--c-green);
  color: var(--c-bg);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--c-green);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 16px;
  text-decoration: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 100;
  background-color: var(--c-panel);
  border-bottom: 2px solid var(--c-line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(42, 74, 106, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 74, 106, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Header meta strip */
.header-meta {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--c-line);
  font-size: 12px;
  color: var(--c-sub);
  z-index: 2;
}

.header-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.header-meta__index {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.header-meta__slash {
  color: var(--c-line);
  font-family: var(--font-mono);
}

.header-meta__status {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-meta__livetext {
  letter-spacing: 0.03em;
}

.header-meta__time {
  font-size: 13px;
  color: var(--c-green);
  padding-left: 8px;
  border-left: 1px solid var(--c-line);
}

/* Live dot */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.5);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(57, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 136, 0); }
}

/* Header main row */
.header-main {
  position: relative;
  z-index: 2;
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--c-green);
  color: var(--c-bg);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.brand:hover .brand__mark {
  box-shadow: var(--shadow-md);
}

.brand__wrap {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-size: 20px;
  font-weight: 900;
  color: var(--c-text);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.brand__tag {
  font-size: 11px;
  color: var(--c-sub);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  width: min(320px, 85vw);
  background: var(--c-panel);
  border-left: 2px solid var(--c-line);
  padding: 92px 28px 32px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
}

.site-nav[data-open] {
  transform: translateX(0);
  visibility: visible;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.35);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  color: var(--c-text);
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-nav__link:hover {
  background: rgba(57, 255, 136, 0.08);
  border-left-color: var(--c-green);
  text-decoration: none;
}

.site-nav__link[aria-current="page"] {
  background: rgba(57, 255, 136, 0.12);
  border-left-color: var(--c-green);
}

.site-nav__link[aria-current="page"] .site-nav__label {
  color: var(--c-green);
}

.site-nav__num {
  font-size: 12px;
  color: var(--c-green);
  opacity: 0.65;
  min-width: 24px;
  text-align: right;
}

.site-nav__label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Desktop navigation */
@media (min-width: 1024px) {
  .site-nav {
    position: static;
    width: auto;
    background: transparent;
    border-left: none;
    padding: 0;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .site-nav__list {
    flex-direction: row;
    gap: 0;
    align-items: stretch;
  }

  .site-nav__link {
    padding: 8px 18px;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
  }

  .site-nav__link:hover {
    background: transparent;
    border-bottom-color: var(--c-green);
  }

  .site-nav__link[aria-current="page"] {
    background: transparent;
    border-bottom-color: var(--c-green);
  }

  .site-nav__link[aria-current="page"] .site-nav__label {
    color: var(--c-text);
  }
}

/* Nav toggle */
.nav-toggle {
  position: relative;
  z-index: 400;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--c-line);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

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

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.15s ease;
}

.nav-toggle:hover .nav-toggle__bar {
  background: var(--c-green);
}

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

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

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

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--c-green);
  box-shadow: 0 0 8px rgba(57, 255, 136, 0.45);
  z-index: 500;
  pointer-events: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 60;
  margin-top: 80px;
  background-color: var(--c-panel);
  border-top: 2px solid var(--c-line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(42, 74, 106, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 74, 106, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Footer rule with ticks */
.footer-rule {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
  border-bottom: 1px solid var(--c-line);
  height: 12px;
}

@media (min-width: 768px) {
  .footer-rule {
    padding: 0 32px;
  }
}

@media (min-width: 1280px) {
  .footer-rule {
    padding: 0 48px;
  }
}

.footer-rule__tick {
  display: block;
  width: 1px;
  height: 8px;
  background: var(--c-line);
}

/* Footer inner grid */
.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
}

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

.footer-brand__logo:hover {
  text-decoration: none;
}

.footer-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--c-green);
  color: var(--c-bg);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.footer-brand__name {
  font-size: 20px;
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: 0.06em;
}

.footer-brand__trust {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-sub);
  max-width: 400px;
  margin-bottom: 16px;
  border-left: 3px solid var(--c-line);
  padding-left: 16px;
}

.footer-brand__contact {
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-brand__contact a {
  color: var(--c-green);
  margin-right: 8px;
}

.footer-brand__contact-sep {
  color: var(--c-line);
  font-family: var(--font-mono);
  margin: 0 4px 0 0;
}

.footer-brand__note {
  font-size: 12px;
  color: var(--c-sub);
  line-height: 1.7;
  border: 1px dashed var(--c-line);
  padding: 10px 14px;
  max-width: 420px;
}

/* Footer columns */
.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  color: var(--c-text);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 8px;
}

.footer-col__num {
  font-size: 11px;
  color: var(--c-green);
  opacity: 0.7;
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__list a {
  position: relative;
  display: inline-block;
  color: var(--c-sub);
  font-size: 14px;
  padding-left: 14px;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-col__list a::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-green);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.footer-col__list a:hover {
  color: var(--c-green);
  padding-left: 20px;
  text-decoration: none;
}

.footer-col__list a:hover::before {
  opacity: 1;
}

/* Footer bottom bar */
.footer-bottom {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--c-line);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 12px;
  color: var(--c-sub);
}

.footer-bottom__copy {
  margin: 0;
}

.footer-bottom__icp {
  margin: 0;
  color: var(--c-sub);
}

.footer-bottom__addr {
  margin: 0;
}

/* Footer responsive */
@media (max-width: 1023px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================================================
   Base Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid var(--c-line);
  background: transparent;
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--c-green);
  color: var(--c-green);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn--primary {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-bg);
}

.btn--primary:hover {
  background: transparent;
  color: var(--c-green);
}

.btn--orange {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-bg);
}

.btn--orange:hover {
  background: transparent;
  color: var(--c-orange);
  border-color: var(--c-orange);
}

.btn--outline {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-text);
}

.btn--outline:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--c-line);
  color: var(--c-sub);
  background: rgba(0, 0, 0, 0.25);
  line-height: 1.6;
}

.tag--green {
  border-color: rgba(57, 255, 136, 0.4);
  color: var(--c-green);
}

.tag--orange {
  border-color: rgba(255, 90, 54, 0.4);
  color: var(--c-orange);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--c-sub);
}

.breadcrumb a {
  color: var(--c-sub);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--c-green);
}

.breadcrumb__sep {
  color: var(--c-line);
  font-family: var(--font-mono);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.grid .span-2  { grid-column: span 2 / span 2; }
.grid .span-3  { grid-column: span 3 / span 3; }
.grid .span-4  { grid-column: span 4 / span 4; }
.grid .span-5  { grid-column: span 5 / span 5; }
.grid .span-6  { grid-column: span 6 / span 6; }
.grid .span-7  { grid-column: span 7 / span 7; }
.grid .span-8  { grid-column: span 8 / span 8; }
.grid .span-12 { grid-column: span 12 / span 12; }

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

  .grid .span-2, .grid .span-3, .grid .span-4,
  .grid .span-5, .grid .span-6, .grid .span-7,
  .grid .span-8, .grid .span-12 {
    grid-column: 1 / -1;
  }
}

/* Data card */
.data-card {
  position: relative;
  padding: 24px;
  background: var(--c-panel);
  border: 2px solid var(--c-line);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.data-card:hover {
  border-color: var(--c-green);
  box-shadow: var(--shadow-md);
}

.data-card__value {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.data-card__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-sub);
}

/* Image ratio */
.img-ratio {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-panel);
  border: 2px solid var(--c-line);
}

.img-ratio::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.img-ratio[data-ratio="16:9"]::before { padding-top: 56.25%; }
.img-ratio[data-ratio="4:3"]::before  { padding-top: 75%; }
.img-ratio[data-ratio="3:4"]::before  { padding-top: 133.33%; }
.img-ratio[data-ratio="1:1"]::before  { padding-top: 100%; }

.img-ratio img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-ratio--empty::after {
  content: "IMG";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--c-sub);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border: 1px solid var(--c-line);
}

/* Section head */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--c-line);
}

.section-head__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-green);
  letter-spacing: 0.03em;
}

.section-head__title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 900;
  color: var(--c-text);
  margin: 0;
}

.section-head__extra {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-sub);
}

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

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

  .live-dot {
    animation: none;
    box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.3);
  }
}
