/* ==========================================================================
   加拿大28中心 — 共享样式 /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 {
  padding: 0;
  list-style: none;
}

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

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

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A1B2E;
  --ink-2: #0F2740;
  --ink-3: #16324F;
  --paper: #E8E3D9;
  --stone: #4A5A5F;
  --moss: #6E8B6A;
  --clay: #B5623C;
  --signal: #FF3B4E;
  --cyan: #29E0D6;
  --amber: #D9A441;
  --snow: #F4F1EA;

  --line-cyan: rgba(41, 224, 214, 0.16);
  --line-cyan-strong: rgba(41, 224, 214, 0.42);
  --line-dark: rgba(10, 27, 46, 0.16);
  --line-light: rgba(232, 227, 217, 0.12);

  --ff-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-num: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1360px;
  --gutter: 16px;
  --r: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--snow);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(41, 224, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 224, 214, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

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

/* ---------- 4. 容器 ---------- */
.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

/* ---------- 5. 跳至主要内容 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--cyan);
  border-radius: var(--r);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 27, 46, 0.94);
  border-bottom: 1px solid transparent;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease);
}

.site-header.is-stuck {
  background: rgba(10, 27, 46, 0.97);
  border-bottom-color: var(--line-cyan);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
  min-height: 78px;
  padding-block: 10px;
}

/* 品牌端 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--snow);
}

.brand-mark {
  display: block;
  flex: none;
  width: 10px;
  height: 38px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    var(--cyan) 0%, var(--cyan) 40%,
    var(--signal) 40%, var(--signal) 62%,
    var(--amber) 62%, var(--amber) 100%
  );
  box-shadow: 0 0 16px rgba(41, 224, 214, 0.38);
  transition: height 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.brand-text {
  display: block;
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: var(--ff-head);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.14;
}

.brand-sub {
  display: block;
  max-height: 18px;
  overflow: hidden;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1;
  color: rgba(41, 224, 214, 0.8);
  transition: max-height 0.24s var(--ease), opacity 0.24s var(--ease), margin 0.24s var(--ease);
}

.site-header.is-stuck .brand-mark {
  height: 24px;
  box-shadow: 0 0 10px rgba(41, 224, 214, 0.28);
}

.site-header.is-stuck .brand-sub {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}

/* 栏目端 */
.site-nav {
  flex: none;
}

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

.nav-link {
  position: relative;
  display: block;
  padding: 11px 15px;
  font-family: var(--ff-head);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: rgba(244, 241, 234, 0.7);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--snow);
  background: rgba(41, 224, 214, 0.07);
  border-color: var(--line-cyan);
}

.nav-link:focus-visible {
  color: var(--snow);
  border-color: var(--line-cyan-strong);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(41, 224, 214, 0.1);
  border-color: var(--line-cyan-strong);
}

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--signal);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 10px 13px;
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--snow);
  background: var(--ink-2);
  border: 1px solid var(--line-cyan);
  border-radius: var(--r);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--line-cyan-strong);
  background: var(--ink-3);
}

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: background 0.2s var(--ease);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: top 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

.site-header[data-open="true"] .nav-toggle-bar { background: transparent; }
.site-header[data-open="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

.nav-toggle-text { line-height: 1; }

/* ---------- 7. 章节 ---------- */
.section {
  padding: clamp(48px, 8vw, 104px) 0;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--stone {
  background: #DED8CC;
  color: var(--ink);
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 58ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.section--paper .section-index,
.section--stone .section-index {
  color: var(--clay);
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 4.4vw, 40px);
  font-weight: 900;
  line-height: 1.18;
}

.section-note {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(244, 241, 234, 0.68);
}

.section--paper .section-note,
.section--stone .section-note {
  color: var(--stone);
}

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

.rule--light {
  background: var(--line-light);
}

/* ---------- 8. 栅格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

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

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

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  background: var(--ink-2);
  border: 1px solid var(--line-cyan);
  border-radius: var(--r);
  box-shadow:
    0 1px 0 rgba(41, 224, 214, 0.06),
    0 14px 30px -24px rgba(0, 0, 0, 0.9);
}

.card--paper {
  background: var(--paper);
  border-color: var(--line-dark);
  color: var(--ink);
  box-shadow: 0 14px 30px -26px rgba(10, 27, 46, 0.5);
}

.card--flat {
  background: transparent;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title {
  margin: 0;
  font-family: var(--ff-head);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.38;
}

.card-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.7);
}

.card--paper .card-body {
  color: var(--stone);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

/* ---------- 10. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--ff-num);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
  color: var(--cyan);
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}

.tag--moss { color: var(--moss); }
.tag--clay { color: var(--clay); }
.tag--amber { color: var(--amber); }
.tag--signal { color: var(--signal); }

.tag--dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- 11. 数字与注释 ---------- */
.num {
  font-family: var(--ff-num);
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.num--amber { color: var(--amber); }
.num--signal { color: var(--signal); }

.num--plain {
  font-size: 1em;
  color: inherit;
}

.annot {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1;
  color: rgba(41, 224, 214, 0.55);
}

.annot--dark {
  color: rgba(74, 90, 95, 0.78);
}

/* ---------- 12. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 160px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--r);
  background-color: var(--ink-3);
  background-image:
    linear-gradient(rgba(41, 224, 214, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 224, 214, 0.13) 1px, transparent 1px),
    linear-gradient(140deg, rgba(41, 224, 214, 0.1), transparent 58%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.figure > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure > figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 241, 234, 0.72);
}

.figure--wide { aspect-ratio: 16 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--band { aspect-ratio: 24 / 7; }

.figure--paper {
  background-color: #DDD6C8;
  border-color: var(--line-dark);
  background-image:
    linear-gradient(rgba(74, 90, 95, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 90, 95, 0.16) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
}

.figure--paper > figcaption {
  color: rgba(74, 90, 95, 0.85);
}

/* ---------- 13. 正文 ---------- */
.prose {
  max-width: 66ch;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.78);
}

.prose p { margin-bottom: 1.05em; }

.prose h2,
.prose h3 {
  margin: 1.6em 0 0.6em;
  color: var(--snow);
}

.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }

.prose ul,
.prose ol {
  margin-bottom: 1.05em;
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose--paper { color: var(--stone); }

.prose--paper h2,
.prose--paper h3 {
  color: var(--ink);
}

.prose--paper a { color: var(--clay); }

/* ---------- 14. 面包屑 ---------- */
.breadcrumb {
  padding-top: 20px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.breadcrumb-item {
  color: rgba(232, 227, 217, 0.5);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 7px;
  color: rgba(41, 224, 214, 0.4);
}

.breadcrumb-item a {
  color: rgba(232, 227, 217, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

/* ---------- 15. 章节目录 ---------- */
.toc {
  display: grid;
  gap: 5px;
}

.toc-link {
  display: block;
  padding: 8px 12px 8px 14px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.62);
  text-decoration: none;
  border-left: 1px solid var(--line-cyan);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.toc-link:hover {
  color: var(--snow);
  background: rgba(41, 224, 214, 0.06);
}

.toc-link[aria-current="true"] {
  color: var(--cyan);
  font-weight: 700;
  border-left-color: var(--signal);
  background: rgba(41, 224, 214, 0.08);
}

/* ---------- 16. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--cyan);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--line-cyan-strong);
  border-radius: var(--r);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover {
  background: rgba(41, 224, 214, 0.12);
}

.btn--signal {
  color: #FFFFFF;
  background: var(--signal);
  border-color: var(--signal);
}

.btn--signal:hover {
  background: #FF2136;
}

.btn--amber {
  color: var(--amber);
  border-color: rgba(217, 164, 65, 0.5);
}

.btn--amber:hover {
  background: rgba(217, 164, 65, 0.12);
}

.btn--light {
  color: var(--ink);
  border-color: rgba(10, 27, 46, 0.35);
}

.btn--light:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- 17. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--ink-2);
  border-top: 1px solid var(--line-cyan);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line-light);
}

.footer-brand {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--snow);
}

.footer-tagline {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(41, 224, 214, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
  padding: 34px 0 26px;
}

.footer-title {
  margin: 0 0 14px;
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(232, 227, 217, 0.46);
}

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

.footer-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.78);
}

.footer-k {
  flex: none;
  min-width: 60px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(232, 227, 217, 0.42);
}

.footer-v {
  color: rgba(244, 241, 234, 0.86);
  word-break: break-all;
}

.footer-v--num {
  font-family: var(--ff-num);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-link {
  color: rgba(244, 241, 234, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-note {
  margin-top: 14px;
  max-width: 34em;
  font-size: 12.5px;
  line-height: 1.72;
  color: rgba(232, 227, 217, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 13.5px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 18px 0 32px;
  border-top: 1px solid var(--line-light);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(232, 227, 217, 0.48);
}

.footer-hint,
.footer-copy {
  margin: 0;
}

/* ---------- 18. 滚动进度 + 返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--signal));
  pointer-events: none;
  transition: width 0.12s linear;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  font-family: var(--ff-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: var(--ink-3);
  border: 1px solid var(--line-cyan-strong);
  border-radius: var(--r);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s, background 0.18s var(--ease);
}

.back-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: rgba(41, 224, 214, 0.14);
}

/* ---------- 19. 显现动画 ---------- */
@keyframes revealIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  animation-fill-mode: both;
}

.reveal.is-out {
  opacity: 0;
}

.reveal.is-in {
  animation-name: revealIn;
  animation-duration: 0.3s;
  animation-timing-function: var(--ease);
  animation-delay: var(--reveal-delay, 0ms);
}

/* ---------- 20. 响应式 ---------- */
@media (min-width: 961px) {
  .site-header.is-stuck {
    background: rgba(10, 27, 46, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .back-top {
    right: 28px;
    bottom: 28px;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 64px;
    gap: 16px;
  }

  .brand-mark { height: 30px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.14em; }

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

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ink-2);
    border-top: 1px solid var(--line-cyan-strong);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.45);
    transform: translateY(102%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s;
  }

  .site-header[data-open="true"] .site-nav {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-link {
    padding: 13px 6px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: rgba(244, 241, 234, 0.82);
    border-color: var(--line-cyan);
  }

  .nav-link[aria-current="page"]::before {
    left: 50%;
    right: auto;
    width: 22px;
    transform: translateX(-50%);
  }
}

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

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

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .nav-toggle-text { display: none; }
}

/* ---------- 21. 降低动效 ---------- */
@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;
  }

  .reveal.is-out { opacity: 1; }

  .scroll-progress { transition: none; }
}
