/* ==========================================================================
   尊龙人生指南 · 共享站点样式 /assets/site.css
   ========================================================================== */

/* 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, figure, blockquote, dl, dd, ul, ol, hr {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

/* 2. 设计令牌 --------------------------------------------------------------- */
:root {
  /* 色彩 */
  --indigo: #1B3A6B;
  --indigo-deep: #0E2242;
  --pomegranate: #B62F2A;
  --sand-gold: #D8A13F;
  --clay: #C06A38;
  --linen: #F8F3E8;
  --linen-deep: #EFE4CE;
  --ink: #1B1917;
  --indigo-mist: #DCE5F1;
  --haze: #6F7C90;

  --line: rgba(27, 58, 107, 0.20);
  --line-strong: rgba(27, 58, 107, 0.38);
  --line-light: rgba(248, 243, 232, 0.22);

  /* 字号阶梯 12/13/16/18/22/28/36/48/64/88 */
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-22: 22px;
  --fs-28: 28px;
  --fs-36: 36px;
  --fs-48: 48px;
  --fs-64: 64px;
  --fs-88: 88px;

  /* 字体 */
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* 布局 */
  --max: 1440px;
  --gutter: 5vw;
  --header-h: 88px;
  --rhythm: 96px;
}

/* 3. 基础排版 --------------------------------------------------------------- */
body {
  position: relative;
  min-height: 100vh;
  background-color: var(--linen);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 艾德莱斯绸斜纹肌理，只做温度 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(118deg, var(--indigo) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(62deg, var(--pomegranate) 0 1px, transparent 1px 29px),
    repeating-linear-gradient(90deg, var(--sand-gold) 0 1px, transparent 1px 83px);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--indigo-deep);
  text-wrap: balance;
}

h1 { font-size: var(--fs-48); }
h2 { font-size: var(--fs-36); }
h3 { font-size: var(--fs-28); }
h4 { font-size: var(--fs-22); }

p { max-width: 34em; }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

::selection { background: var(--indigo); color: var(--linen); }

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

.container--narrow { max-width: 820px; }

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

.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: 7fr 5fr; }

.section { padding-block: var(--rhythm); }

.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 0;
}

/* 5. 排版装饰件 ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--clay);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--clay);
}

.annot-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: var(--fs-13);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--haze);
  line-height: 1.4;
}

.corner-frame { position: relative; }

.corner-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--pomegranate);
}

.prose { font-size: var(--fs-16); line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }
.prose p { max-width: 34em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { list-style: disc; padding-left: 1.35em; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--indigo-deep); font-weight: 700; }

/* 6. 面包屑 ----------------------------------------------------------------- */
.breadcrumb {
  padding-block: 20px;
  font-size: var(--fs-13);
  color: var(--haze);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(111, 124, 144, 0.6);
}

.breadcrumb-list a { color: var(--indigo); }
.breadcrumb-list a:hover { color: var(--pomegranate); }

/* 7. 按钮 ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn--primary {
  background: var(--pomegranate);
  color: var(--linen);
  border-color: var(--pomegranate);
}

.btn--primary:hover { background: #9E2622; border-color: #9E2622; }

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

.btn--ghost:hover { background: var(--indigo); color: var(--linen); border-color: var(--indigo); }

.btn--sm { padding: 9px 16px; font-size: var(--fs-13); letter-spacing: 0.08em; }

/* 8. 标签 ------------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--indigo);
}

.tag--red { border-color: var(--pomegranate); color: var(--pomegranate); }
.tag--gold { border-color: var(--sand-gold); color: #8A6420; background: rgba(216, 161, 63, 0.10); }

/* 9. 图片容器 --------------------------------------------------------------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--linen-deep);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

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

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

.media--placeholder {
  background-color: var(--linen-deep);
  background-image:
    repeating-linear-gradient(118deg, rgba(27, 58, 107, 0.14) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(28deg, rgba(182, 47, 42, 0.10) 0 1px, transparent 1px 34px);
}

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  background: rgba(14, 34, 66, 0.84);
  color: var(--linen);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  line-height: 1.6;
}

/* 10. 等宽数字 -------------------------------------------------------------- */
.num,
.price-band__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.price-band {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--indigo-deep);
}

.price-band__num { color: var(--indigo-deep); }
.price-band__dash { color: var(--sand-gold); }
.price-band__unit { font-family: var(--font-sans); font-size: var(--fs-13); font-weight: 500; color: var(--haze); }

/* 11. 折叠明细 -------------------------------------------------------------- */
.disclosure {
  border-top: 1px solid var(--line);
}

.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--indigo-deep);
  line-height: 1.5;
}

.disclosure summary::-webkit-details-marker { display: none; }

.disclosure summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-22);
  font-weight: 700;
  color: var(--pomegranate);
  line-height: 1;
}

.disclosure[open] summary::after { content: "−"; }

.disclosure__body {
  padding-bottom: 22px;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--ink);
}

.disclosure__body p { max-width: 34em; }

/* 12. 数据表 ---------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--linen);
}

.data-table { min-width: 560px; font-size: var(--fs-16); }

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  background: var(--linen-deep);
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--indigo);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) { background: rgba(220, 229, 241, 0.42); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { color: var(--indigo-deep); white-space: nowrap; }

/* 13. 章节索引 -------------------------------------------------------------- */
.section-index {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  font-size: var(--fs-13);
}

.index-list {
  border-left: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-item { margin: 0; }

.index-link {
  position: relative;
  display: block;
  padding: 9px 12px 9px 18px;
  color: var(--haze);
  letter-spacing: 0.06em;
  line-height: 1.5;
  transition: color 200ms ease;
}

.index-link::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sand-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 200ms ease;
}

.index-link:hover { color: var(--indigo); }

.index-link[aria-current="true"] {
  color: var(--indigo-deep);
  font-weight: 700;
}

.index-link[aria-current="true"]::before { transform: scaleY(1); }

.index-link.is-flash { background: rgba(216, 161, 63, 0.16); }

/* 14. 显现动画 -------------------------------------------------------------- */
[data-reveal] { transition: opacity 320ms ease-out, transform 320ms ease-out; }

[data-js="on"] [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(12px);
}

/* 15. 跳转链接 -------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 900;
  padding: 10px 20px;
  background: var(--indigo-deep);
  color: var(--linen);
  border: 1px solid var(--sand-gold);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.1em;
  transform: translateY(-180%);
  transition: transform 200ms ease;
}

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

/* 16. 头部 ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  color: var(--linen);
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    rgba(14, 34, 66, 0.80) 0%,
    rgba(14, 34, 66, 0.28) 62%,
    rgba(14, 34, 66, 0) 100%
  );
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease;
}

.site-header.is-stuck {
  background-color: var(--indigo-deep);
  background-image: none;
  border-bottom-color: rgba(216, 161, 63, 0.34);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 17px var(--gutter);
  transition: padding 240ms ease;
}

.site-header.is-stuck .header-inner { padding-block: 10px; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 243, 232, 0.5);
  color: var(--sand-gold);
  font-family: var(--font-sans);
  font-size: var(--fs-18);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: border-color 240ms ease;
}

.site-header.is-stuck .brand-mark { border-color: rgba(216, 161, 63, 0.7); }

.brand-text { display: flex; flex-direction: column; gap: 2px; }

.brand-name {
  font-size: var(--fs-18);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--linen);
}

.brand-tagline {
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: rgba(248, 243, 232, 0.68);
}

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

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

.nav-item { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: var(--fs-16);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: rgba(248, 243, 232, 0.86);
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--sand-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.nav-link:hover { color: #FFFFFF; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--sand-gold); font-weight: 700; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { flex: none; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(248, 243, 232, 0.42);
  color: var(--linen);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

.nav-toggle-lines { display: grid; gap: 4px; width: 18px; }

.nav-toggle-lines span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-header[data-open] .nav-toggle-lines span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-lines span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-lines span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 抽屉遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(14, 34, 66, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.site-header[data-open] .nav-scrim { opacity: 1; visibility: visible; }

/* 17. 移动端底部快捷条 ------------------------------------------------------ */
.dock { display: none; }

/* 18. 页脚 ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 120px;
  background: var(--indigo-deep);
  color: rgba(248, 243, 232, 0.82);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2.1fr 1.3fr;
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 64px var(--gutter) 48px;
  border-top: 2px solid var(--sand-gold);
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }

.footer-brand-link {
  font-size: var(--fs-22);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--linen);
}

.footer-brand-link:hover { color: var(--sand-gold); }

.footer-brand-line {
  max-width: 16em;
  font-size: var(--fs-13);
  line-height: 1.7;
  color: rgba(248, 243, 232, 0.66);
}

.footer-update {
  max-width: 18em;
  padding-left: 12px;
  border-left: 2px solid var(--pomegranate);
  font-size: var(--fs-13);
  line-height: 1.7;
  color: rgba(216, 161, 63, 0.92);
}

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

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

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(248, 243, 232, 0.16);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: rgba(216, 161, 63, 0.92);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: var(--fs-16);
  line-height: 1.6;
  color: rgba(248, 243, 232, 0.82);
  transition: color 180ms ease;
}

.footer-links a:hover { color: var(--sand-gold); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--fs-13);
  line-height: 1.7;
  color: rgba(248, 243, 232, 0.74);
  word-break: break-word;
}

.footer-contact-key {
  display: inline-block;
  min-width: 46px;
  margin-right: 6px;
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(216, 161, 63, 0.85);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 20px var(--gutter) 26px;
  border-top: 1px solid rgba(248, 243, 232, 0.16);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: rgba(248, 243, 232, 0.58);
}

.footer-legal-copy { max-width: none; }
.footer-legal-icp { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 36px;
  z-index: 150;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--indigo-deep);
  color: var(--linen);
  border: 1px solid rgba(216, 161, 63, 0.5);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease;
}

.to-top[data-visible] { display: inline-flex; }
.to-top:hover { background: var(--sand-gold); color: var(--indigo-deep); border-color: var(--sand-gold); }

.to-top-mark {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

/* 19. 平板 ------------------------------------------------------------------ */
@media (max-width: 1180px) {
  .site-nav { gap: 20px; }
  .nav-list { gap: 18px; }
  .nav-link { font-size: var(--fs-13); letter-spacing: 0.06em; }
  .brand-tagline { display: none; }
  .footer-inner { grid-template-columns: 1fr 1.6fr; gap: 40px; }
  .footer-contact { grid-column: 1 / -1; }
}

/* 20. 手机 / 平板：抽屉导航 + 底部快捷条 ------------------------------------ */
@media (max-width: 960px) {
  :root { --gutter: 20px; --header-h: 72px; --rhythm: 64px; }

  .header-inner { padding-block: 12px; gap: 16px; }
  .site-header.is-stuck .header-inner { padding-block: 10px; }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: min(320px, 86vw);
    margin-left: 0;
    padding: 88px 24px 32px;
    background: var(--indigo-deep);
    border-left: 1px solid rgba(216, 161, 63, 0.32);
    overflow-y: auto;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 260ms ease, visibility 260ms ease;
  }

  .site-header[data-open] .site-nav { transform: translateX(0); visibility: visible; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 24px;
  }

  .nav-item { border-bottom: 1px solid rgba(248, 243, 232, 0.14); }

  .nav-link {
    display: block;
    padding: 15px 0;
    font-size: var(--fs-18);
    letter-spacing: 0.04em;
  }

  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { padding-left: 12px; border-left: 2px solid var(--sand-gold); }

  .nav-cta { width: 100%; }

  .dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--indigo-deep);
    border-top: 1px solid rgba(216, 161, 63, 0.36);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .dock-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
  }

  .dock-item { margin: 0; }

  .dock-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    font-size: var(--fs-12);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    color: rgba(248, 243, 232, 0.72);
  }

  .dock-link[aria-current="page"] { color: var(--sand-gold); }

  .dock-mark {
    width: 7px;
    height: 7px;
    background: currentColor;
    transform: rotate(45deg);
    opacity: 0.85;
  }

  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }

  .to-top { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; }
  .to-top-text { display: none; }

  .grid,
  .grid--halves,
  .grid--thirds,
  .grid--quarters,
  .grid--7-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  .section { padding-block: var(--rhythm); }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px var(--gutter) 36px;
  }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-contact { grid-column: auto; }
  .footer-legal { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }

  .section-index { display: none; }

  h1 { font-size: var(--fs-36); }
  h2 { font-size: var(--fs-28); }
  h3 { font-size: var(--fs-22); }
}

/* 21. 小屏 ------------------------------------------------------------------ */
@media (max-width: 560px) {
  .grid,
  .grid--halves,
  .grid--thirds,
  .grid--quarters,
  .grid--7-5 { grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: 1fr; }

  .brand-tagline { display: none; }
  .brand-name { font-size: var(--fs-16); }
  .brand-mark { width: 36px; height: 36px; font-size: var(--fs-16); }

  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .nav-cta { width: 100%; }

  .data-table { font-size: var(--fs-13); }
}

/* 22. 动效降级 -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-js="on"] [data-reveal],
  [data-js="on"] [data-reveal]:not(.is-revealed) {
    opacity: 1 !important;
    transform: none !important;
  }

  .index-link::before { transition: none; }
}
