/* ══════════════════════════════════════
   kmmer post.css（由 main.css 按页面归属拆分生成，勿手工混写）
   重建：_ref/build_css_split.js  归因：_ref/css_split_plan.json
   ══════════════════════════════════════ */
.cat-child-wrap.cat-active > .nav-item::before {
  content: '';
  position: absolute;
  left: 14px; top: 50%;
  width: 3px; height: 14px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-50%);
  opacity: .9;
}
/* 旧的 .article-header 包裹层已移除，改由 .article-head 直接承载标题与 meta */
/* ── 文章标题强化：A 渐变眉标 + D 分类色竖条/光晕 + E 入场动画 ── */
.article-head { position: relative; animation: headIn 0.7s cubic-bezier(.2,.7,.2,1) both; }
.article-head-orb {
  position: absolute; top: -18px; right: -10px; width: 190px; height: 190px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 70%);
  filter: blur(46px); opacity: 0.16;
}
html.dark .article-head-orb { opacity: 0.12; }
.article-eyebrow {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.article-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.article-eyebrow a { color: inherit; text-decoration: none; }
.article-eyebrow a:hover { opacity: 0.75; }
.article-title {
  position: relative; z-index: 1;
  font-size: 26px; font-weight: 800;
  line-height: 1.45; margin-top: 8px; margin-bottom: 12px;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
html.dark .article-title {
  background: linear-gradient(120deg, #EEF1F8 0%, var(--accent) 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* 阅读底栏（sspai 风格）：仅 leftnav 文章页，向上滚动浮出「喜欢 / 评论 / 返回顶部」 */
#readerDock {
  position: fixed;
  left: var(--ln-nav-w, 0);
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
  z-index: 1200;
  pointer-events: none;
}
#readerDock .reader-bar-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.20);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateY(180%);
  opacity: 0;
  transition: transform .38s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}
#readerDock button {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent; cursor: pointer;
  color: var(--text); font-size: 14px; font-weight: 600; font-family: inherit;
  padding: 9px 15px; border-radius: 999px; line-height: 1;
  transition: background .15s, color .15s;
}
#readerDock button:hover { background: var(--accent-soft); color: var(--accent); }
#readerDock button i { font-size: 16px; }
#readerDock .rb-like.liked, #readerDock .rb-like.liked i { color: #ef4444; }
#readerDock .rb-sep { width: 1px; height: 18px; background: var(--border); opacity: .55; margin: 0 4px; }
@media (prefers-reduced-motion: reduce) {
  #readerDock .reader-bar-inner { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .article-head { animation: none; }
}
@media (max-width: 640px) {
  .article-head-orb { width: 130px; height: 130px; right: -4px; }
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-meta-item {
  font-size: 12px; color: var(--text-light);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.article-meta-item i { font-size: 11px; opacity: 0.7; }
.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px; margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.article-tags a {
  display: inline-block; padding: 4px 14px; font-size: 12px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius-pill); text-decoration: none; transition: all .15s;
}
.article-tags a:hover { background: var(--accent); color: #fff; }
.article-content {
  font-size: var(--reader-fs, 18px); line-height: var(--reader-lh, 1.9); color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  letter-spacing: 0.01em;
  padding-top: 4px;
}
.article-content p { margin-bottom: 16px; }
.article-content > img, .article-content p img {
  max-width: 100%; border-radius: var(--radius-sm); margin: 20px 0; cursor: pointer;
  display: block;
  max-height: none; object-fit: contain;
}
.photo-grid {
  display: grid !important; gap: 4px; border-radius: var(--radius-sm);
  overflow: hidden; margin: 20px 0; padding: 0;
}
.photo-grid.g7, .photo-grid.g8, .photo-grid.g9 { grid-template-columns: 1fr 1fr 1fr; }
.photo-item {
  aspect-ratio: 1 !important; overflow: hidden; cursor: pointer;
  background: rgba(0,0,0,0.03); position: relative;
  margin: 0 !important; padding: 0;
  opacity: 0; transform: translateY(16px);
}
.photo-item.card-visible {
  animation: cardFadeIn 0.4s ease both;
}
.photo-item img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block;
  margin: 0 !important; border-radius: 0 !important;
  transition: transform .3s;
}
.article-title-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.article-title-row .article-title { margin-bottom: 0; flex: 1; min-width: 0; }
.toc-inline-btn {
  flex-shrink: 0; width: 30px; height: 30px;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--glass-bg); color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all .2s;
}
.toc-inline-btn:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.toc-inline-btn.active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.toc-wrap {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, padding .35s ease, margin .35s ease, opacity .25s ease;
}
.toc-wrap.open {
  max-height: 70vh;
  padding: 10px 16px 14px;
  margin-bottom: 18px;
  opacity: 1;
  overflow-y: auto;
}
@media (min-width: 1240px) {
  .article.has-toc > .toc-wrap {
    position: fixed;
    top: 50%;
    right: 28px;
    width: 220px;
    z-index: 20;
    margin-bottom: 0;
    border-radius: var(--radius);
    transform: translateY(-50%);
    /* 弱化存在感：默认无背景卡片感，淡化交给目录项本身（当前章节保持常亮） */
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transition: background-color .25s ease, border-color .25s ease,
                box-shadow .25s ease, max-height .35s ease, padding .35s ease, margin .35s ease;
  }
  .article.has-toc > .toc-wrap:hover,
  .article.has-toc > .toc-wrap:focus-within {
    background: var(--glass-bg-strong);
    border-color: var(--glass-border);
    box-shadow: 0 12px 32px rgba(31, 45, 61, 0.14);
  }
  .article.has-toc > .toc-wrap.open {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
  html.dark .article.has-toc > .toc-wrap:hover,
  html.dark .article.has-toc > .toc-wrap:focus-within {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}
/* ── 评论区 (v2) ── */
/* ══════════════════════════════════════
   评论区 - 全新紧凑设计
   ══════════════════════════════════════ */
.cmt-section { margin-top: 24px; }
.cmt-section-head { margin-bottom: 16px; }
.cmt-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.cmt-title i { color: var(--accent); font-size: 14px; }
.cmt-empty {
  text-align: center; padding: 40px 20px;
  color: var(--text-light);
}
.cmt-empty i { font-size: 32px; display: block; margin-bottom: 10px; opacity: .4; }
.cmt-empty p { font-size: 13px; }
/* ── 回复提示条 ── */
.cmt-reply-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  margin-bottom: 8px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 12px; color: var(--accent); font-weight: 500;
}
.cmt-reply-bar > i:first-child {
  font-size: 12px; opacity: .6;
  transform: scaleX(-1);
}
.cmt-cancel-btn {
  margin-left: auto; background: none; border: none;
  color: var(--text-light); cursor: pointer;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 10px;
  transition: all .2s;
}
.cmt-cancel-btn:hover { background: rgba(0,0,0,0.08); color: var(--text); }
html.dark .cmt-cancel-btn:hover { background: rgba(255,255,255,0.1); }
/* ── 评论表单 - 全新设计 ── */
.cmt-form-area {
  margin-bottom: 20px;
  position: relative;
}
.cmt-form {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.cmt-form::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: var(--glass-highlight); z-index: 0;
}
.cmt-form > * { position: relative; z-index: 1; }
/* 输入框区域 */
.cmt-fields {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
}
.cmt-fields input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: none; border-right: 1px solid var(--border);
  background: transparent; color: var(--text);
  font-size: 13px; outline: none;
  font-family: inherit;
  transition: background .2s;
}
.cmt-fields input:last-child { border-right: none; }
.cmt-fields input:focus { background: transparent; }
.cmt-fields input::placeholder { color: var(--text-light); }
/* 文本域 */
.cmt-textarea-wrap textarea {
  width: 100%; padding: 12px 16px;
  border: none; background: transparent;
  color: var(--text); font-size: 13px;
  outline: none; resize: vertical;
  min-height: 80px; line-height: 1.7;
  font-family: inherit;
  transition: background .2s;
}
.cmt-textarea-wrap textarea:focus { background: transparent; }
.cmt-textarea-wrap textarea::placeholder { color: var(--text-light); }
/* 底部操作栏 */
.cmt-form-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  background: transparent;
}
.cmt-form-left {
  display: flex; align-items: center; gap: 2px;
}
.cmt-emoji-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--text-light); font-size: 14px;
  border-radius: 50%; cursor: pointer;
  transition: all .2s;
}
.cmt-emoji-btn:hover { color: var(--accent); background: var(--accent-soft); }
.cmt-hint { font-size: 10px; color: var(--text-light); opacity: 0.6; }
.cmt-submit {
  padding: 6px 18px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.cmt-submit:hover { background: var(--accent-hover); }
.cmt-submit:active { transform: scale(0.97); }
.cmt-submit:disabled { opacity: .6; cursor: not-allowed; }
/* ── Emoji 面板 ── */
.cmt-emoji-panel {
  display: none; flex-wrap: wrap; gap: 2px;
  padding: 10px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  max-width: 300px;
  position: absolute;
  bottom: 60px;
  left: 12px;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
html.dark .cmt-emoji-panel { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.cmt-emoji-item {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; cursor: pointer; border-radius: var(--radius-xs);
  transition: all .12s;
}
.cmt-emoji-item:hover {
  background: var(--accent-soft);
  transform: scale(1.18);
}
@media (max-width: 920px) {
  .article-title { font-size: 21px; line-height: 1.45; }
  /* 标题区整体下移：移动端 content-scroll 顶部仅 4px，标题贴顶栏太近，
     给标题块（含眉标/标题行）留出呼吸空间；文章页与单页共用此规则 */
  .article { padding-top: 20px; }
  .article-meta { gap: 4px; flex-wrap: wrap; }
  .article-meta-item { font-size: 10px; white-space: nowrap; }
  .article-content { font-size: calc(var(--reader-fs, 18px) - 1px); line-height: var(--reader-lh, 1.9); }
}
.article-content > p,
.article-content > h2,
.article-content > h3,
.article-content > h4,
.article-content > blockquote,
.article-content > pre,
.article-content > ul,
.article-content > ol,
.article-content > figure,
.article-content > img,
.article-content > .table-wrap,
.article-content > hr {
  opacity: 0;
  animation: waterfallIn 0.45s ease forwards;
}
.article-content > *:nth-child(1)  { animation-delay: 0s; }
.article-content > *:nth-child(2)  { animation-delay: 0.04s; }
.article-content > *:nth-child(3)  { animation-delay: 0.08s; }
.article-content > *:nth-child(4)  { animation-delay: 0.12s; }
.article-content > *:nth-child(5)  { animation-delay: 0.16s; }
.article-content > *:nth-child(6)  { animation-delay: 0.20s; }
@media (max-width: 380px) {
  .article-meta-item { font-size: 9px; }
  .article-meta-item i { font-size: 9px; }
}
/* Better mobile comments */
@media (max-width: 480px) {
  .cmt-textarea-wrap textarea { min-height: 70px; font-size: 16px; padding: 10px 12px; }
  .cmt-hint { display: none; }
  .cmt-submit { padding: 8px 16px; font-size: 13px; }
}
/* Like button */
.like-wrap { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 24px 0; margin: 8px 0; }
.like-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  cursor: pointer; transition: all .3s;
  font-size: 14px; color: var(--text-secondary);
  position: relative; overflow: visible;
}
.like-btn i { font-size: 18px; transition: all .3s; }
.like-btn:hover { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: #ef4444; }
.like-btn:hover i { color: #ef4444; transform: scale(1.15); }
.like-btn.liked { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #ef4444; }
.like-btn.liked i { color: #ef4444; }
.like-count { font-size: 13px; color: var(--text-light); padding-left: 8px; border-left: 1px solid var(--border); }
/* ══════════════════════════════════════
   文章信息卡片（独立卡片，位于文章与上/下一篇之间）+ 灯箱增强
   ══════════════════════════════════════ */
.article-info-card {
  margin: 0 0 20px;
  padding: 18px 20px 16px;
  border-radius: var(--radius, 14px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur, 20px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 20px));
  position: relative;
  overflow: hidden;
}
.article-info-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.aic-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px dashed var(--glass-border);
}
.aic-header i { color: var(--accent); font-size: 14px; }
.aic-cid { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--text-light); font-family: var(--font-mono, monospace); padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(0,0,0,.04); }
html.dark .aic-cid { background: rgba(255,255,255,.06); }
.aic-rows { display: flex; flex-direction: column; gap: 10px; }
.aic-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.7;
}
.aic-key {
  display: inline-flex; align-items: baseline; gap: 7px;
  white-space: nowrap;
  color: var(--text-light); font-weight: 500;
}
.aic-key i { color: var(--accent); font-size: 12px; width: 14px; text-align: center; flex-shrink: 0; }
.aic-key::after { content: '：'; }
.aic-value {
  display: block;
  color: var(--text);
  word-break: break-all;
  min-width: 0;
}
.aic-value a { color: var(--accent); text-decoration: none; padding: 2px 8px; border-radius: var(--radius-xs); background: rgba(39,92,234,.08); transition: all .2s; }
.aic-value a:hover { background: rgba(39,92,234,.18); color: var(--accent); }
.aic-permalink {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-mono, monospace);
  font-size: 12px; color: var(--text-secondary);
  padding: 3px 8px; border-radius: var(--radius-xs);
  background: rgba(0,0,0,.04); word-break: break-all;
  max-width: 100%;
}
html.dark .aic-permalink { background: rgba(255,255,255,.06); }
.aic-copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  vertical-align: middle; margin-left: 8px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer; transition: all .2s;
  flex-shrink: 0;
}
.aic-copy-btn:hover { background: var(--accent-hover, #4f46e5); transform: translateY(-1px); }
.aic-copy-btn.copied { background: #10b981; }
.aic-copy-btn i { font-size: 11px; }
@media (max-width: 640px) {
  .article-info-card { padding: 14px 16px 12px; }
  .aic-row { grid-template-columns: 92px minmax(0, 1fr); font-size: 12px; gap: 4px 8px; }
  .aic-value a { font-size: 12px; padding: 1px 6px; }
}
/* ══════════════════════════════════════
   上一篇 / 下一篇
   ══════════════════════════════════════ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--border, rgba(0,0,0,.06));
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg, rgba(255,255,255,.45));
  backdrop-filter: blur(var(--glass-blur, 20px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 20px));
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  min-width: 0;
}
.post-nav-empty {
  opacity: .5;
  cursor: default;
}
.post-nav-label {
  font-size: 12px;
  color: var(--text-light, #9ca3af);
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-nav-next .post-nav-label {
  justify-content: flex-end;
}
.post-nav-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #1f2937);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-nav-next {
  text-align: right;
}
/* 专栏内导航：label 用主题色标识顺序来自专栏目录（置顶/自定义排序） */
.post-nav-incol .post-nav-label {
  color: var(--accent, #6366f1);
  font-weight: 600;
}
.post-nav-incol .post-nav-label i { font-size: 11px; }
.post-nav-incol .post-nav-empty .post-nav-label { color: var(--text-light, #9ca3af); }
html.dark .post-nav-item {
  background: rgba(26,29,39,.6);
  border-color: rgba(255,255,255,.06);
}
html.dark .post-nav-title {
  color: #e5e7eb;
}
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
}
@media screen and (min-width: 921px) {
  .content-scroll .article:not(.standalone-page) { margin-top: 200px; }
}
/* ══════════════════════════════════════
   你可能喜欢（文章页最底部 · 同标签文章）
   ══════════════════════════════════════ */
.related-posts {
  margin-top: 26px;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--edge-light), var(--shadow-sm);
}
.related-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px;
}
.related-title {
  font-size: 17px; font-weight: 700; color: var(--text); margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.related-title i { color: var(--accent); font-size: 15px; }
.related-sub { font-size: 12.5px; color: var(--text-light); margin-left: auto; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.related-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass-bg-strong);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s, background .18s;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.related-cover {
  flex: 0 0 auto;
  width: 62px; height: 62px; border-radius: var(--radius-xs);
  overflow: hidden; background: rgba(125,140,160,0.12);
}
.related-cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 18px;
}
.related-body { min-width: 0; flex: 1; }
.related-card-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.45; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; color: var(--text-light);
}
.related-card-meta i { margin-right: 3px; }
@media (max-width: 600px) {
  .related-posts { padding: 14px 14px 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-sub { display: none; }
}
/* ── 文章页：所属专栏眉标 + 末尾「专栏归属 / 专栏目录」 ── */
.article-eyebrows { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.article-eyebrows .article-eyebrow { margin-bottom: 0; }
.article-eyebrow-col {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: none;
}
.article-eyebrow-col::before { display: none; }
.article-eyebrow-col i { font-size: 11px; }
/* 眉标「所属专栏」里的精选星标（1.4.1） */
.aec-col-featured {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; line-height: 16px;
  color: #fff; background: rgba(39, 92, 234, .92);
  padding: 1px 8px; border-radius: 20px; letter-spacing: .5px;
}
.aec-col-featured .fa-star { font-size: 9px; }
.post-column-box {
  margin: 18px 0 6px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius, 12px);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm, 0 1px 6px rgba(0,0,0,.05));
}
.pcb-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pcb-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.pcb-eyebrow i { color: var(--accent); }
.pcb-col-link {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 700;
  color: var(--accent); text-decoration: none;
  padding: 3px 12px; border-radius: 16px; background: var(--accent-soft);
  transition: background .18s, color .18s;
}
.pcb-col-link:hover { background: var(--accent); color: #fff; }
/* 文末「本文收录于」专栏链接旁的精选星标（1.4.1） */
.pcb-col-featured {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; line-height: 16px;
  color: #fff; background: rgba(39, 92, 234, .92);
  padding: 2px 9px; border-radius: 20px; letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(39, 92, 234, .28);
}
.pcb-col-featured .fa-star { font-size: 9px; }
.pcb-toc { counter-reset: pcb; }
.pcb-toc-title { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pcb-toc-title i { color: var(--accent); }
.pcb-toc-title em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-secondary); }
.pcb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.pcb-list li { display: flex; gap: 10px; align-items: baseline; counter-increment: pcb; border-radius: 8px; transition: background .15s; }
.pcb-list li::before { content: counter(pcb, decimal-leading-zero); flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; padding-left: 8px; }
.pcb-list li a { flex: 1; min-width: 0; padding: 7px 8px; text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.5; border-radius: 8px; transition: color .15s; }
.pcb-list li:hover { background: var(--accent-soft); }
.pcb-list li:hover a, .pcb-list li.is-current a { color: var(--accent); }
.pcb-list li.is-current { background: var(--accent-soft); }
.pcb-list li.is-current a { font-weight: 700; }
.pcb-extra { display: none; }
.pcb-toggle-input:checked ~ .pcb-extra { display: flex; }
.pcb-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  cursor: pointer; user-select: none; font-size: 13px; font-weight: 600; color: var(--accent);
}
.pcb-toggle-btn::before { content: "\25BE"; font-size: 11px; line-height: 1; transition: transform .2s; }
.pcb-toggle-input:checked ~ .pcb-toggle-btn::before { transform: rotate(180deg); }
.pcb-toggle-btn::after { content: "查看目录"; }
.pcb-toggle-input:checked ~ .pcb-toggle-btn::after { content: "收起目录"; }
.pcb-mark-current { background: var(--accent); color: #fff; }
.pcb-tt-label { display: inline-flex; align-items: center; gap: 7px; }
/* ══════════════════════════════════════
   阅读体验增强：偏好调节 / 继续阅读 / 划词引用
   ══════════════════════════════════════ */
/* ── 阅读偏好（文章 meta 下方小胶囊） ── */
.reader-prefs {
  display: inline-flex; align-items: center; gap: 2px;
  margin-top: 12px; padding: 3px 6px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 999px; font-size: 12px; color: var(--text-secondary);
}
.reader-prefs .rp-btn {
  border: none; background: transparent; color: inherit; cursor: pointer;
  height: 26px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; transition: background .15s, color .15s;
}
.reader-prefs .rp-btn:hover { background: var(--accent-soft); color: var(--accent); }
.reader-prefs .rp-fs { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.reader-prefs .rp-sep { width: 1px; height: 14px; background: var(--border); margin: 0 3px; }
/* ── 划词引用评论浮条 ── */
#quoteBar {
  position: fixed; z-index: 70;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
#quoteBar.show { opacity: 1; transform: none; pointer-events: auto; }
#quoteBar button {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  color: var(--text); font-size: 12.5px; font-weight: 600;
  height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.16);
  transition: color .15s, border-color .15s;
}
#quoteBar button i { color: var(--accent); }
#quoteBar button:hover { color: var(--accent); border-color: var(--accent); }
body.focus-mode .reader-prefs { display: none; }
body.focus-mode .article-title-row .toc-inline-btn { display: none; }
body.focus-mode .article.has-toc > .toc-wrap { display: none !important; }
body.focus-mode #readerDock { display: none !important; }
/* ── 移动端阅读底栏精简版（≤920px）：紧凑尺寸 + 安全区。
   底栏只有 喜欢/评论/返回顶部 三个按钮（「专注」已统一并入顶栏 .reader-prefs 胶囊，底栏无专注入口） ── */
@media (max-width: 920px) {
  #readerDock {
    left: 0;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  #readerDock .reader-bar-inner {
    gap: 1px;
    padding: 3px;
    max-width: calc(100vw - 24px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  }
  #readerDock button {
    gap: 4px;
    padding: 8px 11px;
    font-size: 13px;
  }
  #readerDock button i { font-size: 14px; }
  #readerDock button span { font-size: 12.5px; }
  #readerDock .rb-sep { height: 14px; margin: 0 2px; }
}
/* 移动端以双指捏合/双击为主，隐藏按钮避免遮挡 */
/* ═══ 收藏按钮（文章页，与「喜欢」并排） ═══ */
.bookmark-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  cursor: pointer; transition: all .3s;
  font-size: 14px; color: var(--text-secondary);
}
.bookmark-btn i { font-size: 18px; transition: all .3s; }
.bookmark-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.bookmark-btn:hover i { transform: scale(1.15); }
.bookmark-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.bookmark-btn.active i { color: var(--accent); }
@media (max-width: 640px) {
  .bookmark-btn { padding: 12px 20px; }
}

/* ══════════════════════════════════════════════════════════
   专栏卡片 —— ColumnSeries 短代码 [column slug="x"] 的渲染结果
   （mode="compact" 为紧凑卡）

   为什么放 post.css 而不是 base.css：
   卡片只出现在 .article-content 里，而 post.css 恰好在 $this->is('single')
   时加载、且排在 base.css 之后 —— 这样 .column-embed 系列规则天然压过
   .article-content p 之类的正文规则，不必动 !important。

   封面为什么是背景图而不是 <img>：
   卡片位于 .article-content 内，任何 <img> 都会被主题的灯箱
   （main.v2.js 收集 .article-content img）与图片评论徽标接管，
   于是专栏封面会混进正文图集、还被挂上评论按钮。背景图避开整条链路。

   颜色全部走主题变量，深色模式自动跟随，无需另写 html.dark 分支。
   ══════════════════════════════════════════════════════════ */
.column-embed {
  position: relative;
  display: flex;
  gap: 16px;
  margin: 24px 0;
  padding: 16px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.column-embed:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.column-embed-cover {
  flex: none;
  width: 132px;
  min-height: 96px;
  border-radius: var(--radius-sm, 10px);
  background-color: var(--accent-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.column-embed-cover.is-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}
.column-embed-cover.is-initial span {
  color: #fff;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.column-embed-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.column-embed-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
}
.column-embed-name:hover { color: var(--accent); }
.column-embed-intro {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.column-embed-meta {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-light);
}

.column-embed-list {
  margin: 2px 0 0;
  padding: 8px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.column-embed-list li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.column-embed-list li::before {
  content: '';
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
  transform: translateY(-2px);
}
.column-embed-list li a {
  color: var(--text-secondary);
  text-decoration: none;
}
.column-embed-list li a:hover { color: var(--accent); }

.column-embed-more {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
}
.column-embed-more:hover { color: var(--accent-hover); }

/* 紧凑卡：一行说清，不打断阅读节奏 */
.column-embed.is-compact {
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm, 10px);
}
.column-embed.is-compact .column-embed-name { flex: none; font-size: 15px; }
.column-embed.is-compact .column-embed-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.column-embed.is-compact .column-embed-go {
  flex: none;
  font-size: 12.5px;
  color: var(--accent);
  white-space: nowrap;
}
.column-embed.is-compact:hover .column-embed-go { color: var(--accent-hover); }

@media (max-width: 640px) {
  .column-embed { gap: 12px; padding: 13px; margin: 20px 0; }
  .column-embed-cover { width: 84px; min-height: 84px; }
  .column-embed-cover.is-initial span { font-size: 26px; }
  .column-embed-name { font-size: 15px; }
  /* 小屏收起文章目录，只留名称与入口，避免卡片在窄栏里显得过高 */
  .column-embed-list { display: none; }
  .column-embed.is-compact { flex-wrap: wrap; gap: 6px; }
  .column-embed.is-compact .column-embed-meta { flex-basis: 100%; order: 3; }
}

/* ── 1.4.x 精选专栏 ─────────────────────────────────────────
   完整卡：右上角折角丝带（1.4.2 起，替代原名称旁内联胶囊）；
   紧凑卡是一行式链接，无法挂角标，仍用名称旁内联小胶囊。 */
.column-embed-titlerow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.column-embed-featured {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.column-embed-featured .fa-star { font-size: 10px; }

/* 完整卡右上角折角丝带：容器自剪裁，卡片无需 overflow:hidden；
   颜色走主题 accent 基准，深色模式自动跟随 */
.column-embed-ribbon {
  position: absolute;
  top: 0; right: 0;
  width: 58px; height: 58px;
  pointer-events: none;
}
.column-embed-ribbon::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  border-left: 58px solid transparent;
  border-top: 58px solid rgba(39, 92, 234, .95);
}
.column-embed-ribbon > span {
  position: absolute;
  top: 14px; right: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  transform: rotate(45deg);
}
