/* ==========================================================================
   小说频道样式（轻小说 / 对话小说）
   --------------------------------------------------------------------------
   与 home.css 同一套 token（design-tokens.css），类名统一 bh-nv- / bh-chat- /
   bh-reader- 前缀，只在 layout_home 引入，不影响其它页面。
   ========================================================================== */

/* ==========================================================================
   1. 频道头部
   ========================================================================== */
.bh-nv-hero {
    padding: 26px 0 0;
    background: linear-gradient(180deg, #fff8f9 0%, #ffffff 78%);
    border-bottom: 1px solid var(--bh-border-light);
}

.bh-nv-hero--chat {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 78%);
}

.bh-nv-hero__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 10px;
    /* 与 .bh-pagehead 一致：说明与纸带底边留 16px，下面再加 1px 描边 */
    padding-bottom: 16px;
}

.bh-nv-hero__title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--bh-text);
}

.bh-nv-hero__desc {
    margin: 0;
    font-size: var(--bh-fs-sm);
    color: var(--bh-text-muted);
}

.bh-nv-stats {
    display: flex;
    gap: 26px;
    margin: 0;
    flex-shrink: 0;
}

.bh-nv-stats div {
    text-align: right;
}

.bh-nv-stats dt {
    font-size: var(--bh-fs-xs);
    color: var(--bh-text-placeholder);
    margin-bottom: 2px;
}

.bh-nv-stats dd {
    margin: 0;
    font-size: var(--bh-fs-xl);
    font-weight: 700;
    color: var(--bh-text);
}

/* 三种创作类型：就放在标题那一行，当前类型放大，其余小号灰字 */
.bh-nv-kinds {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 30px;
    /* 与 .bh-pagehead 对齐：标题到说明 12px */
    margin: 0 0 12px;
    font-weight: 700;
}

.bh-nv-kinds__item {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--bh-text-muted);
    text-decoration: none;
    transition: var(--bh-transition);
}

.bh-nv-kinds__item:hover {
    color: var(--bh-primary);
}

/* 当前类型：字重、字号一起放大，和统计数字同一基线 */
.bh-nv-kinds__item.is-active {
    font-size: 30px;
    letter-spacing: 2px;
    color: var(--bh-text);
}

.bh-nv-kinds__item.is-active:hover {
    color: var(--bh-text);
}

@media (max-width: 640px) {
    .bh-nv-kinds {
        gap: 8px 18px;
    }

    .bh-nv-kinds__item {
        font-size: 15px;
    }

    .bh-nv-kinds__item.is-active {
        font-size: 23px;
    }
}

/* ==========================================================================
   2. 筛选条
   ========================================================================== */
.bh-nv-filter {
    padding: 16px 0 6px;
    background: #fff;
}

.bh-nv-filter__row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 7px 0;
}

.bh-nv-filter__label {
    flex-shrink: 0;
    width: 32px;
    line-height: 26px;
    font-size: var(--bh-fs-sm);
    color: var(--bh-text-placeholder);
}

.bh-nv-filter__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.bh-nv-chip {
    padding: 3px 12px;
    border-radius: var(--bh-radius-pill);
    font-size: var(--bh-fs-sm);
    color: var(--bh-text-sub);
    text-decoration: none;
    transition: var(--bh-transition);
    white-space: nowrap;
}

.bh-nv-chip:hover {
    background: var(--bh-bg-hover);
    color: var(--bh-text);
}

.bh-nv-chip.is-active {
    background: var(--bh-primary-light);
    color: var(--bh-primary);
    font-weight: 500;
}

/* ==========================================================================
   3. 列表与卡片
   ========================================================================== */
.bh-nv-body {
    padding: 22px 0 6px;
}

.bh-nv-body--tight {
    padding-top: 8px;
}

.bh-nv-body__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bh-nv-body__title {
    margin: 0;
    font-size: var(--bh-fs-xl);
    font-weight: 700;
    color: var(--bh-text);
}

.bh-nv-body__count {
    font-size: var(--bh-fs-xs);
    color: var(--bh-text-placeholder);
}

.bh-nv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 26px 18px;
}

.bh-nv-grid--sm {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px 14px;
}

.bh-nv-card {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.bh-nv-card__cover {
    position: relative;
    /* 与 LifeLine 频道一致：横版 16:9 封面 */
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(40, 32, 48, 0.08);
}

.bh-nv-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.bh-nv-card:hover .bh-nv-card__cover img {
    transform: scale(1.04);
}

.bh-nv-card__ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
}

.bh-nv-card__state {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 1px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #5b5b66;
    font-size: 11px;
    line-height: 1.7;
}

.bh-nv-card__state.is-done {
    background: rgba(255, 84, 83, 0.92);
    color: #fff;
}

.bh-nv-card__kind {
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 1px 7px;
    border-radius: 4px;
    background: rgba(74, 134, 247, 0.92);
    color: #fff;
    font-size: 11px;
    line-height: 1.7;
}

.bh-nv-card__title {
    margin: 10px 0 4px;
    font-size: var(--bh-fs-md);
    font-weight: 600;
    color: var(--bh-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bh-nv-card__desc {
    margin: 0 0 6px;
    font-size: var(--bh-fs-xs);
    line-height: 1.6;
    color: var(--bh-text-placeholder);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bh-nv-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: var(--bh-fs-xs);
    color: var(--bh-text-muted);
}

.bh-nv-card__author {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bh-nv-card__num {
    flex-shrink: 0;
    color: var(--bh-text-placeholder);
}

/* ==========================================================================
   4. 猜你喜欢
   ========================================================================== */
.bh-nv-picks {
    margin-top: 26px;
    /* 与页脚之间留一段呼吸位：这一栏是二级页的最后一块内容 */
    margin-bottom: 36px;
    /* 左右各留 20px：卡片不再贴着区块边缘，标题也跟着缩进对齐 */
    padding: 26px 20px 34px;
    background: var(--bh-bg-section);
    border-radius: 12px;
}

.bh-nv-picks__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bh-nv-picks__title {
    margin: 0;
    font-size: var(--bh-fs-xl);
    font-weight: 700;
}

.bh-nv-picks__row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 16px 14px;
}

.bh-nv-mini {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.bh-nv-mini__cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.bh-nv-mini__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.bh-nv-mini__cover > span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, .9);
}

.bh-nv-mini__name {
    display: block;
    margin-top: 6px;
    font-size: var(--bh-fs-xs);
    color: var(--bh-text-sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   5. 详情页
   ========================================================================== */
.bh-nv-crumb {
    margin: 22px 0 6px;
}

.bh-nv-detail {
    padding: 10px 0 8px;
}

.bh-nv-detail__inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: flex-start;
}

.bh-nv-detail__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(40, 32, 48, 0.14);
}

.bh-nv-detail__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.bh-nv-detail__cover > span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.bh-nv-detail__main {
    min-width: 0;
}

.bh-nv-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.bh-nv-tag {
    padding: 2px 9px;
    border-radius: 4px;
    background: var(--bh-bg-section);
    color: var(--bh-text-muted);
    font-size: var(--bh-fs-xs);
}

.bh-nv-tag--primary {
    background: var(--bh-primary-light);
    color: var(--bh-primary);
}

.bh-nv-detail__title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bh-text);
}

.bh-nv-detail__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: var(--bh-fs-sm);
    color: var(--bh-text-muted);
}

.bh-nv-detail__meta b {
    color: var(--bh-text);
    font-weight: 600;
}

.bh-nv-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--bh-border);
}

.bh-nv-detail__desc {
    margin: 0 0 20px;
    font-size: var(--bh-fs-sm);
    line-height: 1.95;
    color: var(--bh-text-sub);
    max-width: 62em;
}

.bh-nv-detail__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.bh-nv-detail__collect {
    font-size: var(--bh-fs-xs);
    color: var(--bh-text-placeholder);
}

.bh-btn--lg {
    height: 40px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: var(--bh-fs-md);
}

.bh-btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.bh-btn.is-on {
    color: var(--bh-primary);
    background: var(--bh-primary-light);
}

/* ==========================================================================
   6. 详情页内容区（试读 + 目录）
   ========================================================================== */
.bh-nv-content {
    padding: 10px 0 30px;
}

.bh-nv-content__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: flex-start;
}

.bh-nv-content__main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.bh-nv-panel {
    padding: 18px 20px 20px;
    background: #fff;
    border: 1px solid var(--bh-border-light);
    border-radius: var(--bh-radius);
}

.bh-nv-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.bh-nv-panel__title {
    margin: 0;
    font-size: var(--bh-fs-lg);
    font-weight: 600;
    color: var(--bh-text);
}

.bh-nv-panel__sub,
.bh-nv-panel__more {
    font-size: var(--bh-fs-xs);
    color: var(--bh-text-placeholder);
    text-decoration: none;
}

.bh-nv-panel__more:hover {
    color: var(--bh-primary);
}

.bh-nv-panel--dir {
    position: sticky;
    top: calc(var(--bh-header-h) + 16px);
}

.bh-nv-prose p {
    margin: 0 0 1em;
    font-size: 15px;
    line-height: 2.05;
    color: #3a3a42;
    text-indent: 2em;
}

.bh-nv-prose p:last-child {
    margin-bottom: 0;
}

.bh-nv-prose--reader {
    max-width: 42em;
    margin: 0 auto;
}

.bh-nv-prose--reader p {
    font-size: 16px;
    line-height: 2.15;
}

.bh-nv-empty-line {
    margin: 0;
    padding: 18px 0;
    text-align: center;
    font-size: var(--bh-fs-sm);
    color: var(--bh-text-placeholder);
}

.bh-nv-dir {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 420px;
    overflow-y: auto;
}

.bh-nv-dir__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--bh-text-sub);
    font-size: var(--bh-fs-sm);
    transition: var(--bh-transition);
}

.bh-nv-dir__item:hover {
    background: var(--bh-bg-hover);
    color: var(--bh-text);
}

.bh-nv-dir__item.is-active {
    background: var(--bh-primary-light);
    color: var(--bh-primary);
    font-weight: 500;
}

.bh-nv-dir__no {
    flex-shrink: 0;
    width: 22px;
    font-size: 11px;
    color: var(--bh-text-placeholder);
    text-align: right;
}

.bh-nv-dir__item.is-active .bh-nv-dir__no {
    color: var(--bh-primary);
}

.bh-nv-dir__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   7. 对话小说气泡
   ========================================================================== */
.bh-chat {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bh-chat--preview {
    max-height: 380px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.bh-chat__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 80%;
}

.bh-chat__row--me {
    margin-left: auto;
    flex-direction: row-reverse;
}

.bh-chat__avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe0e6, #ffc2cd);
    color: #b4555f;
    font-size: 13px;
    font-weight: 600;
}

.bh-chat__row--me .bh-chat__avatar {
    background: linear-gradient(135deg, #dcebff, #b9d4fb);
    color: #3f6aa8;
}

.bh-chat__bubble {
    min-width: 0;
    padding: 9px 14px;
    border-radius: 4px 14px 14px 14px;
    background: #fff;
    border: 1px solid var(--bh-border-light);
    box-shadow: 0 4px 12px rgba(40, 32, 48, .05);
}

.bh-chat__row--me .bh-chat__bubble {
    border-radius: 14px 4px 14px 14px;
    background: var(--bh-primary-light);
    border-color: #ffd9dc;
}

.bh-chat__name {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    color: var(--bh-text-placeholder);
}

.bh-chat__text {
    margin: 0;
    font-size: var(--bh-fs-md);
    line-height: 1.75;
    color: var(--bh-text);
    word-break: break-word;
}

.bh-chat__narration {
    margin: 4px 0;
    font-size: var(--bh-fs-sm);
    line-height: 1.9;
    color: var(--bh-text-placeholder);
    text-align: center;
}

/* ==========================================================================
   8. 阅读器
   ========================================================================== */
.bh-reader {
    padding: 22px 0 40px;
    background: #fff;
}

.bh-reader__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--bh-border-light);
}

.bh-reader__head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.bh-reader__back {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: var(--bh-fs-sm);
    color: var(--bh-text-muted);
    text-decoration: none;
    flex-shrink: 0;
}

.bh-reader__back:hover {
    color: var(--bh-primary);
}

.bh-reader__titles {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.bh-reader__book {
    font-size: var(--bh-fs-md);
    font-weight: 600;
    color: var(--bh-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bh-reader__pos {
    flex-shrink: 0;
    font-size: var(--bh-fs-xs);
    color: var(--bh-text-placeholder);
}

.bh-reader__head-ops {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.bh-reader__btn {
    padding: 4px 12px;
    border-radius: var(--bh-radius-pill);
    background: var(--bh-bg-section);
    font-size: var(--bh-fs-xs);
    color: var(--bh-text-sub);
    text-decoration: none;
    transition: var(--bh-transition);
}

.bh-reader__btn:hover {
    background: var(--bh-primary-light);
    color: var(--bh-primary);
}

.bh-reader__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 30px;
    align-items: flex-start;
}

.bh-reader__article {
    min-width: 0;
}

.bh-reader__title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--bh-text);
    text-align: center;
}

.bh-reader__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 26px;
    font-size: var(--bh-fs-xs);
    color: var(--bh-text-placeholder);
}

.bh-reader--chat .bh-reader__article {
    max-width: 640px;
    margin: 0 auto;
}

.bh-reader__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--bh-border-light);
}

.bh-reader__nav-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--bh-border);
    background: #fff;
    font-size: var(--bh-fs-sm);
    color: var(--bh-text-sub);
    text-decoration: none;
    transition: var(--bh-transition);
    white-space: nowrap;
}

.bh-reader__nav-btn:hover {
    border-color: var(--bh-primary);
    color: var(--bh-primary);
}

.bh-reader__nav-btn--ghost {
    border-color: transparent;
    color: var(--bh-text-placeholder);
}

.bh-reader__nav-btn--primary {
    background: var(--bh-primary);
    border-color: var(--bh-primary);
    color: #fff;
}

.bh-reader__nav-btn--primary:hover {
    background: #f0403f;
    color: #fff;
}

.bh-reader__nav-btn.is-disabled {
    opacity: .5;
    pointer-events: none;
}

.bh-reader__side .bh-nv-panel--dir {
    position: sticky;
    top: calc(var(--bh-header-h) + 16px);
}

/* ==========================================================================
   9. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .bh-nv-content__grid,
    .bh-reader__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bh-nv-panel--dir,
    .bh-reader__side .bh-nv-panel--dir {
        position: static;
        max-height: 320px;
        overflow-y: auto;
    }

    .bh-nv-dir {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .bh-nv-hero__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .bh-nv-stats {
        gap: 20px;
    }

    .bh-nv-stats div {
        text-align: left;
    }

    .bh-nv-detail__inner {
        grid-template-columns: 132px 1fr;
        gap: 16px;
    }

    .bh-nv-detail__title {
        font-size: 21px;
    }

    .bh-nv-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 12px;
    }
}

@media (max-width: 640px) {
    .bh-nv-hero {
        padding-top: 18px;
    }

    .bh-nv-hero__title {
        font-size: 22px;
    }

    .bh-nv-detail__inner {
        grid-template-columns: 104px 1fr;
        gap: 14px;
    }

    .bh-nv-detail__desc {
        font-size: var(--bh-fs-xs);
    }

    .bh-nv-grid,
    .bh-nv-grid--sm {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bh-nv-card__desc {
        display: none;
    }

    .bh-nv-filter__row {
        flex-direction: column;
        gap: 6px;
    }

    .bh-nv-filter__label {
        width: auto;
        line-height: 1.4;
    }

    .bh-reader__title {
        font-size: 19px;
        text-align: left;
    }

    .bh-reader__meta {
        justify-content: flex-start;
    }

    .bh-nv-prose--reader p {
        font-size: 15px;
    }

    .bh-chat__row {
        max-width: 92%;
    }

    .bh-reader__nav {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   状态标签四色统一：已完结 蓝 / 更新中 绿；编推 红 / 经典 金
   ========================================================================== */
.bh-nv-card__state {
    background: rgba(63, 164, 91, .94);
    color: #fff;
}

.bh-nv-card__state.is-done,
.bh-nv-card__state--blue {
    background: rgba(74, 131, 214, .94);
    color: #fff;
}

.bh-nv-card__state--green {
    background: rgba(63, 164, 91, .94);
    color: #fff;
}

.bh-nv-card__flags {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    pointer-events: none;
}

.bh-nv-card__flag {
    padding: 1px 6px;
    border-radius: 4px;
    font-style: normal;
    font-size: 10px;
    line-height: 1.7;
    color: #fff;
    white-space: nowrap;
}

.bh-nv-card__flag--reco {
    background: rgba(255, 84, 83, .94);
}

.bh-nv-card__flag--classic {
    background: rgba(191, 143, 41, .94);
}

/* 封面：等比缩放 + 居中裁剪 */
.bh-nv-card__cover img {
    object-fit: cover;
    object-position: center center;
}


/* ==========================================================================
   10. 阅读页沉浸模式（轻小说 / 对话小说）
   --------------------------------------------------------------------------
   桌面端整页锁一屏：头部固定，正文区与右侧目录各自内部滚动，
   滚动条细线化、悬停才显形，页面本身不出现滚动条。
   窄屏 / 矮屏保持原来的自然滚动，避免手机里套一层滚动容器。
   ========================================================================== */
@media (min-width: 1024px) and (min-height: 620px) {
    body.bh-page--reader {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body.bh-page--reader .bh-header {
        flex: none;
    }

    body.bh-page--reader > main.bh-reader {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    body.bh-page--reader .bh-reader > .bh-container {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    body.bh-page--reader .bh-reader__head {
        flex: none;
        margin-top: 14px;
    }

    body.bh-page--reader .bh-reader__grid {
        flex: 1;
        min-height: 0;
        align-items: stretch;
    }

    /* 正文：内部滚动 */
    body.bh-page--reader .bh-reader__article {
        height: 100%;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 4px 18px 28px 0;
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }

    body.bh-page--reader .bh-reader__article:hover {
        scrollbar-color: rgba(140, 150, 168, .45) transparent;
    }

    body.bh-page--reader .bh-reader__article::-webkit-scrollbar {
        width: 6px;
    }

    body.bh-page--reader .bh-reader__article::-webkit-scrollbar-track {
        background: transparent;
    }

    body.bh-page--reader .bh-reader__article::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 999px;
    }

    body.bh-page--reader .bh-reader__article:hover::-webkit-scrollbar-thumb {
        background: rgba(140, 150, 168, .38);
    }

    body.bh-page--reader .bh-reader__article::-webkit-scrollbar-thumb:hover {
        background: rgba(120, 132, 152, .62);
    }

    /* 目录：撑满剩余高度，条目自己滚 */
    body.bh-page--reader .bh-reader__side {
        height: 100%;
        min-height: 0;
    }

    body.bh-page--reader .bh-reader__side .bh-nv-panel--dir {
        position: static;
        max-height: none;
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    body.bh-page--reader .bh-nv-dir {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }

    body.bh-page--reader .bh-nv-dir:hover {
        scrollbar-color: rgba(140, 150, 168, .45) transparent;
    }

    body.bh-page--reader .bh-nv-dir::-webkit-scrollbar {
        width: 6px;
    }

    body.bh-page--reader .bh-nv-dir::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 999px;
    }

    body.bh-page--reader .bh-nv-dir:hover::-webkit-scrollbar-thumb {
        background: rgba(140, 150, 168, .38);
    }

    /* 阅读页不看页脚 */
    body.bh-page--reader .bh-footer {
        display: none;
    }

    /* 正文底部留白，翻页按钮不贴边 */
    body.bh-page--reader .bh-reader__nav {
        margin-top: 26px;
    }
}

/* 窄屏：猜你喜欢的左右缩进收小，与页脚的留白也收一点 */
@media (max-width: 640px) {
    .bh-nv-picks {
        padding: 20px 14px 24px;
        margin-bottom: 24px;
        border-radius: 10px;
    }
}
