/* ==========================================================================
   尊龙服务 · 共享站点套件  /assets/site.css
   深墨蓝导轨 + 朱砂红指示 + 暖金刻度 + 青绿检索锚点
   ========================================================================== */

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

html,
body,
h1, h2, h3, h4, h5,
p, ul, ol, li,
figure, blockquote, dl, dd, figure { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

input { font: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink-900: #04101A;
  --ink-800: #081826;
  --ink-700: #0F2A40;
  --ink-600: #16374F;
  --cinnabar: #E04B3F;
  --cinnabar-soft: rgba(224, 75, 63, 0.14);
  --gold: #D8B36A;
  --teal: #21D4B4;
  --violet: #8A7DFF;
  --paper: #F2F5F7;
  --mist: #8FA3B5;
  --line: rgba(216, 179, 106, 0.30);
  --line-soft: rgba(143, 163, 181, 0.22);

  /* 结构 */
  --rail-w: 272px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pad: clamp(18px, 4vw, 40px);
  --measure: 70ch;

  /* 字体 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t-mid: 240ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(circle at 92% -8%, rgba(138, 125, 255, 0.16), transparent 46%),
    radial-gradient(circle at 6% 104%, rgba(33, 212, 180, 0.10), transparent 44%),
    linear-gradient(180deg, #0A1D2E 0%, var(--ink-800) 38%, #061420 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--paper);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; }

p { max-width: var(--measure); }

::selection {
  background: rgba(33, 212, 180, 0.32);
  color: #fff;
}

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

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: translateY(-180%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ---------- 5. 头部导轨 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 22px 16px 16px;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(224, 75, 63, 0.16), transparent 42%),
    linear-gradient(180deg, #0C2338 0%, var(--ink-800) 58%, var(--ink-900) 100%);
  background-color: var(--ink-800);
  border-right: 1px solid var(--line-soft);
  box-shadow: 18px 0 44px -34px rgba(0, 0, 0, 0.9);
}

/* 导轨右缘的暖金刻度线 */
.site-header::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  right: -1px;
  width: 1px;
  background-image: repeating-linear-gradient(
    180deg,
    var(--gold) 0 1px,
    transparent 1px 18px
  );
  opacity: 0.45;
  pointer-events: none;
}

.header__rail {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 163, 181, 0.4) transparent;
}

.header__rail::-webkit-scrollbar { width: 6px; }
.header__rail::-webkit-scrollbar-thumb {
  background: rgba(143, 163, 181, 0.35);
  border-radius: 999px;
}

.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(216, 179, 106, 0.55);
  background-image: linear-gradient(150deg, rgba(224, 75, 63, 0.26), rgba(33, 212, 180, 0.16));
  background-color: rgba(4, 16, 26, 0.6);
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(33, 212, 180, 0.85);
}

.brand__mark-line {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.brand__mark-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(224, 75, 63, 0.18);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  border-color: var(--teal);
  transform: translateY(-1px);
}

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

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--paper);
}

.brand__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--mist);
  white-space: nowrap;
}

.brand--footer .brand__name { font-size: 18px; }

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(4, 16, 26, 0.55);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cinnabar);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

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

/* ---------- 导轨面板 ---------- */
.rail__panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

/* ---------- 检索条 ---------- */
.searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 163, 181, 0.34);
  background: rgba(4, 16, 26, 0.62);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.searchbar:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(33, 212, 180, 0.18);
}

.searchbar__icon {
  position: relative;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.searchbar__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: rotate(45deg);
}

.searchbar__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.searchbar__input::placeholder { color: rgba(143, 163, 181, 0.85); }
.searchbar__input:focus { outline: none; }

.searchbar__hint {
  flex: 0 0 auto;
  padding-right: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist);
}

/* ---------- 检索结果 ---------- */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 216px;
  overflow-y: auto;
  padding-left: 9px;
  border-left: 2px solid var(--gold);
}

.search-results[hidden] { display: none; }

.search-results__link {
  display: block;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: #D6E3EC;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.search-results__link:hover,
.search-results__link:focus-visible {
  background: rgba(33, 212, 180, 0.14);
  color: #fff;
}

.search-results__empty {
  padding: 6px 11px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 导航 ---------- */
.rail__nav { flex: 0 0 auto; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 11px 14px 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #C9D8E3;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 2px;
  background: var(--cinnabar);
  transform: translateY(-50%);
  transition: height var(--t-mid) var(--ease);
}

.nav-link:hover {
  background: rgba(242, 245, 247, 0.07);
  color: var(--paper);
}

.nav-link[aria-current="page"] {
  background: var(--cinnabar-soft);
  color: #FFFFFF;
}

.nav-link[aria-current="page"]::before { height: 18px; }

/* ---------- 行动区 ---------- */
.rail__actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
  padding-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: center;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--cinnabar);
  color: #FFFFFF;
  box-shadow: 0 12px 26px -16px rgba(224, 75, 63, 0.95);
}

.btn--primary:hover { background: #EC584A; }

.btn--ghost {
  border-color: rgba(33, 212, 180, 0.55);
  background: rgba(33, 212, 180, 0.07);
  color: var(--teal);
  animation: capsule-breathe 3.6s ease-in-out infinite;
}

.btn--ghost:hover { background: rgba(33, 212, 180, 0.16); }

@keyframes capsule-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33, 212, 180, 0); }
  50% { box-shadow: 0 0 0 4px rgba(33, 212, 180, 0.12); }
}

/* ---------- 阅读进度 ---------- */
.header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(143, 163, 181, 0.16);
  overflow: hidden;
}

.header__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background-image: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 120ms linear;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  padding: clamp(36px, 5vw, 68px) var(--pad) 26px;
  background-image: linear-gradient(180deg, #061420 0%, var(--ink-900) 70%, #020A11 100%);
  border-top: 1px solid var(--line-soft);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background-image: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3vw, 44px);
  max-width: 1180px;
  margin-inline: auto;
}

.footer__brand { min-width: 0; }

.footer__tagline {
  margin-top: 16px;
  max-width: 24ch;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.8;
  color: #C4D3DE;
}

.footer__col { min-width: 0; }

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: var(--gold);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #C4D3DE;
  transition: color var(--t-fast) var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--cinnabar);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #C4D3DE;
}

.footer__meta-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #E2ECF3;
  word-break: break-all;
}

.copy-btn {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(33, 212, 180, 0.45);
  background: rgba(33, 212, 180, 0.08);
  color: var(--teal);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.copy-btn:hover {
  background: rgba(33, 212, 180, 0.18);
  border-color: var(--teal);
}

.footer__note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.75;
  color: var(--mist);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer__legal a { color: var(--mist); transition: color var(--t-fast) var(--ease); }
.footer__legal a:hover,
.footer__legal a:focus-visible { color: var(--teal); }

.footer__icp { color: var(--mist); }
.footer__year { color: var(--mist); }

/* ---------- 7. 通用页面组件 ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.page-shell {
  padding-top: clamp(24px, 4vw, 52px);
  padding-bottom: 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.breadcrumbs a { color: var(--mist); transition: color var(--t-fast) var(--ease); }
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--teal); }

.breadcrumbs__sep { color: rgba(216, 179, 106, 0.7); }

.eyebrow {
  display: block;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.5;
  color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(138, 125, 255, 0.5);
  background: rgba(138, 125, 255, 0.12);
  color: #C6BDFF;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.card {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background-image: linear-gradient(160deg, rgba(15, 42, 64, 0.92), rgba(8, 24, 38, 0.94));
  background-color: var(--ink-700);
  box-shadow: 0 22px 44px -38px rgba(0, 0, 0, 0.95);
}

.frame {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.2vw, 38px) clamp(20px, 3vw, 36px) clamp(22px, 3.2vw, 38px) clamp(28px, 3.6vw, 46px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background-image: linear-gradient(155deg, rgba(16, 44, 66, 0.9), rgba(4, 16, 26, 0.94));
  background-color: var(--ink-700);
}

.frame::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 12px;
  width: 6px;
  background-image: repeating-linear-gradient(180deg, var(--gold) 0 1px, transparent 1px 15px);
  opacity: 0.5;
  pointer-events: none;
}

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: 1fr;
}

.prose p { margin-bottom: 1.1em; color: #DCE7EF; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.5em 0 0.4em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.1em; }
.prose li {
  position: relative;
  margin-bottom: 0.5em;
  color: #DCE7EF;
}
.prose li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(33, 212, 180, 0.45);
}
.prose a:hover { text-decoration-color: var(--teal); }
.prose strong { color: var(--paper); }

/* ---------- 8. 可复用图片容器 ---------- */
.media-frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 14px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background-color: var(--ink-700);
  background-image:
    radial-gradient(circle at 26% 18%, rgba(33, 212, 180, 0.18), transparent 54%),
    radial-gradient(circle at 82% 84%, rgba(138, 125, 255, 0.2), transparent 56%),
    linear-gradient(140deg, rgba(15, 42, 64, 0.95), rgba(4, 16, 26, 0.95));
}

.media-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border: 1px solid rgba(216, 179, 106, 0.28);
  border-radius: calc(var(--radius-md) - 6px);
  pointer-events: none;
}

.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__label {
  position: relative;
  z-index: 1;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(4, 16, 26, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(242, 245, 247, 0.8);
}

/* ---------- 9. 桌面：为固定导轨留白 + 非对称栅格 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .nav-toggle { display: none; }

  .grid--split { grid-template-columns: 1.6fr 0.9fr; align-items: start; }
  .grid--thirds { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 10. 平板 ---------- */
@media (min-width: 720px) and (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .grid--split { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.25fr; }
}

/* ---------- 11. 移动：顶部胶囊抽屉 ---------- */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    bottom: auto;
    width: auto;
    padding: 12px 16px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    background-color: rgba(8, 24, 38, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 34px -30px rgba(0, 0, 0, 0.95);
  }

  .site-header::after {
    top: auto;
    bottom: -1px;
    left: 16px;
    right: 16px;
    width: auto;
    height: 1px;
    background-image: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 16px);
    opacity: 0.35;
  }

  .header__rail {
    gap: 0;
    max-height: none;
    overflow: visible;
  }

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

  .rail__panel {
    display: none;
    flex: 0 0 auto;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
  }

  .site-header[data-open] .rail__panel {
    display: flex;
    max-height: calc(100vh - 118px);
    overflow-y: auto;
    animation: rail-drop var(--t-mid) var(--ease) both;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-link {
    padding: 8px 14px 8px 18px;
    font-size: 13.5px;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-color: rgba(224, 75, 63, 0.45);
  }

  .rail__actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 0;
  }

  .rail__actions .btn { flex: 1 1 46%; }

  .header__progress { height: 2px; }

  .site-footer { margin-top: 56px; }
}

@keyframes rail-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 12. 小屏微调 ---------- */
@media (max-width: 420px) {
  body { font-size: 15.5px; }
  .brand__sub { font-size: 10.5px; letter-spacing: 0.1em; }
  .rail__actions .btn { flex: 1 1 100%; }
  .footer__bottom { font-size: 11.5px; }
}

/* ---------- 13. 减少动效 ---------- */
@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;
  }

  .btn--ghost { animation: none; }
  .header__progress-bar { transition: none; }
  .site-header[data-open] .rail__panel { animation: none; }
}
