/* =========================================================
   6t体育主站 · 共享样式表 /assets/site.css
   夜场深蓝底色 + 奶油档案纸面 + 荧光绿/信号橙数据强调
   ========================================================= */

/* ---------- 1. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

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

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

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

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 夜场底色 */
  --ink: #061428;
  --panel: #0B2A4A;
  --line: #123B63;
  /* 档案纸面 */
  --paper: #F2E9D8;
  --paper-ink: #16130F;
  --paper-soft: #D9D2C4;
  /* 数据强调 */
  --lime: #B7FF2E;
  --orange: #FF6B1A;
  --red: #E2372B;
  --teal: #2FE0C8;
  --index: #7E93A8;
  --white: #FFFFFF;
  /* 文本 */
  --text: #E3EDF7;
  --text-dim: #A6BCD2;

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

  /* 尺寸与节奏 */
  --wrap: 1280px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --header-top-h: 58px;
  --header-nav-h: 58px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 400; color: var(--white); }

h1 { font-size: clamp(32px, 5.6vw, 72px); letter-spacing: -.015em; }
h2 { font-size: clamp(26px, 3.6vw, 48px); letter-spacing: -.01em; }
h3 { font-size: clamp(20px, 2.2vw, 32px); }

p { max-width: 72ch; }

p + p { margin-top: .9em; }

/* 等宽索引小字 */
.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- 4. 容器与通用结构 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stack { display: flex; flex-direction: column; gap: 16px; }

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

/* 奶油档案纸面分区 */
.on-paper {
  background: var(--paper);
  color: var(--paper-ink);
  padding-block: clamp(36px, 5vw, 72px);
}

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

.on-paper .mono { color: rgba(22, 19, 15, .68); }

.on-paper a { text-decoration-color: rgba(22, 19, 15, .35); }

.on-paper a:hover { color: var(--red); }

/* ---------- 5. 无障碍 ---------- */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--lime);
  color: #061428;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}

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

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

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 20, 40, .95);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

/* 6.1 上层品牌说明带 */
.header-top {
  height: var(--header-top-h);
  overflow: hidden;
  background: linear-gradient(90deg, #04101F 0%, #0B2A4A 58%, #061428 100%);
  border-bottom: 1px solid rgba(18, 59, 99, .9);
  transition: height .34s var(--ease), opacity .22s ease;
}

.site-header.is-scrolled .header-top { height: 0; opacity: 0; }

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-top-h);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--lime);
  color: #061428;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  border-radius: var(--radius);
}

.brand-mark__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}

.brand-mark__tag {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--index);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-top__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.meta-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--index);
  white-space: nowrap;
}

.device-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.device-switch__btn {
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--index);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.device-switch__btn:hover { color: var(--white); }

.device-switch__btn.is-active {
  background: var(--lime);
  color: #061428;
  font-weight: 600;
}

/* 6.2 下层栏目行 */
.header-nav { position: relative; }

.header-nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-nav-h);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
}

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

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
  flex-shrink: 0;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s var(--ease), top .22s var(--ease);
}

.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);
}

.primary-nav { flex: 1 1 auto; }

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

.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: .06em;
  color: #C7D8E8;
  transition: color .18s ease;
}

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

.primary-nav__list a:hover { color: var(--white); }
.primary-nav__list a:hover::after { transform: scaleX(1); }

.primary-nav__list a[aria-current="page"] { color: var(--white); }
.primary-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  padding: 7px 16px;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--orange);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.nav-cta:hover { background: var(--orange); color: #08192E; }

.scroll-meter {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--lime));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 4px solid var(--orange);
  font-size: 15px;
  line-height: 1.75;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1.35fr;
  gap: 36px 40px;
  padding-block: 56px 44px;
}

.footer-col { min-width: 0; }

.footer-col--brand { min-width: 0; }

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(22, 19, 15, .16);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--red);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--paper-ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius);
}

.footer-brand__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
}

.footer-note {
  max-width: 32ch;
  font-size: 14px;
  color: rgba(22, 19, 15, .78);
}

.footer-mono {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: rgba(22, 19, 15, .66);
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.footer-links a {
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer-links a:hover { color: var(--red); border-color: var(--red); }

.footer-links--tight {
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(22, 19, 15, .74);
}

.footer-facts {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(22, 19, 15, .8);
}

.footer-facts li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: baseline;
}

.footer-facts__k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(22, 19, 15, .5);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 18px 30px;
  border-top: 1px solid rgba(22, 19, 15, .16);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(22, 19, 15, .66);
}

.footer-base p { max-width: none; }

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: transparent;
  color: var(--orange);
  font-size: 14px;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease), transform .2s var(--ease);
}

.btn:hover { background: var(--orange); color: #08192E; }
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--lime);
  border-color: var(--lime);
  color: #061428;
  font-weight: 600;
}

.btn--solid:hover { background: var(--white); border-color: var(--white); color: #061428; }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--panel); border-color: var(--line); color: var(--white); }

.on-paper .btn--ghost { border-color: rgba(22, 19, 15, .35); color: var(--paper-ink); }
.on-paper .btn--ghost:hover { background: rgba(22, 19, 15, .07); color: var(--paper-ink); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--index);
}

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

.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }

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

.breadcrumbs a:hover { color: var(--lime); }

.on-paper .breadcrumbs { color: rgba(22, 19, 15, .6); }
.on-paper .breadcrumbs li + li::before { color: rgba(22, 19, 15, .3); }

/* ---------- 10. 章节色带 ---------- */
.band {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--red);
}

.band__title {
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--white);
}

.band__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--index);
}

.on-paper .band { border-color: rgba(22, 19, 15, .2); }
.on-paper .band__title { color: var(--paper-ink); }
.on-paper .band__note { color: rgba(22, 19, 15, .55); }

/* ---------- 11. 档案卡 ---------- */
.card {
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04),
    0 20px 44px -34px rgba(0, 0, 0, .95);
}

.card__label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--index);
}

.card__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.card__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

.on-paper .card {
  background: #FBF6EA;
  border-color: rgba(22, 19, 15, .14);
  box-shadow: none;
}

.on-paper .card__label { color: rgba(22, 19, 15, .55); }
.on-paper .card__value { color: var(--red); }
.on-paper .card__text { color: rgba(22, 19, 15, .78); }

/* ---------- 12. 筛选标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 42, 74, .65);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease),
    background .2s var(--ease);
}

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

.chip.is-active,
.chip[aria-pressed="true"] {
  border-color: var(--lime);
  background: rgba(183, 255, 46, .1);
  color: var(--lime);
}

.on-paper .chip {
  border-color: rgba(22, 19, 15, .2);
  background: rgba(255, 255, 255, .6);
  color: rgba(22, 19, 15, .7);
}

.on-paper .chip.is-active,
.on-paper .chip[aria-pressed="true"] {
  border-color: var(--red);
  background: rgba(226, 55, 43, .1);
  color: var(--red);
}

/* ---------- 13. 可复用图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.05);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--screen { aspect-ratio: 16 / 10; }

.media-frame--tint::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(200deg, rgba(6, 20, 40, .1) 0%, rgba(6, 20, 40, .74) 100%),
    radial-gradient(120% 80% at 10% 0%, rgba(183, 255, 46, .16), transparent 62%);
}

.media-frame--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(183, 255, 46, .07) 0 12px,
    transparent 12px 24px
  );
}

.media-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #E3EDF7;
  background: linear-gradient(180deg, transparent, rgba(6, 20, 40, .88));
}

/* ---------- 14. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .52s ease, transform .52s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-top-h: 50px; --header-nav-h: 54px; }

  .site-header { position: sticky; }

  .brand-mark__tag { display: none; }
  .meta-chip--version { display: none; }

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 95;
    display: none;
    padding: 6px var(--gutter) 20px;
    background: #08192E;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 52px -26px rgba(0, 0, 0, .95);
  }

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

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

  .primary-nav__list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(18, 59, 99, .6);
    font-size: 16px;
  }

  .primary-nav__list a::after { display: none; }

  .primary-nav__list a[aria-current="page"] {
    padding-left: 12px;
    border-left: 2px solid var(--orange);
    color: var(--orange);
  }

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

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.75; }

  .header-top__meta { gap: 10px; }
  .device-switch__btn { padding: 4px 9px; }
  .brand-mark__name { font-size: 15px; }
  .nav-cta { padding: 6px 11px; font-size: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; }
  .footer-base { padding-block: 16px 26px; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .band { flex-wrap: wrap; gap: 8px 14px; }
  .band__note { margin-left: 0; flex-basis: 100%; }
}

/* ---------- 16. 减少动态效果 ---------- */
@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;
    transition: none;
  }

  .scroll-meter { transition: none; }
}
