/* =========================================================
   /assets/site.css — 新宝体育 共享外壳与基础组件
   ========================================================= */

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

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

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, canvas { display: block; max-width: 100%; }

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #061713;
  --ink-2: #0C2B22;
  --panel: #0E1512;
  --line: #1E3B32;
  --line-soft: rgba(30, 59, 50, 0.68);
  --accent: #DFFF4F;
  --accent-dim: #b8e02c;
  --blue: #58C7F3;
  --alert: #FF6B45;
  --violet: #9B7BFF;
  --text: #F5FAF4;
  --muted: #A8B9AF;

  --shell: 1240px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --header-space: 124px;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 26px;

  --shadow-1: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
  --shadow-2: 0 32px 74px -44px rgba(0, 0, 0, 0.95);

  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);

  --font-display: "Barlow Condensed", "DIN Alternate", "Arial Narrow", "Noto Sans SC", sans-serif;
  --font-heading: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, "SF Mono", Consolas, monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(880px 520px at 84% -10%, rgba(88, 199, 243, 0.12), transparent 68%),
    radial-gradient(680px 420px at 4% 2%, rgba(155, 123, 255, 0.09), transparent 68%),
    linear-gradient(to right, rgba(30, 59, 50, 0.38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 59, 50, 0.38) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 92px 92px, 92px 92px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  padding-top: var(--header-space);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--text);
}

p { text-wrap: pretty; }

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

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

/* ---------- 4. 通用容器与排版件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(44px, 6vw, 88px) 0; }

.panel {
  background: linear-gradient(160deg, rgba(14, 21, 18, 0.95), rgba(6, 23, 19, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
}

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

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 300;
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-2);
  transition: top 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline-offset: 4px;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}

.header-shell {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 26, 22, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 24px 52px -36px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(245, 250, 244, 0.05);
  transition:
    border-radius 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

/* 6.1 状态带 */
.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  max-height: 46px;
  overflow: hidden;
  padding: 8px 20px 8px 22px;
  border-bottom: 1px solid rgba(30, 59, 50, 0.75);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition:
    max-height 0.35s var(--ease),
    opacity 0.25s var(--ease),
    padding 0.35s var(--ease),
    border-color 0.25s var(--ease);
}

.header-meta__tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 10px;
}

.header-meta__item { color: var(--muted); }

.header-meta__sep { color: var(--line); }

.header-meta__link {
  color: var(--blue);
  border-bottom: 1px solid rgba(88, 199, 243, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.header-meta__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 6.2 计分牌主行 */
.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px 10px 8px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding: 4px 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), var(--accent-dim));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px rgba(223, 255, 79, 0.25),
    0 10px 22px -16px rgba(223, 255, 79, 0.95);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand__sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

/* 6.3 导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(30, 59, 50, 0.72);
}

.site-nav__link[aria-current="page"] {
  color: var(--accent);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

/* 6.4 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 6.5 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 26px -20px rgba(223, 255, 79, 0.95);
}

.btn--accent:hover {
  background: #eaff7d;
  transform: translateY(-1px);
}

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

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

/* 6.6 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 59, 50, 0.8);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: border-color 0.2s, color 0.2s;
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 6.7 阅读进度 */
.header-progress {
  position: relative;
  max-width: var(--shell);
  height: 2px;
  margin: 7px auto 0;
  border-radius: 2px;
  background: rgba(30, 59, 50, 0.55);
  overflow: hidden;
  pointer-events: none;
}

.header-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transition: width 0.12s linear;
}

/* 6.8 滚动收窄 */
.site-header.is-condensed .header-meta {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.site-header.is-condensed .header-shell {
  border-radius: 16px;
  background: rgba(6, 23, 19, 0.95);
}

.site-header.is-condensed .header-bar { min-height: 52px; }

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(720px 320px at 88% 0%, rgba(88, 199, 243, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(12, 43, 34, 0.92), rgba(6, 23, 19, 1) 58%);
}

.footer-band {
  border-bottom: 1px solid rgba(30, 59, 50, 0.8);
  background: rgba(12, 43, 34, 0.72);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%);
  padding: 18px 0 32px;
}

.footer-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}

.footer-band__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-band__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  flex: 0 0 auto;
}

.footer-band__item--accent { color: var(--accent); }

.footer-band__item--accent::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(223, 255, 79, 0.14);
}

.footer-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 70px) var(--gutter) clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(260px, 1.5fr);
  gap: clamp(24px, 3vw, 48px);
}

.footer-brand { display: flex; flex-direction: column; gap: 18px; }

.brand--footer { align-self: flex-start; }

.footer-statement {
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  max-width: 24ch;
}

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

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}

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

.footer-links a {
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.contact-row {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

.contact-row__value {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-row__value--sm {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--muted);
}

.footer-note {
  margin-top: 4px;
  padding-left: 12px;
  border-left: 2px solid var(--alert);
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

.footer-base {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid rgba(30, 59, 50, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-base__legal { color: var(--muted); }

.footer-base__note {
  color: rgba(168, 185, 175, 0.78);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumbs a { color: var(--muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { color: var(--line); }

/* ---------- 9. 图片容器 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background:
    radial-gradient(420px 220px at 78% 8%, rgba(155, 123, 255, 0.22), transparent 70%),
    linear-gradient(150deg, #0C2B22, #061713 72%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 59, 50, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 59, 50, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
}

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

/* ---------- 10. 数据表 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(12, 43, 34, 0.6);
}

.data-table tbody tr:last-child td { border-bottom: 0; }

.table-scroll .data-table th:first-child,
.table-scroll .data-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

/* ---------- 11. 返回顶部（由 site_js 注入） ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 21, 18, 0.94);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.to-top__text { line-height: 1; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1120px) {
  .site-nav__link { padding: 9px 8px; font-size: 13.5px; }
  .header-bar { gap: 10px; }
}

@media (max-width: 1040px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    row-gap: 34px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-space: 104px; }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: block;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 26, 22, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.22s var(--ease),
      transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }

  .site-header[data-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 16px;
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(223, 255, 79, 0.1);
  }

  .site-nav__link[aria-current="page"]::after { display: none; }

  .header-bar { padding: 8px 10px 8px 16px; }

  .brand__sub { display: none; }

  .header-meta { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 720px) {
  :root { --header-space: 96px; }

  body { font-size: 16px; }

  .header-meta { gap: 8px; font-size: 10px; letter-spacing: 0.12em; }
  .header-meta__item,
  .header-meta__sep { display: none; }

  .header-bar { min-height: 54px; gap: 8px; }
  .brand__mark { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
  .brand__name { font-size: 15px; }

  .header-actions .btn--accent {
    padding: 9px 13px;
    font-size: 12.5px;
    letter-spacing: 0.02em;
  }

  .nav-toggle__label { display: none; }

  .footer-main { grid-template-columns: 1fr; row-gap: 30px; }
  .footer-statement { max-width: 30ch; }
  .footer-band__inner { gap: 8px 18px; }
  .footer-band__item { font-size: 10px; letter-spacing: 0.14em; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }

  .to-top { padding: 9px 13px; }
}

@media (max-width: 420px) {
  .header-actions .btn--accent { padding: 9px 11px; font-size: 12px; }
  .brand__name { letter-spacing: 0.02em; }
}

/* ---------- 13. 降低动效 ---------- */
@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;
  }

  .footer-links a:hover { transform: none; }
  .btn--accent:hover { transform: none; }
}
