/* ==========================================================================
   易发棋牌 · 内容中心 — 共享样式表 /assets/site.css
   设计语言：牌桌俱乐部 × 现代索引面板
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, p,
ul, ol, li, figure, figcaption, blockquote, dl, dd { 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; cursor: pointer; }

/* 2 — 变量
   ========================================================================== */
:root {
  --green-deep: #0E3B2E;
  --green-ink: #14251F;
  --ivory: #F7F2E7;
  --sand: #DED5C4;
  --vermillion: #B43A2F;
  --vermillion-dark: #8E2C24;
  --gold: #C9A65B;
  --gold-light: #E7CE94;
  --celadon: #5F918C;
  --mist: #A9C4BF;
  --ink: #1C2622;

  --font-head: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", "Courier New", monospace;

  --wrap: 1180px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 22px 44px -34px rgba(14, 59, 46, 0.8);

  --scroll-progress: 0;
}

/* 3 — 基础排版
   ========================================================================== */
body {
  min-height: 100vh;
  background-color: var(--ivory);
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 59, 46, 0.055) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.005em;
  color: var(--green-deep);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); line-height: 1.14; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { line-height: 1.78; }

strong { color: var(--vermillion-dark); font-weight: 600; }
em { font-style: normal; color: var(--green-deep); }

code, .mono, kbd { font-family: var(--font-mono); font-size: 0.92em; }

small { font-size: 0.82rem; color: #55665e; }

::selection { background: rgba(201, 166, 91, 0.4); color: var(--green-ink); }

/* 4 — 布局容器
   ========================================================================== */
.container {
  width: min(100% - clamp(2rem, 6vw, 4rem), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(2.6rem, 5.5vw, 5rem); }

.stack > * + * { margin-top: 1rem; }

.divider {
  height: 0;
  border: 0;
  border-top: 1px solid var(--sand);
  margin-block: clamp(1.6rem, 3vw, 2.6rem);
}

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

/* 5 — 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}

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

.btn--primary {
  background: var(--vermillion);
  border-color: var(--vermillion-dark);
  color: var(--ivory);
}
.btn--primary:hover { background: var(--vermillion-dark); }

.btn--ghost {
  background: transparent;
  border-color: var(--sand);
  color: var(--green-deep);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(201, 166, 91, 0.12); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold-light);
  color: var(--green-ink);
}
.btn--gold:hover { background: var(--gold-light); }

/* 6 — 标签与编号
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(95, 145, 140, 0.14);
  border: 1px solid rgba(95, 145, 140, 0.4);
  color: #2f5a56;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tag--gold { background: rgba(201, 166, 91, 0.16); border-color: rgba(201, 166, 91, 0.5); color: #7a5f22; }
.tag--red { background: rgba(180, 58, 47, 0.12); border-color: rgba(180, 58, 47, 0.38); color: var(--vermillion-dark); }

.index-num {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--vermillion);
}
.index-num::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vermillion);
  box-shadow: 0 0 0 3px rgba(180, 58, 47, 0.14);
  flex: 0 0 auto;
}

/* 7 — 章节头 / 面板 / 卡片
   ========================================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 58ch;
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--celadon);
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.8;
  color: #3d4f47;
}

.panel {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--sand);
  border-radius: var(--radius-xl);
  padding: clamp(1.3rem, 2.6vw, 2.2rem);
  box-shadow: var(--shadow-soft);
}

.card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
}
.card__title {
  margin-top: 0.4rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--green-deep);
}
.card__meta {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--celadon);
}

/* 8 — 数据与正文
   ========================================================================== */
.stat {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}
.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--celadon);
}

.prose { max-width: 70ch; color: #2d3b35; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.7rem; }
.prose ul { display: grid; gap: 0.55rem; }
.prose ul li { position: relative; padding-left: 1.3rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--celadon);
}
.prose a {
  color: var(--vermillion-dark);
  border-bottom: 1px solid rgba(142, 44, 36, 0.35);
  transition: border-color 0.18s ease;
}
.prose a:hover { border-bottom-color: var(--vermillion); }

/* 9 — 面包屑与锚点目录
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-block: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--celadon);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.55rem; color: var(--sand); }
.breadcrumb a {
  color: var(--green-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}
.breadcrumb a:hover { border-bottom-color: var(--gold); }

.anchor-nav {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
}
.anchor-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-left: 2px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #3d4f47;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.anchor-nav a:hover { background: rgba(222, 213, 196, 0.45); color: var(--green-deep); }
.anchor-nav a[aria-current="true"] {
  background: rgba(95, 145, 140, 0.14);
  border-left-color: var(--celadon);
  color: var(--green-deep);
}

/* 10 — 图片容器基础规则（页面阶段放置占位图）
   ========================================================================== */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #17483a 0%, var(--green-deep) 45%, #10281f 100%);
}
.media img,
.media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 59, 46, 0) 45%, rgba(14, 59, 46, 0.58) 100%);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}
.media__tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(247, 242, 231, 0.9);
  border: 1px solid rgba(201, 166, 91, 0.55);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--green-deep);
}

/* 11 — 页头：悬浮胶囊浮岛
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 0.62rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: var(--green-ink);
  color: var(--ivory);
  font-size: 0.88rem;
  transform: translate(-50%, -180%);
  transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px clamp(0.75rem, 3vw, 2rem) 12px;
  background: linear-gradient(180deg, rgba(247, 242, 231, 0.97) 58%, rgba(247, 242, 231, 0));
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.25rem);
  width: min(100%, var(--wrap));
  min-height: 62px;
  margin-inline: auto;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-pill);
  background: rgba(247, 242, 231, 0.94);
  box-shadow: 0 18px 36px -32px rgba(14, 59, 46, 0.9);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  padding-right: 0.4rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--green-deep);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 1.22rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(201, 166, 91, 0.45);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--green-deep);
}
.brand-descriptor {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  color: var(--celadon);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-pill);
  background: rgba(222, 213, 196, 0.35);
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(201, 166, 91, 0.16); }
.nav-toggle-icon { display: flex; flex-direction: column; gap: 3px; }
.nav-toggle-bar {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-deep);
  transition: transform 0.2s ease;
}
.site-header[data-open="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle-label { letter-spacing: 0.08em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.nav-list { display: flex; align-items: center; gap: 0.15rem; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--green-deep);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.3rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.nav-list a:hover { background: rgba(222, 213, 196, 0.5); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] {
  background: var(--green-deep);
  color: var(--ivory);
}
.nav-list a[aria-current="page"]::after { transform: scaleX(0); }
.nav-list a[aria-current="page"]:hover { background: var(--green-ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--vermillion-dark);
  border-radius: var(--radius-pill);
  background: var(--vermillion);
  color: var(--ivory);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.nav-cta::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(231, 206, 148, 0.22);
}
.nav-cta:hover { background: var(--vermillion-dark); transform: translateY(-2px); }

.scroll-meter {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 4px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  pointer-events: none;
}
.scroll-meter::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--celadon), var(--gold), var(--vermillion));
  opacity: 0.8;
}

/* 12 — 页脚：索引柜台
   ========================================================================== */
.site-footer {
  margin-top: clamp(3rem, 6vw, 6rem);
  background: radial-gradient(120% 140% at 12% 0%, #1B3A2F 0%, var(--green-ink) 55%, #0D1A16 100%);
  color: rgba(247, 242, 231, 0.82);
  border-top: 1px solid rgba(201, 166, 91, 0.35);
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--vermillion), var(--gold), var(--celadon));
  opacity: 0.9;
}

.footer-shell {
  width: min(100% - clamp(2rem, 6vw, 4rem), var(--wrap));
  margin-inline: auto;
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1.3fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.footer-logo::before {
  content: "易";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(201, 166, 91, 0.5);
  border-radius: 12px;
  background: rgba(201, 166, 91, 0.16);
  color: var(--gold-light);
  font-size: 1rem;
}

.footer-summary {
  max-width: 34ch;
  margin-top: 0.9rem;
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(247, 242, 231, 0.66);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.footer-btn:hover { transform: translateY(-2px); }
.footer-btn--gold { background: var(--gold); border-color: var(--gold-light); color: #16241D; }
.footer-btn--gold:hover { background: var(--gold-light); }
.footer-btn--ghost {
  background: transparent;
  border-color: rgba(247, 242, 231, 0.32);
  color: var(--ivory);
}
.footer-btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-btn[aria-pressed="true"] {
  background: var(--celadon);
  border-color: var(--mist);
  color: #08211B;
}

.footer-heading {
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.92rem;
  color: rgba(247, 242, 231, 0.8);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-links a:hover { color: var(--gold-light); border-bottom-color: rgba(231, 206, 148, 0.6); }

.footer-links--contact li {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  gap: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.6;
}
.footer-label { color: rgba(247, 242, 231, 0.42); letter-spacing: 0.1em; }
.footer-value { color: rgba(247, 242, 231, 0.86); overflow-wrap: anywhere; }

.footer-more {
  display: inline-block;
  margin-top: 1rem;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(231, 206, 148, 0.45);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.footer-more:hover { color: var(--ivory); border-bottom-color: var(--ivory); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247, 242, 231, 0.14);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(247, 242, 231, 0.55);
}
.footer-legal, .footer-icp { margin: 0; }
.footer-icp { color: rgba(247, 242, 231, 0.48); }

.footer-mini { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-mini a {
  color: rgba(247, 242, 231, 0.62);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-mini a:hover { color: var(--gold-light); border-bottom-color: rgba(231, 206, 148, 0.5); }

.footer-back {
  margin-left: auto;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(247, 242, 231, 0.25);
  border-radius: var(--radius-pill);
  color: var(--ivory);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.footer-back:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

/* 13 — 工具类与无障碍
   ========================================================================== */
.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;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-footer :focus-visible { outline-color: var(--gold-light); }

/* 14 — 响应式：平板
   ========================================================================== */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-links--contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; }
}

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-left: 0;
    padding: 0.9rem;
    border: 1px solid var(--sand);
    border-radius: 26px;
    background: var(--ivory);
    box-shadow: 0 30px 50px -34px rgba(14, 59, 46, 0.75);
  }

  .site-header[data-open="true"] .primary-nav { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav-list a {
    display: block;
    padding: 0.72rem 0.95rem;
    border-radius: 16px;
    font-size: 1rem;
  }
  .nav-list a::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 0.35rem; padding: 0.7rem 1rem; }

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

  .anchor-nav { position: static; }
}

/* 15 — 响应式：手机
   ========================================================================== */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-links--contact { grid-template-columns: 1fr; }
  .footer-back { margin-left: 0; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .header-shell { min-height: 56px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

@media (max-width: 520px) {
  .brand-descriptor { display: none; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 0.55rem 0.75rem; }
  .page-x, .footer-grid { grid-template-columns: 1fr; }
  .footer-mini { gap: 0.7rem; }
}

/* 16 — 减弱动效
   ========================================================================== */
@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;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .card:hover,
  .footer-btn:hover,
  .footer-back:hover,
  .nav-cta:hover { transform: none; }
}
