/* ============================================================
   凤凰赛场 —— /assets/site.css
   0 令牌 / 1 重置 / 2 排版 / 3 通用布局 / 4 头部 / 5 导航
   6 通用组件 / 7 图片容器 / 8 页脚 / 9 浮层与动效 / 10 响应式
   ============================================================ */

/* ---------- 0. 设计令牌 ---------- */
:root {
  --red: #D8412F;
  --red-deep: #8F1F16;
  --gold: #F2A93B;
  --ink: #121B2E;
  --ink-2: #2B3550;
  --teal: #2FA8A0;
  --paper: #F7F2E8;
  --paper-hi: #FFFDF8;
  --muted: #667085;
  --edge: #C9B79C;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-display);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Courier New", monospace;

  --wrap: 1320px;
  --gut: clamp(16px, 3.6vw, 40px);

  --bd: 2px solid var(--ink);
  --bd-thick: 3px solid var(--ink);
  --shadow-a: 5px 5px 0 var(--ink);
  --shadow-b: 7px 7px 0 var(--edge);
  --radius: 2px;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-2: clamp(1.375rem, 1.18rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.55rem + 2.6vw, 3.375rem);
  --step-5: clamp(2.75rem, 1.85rem + 4.2vw, 4.5rem);

  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  --fast: 160ms;
  --med: 260ms;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(201, 183, 156, 0.34) 0.7px, transparent 0.8px);
  background-size: 12px 12px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; }

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

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

address { font-style: normal; }

::selection {
  background: var(--red);
  color: var(--paper-hi);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
}

/* ---------- 2. 排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.22; letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); line-height: 1.35; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }

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

small { font-size: var(--step--1); }

.num,
time,
[data-num] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

/* ---------- 3. 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.wrap--narrow { max-width: 900px; }

.page-shell { padding-block: clamp(30px, 5vw, 66px); }

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose h2 { margin-top: 1.6em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--red-deep); text-decoration-thickness: 2px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--red);
  flex: 0 0 auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: var(--bd-thick);
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

.band {
  height: 9px;
  border-block: var(--bd);
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 16px,
    var(--gold) 16px 32px,
    var(--teal) 32px 48px,
    var(--ink) 48px 64px
  );
}

/* ---------- 4. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper-hi);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border: 3px solid var(--gold);
  box-shadow: 4px 4px 0 var(--red);
  transition: top var(--fast) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: var(--paper-hi);
}

/* 上层：灯带条 */
.masthead {
  background-color: var(--ink);
  background-image: linear-gradient(102deg, #121B2E 0%, #1D2B47 52%, #121B2E 100%);
  color: var(--paper);
  border-bottom: 4px solid var(--red);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 11px var(--gut);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand:hover { color: inherit; }

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(148deg, var(--gold) 0%, var(--gold) 42%, var(--red) 100%);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--red-deep);
  transform: skewX(-7deg);
}
.brand__mark > * { transform: skewX(7deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--paper-hi);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: rgba(247, 242, 232, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 上层信任入口 */
.utility {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility__link,
.utility__cta {
  display: inline-block;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.utility__link { color: rgba(247, 242, 232, 0.76); }
.utility__link:hover,
.utility__link:focus-visible {
  color: var(--paper-hi);
  border-color: rgba(242, 169, 59, 0.6);
  background: rgba(242, 169, 59, 0.12);
}

.utility__cta {
  margin-left: 6px;
  color: var(--ink);
  font-weight: 800;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 3px 3px 0 var(--red);
}
.utility__cta:hover,
.utility__cta:focus-visible {
  color: var(--ink);
  background: var(--paper-hi);
  border-color: var(--paper-hi);
  box-shadow: 3px 3px 0 var(--red-deep);
}

/* 下层：轨道条 */
.navbar {
  background: var(--paper-hi);
  border-bottom: var(--bd-thick);
  box-shadow: 0 4px 0 rgba(201, 183, 156, 0.55);
}

.navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gut);
  min-height: 58px;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.nav-toggle:hover { background: var(--gold); }
.nav-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper-hi);
  box-shadow: 3px 3px 0 var(--red);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background:
    linear-gradient(var(--paper-hi), var(--paper-hi)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--paper-hi), var(--paper-hi)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--paper-hi), var(--paper-hi)) 0 100% / 100% 2px no-repeat;
}

/* ---------- 5. 导航 ---------- */
.nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li { display: flex; }

.nav__list a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 18px 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: color var(--fast) var(--ease),
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--red);
  background: rgba(242, 169, 59, 0.16);
  border-bottom-color: var(--gold);
}

.nav__list a[aria-current="page"] {
  color: var(--red-deep);
  background: rgba(216, 65, 47, 0.09);
  border-bottom-color: var(--red);
}

.navbar__hint {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.navbar__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  margin-left: auto;
  padding: 10px 17px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--paper-hi);
  background: var(--red);
  border: var(--bd);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
  transition: transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--paper-hi);
  background: var(--red-deep);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.nav-cta:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ---------- 6. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-hi);
  border: var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-a);
  cursor: pointer;
  transition: transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.btn:hover,
.btn:focus-visible {
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn--red {
  color: var(--paper-hi);
  background: var(--red);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn--red:hover,
.btn--red:focus-visible {
  color: var(--paper-hi);
  background: var(--red-deep);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--paper-hi);
  background: var(--ink);
  box-shadow: var(--shadow-a);
}

.btn--sm { padding: 9px 15px; font-size: 13px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--paper-hi);
  border: var(--bd);
  border-radius: var(--radius);
}
.chip--gold { background: var(--gold); }
.chip--teal { background: var(--teal); color: var(--paper-hi); }
.chip--ink { background: var(--ink); color: var(--paper-hi); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--edge);
}
.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid var(--edge);
}
.breadcrumb a:hover { color: var(--red); border-bottom-color: var(--red); }
.breadcrumb [aria-current="page"] { color: var(--muted); }

.card {
  padding: 22px;
  background: var(--paper-hi);
  border: var(--bd-thick);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--edge);
}
.card--tight { padding: 16px; }

.statline {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ink);
  border: var(--bd-thick);
  border-radius: var(--radius);
  color: var(--paper);
  overflow: hidden;
}
.statline > * {
  flex: 1 1 140px;
  padding: 14px 16px;
  border-right: 2px solid rgba(201, 183, 156, 0.24);
}
.statline > *:last-child { border-right: 0; }
.statline__num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--gold);
}
.statline__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.6);
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 18px 16px;
  background: var(--paper-hi);
  border: var(--bd-thick);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--edge);
}
.toc__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 8px 10px 8px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  text-decoration: none;
  border-left: 3px solid var(--edge);
  transition: color var(--fast) var(--ease),
    background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.toc a:hover {
  color: var(--red);
  background: rgba(242, 169, 59, 0.14);
  border-left-color: var(--gold);
}
.toc a.is-current {
  color: var(--red-deep);
  font-weight: 800;
  background: rgba(216, 65, 47, 0.09);
  border-left-color: var(--red);
}

/* ---------- 7. 图片容器基础规则 ---------- */
.figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--bd-thick);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1B2740 0%, #121B2E 48%, #2B3550 100%);
  box-shadow: 7px 7px 0 var(--red);
}

.figure__frame > img,
.figure__frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.figure__frame[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.42);
}

.figure__cap {
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.figure__cap::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transform: translateY(-3px);
}

.figure--wide .figure__frame { aspect-ratio: 21 / 9; }
.figure--tall .figure__frame { aspect-ratio: 3 / 4; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }
.figure--soft .figure__frame { box-shadow: 7px 7px 0 var(--edge); }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 7vw, 96px);
  color: rgba(247, 242, 232, 0.78);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 90% at 4% 0%, rgba(242, 169, 59, 0.14), transparent 56%),
    radial-gradient(90% 80% at 100% 100%, rgba(47, 168, 160, 0.12), transparent 60%);
  border-top: 6px solid var(--red);
}

.footer__band {
  height: 9px;
  border-bottom: var(--bd);
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 16px,
    var(--gold) 16px 32px,
    var(--teal) 32px 48px,
    var(--ink) 48px 64px
  );
}

.footer__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 60px) var(--gut) 0;
}

.footer__summary {
  max-width: 640px;
  margin: 0 0 clamp(30px, 4vw, 46px);
  padding-left: 20px;
  border-left: 8px solid var(--gold);
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--paper-hi);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 2px solid rgba(201, 183, 156, 0.26);
}

.brand--foot .brand__name { color: var(--paper-hi); }
.brand--foot .brand__sub { color: rgba(247, 242, 232, 0.55); }

.brand__mark--foot {
  box-shadow: 3px 3px 0 var(--red);
}

.footer__contact {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 242, 232, 0.76);
}

.footer__line { display: block; }

.footer__label {
  display: inline-block;
  min-width: 3.6em;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: rgba(247, 242, 232, 0.82);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}
.footer__links a:hover {
  color: var(--paper-hi);
  border-bottom-color: var(--red);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 0 28px;
}

.footer__legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 242, 232, 0.52);
}

/* ---------- 9. 浮层与动效 ---------- */
.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 200;
  background: rgba(18, 27, 46, 0.18);
  pointer-events: none;
}

.scroll-meter__bar {
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 58%, var(--teal) 100%);
  will-change: transform;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper-hi);
  background: var(--ink);
  border: var(--bd-thick);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--red);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--med) var(--ease),
    transform var(--med) var(--ease), background-color var(--fast) var(--ease);
}
.to-top.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--red); }
.to-top__arrow { font-family: var(--font-mono); font-size: 15px; }

/* ---------- 10. 响应式 ---------- */
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

@media (min-width: 1100px) {
  .navbar__hint { display: inline-flex; }
  .navbar__hint + .nav-cta { margin-left: 18px; }
}

@media (max-width: 900px) {
  .navbar__inner {
    min-height: 56px;
    padding-inline: clamp(12px, 3vw, 20px);
    flex-wrap: wrap;
  }

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

  .nav {
    display: none;
    order: 5;
    flex: 0 0 100%;
    position: absolute;
    left: clamp(12px, 3vw, 20px);
    right: clamp(12px, 3vw, 20px);
    top: calc(100% + 3px);
    z-index: 80;
    padding: 10px;
    background: var(--paper-hi);
    border: var(--bd-thick);
    border-radius: var(--radius);
    box-shadow: 7px 7px 0 var(--ink);
  }

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

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

  .nav__list a {
    height: auto;
    padding: 13px 12px;
    font-size: 16px;
    border-bottom: 2px solid rgba(201, 183, 156, 0.6);
    border-left: 4px solid transparent;
  }

  .nav__list a:hover,
  .nav__list a:focus-visible { border-bottom-color: rgba(201, 183, 156, 0.6); }

  .nav__list a[aria-current="page"] {
    border-bottom-color: rgba(201, 183, 156, 0.6);
    border-left-color: var(--red);
  }

  .nav-cta { padding: 9px 14px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
}

@media (max-width: 720px) {
  .utility__link { display: none; }
  .utility__cta { margin-left: 0; }

  .masthead__inner { gap: 12px; }

  .footer__summary {
    font-size: clamp(1.35rem, 5vw, 1.9rem);
    padding-left: 14px;
    border-left-width: 6px;
  }

  .footer__base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand__sub { display: none; }
  .brand__mark { width: 34px; height: 34px; font-size: 16px; }
  .brand__name { font-size: 17px; }
  .nav-toggle { padding: 7px 10px; }
  .nav-toggle__label { font-size: 12px; letter-spacing: 0.06em; }
}

@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;
  }

  .scroll-meter__bar { transition: none !important; }

  .btn:hover,
  .btn:active,
  .nav-cta:hover,
  .nav-cta:active,
  .nav-toggle:active,
  .to-top { transform: none; }
}
