/* ============================================================
   鼎盛游艺 · 共享站点样式 /assets/site.css
   夜游刊物：深墨绿柜台 + 暖米白纸面 + 红土橙 + 鎏金刻度
   ============================================================ */

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

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #1E2A24;
  --ink-2: #2F4F43;
  --ink-3: #3C6354;
  --clay: #B4532A;
  --clay-hi: #D97B45;
  --paper: #F3E7D3;
  --sheet: #FBF7EF;
  --gold: #C9A227;
  --wine: #7A2E2E;
  --indigo: #24445C;
  --muted: #5B6159;

  --line: rgba(30, 42, 36, 0.14);
  --line-soft: rgba(30, 42, 36, 0.08);
  --rail-w: 284px;
  --maxw: 1180px;
  --radius: 14px;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-1: 0 1px 2px rgba(30, 42, 36, 0.06), 0 10px 26px -14px rgba(30, 42, 36, 0.34);
  --shadow-2: 0 18px 50px -28px rgba(30, 42, 36, 0.55);
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 800; }

p { line-height: 1.75; }

a {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(36, 68, 92, 0.4);
}
a:hover { color: var(--clay); }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 14%, var(--line) 86%, transparent);
}

::selection {
  background: rgba(180, 83, 42, 0.24);
  color: var(--ink);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 300;
  padding: 0.72rem 1.1rem;
  border-radius: 8px;
  background: var(--clay);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

/* ---------- 5. Header 外壳 ---------- */
.site-header {
  position: relative;
  z-index: 50;
}

/* ---- 5.1 左侧固定主栏 ---- */
.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 1.35rem;
  width: var(--rail-w);
  padding: 1.5rem 1.15rem 1.9rem;
  overflow-y: auto;
  color: #E9E0CE;
  background:
    radial-gradient(120% 55% at 0% 0%, rgba(217, 123, 69, 0.18), transparent 62%),
    linear-gradient(180deg, #1E2A24 0%, #182219 100%);
  border-right: 1px solid rgba(201, 162, 39, 0.22);
}

@media (min-width: 1080px) {
  .site-rail { display: flex; }
}

.site-rail::-webkit-scrollbar { width: 6px; }
.site-rail::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 39, 0.32);
  border-radius: 3px;
}

.rail__top { padding-bottom: 0.2rem; }

.rail__eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.rail__title {
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: #F5EEDF;
}

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

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 84px;
  padding: 0.85rem 0.8rem;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 10px;
  background: var(--ink-2);
  color: #F3E7D3;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.tile:hover,
.tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--clay-hi);
  background: var(--ink-3);
  color: #fff;
}

.tile__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.tile__meta {
  margin-top: auto;
  font-size: 0.68rem;
  color: var(--gold);
}

.rail__group {
  padding-top: 1.05rem;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
}

.rail__group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(233, 224, 206, 0.56);
}
.rail__group-title .mono { color: var(--gold); }

.rail__links li + li { margin-top: 0.45rem; }

.rail__links a {
  position: relative;
  display: block;
  padding-left: 0.95rem;
  font-size: 0.82rem;
  color: #D8CFBC;
  text-decoration: none;
  transition: color 0.18s ease;
}
.rail__links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  opacity: 0.6;
  transition: background 0.18s ease, opacity 0.18s ease;
}
.rail__links a:hover,
.rail__links a:focus-visible { color: #fff; }
.rail__links a:hover::before { background: var(--clay-hi); opacity: 1; }

.rail__log {
  padding-top: 1.05rem;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  margin-top: auto;
}

.rail__log-list li {
  display: flex;
  gap: 0.55rem;
  padding: 0.42rem 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #CFC4AE;
  border-bottom: 1px dashed rgba(201, 162, 39, 0.18);
}
.rail__log-list li:last-child { border-bottom: 0; }
.rail__log-list .mono {
  flex: none;
  color: var(--clay-hi);
  font-size: 0.72rem;
}

/* ---- 5.2 居中刊头 ---- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 231, 211, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid rgba(201, 162, 39, 0.45);
  box-shadow: 0 1px 0 rgba(30, 42, 36, 0.06);
}

.masthead::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--wine) 0%, var(--clay) 32%, var(--gold) 62%, var(--ink-2) 100%);
}

.masthead__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.2rem) 0.7rem;
}

.masthead__kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1.2;
}

.brand__desc {
  font-size: 0.73rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  white-space: nowrap;
}

.masthead__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(30, 42, 36, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.pill:hover,
.pill:focus-visible {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--paper);
}

.pill--solid {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}
.pill--solid:hover,
.pill--solid:focus-visible {
  background: var(--clay-hi);
  border-color: var(--clay-hi);
  color: #fff;
}

/* ---- 5.3 移动导航按钮 ---- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(30, 42, 36, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav-toggle:hover { background: rgba(30, 42, 36, 0.07); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-toggle__text { line-height: 1; }

/* ---- 5.4 栏目导航（刊头之下展开） ---- */
.nav {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.55), rgba(243, 231, 211, 0));
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.15rem clamp(1rem, 3vw, 2.2rem) 0.35rem;
}

.nav__list a {
  position: relative;
  display: block;
  padding: 0.7rem 0.85rem 0.8rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.42rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav__list a:hover { color: var(--clay); }
.nav__list a:hover::after { transform: scaleX(1); }

.nav__list a[aria-current="page"] { color: var(--clay); }
.nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--clay);
}

/* ---- 5.5 响应式导航 ---- */
@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: linear-gradient(180deg, #1E2A24, #182219);
    border-top: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow: 0 26px 44px -24px rgba(0, 0, 0, 0.6);
  }

  .nav[data-open] {
    display: block;
    animation: navDrop 0.22s ease both;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 1.15rem 1.4rem;
  }

  .nav__list li + li { border-top: 1px solid rgba(243, 231, 211, 0.1); }

  .nav__list a {
    padding: 0.95rem 0.2rem;
    font-size: 0.95rem;
    color: #EDE4D2;
  }

  .nav__list a::after {
    left: 0.2rem;
    right: auto;
    bottom: 0.55rem;
    width: 38px;
  }

  .nav__list a[aria-current="page"] { color: var(--clay-hi); }
  .nav__list a[aria-current="page"]::after { background: var(--clay-hi); }

  html.nav-open { overflow: hidden; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .masthead__bar {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.75rem clamp(0.9rem, 4vw, 1.2rem) 0.6rem;
  }
  .masthead__kicker { display: none; }
  .brand { align-items: flex-start; }
  .brand__name { letter-spacing: 0.14em; text-indent: 0.14em; }
  .brand__desc { letter-spacing: 0.14em; font-size: 0.68rem; }
  .masthead__tools { gap: 0.35rem; }
  .pill { font-size: 0.72rem; padding: 0.36rem 0.62rem; }
}

@media (max-width: 520px) {
  .masthead__tools .pill:not(.pill--solid) { display: none; }
  .brand__desc { display: none; }
}

/* ---------- 6. 通用布局组件 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.container--narrow { max-width: 820px; }

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

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

/* ---------- 7. 基础组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--clay-hi);
  border-color: var(--clay-hi);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(30, 42, 36, 0.3);
  color: var(--ink-2);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--paper);
  transform: translateY(-2px);
}

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

.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "／";
  margin-right: 0.35rem;
  color: var(--gold);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-color: var(--clay-hi);
}

.card {
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  box-shadow: var(--shadow-1);
}

.card--glass {
  background: rgba(251, 247, 239, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  border-color: rgba(255, 255, 255, 0.55);
}

.card--accent { border-top: 3px solid var(--clay); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  background: rgba(30, 42, 36, 0.08);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.tag--wine { background: var(--wine); color: #F3E7D3; }
.tag--indigo { background: var(--indigo); color: #F3E7D3; }
.tag--gold { background: var(--gold); color: #1E2A24; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.section-head__eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--clay);
}
.section-head__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.3;
}

/* ---------- 8. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(180, 83, 42, 0.14) 0 8px, rgba(180, 83, 42, 0) 8px 18px),
    linear-gradient(140deg, #2F4F43 0%, #1E2A24 72%);
}

.figure > img,
.figure > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #F3E7D3;
  background: linear-gradient(0deg, rgba(30, 42, 36, 0.88), rgba(30, 42, 36, 0));
}

/* ---------- 9. 正文容器 ---------- */
.prose {
  max-width: 68ch;
  color: #2A322C;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.prose h3 { margin-top: 1.8em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(180, 83, 42, 0.5); }
.prose strong { color: var(--ink); }
.prose blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prose th,
.prose td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.prose th {
  background: rgba(30, 42, 36, 0.05);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- 10. 可展开内容组 ---------- */
.disclosure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sheet);
}
.disclosure + .disclosure { margin-top: 0.7rem; }

.disclosure__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}
.disclosure__trigger:hover { background: rgba(180, 83, 42, 0.07); }

.disclosure__trigger::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--clay);
  transition: transform 0.2s ease;
}
.disclosure[data-open] .disclosure__trigger::after { transform: rotate(45deg); }

.disclosure__count {
  margin-left: auto;
  margin-right: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.disclosure__panel {
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.94rem;
  color: #3A423A;
}
.disclosure__panel > * + * { margin-top: 0.8em; }

/* ---------- 11. 阅读进度 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--clay-hi) 55%, var(--clay));
  transition: width 0.1s linear;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  color: #D9D0BD;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(122, 46, 46, 0.38), transparent 58%),
    radial-gradient(70% 90% at 0% 100%, rgba(36, 68, 92, 0.35), transparent 60%),
    linear-gradient(180deg, #1E2A24 0%, #16201A 100%);
  border-top: 3px solid var(--gold);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1rem, 3vw, 2.4rem);
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.2em;
  color: #F5EEDF;
}

.footer__summary {
  max-width: 34ch;
  margin-top: 0.8rem;
  font-size: 0.86rem;
  line-height: 1.85;
  color: rgba(217, 208, 189, 0.8);
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}
.footer__badges li {
  padding: 0.24rem 0.55rem;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.footer__col-title {
  margin-bottom: 0.9rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer__list li + li { margin-top: 0.55rem; }

.footer__list a {
  font-size: 0.86rem;
  color: rgba(217, 208, 189, 0.86);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer__list a:hover,
.footer__list a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--clay-hi);
  text-underline-offset: 0.24em;
}

.footer__contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(217, 208, 189, 0.86);
}
.footer__contact-row + .footer__contact-row { margin-top: 0.7rem; }
.footer__contact-row .mono {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer__base {
  border-top: 1px solid rgba(201, 162, 39, 0.22);
}

.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.1rem clamp(1rem, 3vw, 2.4rem) 1.6rem;
  font-size: 0.76rem;
  color: rgba(217, 208, 189, 0.62);
}

.footer__icp {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

@media (max-width: 980px) {
  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer__main { grid-template-columns: minmax(0, 1fr); }
  .footer__base-inner { justify-content: flex-start; }
}

/* ---------- 13. 动效与无障碍 ---------- */
@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;
  }
  .tile:hover,
  .btn:hover { transform: none; }
}
