/* ==========================================================
   财神送豪礼 · 999 CN —— 全站共享 Site Kit
   文件：/assets/site.css
   角色：reset / 变量 / 排版 / 网格 / 头部页脚 / 通用组件
   ========================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --gold: #D4AF37;
  --red: #B03A2E;
  --brown: #5D3A1A;
  --green: #1E4D3B;
  --yellow: #FFD34D;
  --orange: #E67E22;
  --cream: #FFF6E8;
  --dark-red: #7B241C;
  --line-gold: #E6C56A;
  --light-gold: #F9E7B3;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;

  --container-max: 1200px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-sm: 0 2px 8px rgba(93, 58, 26, 0.14);
  --shadow-md: 0 6px 24px rgba(93, 58, 26, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ---------- 基础排版 ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--brown);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

#main-content {
  flex: 1 0 auto;
}

#main-content:focus {
  outline: 2px dashed var(--gold);
  outline-offset: -4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--brown);
  line-height: 1.35;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.625rem); }
h2 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 1.75vw, 1.375rem); }

p + p {
  margin-top: 0.75rem;
}

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

a:hover {
  color: var(--orange);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--dark-red);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

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

/* ---------- 正文容器 ---------- */
.page-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
  position: relative;
}

/* ---------- 栅格系统 ---------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.content-grid > * {
  min-width: 0;
}

.span-3  { grid-column: span 3; }
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-9  { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.map-grid-bg {
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--line-gold);
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--gold);
  transform: translateY(-300%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  color: var(--brown);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--dark-red);
  color: var(--dark-red);
}

.btn-gold:hover {
  background: #C9A62F;
  color: var(--dark-red);
}

.btn-red {
  background: var(--red);
  border-color: var(--dark-red);
  color: #fff;
}

.btn-red:hover {
  background: #C04436;
  color: #fff;
}

.btn-ghost {
  border-color: var(--gold);
  color: var(--brown);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--light-gold);
  color: var(--brown);
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--brown);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.header-frame {
  position: relative;
}

.header-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0,
    var(--gold) 18px,
    var(--dark-red) 18px,
    var(--dark-red) 22px
  );
  z-index: 1;
}

.header-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border: 1px solid var(--dark-red);
  transform: translateX(-50%) rotate(45deg);
  z-index: 3;
}

.header-inner {
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold) 0%, #BA9818 60%, var(--line-gold) 100%);
  color: var(--dark-red);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--dark-red), 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(93, 58, 26, 0.55);
  pointer-events: none;
}

.brand-mark-inner {
  position: relative;
  z-index: 1;
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--gold);
  white-space: nowrap;
}

.brand-dot {
  color: var(--yellow);
  margin-inline: 0.15em;
}

.brand-note {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: rgba(255, 246, 232, 0.72);
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-top: 2px;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.7rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 246, 232, 0.88);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-item + .nav-item .nav-link {
  border-left: 1px solid rgba(230, 197, 106, 0.28);
}

.nav-coord {
  font-family: var(--font-serif);
  font-size: 0.6875rem;
  font-weight: 900;
  color: var(--line-gold);
  letter-spacing: 0.08em;
}

.nav-label {
  letter-spacing: 0.03em;
}

.nav-link:hover {
  color: var(--yellow);
  background-color: rgba(212, 175, 55, 0.12);
  border-bottom-color: var(--gold);
}

.nav-link[aria-current="page"] {
  color: var(--yellow);
  border-bottom-color: var(--gold);
  background-color: rgba(212, 175, 55, 0.08);
  font-weight: 700;
}

/* 头部操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-header-cta {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 1px var(--dark-red), 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 900;
}

.btn-header-cta:hover {
  background: #C04436;
  border-color: var(--yellow);
  color: #fff;
  transform: translateY(-1px);
}

.btn-arrow {
  display: inline-block;
  font-size: 1.0625rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-label-short {
  display: none;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line-gold);
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}

.nav-toggle-text-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-text-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-text-close {
  display: inline;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-icon > span {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  background-color: var(--dark-red);
  color: rgba(255, 246, 232, 0.85);
  border-top: 3px solid var(--gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0,
    var(--gold) 24px,
    var(--dark-red) 24px,
    var(--dark-red) 28px
  );
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border: 1px solid var(--dark-red);
  transform: translateX(-50%) rotate(45deg);
  z-index: 2;
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 2.5rem;
}

.footer-about .brand {
  margin-bottom: 0.875rem;
}

.brand-footer .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 1.25rem;
}

.brand-footer .brand-title {
  font-size: 1rem;
}

.brand-footer .brand-note {
  color: rgba(255, 246, 232, 0.65);
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 246, 232, 0.78);
  margin-bottom: 0.875rem;
}

.footer-trust {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--light-gold);
  background: rgba(0, 0, 0, 0.18);
  border-left: 3px solid var(--gold);
  padding: 0.625rem 0.75rem;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(230, 197, 106, 0.35);
}

.footer-heading-mark {
  font-size: 0.6875rem;
  color: var(--yellow);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list li {
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.footer-list a {
  color: rgba(255, 246, 232, 0.92);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-list a:hover {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-li-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--line-gold);
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(255, 246, 232, 0.62);
}

.footer-link-list li {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  border-bottom: 1px dashed rgba(230, 197, 106, 0.22);
}

.footer-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link-coord {
  font-family: var(--font-serif);
  font-size: 0.6875rem;
  font-weight: 900;
  color: var(--yellow);
  background: rgba(176, 58, 46, 0.6);
  border: 1px solid rgba(230, 197, 106, 0.35);
  padding: 0.0625rem 0.3125rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(230, 197, 106, 0.28);
}

.footer-bottom-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 246, 232, 0.6);
  letter-spacing: 0.03em;
}

.footer-copy,
.footer-icp {
  margin: 0;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  background: var(--red);
  color: var(--yellow);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(93, 58, 26, 0.35);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.back-top.is-visible {
  display: inline-flex;
}

.back-top:hover {
  background: #C04436;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(93, 58, 26, 0.4);
}

.back-top-coin {
  line-height: 1;
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  background: var(--light-gold);
  border-left: 3px solid var(--gold);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--gold);
  margin-right: 0.375rem;
}

.breadcrumbs a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--brown);
  font-weight: 700;
  cursor: default;
}

/* ---------- 章节地图组件 ---------- */
.section-coord {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--brown);
  background: var(--light-gold);
  border: 1px solid var(--line-gold);
  padding: 0.25rem 0.625rem;
}

.section-coord::before {
  content: "◆";
  font-size: 0.5rem;
  color: var(--red);
  letter-spacing: 0;
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin: 0.625rem 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--brown);
}

.section-title-note {
  writing-mode: vertical-rl;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  background: var(--light-gold);
  border: 1px solid var(--line-gold);
  padding: 0.25rem 0.125rem;
}

/* ---------- 卡片与标签 ---------- */
.card {
  position: relative;
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-sm);
}

.card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.7;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--brown);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--brown);
  background: var(--light-gold);
  border: 1px solid var(--line-gold);
}

.tag-gold {
  background: var(--gold);
  border-color: var(--dark-red);
  color: var(--dark-red);
  font-weight: 900;
}

.tag-red {
  background: var(--red);
  border-color: var(--dark-red);
  color: #fff;
}

.tag-green {
  background: var(--green);
  border-color: var(--brown);
  color: var(--cream);
}

/* ---------- 地图图例 ---------- */
.map-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: var(--light-gold);
  border: 1px solid var(--line-gold);
  font-size: 0.75rem;
  color: var(--brown);
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.map-legend-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border: 1px solid var(--dark-red);
}

/* ---------- 数字亮点 ---------- */
.hl-number {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--yellow);
  text-shadow: 2px 2px 0 rgba(176, 58, 46, 0.85);
}

/* ---------- 图片容器 ---------- */
.img-frame {
  display: block;
  width: 100%;
  background: var(--light-gold);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 1px var(--dark-red), 0 4px 14px rgba(93, 58, 26, 0.16);
}

.img-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  background:
    linear-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.12) 1px, transparent 1px),
    var(--light-gold);
  background-size: 20px 20px, 20px 20px, auto;
  border: 2px dashed var(--line-gold);
}

/* ---------- 页面主视觉 ---------- */
.page-hero {
  position: relative;
  background: var(--light-gold);
  border-bottom: 1px solid var(--line-gold);
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 20px);
  opacity: 0.55;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 900;
  color: var(--brown);
  line-height: 1.3;
}

.page-hero-sub {
  margin-top: 0.375rem;
  color: var(--red);
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
}

/* ---------- 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .nav-coord {
    display: none;
  }

  .nav-link {
    padding: 0.6rem 0.5rem;
    font-size: 0.8125rem;
  }

  .brand-note {
    display: none;
  }

  .header-inner {
    gap: 0.75rem;
    padding-inline: 1rem;
  }
}

@media (max-width: 920px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .footer-about {
    grid-column: span 2;
  }

  .content-grid {
    gap: 1rem;
  }

  .span-3,
  .span-4,
  .span-5 {
    grid-column: span 6;
  }

  .span-6,
  .span-7,
  .span-8,
  .span-9 {
    grid-column: span 12;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 3.75rem;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--brown);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 14px 24px rgba(93, 58, 26, 0.35);
  }

  .site-nav[data-open] {
    display: flex;
  }

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

  .nav-item + .nav-item .nav-link {
    border-left: none;
    border-top: 1px solid rgba(230, 197, 106, 0.25);
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.25rem;
    font-size: 0.9375rem;
    border-bottom: none;
  }

  .nav-coord {
    display: inline;
    min-width: 2em;
    font-size: 0.75rem;
  }

  .nav-link[aria-current="page"] {
    border-bottom: none;
    background: rgba(212, 175, 55, 0.12);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .btn-header-cta {
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
  }

  .btn-label-full {
    display: none;
  }

  .btn-label-short {
    display: inline;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .brand-mark::after {
    inset: 5px;
  }
}

@media (max-width: 640px) {
  .content-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 0.875rem;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-9 {
    grid-column: span 12;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem 1.25rem 1.5rem;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.875rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .back-top {
    width: 40px;
    height: 40px;
    right: 0.875rem;
    bottom: 0.875rem;
    font-size: 1.125rem;
  }
}

@media (max-width: 380px) {
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 1.125rem;
  }

  .brand-mark::after {
    inset: 4px;
  }

  .brand-title {
    font-size: 0.875rem;
  }

  .btn-header-cta {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }

  .nav-toggle {
    padding: 0.4rem 0.5rem;
  }

  .nav-toggle-text {
    display: none;
  }

  .header-inner {
    padding-inline: 0.625rem;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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

  .back-top {
    transition: none;
  }
}
