/* ============================================================
   B体育移动端 · 共享外壳样式 /assets/site.css
   赛场档案室：深墨绿底 + 荧光酸橙索引 + 青蓝数据 + 暖沙收尾
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #071A14;
  --ink-2: #0E2A21;
  --lime: #B6F04A;
  --cyan: #4FD1E0;
  --sand: #D9C7A3;
  --bone: #F2EFE4;
  --rock: #2A3B34;
  --clay: #C97A5A;
  --mist: #8FA69B;
  --veil: #123B33;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --stroke: 1px solid var(--rock);
  --stroke-soft: 1px solid rgba(42, 59, 52, 0.75);
  --shell: 1320px;
  --gutter: clamp(18px, 4vw, 44px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, svg, video, canvas { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

[id] { scroll-margin-top: 104px; }

/* ---------- 3. Base typography ---------- */
body {
  background-color: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--bone);
}

p { max-width: 64ch; }

strong, b { font-weight: 700; }

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.16s var(--ease);
}

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

code, kbd, samp, .mono { font-family: var(--font-mono); }

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

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

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

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--rock);
  color: var(--bone);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- 6. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 13px;
  border-bottom: var(--stroke-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
}

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

.breadcrumb__sep {
  color: var(--rock);
  font-size: 10px;
}

.breadcrumb__current {
  color: var(--bone);
  letter-spacing: 0.06em;
}

/* ---------- 7. Page head & prose ---------- */
.page-head {
  padding-block: clamp(30px, 5vw, 58px) clamp(20px, 3vw, 34px);
}

.page-title {
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--lime);
}

.lede {
  margin-top: 18px;
  max-width: 60ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: rgba(242, 239, 228, 0.78);
}

.prose { max-width: 70ch; }

.prose p + p,
.prose ul + p,
.prose p + ul { margin-top: 1em; }

.prose h3 {
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}

.prose ul { margin-top: 0.6em; }

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

.prose li + li { margin-top: 0.4em; }

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

.prose a { text-decoration: underline; }

/* ---------- 8. Grid ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

/* ---------- 9. Section heads ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 12px;
  margin-bottom: clamp(18px, 3vw, 30px);
  border-bottom: var(--stroke);
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.1;
}

.section-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.rule {
  border: 0;
  border-top: var(--stroke);
  margin-block: clamp(24px, 4vw, 40px);
}

/* ---------- 10. Card ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-2);
  border: var(--stroke);
  border-radius: 0;
}

.card__title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* ---------- 11. Tags & chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--rock);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--accent {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.tag--warn {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--bone);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--rock);
  border-radius: 0;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

/* ---------- 12. Stats ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 2px solid var(--rock);
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--lime);
}

.stat__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 13. Media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  border: var(--stroke);
  border-radius: 0;
}

.media-frame--wide { aspect-ratio: 16 / 9; }

.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02) brightness(0.94);
}

.media-frame__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 10px;
  background: rgba(18, 59, 51, 0.88);
  border-top: 1px solid rgba(79, 209, 224, 0.35);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.media-frame__caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 14. Reveal protocol ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js [data-reveal][data-reveal-state="in"] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   15. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  background-image: linear-gradient(180deg, #092219 0%, var(--ink) 68%);
  border-bottom: var(--stroke);
  transition: background-color 0.2s var(--ease);
}

/* skip link */
.skip-link {
  position: absolute;
  top: -64px;
  left: 12px;
  z-index: 200;
  display: inline-block;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  color: var(--ink);
  outline-color: var(--bone);
}

/* status bar */
.status-bar {
  background: var(--ink-2);
  border-bottom: var(--stroke);
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.28s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-condensed] .status-bar {
  max-height: 0;
  opacity: 0;
}

.status-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 7px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.status-bar__dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--lime);
}

.status-bar__text {
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(242, 239, 228, 0.88);
}

.status-bar__meta {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

@media (prefers-reduced-motion: no-preference) {
  .status-bar__dot { animation: status-pulse 2.6s ease-in-out infinite; }

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

/* brand row */
.header-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--bone);
  text-decoration: none;
}

.brand:hover { color: var(--bone); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.18s var(--ease);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark { background: var(--bone); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__line {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--mist);
  white-space: nowrap;
}

.header-cta {
  margin-left: auto;
  flex: none;
}

/* nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 12px;
  border: 1px solid var(--rock);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 14px;
  height: 10px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars span:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

.nav-toggle__label {
  line-height: 1;
}

/* navigation */
.header-nav {
  display: none;
  border-top: var(--stroke);
  background: var(--ink-2);
}

.site-nav {
  display: block;
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-nav__item { flex: none; }

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 12px 16px;
  color: rgba(242, 239, 228, 0.72);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.site-nav__item + .site-nav__item .site-nav__link {
  border-left: var(--stroke-soft);
}

.site-nav__item:first-child .site-nav__link { padding-left: 0; }

.site-nav__link:hover {
  background: rgba(182, 240, 74, 0.07);
  color: var(--lime);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(143, 166, 155, 0.75);
}

.site-nav__link[aria-current="page"] {
  background: rgba(182, 240, 74, 0.07);
  color: var(--lime);
  box-shadow: inset 0 -2px 0 0 var(--lime);
}

.site-nav__link[aria-current="page"] .site-nav__index { color: var(--lime); }

.site-nav__label { line-height: 1.4; }

/* progress line */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ============================================================
   16. Footer
   ============================================================ */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-2);
  border-top: var(--stroke);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 60px);
  padding-block: clamp(36px, 6vw, 64px);
}

.footer-brand__name {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--bone);
}

.footer-brand__line {
  margin-top: 12px;
  padding-top: 12px;
  max-width: 34ch;
  border-top: 2px solid var(--sand);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(242, 239, 228, 0.72);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
}

.footer-col__title {
  margin-bottom: 14px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: rgba(242, 239, 228, 0.76);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-meta {
  background: var(--sand);
  color: #0B241C;
}

.footer-meta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 28px;
  padding-block: 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer-contact {
  max-width: none;
  color: #0B241C;
  line-height: 1.6;
}

.footer-icp {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #0B241C;
}

.footer-copy {
  margin-left: auto;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(11, 36, 28, 0.74);
}

/* ============================================================
   17. Responsive
   ============================================================ */
@media (max-width: 959px) {
  .site-nav__list {
    flex-direction: column;
    overflow: visible;
  }

  .site-nav__item { width: 100%; }

  .site-nav__link {
    padding: 14px 0;
    padding-left: 0;
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .site-nav__item + .site-nav__item .site-nav__link {
    border-left: 0;
    border-top: var(--stroke-soft);
  }

  .site-nav__link[aria-current="page"] {
    box-shadow: inset 2px 0 0 0 var(--lime);
    padding-left: 10px;
  }

  .site-header[data-open] .header-nav {
    display: block;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
  }
}

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

@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

@media (max-width: 759px) {
  .status-bar__meta { display: none; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }

  .brand__line { display: none; }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .header-cta {
    padding: 9px 10px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }

  .nav-toggle { padding: 8px 10px; }

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

  .footer-copy { margin-left: 0; }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
}

/* ============================================================
   18. Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-bar { transition: none; }
}
