/* ============================================================
   伟德官网 · 全站共享样式 /assets/site.css
   深墨蓝控制室 × 编辑部刊头
   ============================================================ */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0B1B2B;
  --ink-panel: #12283D;
  --cyan: #00E0D0;
  --cyan-bright: #3FF0E2;
  --cyan-mid: #1FA8B8;
  --gold: #F2B544;
  --slate: #8FA3B8;
  --mist: #E8EEF4;
  --paper: #F7FAFC;
  --text-dark: #0E1720;
  --coral: #E4674C;

  --line: rgba(143, 163, 184, 0.28);
  --line-soft: rgba(143, 163, 184, 0.14);
  --line-dark: rgba(11, 27, 43, 0.12);
  --cyan-ghost: rgba(0, 224, 208, 0.10);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --r-pill: 999px;

  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);

  --font-display: "Sora", "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 82% -8%, rgba(0, 224, 208, 0.07), transparent 58%),
    radial-gradient(90% 70% at 8% 4%, rgba(242, 181, 68, 0.045), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: 0.008em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 700; color: var(--paper); }
::selection { background: var(--cyan); color: var(--ink); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.masthead :focus-visible { outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(40px, 6.5vw, 88px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }
.section--light {
  background: var(--mist);
  color: var(--text-dark);
}
.section--light .kicker { color: var(--cyan-mid); }
.section--light .sec-index { color: #B8842A; }
.section--light h2, .section--light h3 { color: var(--text-dark); }
.section--light .prose { color: rgba(14, 23, 32, 0.84); }
.section--light .card {
  background: #FFFFFF;
  border-color: var(--line-dark);
  color: var(--text-dark);
}
.section--light .card__text { color: rgba(14, 23, 32, 0.72); }
.section--light .rule { background: var(--line-dark); }

.rule {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
}

.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--mirror { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 5. 文字工具 ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(30px, 4.6vw, 52px);
}
.h-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  font-size: clamp(20px, 2.4vw, 30px);
}
.h-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.85;
  color: rgba(247, 250, 252, 0.76);
  max-width: 62ch;
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.4;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.sec-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cyan);
  transition: gap 0.18s var(--ease-out), color 0.18s ease;
}
.link-arrow::after { content: "→"; font-size: 15px; line-height: 1; }
.link-arrow:hover { gap: 13px; color: var(--cyan-bright); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--cyan:hover { background: var(--cyan-bright); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #F6C868; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- 7. 标签与筛选 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.6;
}
.tag--gold { border-color: rgba(242, 181, 68, 0.45); color: var(--gold); }
.tag--cyan { border-color: rgba(0, 224, 208, 0.45); color: var(--cyan); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.chip:hover { color: var(--paper); border-color: var(--cyan-mid); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 8. 卡片与面板 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--ink-panel);
  color: var(--paper);
}
.card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.card__text {
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(247, 250, 252, 0.72);
}
.card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.panel {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(18, 40, 61, 0.66);
  padding: clamp(18px, 2.6vw, 28px);
}

/* ---------- 9. 分段切换 ---------- */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(18, 40, 61, 0.85);
  max-width: 100%;
}
.segmented__btn {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.segmented__btn:hover { color: var(--paper); }
.segmented__btn[aria-selected="true"] {
  background: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 10. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 110% at 18% 0%, rgba(0, 224, 208, 0.16), transparent 58%),
    radial-gradient(90% 90% at 92% 100%, rgba(242, 181, 68, 0.10), transparent 62%),
    linear-gradient(158deg, #13293F 0%, #0D1E2E 100%);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.75;
}
.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }
.media__caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.breadcrumbs a { color: var(--slate); transition: color 0.16s ease; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__sep { color: rgba(143, 163, 184, 0.45); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 12. 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(247, 250, 252, 0.84);
}
.prose p + p { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.45;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  color: var(--paper);
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.prose ul { margin-top: 0.9em; display: grid; gap: 0.5em; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan-mid);
}
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(0, 224, 208, 0.35); }
.prose a:hover { color: var(--cyan-bright); }

/* ---------- 13. 刊头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 27, 43, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.masthead__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 13px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(0, 224, 208, 0.45), 0 0 22px rgba(0, 224, 208, 0.28);
  transition: box-shadow 0.24s ease;
}
.brand:hover .brand__mark { box-shadow: 0 0 0 1px rgba(0, 224, 208, 0.8), 0 0 30px rgba(0, 224, 208, 0.45); }
.brand__text { display: block; }
.brand__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  color: var(--slate);
}

/* 导航 */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1px, 0.6vw, 8px);
  flex-wrap: nowrap;
}
.nav__item { flex: 0 0 auto; }
.nav__link {
  display: inline-block;
  padding: 9px clamp(9px, 1vw, 15px);
  border-radius: var(--r-pill);
  font-size: clamp(13px, 1.05vw, 14.5px);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  color: rgba(247, 250, 252, 0.68);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav__link:hover { color: var(--paper); background: var(--cyan-ghost); }
.nav__link[aria-current="page"] {
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}
.nav__link[aria-current="page"]:hover { background: var(--cyan-bright); color: var(--ink); }

/* 右侧 */
.masthead__aside {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0, 224, 208, 0.35);
  background: rgba(0, 224, 208, 0.07);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--cyan);
}
.version-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 3.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--cyan-mid); background: var(--cyan-ghost); }
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.2s var(--ease-out), opacity 0.2s ease;
}
.masthead[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.masthead[data-open] .nav-toggle__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* 分层抽屉 */
.drawer {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: rgba(18, 40, 61, 0.55);
  transition: max-height 0.26s var(--ease-out), border-color 0.26s ease;
}
.masthead:hover .drawer,
.masthead:focus-within .drawer {
  max-height: 260px;
  border-top-color: var(--line);
}
.drawer__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.drawer__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  padding: 18px 0 24px;
}
.drawer__cell { display: flex; flex-direction: column; gap: 3px; }
.drawer__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  line-height: 1.6;
}
.drawer__name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper);
  line-height: 1.5;
}
.drawer__desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--slate);
}

/* 阅读进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-mid) 55%, var(--gold) 100%);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 10vw, 120px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 64px);
}
.footer__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.95fr 1fr;
  gap: clamp(28px, 3.6vw, 48px);
}
.footer__col { min-width: 0; }
.footer__label {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--gold);
}
.footer__label--gap { margin-top: 26px; }
.footer__version {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.9vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--paper);
}
.footer__version-sep { color: var(--cyan); margin-inline: 7px; }
.footer__contact {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}
.footer__contact li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--slate);
  min-width: 32px;
}
.footer__contact-val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-all;
}
.footer__links { display: grid; gap: 9px; }
.footer__links a {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 250, 252, 0.7);
  transition: color 0.16s ease, padding-left 0.18s var(--ease-out);
}
.footer__links a:hover { color: var(--cyan); padding-left: 4px; }
.footer__note {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--slate);
}
.footer__note + .footer__note { margin-top: 7px; }
.footer__icp {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(143, 163, 184, 0.9);
}
.footer__copy { font-size: 12.5px; color: rgba(143, 163, 184, 0.72); }
.footer__base {
  width: 100%;
  max-width: var(--wrap);
  margin: clamp(30px, 4vw, 46px) auto 0;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid var(--line-soft);
}
.footer__base p {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(143, 163, 184, 0.72);
}

/* ---------- 15. 显现动效 ---------- */
[data-reveal] { opacity: 1; transform: none; }
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .masthead__cta { display: none; }
  .drawer__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead:hover .drawer,
  .masthead:focus-within .drawer { max-height: 340px; }
}

@media (max-width: 980px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .masthead__inner { padding: 10px var(--gutter); gap: 10px; }
  .brand__sub { display: none; }
  .brand__mark { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
  .brand__name { font-size: 17px; }

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

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px var(--gutter) 20px;
    background: var(--ink-panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.42);
  }
  .masthead[data-open] .nav { display: flex; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    width: 100%;
  }
  .nav__link {
    display: block;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15.5px;
    color: rgba(247, 250, 252, 0.8);
  }
  .nav__link[aria-current="page"] { color: var(--ink); }

  .drawer { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .version-badge { display: none; }
  .grid--2, .grid--3, .grid--mirror { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer__base { padding-bottom: 26px; }
  .segmented { width: 100%; justify-content: flex-start; }
}

@media (max-width: 420px) {
  .btn { padding: 12px 18px; font-size: 14px; }
  .footer__contact-val { font-size: 12px; }
}

/* ---------- 17. 降低动效 ---------- */
@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;
  }
  [data-reveal],
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .masthead .drawer { transition: none; }
}
