/* ============ 196体育入口 · 共享站点样式 /assets/site.css ============ */

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

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

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

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

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

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

button { font: inherit; color: inherit; }

/* ---------- 设计变量 ---------- */
:root {
  --ink-900: #06120F;
  --ink-800: #0A1F1A;
  --ink-700: #12302A;
  --moss-500: #1E5A46;
  --cyan-400: #35F0C8;
  --cyan-200: #9DFBE6;
  --orange-500: #FF7A2F;
  --orange-300: #FFB27A;
  --sand-050: #E9F4EF;
  --fog-400: #8FA8A0;
  --white: #FFFFFF;

  --bg: var(--ink-900);
  --surface: var(--ink-800);
  --line: var(--ink-700);
  --text: var(--sand-050);
  --muted: var(--fog-400);
  --accent: var(--cyan-400);
  --signal: var(--orange-500);

  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --gap: clamp(16px, 2.4vw, 32px);
  --radius: 3px;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 70% at 88% -10%, rgba(53, 240, 200, 0.07), transparent 62%),
    repeating-linear-gradient(180deg, rgba(157, 251, 230, 0.028) 0 1px, transparent 1px 5px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--cyan-400);
  color: #04150F;
}

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

/* ---------- 工具与基础组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--cyan-400);
  color: #04150F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}

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

.index-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.index-label--muted { color: var(--muted); }

.data-figure {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.prose {
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.prose > * + * { margin-top: 1.1em; }

.prose strong { color: var(--cyan-200); font-weight: 600; }

.prose ul { list-style: disc; padding-left: 1.2em; }

.prose li { margin-top: 0.4em; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--moss-500);
}

.breadcrumb a { color: var(--muted); transition: color 0.18s ease; }
.breadcrumb a:hover { color: var(--cyan-400); }
.breadcrumb [aria-current="page"] { color: var(--text); }

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--band { aspect-ratio: 21 / 9; }

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.ruler {
  height: 18px;
  border-top: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, rgba(143, 168, 160, 0.5) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(53, 240, 200, 0.42) 0 1px, transparent 1px 90px);
  background-repeat: repeat-x, repeat-x;
  background-size: 100% 6px, 100% 13px;
  background-position: left top, left top;
}

.slant-lead {
  position: relative;
  height: var(--slant-h, 56px);
  overflow: hidden;
}

.slant-lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--slant-w, 420px);
  max-width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-400), rgba(53, 240, 200, 0));
  transform: rotate(9.46deg);
  transform-origin: 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tag--active {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn--signal {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #1A0C04;
}

.btn--signal:hover {
  background: var(--orange-300);
  border-color: var(--orange-300);
  box-shadow: 0 0 0 1px rgba(255, 122, 47, 0.35), 0 10px 26px -14px rgba(255, 122, 47, 0.85);
}

.btn--ghost {
  background: transparent;
  border-color: var(--moss-500);
  color: var(--cyan-400);
}

.btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-200);
  box-shadow: 0 0 0 1px rgba(53, 240, 200, 0.22);
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 18, 15, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.hdr-top {
  max-height: 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  transition: max-height 0.3s ease, opacity 0.24s ease, border-color 0.3s ease;
}

.hdr-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hdr-id {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hdr-id__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.hdr-id__num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
}

.hdr-id__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.hdr-id__note {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.hdr-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.hdr-tool {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.hdr-tool:hover {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

.hdr-tool--find {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.hdr-tool--find:hover {
  border-color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

.hdr-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text);
  white-space: nowrap;
}

.hdr-date__key {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hdr-date__val {
  color: var(--cyan-400);
  font-variant-numeric: tabular-nums;
}

.hdr-nav {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 31, 26, 0.86), rgba(6, 18, 15, 0.94));
}

.hdr-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 40px);
  height: 58px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hdr-nav__mini {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text);
  white-space: nowrap;
}

.hdr-nav__mini span {
  color: var(--cyan-400);
  font-weight: 700;
}

.hdr-nav__mini em {
  font-style: normal;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 30px);
}

.nav__link {
  position: relative;
  display: block;
  padding: 0 2px;
  line-height: 58px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 1px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

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

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

.nav__extra,
.nav__cta { display: none; }

.hdr-nav__cta {
  flex: none;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cyan-400);
  transition: background-color 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--cyan-400);
  transition: transform 0.2s ease;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-header[data-open] .nav-toggle {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.progress-rail {
  position: relative;
  height: 2px;
  background: var(--line);
}

.progress-rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-400), var(--orange-500));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.1s linear;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 120px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-ruler {
  height: 20px;
  border-top: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, rgba(143, 168, 160, 0.5) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(53, 240, 200, 0.42) 0 1px, transparent 1px 90px);
  background-repeat: repeat-x, repeat-x;
  background-size: 100% 6px, 100% 14px;
  background-position: left top, left top;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-brand__num {
  margin-right: 10px;
  font-weight: 700;
  color: var(--cyan-400);
}

.footer-jump {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--moss-500);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-jump:hover {
  color: var(--cyan-400);
  border-color: var(--cyan-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(32px, 4vw, 56px) 0;
}

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

.footer-col__title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

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

.footer-list a {
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-list a:hover {
  color: var(--text);
  border-bottom-color: var(--cyan-400);
}

.footer-list--plain li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.footer-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan-400);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.footer-more:hover {
  color: var(--cyan-200);
  border-bottom-color: var(--cyan-200);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 0 34px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .hdr-id__note { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .grid--thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 桌面：上层收拢 + 迷你品牌 ---------- */
@media (min-width: 881px) {
  .site-header[data-condensed] .hdr-top {
    max-height: 0;
    opacity: 0;
    border-bottom-color: transparent;
  }
  .site-header[data-condensed] .hdr-nav__mini { display: inline-flex; }
}

/* ---------- 移动 ---------- */
@media (max-width: 880px) {
  .hdr-top { display: none; }

  .hdr-nav__inner {
    height: 58px;
    gap: 12px;
  }

  .hdr-nav__mini { display: inline-flex; }
  .hdr-nav__cta { display: none; }
  .nav-toggle { display: inline-flex; flex: none; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    padding-bottom: 8px;
    background: #071613;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 48px -28px #000000;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 0;
  }

  .nav__link {
    padding: 15px 0 15px 14px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--line);
    line-height: 1.2;
    font-size: 17px;
    color: var(--text);
  }

  .nav__link::after { display: none; }

  .nav__link:hover,
  .nav__link[aria-current="page"] {
    color: var(--cyan-400);
    border-left-color: var(--cyan-400);
  }

  .nav__extra {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 16px;
    padding: 14px var(--gutter) 0;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
  }

  .nav__extra-key {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--muted);
  }

  .nav__extra-val {
    color: var(--cyan-400);
    font-variant-numeric: tabular-nums;
  }

  .nav__cta {
    display: inline-flex;
    margin: 16px var(--gutter) 20px;
  }

  .grid--halves,
  .grid--thirds { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { padding-top: 22px; }
  .hdr-nav__mini em { display: none; }
}

/* ---------- 动效退让 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .progress-rail__fill { transition: none; }
}
