/* ============================================================
   永利中心 · 共享站点样式 /assets/site.css
   藏地现代视觉：朱砂红 · 高原天青 · 金铜 · 墨绿 · 暖白
   ============================================================ */

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

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

html[data-nav-lock] { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

ul, ol { list-style: none; }

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

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

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

[id],
:target { scroll-margin-top: 6rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 2. 变量 ---------- */
:root {
  --cinnabar: #C2402E;
  --cinnabar-deep: #8E2A1E;
  --sky: #2C7A9B;
  --sky-light: #A9D3E0;
  --gold: #C9973C;
  --gold-light: #E8C97F;
  --pine: #1E463C;
  --paper: #F6F0E4;
  --paper-2: #EFE7D7;
  --ink: #17120F;
  --stone: #D9D2C4;
  --muted: #6B6257;

  --font-display: "Noto Serif Tibetan", "Source Han Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Noto Sans Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --pad: clamp(1.1rem, 4.5vw, 2.6rem);
  --radius: 2px;

  --gold-line: 1px solid rgba(201, 151, 60, 0.55);
  --hair-line: 1px solid var(--stone);

  --shadow-1: 0 18px 40px -30px rgba(23, 18, 15, 0.6);
  --shadow-2: 0 26px 60px -38px rgba(23, 18, 15, 0.8);

  --ease-out: cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* ---------- 3. 中文排版与标题 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.14;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 900; line-height: 1.02; }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

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

strong { font-weight: 700; color: var(--pine); }

small { font-size: 0.82em; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 300;
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.22s var(--ease-out);
}

.skip-link:focus {
  top: 0.85rem;
}

/* ---------- 5. 容器与骨架 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(2.6rem, 6vw, 4.8rem); }
.section--tight { padding-block: clamp(1.8rem, 4vw, 2.8rem); }

.prose {
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink);
}

.prose p + p { margin-top: 1.2em; }
.prose h2 { margin: 2.2em 0 0.8em; font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
.prose h3 { margin: 1.8em 0 0.6em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.35em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--cinnabar); font-family: var(--font-mono); }
.prose li + li { margin-top: 0.45em; }
.prose a {
  color: var(--cinnabar-deep);
  text-decoration: underline;
  text-decoration-color: rgba(201, 151, 60, 0.8);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--cinnabar); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 2px solid var(--gold);
  color: var(--pine);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.8rem);
}
.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, 2fr) minmax(0, 1fr); }

/* ---------- 6. 通用元素 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cinnabar-deep);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.26rem 0.7rem;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: rgba(169, 211, 224, 0.32);
  color: var(--sky);
  border: 1px solid rgba(44, 122, 155, 0.35);
}
.tag--gold {
  background: rgba(232, 201, 127, 0.24);
  color: #87621A;
  border-color: rgba(201, 151, 60, 0.6);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 3px rgba(30, 70, 60, 0.14);
  flex: none;
}
.status-dot--live {
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(194, 64, 46, 0.16);
}

.gold-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 151, 60, 0.12) 100%);
}

.prayer-strip {
  height: 12px;
  width: 100%;
  background-image: linear-gradient(
    90deg,
    var(--cinnabar) 0 18px,
    var(--gold) 18px 26px,
    var(--sky) 26px 44px,
    transparent 44px 58px
  );
  background-size: 58px 100%;
  background-repeat: repeat-x;
  opacity: 0.8;
}
.prayer-strip--soft { opacity: 0.42; height: 8px; }

.glass-panel {
  position: relative;
  background: rgba(246, 240, 228, 0.62);
  border: 1px solid rgba(201, 151, 60, 0.45);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}

.solid-panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cinnabar);
  color: #FFF7EC;
  box-shadow: inset 0 0 0 1px rgba(201, 151, 60, 0.35);
}
.btn--primary:hover {
  background: var(--cinnabar-deep);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.btn--gold {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(201, 151, 60, 0.22);
}
.btn--gold:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--gold-light);
}

.btn--ghost {
  background: transparent;
  color: var(--pine);
  border-color: rgba(30, 70, 60, 0.34);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--cinnabar-deep);
}

.btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.45rem; }
.breadcrumb li + li::before {
  content: "◇";
  color: var(--gold);
  font-size: 0.58rem;
  line-height: 1;
}
.breadcrumb a {
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.breadcrumb a:hover { color: var(--cinnabar); border-bottom-color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 9. 图片容器（页面阶段放置图片占位） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 60, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--sky-light) 0%, var(--paper-2) 72%);
}
.media > img,
.media > picture,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--169 { aspect-ratio: 16 / 9; }
.media--43 { aspect-ratio: 4 / 3; }
.media--11 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.85;
  pointer-events: none;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(23, 18, 15, 0.86), rgba(23, 18, 15, 0));
}

.media--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(44, 122, 155, 0.13) 0 10px,
    transparent 10px 20px
  );
}

/* ---------- 10. 章节目录（页面阶段配合 data-spy） ---------- */
.toc {
  display: grid;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc__link {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--pine);
  border-left: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.toc__link:hover {
  color: var(--cinnabar);
  border-left-color: var(--gold);
  background: rgba(232, 201, 127, 0.16);
}
.toc__link[aria-current="true"] {
  color: var(--cinnabar-deep);
  font-weight: 700;
  border-left-color: var(--cinnabar);
}
.toc__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  flex: none;
}

/* ---------- 11. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--pine);
  background: linear-gradient(180deg, rgba(246, 240, 228, 0.97) 0%, rgba(246, 240, 228, 0.88) 100%);
  border-bottom: var(--gold-line);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.72rem var(--pad);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  background: conic-gradient(
    from 45deg,
    var(--cinnabar) 0 25%,
    var(--sky) 0 50%,
    var(--cinnabar) 0 75%,
    var(--sky) 0
  );
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--paper);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.05rem, 3.4vw, 1.34rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8A7F6D;
  white-space: nowrap;
}

.version-pill {
  align-self: flex-end;
  margin-bottom: 0.12rem;
  padding: 0.18rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--cinnabar-deep);
  background: rgba(232, 201, 127, 0.2);
  border: 1px solid var(--gold);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(201, 151, 60, 0.7);
  border-radius: var(--radius);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.nav-toggle:hover { background: rgba(232, 201, 127, 0.3); border-color: var(--gold); }

.nav-toggle__bars { display: block; width: 20px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle__bars span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0.62rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--pine);
  border-radius: var(--radius);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease-out);
}
.nav-list a:hover { color: var(--cinnabar); }
.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  color: var(--cinnabar-deep);
  font-weight: 700;
}
.nav-list a[aria-current="page"]::after {
  height: 2px;
  background: var(--cinnabar);
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  color: #FFF7EC;
  background: var(--cinnabar);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  box-shadow: inset 0 0 0 1px var(--gold);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.nav-cta:hover {
  background: var(--cinnabar-deep);
  box-shadow: inset 0 0 0 1px var(--gold-light);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--gold) 0%, var(--cinnabar) 100%);
  transition: width 0.12s linear;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(23, 18, 15, 0.46);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-scrim[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.to-top {
  position: fixed;
  right: clamp(0.9rem, 3vw, 2rem);
  bottom: clamp(0.9rem, 3vw, 2rem);
  z-index: 75;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.05rem;
  color: var(--gold-light);
  background: rgba(23, 18, 15, 0.92);
  border: 1px solid var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), background-color 0.18s ease;
}
.to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--pine); color: var(--gold-light); }

/* ---------- 12. 页脚 ---------- */
.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  background: var(--paper-2);
  border-top: 1px solid rgba(201, 151, 60, 0.5);
  color: var(--pine);
}

.export-bar {
  background: linear-gradient(100deg, var(--ink) 0%, #241A14 58%, var(--pine) 100%);
  color: var(--paper);
  border-bottom: 1px solid rgba(201, 151, 60, 0.5);
}
.export-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1rem var(--pad);
}
.export-bar__label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  min-width: 0;
}
.export-bar__title {
  position: relative;
  padding-left: 0.95rem;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.export-bar__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.export-bar__note {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(246, 240, 228, 0.72);
}

.footer-body {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.1rem, 5vw, 3.4rem) var(--pad) 1.6rem;
}

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

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cinnabar-deep);
  border-bottom: 1px solid rgba(201, 151, 60, 0.45);
}
.footer-col__title::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  display: inline-block;
  padding: 0.12rem 0;
  font-size: 0.94rem;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-links a:hover {
  color: var(--cinnabar);
  border-bottom-color: var(--gold);
}

.footer-contact {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.footer-contact li { display: grid; gap: 0.1rem; }
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-contact__value {
  color: var(--pine);
  line-height: 1.6;
  word-break: break-word;
}

.footer-link-more {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cinnabar-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 151, 60, 0.8);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-link-more:hover { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }

.footer-baseline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(201, 151, 60, 0.45);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-baseline__brand { font-family: var(--font-mono); letter-spacing: 0.02em; }
.footer-baseline__meta { font-family: var(--font-mono); letter-spacing: 0.02em; }
.footer-baseline__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.footer-baseline__links a {
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-baseline__links a:hover { color: var(--cinnabar); border-bottom-color: var(--gold); }

/* ---------- 13. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.52s ease, transform 0.52s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 40ms);
}
[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(84vw, 340px);
    padding: 5.4rem 1.35rem 2rem;
    overflow-y: auto;
    color: var(--ink);
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    border-left: var(--gold-line);
    box-shadow: -24px 0 60px -30px rgba(23, 18, 15, 0.9);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.34s var(--ease-out), visibility 0.34s;
  }
  .primary-nav[data-open="true"] {
    transform: none;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-list li + li { border-top: 1px solid rgba(217, 210, 196, 0.9); }
  .nav-list a {
    display: block;
    padding: 0.92rem 0.4rem;
    font-size: 1.02rem;
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] {
    padding-left: 0.85rem;
    border-left: 3px solid var(--cinnabar);
    background: linear-gradient(90deg, rgba(194, 64, 46, 0.1), rgba(194, 64, 46, 0));
  }

  .nav-cta {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

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

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

@media (max-width: 640px) {
  body { font-size: 16px; }

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

  .brand-en { display: none; }
  .version-pill { font-size: 0.6rem; padding: 0.14rem 0.45rem; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-baseline { flex-direction: column; align-items: flex-start; }

  .export-bar__inner { align-items: flex-start; }
  .export-bar__label { flex-direction: column; gap: 0.25rem; }
}

@media (max-width: 380px) {
  .version-pill { display: none; }
}

/* ---------- 15. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}
