/* ============================================================
   yb体育主站 · 共享样式 /assets/site.css
   夜场记分牌体系：墨绿底 + 荧光青信号 + 暖金数字 + 红黄牌状态
   ============================================================ */

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

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

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

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

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

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

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

[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  /* 品牌色 */
  --ink: #0B1E1A;
  --tunnel: #05100D;
  --cyan: #37E8D0;
  --gold: #E9B85C;
  --red: #FF5347;
  --yellow: #FFD34E;
  --wine: #6C2136;
  --indigo: #2B2A63;
  --chalk: #F1F7F3;
  --mist: #8FA9A1;

  /* 派生 */
  --surface: #0F2723;
  --surface-2: #123029;
  --surface-3: #0C2320;
  --line: rgba(143, 169, 161, 0.26);
  --line-strong: rgba(143, 169, 161, 0.5);
  --text-soft: rgba(241, 247, 243, 0.8);
  --text-dim: rgba(241, 247, 243, 0.68);

  /* 字体 */
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "IBM Plex Mono", "Courier New", monospace;

  /* 形状 */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 32px;
  --r-pill: 999px;
  --slant: -6deg;

  /* 节奏 */
  --gutter: clamp(16px, 4vw, 40px);
  --shell-max: 1240px;
  --pad-section: clamp(48px, 7.5vw, 104px);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- base ---------- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 82% 4%, rgba(55, 232, 208, 0.08), transparent 42%),
    radial-gradient(circle at 6% 94%, rgba(233, 184, 92, 0.06), transparent 40%);
  background-attachment: fixed;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
}

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7FF5E4; }

strong, b { font-weight: 800; }

::selection { background: rgba(55, 232, 208, 0.3); color: #fff; }

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

#main-content { outline: none; }
#main-content:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* ---------- 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--pad-section); }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.05em; color: var(--text-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin-bottom: 1.1em; padding-left: 1.15em; list-style: none; }
.prose li { position: relative; color: var(--text-soft); margin-bottom: 0.4em; }
.prose li::before {
  content: "";
  position: absolute;
  left: -1.05em;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------- 文字体系 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  font-size: clamp(40px, 8vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.h2 {
  font-weight: 800;
  font-size: clamp(23px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.h3 {
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.3;
  margin: 0 0 10px;
}

.lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

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

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04120F;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 14px;
  color: #04120F;
}

/* ============================================================
   页头：记分牌横条
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 16, 13, 0.97), rgba(11, 30, 26, 0.9));
  border-bottom: 1px solid var(--line);
  color: var(--chalk);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan) 42%, var(--gold) 88%);
  opacity: 0.75;
}

.header-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  min-height: 74px;
  padding-block: 11px;
}

/* 品牌字标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--chalk);
}

.brand:hover { color: var(--chalk); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #04120F;
  background: linear-gradient(140deg, var(--cyan), #1FBFAC);
  box-shadow: 0 0 0 1px rgba(55, 232, 208, 0.45), 0 10px 26px -14px rgba(55, 232, 208, 0.9);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; }

.brand-domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

/* 中缝细线与赛季标签 */
.header-rail {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-rail::before,
.header-rail::after {
  content: "";
  flex: 1 1 auto;
  min-width: 10px;
  height: 1px;
  background: var(--line);
}

.rail-tag {
  flex: 0 0 auto;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(233, 184, 92, 0.36);
  background: rgba(233, 184, 92, 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(55, 232, 208, 0.42);
  background: rgba(55, 232, 208, 0.08);
  color: var(--chalk);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover { background: rgba(55, 232, 208, 0.18); }

.nav-toggle-bar {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 5px 0 var(--cyan), 0 -5px 0 var(--cyan);
}

/* 主导航 */
.site-nav { flex: 0 0 auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: rgba(241, 247, 243, 0.86);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(55, 232, 208, 0.12);
  color: #fff;
}

.nav-link:hover .nav-index,
.nav-link:focus-visible .nav-index { color: var(--cyan); }

.nav-link[aria-current="page"] {
  background: rgba(55, 232, 208, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(55, 232, 208, 0.5);
}

.nav-link[aria-current="page"] .nav-index { color: var(--cyan); }

/* 快捷入口 */
.nav-quick {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 176px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  border: 1px solid var(--line);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s linear;
}

.nav-item:hover .nav-quick,
.nav-item:focus-within .nav-quick {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:last-child .nav-quick { left: auto; right: 0; }

.nav-quick a {
  display: block;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-quick a:hover,
.nav-quick a:focus-visible {
  background: rgba(55, 232, 208, 0.12);
  color: var(--cyan);
}

/* 滚动信号条 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 14px rgba(55, 232, 208, 0.55);
  pointer-events: none;
}

/* ============================================================
   页脚：档案夹四栏
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, var(--ink) 0%, var(--tunnel) 62%);
  border-top: 1px solid var(--line);
  color: var(--chalk);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wine), var(--indigo) 34%, var(--cyan) 68%, var(--gold));
  opacity: 0.72;
}

.footer-shell { padding-block: clamp(40px, 6vw, 74px) 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3.6vw, 52px);
}

.footer-col { display: flex; flex-direction: column; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--chalk);
}

.footer-brand-name { font-size: 16px; font-weight: 800; letter-spacing: 0.01em; }

.footer-note {
  margin-bottom: 14px;
  max-width: 34ch;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}

.footer-boundary {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 211, 78, 0.34);
  background: rgba(255, 211, 78, 0.08);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--mist);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.footer-title--sub { margin-top: 24px; }

.footer-index,
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-index li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(143, 169, 161, 0.72);
}

.footer-link {
  color: var(--text-soft);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact { gap: 8px; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(241, 247, 243, 0.05);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}

.copy-btn:hover {
  border-color: rgba(55, 232, 208, 0.6);
  color: #fff;
}

.copy-hint {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.footer-address {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
}

.footer-legal,
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.to-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 18px 6px 8px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(55, 232, 208, 0.4);
  background: rgba(55, 232, 208, 0.08);
  color: var(--chalk);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.to-top:hover { background: rgba(55, 232, 208, 0.18); }

.to-top-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
}

.to-top-ring::after {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid var(--cyan);
  border-top: 2px solid var(--cyan);
  transform: rotate(45deg) translate(1px, 1px);
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.btn-primary {
  background: var(--gold);
  color: #22160A;
  box-shadow: 0 16px 32px -20px rgba(233, 184, 92, 0.95);
}

.btn-primary:hover { background: #F3C877; color: #22160A; }

.btn-ghost {
  background: rgba(55, 232, 208, 0.08);
  border-color: rgba(55, 232, 208, 0.45);
  color: var(--chalk);
}

.btn-ghost:hover { background: rgba(55, 232, 208, 0.18); color: #fff; }

.btn-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--cyan);
}

.btn-quiet:hover { border-color: var(--cyan); color: #7FF5E4; }

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }

.crumb-sep { color: rgba(143, 169, 161, 0.55); }

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

/* ============================================================
   网格与错位
   ============================================================ */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.stagger > *:nth-child(2) { margin-top: clamp(0px, 2vw, 26px); }
.stagger > *:nth-child(3) { margin-top: clamp(0px, 4vw, 52px); }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stagger > * { margin-top: 0 !important; }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   档案卡
   ============================================================ */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface-3));
}

.card-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.card-title {
  margin-bottom: 8px;
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.card-text {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ============================================================
   号码牌胶囊
   ============================================================ */
.plate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(241, 247, 243, 0.05);
}

.plate-num {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--cyan);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}

.plate:hover .plate-num {
  color: var(--gold);
  transform: translateY(-2px);
}

.plate-name { font-size: 15px; font-weight: 600; }

.plate-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.plate-input {
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(5, 16, 13, 0.7);
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.plate-input::placeholder { color: var(--mist); }

.plate-input:focus-visible {
  border-color: var(--cyan);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ============================================================
   胶囊与标签
   ============================================================ */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(241, 247, 243, 0.06);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.tag-cyan {
  background: rgba(55, 232, 208, 0.14);
  border-color: rgba(55, 232, 208, 0.4);
  color: var(--cyan);
}

.tag-gold {
  background: rgba(233, 184, 92, 0.14);
  border-color: rgba(233, 184, 92, 0.4);
  color: var(--gold);
}

.tag-red {
  background: rgba(255, 83, 71, 0.14);
  border-color: rgba(255, 83, 71, 0.45);
  color: #FF8A82;
}

.tag-yellow {
  background: rgba(255, 211, 78, 0.14);
  border-color: rgba(255, 211, 78, 0.4);
  color: var(--yellow);
}

.tag-indigo {
  background: rgba(43, 42, 99, 0.55);
  border-color: rgba(120, 118, 214, 0.5);
  color: #B9B7FF;
}

/* ============================================================
   主题筛选（只过滤当前页已有内容）
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scrollbar-width: thin;
}

.filter-bar::-webkit-scrollbar { height: 6px; }
.filter-bar::-webkit-scrollbar-thumb {
  background: rgba(55, 232, 208, 0.3);
  border-radius: 999px;
}

.filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(241, 247, 243, 0.05);
  color: rgba(241, 247, 243, 0.85);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.filter-btn:hover {
  border-color: rgba(55, 232, 208, 0.6);
  color: #fff;
}

.filter-btn.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  opacity: 0.75;
}

.filter-status {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ============================================================
   图片容器（页面阶段放置图片）
   ============================================================ */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(55, 232, 208, 0.15), transparent 46%),
    linear-gradient(155deg, #123029 0%, #0B1E1A 56%, #1B1440 100%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(5, 16, 13, 0.74));
  pointer-events: none;
}

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

.media-tag {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(5, 16, 13, 0.82);
  border: 1px solid rgba(55, 232, 208, 0.4);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--mist);
}

/* ============================================================
   章节色带与斜切过渡
   ============================================================ */
.band {
  position: relative;
  padding-block: clamp(32px, 5vw, 64px);
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(43, 42, 99, 0.32), rgba(11, 30, 26, 0));
}

.band--wine { background: linear-gradient(180deg, rgba(108, 33, 54, 0.45), rgba(11, 30, 26, 0.08)); }
.band--indigo { background: linear-gradient(180deg, rgba(43, 42, 99, 0.5), rgba(11, 30, 26, 0.08)); }

.band-edge {
  height: clamp(24px, 4vw, 56px);
  background: var(--wine);
  clip-path: polygon(0 0, 100% 0, 100% 32%, 0 100%);
}

.band-edge--indigo { background: var(--indigo); }

.band-edge--cyan {
  background: linear-gradient(90deg, var(--cyan), rgba(55, 232, 208, 0.08));
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 100%);
}

/* ============================================================
   入场动效协议
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

html.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式：平板与手机
   ============================================================ */
@media (max-width: 1000px) {
  .header-rail { display: none; }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    margin-inline: calc(var(--gutter) * -1);
    margin-bottom: 8px;
  }

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

  .nav-list {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 10px var(--gutter) 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar { display: none; }

  .nav-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .nav-link {
    padding: 10px 16px;
    background: rgba(241, 247, 243, 0.06);
    border: 1px solid var(--line);
  }

  .nav-link[aria-current="page"] { border-color: rgba(55, 232, 208, 0.6); }

  .nav-quick { display: none; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 15px;
  }

  .brand-domain { display: none; }

  .header-shell { min-height: 64px; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .to-top { margin-left: 0; }
}

/* ============================================================
   无障碍：降低动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress { transition: none; }
}
