/* =========================================================
   财神棋牌 · 共享样式表 /assets/site.css
   结构：变量 → Reset → 排版 → 通用组件 → 页头 → 页脚 → 响应式
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --cs-red: #C8102E;
  --cs-dark-red: #7A0C1E;
  --cs-gold: #D4AF37;
  --cs-gold-soft: #F3D67A;
  --cs-green: #0B3D2E;
  --cs-purple: #2A0A3A;
  --cs-purple-deep: #1A0728;
  --cs-jade: #2EC4B6;
  --cs-ivory: #F7F3E8;
  --cs-ink: #1A1A1A;
  --cs-mist: #B08D57;
  --cs-neon: #4DA8DA;

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Songti SC", "SimSun", "Source Han Serif SC", serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Courier New", monospace;

  --shell: 1180px;
  --line: rgba(26, 26, 26, 0.14);
  --line-strong: rgba(26, 26, 26, 0.32);
  --line-gold: rgba(212, 175, 55, 0.32);
  --on-dark: rgba(247, 243, 232, 0.78);
  --on-dark-soft: rgba(247, 243, 232, 0.58);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--cs-ink);
  background-color: var(--cs-ivory);
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }
a { color: var(--cs-dark-red); text-decoration: none; }
a:hover { color: var(--cs-red); }

:focus-visible {
  outline: 2px solid var(--cs-jade);
  outline-offset: 3px;
}

#main-content { display: block; }
main [id], section[id] { scroll-margin-top: 8rem; }

/* ---------- 3. 中文排版与基础文本 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--cs-ink);
  line-height: 1.28;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin-block: 0.85em; }
p:first-child { margin-top: 0; }
p:last-child { margin-bottom: 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cs-mist);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cs-gold);
}

.prose { max-width: 74ch; }
.prose p { margin-block: 0.9em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { list-style: disc; padding-left: 1.4em; margin-block: 1em; }
.prose ol { list-style: decimal; }
.prose li { margin-block: 0.35em; }

/* ---------- 4. 布局与网格 ---------- */
.shell {
  width: min(var(--shell), 100% - 2rem);
  margin-inline: auto;
}
@media (min-width: 720px) {
  .shell { width: min(var(--shell), 100% - 3rem); }
}

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

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

.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band--ivory { background: #FFFFFF; }
.band--green { background: var(--cs-green); color: var(--cs-ivory); }
.band--purple { background: var(--cs-purple); color: var(--cs-ivory); }
.band--ink { background: #121212; color: var(--cs-ivory); }
.band--green p, .band--purple p, .band--ink p { color: var(--on-dark); }
.band--green h1, .band--purple h1, .band--ink h1,
.band--green h2, .band--purple h2, .band--ink h2,
.band--green h3, .band--purple h3, .band--ink h3 { color: var(--cs-ivory); }

/* ---------- 5. 章节头 / 分隔线 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--cs-ink);
  margin-bottom: 1.6rem;
}
.section-head__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: 0.02em;
}
.section-head__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(26, 26, 26, 0.55);
}
.band--green .section-head, .band--purple .section-head, .band--ink .section-head {
  border-bottom-color: var(--cs-gold);
}
.band--green .section-head__meta, .band--purple .section-head__meta, .band--ink .section-head__meta {
  color: var(--on-dark-soft);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: 1.6rem;
  background: linear-gradient(90deg, var(--cs-gold), rgba(212, 175, 55, 0.08) 70%, transparent);
}

/* ---------- 6. 按钮 / 标签 / 印章 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  background: var(--cs-red);
  color: #FFFFFF;
  border: 1px solid var(--cs-red);
  border-radius: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--cs-dark-red);
  border-color: var(--cs-gold);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--cs-gold);
}
.btn--gold { background: var(--cs-gold); border-color: var(--cs-gold); color: #241A02; }
.btn--gold:hover { background: var(--cs-gold-soft); border-color: var(--cs-gold-soft); color: #241A02; }
.btn--jade { background: transparent; border-color: var(--cs-jade); color: #10736A; }
.btn--jade:hover { background: rgba(46, 196, 182, 0.14); border-color: var(--cs-jade); color: #0C5B54; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--cs-ink); }
.btn--ghost:hover { background: rgba(200, 16, 46, 0.06); border-color: var(--cs-red); color: var(--cs-red); box-shadow: none; }
.band--green .btn--ghost, .band--purple .btn--ghost, .band--ink .btn--ghost {
  border-color: rgba(247, 243, 232, 0.45);
  color: var(--cs-ivory);
}
.band--green .btn--ghost:hover, .band--purple .btn--ghost:hover, .band--ink .btn--ghost:hover {
  border-color: var(--cs-jade);
  color: var(--cs-jade);
  background: rgba(46, 196, 182, 0.1);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.7);
  background: rgba(255, 255, 255, 0.6);
}
.tag--gold { border-color: var(--cs-gold); color: #8A6B15; background: rgba(212, 175, 55, 0.12); }
.tag--jade { border-color: var(--cs-jade); color: #0C5B54; background: rgba(46, 196, 182, 0.12); }

.seal {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: linear-gradient(150deg, var(--cs-red), var(--cs-dark-red));
  color: var(--cs-gold-soft);
  border: 1px solid var(--cs-gold);
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* ---------- 7. 资料卡 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.15rem 1.2rem 1.3rem;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cs-red);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover {
  border-left-color: var(--cs-gold);
  box-shadow: 0 10px 26px rgba(42, 10, 58, 0.14);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cs-mist);
}
.card__index { color: var(--cs-red); }
.card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.45;
}
.band--green .card, .band--purple .card, .band--ink .card {
  background: rgba(247, 243, 232, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
}
.band--green .card__title, .band--purple .card__title, .band--ink .card__title { color: var(--cs-ivory); }

/* ---------- 8. 图片容器（页面阶段放置占位图） ---------- */
.figure {
  margin: 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  overflow: hidden;
}
.figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 40%, rgba(200, 16, 46, 0.35), transparent 62%),
    linear-gradient(160deg, var(--cs-purple), var(--cs-green));
}
.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(212, 175, 55, 0.2), transparent 62%),
    radial-gradient(circle at 50% 50%, transparent 36%, rgba(0, 0, 0, 0.55) 100%);
}
.figure__caption {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(26, 26, 26, 0.58);
}
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--table .figure__media { aspect-ratio: 4 / 3; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

/* ---------- 9. 折叠面板 ---------- */
.fold {
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
}
.fold + .fold { border-top: 0; }
.fold__head { margin: 0; }
.fold__trigger {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1.15rem;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cs-ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.fold__trigger:hover { background: rgba(200, 16, 46, 0.06); color: var(--cs-dark-red); }
.fold__trigger[aria-expanded="true"] { background: var(--cs-dark-red); color: var(--cs-ivory); }
.fold__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cs-gold);
  flex: 0 0 auto;
}
.fold__trigger[aria-expanded="true"] .fold__index { color: var(--cs-gold-soft); }
.fold__mark {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-left: auto;
}
.fold__mark::before,
.fold__mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.fold__mark::before { left: 0; right: 0; top: 6px; height: 2px; }
.fold__mark::after { top: 0; bottom: 0; left: 6px; width: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.fold__trigger[aria-expanded="true"] .fold__mark::after { transform: scaleY(0); opacity: 0; }
.fold__panel {
  padding: 0.2rem 1.15rem 1.25rem;
  border-top: 1px dashed var(--line);
  color: rgba(26, 26, 26, 0.82);
}
.fold__panel[hidden] { display: none; }
.band--green .fold, .band--purple .fold, .band--ink .fold,
.band--green .fold__panel, .band--purple .fold__panel, .band--ink .fold__panel {
  background: rgba(247, 243, 232, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--on-dark);
}
.band--green .fold__trigger, .band--purple .fold__trigger, .band--ink .fold__trigger { color: var(--cs-ivory); }

/* ---------- 10. 筛选标签 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}
.filter-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cs-mist);
  margin-right: 0.4rem;
}
.filter-chip {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(26, 26, 26, 0.72);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.filter-chip:hover { border-color: var(--cs-jade); color: #0C5B54; }
.filter-chip[aria-pressed="true"] {
  background: var(--cs-red);
  border-color: var(--cs-red);
  color: #FFFFFF;
}
.band--green .filter-chip, .band--purple .filter-chip, .band--ink .filter-chip {
  border-color: rgba(247, 243, 232, 0.35);
  color: var(--on-dark);
}
.band--green .filter-bar, .band--purple .filter-bar, .band--ink .filter-bar {
  border-color: rgba(212, 175, 55, 0.28);
}

.is-hidden { display: none !important; }

/* ---------- 11. 站内索引条 ---------- */
.index-link {
  display: block;
  padding: 0.42rem 0.65rem;
  border-left: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(26, 26, 26, 0.6);
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.index-link:hover { color: var(--cs-red); border-left-color: var(--cs-red); }
.index-link[data-active="true"] {
  color: var(--cs-jade);
  border-left-color: var(--cs-jade);
  background: rgba(46, 196, 182, 0.09);
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(26, 26, 26, 0.55);
}
.breadcrumb a { color: var(--cs-dark-red); }
.breadcrumb a:hover { color: var(--cs-jade); }
.breadcrumb__sep { color: var(--cs-gold); }

/* ---------- 13. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--cs-gold);
  color: #241A02;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}
.skip-link:focus { transform: translateY(0); color: #241A02; }

/* ---------- 14. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--cs-purple);
  color: var(--cs-ivory);
  box-shadow: 0 12px 30px rgba(26, 7, 40, 0.3);
}
.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75), transparent);
}

.header-top {
  background:
    radial-gradient(120% 200% at 10% -60%, rgba(200, 16, 46, 0.5), transparent 62%),
    linear-gradient(180deg, var(--cs-purple), #20082F);
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
}
.header-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: 72px;
  padding-block: 0.7rem;
}
.header-top__note {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--on-dark-soft);
  padding-left: 1.5rem;
  border-left: 1px solid rgba(212, 175, 55, 0.35);
}
@media (min-width: 1024px) {
  .header-top__note { display: block; flex: 1 1 auto; min-width: 0; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { color: inherit; }
.brand__seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--cs-red), var(--cs-dark-red));
  color: var(--cs-gold-soft);
  border: 1px solid var(--cs-gold);
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.32), 0 4px 16px rgba(200, 16, 46, 0.36);
}
.brand__text { display: grid; gap: 0.1rem; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--cs-ivory);
  text-shadow: 0 1px 0 rgba(212, 175, 55, 0.45);
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--on-dark-soft);
  line-height: 1.4;
}

.header-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-left: auto;
}
.header-utility__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cs-gold-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.header-utility__link:hover {
  color: var(--cs-jade);
  border-bottom-color: var(--cs-jade);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.08);
  color: var(--cs-gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  white-space: nowrap;
}
.chip--live::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cs-jade);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.22);
  animation: cs-pulse 2.6s ease-in-out infinite;
}
@keyframes cs-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.22); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(46, 196, 182, 0.04); }
}

.header-nav {
  background-color: var(--cs-green);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.07) 0 1px,
    transparent 1px 68px
  );
}
.header-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: 54px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--cs-gold-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--cs-jade); color: var(--cs-jade); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 12px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle__label { line-height: 1; }

.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav__list { display: flex; flex-wrap: wrap; align-items: stretch; }
.site-nav__link {
  display: block;
  padding: 0.95rem 1.05rem;
  border-bottom: 3px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  color: rgba(247, 243, 232, 0.82);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.site-nav__link:hover {
  color: var(--cs-gold-soft);
  background: rgba(200, 16, 46, 0.24);
  border-bottom-color: var(--cs-gold);
}
.site-nav__link[aria-current="page"] {
  color: var(--cs-gold-soft);
  background: rgba(200, 16, 46, 0.34);
  border-bottom-color: var(--cs-red);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, #E8C558, var(--cs-gold));
  color: #241A02;
  border: 1px solid rgba(36, 26, 2, 0.28);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.header-cta:hover {
  background: linear-gradient(180deg, var(--cs-gold-soft), #E8C558);
  color: #241A02;
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.22);
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--cs-purple) 0%, var(--cs-purple-deep) 46%, #082A20 100%);
  color: var(--on-dark);
  font-size: 0.95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cs-dark-red), var(--cs-red) 28%, var(--cs-gold) 58%, var(--cs-green) 100%);
}
.site-footer a {
  color: rgba(247, 243, 232, 0.84);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--cs-jade); border-bottom-color: var(--cs-jade); }
.site-footer .brand,
.site-footer .brand:hover { border-bottom: 0; padding-bottom: 0; }
.site-footer .brand__line { color: var(--on-dark-soft); }

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 3.25rem 2.25rem;
}
@media (min-width: 720px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-main { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

.footer-brand__text {
  max-width: 34ch;
  margin: 0.9rem 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--on-dark-soft);
}
.footer-contact {
  display: grid;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.footer-contact__row { display: flex; gap: 0.6rem; align-items: baseline; }
.footer-contact dt {
  flex: 0 0 auto;
  color: var(--cs-gold-soft);
  letter-spacing: 0.14em;
}
.footer-contact dd { margin: 0; color: var(--on-dark); word-break: break-word; }

.footer-col__title {
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cs-gold-soft);
}
.footer-col__list { display: grid; gap: 0.55rem; font-size: 0.92rem; }

.footer-index-bar {
  background: rgba(0, 0, 0, 0.24);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.footer-index-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding-block: 0.9rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--on-dark);
}
.footer-index-bar__label { color: var(--cs-gold-soft); letter-spacing: 0.2em; }
.footer-index-bar__list { color: var(--on-dark-soft); }

.footer-legal { padding-block: 1.3rem 1.8rem; }
.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--on-dark-soft);
}
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.footer-legal__links .sep { color: rgba(212, 175, 55, 0.5); }
.footer-legal__meta { margin: 0; }

/* ---------- 16. 滚动进度与返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cs-gold), var(--cs-red) 58%, var(--cs-jade));
  pointer-events: none;
}
.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1.4rem;
  z-index: 110;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--cs-gold);
  background: var(--cs-purple);
  color: var(--cs-gold-soft);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.back-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--cs-dark-red); color: var(--cs-gold-soft); }

/* ---------- 17. 移动端页头 ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 1; }
  .header-cta { order: 2; padding: 0.55rem 0.85rem; font-size: 0.84rem; }
  .site-nav {
    display: none;
    order: 3;
    flex: 1 1 100%;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
  }
  .site-nav[data-open] { display: block; }
  .site-nav__list { flex-direction: column; padding-block: 0.4rem; }
  .site-nav__link {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    border-left: 3px solid transparent;
  }
  .site-nav__link:hover {
    background: rgba(200, 16, 46, 0.18);
    border-bottom-color: rgba(212, 175, 55, 0.14);
    border-left-color: var(--cs-jade);
  }
  .site-nav__link[aria-current="page"] {
    background: rgba(200, 16, 46, 0.28);
    border-bottom-color: rgba(212, 175, 55, 0.14);
    border-left-color: var(--cs-red);
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand__seal { width: 40px; height: 40px; font-size: 1.2rem; }
  .brand__name { font-size: 1.05rem; }
  .brand__line { font-size: 10px; }
  .header-top__inner { min-height: 64px; }
  .back-top { right: 0.75rem; bottom: 1rem; }
}

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