/* ==========================================================================
   GOGO体育 — /assets/site.css
   共享外壳：reset / 令牌 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

:root {
  /* 色彩 —— 夜场黑底 + 双荧光强调 + 矿物辅助 */
  --ink: #060B14;
  --ink-2: #0E1626;
  --panel: #16202F;
  --lime: #7DF04A;
  --blue: #2FB6FF;
  --orange: #FF8A3D;
  --paper: #F2F6FF;
  --muted: #9AA9C2;
  --muted-2: #63748E;
  --edge: #2A3444;
  --moss: #3F6B52;
  --clay: #C4713F;

  --lime-soft: rgba(125, 240, 74, .12);
  --blue-soft: rgba(47, 182, 255, .12);
  --orange-soft: rgba(255, 138, 61, .14);

  /* 版面 */
  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --rail: 216px;
  --radius: 2px;
  --header-h: 66px;

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 200ms;

  /* 字体 */
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, "Courier New", monospace;
}

/* ---------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
}

p { margin: 0; }

ul, ol {
  margin: 0;
  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, picture {
  display: block;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  height: 1px;
  background: var(--edge);
  margin: 0;
}

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

::selection {
  background: var(--lime);
  color: var(--ink);
}

/* -------------------------------------------------------------- 工具类 -- */

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

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

.rule { height: 1px; background: var(--edge); border: 0; margin: 0; }

/* --------------------------------------------------------- 跳过链接 -- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

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

/* -------------------------------------------------------------- 页头 -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(6, 11, 20, .9);
  border-bottom: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 32px);
}

/* 品牌标记 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 6px 0;
}

.brand-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(125, 240, 74, .18);
  animation: brandPulse 2.6s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(125, 240, 74, .18); }
  50% { box-shadow: 0 0 0 8px rgba(125, 240, 74, .04); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted-2);
  white-space: nowrap;
}

/* 索引式导航 */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: clamp(13px, 1.05vw, 14.5px);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.nav-idx {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted-2);
  transition: color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(242, 246, 255, .05);
  border-color: var(--edge);
}

.nav-link:hover .nav-idx { color: var(--blue); }

.nav-link[aria-current="page"] {
  color: var(--lime);
  background: var(--lime-soft);
  border-color: rgba(125, 240, 74, .3);
}

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

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

/* -------------------------------------------------------------- 按钮 -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.btn-primary:hover {
  background: #96F76E;
  border-color: #96F76E;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(125, 240, 74, .18);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--edge);
}

.btn-ghost:hover {
  color: var(--paper);
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-2px);
}

/* -------------------------------------------------- 通用版面与文本 -- */

.grid-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}

.rail {
  display: grid;
  gap: 18px;
  align-content: start;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--muted-2);
}

.rail-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--edge);
}

.rail-item:last-child { border-bottom: 0; padding-bottom: 0; }

@media (min-width: 1024px) {
  .grid-editorial {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 72px);
  }

  .grid-editorial--wide {
    grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 96px);
  }

  .rail {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -.02em;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.72;
  color: var(--muted);
  max-width: 64ch;
}

.caption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
}

/* --------------------------------------------------------- 正文排版 -- */

.prose { color: var(--muted); }

.prose p {
  margin-bottom: 1.2em;
  max-width: 68ch;
}

.prose h2 {
  margin: 2em 0 .6em;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--paper);
}

.prose h3 {
  margin: 1.6em 0 .5em;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--paper);
}

.prose ul {
  display: grid;
  gap: 10px;
  margin-bottom: 1.2em;
}

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

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 8px;
  height: 1px;
  background: var(--lime);
}

.prose a {
  color: var(--blue);
  border-bottom: 1px solid rgba(47, 182, 255, .35);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.prose a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* ------------------------------------------------------------ 面包屑 -- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--muted-2);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

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

.breadcrumb-sep {
  color: var(--muted-2);
  opacity: .55;
  user-select: none;
}

/* -------------------------------------------------------- 数据组件 -- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--ink-2);
  padding: 20px 22px;
}

.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--lime);
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted-2);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  transition: color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.chip:hover {
  color: var(--paper);
  border-color: var(--blue);
  background: var(--blue-soft);
}

.chip[aria-pressed="true"],
.chip.is-active {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}

/* ------------------------------------------------------------ 卡片 -- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.card {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 240, 74, .42);
  box-shadow: 0 0 0 1px rgba(125, 240, 74, .1);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--paper);
}

/* -------------------------------------------------- 图片容器（可复用）-- */

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 11, 20, 0) 42%, rgba(6, 11, 20, .74) 100%);
}

.media-frame--scan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(242, 246, 255, .07) 1px, transparent 1px);
  background-size: 12.5% 100%;
}

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

.media-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
}

/* ---------------------------------------------------------- 滚动进度 -- */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  z-index: 300;
  pointer-events: none;
  background: linear-gradient(90deg, var(--lime), var(--blue));
  transition: width 90ms linear;
}

/* -------------------------------------------------------------- 页脚 -- */

.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  background: var(--ink-2);
  border-top: 1px solid var(--edge);
  overflow: hidden;
}

.footer-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 300px at 12% -12%, rgba(125, 240, 74, .13), transparent 68%),
    radial-gradient(520px 260px at 92% 6%, rgba(47, 182, 255, .11), transparent 70%);
}

.footer-inner {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  padding-top: clamp(48px, 7vw, 88px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3.4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--edge);
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.015em;
  color: var(--paper);
  transition: color var(--dur) var(--ease);
}

.footer-logo:hover { color: var(--lime); }

.footer-logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  flex: 0 0 auto;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.footer-meta {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted-2);
}

.footer-meta .mono {
  color: var(--lime);
  font-weight: 700;
}

.footer-heading {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-list {
  display: grid;
  gap: 11px;
}

.footer-link {
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-link:hover {
  color: var(--lime);
  transform: translateX(3px);
}

.footer-list--plain li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 40px;
}

.footer-legal {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--muted-2);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--lime);
  border-color: rgba(125, 240, 74, .42);
  background: var(--lime-soft);
}

/* ------------------------------------------------------------ 显现 -- */

.reveal { transition: opacity .5s var(--ease), transform .5s var(--ease); }

html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------- 平板与手机 -- */

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-top .footer-nav:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }

  .header-actions .btn-ghost { display: none; }

  body.nav-open { overflow: hidden; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    overflow-y: auto;
    background: linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 100%);
    border-bottom: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

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

  .nav-link {
    padding: 16px 6px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.015em;
    gap: 14px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--edge);
    background: transparent;
  }

  .nav-link:hover {
    background: transparent;
    border-bottom-color: var(--edge);
    color: var(--lime);
  }

  .nav-link[aria-current="page"] {
    background: transparent;
    border-bottom-color: rgba(125, 240, 74, .4);
  }

  .nav-idx { font-size: 12px; }
}

@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-top .footer-nav:last-child { grid-column: 1 / -1; }
  .footer-bottom { padding-bottom: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-tag { display: none; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .header-actions { gap: 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
  .display { font-size: clamp(34px, 10vw, 52px); }
}

/* --------------------------------------------------------- 减弱动效 -- */

@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.js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover,
  .card:hover,
  .btn-ghost:hover { transform: none; }

  .footer-link:hover { transform: none; }

  .progress-bar { transition: none; }
}
