/* ============================================================
   亚慱体育 · 共享站点样式 /assets/site.css
   深夜数据观战室：蓝图网格 + 纸层卡片 + 铜金结构线 + 青绿数据层
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: inherit; }

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

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

/* ---------- 02 Tokens ---------- */
:root {
  color-scheme: dark;

  --ink-950: #0A090C;
  --ink-800: #16141A;
  --wine-700: #6B1226;
  --wine-400: #A83A55;
  --copper-500: #C9873C;
  --copper-200: #EBCB9C;
  --cyan-400: #35E8C8;
  --paper-100: #F2EFE8;
  --slate-400: #8E8C96;
  --earth-500: #B4563A;

  --line-soft: rgba(242, 239, 232, 0.10);
  --line-mid: rgba(242, 239, 232, 0.20);
  --line-copper: rgba(201, 135, 60, 0.55);

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

  --shell-max: 1440px;
  --gutter: clamp(16px, 3vw, 40px);
  --grid-gap: 24px;
  --radius: 0px;
}

/* ---------- 03 Base type & blueprint ground ---------- */
body {
  background-color: var(--ink-950);
  background-image:
    linear-gradient(rgba(242, 239, 232, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 232, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--paper-100);
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.35vw + 14px, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.title-xl { font-size: clamp(38px, 6.4vw, 96px); }
.title-lg { font-size: clamp(26px, 3.6vw, 56px); }
.title-md { font-size: clamp(19px, 1.6vw, 28px); letter-spacing: -0.01em; }

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper-500);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--copper-500);
}

.lede {
  font-size: clamp(16px, 1.1vw + 12px, 20px);
  line-height: 1.7;
  color: var(--copper-200);
}

.prose { color: rgba(242, 239, 232, 0.84); max-width: 62ch; }
.prose p + p { margin-top: 0.9em; }
.prose strong { color: var(--paper-100); }
.prose a { color: var(--copper-200); text-decoration-color: var(--line-copper); }

.rule-hairline {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line-soft);
}

/* ---------- 04 Layout shell & sections ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 96px);
}
.section--tight { padding-block: clamp(22px, 3vw, 48px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(18px, 2.4vw, 36px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- 05 Blueprint grid ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 06 Paper plates ---------- */
.plate {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(160deg, var(--ink-800) 0%, #121016 72%);
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 42px -34px rgba(0, 0, 0, 0.96);
  transition: transform 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.plate:hover {
  transform: translateY(-4px);
  border-color: var(--line-copper);
  box-shadow: 0 0 0 1px rgba(201, 135, 60, 0.18), 0 22px 46px -32px rgba(0, 0, 0, 0.98);
}
.plate--overlap {
  margin-top: -24px;
  box-shadow: 0 0 0 1px rgba(242, 239, 232, 0.16), 0 22px 46px -32px rgba(0, 0, 0, 0.98);
}
.plate__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.plate__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate-400);
}

.tag-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-200);
  border: 1px solid var(--line-copper);
  background: rgba(201, 135, 60, 0.08);
}

/* ---------- 07 Data marks ---------- */
.data-figure { display: flex; flex-direction: column; gap: 4px; }
.data-figure__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1;
  color: var(--cyan-400);
}
.data-figure__unit {
  margin-left: 0.35em;
  font-size: 0.42em;
  letter-spacing: 0.08em;
  color: var(--paper-100);
}
.data-figure__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.compare-bar {
  position: relative;
  height: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(242, 239, 232, 0.07);
  overflow: hidden;
}
.compare-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-400), rgba(53, 232, 200, 0.35));
}
.compare-bar__fill--wine {
  background: linear-gradient(90deg, var(--wine-400), rgba(168, 58, 85, 0.4));
}

/* ---------- 08 Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 120% at 18% 8%, rgba(107, 18, 38, 0.55), transparent 62%),
    radial-gradient(90% 90% at 82% 92%, rgba(53, 232, 200, 0.14), transparent 58%),
    linear-gradient(160deg, #141218, var(--ink-950));
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 239, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 232, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--paper-100);
  background: rgba(10, 9, 12, 0.8);
  border-top: 1px solid var(--line-copper);
}

/* ---------- 09 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.72em 1.25em;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--copper-200);
  background: transparent;
  border: 1px solid var(--copper-500);
  transition: background-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}
.btn:hover { background: var(--copper-500); color: var(--ink-950); transform: translateY(-2px); }
.btn--solid { background: var(--copper-500); color: var(--ink-950); }
.btn--solid:hover { background: var(--copper-200); }
.btn--ghost { border-color: var(--line-mid); color: var(--paper-100); }
.btn--ghost:hover { border-color: var(--copper-500); background: rgba(201, 135, 60, 0.12); color: var(--copper-200); }

/* ---------- 10 Focus ---------- */
:focus-visible {
  outline: 2px solid var(--copper-500);
  outline-offset: 3px;
}

/* ---------- 11 Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 120;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-950);
  background: var(--copper-500);
  border: 1px solid var(--copper-200);
  transition: top 160ms ease-out;
}
.skip-link:focus { top: 12px; }

/* ---------- 12 Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--copper-500), var(--cyan-400));
}

/* ---------- 13 Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-upper {
  max-height: 120px;
  overflow: hidden;
  background: var(--ink-950);
  border-bottom: 1px solid var(--line-soft);
  transition: max-height 220ms ease-out, opacity 220ms ease-out, border-color 220ms ease-out;
}
.header-upper__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 12px;
}
.site-header[data-scrolled] .header-upper {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--copper-500);
  border: 1px solid var(--copper-500);
  background: linear-gradient(150deg, rgba(107, 18, 38, 0.75), rgba(10, 9, 12, 0.92));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand__name { font-size: 18px; font-weight: 900; letter-spacing: 0.06em; }
.brand__line {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--slate-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-upper__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-chip {
  padding: 4px 9px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}

.header-lower {
  background: linear-gradient(180deg, rgba(22, 20, 26, 0.99), rgba(22, 20, 26, 0.94));
  border-bottom: 1px solid var(--line-copper);
}
.header-lower__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
}

.rail-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  padding: 6px 0;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--copper-500);
  border-right: 1px solid var(--line-soft);
}

.main-nav__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 100%;
}
.main-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  color: rgba(242, 239, 232, 0.86);
  border-left: 1px solid var(--line-soft);
  transition: color 150ms ease-out, background-color 150ms ease-out;
}
.main-nav__link:hover {
  color: var(--copper-200);
  background: rgba(201, 135, 60, 0.09);
}
.main-nav__link[aria-current="page"] {
  color: var(--copper-200);
  background: linear-gradient(180deg, rgba(201, 135, 60, 0.16), rgba(201, 135, 60, 0));
  box-shadow: inset 0 0 0 1px var(--copper-500), inset 0 -3px 0 var(--copper-500);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  align-self: center;
  padding: 10px 14px;
  margin: 8px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--copper-200);
  border: 1px solid var(--line-copper);
}
.nav-toggle__bar {
  position: relative;
  width: 15px;
  height: 2px;
  background: var(--copper-500);
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 2px;
  background: var(--copper-500);
  transition: transform 180ms ease-out;
}
.nav-toggle__bar::before { top: -5px; }
.nav-toggle__bar::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 14 Breadcrumb & index rail ---------- */
.breadcrumb {
  border-bottom: 1px solid var(--line-soft);
  padding-block: 14px;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate-400);
}
.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--copper-500);
}
.breadcrumb__list a {
  color: var(--copper-200);
  text-decoration: none;
}
.breadcrumb__list a:hover { text-decoration: underline; }
.breadcrumb__list [aria-current="page"] { color: var(--paper-100); }

.index-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line-mid);
}
.index-rail__item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate-400);
}
.index-rail__link {
  display: block;
  padding: 6px 0;
  color: var(--paper-100);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.index-rail__link:hover {
  color: var(--copper-200);
  border-bottom-color: var(--line-copper);
}
.index-rail__link[aria-current="true"] { color: var(--cyan-400); }

/* ---------- 15 Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.filter-chip {
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--paper-100);
  border: 1px solid var(--line-mid);
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}
.filter-chip:hover {
  color: var(--copper-200);
  border-color: var(--line-copper);
}
.filter-chip[aria-pressed="true"] {
  font-weight: 700;
  color: var(--ink-950);
  background: var(--copper-500);
  border-color: var(--copper-500);
}
.filter-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
}
.filter-clear {
  padding: 6px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  text-decoration: underline;
}
.filter-clear:hover { color: var(--copper-200); }

/* ---------- 16 Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--line-mid);
}
.timeline__item { position: relative; padding-bottom: 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute;
  left: -35px;
  top: 7px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--copper-500);
  background: var(--ink-950);
}
.timeline__marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--cyan-400);
}
.timeline__body { color: rgba(242, 239, 232, 0.84); }

/* ---------- 17 Reveal & state helpers ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease-out, transform 260ms ease-out;
}
.reveal.is-visible { opacity: 1; transform: none; }

.is-hidden { display: none !important; }

/* ---------- 18 Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 96px);
  padding-top: clamp(34px, 5vw, 64px);
  background: linear-gradient(180deg, var(--ink-950), #08070A);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wine-700), var(--copper-500) 46%, var(--cyan-400));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(22px, 3vw, 48px);
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 900;
  color: var(--copper-500);
  border: 1px solid var(--copper-500);
  background: linear-gradient(150deg, rgba(107, 18, 38, 0.72), rgba(10, 9, 12, 0.92));
}
.footer-brand__name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.footer-brand__line {
  margin-top: 8px;
  max-width: 34ch;
  font-size: 14px;
  color: rgba(242, 239, 232, 0.72);
}
.footer-brand__meta {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--copper-500);
}

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-200);
  border-bottom: 1px solid var(--line-soft);
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer-col__list a {
  display: inline-block;
  color: rgba(242, 239, 232, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.footer-col__list a:hover {
  color: var(--copper-200);
  border-bottom-color: var(--line-copper);
}
.footer-contact__item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: rgba(242, 239, 232, 0.78);
  word-break: break-word;
}
.footer-contact__item .mono {
  min-width: 42px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--copper-500);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: clamp(26px, 4vw, 48px);
  padding-block: 18px 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--slate-400);
}
.footer-legal__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--copper-200);
}
.footer-legal__copy {
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ---------- 19 Responsive: tablet ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .col-3, .col-4 { grid-column: span 6; }
  .col-8 { grid-column: span 12; }
}

/* ---------- 20 Responsive: mobile nav ---------- */
@media (max-width: 960px) {
  .header-lower__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 12px;
  }
  .rail-label { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    padding-bottom: 14px;
    border-top: 1px solid var(--line-soft);
  }
  .main-nav[data-open] { display: block; }
  .main-nav__list {
    grid-template-columns: 1fr;
    height: auto;
  }
  .main-nav__link {
    justify-content: flex-start;
    height: auto;
    padding: 13px 4px;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav__link[aria-current="page"] {
    box-shadow: inset 2px 0 0 var(--copper-500);
    padding-left: 12px;
  }
  .header-upper__meta { display: none; }
  .brand__line { font-size: 11px; }
}

/* ---------- 21 Responsive: phone ---------- */
@media (max-width: 720px) {
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .col-3, .col-4, .col-6, .col-8 { grid-column: span 4; }
  .plate--overlap { margin-top: -14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal__copy { margin-left: 0; }
  .filter-status { margin-left: 0; flex-basis: 100%; }
  .title-xl { font-size: clamp(34px, 10vw, 56px); }
}

/* ---------- 22 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .plate:hover { transform: none; }
  .btn:hover { transform: none; }
  .header-upper { transition: none; }
}
