/* ==========================================================
   经典K8 官方中文站 · 共享样式 /assets/site.css
   轨道式框架导航 + 连续画布 + 切片卡
   ========================================================== */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

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

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

[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  --ink-900: #0A1A2A;
  --ink-800: #10263A;
  --ink-750: #0C2033;
  --indigo-700: #3F3468;
  --steel-300: #C3CEDA;
  --paper-050: #F2F5F8;
  --amber-500: #E2A63C;
  --amber-600: #EFB755;
  --teal-500: #1FA3A0;
  --rose-400: #C1707E;
  --line-600: #2C4257;
  --mist-400: #93A5B4;

  --text: #E6EDF3;
  --text-dim: #A6B7C4;
  --ink-text: #14202E;
  --ink-text-dim: #4A5C6B;

  --font-display: "Archivo Narrow", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --track-w: 272px;
  --radius: 8px;
  --radius-sm: 3px;
  --shadow-slice: 0 1px 0 rgba(255, 255, 255, .03), 0 10px 26px -22px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --measure: 34em;
}

/* ---------- 中文排版基线 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--paper-050);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 6vw, 66px); }
h2 { font-size: clamp(24px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }
h4 { font-size: 17px; font-weight: 700; letter-spacing: 0; }

p { text-wrap: pretty; }

strong { color: var(--paper-050); font-weight: 700; }

.prose {
  max-width: var(--measure);
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
}

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

.prose h2,
.prose h3 { color: var(--paper-050); margin-top: 1.8em; }

.prose a {
  color: var(--steel-300);
  border-bottom: 1px solid var(--line-600);
}

.prose a:hover { color: var(--amber-500); border-bottom-color: var(--amber-500); }

.num,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
}

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn--amber:focus-visible { outline-color: var(--paper-050); }
.btn--teal:focus-visible { outline-color: var(--paper-050); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -160%);
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--amber-500);
  color: #241703;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  transition: transform .2s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: 2px;
}

/* ==========================================================
   头部：框条 + 轨道导航
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-600);
}

/* --- 框条 --- */
.frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--paper-050);
}

.brand-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-sm);
  background: rgba(195, 206, 218, .07);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--amber-500);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand:hover .brand-name { color: var(--amber-500); }

.frame-index {
  display: none;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist-400);
  white-space: nowrap;
}

.frame-index-label { opacity: .75; }

.frame-index-num {
  color: var(--steel-300);
  padding: 2px 6px;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-sm);
}

.version-badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 3px 8px;
  border: 1px solid rgba(226, 166, 60, .42);
  border-radius: var(--radius-sm);
  background: rgba(226, 166, 60, .09);
  color: var(--amber-500);
  white-space: nowrap;
}

.frame-cta {
  display: none;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-600);
  background: rgba(195, 206, 218, .06);
  color: var(--steel-300);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.frame-cta:hover {
  color: var(--ink-900);
  background: var(--amber-500);
  border-color: var(--amber-500);
}

/* --- 移动导航按钮 --- */
.nav-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-sm);
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.nav-toggle:hover { border-color: var(--steel-300); color: var(--paper-050); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .24s var(--ease), top .24s var(--ease), bottom .24s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  bottom: 4px;
  transform: rotate(-45deg);
}

.nav-toggle-text { display: none; }

/* --- 导航轨道 --- */
.site-nav {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  background: var(--ink-800);
  border-top: 1px solid transparent;
  transition: max-height .28s var(--ease), visibility .28s var(--ease), border-color .2s var(--ease);
}

.site-nav[data-open] {
  max-height: 74vh;
  overflow-y: auto;
  visibility: visible;
  border-top-color: var(--line-600);
}

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

.rail-item {
  --rail-accent: var(--steel-300);
  position: relative;
}

.rail-item:nth-child(3) { --rail-accent: var(--amber-500); }
.rail-item:nth-child(4) { --rail-accent: var(--teal-500); }
.rail-item:nth-child(5) { --rail-accent: var(--rose-400); }

.rail-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px 12px 20px;
  border-bottom: 1px solid rgba(44, 66, 87, .55);
  color: var(--text-dim);
  font-size: 15px;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.rail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--rail-accent);
  opacity: .8;
}

.rail-label { font-weight: 500; }

.rail-link:hover,
.rail-link:focus-visible {
  color: var(--paper-050);
  background: rgba(195, 206, 218, .06);
}

.rail-link[aria-current="page"] {
  color: var(--paper-050);
  background: linear-gradient(90deg, rgba(195, 206, 218, .1), transparent 72%);
  font-weight: 700;
}

.rail-link[aria-current="page"] .rail-num { opacity: 1; }

.rail-foot {
  padding: 14px 20px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--mist-400);
  opacity: .7;
}

/* --- 滚动进度 --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: rgba(195, 206, 218, .1);
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal-500), var(--amber-500));
}

/* --- 返回顶部 --- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-600);
  border-radius: 999px;
  background: rgba(16, 38, 58, .94);
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.to-top:hover { color: var(--amber-500); border-color: var(--amber-500); }

.to-top-arrow { font-size: 13px; line-height: 1; }
.to-top-label { display: none; }

/* ==========================================================
   通用主体结构
   ========================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

.page-main {
  display: block;
  min-height: 62vh;
  background: var(--ink-900);
}

.page-main:focus { outline: none; }

/* --- 面包屑 / 编号路径条 --- */
.breadcrumb {
  background: rgba(16, 38, 58, .55);
  border-bottom: 1px solid var(--line-600);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist-400);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line-600);
}

.breadcrumb-link {
  color: var(--steel-300);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.breadcrumb-link:hover {
  color: var(--amber-500);
  border-bottom-color: var(--amber-500);
}

/* --- 分区画布 --- */
.band { padding: 48px 0; }
.band--deep { background: var(--ink-800); }
.band--indigo { background: var(--indigo-700); }
.band--paper { background: var(--paper-050); color: var(--ink-text); }
.band--paper h2,
.band--paper h3,
.band--paper h4 { color: var(--ink-text); }
.band--paper .prose { color: var(--ink-text-dim); }
.band--paper .num { color: var(--ink_text_dim, #6B7C8A); }

/* --- 章节头 --- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-600);
}

.band--paper .section-head { border-bottom-color: #D3DDE6; }

.section-head h2 { margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist-400);
}

.num {
  font-size: 12px;
  color: var(--steel-300);
}

/* --- 网格 --- */
.grid-12 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* --- 切片卡 --- */
.slice {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line-600);
  border-radius: var(--radius);
  background: rgba(16, 38, 58, .62);
  box-shadow: var(--shadow-slice);
}

.slice--paper {
  background: #FFFFFF;
  border-color: #D3DDE6;
  color: var(--ink-text);
  box-shadow: none;
}

.slice--paper h3,
.slice--paper h4 { color: var(--ink-text); }

.slice-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

/* --- 标签 --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-sm);
  background: rgba(195, 206, 218, .07);
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  white-space: nowrap;
}

.tag--amber {
  color: var(--amber-500);
  border-color: rgba(226, 166, 60, .45);
  background: rgba(226, 166, 60, .11);
}

.tag--teal {
  color: var(--teal-500);
  border-color: rgba(31, 163, 160, .48);
  background: rgba(31, 163, 160, .11);
}

.tag--rose {
  color: var(--rose-400);
  border-color: rgba(193, 112, 126, .5);
  background: rgba(193, 112, 126, .12);
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  transition: background-color .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease), transform .18s var(--ease);
}

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

.btn--amber {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: #241703;
}

.btn--amber:hover { background: var(--amber-600); border-color: var(--amber-600); }

.btn--teal {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #03211F;
}

.btn--teal:hover { background: #27B7B3; border-color: #27B7B3; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-600);
  color: var(--steel-300);
}

.btn--ghost:hover {
  border-color: var(--steel-300);
  color: var(--paper-050);
  background: rgba(195, 206, 218, .07);
}

.band--paper .btn--ghost {
  border-color: #C6D2DC;
  color: var(--ink-text);
}

.band--paper .btn--ghost:hover {
  border-color: var(--ink-text);
  background: rgba(20, 32, 46, .05);
  color: var(--ink-text);
}

/* --- 图片容器（页面阶段放置图片或内联 SVG） --- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-600);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(195, 206, 218, .07), rgba(195, 206, 218, 0) 55%),
    var(--ink-800);
}

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

.media-frame > img { display: block; }

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

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist-400);
}

/* ==========================================================
   页脚
   ========================================================== */
.site-footer {
  background: var(--ink-800);
  border-top: 1px solid var(--line-600);
  color: var(--text-dim);
}

.footer-inner {
  display: grid;
  gap: 36px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 44px 20px 32px;
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-050);
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-sm);
  background: rgba(195, 206, 218, .07);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--amber-500);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
}

.footer-brand:hover .footer-brand-name { color: var(--amber-500); }

.footer-version {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 2px 7px;
  border: 1px solid rgba(226, 166, 60, .42);
  border-radius: var(--radius-sm);
  color: var(--amber-500);
}

.footer-summary {
  flex: 1 0 100%;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist-400);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--steel-300);
}

.footer-track {
  display: grid;
  gap: 2px;
}

.footer-track-item {
  --footer-accent: var(--steel-300);
}

.footer-track-item:nth-child(3) { --footer-accent: var(--amber-500); }
.footer-track-item:nth-child(4) { --footer-accent: var(--teal-500); }
.footer-track-item:nth-child(5) { --footer-accent: var(--rose-400); }

.footer-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(44, 66, 87, .5);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-link:hover {
  color: var(--paper-050);
  border-bottom-color: var(--footer-accent);
}

.footer-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--footer-accent);
  opacity: .85;
}

.footer-contact-list {
  display: grid;
  gap: 8px;
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}

.footer-key {
  flex: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--mist-400);
  opacity: .8;
}

.footer-value { color: var(--steel-300); word-break: break-word; }

.footer-note {
  margin-top: 14px;
  max-width: 30em;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist-400);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 9px 16px;
  border: 1px solid rgba(226, 166, 60, .45);
  border-radius: var(--radius-sm);
  color: var(--amber-500);
  font-size: 13px;
  font-weight: 700;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.footer-cta:hover {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: #241703;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--line-600);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist-400);
}

.footer-copy { margin-right: auto; }

.legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-link {
  color: var(--steel-300);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.legal-link:hover {
  color: var(--amber-500);
  border-bottom-color: var(--amber-500);
}

.footer-icp { color: var(--mist-400); opacity: .85; }

/* ==========================================================
   响应式：平板
   ========================================================== */
@media (min-width: 560px) {
  .nav-toggle-text { display: inline; }
  .frame-bar { gap: 14px; padding: 12px 22px; }
  .brand-name { font-size: 15px; }
  .to-top { right: 22px; bottom: 22px; }
}

@media (min-width: 640px) {
  .frame-cta { display: inline-flex; }
  .container { padding-inline: 28px; }
  .band { padding: 60px 0; }
  .footer-legal { padding-inline: 28px; }
}

@media (min-width: 768px) {
  .frame-index { display: inline-flex; }
  .nav-toggle { display: none; }

  .site-nav {
    max-height: none;
    overflow: visible;
    visibility: visible;
    border-top: 1px solid var(--line-600);
    background: transparent;
  }

  .rail-list { flex-direction: row; overflow-x: auto; }

  .rail-item { flex: 0 0 auto; }

  .rail-link {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 11px 18px;
    border-bottom: 0;
    border-right: 1px solid rgba(44, 66, 87, .55);
    font-size: 14px;
    white-space: nowrap;
  }

  .rail-link[aria-current="page"] {
    background: rgba(195, 206, 218, .07);
    box-shadow: inset 0 -2px 0 var(--rail-accent);
  }

  .rail-foot { display: none; }

  .slice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slice { padding: 24px; }
  .container { padding-inline: 32px; }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding: 52px 32px 36px;
  }
  .footer-head { grid-column: 1 / -1; }
  .footer-legal { padding-inline: 32px; }
}

/* ==========================================================
   响应式：桌面侧轨
   ========================================================== */
@media (min-width: 1024px) {
  body { padding-left: var(--track-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--track-w);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line-600);
    background: linear-gradient(180deg, var(--ink-750) 0%, var(--ink-900) 52%, var(--ink-900) 100%);
  }

  .frame-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--line-600);
  }

  .brand { flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: 8px; }

  .brand-name {
    font-size: 20px;
    white-space: normal;
    letter-spacing: .01em;
  }

  .frame-index { display: flex; }

  .version-badge { align-self: flex-start; }

  .frame-cta {
    display: inline-flex;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13.5px;
  }

  .site-nav {
    border-top: 0;
    padding-top: 6px;
    flex: 1 1 auto;
  }

  .rail-list { flex-direction: column; overflow: visible; }

  .rail-item { width: 100%; }

  .rail-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 13px 20px 13px 46px;
    border-right: 0;
    border-bottom: 0;
    font-size: 15px;
  }

  .rail-link::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-600);
  }

  .rail-item:first-child .rail-link::before { top: 50%; }
  .rail-item:last-child .rail-link::before { bottom: 50%; }

  .rail-link::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: var(--rail-accent);
    opacity: .45;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
  }

  .rail-link:hover::after { opacity: .9; transform: scale(1.1); }

  .rail-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(195, 206, 218, .1), transparent 78%);
    box-shadow: none;
  }

  .rail-link[aria-current="page"]::after {
    opacity: 1;
    animation: railPulse 3.4s ease-in-out infinite;
  }

  .rail-num { font-size: 10.5px; }
  .rail-label { font-size: 15px; }

  .rail-foot {
    display: block;
    margin-top: auto;
    border-top: 1px solid var(--line-600);
  }

  .scroll-progress { left: var(--track-w); }

  .to-top {
    right: auto;
    left: 20px;
    bottom: 20px;
    width: calc(var(--track-w) - 40px);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
  }

  .to-top-label { display: inline; }

  .container { padding-inline: 44px; }
  .band { padding: 72px 0; }
  .slice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-12 { gap: 24px; }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1.1fr;
    gap: 48px;
    padding: 64px 44px 40px;
  }
  .footer-head { grid-column: auto; }
  .footer-legal { padding: 18px 44px 32px; }
}

@media (min-width: 1280px) {
  .brand-name { font-size: 22px; }
}

@keyframes railPulse {
  0%, 100% { transform: scale(1.2); opacity: 1; }
  50% { transform: scale(1.55); opacity: .7; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .rail-link[aria-current="page"]::after { transform: scale(1.3); opacity: 1; }
  .btn:hover { transform: none; }
}
