/* ==========================================================================
   皇家8828 · 共享站点样式 /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, h6,
p, ul, ol, figure, blockquote, dl, dd, hr { margin: 0; }

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

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

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

button { background: none; border: 0; }

table { border-collapse: collapse; }

hr { border: 0; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --rh-purple: #2A1B4A;
  --rh-night: #17102B;
  --rh-gold: #C8A24A;
  --rh-gold-lt: #F0D48A;
  --rh-jade: #2F8F82;
  --rh-vermilion: #C4453A;
  --rh-cream: #F5EDE0;
  --rh-paper: #FFFCF6;
  --rh-line: #DED2C0;
  --rh-ink: #1D1720;
  --rh-glass: rgba(255, 255, 255, 0.12);

  --rh-rail: 88px;
  --rh-rail-open: 236px;
  --rh-topbar-h: 64px;

  --rh-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rh-shadow: 0 22px 48px -30px rgba(42, 27, 74, 0.55);

  --rh-sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rh-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
    Georgia, "Times New Roman", serif;
  --rh-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--rh-sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--rh-ink);
  background-color: var(--rh-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: var(--rh-rail);
  padding-top: var(--rh-topbar-h);
  min-height: 100vh;
}

p { margin-bottom: 1.2em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rh-serif);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--rh-ink);
}

a {
  color: #1F6E63;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

strong { font-weight: 700; }

code, kbd, samp, pre { font-family: var(--rh-mono); }

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--rh-gold-lt);
  outline-offset: 3px;
  border-radius: 3px;
}

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

/* ---------- 5. 容器与网格 ---------- */
.rh-container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.rh-section { padding-block: clamp(48px, 7vw, 96px); }

.rh-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }

.rh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rh-stack > * + * { margin-top: clamp(14px, 1.6vw, 22px); }

.rh-divider {
  height: 1px;
  border: 0;
  background: var(--rh-line);
  margin-block: clamp(24px, 3vw, 40px);
}

.rh-list { list-style: none; }
.rh-list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.6em;
}
.rh-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--rh-gold);
  transform: rotate(45deg);
}

/* ---------- 6. 标题与导语 ---------- */
.rh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rh-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rh-purple);
  margin-bottom: 14px;
}

.rh-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--rh-gold);
}

.rh-h1 { font-size: clamp(32px, 5.2vw, 64px); margin-bottom: 0.4em; }
.rh-h2 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 0.5em; }
.rh-h3 { font-size: clamp(19px, 2.1vw, 26px); margin-bottom: 0.5em; }

.rh-lead {
  font-size: clamp(16.5px, 1.3vw, 19px);
  line-height: 1.8;
  color: rgba(29, 23, 32, 0.78);
  max-width: 42em;
}

/* ---------- 7. 按钮 ---------- */
.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--rh-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s var(--rh-ease), box-shadow 0.22s var(--rh-ease),
    border-color 0.22s var(--rh-ease), background-color 0.22s var(--rh-ease),
    color 0.22s var(--rh-ease);
}

.rh-btn:hover { text-decoration: none; }

.rh-btn--gold {
  background: linear-gradient(135deg, #F0D48A 0%, #C8A24A 100%);
  color: #20143A;
  box-shadow: 0 10px 24px -14px rgba(240, 212, 138, 0.95);
}

.rh-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgba(240, 212, 138, 1);
}

.rh-btn--ghost {
  border-color: rgba(200, 162, 74, 0.6);
  color: var(--rh-gold-lt);
  background: transparent;
}

.rh-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--rh-gold-lt);
  background: rgba(200, 162, 74, 0.12);
}

.rh-btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }

/* ---------- 8. 顶部条 ---------- */
.rh-header { position: relative; z-index: 60; }

.rh-skip {
  position: fixed;
  top: 8px;
  left: calc(var(--rh-rail) + 14px);
  z-index: 130;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--rh-gold-lt);
  color: var(--rh-night);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--rh-shadow);
  transform: translateY(-180%);
  transition: transform 0.2s var(--rh-ease);
}

.rh-skip:focus { transform: translateY(0); text-decoration: none; }

.rh-topbar {
  position: fixed;
  top: 0;
  left: var(--rh-rail);
  right: 0;
  height: var(--rh-topbar-h);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: 0 clamp(16px, 3vw, 40px);
  background: linear-gradient(90deg, rgba(42, 27, 74, 0.95) 0%, rgba(23, 16, 43, 0.92) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200, 162, 74, 0.32);
  color: var(--rh-cream);
}

.rh-topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* 品牌 */
.rh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--rh-cream);
  text-decoration: none;
}

.rh-brand:hover { text-decoration: none; }

.rh-brand__mark {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 36px;
  padding: 0 9px;
  font-family: var(--rh-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #20143A;
  background: linear-gradient(135deg, #F0D48A 0%, #C8A24A 100%);
  border-radius: 5px 14px 5px 14px;
  box-shadow: 0 10px 22px -14px rgba(240, 212, 138, 0.95);
}

.rh-brand__text { display: flex; flex-direction: column; min-width: 0; }

.rh-brand__name {
  font-family: var(--rh-serif);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.rh-brand__sub {
  margin-top: 3px;
  font-family: var(--rh-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(245, 237, 224, 0.55);
}

/* 状态胶囊 */
.rh-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid rgba(47, 143, 130, 0.5);
  border-radius: 999px;
  background: rgba(47, 143, 130, 0.14);
  font-family: var(--rh-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #9FD8CE;
  white-space: nowrap;
}

.rh-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rh-jade);
  animation: rh-pulse 2.4s ease-in-out infinite;
}

@keyframes rh-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 143, 130, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(47, 143, 130, 0); }
}

/* 滚动进度 */
.rh-progress {
  position: fixed;
  top: var(--rh-topbar-h);
  left: var(--rh-rail);
  right: 0;
  height: 3px;
  z-index: 69;
  pointer-events: none;
}

.rh-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #C8A24A 0%, #F0D48A 45%, #2F8F82 100%);
  transition: width 0.12s linear;
}

/* ---------- 9. 框架导航轨 ---------- */
.rh-frame {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rh-rail);
  z-index: 65;
  background: linear-gradient(180deg, #2A1B4A 0%, #17102B 100%);
  border-right: 1px solid rgba(200, 162, 74, 0.34);
  overflow: hidden;
  transition: width 0.28s var(--rh-ease), box-shadow 0.28s var(--rh-ease);
}

.rh-frame:hover,
.rh-frame:focus-within {
  width: var(--rh-rail-open);
  box-shadow: 26px 0 60px -34px rgba(23, 16, 43, 0.9);
}

.rh-frame__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 0 22px;
}

.rh-frame__caption {
  margin: 0 0 12px;
  padding: 0 22px;
  font-family: var(--rh-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(240, 212, 138, 0.6);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s var(--rh-ease);
}

.rh-frame:hover .rh-frame__caption,
.rh-frame:focus-within .rh-frame__caption { opacity: 1; }

.rh-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rh-nav__item { min-width: 0; }

.rh-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding-left: 26px;
  border-left: 3px solid transparent;
  color: rgba(245, 237, 224, 0.78);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.22s var(--rh-ease), background-color 0.22s var(--rh-ease),
    border-color 0.22s var(--rh-ease);
}

.rh-nav__link:hover,
.rh-nav__link:focus-visible {
  color: var(--rh-gold-lt);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.rh-nav__link[aria-current="page"] {
  color: var(--rh-gold-lt);
  border-left-color: var(--rh-gold);
  background: linear-gradient(90deg, rgba(200, 162, 74, 0.2), transparent 80%);
}

.rh-nav__index {
  flex: 0 0 auto;
  font-family: var(--rh-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(200, 162, 74, 0.75);
}

.rh-nav__link[aria-current="page"] .rh-nav__index { color: var(--rh-gold-lt); }

.rh-nav__label {
  font-family: var(--rh-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s var(--rh-ease), transform 0.22s var(--rh-ease);
}

.rh-frame:hover .rh-nav__label,
.rh-frame:focus-within .rh-nav__label {
  opacity: 1;
  transform: none;
}

.rh-frame__foot {
  margin: auto 0 0;
  padding: 0 22px;
  font-family: var(--rh-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(245, 237, 224, 0.42);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s var(--rh-ease);
}

.rh-frame:hover .rh-frame__foot,
.rh-frame:focus-within .rh-frame__foot { opacity: 1; }

/* 移动导航按钮 */
.rh-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(200, 162, 74, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--rh-gold-lt);
  font-family: var(--rh-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--rh-ease), border-color 0.2s var(--rh-ease);
}

.rh-nav-toggle:hover { background: rgba(200, 162, 74, 0.16); }

.rh-nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.rh-nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--rh-ease), opacity 0.22s var(--rh-ease);
}

.rh-nav-toggle[aria-expanded="true"] .rh-nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.rh-nav-toggle[aria-expanded="true"] .rh-nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}
.rh-nav-toggle[aria-expanded="true"] .rh-nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 移动遮罩 */
.rh-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 62;
  background: rgba(23, 16, 43, 0.58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.rh-nav-backdrop[hidden] { display: none; }

/* ---------- 10. 右下角悬浮入口 ---------- */
.rh-index-dock {
  position: fixed;
  right: clamp(14px, 2.5vw, 32px);
  bottom: clamp(14px, 2.5vw, 32px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 78px;
  padding: 13px 8px;
  border-radius: 16px;
  border: 1px solid rgba(200, 162, 74, 0.5);
  background: rgba(42, 27, 74, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--rh-gold-lt);
  text-decoration: none;
  box-shadow: 0 20px 40px -22px rgba(23, 16, 43, 0.95);
  transition: transform 0.22s var(--rh-ease), border-color 0.22s var(--rh-ease);
}

.rh-index-dock:hover {
  transform: translateY(-4px);
  border-color: var(--rh-gold-lt);
  text-decoration: none;
}

.rh-index-dock__k {
  font-family: var(--rh-serif);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--rh-cream);
}

.rh-index-dock__v {
  font-family: var(--rh-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(240, 212, 138, 0.75);
}

/* 返回顶部 */
.rh-top-link {
  position: fixed;
  right: clamp(14px, 2.5vw, 32px);
  bottom: calc(clamp(14px, 2.5vw, 32px) + 78px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(200, 162, 74, 0.4);
  background: rgba(42, 27, 74, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--rh-gold-lt);
  font-size: 17px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--rh-ease), transform 0.24s var(--rh-ease),
    visibility 0.24s var(--rh-ease), border-color 0.22s var(--rh-ease);
}

.rh-top-link.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.rh-top-link:hover { border-color: var(--rh-gold-lt); }

/* ---------- 11. 页脚 ---------- */
.rh-footer {
  position: relative;
  overflow: hidden;
  background: var(--rh-night);
  color: rgba(245, 237, 224, 0.82);
  border-top: 1px solid rgba(200, 162, 74, 0.34);
}

.rh-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(200, 162, 74, 0.07) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(47, 143, 130, 0.07) 0 1px, transparent 1px 58px),
    radial-gradient(90% 70% at 8% 0%, rgba(200, 162, 74, 0.16), transparent 62%),
    radial-gradient(80% 60% at 96% 8%, rgba(47, 143, 130, 0.16), transparent 66%);
}

.rh-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 84px) clamp(20px, 4vw, 56px) 26px;
}

.rh-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
}

.rh-footer__brand { min-width: 0; }

.rh-footer__lockup {
  position: relative;
  margin-bottom: 16px;
  padding-left: 18px;
  font-family: var(--rh-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--rh-cream);
}

.rh-footer__lockup::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #F0D48A 0%, #C8A24A 100%);
}

.rh-footer__text {
  max-width: 34em;
  margin-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(245, 237, 224, 0.68);
}

.rh-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.rh-footer__meta li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 12px;
  border-left: 1px solid rgba(200, 162, 74, 0.35);
}

.rh-k {
  font-family: var(--rh-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(245, 237, 224, 0.5);
}

.rh-v {
  font-family: var(--rh-mono);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--rh-gold-lt);
}

.rh-footer__col { min-width: 0; }

.rh-footer__title {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200, 162, 74, 0.24);
  font-family: var(--rh-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--rh-gold);
}

.rh-footer__links li + li { margin-top: 10px; }

.rh-footer__links a {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  color: rgba(245, 237, 224, 0.76);
  text-decoration: none;
  transition: color 0.2s var(--rh-ease), padding-left 0.2s var(--rh-ease);
}

.rh-footer__links a:hover {
  padding-left: 10px;
  color: var(--rh-gold-lt);
  text-decoration: none;
}

.rh-footer__links a:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: var(--rh-gold);
  transform: rotate(45deg);
}

.rh-footer__contact { min-width: 0; }

.rh-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rh-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(200, 162, 74, 0.2);
}

.rh-contact-row .rh-k { flex: 0 0 auto; min-width: 34px; }

.rh-contact-row .rh-v {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: rgba(245, 237, 224, 0.9);
  word-break: break-word;
}

.rh-contact-row--wide {
  align-items: flex-start;
  border-bottom: 0;
  padding-bottom: 0;
}

.rh-contact-row--wide .rh-v {
  font-family: var(--rh-sans);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 237, 224, 0.68);
}

.rh-copy {
  flex: 0 0 auto;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(200, 162, 74, 0.45);
  background: transparent;
  color: var(--rh-gold-lt);
  font-family: var(--rh-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s var(--rh-ease), border-color 0.2s var(--rh-ease),
    color 0.2s var(--rh-ease);
}

.rh-copy:hover { background: rgba(200, 162, 74, 0.16); }

.rh-copy.is-done {
  border-color: var(--rh-jade);
  background: rgba(47, 143, 130, 0.18);
  color: #9FD8CE;
}

.rh-footer__note {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 16px 20px;
  border-left: 3px solid var(--rh-gold);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(245, 237, 224, 0.66);
}

.rh-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(200, 162, 74, 0.22);
  font-family: var(--rh-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(245, 237, 224, 0.5);
}

.rh-footer__legal p { margin: 0; }

/* ---------- 12. 基础组件 ---------- */
/* 卡片 */
.rh-card {
  position: relative;
  display: block;
  padding: 24px 26px;
  border: 1px solid var(--rh-line);
  border-radius: 16px;
  background: var(--rh-paper);
  color: var(--rh-ink);
  text-decoration: none;
  transition: transform 0.22s var(--rh-ease), border-color 0.22s var(--rh-ease),
    box-shadow 0.22s var(--rh-ease);
}

.rh-card:hover {
  transform: translateY(-6px);
  border-color: var(--rh-gold);
  box-shadow: var(--rh-shadow);
  text-decoration: none;
}

.rh-card--glass {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: rgba(200, 162, 74, 0.4);
  color: var(--rh-cream);
}

.rh-card--glass:hover { border-color: var(--rh-gold-lt); }

.rh-card__title {
  margin-bottom: 8px;
  font-family: var(--rh-serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.rh-card__meta {
  font-family: var(--rh-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(29, 23, 32, 0.55);
}

.rh-card--glass .rh-card__meta { color: rgba(245, 237, 224, 0.7); }

/* 标签 */
.rh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--rh-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.rh-tag--jade { color: #1F6E63; background: rgba(47, 143, 130, 0.12); }
.rh-tag--vermilion { color: #A8382F; background: rgba(196, 69, 58, 0.12); }
.rh-tag--gold { color: #7E6220; background: rgba(200, 162, 74, 0.16); }

/* 深色分区 */
.rh-dark {
  background: var(--rh-night);
  color: rgba(245, 237, 224, 0.86);
}

.rh-dark h1, .rh-dark h2, .rh-dark h3, .rh-dark h4 { color: var(--rh-cream); }
.rh-dark .rh-lead { color: rgba(245, 237, 224, 0.74); }
.rh-dark .rh-eyebrow { color: var(--rh-gold-lt); }
.rh-dark p { color: rgba(245, 237, 224, 0.78); }
.rh-dark a { color: var(--rh-gold-lt); }

.rh-dark .rh-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 162, 74, 0.3);
  color: rgba(245, 237, 224, 0.86);
}

.rh-dark .rh-card__meta { color: rgba(245, 237, 224, 0.6); }
.rh-dark .rh-divider { background: rgba(200, 162, 74, 0.28); }
.rh-dark .rh-tag--jade { color: #9FD8CE; background: rgba(47, 143, 130, 0.2); }
.rh-dark .rh-tag--vermilion { color: #F0A79E; background: rgba(196, 69, 58, 0.22); }
.rh-dark .rh-tag--gold { color: var(--rh-gold-lt); background: rgba(200, 162, 74, 0.2); }

/* 面包屑 */
.rh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--rh-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(29, 23, 32, 0.55);
}

.rh-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rh-breadcrumb__item + .rh-breadcrumb__item::before {
  content: "/";
  color: var(--rh-gold);
}

.rh-breadcrumb a:hover { color: var(--rh-purple); }

.rh-dark .rh-breadcrumb { color: rgba(245, 237, 224, 0.6); }
.rh-dark .rh-breadcrumb a { color: rgba(245, 237, 224, 0.8); }

/* 媒体容器 */
.rh-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rh-line);
  border-radius: 16px;
  background-color: #EFE6D6;
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 27, 74, 0.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(42, 27, 74, 0.05) 0 1px, transparent 1px 44px),
    linear-gradient(140deg, rgba(42, 27, 74, 0.12), rgba(47, 143, 130, 0.12));
}

.rh-media > img,
.rh-media > picture,
.rh-media > picture > img,
.rh-media > svg,
.rh-media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.rh-media--framed {
  border-color: rgba(200, 162, 74, 0.45);
  box-shadow: 0 26px 50px -32px rgba(42, 27, 74, 0.65);
}

.rh-media__caption {
  padding: 10px 16px;
  border-top: 1px dashed var(--rh-line);
  font-family: var(--rh-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(29, 23, 32, 0.6);
}

.rh-dark .rh-media {
  border-color: rgba(200, 162, 74, 0.3);
  background-color: rgba(255, 255, 255, 0.04);
  background-image:
    repeating-linear-gradient(90deg, rgba(200, 162, 74, 0.09) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(47, 143, 130, 0.09) 0 1px, transparent 1px 44px);
}

.rh-dark .rh-media__caption {
  border-top-color: rgba(200, 162, 74, 0.24);
  color: rgba(245, 237, 224, 0.6);
}

/* 折叠块 */
.rh-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rh-accordion__item {
  overflow: hidden;
  border: 1px solid var(--rh-line);
  border-radius: 14px;
  background: var(--rh-paper);
  transition: border-color 0.22s var(--rh-ease);
}

.rh-accordion__item.is-open { border-color: var(--rh-gold); }

.rh-accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  font-family: var(--rh-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--rh-ink);
  text-align: left;
  cursor: pointer;
}

.rh-accordion__btn::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--rh-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--rh-gold);
  transition: transform 0.22s var(--rh-ease);
}

.rh-accordion__item.is-open .rh-accordion__btn::after { transform: rotate(45deg); }

.rh-accordion__panel {
  padding: 0 22px 20px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(29, 23, 32, 0.82);
}

.rh-accordion__panel[hidden] { display: none; }

.rh-dark .rh-accordion__item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(200, 162, 74, 0.28);
}
.rh-dark .rh-accordion__btn { color: var(--rh-cream); }
.rh-dark .rh-accordion__panel { color: rgba(245, 237, 224, 0.76); }

/* 锚点条 */
.rh-anchor-bar {
  position: sticky;
  top: calc(var(--rh-topbar-h) + 6px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(200, 162, 74, 0.35);
  border-radius: 12px;
  background: rgba(42, 27, 74, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rh-anchor-bar__link {
  padding: 7px 14px;
  border-radius: 8px;
  font-family: var(--rh-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: rgba(245, 237, 224, 0.75);
  text-decoration: none;
  transition: background-color 0.2s var(--rh-ease), color 0.2s var(--rh-ease);
}

.rh-anchor-bar__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--rh-gold-lt);
  text-decoration: none;
}

.rh-anchor-bar__link.is-active {
  background: rgba(200, 162, 74, 0.22);
  color: var(--rh-gold-lt);
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.5);
}

/* 显现动效 */
.rh-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--rh-ease), transform 0.5s var(--rh-ease);
}

.rh-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1200px) {
  .rh-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  :root { --rh-rail: 0px; }

  body { padding-left: 0; }

  .rh-skip { left: 14px; }

  .rh-topbar { left: 0; }

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

  .rh-frame {
    top: var(--rh-topbar-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(200, 162, 74, 0.35);
    transition: max-height 0.3s var(--rh-ease);
  }

  .rh-frame:hover,
  .rh-frame:focus-within {
    width: 100%;
    box-shadow: none;
  }

  .rh-frame[data-open="true"] {
    max-height: calc(100vh - var(--rh-topbar-h));
    overflow-y: auto;
    box-shadow: 0 26px 50px -30px rgba(23, 16, 43, 0.9);
  }

  .rh-frame__inner { height: auto; padding: 14px 0 22px; }

  .rh-frame__caption,
  .rh-frame__foot { opacity: 1; padding-inline: clamp(18px, 5vw, 30px); }

  .rh-frame__caption { margin-bottom: 10px; }

  .rh-frame__foot { margin-top: 14px; }

  .rh-nav__list { gap: 0; }

  .rh-nav__link {
    height: auto;
    padding: 15px clamp(18px, 5vw, 30px);
    border-left: 0;
    border-bottom: 1px solid rgba(200, 162, 74, 0.14);
    font-size: 16px;
  }

  .rh-nav__link[aria-current="page"] {
    border-left: 0;
    background: linear-gradient(90deg, rgba(200, 162, 74, 0.22), transparent 85%);
  }

  .rh-nav__label { opacity: 1; transform: none; }

  body.rh-nav-open { overflow: hidden; }

  .rh-anchor-bar { top: calc(var(--rh-topbar-h) + 4px); }
}

@media (max-width: 900px) {
  .rh-grid--3,
  .rh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .rh-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --rh-topbar-h: 58px; }

  body { font-size: 16px; }

  .rh-brand__sub { display: none; }

  .rh-status-chip { display: none; }

  .rh-btn { min-height: 38px; padding: 0 13px; font-size: 13px; }

  .rh-nav-toggle { padding: 0 12px; min-height: 38px; gap: 0; }

  .rh-nav-toggle__text { display: none; }

  .rh-nav-toggle__bars { width: 18px; }

  .rh-index-dock { width: 66px; padding: 11px 6px; }

  .rh-index-dock__k { font-size: 14px; }

  .rh-top-link { width: 44px; height: 44px; bottom: calc(clamp(14px, 2.5vw, 32px) + 68px); }

  .rh-grid--2,
  .rh-grid--3,
  .rh-grid--4 { grid-template-columns: 1fr; }

  .rh-card { padding: 20px 20px; }
}

@media (max-width: 400px) {
  .rh-brand__mark { display: none; }

  .rh-brand__name { font-size: 16px; }
}

/* ---------- 14. 降低动效偏好 ---------- */
@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;
  }

  .rh-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .rh-top-link { transform: none !important; }
}
