/*
 * 合集（书）板块样式
 * 书库封面墙 / 目录 / 书内阅读页
 *
 * 配色沿用站点（正文 #333、链接青 #0085A1），另外引入一组「纸与墨」的辅助色，
 * 让这一块看起来像书而不是像列表。所有选择器都带 bc- 前缀，避免撞上主题样式。
 */

/*
 * 注意：这组「纸与墨」辅助色必须挂在全局作用域。
 * 之前只写在 .bc-hero 里，导致 .bc-floattoc（悬浮目录，独立于页头之外）
 * 里的 var(--bc-ink) 等全部解析为空，横线/文字掉色，务必不要再塞回某个块级作用域。
 */
:root {
    --bc-ink: #2b3135;
    --bc-paper: #faf8f2;
    --bc-line: #e6e1d6;
    --bc-muted: #8b8b8b;
    --bc-gold: #9a7b4f;
    --bc-accent: #0085A1;
}

.bc-hero {
    background: var(--bc-paper);
    border-bottom: 1px solid var(--bc-line);
    padding: 96px 0 44px;
}

.bc-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bc-gold);
}

.bc-hero-title {
    margin: 0;
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: .04em;
    color: var(--bc-ink);
}

.bc-hero-lead {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: #5f6467;
}

/* ------------------------------------------------------------------ */
/* 封面（纯 CSS 生成 / 上传图）                                         */
/* ------------------------------------------------------------------ */
.bc-cover,
.bc-cover-img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 2px;
    box-shadow: 0 8px 20px rgba(40, 40, 40, .16), 0 1px 2px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.bc-cover-img {
    object-fit: cover;
}

.bc-cover {
    position: relative;
    color: #fff;
    padding: 26px 24px 22px;
    display: flex;
}

/* 书脊：左侧一道压暗的窄边，加一条烫金细线 */
.bc-cover-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 11px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0));
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.bc-cover-inner {
    margin: auto;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .34);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.bc-cover-title {
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: .06em;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-cover-rule {
    display: block;
    width: 26px;
    height: 1px;
    background: rgba(255, 255, 255, .55);
}

.bc-cover-sub {
    font-size: 11px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-cover-author {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .72);
}

/* 四套封面配色，按书号轮换 */
.bc-cover--0 { background: linear-gradient(155deg, #33544c 0%, #1b2f2b 100%); }
.bc-cover--1 { background: linear-gradient(155deg, #8a5a3b 0%, #55321f 100%); }
.bc-cover--2 { background: linear-gradient(155deg, #33456b 0%, #1a2338 100%); }
.bc-cover--3 { background: linear-gradient(155deg, #4d5a62 0%, #262f34 100%); }

/* ------------------------------------------------------------------ */
/* 书库：封面墙                                                        */
/* ------------------------------------------------------------------ */
.bc-page {
    padding-top: 36px;
    padding-bottom: 64px;
}

.bc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 38px 30px;
}

.bc-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bc-card:hover,
.bc-card:focus {
    color: inherit;
    text-decoration: none;
}

.bc-card-cover {
    transition: transform .28s ease, box-shadow .28s ease;
}

.bc-card:hover .bc-card-cover {
    transform: translateY(-5px);
}

.bc-card-title {
    margin: 14px 0 4px;
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
    color: #26292b;
}

.bc-card:hover .bc-card-title {
    color: var(--bc-accent, #0085A1);
}

.bc-card-sub {
    margin: 0 0 6px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #8b8b8b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-card-meta {
    margin: 0;
    font-size: 12px;
    color: #a3a3a3;
}

.bc-dot {
    margin: 0 .45em;
    color: #c4c4c4;
}

.bc-badge {
    display: inline-block;
    margin-left: .5em;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 1.6;
    color: #8a6a3a;
    background: #f6efe1;
    border: 1px solid #e8dcc4;
    border-radius: 2px;
}

.bc-badge--inline {
    margin: 0 0 10px;
}

/* ------------------------------------------------------------------ */
/* 目录页                                                              */
/* ------------------------------------------------------------------ */
.bc-hero--book {
    padding: 92px 0 46px;
}

.bc-head-cover {
    max-width: 240px;
    margin-bottom: 26px;
}

.bc-book-title {
    margin: 0 0 8px;
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: .03em;
    color: var(--bc-ink);
}

.bc-book-sub {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.7;
    color: #666b6e;
}

.bc-book-meta {
    margin: 0 0 18px;
    font-size: 12.5px;
    letter-spacing: .04em;
    color: var(--bc-muted);
}

.bc-book-intro {
    max-width: 640px;
    font-size: 15px;
    line-height: 1.95;
    color: #4a4f52;
}

.bc-book-intro p {
    margin: 0 0 .7em;
}

.bc-quotes {
    max-width: 620px;
    margin: 20px 0 4px;
    padding: 2px 0 2px 16px;
    border-left: 3px solid var(--bc-gold);
}

.bc-quote {
    margin: 0 0 6px;
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 14.5px;
    line-height: 1.9;
    color: #5a5f62;
}

.bc-quote::before { content: "「"; color: var(--bc-gold); margin-right: -.42em; }
.bc-quote::after  { content: "」"; color: var(--bc-gold); margin-left: -.42em; }

.bc-book-cta {
    margin: 26px 0 0;
}

.bc-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    letter-spacing: .08em;
    color: #fff !important;
    background: var(--bc-ink);
    border-radius: 2px;
    text-decoration: none !important;
    transition: background .2s ease;
}

.bc-btn:hover {
    background: var(--bc-accent);
}

.bc-btn--ghost {
    color: var(--bc-ink) !important;
    background: transparent;
    border: 1px solid var(--bc-ink);
}
.bc-btn--ghost:hover {
    color: #fff !important;
    background: var(--bc-ink);
}

.bc-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 10px 0 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bc-ink);
}

.bc-section-head h2 {
    margin: 0;
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 22px;
    letter-spacing: .12em;
    color: var(--bc-ink);
}

.bc-section-note {
    font-size: 12.5px;
    color: var(--bc-muted);
}

.bc-part {
    margin: 34px 0 2px;
    padding-bottom: 8px;
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 16px;
    letter-spacing: .14em;
    color: var(--bc-gold);
    border-bottom: 1px solid var(--bc-line);
}

.bc-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bc-toc-item a {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 15px 10px 15px 6px;
    border-bottom: 1px solid var(--bc-line);
    color: inherit;
    text-decoration: none;
    transition: background .18s ease;
}

.bc-toc-item a:hover {
    background: rgba(0, 0, 0, .022);
    text-decoration: none;
    color: inherit;
}

.bc-toc-num {
    font-family: Lora, Georgia, serif;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .06em;
    color: #b08a5a;
    padding-top: 3px;
}

.bc-toc-main { min-width: 0; }

.bc-toc-title {
    display: block;
    font-size: 16.5px;
    line-height: 1.55;
    color: #26292b;
}

.bc-toc-item a:hover .bc-toc-title {
    color: var(--bc-accent);
}

.bc-toc-quote {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #9a9a9a;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bc-toc-date {
    font-size: 12px;
    color: #b8b8b8;
    padding-top: 6px;
    white-space: nowrap;
}

.bc-toc--compact .bc-toc-item a {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 10px 8px;
}

.bc-toc--compact .bc-toc-title { font-size: 14.5px; }

.bc-toc-item.is-current a {
    background: #f4f1e8;
}

.bc-toc-item.is-current .bc-toc-title {
    font-weight: 700;
    color: var(--bc-ink);
}

/* ------------------------------------------------------------------ */
/* 阅读页                                                              */
/* ------------------------------------------------------------------ */
.bc-read-head {
    --bc-ink: #2b3135;
    --bc-line: #e6e1d6;
    --bc-gold: #9a7b4f;
    background: #faf8f2;
    border-bottom: 1px solid var(--bc-line);
    padding: 84px 0 32px;
}

.bc-read-crumb {
    margin: 0 0 18px;
    font-size: 12.5px;
    letter-spacing: .04em;
    color: #9a9a9a;
}

.bc-read-crumb a {
    color: #8a8a8a;
    text-decoration: none;
}

.bc-read-crumb a:hover { color: var(--bc-accent); }

.bc-slash {
    margin: 0 .5em;
    color: #cfcfcf;
}

.bc-progress {
    height: 2px;
    background: #e9e4d8;
    margin: 0 0 12px;
    overflow: hidden;
}

.bc-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #c9a76a, #9a7b4f);
}

.bc-read-pos {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--bc-gold, #9a7b4f);
}

.bc-read-part {
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: .18em;
    color: #a6a09a;
}

.bc-read-title {
    margin: 0 0 12px;
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: .02em;
    color: #26292b;
}

.bc-read-meta {
    margin: 0;
    font-size: 12.5px;
    color: #9a9a9a;
}

.bc-read-meta a { color: #8a8a8a; }

.bc-epigraph {
    margin: 0 0 34px;
    padding: 16px 20px;
    background: #faf7f1;
    border-left: 3px solid #9a7b4f;
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 15px;
    line-height: 1.9;
    color: #4f5457;
}

.bc-epigraph p {
    margin: 0 0 4px;
}

.bc-epigraph p:last-child { margin-bottom: 0; }

.bc-epigraph p::before { content: "「"; color: #b08a5a; margin-right: -.42em; }
.bc-epigraph p::after  { content: "」"; color: #b08a5a; margin-left: -.42em; }

.bc-prose {
    font-size: 16.5px;
    line-height: 1.95;
    color: #33383b;
}

.bc-prose img {
    max-width: 100%;
    height: auto;
}

.bc-read-mod {
    margin: 42px 0 0;
    padding-top: 14px;
    border-top: 1px solid #ece8de;
    font-size: 12px;
    letter-spacing: .04em;
    color: #a8a8a8;
}

.bc-read-mod a { color: #9a9a9a; }

.bc-readnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 26px 0 8px;
}

.bc-nav-card {
    display: block;
    padding: 14px 16px;
    min-height: 76px;
    border: 1px solid #e6e1d6;
    border-radius: 3px;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.bc-nav-card:hover {
    border-color: #c9c2b2;
    background: #fbfaf6;
    color: inherit;
    text-decoration: none;
}

.bc-nav-dir {
    display: block;
    font-size: 11.5px;
    letter-spacing: .08em;
    color: #a8a8a8;
}

.bc-nav-title {
    display: block;
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #2b3135;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-nav-next { text-align: right; }

.bc-nav-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    color: #bdbdbd;
    font-size: 12.5px;
}

.bc-inline-toc {
    margin: 30px 0 0;
    border: 1px solid #ece8de;
    border-radius: 3px;
    background: #fdfcf8;
}

.bc-inline-toc > summary {
    cursor: pointer;
    padding: 12px 16px;
    font-size: 13px;
    letter-spacing: .1em;
    color: #6f6f6f;
    outline: none;
}

.bc-inline-toc > summary::marker { color: #c0b8a6; }

.bc-inline-toc > summary:hover { color: var(--bc-accent); }

.bc-inline-toc[open] > summary { border-bottom: 1px solid #ece8de; }

.bc-inline-toc .bc-toc { padding: 4px 12px 10px; }

.bc-inline-toc .bc-toc-item:last-child a { border-bottom: 0; }

/* ------------------------------------------------------------------ */
/* 动态悬浮目录（WorkBuddy 侧边大纲观感）                              */
/* 收起：右侧一排浅灰细横线——它们就是「每一行自己的尾巴」              */
/* 展开：整块纸色面板向左滑出，每行 = 标题(截断省略) + 右侧一条短横线   */
/* 实现关键：外壳 320px 宽 + overflow:hidden；内容板 right:0 并向左平移 */
/* (100% - 26px)，折叠时只剩内容板最右 26px（尾巴区）留在视口边缘。     */
/* ------------------------------------------------------------------ */
/* 每一行都是独立的抽屉：                                              */
/*   折叠 = 行宽只有 30px，内容 justify-end，于是只剩自己的短横线露在最右； */
/*   悬停 = 行宽展到 320px，因为内容贴右、溢出被裁切，视觉上就是向右Option… */
/*   更像「从右往左滑出」。行与行互不牵连，各自对应自己的 hover。         */
.bc-floattoc {
    position: fixed;
    top: 84px;
    right: 0;
    bottom: 20px;
    width: 320px;
    z-index: 60;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    pointer-events: none;        /* 容器透传点击，只有行自身可交互 */
}
.bc-floattoc::-webkit-scrollbar { width: 0; height: 0; }

/* 一旦铺开，整块就是一张实心面板：容器自己也接收事件。
   否则面板里的任何微小空隙（尤其是透明的卷名行）都会让 hit-test 落到 body，
   容器 mouseleave 立刻触发 → 目录瞬间收起。*/
.bc-floattoc.is-all-open { pointer-events: auto; }

.bc-floattoc__item {
    /* 显式锁盒模型：bootstrap 会设全局 border-box，而 anthology.css 也可能被单独引入，
       不锁的话 30px 折叠宽度会变成 30+26(内边距)，横线位置就飘了 */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;   /* 内容永远贴右缘，展开时才向左生长 */
    gap: 10px;
    width: 34px;                 /* 折叠宽度 = 只够露出一条横线（稍宽一点好瞄准） */
    height: 28px;                /* 行距 ≈ 参照图的横线间距 */
    margin-left: auto;
    padding: 0 10px 0 18px;      /* 右边距 10px = 横线在 34px 窄带里左右居中 */
    overflow: hidden;
    color: #73787d;
    text-decoration: none;
    background: transparent;
    border-radius: 10px 0 0 10px;
    pointer-events: auto;
    /* --bc-delay 由 JS 按「离指针多少行」写入，越远越晚展开 → 波浪扩散 */
    transition: width .26s cubic-bezier(.22, .61, .36, 1),
                background-color .2s ease, box-shadow .2s ease;
    transition-delay: var(--bc-delay, 0ms);
}
.bc-floattoc__item:hover,
.bc-floattoc__item:focus-within {
    width: 320px;
    background: #fffdf9;
    box-shadow: -10px 8px 26px rgba(26, 24, 20, .18);
}

/* 全部展开态：行与行首尾相接成一块目录板。
   此时不再各自投影（相邻行之间会露出阴影接缝），改用 inset 描边画出左边界，
   背景由每一行自己补上，所以面板是「一行一行长出来」的，而不是整块空壳先出现。 */
.bc-floattoc.is-all-open .bc-floattoc__item {
    width: 320px;
    background: #fffdf9;
    border-radius: 0;
    box-shadow: inset 1px 0 0 var(--bc-line);
    transition-delay: var(--bc-delay, 0ms);
}
.bc-floattoc.is-all-open .bc-floattoc__item:hover,
.bc-floattoc.is-all-open .bc-floattoc__item:focus-within {
    background: #f4f1e8;
    color: #3a3f42;
}
.bc-floattoc.is-all-open > :first-child { border-radius: 14px 0 0 0; }
.bc-floattoc.is-all-open > :last-child  { border-radius: 0 0 0 14px; }

.bc-floattoc__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 折叠态唯一可见的东西：贴最右、在 30px 窄带里水平居中 */
.bc-floattoc__rule {
    flex: none;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #d6d1c6;
    transition: background-color .18s ease, width .18s ease;
}
.bc-floattoc__item:hover { color: #3a3f42; }
.bc-floattoc__item:hover .bc-floattoc__rule { background: #a9a29a; }

/* 当前篇：文字加粗转墨色 + 横线加长转墨色（无背景色块） */
.bc-floattoc__item.is-current .bc-floattoc__title {
    font-weight: 700;
    color: var(--bc-ink);
}
.bc-floattoc__item.is-current .bc-floattoc__rule {
    width: 18px;
    background: var(--bc-ink);
}

/* 卷名：本身没有横线，折叠态不可见；一旦与目录交互就淡出卷名作为分组提示 */
.bc-floattoc__part {
    display: flex;
    align-items: center;
    height: 26px;
    padding: 0 10px 0 18px;
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--bc-gold);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, background-color .2s ease;
    transition-delay: var(--bc-delay, 0ms);
}
.bc-floattoc:hover .bc-floattoc__part,
.bc-floattoc.is-all-open .bc-floattoc__part {
    opacity: 1;
}
/* 全部展开时卷名行也要补上同一块底色，否则板上会留一道透明缝 */
.bc-floattoc.is-all-open .bc-floattoc__part {
    background: #fffdf9;
    box-shadow: inset 1px 0 0 var(--bc-line);
    transition-delay: var(--bc-delay, 0ms);
}

/* 窄屏没有 hover 且宽度不够，退回底部内联目录 */
@media (max-width: 899px) {
    .bc-floattoc { display: none; }
}

/* 宽屏：悬浮目录已承担导航，隐藏底部内联 <details> 目录避免重复 */
@media (min-width: 900px) {
    .bc-inline-toc { display: none; }
}

.bc-empty {
    padding: 44px 0;
    color: #a0a0a0;
    font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* 导出 PDF：选项 + 进度遮罩                                            */
/* ------------------------------------------------------------------ */
.bc-export-opt {
    margin-left: 14px;
    font-size: 13px;
    color: var(--bc-muted);
    cursor: pointer;
    user-select: none;
}

.bc-export-opt input { vertical-align: -1px; margin-right: 4px; }

.bc-pdf-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 33, 35, .55);
    backdrop-filter: blur(2px);
}

.bc-pdf-overlay[hidden] { display: none; }

.bc-pdf-modal {
    width: 360px;
    max-width: 86vw;
    padding: 30px 30px 26px;
    background: #fffdf9;
    border: 1px solid var(--bc-line);
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(20, 20, 20, .28);
    text-align: center;
}

.bc-pdf-title {
    margin: 0 0 14px;
    font-family: Lora, "Songti SC", "Noto Serif CJK SC", serif;
    font-size: 18px;
    letter-spacing: .08em;
    color: var(--bc-ink);
}

.bc-pdf-label {
    margin: 0 0 14px;
    min-height: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #6f6f6f;
}

.bc-pdf-bar {
    height: 8px;
    background: #ece8de;
    border-radius: 5px;
    overflow: hidden;
}

.bc-pdf-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c9a76a, #9a7b4f);
    border-radius: 5px;
    transition: width .35s ease;
}

.bc-pdf-pct {
    margin: 10px 0 18px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--bc-gold);
}

.bc-pdf-cancel {
    padding: 7px 20px;
    font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* 窄屏                                                                */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
    .bc-hero,
    .bc-hero--book { padding: 74px 0 30px; }

    .bc-hero-title { font-size: 34px; }
    .bc-book-title { font-size: 28px; }
    .bc-read-title { font-size: 24px; }

    .bc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
    }

    .bc-cover,
    .bc-cover-img { aspect-ratio: 3 / 4; }
    .bc-cover { padding: 16px 12px 14px; }
    .bc-cover-title { font-size: 15px; }
    .bc-cover-sub { display: none; }

    .bc-head-cover {
        max-width: 170px;
        margin: 0 auto 20px;
    }

    .bc-toc-item a {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 13px 4px;
    }

    .bc-toc-date { display: none; }
    .bc-toc-title { font-size: 15.5px; }
    .bc-toc-quote { white-space: normal; }

    .bc-readnav { grid-template-columns: 1fr; }
    .bc-nav-next { text-align: left; }
    .bc-prose { font-size: 16px; line-height: 1.9; }
}

/* ------------------------------------------------------------------ */
/* 顶部导航栏（仅文集页）                                               */
/* clean-blog 的 .navbar-custom 顶部是透明背景 + 白字，靠大图深背景才看得 */
/* 清；文集页头是浅米色，白字会糊掉。这里给顶部导航栏一个墨色实底，     */
/* 白字立刻清晰；滚动后 clean-blog 自带的 .is-fixed 白底深字保持不变。    */
/* ------------------------------------------------------------------ */
.navbar.navbar-custom.navbar-fixed-top:not(.is-fixed) {
    background-color: rgba(43, 49, 53, .95);   /* --bc-ink 墨色 */
    border-bottom: 1px solid rgba(0, 0, 0, .18);
}

.navbar.navbar-custom.navbar-fixed-top:not(.is-fixed) .navbar-toggle {
    color: #fff;
}

.navbar.navbar-custom.navbar-fixed-top:not(.is-fixed) .navbar-collapse {
    background-color: rgba(43, 49, 53, .98);
    border-color: rgba(0, 0, 0, .25);
}

/* 搜索框在墨底上：保持浅底 + 深字，保证可读 */
.navbar.navbar-custom.navbar-fixed-top:not(.is-fixed) .search-input {
    background: #f2efe9;
    border-color: rgba(255, 255, 255, .2);
    color: #2b3135;
}

.navbar.navbar-custom.navbar-fixed-top:not(.is-fixed) .search-btn {
    color: rgba(255, 255, 255, .8) !important;
}

@media print {
    .bc-hero, .bc-read-head, .bc-readnav, .bc-inline-toc { display: none; }
}
