/* ==========================================================================
   AB体育官网 · /assets/site.css
   共享外壳：重置、变量、中文排版、页头、页脚、通用组件、响应式
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 132px;
}

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

/* ---------- 2. Tokens ---------- */
:root {
  /* color */
  --ink-900: #07130F;
  --ink-700: #0E241C;
  --pitch: #1E3A2E;
  --lime: #C8FF3D;
  --lime-soft: #E7FFB0;
  --orange: #FF6A1F;
  --paper: #F4F1E8;
  --paper-line: #DCD7C8;
  --cool: #9AA6A0;
  --ink-text: #101A16;
  --ember: #B8480F;
  --focus: #E7FFB0;

  /* type */
  --font-display: 'Barlow Condensed', 'Oswald', 'PingFang SC', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --font-num: ui-monospace, 'JetBrains Mono', 'SF Mono', Consolas, 'Roboto Mono', monospace;
  --font-body: 'PingFang SC', 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;

  /* layout */
  --shell-max: 1280px;
  --shell-x: clamp(18px, 4vw, 56px);
  --hair: 1px solid var(--pitch);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 104px;
}

/* ---------- 3. Base ---------- */
body {
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5vw, 64px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(19px, 2vw, 22px); letter-spacing: 0; }

p { text-wrap: pretty; }

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--ink-text);
  outline-offset: -6px;
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2.6vw, 32px);
}

.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section--paper {
  background: var(--paper);
  color: var(--ink-text);
}

.section--paper :focus-visible {
  outline-color: var(--ember);
}

/* ---------- 6. Header : top line ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink-900);
  border-bottom: var(--hair);
}

.header-top {
  background: var(--ink-700);
  border-bottom: var(--hair);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 36px;
  padding-block: 7px;
}

.header-top__note {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .07em;
  color: var(--cool);
}

.header-top__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, .16);
}

.header-top__link {
  flex: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--paper);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--pitch);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.header-top__link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ---------- 7. Header : brand + nav ---------- */
.header-bar { position: relative; }

.header-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  background: var(--lime);
  color: var(--ink-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing: .01em;
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.brand:hover .brand__name,
.brand:focus-visible .brand__name { color: var(--lime); }

.site-nav { margin-inline-start: auto; }

.site-nav__list {
  display: flex;
  align-items: stretch;
}

.site-nav__item {
  position: relative;
  display: flex;
}

.site-nav__item + .site-nav__item::before {
  content: "";
  width: 1px;
  height: 15px;
  align-self: center;
  background: var(--pitch);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 11px clamp(9px, 1.3vw, 17px);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--paper);
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: clamp(9px, 1.3vw, 17px);
  bottom: 3px;
  width: 18px;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}

.site-nav__link:hover { color: var(--lime); }
.site-nav__link:hover::after { transform: scaleX(1); }

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

/* ---------- 8. Header : toggle + meter ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-inline-start: auto;
  padding: 9px 13px;
  background: var(--ink-700);
  border: var(--hair);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--lime);
  transition: transform .26s var(--ease), opacity .26s var(--ease);
}

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

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

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

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime) 55%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- 9. Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--ink-700);
  border: var(--hair);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .26s var(--ease), transform .26s var(--ease),
              visibility .26s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-text);
}

.to-top__arrow { color: var(--lime); font-size: 15px; line-height: 1; }
.to-top:hover .to-top__arrow { color: var(--ink-text); }

.to-top__text { line-height: 1; }

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--ink-700);
  border-top: var(--hair);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.7fr;
  gap: clamp(24px, 3.4vw, 56px);
  padding-block: clamp(38px, 5vw, 68px) clamp(26px, 3.6vw, 44px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 30px);
  letter-spacing: .01em;
  line-height: 1.1;
  color: var(--paper);
}

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

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pitch);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.4;
  color: var(--lime);
}

.footer-col__list {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col--contact .footer-col__list { gap: 10px; }

.footer-link {
  display: inline-block;
  color: var(--paper);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

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

.footer-link--inline {
  color: var(--lime);
  border-bottom: 1px solid rgba(200, 255, 61, .45);
}

.footer-link--inline:hover { transform: none; color: var(--lime-soft); }

.footer-meta {
  display: flex;
  gap: 9px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(244, 241, 232, .84);
  font-variant-numeric: tabular-nums;
}

.footer-meta__key {
  flex: none;
  color: var(--cool);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  padding-top: 1px;
}

.footer-hint {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--cool);
}

.footer-hint .footer-link { font-size: inherit; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
  border-top: 1px solid var(--pitch);
}

.footer-legal__line,
.footer-legal__note {
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--cool);
}

/* ---------- 11. Buttons ---------- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 1.2;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--pitch);
}

.btn--ghost:hover {
  --btn-fg: var(--lime);
  border-color: var(--lime);
}

.btn--orange {
  --btn-bg: var(--orange);
  --btn-fg: #14090A;
}

.btn--ink {
  --btn-bg: var(--ink-700);
  --btn-fg: var(--paper);
  border-color: var(--pitch);
}

.btn--ink:hover {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink-text);
  border-color: var(--lime);
}

/* ---------- 12. Panels / bands / stats ---------- */
.panel {
  position: relative;
  background: var(--ink-700);
  border: var(--hair);
  padding: clamp(18px, 2.4vw, 30px);
}

.panel--notch {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.panel--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-text);
}

.panel--paper {
  background: var(--paper);
  border-color: var(--paper-line);
  color: var(--ink-text);
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(14px, 3vw, 40px);
  padding-block: clamp(14px, 2vw, 20px);
  border-top: 1px solid var(--pitch);
  border-bottom: 1px solid var(--pitch);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

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

.stat__num--orange { color: var(--orange); }

.stat__label {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--cool);
}

/* ---------- 13. Tags / eyebrow / breadcrumb ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(200, 255, 61, .07);
  border: 1px solid var(--pitch);
  color: var(--lime);
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .1em;
  line-height: 1.4;
}

.tag--orange {
  background: rgba(255, 106, 31, .1);
  border-color: rgba(255, 106, 31, .34);
  color: var(--orange);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .18em;
  line-height: 1.5;
  color: var(--lime);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 13px;
  border-bottom: var(--hair);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--cool);
}

.breadcrumb a {
  color: var(--cool);
  transition: color .2s var(--ease);
}

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

.breadcrumb__sep { color: var(--pitch); }

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

/* ---------- 14. Prose ---------- */
.prose {
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.75;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2,
.prose h3 { margin-top: 2em; }

.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 1.35em;
}

.prose ol { list-style: decimal; }

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

.prose a {
  color: var(--lime);
  border-bottom: 1px solid currentColor;
}

.prose--paper a { color: var(--ember); }

/* ---------- 15. Media frames ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: var(--hair);
  background:
    repeating-linear-gradient(90deg, rgba(30, 58, 46, .85) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(30, 58, 46, .85) 0 1px, transparent 1px 56px),
    var(--ink-700);
}

.media--wide { aspect-ratio: 16 / 9; }
.media--pano { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }

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

.media__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  background: var(--lime);
  color: var(--ink-text);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.5;
}

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 8px 12px;
  background: rgba(7, 19, 15, .84);
  border-top: 1px solid var(--pitch);
  border-right: 1px solid var(--pitch);
  color: var(--paper);
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.6;
}

/* ---------- 16. Scroll-spy hook ---------- */
[data-spy-link].is-active {
  color: var(--lime);
  border-color: var(--lime);
}

/* ---------- 17. Responsive : header drawer ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    width: min(340px, 85vw);
    padding: calc(var(--header-h) + 10px) 20px 32px;
    background: var(--ink-700);
    border-left: var(--hair);
    box-shadow: -24px 0 64px rgba(0, 0, 0, .5);
    overflow-y: auto;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .36s var(--ease), visibility .36s var(--ease);
  }

  .site-header[data-open] .site-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__item { display: block; }
  .site-nav__item + .site-nav__item { border-top: var(--hair); }
  .site-nav__item + .site-nav__item::before { display: none; }

  .site-nav__link {
    display: block;
    padding: 15px 4px;
    font-size: 17px;
  }

  .site-nav__link::after {
    left: 4px;
    bottom: 9px;
  }

  .site-header[data-open]::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(7, 19, 15, .72);
  }

  body.nav-open { overflow: hidden; }
}

/* ---------- 18. Responsive : footer & grids ---------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__note { max-width: 46ch; }
}

@media (max-width: 900px) {
  .grid--7-5,
  .grid--8-4,
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 96px; }

  .header-top__inner { flex-wrap: wrap; gap: 4px 16px; }
  .header-top__note { font-size: 11px; letter-spacing: .04em; }
  .header-top__link { font-size: 12px; }

  .header-bar__inner { min-height: 58px; }

  .brand__mark { width: 36px; height: 31px; font-size: 17px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-legal { flex-direction: column; align-items: flex-start; }

  .to-top { padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .header-top__note { display: none; }
  .header-top__inner { justify-content: flex-end; }
}

/* ---------- 19. Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .footer-link:hover,
  .to-top { transform: none !important; }
}
