/* ============================================================
   宝威体育赛事 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 刊头 / 页脚 / 基础组件
   ============================================================ */

/* ---------- 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, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- tokens ---------- */
:root {
  --ink: #0E2A21;
  --ink-2: #143A2D;
  --char: #131519;
  --char-2: #23262B;
  --line: #2E4C40;
  --accent: #E4FF4F;
  --accent-soft: #F2FFB0;
  --brick: #B23A2C;
  --brick-deep: #85271D;
  --paper: #F4F2E9;
  --dim: #9AA096;
  --muted: #3C5A4E;

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

  --cut: 14px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
body {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(46, 76, 64, .34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(46, 76, 64, .2) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--paper);
}

.display-xl {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.display-l { font-size: clamp(28px, 4.4vw, 40px); font-weight: 900; letter-spacing: -0.025em; }

p { max-width: 40em; }

::selection { background: var(--accent); color: var(--char); }

/* ---------- utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

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

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

.rule { height: 1px; border: 0; background: var(--line); margin-block: clamp(24px, 4vw, 48px); }
.rule--accent {
  background: linear-gradient(90deg, var(--accent) 0 12%, var(--line) 12% 100%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

.annotation { font-size: 13px; letter-spacing: .08em; color: var(--dim); }
.annotation--side {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .3em;
  color: var(--muted);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.num--lg { font-size: 18px; }

.prose { max-width: 38em; }
.prose p { margin-bottom: 1.05em; color: var(--paper); }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--accent-soft); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent { background: var(--accent); color: var(--char); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--brick { background: var(--brick); color: var(--paper); border-color: var(--brick-deep); }
.btn--brick:hover { background: var(--brick-deep); }

/* ---------- tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em;
  color: var(--dim);
}
.tag--accent { border-color: var(--accent); color: var(--accent); }
.tag--brick {
  border-color: var(--brick);
  color: var(--paper);
  background: rgba(178, 58, 44, .22);
}

/* ---------- panels ---------- */
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--cut);
  padding: clamp(16px, 3vw, 28px);
}
.panel--cut {
  border: 0;
  border-radius: 0;
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

/* ---------- ticket ---------- */
.ticket {
  position: relative;
  padding: 12px 14px 12px 18px;
  background: var(--char-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.ticket::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent);
}
.ticket--brick::before { background: var(--brick); }
.ticket--muted::before { background: var(--muted); }

/* ---------- media (页面阶段放置图像/占位) ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--cut);
  background: var(--ink-2);
}
.media > img,
.media > picture > img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--strip { aspect-ratio: 21 / 9; }

.media__tag {
  position: absolute; left: 12px; top: 12px;
  padding: 3px 10px;
  background: var(--accent); color: var(--char);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  border-radius: 3px;
}
.media__caption {
  margin-top: 8px;
  font-size: 13px; letter-spacing: .04em; color: var(--dim);
}

/* ---------- date rail ---------- */
.date-rail {
  position: relative;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.date-rail__link {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 15px; letter-spacing: .04em;
  color: var(--dim);
  transition: color .18s var(--ease);
}
.date-rail__link:hover { color: var(--paper); }
.date-rail__link[aria-current="true"],
.date-rail__link[aria-current="page"] { color: var(--accent); }
.date-rail__link[aria-current]::before {
  content: ""; position: absolute; left: -19px; top: 14px;
  width: 9px; height: 9px; border-radius: 2px; background: var(--accent);
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .04em;
  color: var(--dim);
}
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.breadcrumbs a { transition: color .18s var(--ease); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }

/* ---------- reveal ---------- */
[data-reveal-state="pending"] { opacity: 0; transform: translateY(14px); }
[data-reveal-state="shown"] {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--char);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg,
    var(--accent) 0 22%,
    var(--brick) 22% 30%,
    var(--line) 30% 100%);
}

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 120;
  padding: 10px 16px;
  background: var(--accent); color: var(--char);
  font-size: 15px; font-weight: 700;
  border-radius: 4px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gut) 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.masthead__note {
  justify-self: start;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .2em;
  color: var(--dim);
  max-width: none;
}

.brand {
  justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center;
}
.brand__name {
  font-size: 26px; font-weight: 900;
  letter-spacing: .02em; line-height: 1.1;
  color: var(--paper);
  transition: color .18s var(--ease);
}
.brand__tagline {
  font-size: 11px; letter-spacing: .24em;
  color: var(--dim);
  padding-left: .24em;
}
.brand:hover .brand__name { color: var(--accent); }

.masthead__actions {
  justify-self: end;
  display: flex; align-items: center; gap: 10px;
}
.masthead__cta { font-size: 15px; }

.nav-toggle {
  display: none;
  width: 46px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--char-2);
  transition: border-color .18s var(--ease);
}
.nav-toggle__bar {
  display: block; width: 20px; height: 2px;
  background: var(--paper);
  transition: transform .2s var(--ease), opacity .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] { border-color: var(--accent); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: var(--accent); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  background: var(--char);
  border-top: 1px solid var(--line);
}
.site-nav__list {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex; flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  list-style: none;
}
.site-nav__item { display: flex; }
.site-nav__item + .site-nav__item { border-left: 1px solid var(--line); }
.site-nav__link {
  display: block;
  padding: 13px 20px;
  font-size: 15px; font-weight: 500;
  color: var(--paper);
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.site-nav__link:hover { color: var(--accent); background: var(--char-2); }
.site-nav__link[aria-current="page"] {
  color: var(--accent);
  background: var(--char-2);
  border-bottom-color: var(--accent);
}

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--char);
  border-top: 1px solid var(--line);
  color: var(--paper);
}
.site-footer::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg,
    var(--line) 0 62%,
    var(--brick) 62% 72%,
    var(--accent) 72% 100%);
}

.footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) var(--gut) 26px;
}

.footer__top {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.footer__brand-name {
  font-size: 24px; font-weight: 900;
  letter-spacing: .02em; line-height: 1.2;
  max-width: none;
}
.footer__brand-note {
  margin-top: 6px;
  font-size: 13px; letter-spacing: .06em;
  color: var(--dim);
  max-width: none;
}
.footer__cta { font-size: 14px; padding: 10px 16px; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.footer__col-title {
  margin-bottom: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent);
  max-width: none;
}
.footer__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.footer__link {
  font-size: 15px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-list__row { display: flex; flex-direction: column; gap: 2px; }
.contact-list__label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .16em;
  color: var(--dim);
}
.contact-list__value { font-size: 15px; color: var(--paper); }
.contact-list__value--num { font-family: var(--font-mono); letter-spacing: .04em; }
.footer__service {
  font-size: 13px; line-height: 1.75;
  color: var(--dim);
  max-width: 34em;
  align-self: start;
}

.footer__bottom {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--dim);
}
.footer__legal-line { font-family: var(--font-mono); letter-spacing: .08em; max-width: none; }
.footer__legal-note { max-width: none; }
.footer__note { flex-basis: 100%; max-width: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .site-nav__link { padding: 13px 15px; font-size: 14px; }
}

@media (max-width: 900px) {
  body { font-size: 15px; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px var(--gut) 10px;
    gap: 12px;
  }
  .masthead__note { display: none; }
  .brand { justify-self: start; align-items: flex-start; text-align: left; }
  .brand__name { font-size: 22px; }
  .brand__tagline { font-size: 10px; letter-spacing: .16em; padding-left: 0; }

  .nav-toggle { display: flex; }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .24s var(--ease);
  }
  .site-nav[data-open] { max-height: 72vh; overflow-y: auto; }
  .site-nav__list {
    flex-direction: column;
    justify-content: flex-start;
    padding-inline: 0;
    max-width: none;
  }
  .site-nav__item { border-left: 0; border-top: 1px solid var(--line); }
  .site-nav__item + .site-nav__item { border-left: 0; }
  .site-nav__link {
    padding: 14px var(--gut);
    font-size: 15px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }
  .site-nav__link[aria-current="page"] {
    border-bottom: 0;
    border-left-color: var(--accent);
  }

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

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

@media (max-width: 700px) {
  .annotation--side {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: .12em;
  }
  .media--wide { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .masthead__cta { font-size: 12px; padding: 9px 12px; letter-spacing: 0; }
  .brand__name { font-size: 20px; }
  .footer__top { align-items: flex-start; }
  .footer__brand-name { font-size: 20px; }
  .footer__cols { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@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;
  }
  .btn:hover { transform: none; }
  [data-reveal-state] { opacity: 1 !important; transform: none !important; }
  .scroll-progress { transition: none !important; }
}
