/* ==========================================================================
   STAKE指南 — Site Kit 共享层
   reset / 变量 / 中文排版 / 轨道页头 / 档案页脚 / 基础组件
   ========================================================================== */

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   变量
   -------------------------------------------------------------------------- */
:root {
  --ink: #0A1A2A;
  --ink-deep: #06121E;
  --panel: #153248;
  --paper: #F4F0E6;
  --amber: #FF9F1C;
  --amber-soft: #FFB549;
  --amber-ink: #A85A00;
  --cyan: #35F0D0;
  --moss: #6F8465;
  --moss-deep: #46583F;
  --clay: #C26A4A;
  --mist: #DDE5DD;
  --rock: #98A3A8;
  --rock-ink: #5C676C;

  --line: rgba(152, 163, 168, 0.28);
  --line-soft: rgba(152, 163, 168, 0.16);
  --line-strong: rgba(152, 163, 168, 0.52);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --rail: 92px;
  --bar-h: 62px;
  --radius: 2px;
  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
  --gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   基础排版
   -------------------------------------------------------------------------- */
body {
  padding-left: var(--rail);
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.35rem, 4.6vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.5rem); }
h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

strong, b { font-weight: 600; }

p + p { margin-top: 0.85em; }

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

.link {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.link:hover { color: var(--cyan); }

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

:where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--bar-h) + 1rem);
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   页头 / 侧边轨道
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 0 1rem;
  background: var(--ink);
  border-right: 1px solid var(--line);
}

.rail-top {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--paper);
  text-align: center;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--amber);
  flex: none;
  transition: border-color var(--dur) var(--ease);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--cyan);
  opacity: 0.65;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--amber);
  transition: background-color var(--dur) var(--ease);
}
.brand:hover .brand-mark { border-color: var(--cyan); }
.brand:hover .brand-mark::after { background: var(--cyan); }

.brand-name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  margin-right: -0.26em;
  color: var(--rock);
  line-height: 1.1;
}

.rail-nav {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail-nav::-webkit-scrollbar { width: 0; height: 0; }

.rail-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: 100%;
  padding: 0.75rem 0;
}

.rail-item {
  width: 100%;
  display: flex;
  justify-content: center;
}

.rail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.15rem;
  color: var(--rock);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.1;
  transition: color var(--dur) var(--ease);
}

.rail-tick {
  display: block;
  width: 1px;
  height: 14px;
  background: var(--rock);
  opacity: 0.55;
  transition: height var(--dur) var(--ease),
              width var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}

.rail-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.rail-link:hover,
.rail-link:focus-visible {
  color: var(--paper);
}
.rail-link:hover .rail-tick,
.rail-link:focus-visible .rail-tick {
  height: 22px;
  background: var(--cyan);
  opacity: 1;
}

.rail-link[aria-current="page"] {
  color: var(--amber);
  font-weight: 600;
}
.rail-link[aria-current="page"] .rail-tick {
  width: 2px;
  height: 26px;
  background: var(--amber);
  opacity: 1;
}

.rail-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.rail-cta {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: inline-block;
  padding: 1rem 0.5rem;
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.1;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.rail-cta:hover,
.rail-cta:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); }

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--paper);
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
  background: var(--amber);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
  background: var(--amber);
}

.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  pointer-events: none;
}
.rail-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--amber) 100%);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   页脚 / 档案铭牌
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 1.5rem;
  color: var(--paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--amber) 0 1px,
    transparent 1px 42px
  );
  opacity: 0.42;
  pointer-events: none;
}

.footer-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3.5rem);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.footer-mark {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 1rem;
  border: 1px solid var(--amber);
  position: relative;
}
.footer-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border: 1px solid var(--cyan);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.footer-note {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--rock);
}
.footer-cta {
  margin-top: 1.35rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.footer-col-title {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--paper);
  padding-bottom: 0.65rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-col-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 22px;
  height: 2px;
  background: var(--amber);
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}
.footer-links a {
  display: inline-block;
  padding-bottom: 2px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(244, 240, 230, 0.74);
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--paper);
  background-size: 100% 1px;
}

.footer-address {
  font-style: normal;
  display: grid;
  gap: 0.45rem;
}
.footer-line {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(244, 240, 230, 0.8);
  word-break: break-word;
}
.footer-k {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--rock);
  padding-top: 0.1em;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--rock);
}
.footer-legal { color: rgba(244, 240, 230, 0.6); }
.footer-coord { color: rgba(152, 163, 168, 0.75); }

/* --------------------------------------------------------------------------
   布局容器与栅格
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3.5rem);
}

.content-wrap {
  max-width: 72ch;
}

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

/* --------------------------------------------------------------------------
   基础组件
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  color: var(--paper);
  transition: border-color var(--dur) var(--ease);
}
.panel--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(10, 26, 42, 0.14);
}
.panel--mist {
  background: var(--mist);
  color: var(--ink);
  border-color: rgba(70, 88, 63, 0.22);
}
.panel--moss {
  background: var(--moss);
  color: var(--moss-deep);
  border-color: rgba(70, 88, 63, 0.3);
}

.coord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rock);
  line-height: 1.4;
}
.coord::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--amber);
  flex: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--rock);
}
.tag--amber { color: var(--amber); border-color: rgba(255, 159, 28, 0.5); }
.tag--cyan { color: var(--cyan); border-color: rgba(53, 240, 208, 0.45); }
.tag--clay { color: var(--clay); border-color: rgba(194, 106, 74, 0.55); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.btn--amber:hover,
.btn--amber:focus-visible {
  background: var(--amber-soft);
  border-color: var(--amber-soft);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--amber);
  padding-inline: 0;
}
.btn--quiet:hover,
.btn--quiet:focus-visible {
  color: var(--cyan);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a {
  color: var(--rock);
  transition: color var(--dur) var(--ease);
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--line-strong);
}
.breadcrumb li:last-child::after { content: none; }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* 可复用图片容器基础规则 —— 页面阶段把 <img>/<picture> 放入 .media */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    linear-gradient(140deg, rgba(53, 240, 208, 0.14), rgba(21, 50, 72, 0) 58%),
    repeating-linear-gradient(0deg, rgba(152, 163, 168, 0.15) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(152, 163, 168, 0.15) 0 1px, transparent 1px 28px);
}
.media img,
.media picture,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.32rem 0.6rem;
  background: var(--ink);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.media-caption {
  margin-top: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--rock);
}

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

/* --------------------------------------------------------------------------
   平板
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-id { grid-column: 1 / -1; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* --------------------------------------------------------------------------
   矮屏侧轨压缩
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) and (max-height: 800px) {
  .rail-list { gap: 0.9rem; }
  .rail-link { font-size: 0.72rem; letter-spacing: 0.12em; }
  .rail-cta { padding: 0.7rem 0.45rem; font-size: 0.6875rem; letter-spacing: 0.14em; }
  .brand-mark { width: 28px; height: 28px; }
}

/* --------------------------------------------------------------------------
   移动端：轨道收纳为抽屉
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  body {
    padding-left: 0;
  }

  #main-content {
    scroll-margin-top: calc(var(--bar-h) + 0.75rem);
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1rem, 4vw, 2rem);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--ink);
  }

  .rail-top { width: auto; }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
  }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark::before { inset: 4px; }
  .brand-name { font-size: 0.6875rem; margin-right: -0.2em; }
  .brand-sub { font-size: 0.625rem; letter-spacing: 0.24em; margin-right: -0.24em; }

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

  .rail-nav {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    flex: none;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem clamp(1rem, 4vw, 2rem) 7.5rem;
    background: var(--ink);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 220ms var(--ease),
                transform 220ms var(--ease),
                visibility 0s linear 220ms;
    z-index: 90;
  }
  .site-header[data-open] .rail-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 220ms var(--ease),
                transform 220ms var(--ease),
                visibility 0s;
  }

  .rail-list {
    height: auto;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
  }
  .rail-item { width: 100%; }

  .rail-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--paper);
    font-size: 1rem;
    letter-spacing: 0.06em;
  }
  .rail-label { writing-mode: horizontal-tb; }
  .rail-tick {
    width: 16px;
    height: 1px;
    opacity: 0.7;
  }
  .rail-link:hover .rail-tick,
  .rail-link:focus-visible .rail-tick {
    width: 24px;
    height: 1px;
  }
  .rail-link[aria-current="page"] {
    color: var(--amber);
  }
  .rail-link[aria-current="page"] .rail-tick {
    width: 26px;
    height: 2px;
  }

  .rail-foot {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 0.85rem clamp(1rem, 4vw, 2rem)
             calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: var(--ink);
    border-top: 1px solid var(--line);
    transform: translateY(115%);
    transition: transform 220ms var(--ease);
    z-index: 95;
  }
  .site-header[data-open] .rail-foot {
    transform: none;
  }

  .rail-cta {
    writing-mode: horizontal-tb;
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
  }

  .rail-progress { display: none; }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid--3,
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-line { grid-template-columns: 3.2em minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   减弱动效
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rail-link:hover .rail-tick,
  .rail-link:focus-visible .rail-tick {
    height: 14px;
    width: 1px;
  }
  .rail-progress > span { transition: none; }
}
