/* ============================================================
   LEYU主站 · /assets/site.css
   共享外壳：reset、变量、中文排版、头部、页脚、通用组件
   ============================================================ */

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

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

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

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

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

img { height: auto; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

input, textarea, select { font: inherit; }

hr { border: 0; }

/* ---------- 变量 ---------- */
:root {
  --pitch-950: #04120E;
  --pitch-900: #071D17;
  --pitch-800: #0E2E24;
  --pitch-700: #1D5A45;
  --card: #101514;

  --paper: #F1EFE6;
  --muted: #8EA79D;

  --neon: #4FF5D2;
  --neon-soft: #A7FFE8;
  --orange: #FF8A3D;
  --amber: #FFC46B;

  --line: 1px solid rgba(29, 90, 69, 0.72);
  --line-soft: 1px solid rgba(29, 90, 69, 0.4);
  --line-strong: 2px solid var(--pitch-700);

  --shadow-hard: 10px 10px 0 rgba(4, 18, 14, 0.92);
  --shadow-soft: 6px 6px 0 rgba(4, 18, 14, 0.6);

  --font-display: "Barlow Condensed", "Archivo Narrow", "Oswald", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --step-0: clamp(15px, 0.35vw + 13px, 17px);
  --step--1: clamp(12px, 0.2vw + 11px, 13px);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background-color: var(--pitch-900);
  background-image:
    radial-gradient(120% 78% at 76% -12%, rgba(79, 245, 210, 0.11), transparent 62%),
    radial-gradient(88% 60% at -6% 104%, rgba(255, 138, 61, 0.07), transparent 58%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

p { max-width: 34em; }

strong { font-weight: 700; color: var(--neon-soft); }

::selection {
  background: var(--neon);
  color: var(--pitch-950);
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-160%);
  padding: 11px 20px;
  background: var(--neon);
  color: var(--pitch-950);
  border: 2px solid var(--pitch-950);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 2px solid var(--pitch-700);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
              transform 0.18s var(--ease);
}

.btn:hover {
  border-color: var(--paper);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--neon);
  color: var(--neon);
}

.btn--ghost:hover {
  background: var(--neon);
  color: var(--pitch-950);
  border-color: var(--neon);
  box-shadow: 5px 5px 0 rgba(79, 245, 210, 0.22);
}

.btn--warm {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--warm:hover {
  background: var(--orange);
  color: var(--pitch-950);
  border-color: var(--orange);
  box-shadow: 5px 5px 0 rgba(255, 138, 61, 0.26);
}

.btn--block { width: 100%; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 29, 23, 0.95);
  border-bottom: var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header[data-stuck] {
  background: rgba(7, 29, 23, 0.995);
  box-shadow: 0 10px 0 -6px rgba(4, 18, 14, 0.7);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav util";
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter);
  transition: padding 0.2s var(--ease);
}

.site-header[data-stuck] .site-header__inner {
  padding-top: 9px;
  padding-bottom: 9px;
}

/* 品牌 */
.brand {
  grid-area: brand;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 15px;
  flex: 0 0 auto;
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: linear-gradient(180deg, var(--neon), var(--pitch-700));
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: 0.015em;
  line-height: 1.05;
  color: var(--paper);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--muted);
  transition: opacity 0.18s var(--ease);
}

.site-header[data-stuck] .brand__tag { opacity: 0; }

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

/* 移动导航按钮 */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 2px solid var(--pitch-700);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 14px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--neon);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }

.site-header[data-open] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 导航 */
.primary-nav {
  grid-area: nav;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.7vw, 26px);
  counter-reset: nav;
}

.primary-nav__item {
  counter-increment: nav;
  flex: 0 0 auto;
}

.primary-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 2px 8px;
  border-bottom: 2px solid transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.primary-nav__link::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--pitch-700);
  transition: color 0.18s var(--ease);
}

.primary-nav__link:hover {
  color: var(--neon-soft);
  border-bottom-color: var(--neon-soft);
}

.primary-nav__link:hover::before { color: var(--neon); }

.primary-nav__link[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.primary-nav__link[aria-current="page"]::before { color: var(--orange); }

/* 工具区 */
.utility {
  grid-area: util;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--neon-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  background: var(--pitch-800);
  border-top: var(--line-strong);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon) 0%, rgba(79, 245, 210, 0) 42%, var(--orange) 72%, rgba(255, 138, 61, 0) 100%);
  pointer-events: none;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) repeat(4, minmax(110px, 1fr));
  align-items: start;
  gap: clamp(24px, 3vw, 44px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 44px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--paper);
}

.footer-brand__name:hover { color: var(--neon); }

.footer-brand__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--muted);
  max-width: 16em;
}

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

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: var(--line);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
}

.footer-col__title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col__link {
  display: inline-block;
  color: rgba(241, 239, 230, 0.82);
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer-col__link:hover {
  color: var(--neon);
  transform: translateX(3px);
}

.footer-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 32px;
  margin-top: clamp(6px, 1.6vw, 14px);
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--card);
  border: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

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

.footer-contact__label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.footer-contact__value {
  max-width: none;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-contact__note {
  grid-column: 1 / -1;
  max-width: 62em;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px dashed rgba(29, 90, 69, 0.85);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid var(--pitch-700);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  vertical-align: baseline;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.copy-btn:hover {
  border-color: var(--neon);
  background: rgba(79, 245, 210, 0.12);
}

.copy-btn[data-copied] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--pitch-950);
}

.footer-legal {
  background: var(--pitch-900);
  border-top: var(--line-soft);
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-legal__copy { max-width: none; }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-legal__link {
  color: var(--muted);
  transition: color 0.16s var(--ease);
}

.footer-legal__link:hover { color: var(--neon); }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--neon);
  background: var(--pitch-800);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 5px 5px 0 rgba(4, 18, 14, 0.9);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.to-top[hidden] { display: none; }

.to-top:hover {
  background: var(--neon);
  color: var(--pitch-950);
  transform: translateY(-3px);
}

/* ---------- 通用容器与章节 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 6vw, 88px);
  border-top: var(--line-soft);
}

.section--tint {
  background: var(--pitch-800);
  border-top: var(--line-strong);
  border-bottom: var(--line-soft);
}

.section > .wrap > * + * { margin-top: clamp(18px, 2.6vw, 32px); }

/* ---------- 文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.display-1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 34em;
  color: rgba(241, 239, 230, 0.88);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.72;
}

.meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.rule {
  height: 2px;
  background: var(--pitch-700);
  border: 0;
  margin-block: clamp(20px, 3vw, 36px);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--3-9 { grid-template-columns: 3fr 9fr; }

.grid > * { min-width: 0; }

/* ---------- 标签与筛选胶囊 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--pitch-700);
  background: rgba(79, 245, 210, 0.07);
  color: var(--neon-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 2px solid var(--pitch-700);
  background: rgba(16, 21, 20, 0.55);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
}

.chip:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.chip[aria-pressed="true"],
.chip[data-active] {
  border-color: var(--neon);
  background: rgba(79, 245, 210, 0.14);
  color: var(--neon);
}

/* ---------- 卡片 ---------- */
.card {
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--card);
  border: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.card > * + * { margin-top: 14px; }

.card--focus {
  border-color: var(--neon);
  box-shadow: var(--shadow-hard);
}

.card--quiet {
  background: var(--pitch-800);
  border-width: 1px;
  box-shadow: none;
}

/* ---------- 数据行 ---------- */
.data-list {
  display: flex;
  flex-direction: column;
  border-top: var(--line);
}

.data-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: var(--line-soft);
}

.data-row__rank {
  min-width: 2.2em;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.data-row__value {
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* ---------- 数值块 ---------- */
.stat { display: block; }

.stat__value {
  display: block;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat__label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* ---------- 章节索引 ---------- */
.anchor-index {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--pitch-700);
}

.anchor-index__link {
  display: flex;
  gap: 10px;
  margin-left: -2px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.anchor-index__link:hover { color: var(--paper); }

.anchor-index__link[aria-current] {
  border-left-color: var(--neon);
  background: rgba(79, 245, 210, 0.07);
  color: var(--neon);
}

/* ---------- 提示块 ---------- */
.callout {
  max-width: 40em;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  background: rgba(255, 138, 61, 0.08);
  color: rgba(241, 239, 230, 0.9);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- 图片容器 ---------- */
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(140deg, rgba(29, 90, 69, 0.55), rgba(4, 18, 14, 0.95));
  border: var(--line-strong);
}

.image-frame--wide { aspect-ratio: 21 / 9; }
.image-frame--tall { aspect-ratio: 3 / 4; }

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

.image-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(7, 29, 23, 0), rgba(7, 29, 23, 0.9));
  pointer-events: none;
}

.image-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 12px 16px;
  color: rgba(241, 239, 230, 0.9);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* ---------- 折叠块 ---------- */
.fold {
  background: var(--pitch-800);
  border: var(--line);
  transition: border-color 0.18s var(--ease);
}

.fold[open] { border-color: var(--neon); }

.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  color: var(--paper);
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.fold[open] summary::after { content: "–"; }

.fold summary:hover { color: var(--neon-soft); }

.fold__body {
  padding: 0 18px 16px;
  color: rgba(241, 239, 230, 0.86);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--pitch-700);
}

.breadcrumb__link {
  color: var(--muted);
  transition: color 0.16s var(--ease);
}

.breadcrumb__link:hover { color: var(--neon); }

.breadcrumb__current { color: var(--paper); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 72px; }

  html { scroll-padding-top: 112px; }

  .site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding-block: 11px;
  }

  .site-header[data-stuck] .site-header__inner { padding-block: 9px; }

  .brand { flex: 1 1 auto; }

  .brand__tag { font-size: 10.5px; letter-spacing: 0.1em; }

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

  .primary-nav {
    display: none;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

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

  .primary-nav__list {
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 0 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .primary-nav__item { scroll-snap-align: start; }

  .primary-nav__link {
    padding: 8px 14px;
    border: 1px solid var(--pitch-700);
    background: rgba(16, 21, 20, 0.62);
    font-size: 13px;
  }

  .primary-nav__link[aria-current="page"] {
    border-color: var(--neon);
    background: rgba(79, 245, 210, 0.12);
  }

  .utility {
    display: none;
    flex: 1 1 100%;
    flex-wrap: wrap;
    padding: 12px 0 4px;
  }

  .site-header[data-open] .utility { display: flex; }

  .utility .btn { flex: 1 1 auto; }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .grid--5-7,
  .grid--3-9 { grid-template-columns: 1fr; }

  .anchor-index {
    position: static;
    border-left: 0;
    border-top: var(--line);
    padding-top: 10px;
  }
}

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    box-shadow: 4px 4px 0 rgba(4, 18, 14, 0.6);
  }

  .footer-legal__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .image-frame,
  .image-frame--wide,
  .image-frame--tall { aspect-ratio: 4 / 3; }

  .to-top {
    width: 46px;
    height: 46px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .brand__name { font-size: 19px; }
  .btn { font-size: 11.5px; padding: 10px 12px; }
}

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

  .footer-col__link:hover,
  .btn:hover,
  .to-top:hover { transform: none; }
}
