/* ============================================================
   荣一娱乐 · 共享样式表 /assets/site.css
   RY Night Console Kit — 技术蓝图 × 夜间娱乐面板
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #0B1026;
}

body { margin: 0; }

h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ry-bg: #0B1026;
  --ry-panel: #161C3A;
  --ry-line: #2A3468;
  --ry-deep: #05070F;
  --ry-cyan: #4FE3D0;
  --ry-coral: #FF7A5C;
  --ry-gold: #F2C46B;
  --ry-text: #E6EAF6;
  --ry-muted: #9AA6C8;
  --ry-glow: rgba(79, 227, 208, 0.14);

  --ry-radius: 20px;
  --ry-radius-sm: 12px;
  --ry-shell: 1200px;

  --ry-header-h: 78px;
  --ry-main-offset: calc(var(--ry-header-h) + 26px);

  --ry-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --ry-font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ry-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 720px) {
  :root { --ry-header-h: 64px; }
}

/* ---------- 3. 基础排版与画布 ---------- */
body {
  min-height: 100vh;
  font-family: var(--ry-font-sans);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--ry-text);
  background-color: var(--ry-bg);
  background-image:
    radial-gradient(900px 640px at 8% -12%, rgba(79, 227, 208, 0.10), transparent 64%),
    radial-gradient(760px 520px at 96% 4%, rgba(255, 122, 92, 0.085), transparent 68%),
    radial-gradient(1100px 760px at 50% 118%, rgba(42, 52, 104, 0.62), transparent 72%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

/* 96px 蓝图网格层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 52, 104, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 52, 104, 0.34) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.55;
}

main,
.site-footer { position: relative; z-index: 1; }

main {
  display: block;
  padding-block-start: var(--ry-main-offset);
}

/* 首屏专题封面：main 的第一个 [data-hero] 自动上提，铺满头部区域 */
main > [data-hero]:first-child {
  position: relative;
  isolation: isolate;
  margin-block-start: calc(-1 * var(--ry-main-offset));
  padding-block-start: calc(var(--ry-header-h) + clamp(26px, 5vw, 64px));
  padding-block-end: clamp(44px, 7vw, 96px);
  min-height: min(86vh, 800px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 34px);
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: clamp(1.14rem, 1.8vw, 1.4rem); line-height: 1.35; }
h4 { font-size: 1.02rem; line-height: 1.4; }

::selection { background: rgba(79, 227, 208, 0.28); color: #FFFFFF; }

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 300;
  display: inline-block;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  background: var(--ry-cyan);
  color: #06121B;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 34px -14px rgba(79, 227, 208, 0.9);
  transition: top 0.22s var(--ry-ease);
}

.skip-link:focus { top: 14px; }

#main-content:focus { outline: none; }

/* ---------- 5. 容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--ry-shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-block-end: calc(-1 * var(--ry-header-h));
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.32s var(--ry-ease),
    border-color 0.32s var(--ry-ease),
    box-shadow 0.32s var(--ry-ease);
}

.site-header[data-scrolled] {
  background: rgba(8, 12, 30, 0.92);
  border-bottom-color: var(--ry-line);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.header-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ry-cyan), var(--ry-gold) 62%, var(--ry-coral));
  opacity: 0.9;
  transition: transform 0.12s linear;
}

.header-shell {
  position: relative;
  width: 100%;
  max-width: var(--ry-shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
  min-height: var(--ry-header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 14px;
  font-family: var(--ry-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #06121B;
  background: linear-gradient(150deg, var(--ry-cyan), #2FA6C6);
  box-shadow:
    0 0 0 1px rgba(79, 227, 208, 0.45),
    0 10px 26px -14px rgba(79, 227, 208, 0.95);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.24;
}

.brand__name {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ry-text);
}

.brand__tagline {
  font-family: var(--ry-font-mono);
  font-size: 0.645rem;
  letter-spacing: 0.06em;
  color: var(--ry-muted);
  margin-top: 2px;
}

/* 版本信息牌 */
.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: clamp(10px, 1.4vw, 18px);
  border-left: 1px solid var(--ry-line);
  font-family: var(--ry-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ry-muted);
}

.header-meta__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.header-meta__key { color: var(--ry-gold); }

.header-meta__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ry-line);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.7vw, 10px);
  counter-reset: navidx;
}

.nav-list__item { counter-increment: navidx; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5em 0.6em;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ry-muted);
  white-space: nowrap;
  transition: color 0.22s var(--ry-ease), background-color 0.22s var(--ry-ease);
}

.nav-link::before {
  content: counter(navidx, decimal-leading-zero);
  margin-right: 0.5em;
  font-family: var(--ry-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--ry-line);
  vertical-align: 0.16em;
  transition: color 0.22s var(--ry-ease);
}

.nav-link:hover {
  color: var(--ry-text);
  background: rgba(79, 227, 208, 0.08);
}

.nav-link:hover::before { color: var(--ry-cyan); }

.nav-link[aria-current="page"] { color: var(--ry-cyan); }

.nav-link[aria-current="page"]::before { color: var(--ry-gold); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.6em;
  right: 0.6em;
  bottom: 0.16em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ry-cyan), transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: clamp(8px, 1.2vw, 16px);
  border-left: 1px solid var(--ry-line);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--ry-line);
  background: rgba(22, 28, 58, 0.74);
  color: var(--ry-text);
  font-family: var(--ry-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  transition: border-color 0.24s var(--ry-ease), color 0.24s var(--ry-ease);
}

.nav-toggle:hover {
  border-color: rgba(79, 227, 208, 0.55);
  color: var(--ry-cyan);
}

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

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ry-ease), opacity 0.26s var(--ry-ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

html.nav-open,
html.nav-open body { overflow: hidden; }

/* ---------- 7. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ry-text);
  --btn-line: var(--ry-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.62em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background-color 0.24s var(--ry-ease),
    color 0.24s var(--ry-ease),
    border-color 0.24s var(--ry-ease),
    box-shadow 0.24s var(--ry-ease),
    transform 0.24s var(--ry-ease);
}

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

.btn--primary {
  --btn-bg: var(--ry-cyan);
  --btn-fg: #06121B;
  --btn-line: var(--ry-cyan);
  box-shadow:
    0 0 0 1px rgba(79, 227, 208, 0.2),
    0 14px 34px -18px rgba(79, 227, 208, 0.95);
}

.btn--primary:hover {
  --btn-bg: var(--ry-coral);
  --btn-line: var(--ry-coral);
  box-shadow: 0 16px 36px -18px rgba(255, 122, 92, 0.9);
}

.btn--ghost {
  --btn-fg: var(--ry-muted);
}

.btn--ghost:hover {
  --btn-fg: var(--ry-cyan);
  --btn-line: rgba(79, 227, 208, 0.6);
  background: rgba(79, 227, 208, 0.08);
}

.btn--sm {
  padding: 0.46em 0.92em;
  font-size: 0.82rem;
}

/* ---------- 8. 通用内容组件 ---------- */
.prose { max-width: 70ch; }

.prose > * + * { margin-top: 1.05em; }

.prose h2,
.prose h3 { margin-top: 2em; }

.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose h3 { font-size: 1.16rem; margin-top: 1.7em; }

.prose p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ry-text);
}

.prose a {
  color: var(--ry-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--ry-coral); }

.prose ul { padding-left: 0; }

.prose li {
  position: relative;
  padding-left: 1.15em;
  color: var(--ry-muted);
}

.prose li + li { margin-top: 0.45em; }

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ry-cyan);
}

.prose strong { color: var(--ry-gold); font-weight: 700; }

/* 坐标索引条 */
.idx {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--ry-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ry-cyan);
}

.idx__num { color: var(--ry-gold); }

/* 面板 */
.panel {
  position: relative;
  border-radius: var(--ry-radius);
  border: 1px solid var(--ry-line);
  background: linear-gradient(165deg, rgba(22, 28, 58, 0.96), rgba(13, 18, 40, 0.96));
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 227, 208, 0.78), transparent);
}

.panel--glow {
  box-shadow: 0 34px 90px -60px rgba(79, 227, 208, 0.85);
}

/* 档案卡 */
.card {
  position: relative;
  border-radius: var(--ry-radius);
  border: 1px solid var(--ry-line);
  background: rgba(22, 28, 58, 0.74);
  padding: clamp(16px, 2vw, 24px);
  padding-left: calc(clamp(16px, 2vw, 24px) + 12px);
  overflow: hidden;
  transition: border-color 0.26s var(--ry-ease), transform 0.26s var(--ry-ease);
}

.card:hover {
  border-color: rgba(79, 227, 208, 0.45);
  transform: translateY(-2px);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: var(--card-accent, var(--ry-cyan));
  opacity: 0.85;
}

.card__title {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
}

.card__text {
  margin-top: 0.5em;
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--ry-muted);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* 胶囊标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.22em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--ry-line);
  background: rgba(22, 28, 58, 0.72);
  font-family: var(--ry-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ry-muted);
  white-space: nowrap;
}

.tag--cyan {
  color: var(--ry-cyan);
  border-color: rgba(79, 227, 208, 0.42);
  background: rgba(79, 227, 208, 0.09);
}

.tag--coral {
  color: var(--ry-coral);
  border-color: rgba(255, 122, 92, 0.42);
  background: rgba(255, 122, 92, 0.09);
}

.tag--gold {
  color: var(--ry-gold);
  border-color: rgba(242, 196, 107, 0.42);
  background: rgba(242, 196, 107, 0.09);
}

/* 图片容器 */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--ry-radius);
  border: 1px solid var(--ry-line);
  overflow: hidden;
  background-image:
    radial-gradient(120% 120% at 14% 8%, rgba(79, 227, 208, 0.24), transparent 56%),
    radial-gradient(120% 120% at 86% 92%, rgba(255, 122, 92, 0.2), transparent 62%),
    linear-gradient(150deg, #161C3A, #0B1026 72%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 52, 104, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 52, 104, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}

.media-frame img {
  position: relative;
  z-index: 2;
  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__caption {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 12px;
  max-width: calc(100% - 28px);
  padding: 0.28em 0.7em;
  border-radius: 999px;
  background: rgba(5, 7, 15, 0.82);
  border: 1px solid var(--ry-line);
  font-family: var(--ry-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ry-muted);
}

/* 栅格 */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

/* 面包屑 */
.crumbs {
  font-family: var(--ry-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ry-muted);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
}

.crumbs__link { transition: color 0.22s var(--ry-ease); }
.crumbs__link:hover { color: var(--ry-cyan); }
.crumbs__sep { color: var(--ry-line); }
.crumbs__current { color: var(--ry-text); }

/* 章节索引轨 */
.toc { font-size: 0.86rem; }

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

.toc__item { margin: 0; }

.toc__link {
  display: block;
  padding: 0.42em 0.4em 0.42em 0.95em;
  border-left: 1px solid var(--ry-line);
  font-family: var(--ry-font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  color: var(--ry-muted);
  transition: color 0.22s var(--ry-ease), border-color 0.22s var(--ry-ease), background-color 0.22s var(--ry-ease);
}

.toc__link:hover { color: var(--ry-text); }

.toc__link[aria-current="true"] {
  color: var(--ry-cyan);
  border-left-color: var(--ry-cyan);
  background: rgba(79, 227, 208, 0.07);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 90;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(79, 227, 208, 0.38);
  background: rgba(11, 16, 38, 0.86);
  color: var(--ry-cyan);
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s var(--ry-ease), transform 0.3s var(--ry-ease), background-color 0.24s var(--ry-ease);
}

.to-top:hover { background: rgba(79, 227, 208, 0.16); }

.to-top[data-visible] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top__arrow { display: block; transform: translateY(-1px); }

/* 进场渐显（脚本启用后才隐藏，禁用 JS 不影响阅读） */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.32s var(--ry-ease),
    transform 0.32s var(--ry-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ---------- 9. 页脚 ---------- */
.site-footer {
  margin-block-start: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--ry-line);
  background-image: linear-gradient(180deg, rgba(5, 7, 15, 0.1) 0%, #05070F 46%, #05070F 100%);
  color: var(--ry-text);
}

.footer-shell {
  width: 100%;
  max-width: var(--ry-shell);
  margin-inline: auto;
  padding: clamp(38px, 5vw, 62px) clamp(20px, 5vw, 48px) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 0.78fr) 1.15fr;
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}

.footer-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(79, 227, 208, 0.36);
  background: rgba(79, 227, 208, 0.1);
  font-family: var(--ry-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ry-cyan);
}

.footer-brand__line {
  margin-top: 16px;
  max-width: 27ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ry-muted);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  border: 1px solid var(--ry-line);
  background: rgba(22, 28, 58, 0.72);
  font-family: var(--ry-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ry-muted);
}

.footer-status__lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ry-cyan);
  box-shadow: 0 0 0 3px rgba(79, 227, 208, 0.16);
  animation: ry-pulse 2.8s var(--ry-ease) infinite;
}

.footer-status__text { white-space: nowrap; }

@keyframes ry-pulse {
  0%, 100% {
    opacity: 0.5;
    box-shadow: 0 0 0 3px rgba(79, 227, 208, 0.08);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(79, 227, 208, 0.2);
  }
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--ry-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ry-muted);
}

.footer-col__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--ry-line);
}

.footer-list { display: flex; flex-direction: column; }

.footer-link {
  display: inline-block;
  padding: 0.26em 0;
  font-size: 0.94rem;
  color: var(--ry-text);
  opacity: 0.82;
  transition: color 0.22s var(--ry-ease), opacity 0.22s var(--ry-ease), transform 0.22s var(--ry-ease);
}

.footer-link:hover {
  color: var(--ry-cyan);
  opacity: 1;
  transform: translateX(3px);
}

.footer-contact__list { display: flex; flex-direction: column; gap: 2px; }

.footer-contact__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0.24em 0;
  font-size: 0.9rem;
}

.footer-contact__key {
  flex: 0 0 auto;
  min-width: 42px;
  font-family: var(--ry-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ry-gold);
}

.footer-contact__value {
  color: var(--ry-text);
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ry-muted);
}

.footer-legal {
  margin-top: clamp(30px, 4vw, 50px);
  padding-top: 18px;
  border-top: 1px solid rgba(42, 52, 104, 0.72);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  font-family: var(--ry-font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  color: var(--ry-muted);
}

.footer-legal__icp { color: var(--ry-muted); }
.footer-legal__copy { color: var(--ry-muted); }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1120px) {
  .header-meta { display: none; }
  .nav-link::before { display: none; }
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

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

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--ry-header-h);
    max-height: calc(100dvh - var(--ry-header-h));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 14px clamp(18px, 4vw, 44px) 26px;
    background: rgba(9, 13, 32, 0.985);
    border-bottom: 1px solid var(--ry-line);
    box-shadow: 0 44px 70px -46px #000000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.28s var(--ry-ease),
      transform 0.28s var(--ry-ease),
      visibility 0.28s var(--ry-ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

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

  .nav-list__item { border-bottom: 1px solid rgba(42, 52, 104, 0.5); }

  .nav-link {
    display: block;
    padding: 0.9em 0.2em;
    border-radius: 0;
    font-size: 1rem;
    color: var(--ry-text);
  }

  .nav-link[aria-current="page"]::after {
    left: 0;
    right: 0;
    bottom: 4px;
  }

  .nav-actions {
    margin-top: 18px;
    padding-left: 0;
    border-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-actions .btn { width: 100%; }

  .header-progress { height: 2px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .brand__tagline { display: none; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 26px 22px;
  }

  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }

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

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .footer-top { grid-template-columns: 1fr; }
}

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

  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .footer-status__lamp { animation: none; opacity: 1; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
  .footer-link:hover { transform: none; }
}
