/* ==========================================================================
   乐橙CN · Site Kit / assets/site.css
   坐标手册：测绘网格、刻度线、橙色节点、起笔式衬线排版
   ========================================================================== */

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

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
table { width: 100%; border-collapse: collapse; }
p { text-wrap: pretty; }

/* ---------- 2. Tokens ---------- */
:root {
  --cream: #F7F1E6;
  --paper: #FFF9F0;
  --ink: #1F1B16;
  --deep: #0E3B2E;
  --deep-2: #145C46;
  --orange: #FF5A1F;
  --orange-text: #D63E0A;
  --cobalt: #2F5FD0;
  --gold: #C9A227;
  --muted: #8A8175;
  --line: #E8DCC8;
  --peach: #F2A48A;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --shell-max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;
}

/* ---------- 3. Base & 中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(16px, .4vw + 15px, 18px);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    linear-gradient(to right, rgba(232, 220, 200, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 220, 200, .3) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--deep);
}
h1 { font-size: clamp(40px, 7vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.28; }
h4 { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.4; letter-spacing: 0; }

strong { font-weight: 700; color: var(--deep); }
code, kbd, samp { font-family: var(--font-mono); font-size: .92em; }

::selection { background: var(--peach); color: var(--deep); }

[id] { scroll-margin-top: 136px; }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 1px;
}
.site-footer :focus-visible,
.section--deep :focus-visible,
.header-utility :focus-visible { outline-color: var(--gold); }

/* ---------- 4. 工具类 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -120px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 20px;
  border: 1px solid var(--gold);
  background: var(--deep);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 10px; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--primary { background: var(--orange); color: var(--deep); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-text); border-color: var(--orange-text); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn--ghost:hover { background: var(--deep); color: var(--cream); }
.btn--quiet { background: var(--paper); color: var(--deep); border-color: var(--line); }
.btn--quiet:hover { border-color: var(--orange); color: var(--orange-text); }

/* 标签 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .75; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--deep { color: var(--deep); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--peach);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.7;
  text-decoration: none;
}
.tag--blue { background: rgba(47, 95, 208, .13); color: var(--cobalt); }
.tag--gold { background: rgba(201, 162, 39, .2); color: #6F5A10; }
.tag--deep { background: var(--deep); color: var(--cream); }
.tag--outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* 面包屑 */
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb__item { display: inline-flex; align-items: center; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "／";
  margin-inline: 10px;
  color: var(--gold);
  opacity: .85;
}
.breadcrumb__link { color: var(--muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.breadcrumb__link:hover { color: var(--orange-text); }
.breadcrumb__current { color: var(--deep); font-weight: 500; }

/* ---------- 5. 栅格与正文容器 ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.span-full { grid-column: 1 / -1; }

.content { max-width: 68ch; }
.content--narrow { max-width: 56ch; }
.content > * + * { margin-top: 1.1em; }
.content p { font-size: clamp(16px, .35vw + 15px, 17.5px); line-height: 1.85; color: var(--ink); }
.content h2, .content h3, .content h4 { margin-top: clamp(28px, 4vw, 44px); }
.content h2 + p, .content h3 + p, .content h4 + p { margin-top: .7em; }
.content ul, .content ol { padding-left: 1.4em; }
.content li { margin-top: .5em; }
.content ul li { list-style: disc; }
.content ol li { list-style: decimal; }
.content a { color: var(--orange-text); text-underline-offset: 3px; }
.content a:hover { color: var(--deep); }
.content blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--orange);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--deep);
}

/* 章节容器 */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--deep { background: var(--deep); color: rgba(247, 241, 230, .86); }
.section--deep h2, .section--deep h3, .section--deep h4 { color: var(--cream); }
.section--deep a { color: var(--gold); }
.section--deep a:hover { color: var(--cream); }
.section--rule { border-top: 1px solid var(--line); }

/* 卡片 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  transition: border-color var(--dur) var(--ease);
}
.card:hover { border-color: var(--peach); }
.card__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.01em;
  color: var(--deep);
}
.card__meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
.card__text { font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.card--deep { background: var(--deep-2); border-color: rgba(201, 162, 39, .35); }
.card--deep .card__title { color: var(--cream); }
.card--deep .card__text { color: rgba(247, 241, 230, .74); }
.card--deep .card__meta { color: var(--gold); }
.card--accent { border-left: 3px solid var(--orange); }

/* 图片容器基础（页面阶段放置 <img class="figure__img">） */
.figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.figure::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 90, 31, .18);
  pointer-events: none;
}
.figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--cream), var(--paper));
  filter: saturate(.88) contrast(1.03);
}
.figure--wide .figure__img { aspect-ratio: 21 / 9; }
.figure--portrait .figure__img { aspect-ratio: 4 / 5; }
.figure--square .figure__img { aspect-ratio: 1 / 1; }
.figure__caption {
  display: block;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: .03em;
  color: var(--muted);
}

/* 返回顶部（JS 注入） */
.backtop {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14, 59, 46, .13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .24s var(--ease), transform .24s var(--ease),
              visibility .24s var(--ease), background .24s var(--ease),
              color .24s var(--ease), border-color .24s var(--ease);
}
.backtop::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}
.backtop[data-visible="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { background: var(--deep); color: var(--cream); border-color: var(--deep); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

/* 上层：深墨绿工具条 */
.header-utility {
  background: var(--deep);
  color: var(--cream);
  border-bottom: 1px solid rgba(201, 162, 39, .3);
}
.header-utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  min-height: 42px;
  padding-block: 6px;
}
.brand-line {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(247, 241, 230, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.utility-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(10px, 2vw, 22px); }
.utility-nav__link {
  padding-block: 3px;
  border-bottom: 1px solid transparent;
  color: rgba(247, 241, 230, .78);
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.utility-nav__link:hover,
.utility-nav__link:focus-visible { color: var(--cream); border-bottom-color: var(--orange); }
.utility-nav__link[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.utility-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 2px;
  background: var(--orange);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.utility-nav__cta:hover { background: var(--gold); color: var(--deep); }

/* 下层：品牌 + 主导航 */
.header-main { background: var(--cream); }
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(10px, 1.6vw, 16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--deep);
  text-decoration: none;
}
.brand__mark {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--deep);
  border-radius: 50%;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1;
  letter-spacing: -.02em;
}
.brand__sub {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .22em;
  color: var(--muted);
}

/* 移动目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

/* 主导航 */
.primary-nav { display: flex; align-items: center; }
.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(4px, 1.4vw, 22px);
}
.primary-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  color: var(--deep);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.primary-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--gold);
}
.primary-nav__link:hover { color: var(--orange-text); border-bottom-color: var(--peach); }
.primary-nav__link[aria-current="page"] {
  color: var(--orange-text);
  border-bottom-color: var(--orange);
  font-weight: 700;
}
.primary-nav__link[aria-current="page"] .primary-nav__index { color: var(--orange); }

/* 阅读进度条 */
.read-progress {
  position: relative;
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 68%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--deep);
  color: rgba(247, 241, 230, .8);
  border-top: 1px solid rgba(201, 162, 39, .4);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(201, 162, 39, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 162, 39, .16) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .55;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .72fr) minmax(0, .72fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 80px) clamp(28px, 4vw, 48px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cream);
  text-decoration: none;
}
.footer__wordmark::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 90, 31, .18);
}
.footer__tagline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--gold);
}
.footer__note {
  max-width: 32ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(247, 241, 230, .6);
}

.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer__title {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 162, 39, .3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__list { display: flex; flex-direction: column; }
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 7px;
  font-size: 14.5px;
  color: rgba(247, 241, 230, .82);
  text-decoration: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__link::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 90, 31, .5);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.footer__link:hover { color: var(--cream); transform: translateX(3px); }
.footer__link:hover::before { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 90, 31, .22); }

.footer__contact { display: flex; flex-direction: column; }
.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-block: 10px;
  border-bottom: 1px dashed rgba(232, 220, 200, .2);
}
.footer__contact-item:first-child { padding-top: 0; }
.footer__contact-item:last-child { border-bottom: 0; }
.footer__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: rgba(201, 162, 39, .95);
}
.footer__value {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 241, 230, .88);
  word-break: break-word;
}
.footer__value--mono { font-family: var(--font-mono); letter-spacing: .02em; }

.footer__meta {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(232, 220, 200, .18);
}
.footer__meta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}
.footer__copy,
.footer__icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(247, 241, 230, .6);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal .footer__link { padding-block: 0; font-size: 12.5px; }
.footer__legal .footer__link::before { display: none; }

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1080px) {
  .primary-nav__index { display: none; }
  .primary-nav__link { padding-inline: 2px; font-size: 14.5px; }
}

@media (max-width: 1000px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  [id] { scroll-margin-top: 150px; }

  .nav-toggle { display: inline-flex; }
  .header-main__inner { flex-wrap: wrap; }
  .primary-nav {
    display: block;
    flex-basis: 100%;
    width: 100%;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height .34s var(--ease), opacity .22s var(--ease), visibility .34s var(--ease);
  }
  .site-header[data-open="true"] .primary-nav {
    max-height: 560px;
    opacity: 1;
    visibility: visible;
    padding-bottom: 14px;
  }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .primary-nav__item { border-bottom: 1px solid var(--line); }
  .primary-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 2px;
    border-bottom: 0;
    font-size: 16px;
  }
  .primary-nav__index { display: inline; font-size: 11px; }
  .primary-nav__link[aria-current="page"] {
    padding-left: 12px;
    border-bottom-color: transparent;
    box-shadow: inset 3px 0 0 var(--orange);
  }

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

@media (max-width: 720px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .grid--12 > * { grid-column: 1 / -1 !important; }
}

@media (max-width: 640px) {
  .header-utility__inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
    padding-block: 8px;
  }
  .brand-line {
    flex-basis: 100%;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: .06em;
    white-space: normal;
    overflow: visible;
  }
  .utility-nav { justify-content: center; gap: 14px; }
  .utility-nav__link { font-size: 12px; }
  .utility-nav__cta { padding: 5px 10px; font-size: 11px; }
  .brand__sub { display: none; }

  .footer__meta-inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__brand { grid-column: auto; }
  .footer__legal { gap: 12px; }
}

/* ---------- 9. 降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .read-progress__bar { transition: none; }
  .backtop { transition: none; }
  .footer__link:hover { transform: none; }
}
