/* =====================================================
   宝威体育 · 全站共享样式  /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, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* ---------- 2. TOKENS ---------- */
:root {
  --navy: #0A1F44;
  --navy-deep: #061229;
  --panel: #12305E;
  --rail: #1E4A8A;
  --neon: #00FFAA;
  --neon-text: #14C98A;
  --pulse: #FF4C29;
  --ink: #E8F1FF;
  --muted: #9BB0CE;
  --sand: #FFD166;

  --shell: 1440px;
  --gutter: 72px;
  --pill: 999px;
  --cut: 16px;
  --ease: cubic-bezier(.22, .68, .28, 1);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step-96: 96px;
  --step-64: 64px;
  --step-40: 40px;
  --step-28: 28px;
  --step-20: 20px;
  --step-16: 16px;
  --step-13: 13px;
}

/* ---------- 3. BASE ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--navy);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, rgba(0, 255, 170, .08), transparent 62%),
    radial-gradient(880px 520px at 2% 18%, rgba(255, 76, 41, .07), transparent 66%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-16);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: fixed;
  top: -120px;
  left: var(--gutter);
  z-index: 200;
  padding: 12px 20px;
  background: var(--neon);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: 2px;
  transition: top .2s var(--ease);
}

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

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

.section {
  position: relative;
  padding-block: clamp(60px, 9vw, 140px);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 80px);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: 56px;
  align-items: start;
}

.split--flip {
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
}

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

/* ---------- 5. TYPOGRAPHY ---------- */
.t-display {
  font-size: clamp(42px, 8.6vw, var(--step-96));
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.01em;
}

.t-64 {
  font-size: clamp(32px, 5.4vw, var(--step-64));
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.01em;
}

.t-40 {
  font-size: clamp(26px, 3.2vw, var(--step-40));
  font-weight: 800;
  line-height: 1.16;
}

.t-28 {
  font-size: clamp(20px, 2.2vw, var(--step-28));
  font-weight: 700;
  line-height: 1.32;
}

.t-20 { font-size: var(--step-20); line-height: 1.5; font-weight: 600; }
.t-16 { font-size: var(--step-16); }
.t-13 { font-size: var(--step-13); }

.t-thin {
  font-weight: 200;
  letter-spacing: .01em;
}

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

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

.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lede {
  max-width: 34em;
  font-size: var(--step-20);
  line-height: 1.7;
  color: var(--ink);
}

.prose {
  max-width: 34em;
}

.prose p + p { margin-top: 1.1em; }

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

.link-line {
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .32s var(--ease), color .2s var(--ease);
}

.link-line:hover,
.link-line:focus-visible {
  background-size: 100% 1px;
  color: var(--neon);
}

/* ---------- 6. BUTTONS & TAGS ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--rail);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--pill);
  font-size: var(--step-16);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .24s var(--ease), background .24s var(--ease),
              color .24s var(--ease), border-color .24s var(--ease),
              box-shadow .24s var(--ease);
}

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

.btn--ghost:hover,
.btn--ghost:focus-visible {
  --btn-bd: var(--neon);
  --btn-fg: var(--neon);
  box-shadow: 0 12px 26px -16px var(--neon);
}

.btn--accent {
  --btn-bg: var(--neon);
  --btn-fg: var(--navy-deep);
  --btn-bd: var(--neon);
  font-weight: 700;
}

.btn--accent:hover {
  --btn-bg: #5cffcd;
  box-shadow: 0 14px 30px -16px var(--neon);
}

.btn--pulse {
  --btn-bg: var(--pulse);
  --btn-fg: #FFFFFF;
  --btn-bd: var(--pulse);
  font-weight: 700;
}

.btn--pulse:hover {
  --btn-bg: #ff6f52;
}

.btn--small {
  padding: 8px 15px;
  font-family: var(--font-mono);
  font-size: var(--step-13);
  letter-spacing: -.01em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: var(--step-13);
  line-height: 1;
  color: var(--muted);
  background: rgba(18, 48, 94, .6);
  border: 1px solid var(--rail);
  border-radius: 2px;
}

.tag--neon { color: var(--neon); border-color: rgba(0, 255, 170, .45); background: rgba(0, 255, 170, .08); }
.tag--pulse { color: var(--pulse); border-color: rgba(255, 76, 41, .5); background: rgba(255, 76, 41, .1); }
.tag--sand { color: var(--sand); border-color: rgba(255, 209, 102, .45); background: rgba(255, 209, 102, .08); }

/* ---------- 7. SHAPES ---------- */
.cut {
  --cut: 16px;
  clip-path: polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut)
  );
  transition: clip-path .28s var(--ease);
}

.cut--flip {
  clip-path: polygon(
    0 0, calc(100% - var(--cut)) 0,
    100% var(--cut), 100% 100%,
    var(--cut) 100%, 0 calc(100% - var(--cut))
  );
}

.cut--hover:hover,
.cut--hover:focus-within {
  clip-path: polygon(
    0 0, calc(100% - var(--cut)) 0,
    100% var(--cut), 100% 100%,
    var(--cut) 100%, 0 calc(100% - var(--cut))
  );
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(30, 74, 138, .8);
  padding: clamp(20px, 2.4vw, 32px);
}

.panel--deep {
  background: var(--navy-deep);
  border-color: rgba(30, 74, 138, .55);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--neon), rgba(0, 255, 170, 0));
}

.slash {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.slash::before,
.slash::after {
  content: "";
  position: absolute;
  left: -25%;
  width: 150%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 170, .5), transparent);
  transform: rotate(-12deg);
  transform-origin: 0 50%;
}

.slash::before { top: 34%; }
.slash::after { top: 68%; background: linear-gradient(90deg, transparent, rgba(255, 76, 41, .35), transparent); }

/* ---------- 8. MEDIA FRAME ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid rgba(30, 74, 138, .7);
  border-radius: 2px;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.media-frame:hover img { transform: scale(1.03); }

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(6, 18, 41, .85);
  font-family: var(--font-mono);
  font-size: var(--step-13);
  color: var(--muted);
}

/* ---------- 9. CHAPTER / DATA / BREADCRUMB ---------- */
.chapter {
  position: relative;
  padding-left: clamp(0px, 6vw, 116px);
}

.chapter__num {
  position: absolute;
  left: 0;
  top: -.08em;
  font-family: var(--font-mono);
  font-size: clamp(44px, 7vw, var(--step-96));
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--rail);
  pointer-events: none;
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 74, 138, .5);
}

.data-row__label { color: var(--muted); font-size: var(--step-16); }

.data-row__value {
  font-family: var(--font-mono);
  font-size: var(--step-20);
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--neon);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--step-13);
  color: var(--muted);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--rail);
}

.crumbs a { color: var(--muted); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--neon); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 10. REVEAL ---------- */
[data-reveal] {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

[data-reveal].is-armed {
  opacity: 0;
  transform: translateY(22px);
}

/* ---------- 11. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-block: 18px;
  background: rgba(6, 18, 41, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 74, 138, .45);
  transition: padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}

.site-header.is-compact {
  padding-block: 7px;
  background: rgba(6, 18, 41, .94);
  border-bottom-color: rgba(0, 255, 170, .28);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--pulse));
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 52px;
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--neon);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: var(--step-16);
  font-weight: 700;
  letter-spacing: -.02em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .3s var(--ease), width .3s var(--ease), height .3s var(--ease), font-size .3s var(--ease);
}

.brand:hover .brand__glyph {
  transform: translateY(-3px) rotate(-3deg);
}

.brand__text strong {
  display: block;
  font-size: var(--step-20);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .02em;
  transition: font-size .3s var(--ease);
}

.brand__text em {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: var(--step-13);
  letter-spacing: .14em;
  color: var(--muted);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.site-header.is-compact .brand__glyph { width: 36px; height: 36px; font-size: var(--step-13); }
.site-header.is-compact .brand__text strong { font-size: var(--step-16); }
.site-header.is-compact .brand__text em { opacity: 0; transform: translateY(-4px); }

/* nav pill */
.nav-pill {
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 6px;
  background: rgba(18, 48, 94, .55);
  border: 1px solid rgba(30, 74, 138, .8);
  border-radius: var(--pill);
}

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

.nav-pill__item {
  position: relative;
}

.nav-pill__link {
  display: block;
  padding: 9px 15px;
  border-radius: var(--pill);
  font-size: var(--step-16);
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.nav-pill__link:hover {
  color: var(--ink);
  background: rgba(30, 74, 138, .5);
  transform: translateY(-4px);
}

.nav-pill__link[aria-current="page"] {
  color: var(--navy-deep);
  background: var(--neon);
  font-weight: 700;
}

.nav-pill__sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(6, 18, 41, .97);
  border: 1px solid var(--rail);
  border-radius: var(--pill);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}

.nav-pill__item:hover .nav-pill__sub,
.nav-pill__item:focus-within .nav-pill__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-pill__sub a {
  display: block;
  padding: 6px 13px;
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: var(--step-13);
  color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}

.nav-pill__sub a:hover {
  color: var(--neon);
  background: rgba(0, 255, 170, .1);
}

.site-header.is-compact .nav-pill__link {
  padding-block: 6px;
  font-size: var(--step-13);
}

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

/* toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rail);
  border-radius: var(--pill);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

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

.nav-toggle__bars {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
}

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

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

/* ---------- 12. FOOTER ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(80px, 10vw, 160px);
  background: var(--navy-deep);
  border-top: 1px solid rgba(30, 74, 138, .7);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 170, .6), transparent);
  pointer-events: none;
}

.footer-shell {
  padding-block: clamp(48px, 6vw, 84px) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}

.footer-brand .brand--footer .brand__glyph { width: 38px; height: 38px; font-size: var(--step-13); }
.footer-brand .brand--footer .brand__text strong { font-size: var(--step-20); }

.footer-lede {
  max-width: 28em;
  margin-top: 18px;
  font-size: var(--step-16);
  line-height: 1.75;
  color: var(--muted);
}

.footer-col__title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: var(--step-13);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--neon-text);
}

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

.footer-list a {
  font-size: var(--step-16);
  color: var(--ink);
}

.footer-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  padding-top: 32px;
  border-top: 1px dashed rgba(30, 74, 138, .8);
}

.footer-item__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: var(--step-13);
  letter-spacing: .12em;
  color: var(--muted);
}

.footer-item__value {
  font-size: var(--step-16);
  color: var(--ink);
  overflow-wrap: break-word;
}

.footer-note {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: var(--step-13);
  color: var(--muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(30, 74, 138, .5);
  font-family: var(--font-mono);
  font-size: var(--step-13);
  color: var(--muted);
}

.footer-legal { color: var(--muted); }

/* ---------- 13. RESPONSIVE ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
}

@media (max-width: 1080px) {
  .site-header { padding-block: 12px; }

  .header-shell { gap: 12px; }

  .nav-toggle { display: block; }

  .nav-pill {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    margin-inline: 0;
    display: block;
    padding: 14px;
    border-radius: 12px;
    background: rgba(6, 18, 41, .98);
    border-color: rgba(30, 74, 138, .95);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(.98);
    transform-origin: 50% 0;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }

  .nav-pill[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-pill__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-pill__link {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: var(--step-20);
  }

  .nav-pill__link:hover { transform: none; }

  .nav-pill__sub { display: none; }

  .site-header.is-compact .nav-pill__link { padding-block: 14px; font-size: var(--step-20); }
}

@media (max-width: 900px) {
  .split,
  .split--flip,
  .split--even {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }

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

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

  .header-actions__sub { display: none; }

  .chapter { padding-left: 0; }

  .chapter__num {
    position: static;
    display: block;
    margin-bottom: 10px;
    font-size: 46px;
  }

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

@media (max-width: 480px) {
  .brand__text em { display: none; }
  .brand__glyph { width: 38px; height: 38px; font-size: var(--step-13); }
}

/* ---------- 14. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .btn:hover { transform: none; }
  .nav-pill__link:hover { transform: none; }
  .brand:hover .brand__glyph { transform: none; }
  .media-frame:hover img { transform: none; }
  [data-reveal].is-armed { opacity: 1; transform: none; }
}
