/* ==========================================================================
   金年汇 · 共享 Site Kit
   轨道导航 / 经幡纹理 / 切角面板 / 连续画布
   ========================================================================== */

:root {
  /* 品牌色 */
  --c-deep: #0F3D4C;
  --c-ink: #14313A;
  --c-sand: #E4B45A;
  --c-sand-2: #F6E7C8;
  --c-red: #C0452F;
  --c-green: #2C8C7D;
  --c-blue: #2A6FB0;
  --c-paper: #FAF6EE;
  --c-mist: #E3EDEE;
  --c-text: #2B3A3F;
  --c-line: #C9D6D8;

  /* 字体 */
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', Georgia, serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* 尺度 */
  --rail-w: 88px;
  --rail-w-open: 252px;
  --shell-max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --cut: 22px;
  --z-header: 80;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  background: var(--c-paper);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

a { color: var(--c-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

/* ---------- 中文排版 ---------- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--c-deep);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--c-ink);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-deep);
}

p + p { margin-top: 1.1em; }
small, .small { font-size: 0.84em; }

.num, [data-num] {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.visually-hidden {
  position: absolute !important;
  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;
}

/* ---------- 焦点与动效偏好 ---------- */
:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--c-sand);
}

/* ==========================================================================
   跳转链接
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--c-ink);
  color: var(--c-sand-2);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--c-sand);
  outline-offset: 2px;
}

/* ==========================================================================
   页头 / 轨道导航
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--rail-w);
  z-index: var(--z-header);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 3px;
  background: rgba(15, 61, 76, 0.1);
  z-index: 96;
  pointer-events: none;
}
.reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-deep) 0%, var(--c-blue) 45%, var(--c-sand) 100%);
  transition: width 0.12s linear;
}

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  height: 100%;
  padding: 20px 0 24px;
  background: var(--c-deep);
  color: var(--c-paper);
  overflow: hidden;
  box-shadow: 1px 0 0 rgba(250, 246, 238, 0.12), 14px 0 44px rgba(15, 61, 76, 0.14);
  transition: width 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(228, 180, 90, 0.09) 0 1px,
    transparent 1px 13px
  );
}
.rail:hover,
.rail:focus-within {
  width: var(--rail-w-open);
}

/* 品牌 */
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 2px 16px;
  text-decoration: none;
  color: var(--c-paper);
}
.brand-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--c-ink);
  background: linear-gradient(150deg, #F3D091 0%, var(--c-sand) 55%, #C89234 100%);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.rail:hover .brand-text,
.rail:focus-within .brand-text { opacity: 1; }

.brand-mark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--c-paper);
}
.brand-subline {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(246, 231, 200, 0.6);
}

/* 批次徽章 */
.batch-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 22px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--c-sand-2);
  background: var(--c-ink);
  border-left: 3px solid var(--c-red);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
  overflow: hidden;
}
.batch-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-sand);
  box-shadow: 0 0 0 3px rgba(228, 180, 90, 0.2);
}
.batch-num { font-size: 13px; color: var(--c-sand); }
.batch-text {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rail:hover .batch-text,
.rail:focus-within .batch-text { opacity: 1; }

/* 移动端开关 */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(250, 246, 238, 0.08);
  color: var(--c-paper);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.nav-toggle:hover { background: rgba(250, 246, 238, 0.16); }

.nav-toggle-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: background 0.2s ease;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: top 0.22s ease, transform 0.22s ease;
}
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

[data-nav-toggle][aria-expanded="true"] .nav-toggle-lines { background: transparent; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

/* 导航 */
.site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(228, 180, 90, 0.45) transparent;
}
.site-nav::-webkit-scrollbar { width: 4px; }
.site-nav::-webkit-scrollbar-thumb { background: rgba(228, 180, 90, 0.45); }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(250, 246, 238, 0.8);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--dot, var(--c-sand));
  transform: translateY(-50%);
  transition: height 0.2s ease;
}
.nav-link:hover {
  color: #FFFFFF;
  background: rgba(250, 246, 238, 0.07);
}
.nav-link:hover::before { height: 58%; }
.nav-link[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(228, 180, 90, 0.15);
}
.nav-link[aria-current="page"]::before { height: 100%; }

.nav-index {
  flex: none;
  width: 24px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--dot, var(--c-sand));
}
.nav-label {
  min-width: 0;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.rail:hover .nav-label,
.rail:focus-within .nav-label { opacity: 1; }

.nav-list > li:nth-child(1) .nav-link { --dot: #E4B45A; }
.nav-list > li:nth-child(2) .nav-link { --dot: #F6E7C8; }
.nav-list > li:nth-child(3) .nav-link { --dot: #57C0AE; }
.nav-list > li:nth-child(4) .nav-link { --dot: #E2684F; }
.nav-list > li:nth-child(5) .nav-link { --dot: #63A4E0; }
.nav-list > li:nth-child(6) .nav-link { --dot: #E3EDEE; }

.rail-shortcuts {
  margin-top: auto;
  padding: 18px 16px 0;
  border-top: 1px solid rgba(250, 246, 238, 0.13);
  display: flex;
  flex-direction: column;
  gap: 7px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.rail:hover .rail-shortcuts,
.rail:focus-within .rail-shortcuts { opacity: 1; }

.rail-shortcuts__title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(246, 231, 200, 0.5);
}
.shortcut {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: 13px;
  text-decoration: none;
  color: rgba(250, 246, 238, 0.76);
  transition: color 0.18s ease;
}
.shortcut::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--c-sand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.shortcut:hover { color: var(--c-sand); }
.shortcut:hover::after { transform: scaleX(1); }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--c-deep);
  color: rgba(250, 246, 238, 0.76);
  font-size: 15px;
}

.footer-prayer {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #2A6FB0 0 28px,
    #FAF6EE 28px 56px,
    #C0452F 56px 84px,
    #2C8C7D 84px 112px,
    #E4B45A 112px 140px
  );
  opacity: 0.85;
}

.footer-inner { padding-block: clamp(44px, 6vw, 84px); }

.footer-main {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer-logo {
  display: inline-block;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--c-paper);
  border-bottom: 2px solid var(--c-sand);
}
.footer-tagline {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: rgba(246, 231, 200, 0.6);
}
.footer-batch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-sand-2);
  background: rgba(228, 180, 90, 0.12);
  border-left: 3px solid var(--c-sand);
}
.footer-batch .num { font-size: 14px; color: var(--c-sand); }

.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-paper);
  border-bottom: 1px solid rgba(250, 246, 238, 0.16);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  text-decoration: none;
  color: rgba(250, 246, 238, 0.76);
  transition: color 0.18s ease;
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--c-sand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.footer-col a:hover { color: var(--c-paper); }
.footer-col a:hover::after { transform: scaleX(1); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(250, 246, 238, 0.14);
  font-size: 13.5px;
  color: rgba(250, 246, 238, 0.62);
}

.footer-legal {
  background: var(--c-ink);
  color: rgba(250, 246, 238, 0.6);
  font-size: 13px;
}
.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 16px;
}
.footer-copy { margin: 0; }
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-legal__links a {
  text-decoration: none;
  color: rgba(250, 246, 238, 0.72);
  transition: color 0.18s ease;
}
.footer-legal__links a:hover { color: var(--c-sand); }

/* ==========================================================================
   通用按钮
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: none; }
.btn:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--c-red);
  pointer-events: none;
}
.btn--primary { background: var(--c-sand); color: var(--c-ink); }
.btn--primary:hover { background: #F0C877; }
.btn--ghost { border-color: var(--c-line); color: var(--c-deep); }
.btn--ghost:hover { background: var(--c-mist); border-color: var(--c-green); }
.btn--dark { background: var(--c-deep); color: var(--c-paper); }
.btn--dark:hover { background: var(--c-ink); }

/* ==========================================================================
   布局容器与章节
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 116px); }

.section-band {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-band::before {
  content: "";
  flex: none;
  width: 46px;
  height: 1px;
  background: var(--c-line);
  transform: translateY(-4px) rotate(-4deg);
  transform-origin: left center;
}
.section-band__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: var(--c-red);
}
.section-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--c-deep);
}

/* ==========================================================================
   面包屑
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-green);
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--c-blue);
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--c-line); }

/* ==========================================================================
   形状与面板
   ========================================================================== */
.cut-tl {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  transition: clip-path 0.22s ease;
}
.cut-tl:hover {
  clip-path: polygon(calc(var(--cut) + 6px) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--cut) + 6px));
}
.cut-br {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: clip-path 0.22s ease;
}
.cut-br:hover {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) - 6px), calc(100% - var(--cut) - 6px) 100%, 0 100%);
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--c-mist);
  color: var(--c-text);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px);
}

/* ==========================================================================
   可复用图片容器
   ========================================================================== */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--c-mist);
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 111, 176, 0.08) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, var(--c-mist) 0%, #F4F1E8 100%);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > video,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(15, 61, 76, 0.82);
  color: var(--c-sand-2);
}

/* ==========================================================================
   回到顶部
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border: 0;
  color: var(--c-paper);
  background: var(--c-ink);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}
.back-to-top::before {
  content: "↑";
  font-size: 14px;
  color: var(--c-sand);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--c-deep); }
.back-to-top__label { overflow: hidden; text-overflow: ellipsis; }

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

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: 66px;
  }

  .reading-progress { left: 0; }

  .site-header {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
  }

  .rail {
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 11px 14px;
    gap: 10px;
    overflow: visible;
    transition: none;
  }
  .rail::after { display: none; }
  .rail:hover,
  .rail:focus-within { width: 100%; }

  .brand {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    gap: 10px;
  }
  .brand-text { opacity: 1; }
  .brand-subline { display: none; }

  .batch-badge {
    margin: 0 0 0 auto;
    padding: 5px 10px;
    font-size: 10.5px;
  }
  .batch-text { display: none; }

  .nav-toggle { display: grid; place-items: center; }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 66px);
    padding: 14px 14px 28px;
    overflow-y: auto;
    background: var(--c-ink);
    border-top: 1px solid rgba(250, 246, 238, 0.14);
    box-shadow: 0 30px 60px rgba(15, 61, 76, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list { gap: 0; padding: 0; }
  .nav-link {
    height: 52px;
    padding: 0 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(250, 246, 238, 0.08);
  }
  .nav-link::before { display: none; }
  .nav-index { width: 28px; font-size: 12px; }
  .nav-label { opacity: 1; }

  .rail-shortcuts {
    margin-top: 20px;
    padding: 16px 12px 0;
    opacity: 1;
  }

  .back-to-top { right: 14px; bottom: 14px; max-width: 180px; }
}

@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-contact { flex-direction: column; gap: 6px; }
  .footer-legal__inner { justify-content: flex-start; }
  .brand-mark { font-size: 17px; }
  .brand-seal { width: 34px; height: 34px; font-size: 17px; }
}

/* ==========================================================================
   动效偏好
   ========================================================================== */
@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,
  .rail:hover,
  .rail:focus-within { transition: none; }

  .reading-progress__bar { transition: none; }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .back-to-top { transition: none; }
}
