/* ============================================================
   文章页「阅读轨」（1.9.17） · css/lightfield-article.css
   ============================================================
   一套决定：光不再照亮一张卡，改成照亮一条阅读轨。
   光只出现三次 —— 首屏斜切过标题 / 正文左侧的进度轨 / 文末的光池。
   正文区本身永不加发光背景。

   两栏：正文 : 右栏 = 7 : 3，容器宽跟主题 .page-container 一致（1200）。
   （1.9.18 之前是左 200 / 中 720 / 右 240 三栏，欢哥说三栏看着凌乱，
     把章节轨挪到进度方块下边收成一列。）
   1.9.20 之前这里自锁 1096，比主题窄一截 —— 欢哥说「取消宽度锁定」，
   现在容器 1200、栏距 48 / ≤1279 收 32；≥1360 按钮才立成左侧浮栏；
   1024~1359 按钮仍是正文里的一横行；≤1023 元信息变页头下的常驻读数条、
   章节轨收起、正文按 806 的阅读尺度居中；≤767 单栏。

   ⚠ 章节列表、刻度、进度全靠 js/lightfield-article.js 从正文 H2 生成。
   ⚠ 1.9.18 起刻度不再映射整篇文章高度，改成跟着章节行自己走
     （CSS 伪元素，见 .bs-rail__item::before），轨道本身只表示阅读进度。
   ⚠ .single-article__header 里那道光是伪元素，必须给子元素 position/z-index，
     否则会重演 1.9.15 那个「CSS 写纯白、像素是灰的」坑。
   ⚠ 出血（.bs-pool / header::after 的负 left/right）必须 ≤ 容器内距：
     1240 以上内距是 0（不需出血），1240 以下是 16、767 以下是 18。
     差 1px 就是一条横向滚动条。
   ============================================================ */

.bs-layout-rail {
  --ra-ink: #FFFFFF;
  --ra-ink-2: #E4EFF8;
  --ra-mid: #D0E3F2;
  --ra-dim: #A8C4DA;
  --ra-faint: #8FB2CC;
  --ra-cyan: #8FDBFF;
  --ra-line: rgba(126, 178, 214, 0.22);
  --ra-line-2: rgba(126, 178, 214, 0.12);
  --ra-panel: #111C29;
  --ra-bg: #101B28;                    /* 吸顶面包屑垫底色，与 body::before 顶部同色 */
  --ra-mono: "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --bs-hh: 56px;                       /* 页头高度，JS 会量了覆盖 */

  position: relative;
  z-index: 1;
  display: grid;
  /* 1.9.20：不再锁死 1096，改成跟主题 .page-container 同宽（1200）、左文右栏 7:3 */
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  column-gap: 48px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--bs-hh) 0 120px;      /* 顶距正好等于页头高：面包屑一进场就是吸顶位 */
  min-width: 0;
  box-sizing: border-box;
}

/* 主题在 ≤1240 给 .page-container 补 16px 左右内距，这里跟着走 */
@media (max-width: 1240px) {
  .bs-layout-rail { padding-left: 16px; padding-right: 16px; }
}

/* 深空底：与首页同一套梯度。只落在页面背后，正文区保持透明。 */
html[data-theme="dark"] body.bridge-single--rail { background: #0A121C; }
html[data-theme="dark"] body.bridge-single--rail::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 118%, rgba(36, 68, 100, 0.40), transparent 62%),
    linear-gradient(180deg, #101B28 0%, #0D1520 58%, #0A121C 100%);
}
html[data-theme="dark"] body.bridge-single--rail .bs-layout-rail { color: var(--ra-ink); }
html[data-theme="dark"] body.bridge-single--rail .site-header {
  background: rgba(13, 21, 32, 0.78);
  border-bottom: 1px solid var(--ra-line-2);
  backdrop-filter: blur(14px) saturate(1.1);
}

/* 亮色皮肤：同一套版式，换成纸面（不做反相 —— 1.9.13 的教训） */
html[data-theme="light"] body.bridge-single--rail { background: #F4F6F8; }
html[data-theme="light"] .bs-layout-rail {
  --ra-ink: #101A24;
  --ra-ink-2: #1D2A36;
  --ra-mid: #2E3F4F;
  --ra-dim: #55687A;
  --ra-faint: #5E7185;
  --ra-cyan: #1B7FA6;
  --ra-line: rgba(22, 52, 80, 0.16);
  --ra-line-2: rgba(22, 52, 80, 0.09);
  --ra-panel: #F3F6F9;
  --ra-bg: #F4F6F8;
}

/* ============================================================
   右列 · 章节轨（1.9.18：从左侧三栏搬进右列，排在进度卡下方）
   ============================================================ */
.bs-rail {
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--ra-line-2);
}
.bs-rail.is-empty { display: none; }

.bs-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0 10px;
  font: 10px/1 var(--ra-mono);
  letter-spacing: 0.2em;
  color: var(--ra-faint);
}
.bs-rail__head em {
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--ra-dim);
}

.bs-rail__body {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
}

/* 轨道本体：只表示阅读进度，不再映射整篇文章高度 */
.bs-rail__map {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(126, 178, 214, 0.24), rgba(126, 178, 214, 0.10));
}
html[data-theme="light"] .bs-rail__map {
  background: linear-gradient(180deg, rgba(22, 52, 80, 0.18), rgba(22, 52, 80, 0.07));
}
.bs-rail__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, rgba(143, 219, 255, 0.28), rgba(143, 219, 255, 0.62) 72%, var(--ra-cyan));
  box-shadow: 0 0 14px rgba(143, 219, 255, 0.5);
}
html[data-theme="light"] .bs-rail__fill { box-shadow: none; }

.bs-rail__list {
  margin: 0;
  padding: 1px 8px 1px 20px;
  list-style: none;
  /* 面板顶到视口上限时列表自己滚。这个上限由 JS 按「视口 - 页头 - 卡片 - 轨道头」算，
     因为 .bs-side 只有 max-height（height:auto），flex 子项不会跟着缩 —— 只写 100% 会溢出。 */
  max-height: var(--rail-list-max, 58vh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 178, 214, 0.3) transparent;
  overscroll-behavior: contain;
}
.bs-rail__list::-webkit-scrollbar { width: 4px; }
.bs-rail__list::-webkit-scrollbar-thumb { background: rgba(126, 178, 214, 0.28); }

.bs-rail__item { position: relative; }

/* 刻度：贴在轨道上的短横，位置跟自己的行走 */
.bs-rail__item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 10px;
  height: 1px;
  margin-top: -0.5px;
  background: rgba(150, 198, 228, 0.5);
  transition: background 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}
html[data-theme="light"] .bs-rail__item::before { background: rgba(22, 52, 80, 0.32); }
.bs-rail__item.is-on::before {
  left: -20px;
  width: 15px;
  height: 2px;
  margin-top: -1px;
  background: var(--ra-cyan);
  box-shadow: 0 0 9px rgba(143, 219, 255, 0.85);
}
html[data-theme="light"] .bs-rail__item.is-on::before { box-shadow: none; }

.bs-rail__item button {
  width: 100%;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
  padding: 7px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ra-dim);
  transition: color 0.18s ease;
}
.bs-rail__no {
  font: 10.5px/1.5 var(--ra-mono);
  letter-spacing: 0.06em;
  color: var(--ra-faint);
  transition: color 0.18s ease;
}
.bs-rail__tx {
  font-size: 12.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bs-rail__item button:hover { color: var(--ra-ink-2); }
.bs-rail__item.is-on button { color: var(--ra-ink); }
.bs-rail__item.is-on .bs-rail__no { color: var(--ra-cyan); }
.bs-rail__item.is-on .bs-rail__tx { font-weight: 500; }

/* ============================================================
   中：正文
   ============================================================ */
.bs-layout-rail .bs-body {
  min-width: 0;
  max-width: 100%;
}

/* 父主题给正文套了一层卡片底（亮色白卡 / 暗色深卡），阅读轨不要这层壳：
   光要打在页面上，不打在卡片上。 */
.bs-layout-rail .single-article {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

/* ---- 首屏：光 · 第一次 ---- */
.bs-layout-rail .single-article__header {
  position: relative;
  isolation: isolate;
  padding: 24px 0 26px;
  --ra-mx: 0px;
  --ra-my: 0px;
}
.bs-layout-rail .single-article__header::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 26%;
  top: -172px;
  width: 29%;
  height: 560px;
  transform: rotate(18deg) translate3d(var(--ra-mx), var(--ra-my), 0);
  background: linear-gradient(90deg,
    rgba(143, 219, 255, 0) 0%,
    rgba(150, 222, 255, 0.14) 32%,
    rgba(200, 240, 255, 0.42) 46%,
    rgba(222, 248, 255, 0.58) 53%,
    rgba(150, 222, 255, 0.18) 66%,
    rgba(143, 219, 255, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.88) 52%, rgba(0, 0, 0, 0) 96%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.88) 52%, rgba(0, 0, 0, 0) 96%);
  filter: blur(20px);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bs-layout-rail .single-article__header::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: -40px;
  right: -40px;
  top: -60px;
  height: 420px;
  background: radial-gradient(54% 42% at calc(40% + var(--ra-mx)) calc(10% + var(--ra-my)),
    rgba(127, 212, 255, 0.14), transparent 70%);
  transition: background 0.5s ease;
}
/* 光层是绝对定位后代，文字必须自己抬一层，否则像素被压灰 */
.bs-layout-rail .single-article__header > * { position: relative; z-index: 1; }

html[data-theme="light"] .bs-layout-rail .single-article__header::before {
  background: linear-gradient(90deg,
    rgba(27, 127, 166, 0) 0%,
    rgba(27, 127, 166, 0.05) 32%,
    rgba(27, 127, 166, 0.13) 46%,
    rgba(27, 127, 166, 0.20) 53%,
    rgba(27, 127, 166, 0.06) 66%,
    rgba(27, 127, 166, 0) 100%);
}
html[data-theme="light"] .bs-layout-rail .single-article__header::after {
  background: radial-gradient(54% 42% at calc(40% + var(--ra-mx)) calc(10% + var(--ra-my)),
    rgba(27, 127, 166, 0.08), transparent 70%);
}

/* ---- 标题层级 ---- */
.bs-layout-rail .single-article__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.34;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ra-ink);
  text-shadow: 0 0 54px rgba(143, 219, 255, 0.10);
}
html[data-theme="light"] .bs-layout-rail .single-article__title { text-shadow: none; }

.bs-layout-rail .single-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ra-dim);
}
.bs-layout-rail .single-article__meta > span,
.bs-layout-rail .single-article__meta > a { display: inline-flex; align-items: center; }
.bs-layout-rail .single-article__meta > span + span::before,
.bs-layout-rail .single-article__meta > span + a::before {
  content: "";
  width: 1px;
  height: 11px;
  margin: 0 13px;
  background: rgba(126, 178, 214, 0.34);
  display: inline-block;
}
.bs-layout-rail .single-article__meta .single-article__cats a { color: var(--ra-cyan); text-decoration: none; }
.bs-layout-rail .single-article__meta .single-article__cats a:hover { text-decoration: underline; }

/* ---- 面包屑：钉在正文区左上角 ----
   1.9.18：JS 把它挪到 .bs-body 的第一位，然后靠 sticky 一直贴在页头下沿，
   读到哪里都看得见自己在哪一节。没有脚本时它还在正文原位，不影响阅读。 */
.bs-layout-rail .bs-crumb {
  position: sticky;
  top: var(--bs-hh);
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 16px 0 11px;
  border: 0;
  border-radius: 0;
  font: 11px/1 var(--ra-mono);
  letter-spacing: 0.1em;
  color: var(--ra-faint);
  background: linear-gradient(180deg, var(--ra-bg) 0%, var(--ra-bg) 76%, transparent 100%);
  white-space: nowrap;
  overflow: hidden;
}
.bs-layout-rail .bs-crumb a {
  color: var(--ra-faint);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.bs-layout-rail .bs-crumb a:hover { color: var(--ra-cyan); }
.bs-layout-rail .bs-crumb .seo-breadcrumb__sep { color: rgba(126, 178, 214, 0.42); flex: 0 0 auto; }
.bs-layout-rail .bs-crumb .seo-breadcrumb__current {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ra-dim);
}

/* ---- 正文排版 ---- */
.bs-layout-rail .single-article__content {
  counter-reset: ra-h2;
  padding-top: 26px;
  border-top: 1px solid var(--ra-line-2);
  font-size: 16.5px;
  line-height: 1.92;
  color: var(--ra-ink-2);
}
html[data-theme="dark"] .bs-layout-rail .single-article__content { color: #D8E8F6; }
.bs-layout-rail .single-article__content p { margin: 0 0 26px; }
.bs-layout-rail .single-article__content h2 {
  position: relative;
  margin: 58px 0 20px;
  font-size: clamp(20px, 1.5vw, 23px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--ra-ink);
  scroll-margin-top: calc(var(--bs-hh) + 40px);
}
.bs-layout-rail .single-article__content h2::before {
  counter-increment: ra-h2;
  content: counter(ra-h2, decimal-leading-zero);
  display: block;
  margin-bottom: 11px;
  font: 11px/1 var(--ra-mono);
  letter-spacing: 0.2em;
  color: var(--ra-cyan);
  opacity: 0.8;
}
.bs-layout-rail .single-article__content h3 {
  margin: 40px 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ra-ink-2);
}
.bs-layout-rail .single-article__content a {
  color: #9FE0FF;
  text-decoration: underline;
  text-decoration-color: rgba(143, 219, 255, 0.38);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.16s ease;
}
html[data-theme="light"] .bs-layout-rail .single-article__content a { color: #16708F; }
.bs-layout-rail .single-article__content a:hover { text-decoration-color: var(--ra-cyan); }
.bs-layout-rail .single-article__content strong { color: var(--ra-ink); font-weight: 600; }
.bs-layout-rail .single-article__content code {
  font-family: var(--ra-mono);
  font-size: 0.9em;
  padding: 1.5px 6px;
  border-radius: 2px;
  color: #CFEBFF;
  background: rgba(127, 212, 255, 0.10);
  border: 1px solid rgba(127, 212, 255, 0.16);
  /* 1.9.19：原来写 nowrap，手机上一条长命令（560px 宽）直接把版面撑到 578，
     横向滚动条就是这么来的。改成允许在任意处断行 —— 短的照样一行。 */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
html[data-theme="light"] .bs-layout-rail .single-article__content code {
  color: #14536B;
  background: rgba(27, 127, 166, 0.08);
  border-color: rgba(27, 127, 166, 0.16);
}
.bs-layout-rail .single-article__content ul,
.bs-layout-rail .single-article__content ol { margin: 0 0 26px; padding: 0; }
.bs-layout-rail .single-article__content ul { list-style: none; }
.bs-layout-rail .single-article__content ul li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid rgba(126, 178, 214, 0.10);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ra-mid);
}
html[data-theme="light"] .bs-layout-rail .single-article__content ul li {
  border-bottom-color: rgba(22, 52, 80, 0.08);
}
.bs-layout-rail .single-article__content ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 8px;
  height: 1px;
  background: rgba(126, 178, 214, 0.5);
}
.bs-layout-rail .single-article__content ul li:last-child { border-bottom: 0; }
.bs-layout-rail .single-article__content figure { margin: 42px 0; }
.bs-layout-rail .single-article__content figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ra-line);
  border-radius: 3px;
  background: #0E1721;
}
.bs-layout-rail .single-article__content figcaption {
  margin-top: 13px;
  padding-left: 14px;
  border-left: 2px solid rgba(127, 212, 255, 0.30);
  font-size: 12.5px;
  line-height: 1.78;
  color: var(--ra-faint);
}
.bs-layout-rail .single-article__content blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid rgba(127, 212, 255, 0.32);
  color: var(--ra-mid);
}
/* 文内目录卡在桌面被左右两栏取代；窄屏还给它（它就是手机上的「本文 N 节」） */
.bs-layout-rail .aerocore-toc-box { margin: 0 0 34px; }

/* ============================================================
   文末：光 · 第三次 + 行式列表
   ============================================================ */
.bs-end { position: relative; margin-top: 76px; }
.bs-pool {
  position: absolute;
  left: -120px;
  right: -120px;
  top: -186px;
  height: 220px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(64% 100% at 50% 100%,
    rgba(127, 212, 255, 0.28), rgba(127, 212, 255, 0.07) 48%, transparent 76%);
  opacity: 0;
  transition: opacity 1.2s ease;
}
html[data-theme="light"] .bs-pool {
  background: radial-gradient(64% 100% at 50% 100%,
    rgba(27, 127, 166, 0.12), rgba(27, 127, 166, 0.03) 48%, transparent 76%);
}
.bs-pool.is-on { opacity: 1; }
.bs-end__in { position: relative; z-index: 1; }

.bs-end__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
}
.bs-end__hd h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; color: var(--ra-ink); }
.bs-end__hd h2 span { margin-left: 8px; font: 10.5px/1 var(--ra-mono); letter-spacing: 0.18em; color: var(--ra-faint); }
.bs-end__hd a { font-size: 12.5px; color: var(--ra-dim); text-decoration: none; }
.bs-end__hd a:hover { color: var(--ra-ink); }

.bs-related { list-style: none; margin: 0; padding: 0; }
.bs-related li { border-bottom: 1px solid rgba(126, 178, 214, 0.12); }
.bs-related li:first-child { border-top: 1px solid rgba(127, 212, 255, 0.26); }
html[data-theme="light"] .bs-related li { border-bottom-color: rgba(22, 52, 80, 0.09); }
.bs-related a {
  display: grid;
  grid-template-columns: 46px 96px minmax(0, 1fr) 46px 16px;
  gap: 14px;
  align-items: center;
  padding: 13px 10px;
  color: var(--ra-ink-2);
  text-decoration: none;
  transition: background 0.16s ease;
}
.bs-related a:hover,
.bs-related a:focus-visible { background: rgba(127, 212, 255, 0.075); }
html[data-theme="light"] .bs-related a:hover { background: rgba(27, 127, 166, 0.06); }
.bs-related b { font: 11px/1 var(--ra-mono); letter-spacing: 0.1em; color: var(--ra-faint); }
.bs-related__cat {
  font-size: 12px;
  color: var(--ra-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-related__ttl {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.16s ease;
}
.bs-related a:hover .bs-related__ttl { color: var(--ra-ink); }
.bs-related time { font: 11px/1 var(--ra-mono); color: var(--ra-dim); }
.bs-related svg { color: var(--ra-faint); transition: color 0.16s ease, transform 0.16s ease; }
.bs-related a:hover svg { color: var(--ra-cyan); transform: translateX(3px); }

/* ============================================================
   右：一列（进度 + 章节轨），合成一块面板，整列吸顶
   ============================================================ */
.bs-side {
  position: sticky;
  top: calc(var(--bs-hh) + 24px);
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - var(--bs-hh) - 48px);
  padding: 20px 18px 16px;
  background: rgba(17, 28, 41, 0.72);
  border: 1px solid var(--ra-line-2);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(190, 228, 250, 0.08);
}
html[data-theme="light"] .bs-side {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(22, 52, 80, 0.05);
}
.bs-card { flex: 0 0 auto; }
.bs-card__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  font: 10px/1 var(--ra-mono);
  letter-spacing: 0.2em;
  color: var(--ra-faint);
}
.bs-pct {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font: 600 32px/1 var(--ra-mono);
  letter-spacing: -0.02em;
  color: var(--ra-ink);
}
.bs-pct em { font: 17px/1 var(--ra-mono); font-style: normal; letter-spacing: 0.02em; color: var(--ra-mid); }
.bs-bar { position: relative; height: 2px; margin: 16px 0 22px; background: rgba(126, 178, 214, 0.20); }
html[data-theme="light"] .bs-bar { background: rgba(22, 52, 80, 0.12); }
.bs-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, rgba(143, 219, 255, 0.5), var(--ra-cyan));
  box-shadow: 0 0 10px rgba(143, 219, 255, 0.5);
}
html[data-theme="light"] .bs-bar__fill { box-shadow: none; }

.bs-facts { margin: 0; }
.bs-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(126, 178, 214, 0.10);
  font-size: 12.5px;
  color: var(--ra-dim);
}
html[data-theme="light"] .bs-facts div { border-bottom-color: rgba(22, 52, 80, 0.08); }
.bs-facts div:last-child { border-bottom: 0; }
.bs-facts b { font: 12.5px/1 var(--ra-mono); font-weight: 500; color: var(--ra-ink-2); }

/* 桌面：章节就摆在下面，这颗按钮只在窄屏出现 */
@media (min-width: 1024px) {
  .bs-layout-rail .bs-toc-btn,
  .bs-layout-rail .bs-toc { display: none; }
}

.bs-toc-btn {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1;
  color: var(--ra-ink-2);
  background: rgba(127, 212, 255, 0.055);
  border: 1px solid rgba(127, 212, 255, 0.16);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
html[data-theme="light"] .bs-toc-btn {
  background: rgba(27, 127, 166, 0.05);
  border-color: rgba(27, 127, 166, 0.18);
}
.bs-toc-btn:hover {
  background: rgba(127, 212, 255, 0.12);
  border-color: rgba(127, 212, 255, 0.34);
  color: var(--ra-ink);
}
.bs-toc-btn span { font: 10px/1 var(--ra-mono); letter-spacing: 0.16em; color: var(--ra-faint); }

.bs-toc {
  display: none;
  margin-top: 10px;
  border: 1px solid var(--ra-line-2);
  border-radius: 2px;
  background: rgba(10, 18, 28, 0.55);
}
html[data-theme="light"] .bs-toc { background: rgba(255, 255, 255, 0.8); }
.bs-toc.is-open { display: block; }
.bs-toc button {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 11px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(126, 178, 214, 0.08);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ra-dim);
  cursor: pointer;
}
.bs-toc button:last-child { border-bottom: 0; }
.bs-toc button:hover { color: var(--ra-ink); background: rgba(127, 212, 255, 0.06); }
.bs-toc b { font: 10.5px/1.6 var(--ra-mono); font-weight: 400; color: var(--ra-faint); }

.bs-share {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(126, 178, 214, 0.10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
html[data-theme="light"] .bs-share { border-top-color: rgba(22, 52, 80, 0.08); }
.bs-share button {
  padding: 6px 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ra-faint);
  cursor: pointer;
}
.bs-share button:hover {
  color: var(--ra-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bs-share button.is-done { color: var(--ra-cyan); }

/* ============================================================
   降级
   ============================================================ */
@media (max-width: 1279px) {
  /* 7:3 保持不变，只把栏距和右栏内距收一点；宽度交给主题那 1200 的上限 */
  .bs-layout-rail { column-gap: 32px; padding-bottom: 110px; }
  .bs-side { padding: 17px 15px 14px; }
  .bs-rail__item button { grid-template-columns: 20px minmax(0, 1fr); gap: 6px; }
  .bs-rail__tx { font-size: 12px; }
}

@media (max-width: 1023px) {
  .bs-layout-rail {
    grid-template-columns: minmax(0, 1fr);
    /* 1.9.20：单栏也不自己套小框了，宽度跟主题一致（≤1240 那 16px 内距照旧），
       阅读尺度改由 .bs-body 那 806 兜住 —— 与桌面正文那一栏同一个行宽。 */
    max-width: 100%;
    padding: calc(var(--bs-hh) + 54px) 16px 110px;
  }
  .bs-layout-rail .bs-body { width: 100%; max-width: 806px; margin: 0 auto; }
  /* 章节轨收起来，改由卡片里那颗「本文目录」按钮顶上 */
  .bs-side {
    position: static;
    display: block;
    max-height: none;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    order: 0;
  }
  html[data-theme="light"] .bs-side { background: none; box-shadow: none; }
  .bs-rail { display: none; }
  /* 元信息改成页头下的常驻读数条 */
  .bs-card {
    position: fixed;
    top: var(--bs-hh);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 9px 20px;
    border: 0;
    border-bottom: 1px solid var(--ra-line-2);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(12px) saturate(1.1);
  }
  html[data-theme="dark"] .bs-layout-rail .bs-card { background: rgba(13, 21, 32, 0.9); }
  html[data-theme="light"] .bs-layout-rail .bs-card { background: rgba(247, 249, 251, 0.92); }
  .bs-card__label { display: none; }
  .bs-pct { font-size: 16px; }
  .bs-pct em { font-size: 11px; }
  .bs-bar { margin: 0; }
  .bs-facts { display: none; }
  .bs-toc-btn {
    width: auto;
    margin-top: 0;
    padding: 7px 11px;
    font-size: 12px;
    background: none;
    border-color: var(--ra-line-2);
  }
  .bs-share { display: none; }
  .bs-toc {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--bs-hh) + 46px);
    z-index: 31;
    margin: 0;
    max-height: 62vh;
    overflow: auto;
    border: 0;
    border-bottom: 1px solid var(--ra-line-2);
    backdrop-filter: blur(14px);
  }
  html[data-theme="dark"] .bs-layout-rail .bs-toc { background: rgba(11, 19, 29, 0.98); }
  .bs-toc button { padding: 12px 20px; font-size: 13px; }
  /* 窄屏顶上已经有常驻读数条了，面包屑再吸一层就是两条杠 —— 这里让它跟着正文滚 */
  .bs-layout-rail .bs-crumb { position: static; }
  .bs-layout-rail .single-article__header { padding-top: 24px; }
  /* 出血量必须 ≤ 容器内距：内距 1.9.20 起是 16（跟主题一致），出血就写 16，
     差 1px 就是一条横向滚动条 */
  .bs-pool { left: -16px; right: -16px; }
  .bs-layout-rail .single-article__header::after { left: -16px; right: -16px; }
}

@media (max-width: 767px) {
  .bs-layout-rail { padding: calc(var(--bs-hh) + 54px) 18px 90px; }
  .bs-layout-rail .single-article__header { padding: 20px 0 6px; }
  .bs-layout-rail .single-article__title { font-size: 26px; line-height: 1.4; }
  .bs-layout-rail .bs-crumb { font-size: 10.5px; padding: 13px 0 9px; }
  .bs-layout-rail .single-article__content { font-size: 16px; line-height: 1.88; }
  .bs-layout-rail .single-article__content h2 { margin: 44px 0 16px; }
  .bs-layout-rail .single-article__header::before { left: 6%; width: 46%; top: -120px; height: 420px; }
  /* 发光层别出血：手机差 2px 就是一条横向滚动条 */
  .bs-layout-rail .single-article__header::after { left: 0; right: 0; }
  .bs-related a { grid-template-columns: 34px minmax(0, 1fr) 42px; gap: 10px; padding: 12px 4px; }
  .bs-related__cat,
  .bs-related svg { display: none; }
  .bs-related__ttl { font-size: 14px; }
  .bs-pool { left: -18px; right: -18px; top: -90px; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .bs-layout-rail *,
  .bs-layout-rail *::before,
  .bs-layout-rail *::after { transition: none !important; animation: none !important; }
}

/* 桌面/平板双栏：右列章节轨在，正文里那张目录卡是重复的 */
@media (min-width: 1024px) {
  .bs-layout-rail .single-article__content > .aerocore-toc-box { display: none; }
}

/* ============================================================
   1.9.19 · 剥掉卡片壳的三处：上下篇 / 互动按钮 / 评论区
   ============================================================
   父主题这三块都是「卡片 + 圆角 + 主题色实心按钮」的 Web2 语言，
   放进光场这套细线 + 等宽小字 + 冰蓝的版式里很扎眼。这里全部改成
   同一套：细分割线、10px 以内的小字或等宽字、无圆角无投影。

   ⚠ 互动区是 Vue 挂的 #app-article-actions，只有 .article-actions 内部结构可控；
     浮栏只给 .article-actions 定位，绝不给 #app-article-actions 加 transform ——
     二维码/海报弹窗是 .article-actions-modal{position:fixed;inset:0}，
     祖上一旦有 transform 就会退化成相对那 52px 宽的浮栏定位。
   ============================================================ */

/* ---------- 一、去掉「上一篇 / 下一篇」卡片 ----------
   1.9.18 之前这里是两张带缩略图的卡；阅读轨文末已经有「接着读」行式列表，
   两处导航打架。display:none 顺带让缩略图的 background-image 不再请求。 */
.bs-layout-rail .post-nav-card { display: none; }

/* ---------- 二、互动按钮：平铺化（所有宽度） ---------- */
.bs-layout-rail #app-article-actions { position: static; }

.bs-layout-rail .article-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  margin: 30px 0 0;
  padding: 24px 0 6px;
  border-top: 1px solid var(--ra-line-2);
}
.bs-layout-rail .article-actions__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ra-dim);
  transition: color 0.18s ease;
}
.bs-layout-rail .article-actions__btn:hover { color: var(--ra-ink); }
/* 父主题给的是 44px 实心圆，这里退成裸图标 */
.bs-layout-rail .article-actions__icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}
.bs-layout-rail .article-actions__btn:hover .article-actions__icon { background: none; }
.bs-layout-rail .article-actions__icon svg { width: 18px; height: 18px; display: block; }
.bs-layout-rail .article-actions__label {
  font: 10px/1 var(--ra-mono);
  letter-spacing: 0.14em;
  color: var(--ra-faint);
  transition: color 0.18s ease;
}
.bs-layout-rail .article-actions__btn:hover .article-actions__label { color: var(--ra-cyan); }
.bs-layout-rail .article-actions__btn--liked,
.bs-layout-rail .article-actions__btn--favorited { color: var(--ra-cyan); }
.bs-layout-rail .article-actions__btn--liked:hover,
.bs-layout-rail .article-actions__btn--favorited:hover { color: var(--ra-cyan); }
.bs-layout-rail .article-actions__btn--liked .article-actions__icon,
.bs-layout-rail .article-actions__btn--favorited .article-actions__icon { background: none; }
.bs-layout-rail .article-actions__btn--liked .article-actions__label,
.bs-layout-rail .article-actions__btn--favorited .article-actions__label { color: var(--ra-cyan); }

/* ---------- 三、≥1360：同一组按钮立起来做左侧浮栏 ----------
   宽 52px、竖排、整列居中，不占正文一行。位置按内容宽推：
   1.9.20 容器就是主题那 1200 ⇒ 容器左缘 = 50% - 600，浮栏 52 宽、留 28 间隙
   ⇒ 浮栏左缘 = 50% - 600 - 28 - 52 = 50% - 680。

   ⚠ 1.9.19 写的是 50% - 624（按 1096 的容器算）。容器一放宽到 1200，
     这个值就会把浮栏压进正文 28px —— 数值必须跟着容器一起改。
   ⚠ 断点也跟着宽度走：容器 1200 两侧要各留 52 + 28，视口至少 1360 才放得下；
     1280 只剩 40 边距，塞不进去。所以断点 1280 → 1360。
   ⚠ 最窄那一档用 max() 兜一下：1360 时 50% - 680 正好是 0，会贴屏幕边，
     给 12 的下限；宁可间隙缩到 16，也别让按钮粘在窗口边上。 */
@media (min-width: 1360px) {
  .bs-layout-rail .article-actions {
    position: fixed;
    left: max(12px, calc(50% - 680px));
    top: 0;
    bottom: 0;
    height: max-content;
    margin: auto 0;               /* 上下 auto = 垂直居中（不用 transform） */
    width: 52px;
    z-index: 24;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 5px 0;
    border-top: 0;
    border: 1px solid var(--ra-line-2);
    border-radius: 3px;
    background: rgba(17, 28, 41, 0.72);
    box-shadow: inset 0 1px 0 rgba(190, 228, 250, 0.08);
    backdrop-filter: blur(12px) saturate(1.1);
  }
  html[data-theme="light"] .bs-layout-rail .article-actions {
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 1px 2px rgba(22, 52, 80, 0.05);
  }
  .bs-layout-rail .article-actions__btn {
    width: 100%;
    gap: 5px;
    padding: 10px 0 9px;
    border-bottom: 1px solid rgba(126, 178, 214, 0.10);
  }
  html[data-theme="light"] .bs-layout-rail .article-actions__btn {
    border-bottom-color: rgba(22, 52, 80, 0.08);
  }
  .bs-layout-rail .article-actions__btn:last-child { border-bottom: 0; }
  .bs-layout-rail .article-actions__btn:hover { background: rgba(127, 212, 255, 0.07); }
  html[data-theme="light"] .bs-layout-rail .article-actions__btn:hover {
    background: rgba(27, 127, 166, 0.05);
  }
  /* 竖排时标签只有 9.5px 才塞得进 52px，二维码三个字正好 28.5px */
  .bs-layout-rail .article-actions__label {
    font-size: 9.5px;
    letter-spacing: 0.02em;
    max-width: 46px;
    text-align: center;
  }
}

/* ============================================================
   四、评论区：与「接着读」同一套语言
   ============================================================
   父主题是白卡 + 圆角 + 实心主题色按钮 + 圆头像；这里改成
   细分割线、等宽小字、方正头像（2px），输入框和按钮都退成描边。
   ============================================================ */
.bs-layout-rail #app-comments { margin-top: 64px; }

.bs-layout-rail .comments-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* ---- 头 ---- */
.bs-layout-rail .comments-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 0 15px;
  border-bottom: 1px solid rgba(127, 212, 255, 0.26);
}
.bs-layout-rail .comments-header__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ra-ink);
}
.bs-layout-rail .comments-header__title-icon svg { width: 15px; height: 15px; }
.bs-layout-rail .comments-header__count {
  font: 10.5px/1 var(--ra-mono);
  letter-spacing: 0.18em;
  color: var(--ra-faint);
  background: none;
  padding: 0;
  border-radius: 0;
}

/* ---- 表单 ---- */
.bs-layout-rail .comments-form { margin-bottom: 26px; }
.bs-layout-rail .comments-form__guest { gap: 10px; margin-bottom: 10px; }
.bs-layout-rail .comments-form__input,
.bs-layout-rail .comments-form__textarea {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--ra-line);
  border-radius: 2px;
  background: rgba(10, 18, 28, 0.45);
  color: var(--ra-ink-2);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.7;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}
html[data-theme="light"] .bs-layout-rail .comments-form__input,
html[data-theme="light"] .bs-layout-rail .comments-form__textarea {
  background: rgba(255, 255, 255, 0.7);
}
.bs-layout-rail .comments-form__input::placeholder,
.bs-layout-rail .comments-form__textarea::placeholder { color: var(--ra-faint); }
.bs-layout-rail .comments-form__input:focus,
.bs-layout-rail .comments-form__textarea:focus {
  border-color: rgba(127, 212, 255, 0.44);
  background: rgba(127, 212, 255, 0.04);
}
html[data-theme="light"] .bs-layout-rail .comments-form__input:focus,
html[data-theme="light"] .bs-layout-rail .comments-form__textarea:focus {
  border-color: rgba(27, 127, 166, 0.44);
  background: rgba(27, 127, 166, 0.03);
}
.bs-layout-rail .comments-form__textarea { resize: vertical; min-height: 84px; }
.bs-layout-rail .comments-form__face-btn {
  font-size: 12px;
  color: var(--ra-faint);
  letter-spacing: 0.06em;
}
.bs-layout-rail .comments-form__face-btn:hover { color: var(--ra-cyan); }
.bs-layout-rail .comments-form__submit,
.bs-layout-rail .comment-reply-form__btns .comments-form__submit {
  padding: 8px 18px;
  background: none;
  border: 1px solid rgba(127, 212, 255, 0.34);
  border-radius: 2px;
  color: var(--ra-cyan);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
html[data-theme="light"] .bs-layout-rail .comments-form__submit {
  border-color: rgba(27, 127, 166, 0.34);
  color: #16708F;
}
.bs-layout-rail .comments-form__submit:hover {
  background: rgba(127, 212, 255, 0.10);
  border-color: rgba(127, 212, 255, 0.6);
  opacity: 1;
}
.bs-layout-rail .comments-form__submit:disabled { opacity: 0.45; }
.bs-layout-rail .comment-reply-form__cancel {
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--ra-line);
  border-radius: 2px;
  color: var(--ra-dim);
  font-size: 12.5px;
}
.bs-layout-rail .comment-reply-form__cancel:hover { background: rgba(127, 212, 255, 0.06); }

/* ---- 列表 ---- */
.bs-layout-rail .comments-list {
  border-top: 1px solid rgba(126, 178, 214, 0.14);
  padding-top: 0;
}
.bs-layout-rail .comment-item { border-bottom: 1px solid rgba(126, 178, 214, 0.10); }
html[data-theme="light"] .bs-layout-rail .comment-item {
  border-bottom-color: rgba(22, 52, 80, 0.08);
}
.bs-layout-rail .comment-item:last-child { border-bottom: 0; }
.bs-layout-rail .comment-main { gap: 14px; padding: 18px 0; }
.bs-layout-rail .comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  filter: saturate(0.8);
}
.bs-layout-rail .comment-meta { gap: 9px; margin-bottom: 7px; }
.bs-layout-rail .comment-author {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ra-ink);
}
.bs-layout-rail .comment-author__link:hover { color: var(--ra-cyan); }
.bs-layout-rail .comment-admin-badge { width: 14px; height: 14px; opacity: 0.85; }
.bs-layout-rail .comment-date {
  font: 10.5px/1 var(--ra-mono);
  letter-spacing: 0.1em;
  color: var(--ra-faint);
}
.bs-layout-rail .comment-pinned-tag {
  background: none;
  border-radius: 0;
  padding: 0;
  font: 9.5px/1 var(--ra-mono);
  letter-spacing: 0.14em;
  color: var(--ra-cyan);
}
.bs-layout-rail .comment-pending {
  background: none;
  border-radius: 0;
  padding: 0;
  border: 0;
  font: 9.5px/1 var(--ra-mono);
  letter-spacing: 0.1em;
  color: #E0B36A;
}
.bs-layout-rail .comment-content {
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--ra-ink-2);
}
.bs-layout-rail .comment-content a { color: #9FE0FF; }
html[data-theme="light"] .bs-layout-rail .comment-content a { color: #16708F; }
.bs-layout-rail .comment-actions { gap: 16px; margin-top: 8px; }
.bs-layout-rail .comment-reply-btn,
.bs-layout-rail .comment-like-btn,
.bs-layout-rail .comment-pin-btn {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ra-faint);
  padding: 2px 0;
}
.bs-layout-rail .comment-reply-btn:hover,
.bs-layout-rail .comment-like-btn:hover,
.bs-layout-rail .comment-pin-btn:hover { color: var(--ra-cyan); }
.bs-layout-rail .comment-like-btn:hover svg { stroke: var(--ra-cyan); }
.bs-layout-rail .comment-like-btn--active,
.bs-layout-rail .comment-like-btn--active:hover { color: var(--ra-cyan); }
.bs-layout-rail .comment-like-btn--active svg { stroke: var(--ra-cyan); fill: var(--ra-cyan); }
.bs-layout-rail .comment-pin-btn--active,
.bs-layout-rail .comment-pin-btn--active:hover { color: var(--ra-cyan); }
.bs-layout-rail .comment-pin-btn--active svg { stroke: var(--ra-cyan); }

/* ---- 子评论：父主题是灰底小圆角 + 小三角 ---- */
.bs-layout-rail .comment-children {
  margin-left: 48px;
  background: rgba(127, 212, 255, 0.035);
  border-radius: 2px;
  padding: 0 14px;
  border-left: 1px solid rgba(127, 212, 255, 0.18);
}
html[data-theme="light"] .bs-layout-rail .comment-children {
  background: rgba(27, 127, 166, 0.035);
  border-left-color: rgba(27, 127, 166, 0.16);
}
.bs-layout-rail .comment-children::before { content: none; }
.bs-layout-rail .comment-children .comment-main + .comment-main {
  border-top: 1px solid rgba(126, 178, 214, 0.10);
}

/* ---- 空态 / 分页 / 骨架 ---- */
.bs-layout-rail .comments-empty,
.bs-layout-rail .comments-loading {
  font-size: 13px;
  color: var(--ra-faint);
  padding: 34px 0;
}
.bs-layout-rail .comments-pagination {
  border-top: 1px solid rgba(126, 178, 214, 0.12);
  padding-top: 18px;
  margin-top: 18px;
}
.bs-layout-rail .comments-pagination__btn {
  background: none;
  border: 1px solid var(--ra-line);
  border-radius: 2px;
  color: var(--ra-dim);
  font-family: var(--ra-mono);
  font-size: 11.5px;
  height: 30px;
  min-width: 30px;
}
.bs-layout-rail .comments-pagination__btn:hover:not(:disabled) {
  background: rgba(127, 212, 255, 0.07);
  border-color: rgba(127, 212, 255, 0.34);
  color: var(--ra-ink);
}
.bs-layout-rail .comments-pagination__btn--active {
  border-color: rgba(127, 212, 255, 0.5);
  color: var(--ra-cyan);
  background: rgba(127, 212, 255, 0.08);
}
.bs-layout-rail .comments-skeleton__title,
.bs-layout-rail .comments-skeleton__textarea,
.bs-layout-rail .comments-skeleton__avatar,
.bs-layout-rail .comments-skeleton__line {
  background: rgba(126, 178, 214, 0.10);
  border-radius: 2px;
}
html[data-theme="light"] .bs-layout-rail .comments-skeleton__title,
html[data-theme="light"] .bs-layout-rail .comments-skeleton__textarea,
html[data-theme="light"] .bs-layout-rail .comments-skeleton__avatar,
html[data-theme="light"] .bs-layout-rail .comments-skeleton__line {
  background: rgba(22, 52, 80, 0.07);
}

/* ---------- 五、互动弹窗（二维码 / 海报 / 分享）----------
   这几个是 .article-actions-modal，Vue 打开时才挂进 DOM，可能被 teleport 到 body，
   所以用 body.bridge-single--rail 做作用域，不挂在 .bs-layout-rail 下面。
   父主题那张是「白玻璃 + 12px 圆角」，夜里弹出来是一块白板。 */

/* 弹窗可能被 teleport 到 body，拿不到 .bs-layout-rail 上的 --ra-* 令牌，这里就地补一套 */
body.bridge-single--rail .article-actions-modal__content {
  --ra-ink: #FFFFFF;
  --ra-dim: #A8C4DA;
  --ra-faint: #8FB2CC;
  --ra-cyan: #8FDBFF;
  --ra-line: rgba(126, 178, 214, 0.22);
  --ra-line-2: rgba(126, 178, 214, 0.12);
  --ra-mono: "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
html[data-theme="light"] body.bridge-single--rail .article-actions-modal__content {
  --ra-ink: #101A24;
  --ra-dim: #55687A;
  --ra-faint: #5E7185;
  --ra-cyan: #1B7FA6;
  --ra-line: rgba(22, 52, 80, 0.16);
  --ra-line-2: rgba(22, 52, 80, 0.09);
}
body.bridge-single--rail .article-actions-modal__overlay {
  background: rgba(6, 11, 18, 0.72);
  backdrop-filter: blur(3px);
}
body.bridge-single--rail .article-actions-modal__content {
  background: rgba(17, 28, 41, 0.94);
  border: 1px solid var(--ra-line);
  border-radius: 3px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(1.1);
  padding: 26px 24px;
}
body.bridge-single--rail .article-actions-modal__title,
body.bridge-single--rail .article-actions-modal__content h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ra-ink);
}
body.bridge-single--rail .article-actions-modal__close {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  color: var(--ra-faint);
  background: none;
  border: 1px solid transparent;
}
body.bridge-single--rail .article-actions-modal__close:hover {
  color: var(--ra-ink);
  border-color: var(--ra-line);
  background: rgba(127, 212, 255, 0.08);
}
body.bridge-single--rail .qrcode-image {
  border-radius: 2px;
  border: 1px solid var(--ra-line-2);
}
body.bridge-single--rail .qrcode-loading,
body.bridge-single--rail .poster-loading {
  font: 11px/1.8 var(--ra-mono);
  letter-spacing: 0.12em;
  color: var(--ra-faint);
}
body.bridge-single--rail .share-item {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ra-dim);
}
body.bridge-single--rail .share-item:hover { color: var(--ra-cyan); }
body.bridge-single--rail .poster-preview img { border-radius: 2px; }
body.bridge-single--rail .poster-download-btn {
  background: none;
  border: 1px solid rgba(127, 212, 255, 0.34);
  border-radius: 2px;
  color: var(--ra-cyan);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
body.bridge-single--rail .poster-download-btn:hover {
  background: rgba(127, 212, 255, 0.10);
  border-color: rgba(127, 212, 255, 0.6);
  color: var(--ra-cyan);
}
html[data-theme="light"] body.bridge-single--rail .article-actions-modal__content {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(22, 52, 80, 0.12);
  box-shadow: 0 24px 64px rgba(16, 30, 45, 0.18);
}

/* RAILFIX-BEGIN */
/* ============================================================
   1.9.22+ · 左侧互动浮栏可读性（2026-11-10）
   欢哥反馈「文字看不清」：原来是 #8FB2CC / 9.5px 等宽小字，
   在 rgba(17,28,41,.72) 的深底上又细又暗，图标也才 #A8C4DA。
   这里标签统一提亮到纯白、字号 9.5 → 12（横排 10 → 12），
   图标跟着 currentColor 一起亮到近白。
   集中放文件末尾覆盖，不动 1.9.19 的原声明，便于整体回滚。
   ============================================================ */
.bs-layout-rail .article-actions__btn { color: #E4EFF8; }
.bs-layout-rail .article-actions__label {
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}
@media (min-width: 1360px) {
  .bs-layout-rail .article-actions__label {
    font-size: 12px;
    letter-spacing: 0.02em;
    max-width: 46px;
  }
}
/* 万一哪天切回浅色：白字白底会瞎，兜一档深墨 */
html[data-theme="light"] .bs-layout-rail .article-actions__btn,
html[data-theme="light"] .bs-layout-rail .article-actions__label {
  color: #163450;
}
/* 注入的「评论」按钮与 Vue 按钮共用一套 hover 反馈 */
.bs-layout-rail .article-actions__btn[data-618a-comment-jump]:hover .article-actions__label {
  color: var(--ra-cyan);
}
/* RAILFIX-END */
