/* ============================================================
   买球品牌站 /assets/site.css
   共享外壳：reset · 令牌 · 头部 · 页脚 · 基础组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #05070A;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1100px 520px at 84% -10%, rgba(0, 230, 118, 0.11), transparent 62%),
    radial-gradient(860px 460px at 0% 4%, rgba(79, 195, 247, 0.07), transparent 56%);
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 900; }

/* ---------- 02 tokens ---------- */
:root {
  --void: #05070A;
  --cabin: #0B1118;
  --grid: #16212B;
  --line: #263642;
  --green: #00E676;
  --green-deep: #00A152;
  --ice: #4FC3F7;
  --ice-pale: #9BE7FF;
  --amber: #FF6D00;
  --text: #E8F1EC;
  --dim: #93A6B3;
  --white: #FFFFFF;

  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shell: 1440px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 03 typography base ---------- */
body {
  min-height: 100vh;
  background-color: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--white);
}

h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }

::selection { background: var(--green); color: #04120A; }

:focus-visible,
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 0;
}

/* ---------- 04 utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.dim { color: var(--dim); }

.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.7);
}

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

/* ---------- 05 buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #04120A;
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
}

.btn-primary:hover {
  background: #2BFF92;
  border-color: #2BFF92;
  box-shadow: 0 0 20px -2px rgba(0, 230, 118, 0.6);
}

.btn-primary:active { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }

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

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 16px -4px rgba(0, 230, 118, 0.5);
}

.btn-ghost:active { border-color: var(--green-deep); color: var(--green-deep); }

/* ---------- 06 skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--green);
  color: #04120A;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.skip-link:focus { top: 14px; }

/* ---------- 07 header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 10, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header[data-stuck] {
  box-shadow: 0 1px 0 rgba(0, 230, 118, 0.22), 0 16px 40px -32px rgba(0, 0, 0, 0.95);
}

.header-top { border-bottom: 1px solid var(--line); }

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-glyph {
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--green);
  transform: skewX(-6deg);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.8);
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

.brand-sep {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--line);
}

.brand-line {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-link:hover .brand-line { color: var(--text); }
.brand-link:hover .brand-glyph { box-shadow: 0 0 20px rgba(0, 230, 118, 1); }

.header-top-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  background: rgba(0, 230, 118, 0.07);
  border: 1px solid rgba(0, 230, 118, 0.4);
  white-space: nowrap;
}

.version-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: htg-pulse 2.4s ease-in-out infinite;
}

@keyframes htg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.22; }
}

.header-contact {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.header-contact:hover { color: var(--green); }

.header-main-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 58px;
}

.brand-mini {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mini-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.4);
  padding: 1px 5px;
}

.primary-nav {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 19px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.8);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.2s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--green); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-drawer-head,
.nav-drawer-line,
.nav-drawer-foot { display: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { bottom: 0; }

.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) { transform: translateY(-5.5px) rotate(-45deg); }

.scroll-meter {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-deep), var(--green) 55%, var(--ice));
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.75);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 08 footer ---------- */
.site-footer {
  position: relative;
  background: var(--cabin);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 100%;
  opacity: 0.22;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-block: 56px;
}

.footer-col { min-width: 0; }

.footer-flag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--white);
}

.footer-glyph {
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--green);
  transform: skewX(-6deg);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.8);
}

.footer-desc {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
}

.footer-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ice);
  border: 1px solid rgba(79, 195, 247, 0.4);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--dim);
}

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

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-links a:hover { color: var(--green); }

.footer-contact-item {
  display: block;
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.footer-note {
  margin-top: 14px;
  max-width: 28ch;
  font-size: 12px;
  line-height: 1.65;
  color: var(--dim);
}

.footer-base {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
}

.footer-copy,
.footer-icp {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--dim);
}

/* ---------- 09 media containers ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--grid);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  border: 1px solid var(--line);
}

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

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

.media__tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--green);
  background: rgba(5, 7, 10, 0.86);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(180deg, rgba(5, 7, 10, 0), rgba(5, 7, 10, 0.9));
}

/* ---------- 10 breadcrumb ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

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

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--line);
}

.breadcrumb a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

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

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

/* ---------- 11 prose ---------- */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.prose > * + * { margin-top: 20px; }

.prose h2 { margin-top: 44px; font-size: 28px; }
.prose h3 { margin-top: 32px; font-size: 20px; }
.prose strong { color: var(--white); font-weight: 700; }

.prose a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease);
}

.prose a:hover { color: var(--ice-pale); }

.prose ul { padding-left: 0; }

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--green);
  transform: skewX(-6deg);
}

.prose ul li + li { margin-top: 10px; }

/* ---------- 12 responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --gutter: 20px; }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  .header-top { display: none; }
  .header-main-inner { min-height: 60px; gap: 12px; }
  .brand-mini { display: inline-flex; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    flex-direction: column;
    padding: calc(16px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
    background-color: var(--void);
    background-image:
      radial-gradient(620px 320px at 90% -6%, rgba(0, 230, 118, 0.14), transparent 62%),
      radial-gradient(520px 300px at 0% 100%, rgba(79, 195, 247, 0.10), transparent 60%);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }

  .primary-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s;
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .nav-drawer-brand {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--white);
  }

  .nav-close {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    color: var(--text);
    transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
  }

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

  .nav-close-glyph {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
  }

  .nav-close-glyph::before,
  .nav-close-glyph::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1.5px;
    margin-top: -0.75px;
    background: currentColor;
  }

  .nav-close-glyph::before { transform: rotate(45deg); }
  .nav-close-glyph::after { transform: rotate(-45deg); }

  .nav-drawer-line {
    display: block;
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--dim);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
    border-top: 1px solid var(--line);
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 2px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after { display: none; }

  .nav-link::before {
    content: "";
    flex: none;
    width: 14px;
    height: 1px;
    background: var(--line);
    transition: width 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  }

  .nav-link:hover::before,
  .nav-link[aria-current="page"]::before {
    width: 26px;
    background: var(--green);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
  }

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

  .nav-drawer-foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 28px;
  }

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

  .nav-drawer-note {
    padding-top: 6px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--dim);
    text-align: center;
  }

  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-block: 40px;
  }

  .footer-col--brand { grid-column: 1 / -1; }
  .footer-base-inner { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  h1 { font-size: 28px; }

  body { font-size: 15px; line-height: 1.75; }

  .grid-12 { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .btn { padding: 11px 16px; font-size: 13px; }
}

/* ---------- 13 motion preferences ---------- */
@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;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .version-badge::before { animation: none; }
  .primary-nav { transform: none; }
}
