/* ============================================================
   银河中心 · 1331galaxy.com.cn  共享样式 /assets/site.css
   深空蓝 · 银河紫 · 星轨框架导航
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 24px);
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol, pre { 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; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --deep: #070B1F;
  --nebula: #111A3D;
  --violet: #6B4CE6;
  --violet-soft: rgba(107, 76, 230, .18);
  --magenta: #E24A8D;
  --ice: #8FD8FF;
  --stardust: #A8B0C8;
  --moon: #F2F5FF;
  --grid: #2A3360;
  --grid-soft: rgba(42, 51, 96, .55);
  --teal: #3FD0C9;

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

  --rail-w: 216px;
  --topbar-h: 66px;
  --maxw: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 3px;
  --bar-bg: rgba(7, 11, 31, .9);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--deep);
  background-image:
    radial-gradient(1200px 620px at 82% -12%, rgba(107, 76, 230, .30), transparent 62%),
    radial-gradient(900px 520px at 4% 10%, rgba(143, 216, 255, .13), transparent 66%),
    radial-gradient(760px 700px at 46% 118%, rgba(226, 74, 141, .16), transparent 62%);
  background-attachment: fixed;
  color: var(--moon);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--moon);
}

p { color: var(--moon); }
strong, b { font-weight: 600; color: var(--moon); }

a { color: var(--ice); }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

::selection { background: rgba(107, 76, 230, .5); color: var(--moon); }

/* ---------- 4. Utilities ---------- */
.mono { font-family: var(--font-mono); letter-spacing: .06em; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 96px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.col-index { grid-column: 1 / span 2; }
.col-body { grid-column: 3 / span 8; }
.col-note { grid-column: 11 / span 2; }

/* 章节标题系统 */
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(20px, 3vw, 36px); }
.sec-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ice);
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.14;
  letter-spacing: -.02em;
  padding-left: 18px;
  border-left: 2px solid var(--violet);
}
.sec-lede { color: var(--stardust); max-width: 64ch; font-size: 16px; }

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 16px;
  background: var(--violet);
  color: var(--moon);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  border-radius: 2px;
  pointer-events: auto;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 5. Frame & main offset ---------- */
#main-content {
  display: block;
  padding-left: var(--rail-w);
  padding-top: var(--topbar-h);
}

/* ---------- 6. Header : 框架式导航 ---------- */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  pointer-events: none;
}

.site-header__bar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-inline: clamp(16px, 2.4vw, 32px);
  background: var(--bar-bg);
  border-bottom: 1px solid var(--grid);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

/* 品牌 */
.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--moon);
}
.site-brand__mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--grid);
  background: var(--nebula);
}
.site-brand__mark::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--violet-soft);
}
.site-brand__mark::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--magenta);
}
.site-brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.site-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.site-brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stardust);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 顶栏快捷入口 */
.site-quick {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.site-quick__link {
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stardust);
  transition: color .24s var(--ease), border-color .24s var(--ease), background .24s var(--ease);
}
.site-quick__link:hover,
.site-quick__link:focus-visible {
  color: var(--ice);
  border-color: var(--grid);
  background: var(--violet-soft);
}
.site-quick__link--cta {
  color: var(--ice);
  border-color: rgba(107, 76, 230, .65);
  background: rgba(107, 76, 230, .12);
}
.site-quick__link--cta:hover { background: rgba(107, 76, 230, .28); color: var(--moon); }

/* 移动开关 */
.site-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--grid);
  border-radius: 2px;
  color: var(--moon);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .24s var(--ease), background .24s var(--ease);
}
.site-nav-toggle:hover { border-color: var(--violet); background: var(--violet-soft); }
.site-nav-toggle__bars { position: relative; display: block; width: 18px; height: 10px; }
.site-nav-toggle__bars::before,
.site-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ice);
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}
.site-nav-toggle__bars::before { top: 0; }
.site-nav-toggle__bars::after { bottom: 0; }
[data-open] .site-nav-toggle__bars::before { transform: translateY(4.5px) rotate(45deg); }
[data-open] .site-nav-toggle__bars::after { transform: translateY(-4.5px) rotate(-45deg); }
.site-nav-toggle__label { line-height: 1; }

/* 滚动进度 */
.site-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--ice) 55%, var(--magenta));
}

/* 左侧轨道导航 */
.site-nav {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  overflow: hidden auto;
  display: flex;
  flex-direction: column;
  padding: 22px 0 26px;
  background: linear-gradient(180deg, rgba(17, 26, 61, .96), rgba(7, 11, 31, .98));
  border-right: 1px solid var(--grid);
  pointer-events: auto;
}
.site-nav::before {
  content: "";
  position: absolute;
  left: -94px;
  bottom: -94px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(107, 76, 230, .35);
  border-radius: 50%;
  pointer-events: none;
}
.site-nav::after {
  content: "";
  position: absolute;
  left: -18px;
  bottom: 74px;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(143, 216, 255, .22);
  border-radius: 50%;
  pointer-events: none;
}
.site-nav__caption {
  padding: 0 20px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(168, 176, 200, .6);
}
.site-nav__list { display: flex; flex-direction: column; gap: 2px; }
.site-nav__link {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: start;
  padding: 12px 20px 12px 18px;
  border-left: 2px solid transparent;
  color: var(--stardust);
  font-size: 14px;
  line-height: 1.5;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(168, 176, 200, .55);
  padding-top: 3px;
}
.site-nav__link:hover {
  color: var(--moon);
  background: var(--violet-soft);
  border-left-color: rgba(107, 76, 230, .7);
}
.site-nav__link[aria-current="page"] {
  color: var(--moon);
  background: linear-gradient(90deg, rgba(107, 76, 230, .32), rgba(107, 76, 230, 0));
  border-left-color: var(--magenta);
}
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--ice); }

.site-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 18px 20px 0;
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--stardust);
}
.site-status__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 3px rgba(226, 74, 141, .18);
}

/* 抽屉遮罩 */
.site-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(7, 11, 31, .72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
  pointer-events: auto;
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-left: var(--rail-w);
  border-top: 1px solid var(--grid);
  background:
    radial-gradient(760px 300px at 14% 0%, rgba(107, 76, 230, .22), transparent 62%),
    linear-gradient(180deg, #0A1027, #05081A);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 96px) clamp(22px, 3vw, 34px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
}
.site-footer__brandline {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--moon);
}
.site-footer__tagline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stardust);
}
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--stardust);
}
.site-footer__contact b {
  display: inline-block;
  min-width: 4.5em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ice);
}
.site-footer__note {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--grid);
  font-size: 13px;
  color: rgba(168, 176, 200, .9);
}
.site-footer__cta { margin-top: 18px; }

.site-footer__title {
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--violet);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moon);
}
.site-footer__list { display: flex; flex-direction: column; gap: 10px; }
.site-footer__link {
  font-size: 14px;
  color: var(--stardust);
  transition: color .2s var(--ease);
}
.site-footer__link:hover,
.site-footer__link:focus-visible { color: var(--ice); }

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stardust);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__icp { color: rgba(168, 176, 200, .82); }

/* ---------- 8. 通用组件 ---------- */
/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--grid);
  border-radius: 2px;
  background: rgba(17, 26, 61, .6);
  color: var(--moon);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  transition: border-color .24s var(--ease), background .24s var(--ease), color .24s var(--ease), transform .24s var(--ease);
}
.btn:hover { border-color: var(--violet); background: var(--violet-soft); transform: translateY(-2px); }
.btn--primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--violet), #4E36C4);
  color: #fff;
}
.btn--primary:hover { background: linear-gradient(120deg, #7C5CF0, var(--violet)); }
.btn--ghost { border-color: rgba(143, 216, 255, .45); color: var(--ice); background: transparent; }
.btn--ghost:hover { background: rgba(143, 216, 255, .1); border-color: var(--ice); }
.btn--accent { border-color: rgba(226, 74, 141, .55); color: var(--magenta); background: rgba(226, 74, 141, .1); }
.btn--accent:hover { background: rgba(226, 74, 141, .2); border-color: var(--magenta); }

/* 标签 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--grid);
  border-radius: 2px;
  background: rgba(17, 26, 61, .7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stardust);
}
.chip--index { border-color: rgba(107, 76, 230, .55); color: #B9A8FF; }
.chip--time { border-color: rgba(226, 74, 141, .5); color: #F49BC0; }
.chip--status { border-color: rgba(63, 208, 201, .5); color: var(--teal); }

/* 面包屑 */
.breadcrumb { padding-block: clamp(16px, 2vw, 26px); border-bottom: 1px solid var(--grid-soft); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stardust);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb__item:not(:last-child)::after { content: "/"; color: rgba(168, 176, 200, .45); }
.breadcrumb__link { color: var(--ice); }
.breadcrumb__link:hover { color: var(--moon); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb__current { color: var(--moon); }
.breadcrumb__back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stardust);
  border-bottom: 1px solid var(--grid);
  padding-bottom: 2px;
}
.breadcrumb__back:hover { color: var(--ice); border-color: var(--ice); }

/* 内容面板 */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 26, 61, .85), rgba(7, 11, 31, .62));
}
.panel--hover { transition: border-color .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease); }
.panel--hover:hover {
  border-color: rgba(107, 76, 230, .85);
  box-shadow: 0 0 0 1px rgba(107, 76, 230, .25), 0 18px 48px -26px rgba(107, 76, 230, .7);
  transform: translateY(-3px);
}
.panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stardust);
}
.panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--moon);
}
.panel__text { margin-top: 8px; font-size: 15px; color: var(--stardust); }

/* 星轨分隔带 */
.orbit-divider { position: relative; height: 32px; margin-block: clamp(28px, 5vw, 64px); }
.orbit-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42, 51, 96, .9) 12%, rgba(107, 76, 230, .6) 50%, rgba(42, 51, 96, .9) 88%, transparent);
}
.orbit-divider__dot {
  position: absolute;
  top: 50%;
  left: 32%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 12px 2px rgba(143, 216, 255, .6);
}

/* 图片容器 */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: linear-gradient(140deg, #0B1233, var(--nebula) 46%, var(--deep));
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(42, 51, 96, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 51, 96, .35) 1px, transparent 1px);
  background-size: 44px 44px;
}
.media-frame::after {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -40%;
  width: 62%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(143, 216, 255, .25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.media-frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--shot { aspect-ratio: 16 / 10; }

/* 数据条 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  border: 1px solid var(--grid);
  background: var(--grid-soft);
}
.stat { padding: 18px 20px; background: rgba(7, 11, 31, .88); }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--ice);
}
.stat__label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stardust);
}

/* 主题筛选 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--grid);
  background: rgba(17, 26, 61, .6);
}
.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--grid);
  border-radius: 2px;
  color: var(--stardust);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  transition: color .24s var(--ease), border-color .24s var(--ease), background .24s var(--ease);
}
.filter-btn:hover { color: var(--ice); border-color: rgba(143, 216, 255, .5); }
.filter-btn[aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--ice);
}

/* 手风琴 */
.acc { border-top: 1px solid var(--grid); }
.acc__item { border-bottom: 1px solid var(--grid); }
.acc__q {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--moon);
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q::after { content: "+"; margin-left: auto; font-family: var(--font-mono); color: var(--ice); }
.acc__item[open] .acc__q::after { content: "–"; }
.acc__num { font-family: var(--font-mono); font-size: 12px; color: var(--violet); }
.acc__a { padding: 0 4px 20px 34px; color: var(--stardust); font-size: 15px; }

/* 复制组件 */
.copy-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--grid);
  background: rgba(7, 11, 31, .72);
}
.copy-field__text { font-family: var(--font-mono); font-size: 13px; color: var(--stardust); }
.copy-btn {
  padding: 8px 14px;
  border: 1px solid rgba(107, 76, 230, .6);
  border-radius: 2px;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  transition: background .24s var(--ease), border-color .24s var(--ease);
}
.copy-btn:hover { background: rgba(107, 76, 230, .22); border-color: var(--violet); }
.copy-status { min-height: 1.2em; font-family: var(--font-mono); font-size: 12px; color: var(--teal); }

/* 章节索引 */
.index-link {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0 6px 10px;
  border-left: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stardust);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.index-link:hover { color: var(--moon); }
.index-link.is-current { color: var(--moon); border-left-color: var(--magenta); }

/* 显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1024px) {
  .col-index, .col-body, .col-note { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --rail-w: 0px; --topbar-h: 62px; }

  #main-content { padding-left: 0; }
  .site-footer { margin-left: 0; }

  .site-header { grid-template-columns: 1fr; grid-template-rows: var(--topbar-h) 1fr; }
  .site-header__bar { grid-column: 1; grid-row: 1; }
  .site-header__bar { gap: 12px; }

  .site-nav-toggle { display: inline-flex; }
  .site-quick { display: none; }

  .site-nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    z-index: 90;
    width: min(84vw, 320px);
    transform: translateX(-102%);
    transition: transform .32s var(--ease);
    border-right: 1px solid var(--grid);
    grid-column: 1;
    grid-row: 2;
  }
  .site-header[data-open] .site-nav { transform: none; }

  .site-scrim { display: block; }
  .site-header[data-open] .site-scrim { opacity: 1; visibility: visible; }

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

@media (max-width: 640px) {
  .site-brand__sub { display: none; }
  .site-brand__name { font-size: 15px; white-space: normal; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- 10. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
