/* ==========================================================
   神话方方 · 共享站点样式  /assets/site.css
   ========================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --deep-indigo: #0A0F2A;
  --night-blue: #111A44;
  --violet-indigo: #241F4D;
  --jade: #2E6E64;
  --gold: #D8B25C;
  --gold-light: #F0D79A;
  --cinnabar: #D9563F;
  --moon: #F4F1E8;
  --mist: #A7ADC6;
  --paper-gold: #E8DFC8;
  --ink: #1A1A1A;

  --line-soft: rgba(216, 178, 92, 0.22);
  --line-strong: rgba(216, 178, 92, 0.5);
  --line-cool: rgba(167, 173, 198, 0.18);

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

  --shell-max: 1280px;
  --shell-pad: clamp(18px, 4vw, 48px);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.42);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.55);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --section-gap: clamp(64px, 10vw, 140px);
}

/* ---------- 2. Reset 与基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--deep-indigo);
  background-image:
    radial-gradient(70rem 44rem at 10% -10%, rgba(36, 31, 77, 0.9), transparent 62%),
    radial-gradient(52rem 36rem at 102% 2%, rgba(46, 110, 100, 0.22), transparent 60%);
  background-repeat: no-repeat;
  color: var(--moon);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

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

a { color: var(--gold-light); text-underline-offset: 3px; }

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

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

button { font: inherit; color: inherit; }

hr { border: 0; }

#main-content {
  display: block;
  scroll-margin-top: 128px;
}
#main-content:focus { outline: none; }

/* ---------- 3. 焦点可见性 ---------- */
:where(a, button, [tabindex], summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 4. 布局基座 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

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

.section__head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section__index {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(216, 178, 92, 0.18);
  -webkit-text-stroke: 1px rgba(216, 178, 92, 0.62);
  margin: 0;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--moon);
  margin: 0;
}

.section__note {
  font-size: 14px;
  color: var(--mist);
  max-width: 56ch;
  margin: 0;
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--4-8 { grid-template-columns: 4fr 8fr; }
.grid--3-9 { grid-template-columns: 3fr 9fr; }

.rule {
  height: 1.5px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(216, 178, 92, 0.18) 52%, transparent 100%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 编辑部文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), rgba(216, 178, 92, 0));
}

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.75;
  color: rgba(244, 241, 232, 0.88);
  max-width: 46ch;
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(216, 178, 92, 0.4);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  line-height: 1.6;
}
.tag--jade { border-color: rgba(46, 110, 100, 0.62); color: #8FD3C6; }
.tag--cinnabar { border-color: rgba(217, 86, 63, 0.58); color: #F2A493; }

/* ---------- 6. 正文排版 ---------- */
.prose {
  font-size: 17px;
  line-height: 1.9;
  color: var(--moon);
  max-width: 70ch;
}
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 300;
  margin: 2.2em 0 0.7em;
  color: var(--moon);
}
.prose h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 1.9em 0 0.5em;
  color: var(--gold-light);
}
.prose a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.prose strong { color: var(--gold-light); font-weight: 600; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  color: rgba(244, 241, 232, 0.82);
  font-family: var(--font-display);
  font-weight: 300;
}
.prose ul,
.prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose ol {
  list-style: none;
  counter-reset: prose-step;
  padding-left: 0;
}
.prose ol > li {
  counter-increment: prose-step;
  position: relative;
  padding-left: 2.8em;
  margin-bottom: 0.8em;
}
.prose ol > li::before {
  content: counter(prose-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.28em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: #16110A;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(216, 178, 92, 0.2);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(216, 178, 92, 0.3);
}

.btn--ghost {
  border-color: rgba(216, 178, 92, 0.44);
  color: var(--gold-light);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(216, 178, 92, 0.12);
  color: var(--moon);
}

.btn--quiet {
  border-color: var(--line-cool);
  color: var(--mist);
  background: rgba(17, 26, 68, 0.6);
  min-height: 36px;
  font-size: 13px;
}
.btn--quiet:hover {
  border-color: var(--line-strong);
  color: var(--moon);
}

/* ---------- 8. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -260%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #16110A;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: 3px;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(216, 178, 92, 0.1);
  z-index: 120;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--jade) 0%, var(--gold) 58%, var(--cinnabar) 100%);
}

.utility-bar {
  background: #070B1F;
  border-bottom: 1px solid rgba(216, 178, 92, 0.16);
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  min-height: 30px;
  padding-block: 4px;
}
.utility-bar__meta,
.utility-bar__icp { margin: 0; }
.utility-bar__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.utility-bar__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(46, 110, 100, 0.22);
}
.utility-bar__icp {
  font-family: var(--font-mono);
  color: rgba(167, 173, 198, 0.78);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: 14px;
  padding-bottom: 10px;
  transition: padding 0.24s var(--ease);
}
.masthead::before {
  content: "";
  position: absolute;
  inset: -12px -24px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 15, 42, 0.94) 0%, rgba(10, 15, 42, 0.7) 55%, rgba(10, 15, 42, 0) 100%);
}
.site-header[data-scrolled="true"] .masthead {
  padding-top: 8px;
  padding-bottom: 6px;
}

.nav-capsule {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  padding: 8px 10px 8px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(216, 178, 92, 0.3);
  background: rgba(17, 26, 68, 0.82);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(244, 241, 232, 0.06);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition:
    background-color 0.24s var(--ease),
    border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    padding 0.24s var(--ease);
}
.site-header[data-scrolled="true"] .nav-capsule {
  padding-block: 5px;
  background: rgba(10, 15, 42, 0.96);
  border-color: rgba(216, 178, 92, 0.46);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
}

.nav-capsule__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--moon);
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(216, 178, 92, 0.26), rgba(46, 110, 100, 0.2));
  box-shadow: inset 0 0 12px rgba(216, 178, 92, 0.22);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-light);
}
.brand-seal--footer {
  width: 38px;
  height: 38px;
  font-size: 19px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--gold);
  border: 1px solid rgba(216, 178, 92, 0.5);
  border-radius: 4px;
  padding: 3px 5px;
  white-space: nowrap;
}

.nav-capsule__menu {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.nav-link:hover {
  color: var(--moon);
  background: rgba(216, 178, 92, 0.14);
}
.nav-link[aria-current="page"] {
  background: var(--gold);
  color: #16110A;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(216, 178, 92, 0.28);
}

.nav-capsule__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(216, 178, 92, 0.44);
  background: transparent;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--moon);
}
.nav-toggle__label { line-height: 1; }
.nav-toggle__bars {
  display: grid;
  gap: 3px;
}
.nav-toggle__bars span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--section-gap);
  border-top: 1.5px solid rgba(216, 178, 92, 0.3);
  background-color: var(--deep-indigo);
  background-image:
    radial-gradient(70% 60% at 12% 0%, rgba(36, 31, 77, 0.92), transparent 62%),
    radial-gradient(60% 55% at 92% 8%, rgba(46, 110, 100, 0.26), transparent 65%);
  background-repeat: no-repeat;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(rgba(244, 241, 232, 0.06) 1px, transparent 1px);
  background-size: 5px 5px;
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px);
}

.site-footer__brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--moon);
}
.footer-brand__word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.16em;
  line-height: 1;
}
.footer-brand__line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.footer-brand__note {
  margin: 0;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
  align-content: start;
}

.footer-col {
  display: grid;
  gap: 12px;
  align-content: start;
}
.footer-col__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.5;
  color: var(--gold);
}
.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-col__list li { margin: 0; }

.footer-link {
  display: inline-block;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-link:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.site-footer__contact {
  display: grid;
  gap: 12px;
  align-content: start;
}
.footer-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.footer-contact__item {
  display: grid;
  gap: 2px;
  margin: 0;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(167, 173, 198, 0.75);
}
.footer-contact__value {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--moon);
  word-break: break-word;
}

.site-footer__legal {
  position: relative;
  border-top: 1px solid var(--line-cool);
  background: rgba(7, 11, 31, 0.6);
}
.site-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 18px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.site-footer__legal-inner p { margin: 0; }
.site-footer__icp { color: rgba(167, 173, 198, 0.85); }
.site-footer__hours { color: rgba(167, 173, 198, 0.7); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumbs { padding-block: 22px 0; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.breadcrumbs__item::after {
  content: "/";
  color: rgba(167, 173, 198, 0.45);
}
.breadcrumbs__item:last-child::after { content: none; }
.breadcrumbs__link {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.breadcrumbs__link:hover { color: var(--gold-light); }
.breadcrumbs__current { color: var(--moon); }

/* ---------- 12. 图片容器 ---------- */
.figure-frame {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1.5px solid rgba(216, 178, 92, 0.26);
  border-radius: var(--radius-md);
  background-color: var(--night-blue);
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(46, 110, 100, 0.34), transparent 62%),
    radial-gradient(100% 80% at 92% 100%, rgba(217, 86, 63, 0.2), transparent 66%),
    linear-gradient(165deg, #16204F 0%, var(--deep-indigo) 78%);
  box-shadow: var(--shadow-deep);
}
.figure-frame > img,
.figure-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(244, 241, 232, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
}
.figure-frame--tall { aspect-ratio: 3 / 4.4; }
.figure-frame--wide { aspect-ratio: 16 / 9; }
.figure-frame--square { aspect-ratio: 1 / 1; }

.figure-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 13. 法务浅底 ---------- */
.paper-surface {
  background: var(--paper-gold);
  color: var(--ink);
  border: 1.5px solid rgba(216, 178, 92, 0.6);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-deep);
}
.paper-surface h2,
.paper-surface h3 { color: var(--deep-indigo); }
.paper-surface a { color: #8A5E12; }
.paper-surface .prose { color: #232323; max-width: none; }
.paper-surface .prose ol > li::before { color: #A8402C; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1200px) {
  .nav-capsule { gap: 8px; }
  .nav-link { padding-inline: 10px; font-size: 13.5px; }
  .btn { padding-inline: 15px; }
}

@media (max-width: 1080px) {
  .masthead { padding-top: 10px; }
  .nav-capsule { position: relative; gap: 10px; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .nav-capsule__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex: none;
    display: none;
    justify-content: flex-start;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--line-strong);
    background: rgba(10, 15, 42, 0.97);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    max-height: 72vh;
    overflow-y: auto;
  }
  .nav-capsule__menu[data-open="true"] { display: block; }

  .nav-list {
    counter-reset: nav-step;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }
  .nav-list__item {
    counter-increment: nav-step;
    width: 100%;
  }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    white-space: normal;
  }
  .nav-link::before {
    content: counter(nav-step, decimal-leading-zero);
    margin-right: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--jade);
  }
  .nav-link[aria-current="page"]::before { color: rgba(22, 17, 10, 0.62); }

  .nav-capsule__actions .btn--ghost { display: none; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }

  .grid--5-7,
  .grid--4-8,
  .grid--3-9 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.85; }
  .utility-bar { font-size: 11px; }
  .utility-bar__inner { justify-content: center; text-align: center; }
  .brand-word { font-size: 17px; letter-spacing: 0.1em; }
  .brand-seal { width: 30px; height: 30px; font-size: 16px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .site-footer__legal-inner { justify-content: flex-start; }
  .paper-surface { border-radius: var(--radius-md); }
}

@media (max-width: 460px) {
  .nav-capsule { padding: 6px 8px 6px 10px; gap: 6px; }
  .nav-toggle { padding: 0 10px; min-height: 36px; }
  .nav-toggle__label { display: none; }
  .brand-version { font-size: 9.5px; padding: 2px 4px; }
  .nav-capsule__actions .btn { min-height: 34px; padding-inline: 11px; font-size: 12px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 18px; }
  .section__index { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* ---------- 15. 减少动效 ---------- */
@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;
  }
  .nav-toggle__bars span { transition: none; }
  .footer-link:hover { transform: none; }
  .btn:hover { transform: none; }
}
