/* =========================================================
   爱游戏体育赛 · /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, dt, dd, fieldset { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

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

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

/* ---------- 2. tokens ---------- */
:root {
  --ink: #0A1420;
  --ink-2: #0E1B2B;
  --arena: #122A4A;
  --line: #27496F;
  --paper: #F1E9DA;
  --paper-2: #D9CDB7;
  --orange: #FF6A1A;
  --orange-2: #FFA35C;
  --green: #2FBF71;
  --ice: #E8F1F8;
  --mute: #7C93AC;
  --alert: #E5484D;

  --ink-text: #0E1A26;
  --ink-text-soft: #33414F;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: 14px;
  --cut-lg: 18px;

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

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ice);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(39, 73, 111, .22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(39, 73, 111, .22) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--ice);
}

.num,
[data-count] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

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

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

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: top .18s var(--ease);
}

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

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

.page-main { display: block; }

.section {
  position: relative;
  padding-block: clamp(40px, 7vw, 88px);
}

.section--arena { background: var(--arena); }

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

.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4 { color: var(--ink-text); }

.section--paper .note,
.section--paper .section__lead { color: var(--ink-text-soft); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  margin-bottom: clamp(20px, 3vw, 34px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section--paper .section__head { border-bottom-color: var(--paper-2); }

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.section__lead {
  font-size: 14.5px;
  color: var(--mute);
  max-width: 46ch;
}

.grid-blueprint {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
}

.col-main { grid-column: 1 / span 8; }
.col-side { grid-column: 10 / span 3; }

.prose {
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.85;
}

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

.on-paper { color: var(--ink-text-soft); }
.on-paper h1, .on-paper h2, .on-paper h3, .on-paper h4 { color: var(--ink-text); }

/* ---------- 5. index / label ---------- */
.index-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255, 106, 26, .45);
  padding: 3px 9px;
  line-height: 1.5;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mute);
}

.label-vertical {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--line);
}

/* ---------- 6. panels ---------- */
.panel {
  background: var(--arena);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.6vw, 28px);
}

.panel--arena { background: rgba(18, 42, 74, .68); }

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

.panel--paper h1,
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: var(--ink-text); }

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

/* ---------- 7. buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
    color .18s var(--ease), border-color .18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px,
    100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn--primary:hover { background: var(--orange-2); transform: translate(3px, -3px); }

.btn--ghost {
  background: transparent;
  color: var(--ice);
  border-color: var(--line);
}

.btn--ghost:hover { border-color: var(--orange); color: var(--orange-2); transform: translate(3px, -3px); }

.btn--quiet {
  background: transparent;
  color: var(--mute);
  border-color: transparent;
  padding-inline: 8px;
}

.btn--quiet:hover { color: var(--orange-2); }

/* ---------- 8. data atoms ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
}

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--ice);
}

.section--paper .stat__num,
.panel--paper .stat__num { color: var(--ink-text); }

.stat__label {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--mute);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ice);
  background: rgba(39, 73, 111, .3);
  border: 1px solid var(--line);
}

.tag--live { color: var(--green); border-color: rgba(47, 191, 113, .5); }
.tag--done { color: var(--mute); }
.tag--check { color: var(--alert); border-color: rgba(229, 72, 77, .5); }

.note {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mute);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.note--side { border-left-color: var(--orange); }

/* ---------- 9. breadcrumbs ---------- */
.crumbs { font-size: 13px; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
}

.crumbs__item::after {
  content: "/";
  color: var(--line);
  font-family: var(--font-mono);
}

.crumbs__item:last-child::after { content: none; }

.crumbs__link { color: var(--mute); transition: color .18s var(--ease); }
.crumbs__link:hover { color: var(--orange-2); }

.crumbs__current { color: var(--ice); font-weight: 600; }

/* ---------- 10. media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(150deg, var(--arena) 0%, var(--ink) 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg),
    100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg)));
}

.media-frame__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

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

.media-frame__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 16px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ice);
  background: linear-gradient(0deg, rgba(10, 20, 32, .94), rgba(10, 20, 32, 0));
}

.media-frame__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--orange);
  padding: 3px 8px;
}

/* ---------- 11. reveal ---------- */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.has-js .reveal { opacity: 0; transform: translateY(16px); }
.has-js .reveal.is-visible,
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   12. HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 20, 32, .96);
  border-bottom: 1px solid var(--line);
}

.hdr-top {
  background: var(--arena);
  border-bottom: 1px solid rgba(39, 73, 111, .75);
}

.hdr-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 28px;
  padding-block: 9px;
  font-size: 12.5px;
  line-height: 1.5;
}

.hdr-top__brand {
  color: var(--ice);
  font-weight: 700;
  letter-spacing: .04em;
}

.hdr-top__tagline {
  color: var(--orange-2);
  letter-spacing: .06em;
}

.hdr-top__util {
  margin-left: auto;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
}

.hdr-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  padding-block: 12px;
}

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

.hdr-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px,
    100% 100%, 11px 100%, 0 calc(100% - 11px));
  transition: transform .18s var(--ease);
}

.hdr-brand:hover .hdr-brand__mark { transform: translate(3px, -3px); }

.hdr-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hdr-brand__name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ice);
  letter-spacing: .04em;
}

.hdr-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--mute);
  margin-top: 3px;
}

.hdr-index {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--line);
  padding-block: 2px;
  flex: 0 0 auto;
}

.nav { margin-left: auto; }

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

.nav__link {
  position: relative;
  display: block;
  padding: 10px 13px;
  font-size: 15px;
  color: var(--ice);
  letter-spacing: .03em;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}

.nav__link:hover {
  color: var(--orange-2);
  background: rgba(39, 73, 111, .38);
}

.nav__link:hover::after { transform: scaleX(1); }

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

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

.hdr-cta { padding: 11px 18px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  color: var(--ice);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

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

.site-header[data-open] .nav-toggle {
  border-color: var(--orange);
  color: var(--orange-2);
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(39, 73, 111, .5);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

/* =========================================================
   13. FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0 16%,
    var(--green) 16% 20%,
    var(--line) 20% 100%);
}

.ftr-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 5vw, 60px);
}

.ftr-brand__mark {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ice);
  letter-spacing: .04em;
}

.ftr-brand__line {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mute);
}

.ftr-brand__note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--line);
}

.ftr-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.ftr-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange);
}

.ftr-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ftr-link {
  position: relative;
  display: inline-block;
  padding-left: 15px;
  font-size: 14.5px;
  color: var(--ice);
  transition: color .18s var(--ease);
}

.ftr-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: width .18s var(--ease), background-color .18s var(--ease);
}

.ftr-link:hover { color: var(--orange-2); }
.ftr-link:hover::before { width: 11px; background: var(--orange); }

.ftr-contact {
  background: rgba(18, 42, 74, .55);
  border-top: 1px solid rgba(39, 73, 111, .7);
  border-bottom: 1px solid rgba(39, 73, 111, .7);
}

.ftr-contact__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-block: 20px;
}

.ftr-contact__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--ice);
}

.ftr-contact__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--mute);
}

.ftr-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 18px;
  font-size: 12.5px;
  color: var(--mute);
}

.ftr-legal__item {
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ice);
  background: var(--arena);
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease),
    visibility .2s linear, border-color .18s var(--ease), color .18s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { border-color: var(--orange); color: var(--orange-2); }

/* =========================================================
   14. responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hdr-index { display: none; }
  .nav__link { padding: 10px 10px; font-size: 14.5px; }
  .nav__link::after { left: 10px; right: 10px; }
}

@media (max-width: 980px) {
  .hdr-main__inner { flex-wrap: wrap; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin-left: 0;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    padding: 6px var(--gutter) 18px;
    background: var(--arena);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .site-header[data-open] .nav { display: block; }

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

  .nav__item + .nav__item { border-top: 1px solid rgba(39, 73, 111, .5); }

  .nav__link {
    padding: 15px 4px;
    font-size: 16px;
  }

  .nav__link::after {
    left: 4px;
    right: auto;
    width: 28px;
    bottom: 9px;
  }

  .grid-blueprint { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-main { grid-column: 1 / -1; }
  .col-side { grid-column: 1 / -1; }

  .ftr-top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hdr-top__util { display: none; }
  .hdr-top__inner { padding-block: 8px; gap: 4px 18px; font-size: 12px; }
  .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-contact__inner { gap: 10px 24px; }
}

@media (max-width: 620px) {
  .hdr-brand__sub { display: none; }
  .hdr-cta { padding: 10px 13px; font-size: 13.5px; }
  .hdr-brand__mark { width: 34px; height: 34px; font-size: 12.5px; }
  .hdr-brand__name { font-size: 16px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 9px 11px; }
  .section__lead { font-size: 13.5px; }
  .prose { font-size: 16px; }
  .to-top { padding: 9px 13px; font-size: 12.5px; }
}

@media (max-width: 420px) {
  .ftr-cols { grid-template-columns: 1fr; }
  .ftr-legal__inner { gap: 8px 18px; }
}

/* ---------- 15. 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;
    scroll-behavior: auto !important;
  }

  .has-js .reveal { opacity: 1; transform: none; }
  .btn--primary:hover,
  .btn--ghost:hover,
  .hdr-brand:hover .hdr-brand__mark { transform: none; }
}
