/* ===== PG会馆 共享样式 /assets/site.css ===== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

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

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

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

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

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

/* ---------- 变量 ---------- */
:root {
  --ink-900: #0B1B2B;
  --ink-800: #12283D;
  --ink-700: #1B3550;
  --page: #E7D8BC;
  --paper: #F4EDE1;
  --amber: #C8912F;
  --amber-bright: #E8B44B;
  --coral: #E2725B;
  --celadon: #3F8C7B;
  --steel: #8AA0B4;
  --text-ink: #2A3440;

  --font-heading: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;

  --header-h: 67px;
  --max-w: 1280px;
  --gap: clamp(16px, 2.2vw, 28px);
  --edge: rgba(138, 160, 180, 0.24);
  --edge-amber: rgba(200, 145, 47, 0.5);
  --lift: 0 18px 34px rgba(0, 0, 0, 0.36);
}

@media (max-width: 900px) {
  :root { --header-h: 59px; }
}

/* ---------- 基底 ---------- */
body {
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 12% -10%, rgba(27, 53, 80, 0.85) 0%, rgba(11, 27, 43, 0) 58%),
    radial-gradient(90% 60% at 100% 0%, rgba(63, 140, 123, 0.16) 0%, rgba(11, 27, 43, 0) 52%),
    var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, rgba(0, 0, 0, 0) 1px 5px);
}

@media (max-width: 760px) {
  body::before { display: none; }
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--paper);
  margin-bottom: 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; letter-spacing: 0.08em; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

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

::selection { background: rgba(232, 180, 75, 0.35); color: var(--paper); }

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--amber-bright);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: top 0.2s ease;
}

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

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.prose {
  width: 100%;
  max-width: 760px;
}

.prose p,
.prose li { font-size: 1rem; line-height: 1.78; }

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

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

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

/* ---------- 顶部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-top: 3px solid var(--amber);
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.98), rgba(18, 40, 61, 0.95));
  border-bottom: 1px solid rgba(200, 145, 47, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 30%;
  width: 52px;
  height: 3px;
  background: var(--coral);
}

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
  min-height: calc(var(--header-h) - 3px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: linear-gradient(140deg, var(--amber-bright), var(--amber));
  color: var(--ink-900);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.brand--footer .brand-mark { width: 42px; height: 42px; font-size: 1.05rem; }
.brand--footer .brand-name { font-size: 1.2rem; }

.nav { margin-left: auto; display: flex; align-items: center; }

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

.nav-link {
  display: block;
  padding: 9px 13px;
  font-size: 0.93rem;
  letter-spacing: 0.03em;
  color: rgba(244, 237, 225, 0.76);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--amber-bright);
  background: rgba(232, 180, 75, 0.09);
}

.nav-link[aria-current="page"] {
  color: var(--amber-bright);
  border-bottom-color: var(--amber-bright);
  background: linear-gradient(180deg, rgba(232, 180, 75, 0) 60%, rgba(232, 180, 75, 0.16) 60%);
}

.nav-item--cta { display: none; }

.nav-cta {
  display: block;
  margin-top: 22px;
  padding: 14px 20px;
  text-align: center;
  background: var(--amber);
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: 0.06em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  flex: none;
}

.status-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  padding-left: 14px;
  border-left: 1px solid rgba(138, 160, 180, 0.35);
  white-space: nowrap;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--ink-900);
  background: linear-gradient(120deg, var(--amber-bright), var(--amber));
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: filter 0.18s ease;
}

.header-cta:hover { filter: brightness(1.12); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: var(--amber-bright);
  border: 1px solid var(--edge-amber);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.18s ease;
}

.nav-toggle:hover { background: rgba(232, 180, 75, 0.12); }

.nav-toggle-box { display: grid; gap: 3px; width: 16px; }

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright) 58%, var(--coral));
  transition: transform 0.12s linear;
}

/* ---------- 顶部命令栏：移动端 ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: block;
    margin-left: 0;
    padding: 14px 20px 40px;
    background: linear-gradient(180deg, #0B1B2B 0%, #12283D 100%);
    border-top: 1px solid rgba(200, 145, 47, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }

  .nav-item + .nav-item { border-top: 1px solid rgba(138, 160, 180, 0.16); }

  .nav-link {
    padding: 16px 4px;
    font-size: 1.02rem;
    border-bottom: 0;
  }

  .nav-link[aria-current="page"] {
    color: var(--amber-bright);
    padding-left: 14px;
    border-left: 3px solid var(--amber-bright);
    background: rgba(232, 180, 75, 0.1);
  }

  .nav-item--cta { display: block; border-top: 0; }

  .nav-toggle { display: inline-flex; }
  .status-hint { display: none; }
  .brand-line { display: none; }
}

@media (max-width: 520px) {
  .header-cta { display: none; }
  .header-inner { gap: 10px; }
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-900);
  background: var(--amber);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.18s ease, color 0.18s ease;
}

.btn:hover { background: var(--amber-bright); }

.btn--primary {
  background: linear-gradient(120deg, var(--amber-bright), var(--amber));
  color: var(--ink-900);
}

.btn--primary:hover { background: var(--amber-bright); }

.btn--ghost {
  background: rgba(232, 180, 75, 0.06);
  color: var(--amber-bright);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 75, 0.5);
}

.btn--ghost:hover {
  background: rgba(232, 180, 75, 0.16);
  color: var(--amber-bright);
}

/* ---------- 文本元件 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.date-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--amber-bright);
  text-decoration: underline;
  text-decoration-color: rgba(232, 180, 75, 0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(26px, 4vw, 44px) 0;
  background: linear-gradient(90deg, rgba(138, 160, 180, 0.42), rgba(138, 160, 180, 0));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  border: 1px solid rgba(138, 160, 180, 0.38);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  flex: none;
}

.tag--visit { color: var(--coral); border-color: rgba(226, 114, 91, 0.55); }
.tag--pane { color: var(--celadon); border-color: rgba(63, 140, 123, 0.6); }

/* ---------- 面板与卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  background: var(--ink-800);
  border: 1px solid var(--edge);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.card {
  display: block;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-800);
  border: 1px solid var(--edge);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--edge-amber);
  box-shadow: var(--lift);
}

/* ---------- 图像容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(27, 53, 80, 0.9), rgba(11, 27, 43, 0.95));
  border: 1px solid var(--edge);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame > img,
.media-frame > picture > img {
  filter: saturate(0.72) contrast(1.05) brightness(0.94);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, rgba(0, 0, 0, 0) 1px 4px);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 书脊式侧边导航 ---------- */
.spine-nav { display: none; }

@media (min-width: 1180px) {
  .spine-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: fixed;
    left: clamp(14px, 2vw, 26px);
    top: calc(var(--header-h) + 26px);
    width: 140px;
    z-index: 60;
  }
}

.spine-link {
  display: block;
  padding: 9px 10px 9px 15px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(244, 237, 225, 0.58);
  border-left: 2px solid rgba(138, 160, 180, 0.24);
  transition: color 0.22s ease, border-color 0.22s ease, padding-left 0.22s ease, background 0.22s ease;
}

.spine-link:hover {
  color: var(--amber-bright);
  border-left-color: rgba(232, 180, 75, 0.6);
  padding-left: 19px;
}

.spine-link[aria-current="location"] {
  color: var(--ink-900);
  background: var(--amber);
  border-left-color: var(--amber-bright);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* ---------- 章节目录 ---------- */
.toc { border-left: 1px solid rgba(138, 160, 180, 0.28); padding-left: 4px; }

.toc-list { display: flex; flex-direction: column; gap: 2px; }

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 9px 12px;
  font-size: 0.9rem;
  color: rgba(244, 237, 225, 0.66);
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.toc-link:hover { color: var(--amber-bright); }

.toc-link[aria-current="location"] {
  color: var(--amber-bright);
  border-left-color: var(--amber-bright);
  background: rgba(232, 180, 75, 0.09);
}

.toc-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: var(--amber);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(138, 160, 180, 0.9);
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.breadcrumbs li + li::before {
  content: "/ ";
  color: rgba(138, 160, 180, 0.5);
}

.breadcrumbs a:hover { color: var(--amber-bright); }

.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 暖纸白反色分区 ---------- */
.section--paper {
  background: var(--paper);
  color: var(--text-ink);
}

.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4 { color: #16283C; }

.section--paper p,
.section--paper li { color: var(--text-ink); }

.section--paper .kicker { color: #8A5F14; }

.section--paper .rule {
  background: linear-gradient(90deg, rgba(42, 52, 64, 0.3), rgba(42, 52, 64, 0));
}

.section--paper .date-stamp { color: #8A5F14; text-decoration-color: rgba(138, 95, 20, 0.45); }

.section--paper .panel {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(42, 52, 64, 0.14);
}

.section--paper .card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(42, 52, 64, 0.14);
}

.section--paper .card:hover {
  box-shadow: 0 16px 30px rgba(42, 52, 64, 0.14);
  border-color: rgba(138, 95, 20, 0.55);
}

.section--paper .toc { border-left-color: rgba(42, 52, 64, 0.22); }

.section--paper .toc-link { color: rgba(42, 52, 64, 0.74); }

.section--paper .toc-link[aria-current="location"] {
  color: #8A5F14;
  border-left-color: #8A5F14;
  background: rgba(200, 145, 47, 0.14);
}

.section--paper .breadcrumbs { color: rgba(42, 52, 64, 0.66); }
.section--paper .breadcrumbs [aria-current="page"] { color: #16283C; }
.section--paper .breadcrumbs li + li::before { color: rgba(42, 52, 64, 0.4); }

/* ---------- 逐层显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--amber-bright);
  background: rgba(18, 40, 61, 0.94);
  border: 1px solid var(--edge-amber);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s, background 0.18s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: rgba(232, 180, 75, 0.18); }

.to-top-mark { font-family: var(--font-mono); }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(56px, 9vw, 110px);
  background: linear-gradient(180deg, #0B1B2B 0%, #12283D 100%);
  border-top: 1px solid rgba(200, 145, 47, 0.32);
  color: rgba(244, 237, 225, 0.82);
}

.footer-ridge {
  height: 7px;
  background: repeating-linear-gradient(115deg, rgba(200, 145, 47, 0.55) 0 2px, rgba(0, 0, 0, 0) 2px 14px);
  opacity: 0.65;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(38px, 6vw, 70px) clamp(18px, 4vw, 32px) clamp(26px, 4vw, 44px);
  display: grid;
  gap: clamp(24px, 3.2vw, 44px);
  grid-template-columns: 1.25fr 1fr 1fr 1fr 1.35fr;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-tagline {
  max-width: 30ch;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(244, 237, 225, 0.66);
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.footer-col-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 160, 180, 0.42), rgba(138, 160, 180, 0));
}

.footer-list { display: flex; flex-direction: column; gap: 10px; }

.footer-list a,
.footer-list span {
  font-size: 0.92rem;
  color: rgba(244, 237, 225, 0.74);
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  transition: color 0.18s ease;
}

.footer-list a::before {
  content: "";
  width: 6px;
  height: 1px;
  background: rgba(200, 145, 47, 0.75);
  transition: width 0.18s ease;
}

.footer-list a:hover { color: var(--amber-bright); }
.footer-list a:hover::before { width: 16px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 11px; }

.footer-contact-list li { display: flex; flex-direction: column; gap: 2px; }

.fc-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.fc-value {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(244, 237, 225, 0.88);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid rgba(200, 145, 47, 0.5);
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(138, 160, 180, 0.92);
}

.footer-base {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 18px clamp(18px, 4vw, 32px) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  border-top: 1px solid rgba(138, 160, 180, 0.18);
}

.footer-legal,
.footer-copy,
.footer-base-links a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(138, 160, 180, 0.92);
}

.footer-base-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-base-links a:hover { color: var(--amber-bright); }
.footer-copy { margin-left: auto; }

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

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-copy { margin-left: 0; }
}

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .card:hover { transform: none; }
  .spine-link:hover { padding-left: 15px; }
}
