/* =========================================================
   6686体育看台 · 共享样式 /assets/site.css
   夜场看台 + 战术数据屏：堆叠面板、细线网格、印刷标签
   ========================================================= */

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

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

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

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

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

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

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

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

/* ---------- 变量 ---------- */
:root {
  --ink: #0A0F0D;
  --stand: #0E1F18;
  --grid: #2A3B33;
  --lime: #C8FF3D;
  --lime-dim: #8FBF2A;
  --amber: #F2B84B;
  --paper: #F4F7F0;
  --paper-shadow: #DDE6D6;
  --text: #E8F2E8;
  --muted: #9FB3A6;
  --ink-on-paper: #132019;

  --font-head: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --line: 1px solid var(--grid);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image: radial-gradient(90% 60% at 50% -10%, rgba(200, 255, 61, 0.06), transparent 65%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--text);
}

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

::selection {
  background: var(--lime);
  color: #0A1408;
}

/* ---------- 无障碍工具 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--lime);
  color: #0A1408;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px -8px #000;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

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

.section {
  padding-block: clamp(40px, 6vw, 72px);
}

.split {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split--reverse {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.cols-2 {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tactic-grid {
  background-image:
    linear-gradient(to right, rgba(42, 59, 51, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 59, 51, 0.55) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
}

/* ---------- 通用文本组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime);
  flex: 0 0 auto;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--muted);
}

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

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lime {
  background: var(--lime);
  color: #0A1408;
  box-shadow: 4px 4px 0 0 rgba(200, 255, 61, 0.16);
}

.btn--lime:hover {
  background: var(--lime-dim);
  box-shadow: 4px 4px 0 0 rgba(200, 255, 61, 0.3);
}

.btn--ghost {
  border-color: var(--grid);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

/* ---------- 面包屑 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

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

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

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

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

/* ---------- 面板 / 标签 / 纸张 ---------- */
.panel {
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(14, 31, 24, 0.92), rgba(10, 15, 13, 0.92));
  border: var(--line);
}

.panel__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--grid);
  background: rgba(10, 15, 13, 0.45);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.tag--lime {
  color: var(--lime);
  border-color: rgba(200, 255, 61, 0.45);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(242, 184, 75, 0.55);
}

.paper {
  position: relative;
  padding: clamp(20px, 4vw, 40px);
  background: var(--paper);
  color: var(--ink-on-paper);
  border: 1px solid var(--paper-shadow);
  box-shadow: 8px 8px 0 rgba(221, 230, 214, 0.35);
}

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

.paper .eyebrow { color: #4A5F52; }

.paper a {
  text-decoration: underline;
  text-decoration-color: rgba(143, 191, 42, 0.65);
  text-underline-offset: 3px;
}

/* ---------- 比分 / 对照表 ---------- */
.board {
  overflow-x: auto;
  border: var(--line);
  background: rgba(10, 15, 13, 0.5);
}

.board-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}

.board-table th,
.board-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--grid);
}

.board-table thead th {
  background: rgba(14, 31, 24, 0.85);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-table tbody tr {
  transition: background-color 0.18s ease;
}

.board-table tbody tr:hover,
.board-table tbody tr:focus-within {
  background: rgba(200, 255, 61, 0.06);
}

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--stand);
  border: var(--line);
  box-shadow: 10px 10px 0 -2px rgba(42, 59, 51, 0.35);
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--lime);
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame--bevel {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(10, 15, 13, 0.92), transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* =========================================================
   头部
   ========================================================= */
.stand-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--text);
  background: linear-gradient(180deg, rgba(10, 15, 13, 0.92) 0%, rgba(10, 15, 13, 0.55) 70%, rgba(10, 15, 13, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stand-header[data-scrolled="true"] {
  background: var(--stand);
  border-bottom-color: var(--grid);
  box-shadow: 0 1px 0 rgba(200, 255, 61, 0.18), 0 18px 40px -30px #000;
}

.stand-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 76px;
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--lime);
  color: #0A1408;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  flex: 0 0 auto;
}

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

.brand__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
}

.brand__sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.edition-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border: 1px solid rgba(242, 184, 75, 0.55);
  color: var(--amber);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 导航 */
.stand-nav {
  margin-left: auto;
}

.stand-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.stand-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #C6D8CB;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.stand-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.stand-nav__link:hover { color: var(--lime); }
.stand-nav__link:hover::after { transform: scaleX(1); }

.stand-nav__link[aria-current="page"] { color: var(--lime); }
.stand-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 头部工具区 */
.stand-header__tools {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 16px;
  border-left: var(--line);
}

.util-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.util-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.util-link:hover { color: var(--amber); }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--lime);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-toggle__label {
  line-height: 1;
}

/* 阅读进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
}

/* =========================================================
   页脚
   ========================================================= */
.stand-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(10px, 1.6vw, 16px);
  background:
    linear-gradient(180deg, rgba(14, 31, 24, 0.4), transparent 24%),
    linear-gradient(180deg, var(--ink) 0%, var(--stand) 45%, #0B1913 100%);
  border-top: 1px solid var(--grid);
  color: var(--text);
}

.stand-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background:
    linear-gradient(90deg, var(--lime) 0 128px, transparent 128px) left top / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 48px) left top / 100% 6px no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.stand-footer::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 120px;
  background-image: linear-gradient(90deg, rgba(42, 59, 51, 0.5) 1px, transparent 1px);
  background-size: 64px 100%;
  opacity: 0.35;
  pointer-events: none;
}

.stand-footer > .wrap {
  position: relative;
  z-index: 1;
}

.stand-footer__top {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
  padding-block: clamp(40px, 6vw, 64px);
}

.stand-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-lede {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 14px;
  line-height: 1.6;
  color: #C6D8CB;
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-contact {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  gap: 2px;
}

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.stand-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 20px;
  border-top: var(--line);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-policy a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.18s ease;
}

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

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .stand-header__tools { display: none; }
}

@media (max-width: 1024px) {
  .stand-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .stand-header__bar { min-height: 64px; }

  .stand-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    background: var(--stand);
    border-top: var(--line);
    border-bottom: var(--line);
    box-shadow: 0 30px 50px -24px #000;
  }

  .stand-nav[data-open="true"] { display: block; }

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

  .stand-nav__link {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: var(--line);
  }

  .stand-nav__link::after { display: none; }

  .stand-nav__link[aria-current="page"] {
    padding-left: 14px;
    border-left: 2px solid var(--lime);
    background: rgba(200, 255, 61, 0.06);
  }

  .stand-header__bar .btn { margin-left: auto; }

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

@media (max-width: 560px) {
  .brand__mark { width: 38px; height: 38px; font-size: 17px; }
  .brand__name { font-size: 17px; }
  .brand__sub { display: none; }
  .btn--sm { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .nav-toggle { padding: 0 10px; font-size: 11px; }
  .stand-footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .btn:hover { transform: none; }
  .skip-link { transition: none; }
}
