/* =========================================================
   皇冠玩家站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 命令栏 / 页脚 / 通用组件
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote,
dl, dt, dd, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; height: 1px; background: var(--line); }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1533;
  --ink-deep: #080F24;
  --panel: #16224A;
  --line: #2A3A6B;
  --gold: #E8B84B;
  --gold-soft: #F6D98A;
  --violet: #8B5CF6;
  --jade: #2FBF8F;
  --paper: #F7F4EC;
  --paper-deep: #EFEADF;
  --black: #14110C;
  --mist: #A9B4CC;
  --text: #D8E0F2;
  --heading: #F2F5FF;

  --max: 1280px;
  --gutter: 24px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 160ms;

  --font-head: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", "DIN Alternate", "Roboto Mono",
              Menlo, Consolas, monospace;

  --shadow-card: 0 26px 60px -42px rgba(0, 0, 0, 0.95);
  --shadow-float: 0 34px 80px -46px rgba(0, 0, 0, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(42, 58, 107, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 107, 0.28) 1px, transparent 1px);
  background-size: 80px 80px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--heading);
}

h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1rem; letter-spacing: 0.01em; }

p { max-width: 74ch; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

a:hover { color: var(--gold-soft); }

strong { font-weight: 800; color: var(--heading); }

small, .caption { font-size: 0.8125rem; line-height: 1.5; color: var(--mist); }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- 4. 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-6  { grid-column: span 6; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--line) 40%, transparent);
  margin-block: clamp(40px, 6vw, 88px);
  opacity: 0.7;
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 3px;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: 16px; color: var(--black); }

/* ---------- 6. 品牌块 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.brand:hover { color: inherit; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(232, 184, 75, 0.24), rgba(139, 92, 246, 0.2));
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(232, 184, 75, 0.14);
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--heading);
  white-space: nowrap;
}

.brand__sub {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--mist);
  max-height: 20px;
  overflow: hidden;
  transition: max-height 200ms var(--ease), opacity 200ms var(--ease);
}

/* ---------- 7. 命令栏头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 21, 51, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(232, 184, 75, 0.16), 0 22px 44px -34px rgba(0, 0, 0, 0.95);
}

.site-header[data-condensed] .brand__sub { max-height: 0; opacity: 0; }

.command-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 12px var(--gutter);
  transition: padding var(--dur) var(--ease);
}

.site-header[data-condensed] .command-bar { padding-block: 8px; }

/* 当前栏目状态 */
.command-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-left: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  max-width: 100%;
}

.command-meta__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(47, 191, 143, 0.18);
  flex: 0 0 auto;
}

.command-meta__value {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav__item { display: block; }

.primary-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--mist);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.primary-nav__link:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
  background: rgba(232, 184, 75, 0.08);
}

.primary-nav__link:hover .nav-index { color: var(--gold-soft); }

.primary-nav__link[aria-current="page"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.primary-nav__link[aria-current="page"] .nav-index { color: rgba(20, 17, 12, 0.68); }

.nav-index {
  font-family: var(--font-num);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: color var(--dur) var(--ease);
}

.nav-label { white-space: nowrap; }

.primary-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

/* 进度线 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--gold) 60%, var(--jade));
  transition: width 120ms linear;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle__icon {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__icon i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[data-open] .nav-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[data-open] .nav-toggle__icon i:nth-child(2) { opacity: 0; }
.nav-toggle[data-open] .nav-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 8. 通用组件 ---------- */
/* 模块 */
.panel {
  position: relative;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.panel--paper {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 17, 12, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  border-color: rgba(20, 17, 12, 0.16);
  color: var(--black);
}

.panel--paper h1,
.panel--paper h2,
.panel--paper h3,
.panel--paper h4,
.panel--paper strong { color: var(--black); }

.panel--outline {
  background: transparent;
  border-color: rgba(232, 184, 75, 0.42);
  box-shadow: inset 0 0 0 1px rgba(232, 184, 75, 0.08);
}

.panel--fold::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 22px solid var(--gold);
  border-left: 22px solid transparent;
  border-top-right-radius: var(--radius);
  pointer-events: none;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

.btn--gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--black);
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 14px; font-size: 0.8125rem; }

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

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(42, 58, 107, 0.55);
  color: var(--mist);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--gold { border-color: rgba(232, 184, 75, 0.5); background: rgba(232, 184, 75, 0.12); color: var(--gold-soft); }
.tag--violet { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.14); color: #C9B4FF; }
.tag--jade { border-color: rgba(47, 191, 143, 0.5); background: rgba(47, 191, 143, 0.13); color: #7FE5C0; }

/* 章节大编号 */
.index-num {
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  transition: color var(--dur) var(--ease);
}

.index-num:hover,
.index-num[data-active] { color: var(--gold); }

/* 数值面板 */
.stat { display: block; }

.stat__num {
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.panel--paper .stat__label { color: rgba(20, 17, 12, 0.62); }
.panel--paper .stat__num { color: #9A6B12; }

/* 面包屑 */
.breadcrumb { margin-bottom: 20px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--mist);
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb__list li + li::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--line);
}

.breadcrumb__list a { color: var(--mist); }
.breadcrumb__list a:hover { color: var(--gold); }
.breadcrumb__list [aria-current="page"] { color: var(--gold-soft); font-weight: 700; }

/* 正文 */
.prose {
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.prose p + p,
.prose ul + p,
.prose p + ul { margin-top: 1em; }

.prose ul { display: grid; gap: 8px; padding-left: 0; }

.prose li {
  position: relative;
  padding-left: 18px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.prose--paper { color: var(--black); }
.prose--paper strong { color: var(--black); }

/* ---------- 9. 图片容器（页面阶段放置) ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    radial-gradient(circle at 78% 18%, rgba(139, 92, 246, 0.28), transparent 58%),
    linear-gradient(150deg, #1B2A57, #0B1533 72%);
}

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

.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--tall { aspect-ratio: 9 / 16; }

.media__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 70% 22%, rgba(232, 184, 75, 0.22), transparent 62%);
}

.media__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .media { aspect-ratio: 4 / 3; }
  .media--portrait { aspect-ratio: 3 / 4; }
}

/* ---------- 10. 折叠面板 ---------- */
.fold {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(22, 34, 74, 0.65);
  overflow: hidden;
}

.fold + .fold { margin-top: 10px; }

.fold__head { margin: 0; }

.fold__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.fold__trigger:hover { color: var(--gold); }

.fold__trigger[aria-expanded="true"] { color: var(--gold); }

.fold__mark {
  font-family: var(--font-num);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold);
  transition: transform var(--dur) var(--ease);
}

.fold__trigger[aria-expanded="true"] .fold__mark { transform: rotate(45deg); }

.fold__panel {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.fold__panel[hidden] { display: none; }

/* ---------- 11. 粘性目录 ---------- */
.toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(22, 34, 74, 0.6);
}

.toc__title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
}

.toc__list { display: grid; gap: 6px; }

.toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--mist);
  font-size: 0.875rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.toc__link:hover { color: var(--gold-soft); }

.toc__link[data-active] {
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 700;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 148px);
  background: linear-gradient(180deg, #0D1840, var(--ink-deep) 62%);
  border-top: 1px solid var(--line);
  color: var(--text);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--violet) 42%, var(--jade) 82%, var(--gold));
  opacity: 0.9;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 84px);
}

.footer__lead { display: block; }

.brand--footer { margin-bottom: 18px; }

.footer__summary {
  max-width: 40ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--mist);
}

.footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  max-width: none;
}

.footer__col-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__list { display: grid; gap: 10px; }

.footer__link {
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  word-break: break-word;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 22px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--mist);
}

.footer__legal,
.footer__note,
.footer__copy { max-width: none; }

.footer__copy { font-family: var(--font-num); letter-spacing: 0.02em; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
  .footer__lead { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root { --gutter: 22px; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .col-3  { grid-column: span 3; }
  .col-4  { grid-column: span 3; }
  .col-6  { grid-column: span 6; }
  .col-8  { grid-column: span 6; }
  .col-12 { grid-column: span 6; }
  .command-meta { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 3;
  }

  .primary-nav {
    order: 5;
    flex: 1 0 100%;
    display: none;
    margin-left: 0;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(22, 34, 74, 0.99);
    box-shadow: var(--shadow-float);
  }

  .primary-nav[data-open] { display: block; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .primary-nav__link {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    font-size: 0.9375rem;
  }

  .primary-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .primary-nav__actions .btn { width: 100%; min-height: 44px; }

  .brand__sub { display: none; }

  .toc { position: static; }
}

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__lead { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { background-size: 56px 56px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .col-3, .col-4, .col-6, .col-8, .col-12 { grid-column: span 2; }
  .panel { padding: 18px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 14. 无障碍与动效降级 ---------- */
@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;
  }

  .btn:hover,
  .btn--gold:hover,
  .btn--ghost:hover { transform: none; }

  .scroll-progress__bar { transition: none; }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .scroll-progress { display: none !important; }
}
