/* ==========================================================================
   多宝体育主站 · 共享样式（/assets/site.css）
   墨绿终端底 + 纸板层 + 1px 印刷描边 + 荧光青/暖橙数据高亮
   ========================================================================== */

/* 1. reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, dt { margin: 0; }
ul, ol { padding: 0; list-style: none; }
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; width: 100%; }
[hidden] { display: none !important; }

/* 2. 变量 ------------------------------------------------------------------ */
:root {
  --ink: #0C1E19;
  --ink-deep: #081512;
  --charcoal: #15191B;
  --layer: #1D3B31;
  --cyan: #2FE3C8;
  --orange: #FF7B2E;
  --bone: #F3EFE4;
  --stone: #7C8781;
  --clay: #B65C3C;
  --moss: #4F7C5D;
  --signal: #E4503A;

  --line: rgba(124, 135, 129, 0.34);
  --line-strong: rgba(243, 239, 228, 0.20);
  --bone-78: rgba(243, 239, 228, 0.78);
  --bone-62: rgba(243, 239, 228, 0.62);

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

  --header-h: 72px;
  --gutter: clamp(18px, 4vw, 44px);
  --maxw: 1240px;
  --radius: 2px;
  --paper-shadow: 0 22px 48px -34px rgba(0, 0, 0, 0.95);
  --ease-out: cubic-bezier(.2, .72, .3, 1);
}

/* 3. 基础排版 -------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--bone-78);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--bone);
}
h1 { font-size: clamp(30px, 5.2vw, 44px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 20px; }
strong { color: var(--bone); font-weight: 700; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform .22s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* 4. 内容容器与网格 -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 820px; }

#main-content { padding-top: var(--header-h); }
#main-content.main--bleed { padding-top: 0; }

.section { padding: clamp(44px, 7vw, 96px) 0; }
.section--tight { padding: clamp(28px, 4vw, 52px) 0; }
.section__head {
  display: grid;
  gap: 12px;
  max-width: 62ch;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
  opacity: .75;
}

.lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: var(--bone-62);
  max-width: 68ch;
}

.prose { max-width: 68ch; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose ul { display: grid; gap: 8px; margin-top: 1em; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

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

.slash {
  height: clamp(36px, 6vw, 72px);
  background: linear-gradient(96deg, transparent 0 46%, var(--layer) 46% 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
[data-drift] { will-change: transform; }

/* 5. 面包屑 ---------------------------------------------------------------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--stone);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--bone-62); transition: color .2s ease; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--bone); }

/* 6. 按钮 ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #120B06;
}
.btn--primary:hover { background: #FF9252; border-color: #FF9252; }
.btn--ghost {
  background: rgba(12, 30, 25, 0.28);
  color: var(--bone);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--cyan); border-color: rgba(47, 227, 200, 0.6); }
.btn--quiet {
  padding: 6px 0;
  border: 0;
  color: var(--cyan);
  border-radius: 0;
}
.btn--quiet:hover { color: var(--bone); }
.btn:active { transform: translateY(1px); }

/* 7. 标签 ------------------------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(243, 239, 228, 0.03);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--stone);
}
.tag--cyan { color: var(--cyan); border-color: rgba(47, 227, 200, 0.45); }
.tag--orange { color: var(--orange); border-color: rgba(255, 123, 46, 0.5); }
.tag--clay { color: #D98A6B; border-color: rgba(182, 92, 60, 0.65); }
.tag--moss { color: #8FB79A; border-color: rgba(79, 124, 93, 0.65); }

/* 8. 卡片 ------------------------------------------------------------------ */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--paper-shadow);
}
.card--paper { background: linear-gradient(158deg, rgba(29, 59, 49, 0.92), rgba(21, 25, 27, 0.96)); }
.card--outline { background: transparent; box-shadow: none; }
.card__title { font-size: 20px; margin-bottom: 8px; }

/* 9. 数据块 ---------------------------------------------------------------- */
.stat { display: grid; gap: 6px; }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--stone);
}
.stat--orange .stat__value { color: var(--orange); }

.databar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: linear-gradient(90deg, rgba(29, 59, 49, 0.6), rgba(21, 25, 27, 0.92));
  border-radius: var(--radius);
}
.databar__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--stone);
}
.databar__value { color: var(--cyan); font-size: 15px; font-weight: 600; }

/* 10. 时间轴 / 更新日志 ---------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.timeline__item { position: relative; padding-bottom: clamp(20px, 3vw, 32px); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--ink);
  border: 1px solid var(--cyan);
}
.timeline__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--stone);
  margin-bottom: 6px;
}
.timeline__title { font-size: 20px; margin-bottom: 6px; }
.timeline__text { color: var(--bone-62); max-width: 62ch; }

/* 11. 筛选 ---------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}
.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(21, 25, 27, 0.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--bone-62);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { color: var(--bone); border-color: rgba(47, 227, 200, 0.55); }
.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-deep);
}
.filter-item[hidden] { display: none !important; }
[data-filter-status] {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
  min-height: 1.6em;
}

/* 12. 图片容器 ------------------------------------------------------------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(142deg, var(--layer), var(--charcoal));
  aspect-ratio: 16 / 9;
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(8, 21, 18, 0.92), rgba(8, 21, 18, 0));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bone-62);
}

/* 13. 显现 ---------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* 14. 头部 ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  color: var(--bone);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header[data-solid] {
  background-color: rgba(12, 30, 25, 0.95);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  opacity: 0;
  transition: opacity .3s ease;
  will-change: transform;
}
.site-header[data-solid] .header-progress { opacity: 1; }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bone);
  white-space: nowrap;
}
.brand__domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
  white-space: nowrap;
}
.brand:hover .brand__name { color: var(--cyan); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--bone);
}
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s var(--ease-out), top .25s var(--ease-out);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

.site-nav { display: flex; justify-content: center; min-width: 0; }
.site-nav__list { display: flex; align-items: center; gap: clamp(10px, 1.7vw, 26px); }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bone-78);
  transition: color .2s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transition: right .25s var(--ease-out);
}
.site-nav__link:hover { color: var(--bone); }
.site-nav__link:hover::after { right: 0; }
.site-nav__link[aria-current="page"] { color: var(--cyan); font-weight: 700; }
.site-nav__link[aria-current="page"]::after { right: 0; }

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

/* 15. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--charcoal);
  border-top: 1px solid var(--line);
  color: var(--stone);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan) 0 20%, var(--orange) 20% 30%, transparent 30% 100%);
  opacity: .9;
}
.footer-inner { padding: clamp(38px, 6vw, 72px) var(--gutter) 26px; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}

.footer-brand { display: grid; gap: 10px; justify-items: start; }
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.footer-brand__domain {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
}
.footer-brand__note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--stone);
  max-width: 34ch;
}

.footer-group__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--bone);
  margin-bottom: 14px;
}
.footer-list { display: grid; gap: 10px; }
.footer-list a {
  font-size: 14.5px;
  color: var(--stone);
  transition: color .2s ease;
}
.footer-list a:hover { color: var(--cyan); }

.footer-contact__list { display: grid; gap: 12px; }
.footer-contact__list li { display: grid; gap: 3px; }
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--moss);
}
.footer-contact__val {
  font-size: 14px;
  line-height: 1.65;
  color: var(--bone-62);
  word-break: break-word;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--stone);
}
.footer-legal { color: var(--stone); }
.footer-copy { color: var(--stone); }

/* 16. 响应式 -------------------------------------------------------------- */
@media (max-width: 1120px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .grid--7-5, .grid--8-4 { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 62px; }

  .header-inner { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; justify-self: end; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    justify-content: flex-start;
    padding: clamp(18px, 5vw, 34px) var(--gutter) 170px;
    background: linear-gradient(180deg, rgba(8, 21, 18, 0.985), rgba(21, 25, 27, 0.995));
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s var(--ease-out), visibility .28s linear;
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  .site-nav__item { border-bottom: 1px solid var(--line); }
  .site-nav__item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 14px; }
  .site-nav__item:nth-child(even) { padding-left: 14px; }
  .site-nav__link {
    display: block;
    padding: 20px 2px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--bone);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--cyan); }

  .header-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 21, 18, 0.97);
    border-top: 1px solid var(--line);
    visibility: hidden;
    transform: translateY(110%);
    transition: transform .3s var(--ease-out), visibility .3s linear;
  }
  .header-actions .btn { padding: 15px 12px; }
  .site-nav[data-open] ~ .header-actions { visibility: visible; transform: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-meta { justify-content: flex-start; }
  .brand__domain { display: none; }
  .databar { gap: 12px 20px; }
}

@media (max-width: 420px) {
  .site-nav__list { grid-template-columns: minmax(0, 1fr); }
  .site-nav__item:nth-child(odd) { border-right: 0; padding-right: 0; }
  .site-nav__item:nth-child(even) { padding-left: 0; }
}

/* 17. 动效偏好 ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-drift] { transform: none !important; }
}
