/* ==========================================================================
   浩瀚体育主站 — 共享样式表 /assets/site.css
   主题：暗场指挥台 · 珠宝色分区 · 玻璃层与实色层并置
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; border: 0; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 变量 ---------- */
:root {
  --ink: #070B14;
  --teal: #0B2B2F;
  --indigo: #1B1640;
  --wine: #3A1220;
  --cyan: #22E6FF;
  --orange: #FF6A2A;
  --gold: #F5C26B;
  --mist: #E8F0F7;
  --slate: #7E93A6;
  --surface: #0F1724;
  --glass: rgba(232, 240, 247, 0.08);
  --line: rgba(232, 240, 247, 0.14);
  --line-soft: rgba(232, 240, 247, 0.07);
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  --shell: 1320px;
  --gutter: clamp(16px, 3.2vw, 36px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(34, 230, 255, 0.10), transparent 70%),
    radial-gradient(760px 420px at 4% 2%, rgba(255, 106, 42, 0.07), transparent 68%),
    repeating-linear-gradient(0deg, rgba(232, 240, 247, 0.02) 0 1px, transparent 1px 3px);
  background-attachment: fixed;
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#main-content { scroll-margin-top: clamp(88px, 14vh, 132px); }
::selection { background: rgba(34, 230, 255, 0.32); color: #ffffff; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: var(--gutter);
  z-index: 400;
  display: inline-block;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04141a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(34, 230, 255, 0.35);
  transition: top 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 11, 20, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(232, 240, 247, 0.06);
  color: var(--mist);
}

/* 顶部状态带 */
.header-strip {
  max-height: 42px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 43, 47, 0.92), rgba(27, 22, 64, 0.6) 55%, rgba(7, 11, 20, 0.9));
  border-bottom: 1px solid var(--line-soft);
  transition: max-height 0.26s var(--ease), opacity 0.22s var(--ease);
}
.site-header[data-scrolled="true"] .header-strip {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}
.header-strip-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--slate);
}
.strip-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 230, 255, 0.16), 0 0 12px rgba(34, 230, 255, 0.8);
  animation: stripPulse 2.6s ease-in-out infinite;
}
.strip-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}
.strip-links a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.strip-links a:hover,
.strip-links a:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(34, 230, 255, 0.6);
}

/* 主导航行 */
.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 76px;
  transition: min-height 0.24s var(--ease), padding 0.24s var(--ease);
}
.site-header[data-scrolled="true"] .header-inner {
  min-height: 62px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  flex: 0 0 auto;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mist);
  flex: 0 0 auto;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(34, 230, 255, 0.5);
  background: linear-gradient(140deg, rgba(34, 230, 255, 0.2), rgba(7, 11, 20, 0.5));
  transform: skewX(-8deg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  border-color: var(--cyan);
  box-shadow: 0 0 18px -4px rgba(34, 230, 255, 0.8);
}
.brand-mark-dot {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 230, 255, 0.9);
  animation: brandPulse 3.8s ease-in-out infinite;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* 版本切换 */
.version-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 36, 0.72);
  flex: 0 0 auto;
}
.version-pill {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--slate);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.version-pill:hover { color: var(--mist); background: rgba(232, 240, 247, 0.07); }
.version-pill.is-active,
.version-pill[aria-current="page"] {
  color: var(--cyan);
  background: rgba(34, 230, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(34, 230, 255, 0.42);
}

/* 中央面板入口 */
.header-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.panel-entry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: #04141a;
  background: linear-gradient(100deg, var(--cyan), #8bf2ff 62%, #cbfbff);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
}
.panel-entry:hover,
.panel-entry:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 28px -12px rgba(34, 230, 255, 0.9);
}
.panel-entry-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: #04141a;
}
.panel-entry-label { display: inline-block; }
.panel-entry-key {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  opacity: 0.62;
}

/* 导航 */
.site-nav { flex: 0 0 auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { display: block; }
.nav-link {
  position: relative;
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: rgba(232, 240, 247, 0.78);
  text-decoration: none;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}
.nav-link:hover {
  color: var(--mist);
  background: rgba(232, 240, 247, 0.05);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  box-shadow: 0 0 10px rgba(34, 230, 255, 0.7);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: rgba(232, 240, 247, 0.05);
  border: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: rgba(34, 230, 255, 0.6); color: var(--cyan); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.site-header[data-open="true"] .nav-toggle { border-color: rgba(34, 230, 255, 0.7); color: var(--cyan); }
.site-header[data-open="true"] .nav-toggle-bars {
  background: transparent;
  box-shadow: none;
}
.site-header[data-open="true"] .nav-toggle-bars::before,
.site-header[data-open="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.site-header[data-open="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* 阅读进度 */
.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(232, 240, 247, 0.07);
  overflow: hidden;
}
.reading-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 68%, var(--orange));
  box-shadow: 0 0 12px rgba(34, 230, 255, 0.7);
  transition: width 0.09s linear;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: clamp(40px, 6vw, 76px);
  border-top: 1px solid rgba(34, 230, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(34, 230, 255, 0.14);
  background-color: #04070d;
  background-image:
    repeating-linear-gradient(90deg, rgba(232, 240, 247, 0.035) 0 1px, transparent 1px 96px),
    radial-gradient(900px 340px at 12% 0%, rgba(11, 43, 47, 0.95), transparent 72%),
    radial-gradient(720px 320px at 94% 8%, rgba(27, 22, 64, 0.9), transparent 74%),
    linear-gradient(180deg, #060a12, #04070d 72%);
  color: var(--mist);
}
.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.2fr;
  gap: clamp(24px, 3vw, 52px);
  padding-bottom: clamp(32px, 4vw, 58px);
}
.footer-brand { min-width: 0; }
.footer-summary {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--slate);
}
.footer-version {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 194, 107, 0.45);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-version:hover,
.footer-version:focus-visible {
  color: #ffd899;
  border-bottom-color: var(--gold);
}
.footer-col { min-width: 0; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mist);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 230, 255, 0.7);
}
.footer-links {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}
.footer-link {
  display: inline-block;
  font-size: 13.5px;
  color: rgba(232, 240, 247, 0.72);
  text-decoration: none;
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  transform: translateX(2px);
}
.footer-link[aria-current="page"] { color: var(--cyan); }
.footer-contact {
  margin-top: 14px;
  display: grid;
  gap: 13px;
}
.footer-contact-item {
  display: grid;
  gap: 3px;
}
.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--slate);
}
.footer-contact-value {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(232, 240, 247, 0.86);
  word-break: break-word;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.footer-copy { min-width: 0; }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-legal-links .footer-link { font-size: 11.5px; font-family: var(--font-mono); }
.footer-badge {
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  color: var(--slate);
  white-space: nowrap;
}

/* ==========================================================================
   共享组件
   ========================================================================== */

/* 容器与章节 */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  position: relative;
  padding: clamp(44px, 6.5vw, 92px) 0;
}
.section--teal {
  background: linear-gradient(180deg, rgba(11, 43, 47, 0.94), rgba(11, 43, 47, 0.5));
  border-top: 1px solid rgba(34, 230, 255, 0.12);
  border-bottom: 1px solid rgba(34, 230, 255, 0.08);
}
.section--indigo {
  background: linear-gradient(180deg, rgba(27, 22, 64, 0.94), rgba(27, 22, 64, 0.5));
  border-top: 1px solid rgba(232, 240, 247, 0.08);
  border-bottom: 1px solid rgba(232, 240, 247, 0.05);
}
.section--wine {
  background: linear-gradient(180deg, rgba(58, 18, 32, 0.94), rgba(58, 18, 32, 0.5));
  border-top: 1px solid rgba(245, 194, 107, 0.16);
  border-bottom: 1px solid rgba(245, 194, 107, 0.1);
}

/* 文本层级 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--orange { color: var(--orange); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.03em;
  color: var(--mist);
}
.heading-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0.035em;
  color: var(--mist);
}
.heading-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--mist);
}
.lede {
  max-width: 62ch;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.82;
  color: rgba(232, 240, 247, 0.82);
}
.readout {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* 长文 */
.prose {
  font-size: 16.5px;
  line-height: 1.82;
  color: rgba(232, 240, 247, 0.84);
}
.prose > * + * { margin-top: 1.05em; }
.prose p { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--mist);
  margin-top: 1.7em;
}
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mist);
  margin-top: 1.5em;
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
  max-width: 64ch;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: #8bf2ff; }
.prose strong { color: #ffffff; font-weight: 600; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--gold);
  color: rgba(232, 240, 247, 0.92);
  font-size: 17px;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(34, 230, 255, 0.1);
  color: var(--cyan);
}
.prose hr { border: 0; border-top: 1px solid var(--line-soft); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0a03;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: #ff8b56;
  border-color: #ff8b56;
  box-shadow: 0 12px 30px -14px rgba(255, 106, 42, 0.95);
}
.btn--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04141a;
}
.btn--cyan:hover,
.btn--cyan:focus-visible {
  background: #8bf2ff;
  border-color: #8bf2ff;
  box-shadow: 0 12px 30px -14px rgba(34, 230, 255, 0.95);
}
.btn--ghost {
  background: rgba(232, 240, 247, 0.05);
  border-color: var(--line);
  color: var(--mist);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(34, 230, 255, 0.65);
  color: var(--cyan);
  background: rgba(34, 230, 255, 0.08);
}
.btn--gold {
  background: rgba(245, 194, 107, 0.1);
  border-color: rgba(245, 194, 107, 0.62);
  color: var(--gold);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background: rgba(245, 194, 107, 0.2);
  border-color: var(--gold);
  color: #ffe1ad;
}

/* 联赛标签 */
.chip {
  --chip: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 36, 0.72);
  color: rgba(232, 240, 247, 0.8);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--chip);
  box-shadow: 0 0 9px var(--chip);
}
.chip--cyan { --chip: var(--cyan); }
.chip--orange { --chip: var(--orange); }
.chip--gold { --chip: var(--gold); }
.chip--violet { --chip: #8f7bff; }
.chip--wine { --chip: #d4557a; }
.chip--teal { --chip: #35d6b0; }
.chip:hover {
  color: var(--mist);
  border-color: var(--chip);
  background: rgba(232, 240, 247, 0.07);
}
.chip.is-active,
.chip[aria-pressed="true"] {
  color: #050c12;
  font-weight: 600;
  background: var(--chip);
  border-color: var(--chip);
  box-shadow: 0 0 22px -6px var(--chip);
}
.chip.is-active::before,
.chip[aria-pressed="true"]::before { background: #050c12; box-shadow: none; }

/* 卡片 */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-color: rgba(232, 240, 247, 0.16);
}
.card--favorite {
  border-color: rgba(245, 194, 107, 0.68);
  box-shadow: 0 0 0 1px rgba(245, 194, 107, 0.16), 0 0 26px -10px rgba(245, 194, 107, 0.85);
  animation: favoriteBreathe 4.6s ease-in-out infinite;
}

/* 面包屑 */
.breadcrumb {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(126, 147, 166, 0.5);
}
.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--mist); }

/* 网格骨架 */
.grid { display: grid; gap: clamp(14px, 1.8vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-9 { grid-column: span 9; }

/* 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(135deg, rgba(232, 240, 247, 0.035) 0 1px, transparent 1px 10px),
    linear-gradient(140deg, #0b2b2f, #0f1724 58%, #1b1640);
}
.media img,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--frame { clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.media--scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(7, 11, 20, 0.42) 0 1px, transparent 1px 3px);
  opacity: 0.6;
}
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

/* 分隔线 */
.rule {
  height: 1px;
  border: 0;
  background: var(--line-soft);
}

/* ---------- 动画 ---------- */
@keyframes stripPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(34, 230, 255, 0.16), 0 0 12px rgba(34, 230, 255, 0.8); }
  50% { opacity: 0.62; box-shadow: 0 0 0 5px rgba(34, 230, 255, 0.08), 0 0 18px rgba(34, 230, 255, 0.5); }
}
@keyframes brandPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(0.86); }
}
@keyframes favoriteBreathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245, 194, 107, 0.16), 0 0 22px -12px rgba(245, 194, 107, 0.8); }
  50% { box-shadow: 0 0 0 1px rgba(245, 194, 107, 0.42), 0 0 30px -8px rgba(245, 194, 107, 0.95); }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1200px) {
  .version-switch { display: none; }
  .panel-entry-key { display: none; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .brand-tagline { display: none; }
  .nav-link { font-size: 12.5px; padding: 8px 8px; }
  .nav-link::after { left: 8px; right: 8px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .header-inner { min-height: 64px; flex-wrap: nowrap; }
  .site-header[data-scrolled="true"] .header-inner { min-height: 58px; }
  .header-center { flex: 1 1 auto; justify-content: flex-end; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 8px var(--gutter) 22px;
    background: rgba(7, 11, 20, 0.98);
    border-bottom: 1px solid rgba(34, 230, 255, 0.24);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
  }
  .site-header[data-open="true"] .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link::after { left: 4px; right: 4px; bottom: 6px; }
  .nav-link:hover { background: rgba(34, 230, 255, 0.06); }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4, .span-6 { grid-column: span 3; }
  .span-9 { grid-column: span 6; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header-strip-inner { font-size: 10px; gap: 10px; }
  .strip-links { gap: 12px; }
  .brand-name { font-size: 17px; }
  .panel-entry { padding: 8px 12px; font-size: 12px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-badge { align-self: flex-start; }
}
@media (max-width: 560px) {
  .strip-status { display: none; }
  .header-strip-inner { justify-content: flex-end; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 16px; letter-spacing: 0.04em; }
  .panel-entry { padding: 7px 10px; font-size: 11.5px; letter-spacing: 0.02em; }
  .nav-toggle { padding: 8px 10px; }
  .grid--12 { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-6, .span-9 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .nav-toggle-text { display: none; }
  .nav-toggle-bars { box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
}

/* ---------- 无障碍：减少动效 ---------- */
@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;
  }
  .reading-progress-bar { transition: none; }
  .strip-dot, .brand-mark-dot { animation: none; }
  .card--favorite { animation: none; box-shadow: 0 0 0 1px rgba(245, 194, 107, 0.5); }
  .btn:hover, .panel-entry:hover, .footer-link:hover { transform: none; }
}
