/* ==========================================================================
   real-yayu.com.cn — 共享站点样式 /assets/site.css
   主题：夜间版本控制台 · 精装版本日志
   ========================================================================== */

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

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

body { margin: 0; }

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

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

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

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

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #061826;
  --panel: #0B2438;
  --teal: #0E3545;
  --indigo: #1B2048;
  --wine: #3A1F3D;
  --cyan: #35E6FF;
  --amber: #F2B84B;
  --mauve: #8B7FA8;
  --sand: #D8C3A5;
  --white: #F4F7FA;
  --mist: #A9BCCB;
  --mint: #7FE0C3;
  --coral: #FF8A7A;

  --line: rgba(169, 188, 203, 0.16);
  --line-strong: rgba(169, 188, 203, 0.34);
  --deep-shadow: 0 22px 46px -34px rgba(0, 0, 0, 0.95);

  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-condensed: "Barlow Condensed", "Oswald", "Arial Narrow", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", "Courier New", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  background-image: radial-gradient(1200px 620px at 50% -12%, rgba(14, 53, 69, 0.62), transparent 72%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.32vw + 14px, 17px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-underline-offset: 0.25em;
}

h1, h2, h3, h4 {
  font-family: var(--font-condensed);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

p { text-wrap: pretty; }

::selection { background: var(--cyan); color: #04212c; }

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

/* ---------- 4. 工具类 ---------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: var(--mist);
  max-width: 60ch;
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.2em; }
.prose li { list-style: disc; margin-top: 0.4em; }

.note {
  border-left: 2px solid var(--amber);
  background: rgba(242, 184, 75, 0.07);
  padding: 14px 18px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: clamp(16px, 4vw, 40px);
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04212c;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline-offset: 2px;
}

/* ---------- 6. 滚动进度条 ---------- */
.scroll-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(169, 188, 203, 0.14);
  z-index: 120;
  pointer-events: none;
}

.scroll-rail__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  will-change: width;
}

/* ---------- 7. 头部：居中刊头导航 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background-image: linear-gradient(180deg, rgba(14, 53, 69, 0.55), rgba(6, 24, 38, 0) 82%);
  border-bottom: 1px solid var(--line-strong);
}

.masthead-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s3);
  padding-block: 20px 14px;
  border-bottom: 1px solid var(--line);
}

.masthead-strip__edition {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.masthead-strip__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.masthead {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding-inline: clamp(4px, 2vw, 24px);
  text-align: center;
}

.masthead__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
  color: var(--white);
  transition: color 0.18s var(--ease);
}

.masthead:hover .masthead__name,
.masthead:focus-visible .masthead__name { color: var(--cyan); }

.masthead__note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--mist);
}

/* 移动栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible { color: var(--white); border-color: var(--cyan); }

.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle { color: var(--cyan); border-color: var(--cyan); }
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { transform: translateY(-2.75px) rotate(-45deg); }

/* 目录条 */
.site-nav {
  padding-block: 10px;
  border-bottom: 1px solid var(--line-strong);
  background-image: linear-gradient(180deg, rgba(11, 36, 56, 0.55), rgba(6, 24, 38, 0));
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2.6vw, 34px);
  counter-reset: navidx;
}

.site-nav__item { counter-increment: navidx; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 2px 8px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(14px, 1.35vw, 16.5px);
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.site-nav__link::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--amber);
  opacity: 0.8;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--white); }

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 8. 复制组件 ---------- */
.copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(53, 230, 255, 0.45);
  border-radius: 2px;
  background: rgba(53, 230, 255, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: rgba(53, 230, 255, 0.18);
  border-color: var(--cyan);
}

.copy-btn.is-copied {
  background: rgba(127, 224, 195, 0.16);
  border-color: var(--mint);
  color: var(--mint);
}

.copy-btn__label { overflow-wrap: anywhere; }

.copy-btn__action {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  white-space: nowrap;
}

.copy-btn--field {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  text-align: left;
}

.copy-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--mint);
}

.copy-status:empty { display: none; }

.copy--version .copy-status {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  white-space: nowrap;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--s8);
  border-top: 1px solid var(--line-strong);
  background-image: linear-gradient(180deg, #071c2b, #04121c);
  padding-top: clamp(40px, 6vw, 72px);
}

.site-footer::after {
  content: "v3.2.1";
  position: absolute;
  right: -0.06em;
  top: -0.3em;
  z-index: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(88px, 16vw, 216px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(53, 230, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.7fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.1em;
  color: var(--white);
}

.footer-brand__summary {
  margin-top: 12px;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-brand__stamp {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(53, 230, 255, 0.4);
  border-radius: 2px;
  font-size: 12px;
  color: var(--cyan);
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.footer-col__list { display: grid; gap: 9px; }

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-contact__list { display: grid; gap: 14px; }

.footer-contact__item { display: grid; gap: 5px; min-width: 0; }

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--mist);
}

.footer-contact__note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  max-width: 42ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(169, 188, 203, 0.85);
}

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mist);
}

.footer-legal__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.footer-legal__dot { color: var(--line-strong); }

/* ---------- 10. 章节与网格 ---------- */
.section {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.section--panel { background: var(--panel); }
.section--teal { background: var(--teal); }
.section--indigo { background: var(--indigo); }
.section--wine { background: var(--wine); }

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.section__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--white);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.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-12 { grid-column: span 12; }

/* ---------- 11. 按钮 / 芯片 / 标签 / 状态 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(11, 36, 56, 0.6);
  color: var(--white);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04212c;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #7deffd;
  border-color: #7deffd;
  color: #04212c;
}

.btn--ghost { background: transparent; }

.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(11, 36, 56, 0.5);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background 0.18s var(--ease);
}

.chip:hover,
.chip:focus-visible { color: var(--white); border-color: var(--cyan); }

.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04212c;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--white);
}

.tag--mauve { background: rgba(139, 127, 168, 0.28); border-color: rgba(139, 127, 168, 0.62); }
.tag--sand { background: rgba(216, 195, 165, 0.18); border-color: rgba(216, 195, 165, 0.5); color: var(--sand); }
.tag--cyan { background: rgba(53, 230, 255, 0.14); border-color: rgba(53, 230, 255, 0.5); color: var(--cyan); }
.tag--mint { background: rgba(127, 224, 195, 0.14); border-color: rgba(127, 224, 195, 0.5); color: var(--mint); }
.tag--coral { background: rgba(255, 138, 122, 0.14); border-color: rgba(255, 138, 122, 0.5); color: var(--coral); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status--ok { color: var(--mint); }
.status--warn { color: var(--coral); }
.status--pending { color: var(--amber); }

/* ---------- 12. 面板 / 卡片 / 时间轴 / 面包屑 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--deep-shadow);
}

.card {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(16px, 2.4vw, 26px);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease),
              background 0.18s var(--ease);
}

.card:hover,
.card:focus-visible {
  border-color: rgba(53, 230, 255, 0.45);
  transform: translateY(-3px);
}

.card__meta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.card__title {
  margin-top: 6px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--white);
}

.card__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.timeline {
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(16px, 3vw, 28px);
}

.timeline__item {
  position: relative;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline__item:last-child { border-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(-1 * clamp(16px, 3vw, 28px) - 4px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.timeline__date {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

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

.breadcrumb__sep { color: var(--line-strong); }

/* ---------- 13. 图片容器基础规则（共享外壳不放图） ---------- */
.figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.figure__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: var(--panel);
  background-image:
    repeating-linear-gradient(0deg, rgba(169, 188, 203, 0.06) 0 1px, transparent 1px 22px),
    linear-gradient(140deg, rgba(14, 53, 69, 0.9), rgba(6, 24, 38, 0.95));
  aspect-ratio: 16 / 10;
}

.figure__frame img,
.figure__frame picture,
.figure__frame svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__frame[data-ratio="21x9"] { aspect-ratio: 21 / 9; }
.figure__frame[data-ratio="16x10"] { aspect-ratio: 16 / 10; }
.figure__frame[data-ratio="4x3"] { aspect-ratio: 4 / 3; }
.figure__frame[data-ratio="1x1"] { aspect-ratio: 1 / 1; }

.figure__cap {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 14. 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .masthead-strip {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
    padding-block: 16px 12px;
  }

  .masthead-strip__edition { display: none; }

  .masthead-strip__tools {
    width: 100%;
    justify-content: space-between;
  }

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

  .site-nav {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    padding-block: 0;
    transition: max-height 0.26s var(--ease), visibility 0.26s var(--ease),
                padding 0.26s var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: 80vh;
    overflow: auto;
    visibility: visible;
    padding-block: 6px 12px;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__item { border-top: 1px solid var(--line); }
  .site-nav__item:first-child { border-top: 0; }

  .site-nav__link {
    width: 100%;
    padding: 14px 2px;
    font-size: 16px;
  }

  .site-nav__link::after { display: none; }

  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }

  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer::after { font-size: 84px; top: -0.2em; }
  .copy-btn--field { font-size: 11.5px; }
  .figure__frame { aspect-ratio: 4 / 3; }
}

/* ---------- 16. 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .btn:focus-visible,
  .card:hover,
  .card:focus-visible,
  .footer-link:hover,
  .footer-link:focus-visible { transform: none; }

  .scroll-rail__fill { transition: none; }
}
