/* ==========================================================================
   维基体育 · 共享样式表 /assets/site.css
   夜场记分牌：深墨绿场心 + 碳黑框架 + 青柠/琥珀数据高亮
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #07130F;
  --frame: #0B0E0D;
  --panel: #0F2A22;
  --line: #23473B;
  --line-soft: rgba(35, 71, 59, 0.55);
  --lime: #C8FF3D;
  --lime-soft: rgba(200, 255, 61, 0.14);
  --amber: #F5B841;
  --paper: #F4F7F2;
  --muted: #9DB3A8;
  --hover: #123B31;
  --mint: #5FE0B0;

  --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: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: ui-monospace, "JetBrains Mono", "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  --shell-max: 1480px;
  --frame-w: 92px;
  --gutter: clamp(18px, 3vw, 44px);
  --shadow-panel: 0 26px 70px rgba(0, 0, 0, 0.5);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 620px at 84% -10%, rgba(200, 255, 61, 0.08), transparent 62%),
    radial-gradient(900px 540px at 4% 8%, rgba(95, 224, 176, 0.07), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
ul, ol { padding-left: 1.15em; }

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

::selection {
  background: var(--lime);
  color: #06110C;
}

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  color: var(--paper);
}

h1 { font-size: clamp(2.8rem, 7vw, 7.5rem); line-height: 0.98; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.28; letter-spacing: -0.01em; }
h4 { font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.4; letter-spacing: 0; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: var(--lime); }

strong, b { font-weight: 800; color: var(--paper); }

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

/* ---------- 4. 布局基元 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(46px, 6.5vw, 104px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.grid { display: grid; gap: clamp(18px, 2.6vw, 34px); }
.grid--split { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.grid--sidebar { grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid--split,
  .grid--sidebar,
  .grid--halves { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.btn--sm { padding: 0.55em 1.1em; font-size: 14px; }

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #06110C;
}
.btn--lime:hover,
.btn--lime:focus-visible {
  background: #D8FF77;
  border-color: #D8FF77;
  color: #06110C;
  box-shadow: 0 0 0 4px var(--lime-soft);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--hover);
}

/* ---------- 6. 面板 / 标签 / 正文 ---------- */
.panel {
  background: linear-gradient(180deg, rgba(15, 42, 34, 0.94), rgba(11, 14, 13, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 36px);
  box-shadow: var(--shadow-panel);
}

.panel--tight {
  padding: clamp(14px, 1.8vw, 22px);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.panel--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #06110C;
}
.panel--lime h2,
.panel--lime h3 { color: #06110C; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.34em 0.82em;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(18, 59, 49, 0.45);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
}

.pill--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #06110C;
}

.pill--amber {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
}

.prose {
  max-width: 68ch;
  color: #DCE5DE;
}
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--mint); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumbs {
  border-bottom: 1px solid var(--line-soft);
  padding-block: 14px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4em; }
.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--lime); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 8. 图片容器基础（页面阶段填充 img）---------- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel), var(--frame));
  aspect-ratio: 16 / 10;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) brightness(0.9) contrast(1.04);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px 14px;
  background: linear-gradient(0deg, rgba(7, 19, 15, 0.94), rgba(7, 19, 15, 0));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .media { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 0.62em 1.15em;
  border-radius: var(--pill);
  background: var(--lime);
  color: #06110C;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #06110C;
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ==========================================================================
   10. 框架式页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(11, 14, 13, 0.97) 0%, rgba(7, 19, 15, 0.96) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__frame {
  display: grid;
  grid-template-columns: var(--frame-w) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
}

.site-header__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 6px 14px;
  background: var(--frame);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.22s ease;
}
.brand:hover,
.brand:focus-visible { color: var(--lime); }

.brand__mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.brand__mark i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
}
.brand__mark i:nth-child(1) { width: 22px; }
.brand__mark i:nth-child(2) { width: 15px; background: var(--amber); }
.brand__mark i:nth-child(3) { width: 9px; background: var(--mint); }

.brand__word {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.34em;
  line-height: 1;
  color: inherit;
}

.site-header__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter) 0;
}

.site-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-soft);
  animation: tag-pulse 2.8s ease-in-out infinite;
}

@keyframes tag-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(18, 59, 49, 0.6);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(18, 59, 49, 0.9);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 17px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 主导航 */
.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 6px var(--gutter) 13px;
}

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(6px, 1.6vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.22s ease;
}
.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.primary-nav__list a:hover,
.primary-nav__list a:focus-visible { color: var(--lime); }
.primary-nav__list a:hover::after,
.primary-nav__list a:focus-visible::after { transform: scaleX(1); }

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

.primary-nav__cta { flex: 0 0 auto; }

/* 刻度脉冲线 */
.site-header__ruler {
  height: 7px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px);
  opacity: 0.9;
  animation: ruler-drift 9s linear infinite;
}

@keyframes ruler-drift {
  from { background-position-x: 0; }
  to { background-position-x: 12px; }
}

/* 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(35, 71, 59, 0.5);
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--mint) 55%, var(--amber));
  transition: width 0.12s linear;
}

/* ---------- 11. 页头响应式 ---------- */
@media (max-width: 960px) {
  html { scroll-padding-top: 96px; }

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

  .site-header__rail {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 11px var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 11px;
  }

  .brand__mark {
    flex-direction: row;
    align-items: flex-end;
    gap: 3px;
  }
  .brand__mark i { width: 3px; height: 18px; }
  .brand__mark i:nth-child(2) { width: 3px; height: 12px; }
  .brand__mark i:nth-child(3) { width: 3px; height: 8px; }

  .brand__word {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 0.14em;
  }

  .site-header__bar { padding: 10px var(--gutter) 0; }

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

  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 4px var(--gutter) 18px;
  }
  .primary-nav[data-open="true"] {
    display: flex;
    animation: nav-drop 0.28s ease both;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav__list a {
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .primary-nav__list a::after { display: none; }
  .primary-nav__list a[aria-current="page"] { border-bottom-color: var(--lime); }

  .primary-nav__cta {
    margin-top: 12px;
    align-self: flex-start;
  }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px) {
  .site-header__tag { font-size: 10.5px; letter-spacing: 0.1em; }
}

/* ==========================================================================
   12. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--frame);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(35, 71, 59, 0.4) 1px, transparent 1px),
    linear-gradient(180deg, rgba(35, 71, 59, 0.26) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 5.5vw, 76px) var(--gutter) 26px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(26px, 3.4vw, 56px);
  align-items: start;
}

.footer-brand__word {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.footer-brand__word::before {
  content: "";
  width: 9px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--lime) 0 38%, var(--amber) 38% 66%, var(--mint) 66% 100%);
}
.footer-brand__word:hover,
.footer-brand__word:focus-visible { color: var(--lime); }

.footer-brand__desc {
  max-width: 34ch;
  margin: 15px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.footer-col__title {
  margin: 4px 0 15px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.6;
}
.footer-col__list a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-col__list--plain { color: var(--paper); font-size: 14.5px; }
.footer-col__list--plain .num { font-size: 14px; }

.footer-col__note {
  margin: 14px 0 18px;
  max-width: 32ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 30px;
  margin-top: clamp(28px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-meta {
  margin: 0;
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.footer-legal__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal__list a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-legal__list a:hover,
.footer-legal__list a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ---------- 13. 页脚响应式 ---------- */
@media (max-width: 1080px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-brand { grid-column: auto; }
  .site-footer__base { flex-direction: column; align-items: flex-start; }
  .footer-brand__desc { max-width: none; }
}

/* ---------- 14. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .site-header__ruler { animation: none; }
  .tag-dot { animation: none; opacity: 1; }
  .primary-nav[data-open="true"] { animation: none; }
}
