/* =========================================================
   /assets/site.css — 8体育主站 共享样式
   控制台 + 展览画册：墨黑底、荧光青描边、暖纸白阅读区
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0A0E14;
  --navy: #101A2B;
  --panel: #1B2433;
  --paper: #F2EAD9;
  --cyan: #38F2D0;
  --teal: #1FA894;
  --orange: #FF8A3D;
  --red: #E4573D;
  --muted: #8FA0B5;
  --green: #7BD88F;
  --line: #2C3A4E;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 3px;

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

  --fs-label: 12px;
  --fs-sm: 14px;
  --fs-body: 16px;
  --fs-h4: 20px;
  --fs-h3: clamp(22px, 2.2vw, 28px);
  --fs-h2: clamp(28px, 3.6vw, 44px);
  --fs-h1: clamp(34px, 5vw, 72px);
  --fs-hero: clamp(44px, 8vw, 112px);
}

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

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

ul, ol { list-style: none; }

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

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

a { color: inherit; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}

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

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

/* ---------- 3. 文字工具 ---------- */
.mono {
  font-family: var(--font-num);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--font-num);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.label {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--paper);
  max-width: 38em;
}

.prose p {
  max-width: 38em;
  margin-bottom: 1.15em;
}

.prose p:last-child { margin-bottom: 0; }

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

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

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

.section--paper .label,
.section--paper .eyebrow { color: var(--teal); }

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

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

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

.stack > * + * { margin-top: var(--stack, 16px); }

.chapter {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.chapter__num {
  font-size: var(--fs-h2);
  color: var(--cyan);
  line-height: .9;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(24px, 4vw, 48px);
}

.slice {
  clip-path: polygon(0 0, 100% 0, calc(100% - clamp(24px, 4vw, 64px)) 100%, 0 100%);
}

/* ---------- 5. 组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn--cta {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(255, 138, 61, .28), 0 14px 26px -16px rgba(255, 138, 61, .95);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--cyan);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 28px);
}

.panel--navy { background: var(--navy); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 24px);
  transition: border-color .18s ease, transform .18s ease;
}

.card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

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

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

.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1.6;
}

.tag--archive { color: var(--red); }
.tag--live { color: var(--green); }

.score {
  font-family: var(--font-num);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    radial-gradient(circle at 28% 18%, rgba(56, 242, 208, .16), transparent 62%),
    radial-gradient(circle at 82% 88%, rgba(255, 138, 61, .12), transparent 58%),
    linear-gradient(152deg, #132039 0%, #0A0E14 72%);
}

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

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.06) brightness(.94);
}

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--paper);
  background: linear-gradient(to top, rgba(10, 14, 20, .92), rgba(10, 14, 20, 0));
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
}

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

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
  transition: color .16s ease;
}

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

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

/* ---------- 6. 页头 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: 0;
  z-index: 200;
  transform: translateY(-160%);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  isolation: isolate;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(44, 58, 78, .5) 1px, transparent 1px);
  background-size: 88px 100%;
  opacity: .28;
}

.site-header__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

.site-header__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-label);
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(123, 216, 143, .16);
}

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

.brand__mark {
  padding: 7px 10px 6px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.12;
}

.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--paper);
}

.brand__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--muted);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ico-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.ico-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.ico-btn__label { white-space: nowrap; }

.ico-btn__grid {
  width: 16px;
  height: 16px;
  flex: none;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.5px);
  background-size: 8px 8px;
}

.ico-btn__bars {
  position: relative;
  width: 16px;
  height: 2px;
  flex: none;
  background: currentColor;
}

.ico-btn__bars::before,
.ico-btn__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.ico-btn__bars::before { top: -5px; }
.ico-btn__bars::after { top: 5px; }

.nav-toggle { display: none; }

.site-nav {
  border-top: 1px solid var(--line);
  background: #0C121C;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-nav a {
  position: relative;
  display: block;
  padding: 12px 16px 11px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a[aria-current="page"] {
  color: var(--cyan);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-drawer {
  position: absolute;
  top: 100%;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  z-index: 6;
  display: none;
  width: min(440px, calc(100vw - var(--gutter) * 2));
  padding: 22px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  box-shadow: 0 30px 60px -30px #000;
}

.site-drawer[data-open] {
  display: grid;
  gap: 18px;
}

.site-drawer__title {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange);
}

.site-drawer__label {
  margin-bottom: 8px;
  font-size: var(--fs-label);
  letter-spacing: .16em;
  color: var(--muted);
}

.site-drawer__group ul {
  display: grid;
  gap: 6px;
}

.site-drawer__group a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  color: var(--paper);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

.site-drawer__group a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--cyan);
}

.site-drawer__group a:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

.site-drawer__chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

.site-drawer__chips a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .08em;
}

.site-drawer__chips a::before { display: none; }

.site-drawer__chips a:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  transform: none;
}

.scroll-meter {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(56, 242, 208, .55);
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  background: var(--navy);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 96px;
  height: 2px;
  background: var(--cyan);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 72px);
}

.site-footer .brand__name { font-size: 18px; }

.site-footer__line {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--muted);
}

.site-footer__title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__list li { margin-bottom: 8px; }

.site-footer__list a {
  display: inline-block;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.site-footer__list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.site-footer__contact dt {
  margin-top: 12px;
  font-size: var(--fs-label);
  letter-spacing: .14em;
  color: var(--muted);
}

.site-footer__contact dt:first-child { margin-top: 0; }

.site-footer__contact dd {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.site-footer__base {
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 20, .5);
}

.site-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}

.site-footer__legal {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.site-footer__list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__list--inline li { margin-bottom: 0; }

.site-footer__list--inline a {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 8. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s cubic-bezier(.2, .7, .2, 1), transform .55s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .site-header__grid {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .site-header__meta { display: none; }
  .site-header__brand { justify-self: start; }

  .brand { justify-self: start; }

  .site-header__actions { justify-self: end; }

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

  .site-nav {
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--navy);
    border-top: 1px solid var(--line);
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 16px;
  }

  .site-nav__list li + li { border-top: 1px solid rgba(44, 58, 78, .7); }

  .site-nav a { padding: 14px 2px; }

  .site-nav a::after { display: none; }

  .site-drawer {
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
  }

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

@media (max-width: 760px) {
  .site-footer__base-inner { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .site-header__grid { padding-block: 10px; }

  .btn {
    padding: 8px 12px;
    font-size: 13px;
    letter-spacing: .04em;
  }

  .ico-btn {
    padding: 8px 9px;
    gap: 0;
  }

  .ico-btn__label { display: none; }

  .brand__mark {
    padding: 6px 8px 5px;
    font-size: 15px;
  }

  .brand__name { font-size: 16px; }

  .brand__tag { display: none; }

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

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

@media (max-width: 480px) {
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .site-header__actions { gap: 6px; }
}

/* ---------- 10. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .skip-link { transition: none; }
  .scroll-meter { transition: none; }
  .btn:hover,
  .card:hover,
  .ico-btn:hover,
  .site-drawer__group a:hover { transform: none; }
}
