/* ==========================================================================
   维基体育手机版 — /assets/site.css
   共享外壳：重置 / 变量 / 中文排版 / 命令栏页头 / 分层页脚 / 基础组件
   ========================================================================== */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. tokens ---------- */
:root {
  --ink-950: #060B09;
  --ink-900: #0E1B16;
  --ink-800: #1C3026;
  --paper: #F2EDE1;
  --paper-2: #DCD3C0;
  --cyan: #4BE3C8;
  --cyan-deep: #17A08C;
  --orange: #FF7A2F;
  --muted: #8FA79C;
  --lime: #D9F45B;

  --font-display: "Archivo", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 58px;
  --radius: 2px;
  --line: rgba(75, 227, 200, .16);
  --line-soft: rgba(220, 211, 192, .14);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. base + 中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1200px 620px at 78% -12%, rgba(75, 227, 200, .10), transparent 70%),
    radial-gradient(900px 520px at -6% 22%, rgba(23, 160, 140, .10), transparent 66%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .012em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { background-attachment: fixed; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.6vw, 70px); line-height: 1.02; }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.22; }
h4 { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.32; letter-spacing: 0; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: var(--radius); }
::selection { background: var(--cyan); color: var(--ink-950); }

/* ---------- 4. 容器与网格 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1560px; }
.wrap--narrow { max-width: 840px; }

.section { padding-block: clamp(48px, 7vw, 104px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }
.section--paper { background: var(--paper); color: var(--ink-900); }
.section--ink { background: var(--ink-950); }
.section--panel { background: var(--ink-800); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }
.col-start-3 { grid-column-start: 3; }
.col-start-7 { grid-column-start: 7; }

/* ---------- 5. 排版元件 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan-deep); }
.note { font-size: 13.5px; letter-spacing: .04em; line-height: 1.7; color: var(--muted); }
.idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--cyan); }
.rule { height: 1px; border: 0; background: var(--line); }
.placard {
  border-left: 2px solid var(--cyan); padding: 10px 0 10px 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.placard strong { color: var(--paper); font-weight: 700; }

.prose { max-width: 44em; font-size: 17px; line-height: 1.8; color: var(--paper-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(22px, 2.4vw, 30px); color: var(--paper); }
.prose h3 { margin-top: 1.6em; color: var(--paper); }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(75, 227, 200, .38); }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--paper); font-weight: 700; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-block: 14px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--cyan-deep); }
.breadcrumbs a:hover { color: var(--cyan); }

/* ---------- 6. 按钮、标签、脉冲 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--paper);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .02em;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { border-color: var(--cyan); background: rgba(75, 227, 200, .1); color: var(--cyan); }
.btn--signal { background: var(--orange); border-color: var(--orange); color: #1A0D05; }
.btn--signal:hover { background: #FF9057; border-color: #FF9057; color: #1A0D05; }
.btn--solid { background: var(--cyan); border-color: var(--cyan); color: var(--ink-950); }
.btn--solid:hover { background: #7BF0DA; border-color: #7BF0DA; color: var(--ink-950); }
.btn--block { display: flex; width: 100%; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan);
}
.tag--live { color: var(--orange); border-color: rgba(255, 122, 47, .42); }
.tag--lime { color: var(--lime); border-color: rgba(217, 244, 91, .34); }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(75, 227, 200, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(75, 227, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 227, 200, 0); }
}

/* ---------- 7. 卡片、数据、图片容器 ---------- */
.card {
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--ink-800);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.card--glass {
  background: linear-gradient(180deg, rgba(28, 48, 38, .78), rgba(14, 27, 22, .62));
  border-color: var(--line);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.card--paper { background: var(--paper); color: var(--ink-900); border-color: rgba(6, 11, 9, .14); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 40px); line-height: 1; letter-spacing: -.01em; color: var(--cyan);
}
.stat__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

.figure { margin: 0; }
.figure__cap {
  margin-top: 10px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.img-frame {
  position: relative; overflow: hidden; border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, var(--ink-800) 0%, var(--ink-950) 62%);
  aspect-ratio: 3 / 2;
}
.img-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image:
    linear-gradient(rgba(75, 227, 200, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 227, 200, .10) 1px, transparent 1px);
  background-size: 34px 34px;
}
.img-frame > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--band { aspect-ratio: 21 / 9; }

/* ---------- 8. 可展开内容组 ---------- */
.disclosure { border-top: 1px solid var(--line-soft); }
.disclosure__item { border-bottom: 1px solid var(--line-soft); }
.disclosure__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--paper);
  transition: color .18s var(--ease);
}
.disclosure__btn:hover { color: var(--cyan); }
.disclosure__sign { position: relative; flex: none; width: 14px; height: 14px; }
.disclosure__sign::before, .disclosure__sign::after {
  content: ""; position: absolute; background: var(--cyan); transition: transform .22s var(--ease);
}
.disclosure__sign::before { left: 0; right: 0; top: 6.5px; height: 1px; }
.disclosure__sign::after { top: 0; bottom: 0; left: 6.5px; width: 1px; }
.disclosure__item[data-open] .disclosure__sign::after { transform: scaleY(0); }
.disclosure__panel { height: 0; overflow: hidden; transition: height .22s var(--ease); }
.disclosure__inner { padding: 0 0 20px; max-width: 46em; color: var(--paper-2); }

/* ---------- 9. 滚动显现 / 返回顶部 ---------- */
.js-on [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js-on [data-reveal].is-in { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 80;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(6, 11, 9, .82); color: var(--cyan);
  font-family: var(--font-mono); font-size: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), border-color .18s var(--ease);
}
.to-top[data-visible] { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--cyan); background: rgba(75, 227, 200, .14); }

/* ---------- 10. 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 11, 9, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.header-inner {
  width: 100%; max-width: 1440px; margin-inline: auto;
  min-height: var(--header-h); padding: 8px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 1.8vw, 28px);
}
.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 200;
  padding: 10px 16px; background: var(--cyan); color: var(--ink-950);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 8px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  position: relative; flex: none; width: 26px; height: 26px;
  border: 1px solid var(--cyan-deep);
  background: linear-gradient(135deg, rgba(75, 227, 200, .18), transparent 62%);
}
.brand__mark::before { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 1px; background: var(--cyan); }
.brand__mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--orange);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: var(--paper); }
.brand__meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* 命令栏导航（移动端为侧滑抽屉） */
.site-nav {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 70;
  width: min(88vw, 380px); height: 100dvh;
  display: grid; grid-template-columns: 1fr; align-content: start; gap: 20px;
  padding: calc(var(--header-h) + 24px) 24px 32px;
  background: var(--ink-950); border-left: 1px solid var(--line);
  overflow-y: auto;
  transform: translateX(104%); visibility: hidden;
  transition: transform .26s var(--ease), visibility 0s linear .26s;
}
.site-nav__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.site-nav__list { display: flex; flex-direction: column; }
.site-nav__link {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--paper);
  transition: color .18s var(--ease);
}
.site-nav__link:hover { color: var(--cyan); }
.site-nav__idx { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; color: var(--cyan-deep); }
.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--orange); }

.site-nav__extra { display: grid; gap: 14px; padding-top: 4px; }
.site-nav__cap { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-deep); }
.mini-list { display: grid; gap: 2px; }
.mini-list__link {
  display: block; padding: 9px 0; font-size: 13.5px; color: var(--muted);
  border-bottom: 1px dashed rgba(220, 211, 192, .1);
  transition: color .18s var(--ease);
}
.mini-list__link:hover { color: var(--cyan); }

.site-header[data-open] .site-nav { transform: translateX(0); visibility: visible; transition: transform .26s var(--ease), visibility 0s; }

.nav-scrim {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(6, 11, 9, .62);
  opacity: 0; pointer-events: none; transition: opacity .26s var(--ease);
}
.site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

.header-aside { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.round-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line-soft); white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.round-status b { color: var(--cyan); font-weight: 700; }
.round-status__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 2.4s ease-out infinite; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--paper); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan) 46%, var(--lime));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

@media (max-width: 460px) {
  .nav-toggle__label { display: none; }
  .round-status__text { display: none; }
  .round-status { padding: 7px 8px; }
}

@media (min-width: 981px) {
  .header-inner { padding-inline: clamp(20px, 3vw, 44px); }
  .site-nav {
    position: static; inset: auto; width: auto; height: auto; max-height: none;
    display: flex; align-items: center; flex: 1 1 auto; min-width: 0;
    gap: clamp(4px, 1vw, 14px);
    padding: 0 0 0 14px; margin-left: clamp(8px, 1.6vw, 24px);
    background: none; border: 0; border-left: 1px solid var(--line-soft);
    overflow: visible; transform: none; visibility: visible; transition: none;
  }
  .site-nav__head, .site-nav__extra { display: none; }
  .site-nav__list { flex-direction: row; flex-wrap: wrap; gap: 2px; }
  .site-nav__link {
    position: relative; padding: 9px 11px; border-bottom: 0;
    font-family: var(--font-mono); font-weight: 400; font-size: 12.5px;
    letter-spacing: .06em; color: var(--muted);
    transition: color .18s var(--ease), background .18s var(--ease);
  }
  .site-nav__link:hover { color: var(--paper); background: rgba(75, 227, 200, .08); }
  .site-nav__link[aria-current="page"] { color: var(--cyan); background: rgba(75, 227, 200, .1); }
  .site-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px; background: var(--cyan); }
  .nav-toggle, .nav-scrim { display: none; }
}

body.is-locked { overflow: hidden; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative; z-index: 1;
  background: var(--ink-950); border-top: 1px solid var(--line);
}
.footer-inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(28px, 3vw, 44px);
  display: grid; grid-template-columns: 1.5fr .75fr .75fr 1.5fr; gap: clamp(24px, 3vw, 52px);
}
.footer-brand__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.footer-brand__note { margin-top: 10px; max-width: 32ch; font-size: 14px; line-height: 1.7; color: var(--muted); }
.footer-brand__status {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan);
}
.footer-col__title {
  margin-bottom: 16px; font-family: var(--font-mono); font-weight: 400;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-2);
}
.footer-list { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-list a { transition: color .18s var(--ease); }
.footer-list a:hover { color: var(--cyan); }
.footer-list--contact { color: var(--paper-2); }
.footer-label {
  display: block; margin-bottom: 3px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan-deep);
}
.footer-value { font-family: var(--font-mono); font-size: 13px; color: var(--paper); word-break: break-word; }
.footer-note { margin-top: 16px; max-width: 40ch; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

.footer-base {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 16px var(--gutter) 24px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: 1.3fr .8fr .8fr; }
  .footer-col--contact { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-12 { grid-column: 1 / -1; }
  .col-start-3, .col-start-7 { grid-column-start: auto; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand, .footer-col, .footer-col--contact { grid-column: 1 / -1; }
  .brand__meta { display: none; }
}

/* ---------- 13. 无障碍与动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-on [data-reveal] { opacity: 1; transform: none; }
  .disclosure__panel { transition: none; }
}
