/* ============================================================
   美高指南 · 共享样式 /assets/site.css
   基底：深墨蓝 · 纸张叠层 · 索引刻度
   ============================================================ */

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

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

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

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

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

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

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

main { display: block; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩体系 */
  --ink:        #0B1B2B;
  --ink-2:      #12283C;
  --ink-3:      #0E2133;
  --paper:      #F4EFE4;
  --paper-dim:  #E7E0D2;
  --stone:      #8A8F8A;
  --moss:       #5E7A63;
  --moss-deep:  #2F4A3C;
  --clay:       #A8613F;
  --signal:     #FF6B1A;
  --cyan:       #5BF0D6;
  --amber:      #F2B544;

  /* 线条 */
  --line:        rgba(138, 143, 138, 0.30);
  --line-strong: rgba(138, 143, 138, 0.55);
  --line-soft:   rgba(138, 143, 138, 0.16);

  /* 字体 */
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", system-ui,
               -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono",
               "Roboto Mono", Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --shell: 1240px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --header-h: 68px;
  --radius: 1px;

  --shadow-paper: 0 1px 0 rgba(244, 239, 228, 0.06), 0 18px 40px rgba(0, 0, 0, 0.38);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }

p {
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.82);
}

::selection {
  background: var(--cyan);
  color: #06201C;
}

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

/* ---------- 4. 通用工具 ---------- */
.container {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - var(--gutter) * 2), 820px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.72;
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.9;
  color: rgba(244, 239, 228, 0.8);
}

.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---------- 5. 栅格 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease,
              transform 0.18s ease;
}

.btn:active { transform: translate(1px, 1px); }

.btn--primary {
  background: var(--signal);
  color: #1A0D05;
  border-color: var(--signal);
  box-shadow: 3px 3px 0 0 rgba(244, 239, 228, 0.18);
}

.btn--primary:hover {
  background: #FF7D38;
  box-shadow: 3px 3px 0 0 rgba(244, 239, 228, 0.34);
}

.btn--ghost {
  background: rgba(244, 239, 228, 0.04);
  color: var(--paper);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: rgba(91, 240, 214, 0.55);
  background: rgba(91, 240, 214, 0.08);
}

.btn--sm {
  padding: 0.34rem 0.66rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- 7. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.46rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: rgba(244, 239, 228, 0.82);
  background: rgba(244, 239, 228, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.tag--cyan {
  color: var(--cyan);
  background: rgba(91, 240, 214, 0.09);
  border-color: rgba(91, 240, 214, 0.42);
}

.tag--clay {
  color: #EBC9B7;
  background: rgba(168, 97, 63, 0.28);
  border-color: rgba(168, 97, 63, 0.62);
}

.tag--amber {
  color: var(--amber);
  background: rgba(242, 181, 68, 0.1);
  border-color: rgba(242, 181, 68, 0.46);
}

.tag--signal {
  color: #1A0D05;
  background: var(--signal);
  border-color: var(--signal);
  font-weight: 700;
}

/* ---------- 8. 纸张卡片 ---------- */
.paper {
  position: relative;
  background: var(--paper);
  color: #16273A;
  border: 1px solid rgba(11, 27, 43, 0.18);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.3);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
}

.paper h2,
.paper h3 { color: #0B1B2B; }

.paper p { color: rgba(22, 39, 58, 0.86); }

.paper .eyebrow { color: var(--clay); }
.paper .eyebrow::before { background: var(--clay); }

.paper .tag {
  color: #233546;
  background: rgba(11, 27, 43, 0.06);
  border-color: rgba(11, 27, 43, 0.22);
}

.paper .tag--signal {
  color: #1A0D05;
  background: var(--signal);
  border-color: var(--signal);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  padding-block: 0.85rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.breadcrumbs__link {
  color: rgba(244, 239, 228, 0.68);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumbs__link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(91, 240, 214, 0.5);
}

.breadcrumbs__sep { color: rgba(138, 143, 138, 0.55); }

.breadcrumbs__item { color: var(--cyan); }

/* ---------- 10. 图片容器（页面阶段放入 img） ---------- */
.imgbox {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background-color: var(--ink-2);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(138, 143, 138, 0.1) 0 10px,
    rgba(138, 143, 138, 0) 10px 20px
  );
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 0 rgba(168, 97, 63, 0.32);
}

.imgbox > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imgbox--wide   { aspect-ratio: 16 / 9; }
.imgbox--tall   { aspect-ratio: 4 / 5; }
.imgbox--square { aspect-ratio: 1 / 1; }
.imgbox--strip  { aspect-ratio: 21 / 9; }

.imgbox__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.3rem 0.56rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(11, 27, 43, 0.92);
  border-top: 1px solid rgba(91, 240, 214, 0.3);
  border-right: 1px solid rgba(91, 240, 214, 0.3);
}

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.6rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #06201C;
  background: var(--cyan);
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============================================================
   12. 头部命令栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 27, 43, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header[data-stuck="true"] {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.46);
  border-bottom-color: rgba(91, 240, 214, 0.26);
}

.commandbar {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.8vw, 1.6rem);
}

/* 品牌铭牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding-block: 0.4rem;
  color: var(--paper);
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 27px;
  background: var(--paper);
  border-radius: 1px;
  box-shadow: 3px 3px 0 0 var(--clay);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--signal);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.brand__meta {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  color: var(--stone);
}

.brand__ver {
  align-self: center;
  padding: 0.16rem 0.34rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(91, 240, 214, 0.08);
  border: 1px solid rgba(91, 240, 214, 0.4);
  border-radius: var(--radius);
}

/* 主导航 */
.mainnav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.mainnav__list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.mainnav__item { display: flex; }

.mainnav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.46rem 0.62rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(244, 239, 228, 0.72);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}

.mainnav__idx {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  transition: color 0.2s ease;
}

.mainnav__link:hover {
  color: var(--paper);
  background: rgba(244, 239, 228, 0.07);
  border-color: var(--line);
}

.mainnav__link:hover .mainnav__idx { color: var(--cyan); }

.mainnav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  box-shadow: 3px 3px 0 0 var(--signal);
}

.mainnav__link[aria-current="page"] .mainnav__idx { color: var(--clay); }

/* 右侧工具 */
.commandbar__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.statuschip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(91, 240, 214, 0.06);
  border: 1px solid rgba(91, 240, 214, 0.34);
  border-radius: var(--radius);
  white-space: nowrap;
}

.statuschip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(91, 240, 214, 0.6);
  animation: statusPulse 2.6s ease-out infinite;
}

@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(91, 240, 214, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(91, 240, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 240, 214, 0); }
}

/* 移动端切换按钮 */
.navtoggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  color: var(--paper);
  background: rgba(244, 239, 228, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.navtoggle:hover {
  border-color: var(--cyan);
  background: rgba(91, 240, 214, 0.09);
}

.navtoggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.22s ease;
}

.navtoggle span::before,
.navtoggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease;
}

.navtoggle span::before { top: -6px; }
.navtoggle span::after  { top: 6px; }

.navtoggle[aria-expanded="true"] span { background: transparent; }
.navtoggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* 刻度条 */
.tickrail {
  height: 6px;
  border-top: 1px solid rgba(91, 240, 214, 0.1);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(138, 143, 138, 0.42) 0 1px,
    transparent 1px 26px
  );
}

/* ============================================================
   13. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: var(--ink-3);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--signal) 0 6%,
    var(--cyan) 6% 20%,
    var(--line-strong) 20% 100%
  );
}

.footer__inner {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.25fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.footer__col { min-width: 0; }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.footer__brandname {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.footer__desc {
  max-width: 34ch;
  font-size: 0.86rem;
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.66);
}

.footer__stamp {
  display: inline-block;
  margin-top: 0.95rem;
  padding: 0.28rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--stone);
  border: 1px dashed rgba(138, 143, 138, 0.42);
  border-radius: var(--radius);
}

.footer__title {
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 1px solid var(--line);
}

.footer__list {
  display: grid;
  gap: 0.45rem;
}

.footer__link {
  display: inline-block;
  font-size: 0.86rem;
  color: rgba(244, 239, 228, 0.74);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer__link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(91, 240, 214, 0.5);
}

.footer__link--back {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  border-bottom: 1px solid rgba(91, 240, 214, 0.42);
}

.footer__contact {
  display: grid;
  gap: 0.7rem;
}

.footer__contact-item {
  display: grid;
  gap: 0.12rem;
}

.footer__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.footer__value {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(244, 239, 228, 0.86);
  word-break: break-word;
}

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

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--stone);
}

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

.footer__note { color: rgba(138, 143, 138, 0.86); }

/* ============================================================
   14. 滚动进度与返回顶部（由 site.js 注入）
   ============================================================ */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 95;
  pointer-events: none;
  background: rgba(244, 239, 228, 0.06);
}

.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--signal));
  transition: width 0.1s linear;
}

.to-top {
  position: fixed;
  right: clamp(0.85rem, 2.5vw, 1.75rem);
  bottom: clamp(0.85rem, 2.5vw, 1.75rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.72rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: rgba(18, 40, 60, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 0 rgba(255, 107, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease,
              visibility 0.24s ease, color 0.18s ease, border-color 0.18s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  color: var(--cyan);
  border-color: rgba(91, 240, 214, 0.55);
}

/* ============================================================
   15. 响应式
   ============================================================ */
@media (max-width: 1180px) {
  .mainnav__link {
    padding: 0.42rem 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 1080px) {
  .statuschip { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 60px; }

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

  .commandbar { gap: 0.6rem; }

  .mainnav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 0.6rem var(--gutter) 1.2rem;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  }

  .mainnav[data-open="true"] { display: block; }

  .mainnav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.05rem;
  }

  .mainnav__item {
    border-bottom: 1px solid var(--line-soft);
  }

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

  .mainnav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 0.55rem;
    font-size: 0.95rem;
    border: 0;
  }

  .mainnav__link[aria-current="page"] {
    box-shadow: none;
    border-left: 3px solid var(--signal);
  }

  .navtoggle { display: inline-flex; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 640px) {
  .commandbar__tools .btn { display: none; }

  .brand__name { font-size: 0.94rem; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer__link--back { margin-left: 0; }

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

  .to-top {
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.44rem 0.6rem;
    font-size: 0.6rem;
  }
}

/* ============================================================
   16. 无障碍 · 降低动效
   ============================================================ */
@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;
  }
}
