/* ============================================================
   LM赛场 · /assets/site.css
   深色竞技场 · 数据长卷 · 共享外壳
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B0F14;
  --ink-2: #151C24;
  --line: #2A3441;
  --paper: #F4EFE6;
  --paper-2: #E3D9C8;
  --lime: #B6FF3B;
  --orange: #FF7A1A;
  --red: #E5484D;
  --muted: #8A94A6;
  --white: #FFFFFF;
  --body: #D5DBE4;

  --shell: 1240px;
  --gut: clamp(18px, 4.2vw, 44px);
  --head-h: 74px;
  --radius: 4px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--white);
}
h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.06; }
h2 { font-size: clamp(27px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(20px, 2.3vw, 28px); line-height: 1.2; }
h4 { font-size: 17px; font-weight: 800; line-height: 1.4; }
p { color: var(--body); }
strong, b { color: var(--white); font-weight: 800; }
small { font-size: 13px; color: var(--muted); }
::selection { background: var(--lime); color: var(--ink); }

/* ---------- 4. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(48px, 7vw, 100px); }
.section--tint { background: var(--ink-2); }
.section--edge { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.section-head__text { max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--lime);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
}

.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--body);
  max-width: 68ch;
}

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 { grid-column: span 6; }
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 11px 18px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

#main-content:focus { outline: none; }

/* ---------- 6. Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(11, 15, 20, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--orange) 42%, rgba(255, 122, 26, 0) 78%);
  opacity: .75;
  pointer-events: none;
}
.site-header.is-stuck {
  background: rgba(11, 15, 20, .97);
  border-bottom-color: #39465A;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--head-h);
}

/* 品牌 */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: background-color .2s ease;
}
.brand:hover .brand-mark { background: var(--white); }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 900; letter-spacing: .03em; color: var(--white); }
.brand-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; color: var(--muted); }
.brand-ver {
  align-self: center;
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--orange);
  border: 1px solid rgba(255, 122, 26, .45);
  border-radius: 2px;
}

/* 导航 */
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { display: flex; }
.nav-list a {
  display: block;
  padding: 9px 13px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  border-radius: 3px;
  transition: color .18s ease, background-color .18s ease;
}
.nav-list a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav-list a[aria-current="page"] { color: var(--ink); background: var(--lime); }

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(21, 28, 36, .9);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  transition: border-color .2s ease;
}
.nav-toggle-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--lime);
  transition: transform .24s var(--ease), opacity .24s ease;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--lime); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .brand-ver { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 14px var(--gut) 26px;
    background: rgba(17, 23, 31, .985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 50px -32px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s var(--ease), visibility .22s;
    max-height: calc(100vh - var(--head-h));
    max-height: calc(100dvh - var(--head-h));
    overflow-y: auto;
  }
  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { display: block; }
  .nav-list a {
    padding: 15px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-list > li:last-child a { border-bottom: 0; }
  .nav-list a:hover { background: transparent; color: var(--white); }
  .nav-list a[aria-current="page"] { background: transparent; color: var(--lime); }
}

/* ---------- 7. 左侧数据边栏 ---------- */
.hud-rail {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 9px;
  background: rgba(21, 28, 36, .94);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  transform: translate(-110%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s ease;
}
.hud-rail.is-shown { transform: translate(0, -50%); opacity: 1; }
.hud-item {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
  white-space: nowrap;
}
.hud-item + .hud-item { border-top: 1px solid var(--line); padding-top: 14px; }
.hud-item--hot { color: var(--lime); }
@media (max-width: 1180px) { .hud-rail { display: none; } }

/* ---------- 8. Site footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 9vw, 140px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(420px, 62%);
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--orange));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(40px, 5.5vw, 72px);
}
.footer-brand { min-width: 0; }
.footer-mark { font-size: 26px; font-weight: 900; letter-spacing: .02em; color: var(--white); line-height: 1.2; }
.footer-mark span { color: var(--lime); }
.footer-note { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 34ch; }
.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--lime);
  border: 1px solid rgba(182, 255, 59, .35);
  border-radius: 2px;
}
.footer-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

.footer-col { min-width: 0; }
.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-list { display: grid; gap: 10px; font-size: 14.5px; }
.footer-list a { color: #B9C1CE; transition: color .18s ease; }
.footer-list a:hover { color: var(--lime); }
.footer-list--plain li { display: flex; gap: 10px; font-size: 14px; line-height: 1.65; color: #B9C1CE; }
.footer-key {
  flex: none;
  width: 38px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}
.footer-tip { margin-top: 14px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.footer-base { border-top: 1px solid var(--line); background: rgba(11, 15, 20, .6); }
.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.footer-copy { color: var(--muted); font-size: 12px; }

@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ---------- 9. 按钮 / 标签 / 面板 / 数据 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform .18s var(--ease), background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { box-shadow: 0 10px 26px -12px rgba(182, 255, 59, .9); }
.btn--orange { background: var(--orange); color: #180C02; }
.btn--orange:hover { box-shadow: 0 10px 26px -12px rgba(255, 122, 26, .9); }
.btn--ghost { border-color: var(--line); color: var(--white); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--sm { padding: 9px 15px; font-size: 13px; }
.btn__arrow { font-family: var(--font-mono); font-size: 13px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, .02);
}
.tag--lime { color: var(--lime); border-color: rgba(182, 255, 59, .38); }
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 26, .38); }
.tag--red { color: var(--red); border-color: rgba(229, 72, 77, .42); }
.tag--solid { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s var(--ease);
}
.panel:hover {
  border-color: rgba(182, 255, 59, .5);
  box-shadow: 0 0 0 1px rgba(182, 255, 59, .14), 0 18px 40px -28px rgba(182, 255, 59, .6);
}
.panel--paper { background: var(--paper); border-color: var(--paper-2); color: #181410; }
.panel--paper h2, .panel--paper h3, .panel--paper h4, .panel--paper strong { color: #0B0F14; }
.panel--paper p, .panel--paper li { color: #3A342C; }
.panel--paper .eyebrow { color: #B0510A; }
.panel--paper .eyebrow::before { background: #B0510A; }
.panel--glass {
  background: rgba(21, 28, 36, .62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.panel--flat { border-style: dashed; }
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.panel__title { font-size: 18px; font-weight: 800; color: var(--white); }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--lime);
}
.stat__num--orange { color: var(--orange); }
.stat__num--white { color: var(--white); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--muted);
}

/* ---------- 10. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media > img,
.media > video,
.media > svg,
.media > picture,
.media > picture > img,
.media > canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--fill { height: 100%; min-height: 220px; }
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------- 11. 长文 ---------- */
.prose { max-width: 70ch; font-size: 17px; line-height: 1.85; color: var(--body); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; font-size: clamp(23px, 2.4vw, 30px); }
.prose h3 { margin-top: 1.7em; font-size: 20px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul li { position: relative; list-style: none; padding-left: 16px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 7px;
  height: 2px;
  background: var(--lime);
}
.prose ol { list-style: decimal; }
.prose ol li { display: list-item; list-style: decimal; padding-left: 4px; }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 122, 26, .07);
  border-radius: 0 2px 2px 0;
}
.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  padding: 2px 6px;
  background: rgba(255, 255, 255, .06);
  border-radius: 2px;
  color: var(--lime);
}

/* ---------- 12. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.crumbs a { color: var(--muted); transition: color .18s ease; }
.crumbs a:hover { color: var(--lime); }
.crumbs__sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--white); }

/* ---------- 13. 主题筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.filter-btn {
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, .02);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.filter-btn:hover { color: var(--white); border-color: #3C4A5C; }
.filter-btn[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.is-filtered-out { display: none !important; }

/* ---------- 14. 工具类 ---------- */
.u-mono { font-family: var(--font-mono); letter-spacing: .04em; }
.u-lime { color: var(--lime); }
.u-orange { color: var(--orange); }
.u-red { color: var(--red); }
.u-muted { color: var(--muted); }
.u-backdrop-paper {
  background: var(--paper);
  color: #181410;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
}
.u-rule { height: 1px; background: var(--line); border: 0; margin-block: clamp(28px, 4vw, 52px); }
.u-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.u-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 15. 焦点 / 显现 / 减弱动效 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
.js-on [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js-on [data-reveal] { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .hud-rail { transition: none; }
}
