/* =============================================================
   夜读 Nocturne · 设计系统与新组件样式
   各功能页的旧布局样式由 common/style block 单独引入
   static/nocturne/css/legacy/<页面>.css（已深色化），互不干扰。
   ============================================================= */
/* ===== 新版设计系统（后加载，优先级更高） ===== */
/* ---------- 1. 设计令牌 ---------- */
:root {
    --nc-bg: #0b0e13;
    --nc-bg-2: #0f141c;
    --nc-surface: #151b25;
    --nc-surface-2: #1b2330;
    --nc-surface-3: #222c3b;
    --nc-line: rgba(255, 255, 255, .085);
    --nc-line-2: rgba(255, 255, 255, .15);
    --nc-text: #e9edf4;
    --nc-text-2: #c2cad7;
    --nc-muted: #8d97a8;
    --nc-dim: #626d7e;
    --nc-gold: #e0b26a;
    --nc-gold-2: #f0cd90;
    --nc-gold-soft: rgba(224, 178, 106, .12);
    --nc-red: #dd7a68;
    --nc-teal: #6bb69f;
    --nc-blue: #7c9fd4;
    --nc-shadow: 0 18px 48px rgba(0, 0, 0, .38);
    --nc-shadow-sm: 0 6px 20px rgba(0, 0, 0, .22);
    --nc-r: 16px;
    --nc-r-sm: 10px;
    --nc-max: 100%;          /* 全屏：容器铺满窗口，只保留左右 24px 留白 */
    --nc-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
    --nc-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html[data-nc-theme="light"] {
    --nc-bg: #f4f1ea;
    --nc-bg-2: #eeeae1;
    --nc-surface: #fffdf9;
    --nc-surface-2: #f6f2ea;
    --nc-surface-3: #ece6da;
    --nc-line: rgba(35, 30, 22, .12);
    --nc-line-2: rgba(35, 30, 22, .22);
    --nc-text: #24262c;
    --nc-text-2: #444953;
    --nc-muted: #6e7480;
    --nc-dim: #9499a3;
    --nc-gold: #9a6a2c;
    --nc-gold-2: #7d5420;
    --nc-gold-soft: rgba(154, 106, 44, .10);
    --nc-red: #b8503d;
    --nc-teal: #2f7d66;
    --nc-blue: #3c6699;
    --nc-shadow: 0 18px 44px rgba(48, 38, 22, .12);
    --nc-shadow-sm: 0 6px 18px rgba(48, 38, 22, .08);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.nc-body, body {
    margin: 0;
    min-height: 100vh;
    color: var(--nc-text);
    background:
        radial-gradient(900px 520px at 15% -8%, rgba(224, 178, 106, .075), transparent 62%),
        radial-gradient(760px 480px at 92% 4%, rgba(94, 126, 176, .07), transparent 60%),
        var(--nc-bg);
    font: 15px/1.7 var(--nc-sans);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
a:hover { color: var(--nc-gold); }
img { max-width: 100%; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--nc-line); margin: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--nc-gold-soft); color: var(--nc-gold-2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--nc-bg); }
::-webkit-scrollbar-thumb { background: var(--nc-surface-3); border-radius: 8px; border: 2px solid var(--nc-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--nc-dim); }

.hidden { display: none !important; }
.clearfix::after { content: ""; display: table; clear: both; }
.fl { float: left; }
.fr { float: right; }

/* 统一容器：同时接管历史模板的容器 class */
.nc-container, .boxCenter, .wrap, .centerO, .centerFr, .centerSp, .wrapBox,
.nc-header-inner, .foot {
    width: min(var(--nc-max), calc(100% - 48px));
    margin-inline: auto;
}

/* ---------- 3. 通用组件 ---------- */
.nc-btn, .btn, .submit-btn, .read, .bookshelf, .follow-btn, .txtdownload,
input.submit, button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 22px;
    border: 1px solid transparent; border-radius: 999px;
    background: var(--nc-surface-2); color: var(--nc-text);
    font-size: 14px; font-weight: 600; letter-spacing: .02em;
    transition: all .22s ease; white-space: nowrap;
}
.nc-btn:hover, .btn:hover, .submit-btn:hover, .read:hover, .bookshelf:hover,
.follow-btn:hover, .txtdownload:hover, button[type="submit"]:hover {
    color: var(--nc-text); transform: translateY(-2px);
}
.nc-btn--gold, .read, .registerBtn, .submit-btn, .nc-gold { background: var(--nc-gold); color: #17120a !important; }
html[data-nc-theme="light"] .nc-btn--gold,
html[data-nc-theme="light"] .read,
html[data-nc-theme="light"] .registerBtn,
html[data-nc-theme="light"] .submit-btn { color: #fff !important; }
.nc-btn--gold:hover, .read:hover, .registerBtn:hover, .submit-btn:hover { background: var(--nc-gold-2); }
.nc-btn--ghost, .loginBtn, .bookshelf, .follow-btn, .txtdownload {
    background: transparent; border-color: var(--nc-line-2); color: var(--nc-text-2);
}
.nc-btn--ghost:hover, .loginBtn:hover, .bookshelf:hover, .follow-btn:hover, .txtdownload:hover {
    border-color: var(--nc-gold); color: var(--nc-gold); background: var(--nc-gold-soft);
}

.nc-tag, .chip, .bookListSm em, .label {
    display: inline-block; padding: 2px 9px; border-radius: 6px;
    background: var(--nc-gold-soft); color: var(--nc-gold);
    font-size: 11px; font-style: normal; line-height: 1.7;
}
.nc-tag--red { background: rgba(221, 122, 104, .14); color: var(--nc-red); }
.nc-tag--teal { background: rgba(107, 182, 159, .14); color: var(--nc-teal); }

.nc-panel, .nc-card, .bookBox, .sectionBox, .centerO, .wrapBox {
    background: var(--nc-surface);
    border: 1px solid var(--nc-line);
    border-radius: var(--nc-r);
}
.nc-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--nc-gold); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.nc-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--nc-gold); }

.nc-section { margin: 52px 0; }
.nc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.nc-section-head h2, .nc-section-head .title strong, .nc-section-head h1 strong {
    font: 600 25px/1.3 var(--nc-serif); letter-spacing: .02em;
}
.nc-section-head h2::before, .nc-section-head .title strong::before {
    content: ""; display: inline-block; width: 4px; height: 20px; margin-right: 12px;
    border-radius: 3px; background: var(--nc-gold); vertical-align: -3px;
}
.nc-section-head .nc-more, .nc-section-head .change {
    color: var(--nc-muted); font-size: 13px; font-weight: 400;
}
.nc-section-head .nc-more:hover, .nc-section-head .change:hover { color: var(--nc-gold); }

/* ---------- 4. 顶部导航 ---------- */
.nc-header {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--nc-bg) 82%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--nc-line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .nc-header { background: rgba(11, 14, 19, .9); }
}
.nc-header-inner { display: flex; align-items: center; gap: 26px; height: 72px; }

.nc-logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.nc-logo:hover { color: var(--nc-text); }
.nc-logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--nc-gold-soft); }
.nc-logo-mark svg { width: 20px; height: 20px; fill: var(--nc-gold); }
.nc-logo-text { font: 700 21px/1 var(--nc-serif); letter-spacing: .06em; }
.nc-logo-sub {
    align-self: flex-end; margin-bottom: 2px; color: var(--nc-dim);
    font-size: 9px; letter-spacing: .18em; white-space: nowrap;
}

.nc-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.nc-nav-link { position: relative; padding: 8px 13px; color: var(--nc-text-2); font-size: 14px; white-space: nowrap; border-radius: 8px; }
.nc-nav-link:hover { color: var(--nc-gold); background: var(--nc-gold-soft); }
.nc-nav-link.current { color: var(--nc-gold); }
.nc-nav-link.current::after {
    content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
    width: 18px; height: 2px; border-radius: 2px; background: var(--nc-gold);
}

.nc-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nc-search {
    display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 13px;
    border: 1px solid var(--nc-line); border-radius: 999px;
    background: var(--nc-surface); transition: border-color .2s ease, box-shadow .2s ease;
}
.nc-search:focus-within { border-color: var(--nc-gold); box-shadow: 0 0 0 3px var(--nc-gold-soft); }
.nc-search-ic { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--nc-muted); stroke-width: 1.8; stroke-linecap: round; }
.nc-search input.text { width: 130px; border: 0; background: transparent; color: var(--nc-text); font-size: 13px; }
.nc-search input.text::placeholder { color: var(--nc-dim); }
.nc-search input.submit, .nc-search button[type="submit"] {
    min-height: 28px; height: 28px; padding: 0 14px; border-radius: 999px;
    background: var(--nc-gold-soft); color: var(--nc-gold); font-size: 12px; font-weight: 600;
}
.nc-search .submit:hover, .nc-search button[type="submit"]:hover { background: var(--nc-gold); color: #17120a; }

.nc-theme-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--nc-line); border-radius: 50%; color: var(--nc-muted); }
.nc-theme-btn:hover { color: var(--nc-gold); border-color: var(--nc-gold); }
.nc-theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
html[data-nc-theme="light"] .nc-theme-btn svg { fill: var(--nc-gold-soft); }

.nc-app { position: relative; }
.nc-app .downLoad { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--nc-line); border-radius: 50%; color: var(--nc-muted); }
.nc-app .downLoad:hover { color: var(--nc-gold); border-color: var(--nc-gold); }
.nc-app .downLoad svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nc-app .dlCon {
    position: absolute; top: 48px; right: 0; z-index: 70; width: 190px; padding: 14px;
    text-align: center; background: var(--nc-surface-2); border: 1px solid var(--nc-line);
    border-radius: var(--nc-r-sm); box-shadow: var(--nc-shadow);
}
.nc-app .dlCon span { display: block; margin-bottom: 10px; color: var(--nc-muted); font-size: 12px; }
.nc-app .dlCon img { width: 150px; border-radius: 8px; }

.nc-account { position: relative; display: flex; align-items: center; gap: 8px; }
.nc-login { display: flex; align-items: center; gap: 8px; }
.nc-login a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.nc-login .loginBtn { border: 1px solid var(--nc-line-2); color: var(--nc-text-2); }
.nc-login .registerBtn { background: var(--nc-gold); color: #17120a; }
.nc-login .registerBtn:hover { background: var(--nc-gold-2); color: #17120a; }
.isLogged { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.isLogged img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--nc-line-2); }
.isLogged a { color: var(--nc-text-2); font-size: 13px; }
.suspend {
    position: absolute; top: 44px; right: 0; z-index: 70; min-width: 150px; padding: 8px;
    background: var(--nc-surface-2); border: 1px solid var(--nc-line); border-radius: var(--nc-r-sm);
    box-shadow: var(--nc-shadow);
}
.suspend a { display: block; padding: 8px 12px; border-radius: 7px; font-size: 13px; color: var(--nc-text-2); }
.suspend a:hover { background: var(--nc-gold-soft); color: var(--nc-gold); }
.suspend span, .suspend i { display: none; }

.nc-burger { display: none; width: 38px; height: 38px; padding: 9px; border: 1px solid var(--nc-line); border-radius: 10px; }
.nc-burger span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--nc-text-2); transition: .25s; }
.headFix, .nc-miniheader { display: none; }

.nc-drawer-mask {
    position: fixed; inset: 0; z-index: 80; background: rgba(3, 5, 9, .68);
    opacity: 0; visibility: hidden; transition: .28s; backdrop-filter: blur(2px);
}
.nc-drawer-mask.is-open { opacity: 1; visibility: visible; }
.nc-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(330px, 86vw);
    padding: 22px; overflow-y: auto; background: var(--nc-bg-2); border-left: 1px solid var(--nc-line);
    transform: translateX(102%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.nc-drawer.is-open { transform: translateX(0); }
.nc-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font: 600 18px var(--nc-serif); }
.nc-drawer-head button { font-size: 28px; line-height: 1; color: var(--nc-muted); }
.nc-drawer-search { display: flex; gap: 8px; margin-bottom: 22px; }
.nc-drawer-search input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--nc-line); border-radius: 999px; background: var(--nc-surface); font-size: 13px; }
.nc-drawer-search button { padding: 0 16px; border-radius: 999px; background: var(--nc-gold); color: #17120a; font-size: 13px; font-weight: 600; }
.nc-drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--nc-line); font-size: 15px; color: var(--nc-text-2); }
.nc-drawer-nav a:hover { color: var(--nc-gold); }
.nc-drawer-nav i { color: var(--nc-dim); font-style: normal; }
.nc-drawer-foot { display: flex; gap: 10px; margin-top: 26px; }
.nc-drawer-foot a { flex: 1; text-align: center; padding: 11px; border: 1px solid var(--nc-line-2); border-radius: 999px; font-size: 14px; }
.nc-drawer-foot a.nc-gold { background: var(--nc-gold); border-color: var(--nc-gold); color: #17120a; }

/* headermini（书详情等页面使用） */
.nc-mini {
    display: flex; align-items: center; gap: 28px; min-height: 70px;
    border-bottom: 1px solid var(--nc-line);
    background: color-mix(in srgb, var(--nc-bg) 82%, transparent);
    backdrop-filter: blur(14px);
}
.nc-mini-logo .nc-logo-text { font-size: 19px; }
.nc-mini-nav { display: flex; gap: 4px; flex: 1; overflow: hidden; }
.nc-mini-nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--nc-text-2); white-space: nowrap; }
.nc-mini-nav a:hover, .nc-mini-nav a.current { color: var(--nc-gold); background: var(--nc-gold-soft); }
.nc-mini-actions { display: flex; align-items: center; gap: 10px; }
.nc-search--mini input.text { width: 110px; }

/* ---------- 5. 首页 ---------- */
.nc-main { padding: 34px 0 20px; }
.nc-hero {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 42px;
    padding: 46px 48px; overflow: hidden;
    background: linear-gradient(135deg, var(--nc-surface) 0%, var(--nc-bg-2) 74%);
    border: 1px solid var(--nc-line); border-radius: 22px;
}
.nc-hero::before {
    content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -230px;
    border-radius: 50%; background: radial-gradient(circle, rgba(224, 178, 106, .16), transparent 68%); pointer-events: none;
}
.nc-hero-left, .nc-hero-right { min-width: 0; }
.nc-hero-left { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.nc-hero h1 { margin: 20px 0 16px; font: 700 clamp(30px, 3vw, 44px)/1.28 var(--nc-serif); letter-spacing: .02em; }
.nc-hero h1 em { color: var(--nc-gold); font-style: normal; }
.nc-hero p { max-width: 430px; color: var(--nc-muted); font-size: 15px; line-height: 1.9; }
.nc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nc-hero-stats { display: flex; gap: 30px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--nc-line); }
.nc-hero-stats div strong { display: block; white-space: nowrap; font: 700 24px/1.2 var(--nc-serif); color: var(--nc-gold); }
.nc-hero-stats div span { color: var(--nc-dim); font-size: 12px; }

.nc-hero-right { position: relative; z-index: 1; }
#boxCenter.nc-carousel { position: relative; height: 100%; min-height: 292px; overflow: hidden; border-radius: 16px; }
.nc-carousel .slide-track { display: flex; min-width: 0; height: 100%; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.nc-carousel .slide-item {
    flex: 0 0 100%; min-width: 0; display: flex !important; gap: 20px; padding: 22px;
    background: var(--nc-surface-2); border: 1px solid var(--nc-line); border-radius: 16px;
}
.nc-carousel .slide-item:hover { color: var(--nc-text); }
.nc-carousel .nc-slide-cover { flex: 0 0 136px; width: 136px; }
.nc-carousel .nc-slide-cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; box-shadow: var(--nc-shadow-sm); }
.nc-carousel .nc-slide-info { display: flex; flex-direction: column; min-width: 0; }
.nc-carousel .nc-slide-info .nc-tag { align-self: flex-start; }
.nc-carousel .nc-slide-info h3 { margin: 6px 0 8px; font: 600 23px/1.35 var(--nc-serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-carousel .nc-slide-meta { display: flex; align-items: center; gap: 8px; color: var(--nc-muted); font-size: 12px; }
.nc-carousel .nc-slide-desc { margin: 12px 0 16px; color: var(--nc-muted); font-size: 13px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-carousel .nc-slide-cta { margin-top: auto; align-self: flex-start; padding: 8px 18px; border-radius: 999px; background: var(--nc-gold); color: #17120a; font-size: 13px; font-weight: 600; }
.nc-carousel .slidepage { display: flex; gap: 6px; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); }
.nc-carousel .slidepage li { width: 6px; height: 6px; border-radius: 6px; background: var(--nc-dim); cursor: pointer; transition: .25s; }
.nc-carousel .slidepage li.on, .nc-carousel .slidepage li.active { width: 20px; background: var(--nc-gold); }
.nc-carousel #to_Left, .nc-carousel #to_Right {
    position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px;
    border: 1px solid var(--nc-line-2); border-radius: 50%; background: var(--nc-surface); cursor: pointer;
}
.nc-carousel #to_Left { left: 10px; } .nc-carousel #to_Right { right: 10px; }
.nc-carousel #to_Left::after, .nc-carousel #to_Right::after {
    content: ""; position: absolute; top: 11px; width: 8px; height: 8px;
    border-left: 2px solid var(--nc-gold); border-bottom: 2px solid var(--nc-gold);
}
.nc-carousel #to_Left::after { left: 14px; transform: rotate(45deg); }
.nc-carousel #to_Right::after { left: 10px; transform: rotate(-135deg); }

.nc-ticker {
    display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 13px 20px;
    background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: 999px;
}
.nc-ticker-label { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--nc-gold); font-size: 13px; font-weight: 600; }
.nc-ticker-label svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nc-ticker-list { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.nc-ticker-list a { display: inline-block; margin-right: 34px; color: var(--nc-muted); font-size: 13px; }
.nc-ticker-list a::before { content: "·"; margin-right: 10px; color: var(--nc-gold); }

.nc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.nc-quick a {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px;
    background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: var(--nc-r-sm);
}
.nc-quick a:hover { border-color: var(--nc-gold); transform: translateY(-3px); }
.nc-quick i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--nc-gold-soft); color: var(--nc-gold); font-style: normal; font-size: 19px; }
.nc-quick b { display: block; font-size: 15px; }
.nc-quick small { color: var(--nc-dim); font-size: 12px; }

.nc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 18px; }
.nc-card { min-width: 0; }
.nc-card:hover { transform: translateY(-4px); }
.nc-card-cover {
    position: relative; display: block; overflow: hidden; border-radius: 10px;
    aspect-ratio: 3 / 4; background: var(--nc-surface-2); border: 1px solid var(--nc-line);
}
.nc-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nc-card:hover .nc-card-cover img { transform: scale(1.06); }
.nc-card-cover::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, .45));
}
.nc-card-badge { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 2px 8px; border-radius: 5px; background: rgba(11, 14, 19, .78); color: var(--nc-gold); font-size: 11px; }
.nc-card h3 { margin: 11px 0 4px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-card h3 a:hover { color: var(--nc-gold); }
.nc-card p { color: var(--nc-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-card { overflow: hidden; }
.nc-card .nc-card-desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; white-space: normal; word-break: break-word;
    margin-top: 5px; color: var(--nc-dim); line-height: 1.6; max-height: 3.2em;
}
/* 编辑推荐卡片说明同样限制两行，避免撑破卡片 */
.nc-editor-grid .bookIntro span {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; white-space: normal; word-break: break-word; max-height: 3.2em;
}

.nc-columns { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.nc-rank { padding: 24px; background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: var(--nc-r); }
.nc-rank-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nc-rank-head h2 { font: 600 21px var(--nc-serif); }
.nc-rank-head a { color: var(--nc-dim); font-size: 12px; }
.nc-rank-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--nc-line); }
.nc-rank-list li:last-child { border-bottom: 0; }
.nc-rank-num { flex: 0 0 24px; font: 700 16px var(--nc-serif); color: var(--nc-dim); text-align: center; }
.nc-rank-list li:nth-child(-n+3) .nc-rank-num { color: var(--nc-gold); }
.nc-rank-info { flex: 1; min-width: 0; }
.nc-rank-info a { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-rank-info span { color: var(--nc-dim); font-size: 11px; }
.nc-rank-heat { flex: 0 0 auto; color: var(--nc-red); font-size: 12px; }

.nc-updates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.nc-updates li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--nc-line); }
.nc-updates li a:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.nc-updates li span { flex: 0 0 auto; color: var(--nc-dim); font-size: 12px; }
.nc-updates li em { font-style: normal; color: var(--nc-gold); }

.nc-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin: 56px 0 12px; padding: 34px 40px;
    background: linear-gradient(110deg, var(--nc-gold-soft), transparent 70%), var(--nc-surface);
    border: 1px solid var(--nc-line); border-radius: var(--nc-r);
}
.nc-cta h2 { font: 600 24px var(--nc-serif); }
.nc-cta p { margin-top: 6px; color: var(--nc-muted); font-size: 13px; }

/* ---------- 6. 页脚 ---------- */
.nc-footer { margin-top: 64px; padding: 46px 0 28px; background: var(--nc-bg-2); border-top: 1px solid var(--nc-line); }
.nc-footer-top { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.nc-footer-brand p { margin-top: 14px; color: var(--nc-dim); font-size: 13px; line-height: 1.9; }
.nc-footer-label { display: block; margin-bottom: 14px; color: var(--nc-text-2); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.nc-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nc-footer-nav a { color: var(--nc-muted); font-size: 13px; }
.nc-footer-nav a:hover { color: var(--nc-gold); }
.nc-footer-qr { text-align: center; }
.nc-footer-qr img { width: 96px; border-radius: 8px; }
.nc-footer-qr span { display: block; margin-top: 6px; color: var(--nc-dim); font-size: 11px; }
.nc-friendlink { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--nc-line); }
.nc-friendlink span { color: var(--nc-dim); font-size: 12px; }
.nc-friendlink a { color: var(--nc-muted); font-size: 12px; }
.nc-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 20px; color: var(--nc-dim); font-size: 12px; }
.nc-footer-meta, .nc-footer-service { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.nc-footer a:hover { color: var(--nc-gold); }

.nc-totop {
    position: fixed; right: 24px; bottom: 24px; z-index: 55; display: grid; place-items: center;
    width: 42px; height: 42px; border: 1px solid var(--nc-line-2); border-radius: 50%;
    background: var(--nc-surface); color: var(--nc-gold); opacity: 0; visibility: hidden; transition: .25s;
}
.nc-totop.is-show { opacity: 1; visibility: visible; }
.nc-totop:hover { border-color: var(--nc-gold); transform: translateY(-3px); }

/* ---------- 7. 兼容层：历史页面 class 深色重绘 ---------- */
/* 区块 / 标题 */
.sectionBox, .bookBox, .box, .tabTopBox, .wrapBox, .centerO, .centerFr,
.chapterBox, .infoBox, .userBox, .rankBox {
    background: var(--nc-surface); border: 1px solid var(--nc-line);
    border-radius: var(--nc-r); padding: 24px;
}
.sectionBox { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; background: transparent; border: 0; padding: 0; }
.sectionBox-left { min-width: 0; }
.title, h1.title, .bookBox .title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 600 22px var(--nc-serif); }
.title strong { font-weight: 600; }
.title i { display: none; }
h1.clearfix, h1 { font: 600 22px var(--nc-serif); }
.change { margin-left: auto; color: var(--nc-muted); font-size: 13px; font-weight: 400; }
.change i { display: none; }
.linkT, .navSecond { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 0; border-bottom: 1px solid var(--nc-line); }
.linkT a, .navSecond a { color: var(--nc-muted); font-size: 13px; }
.linkT a:hover, .navSecond a.current, .navSecond a:hover { color: var(--nc-gold); }

/* 书籍列表通用（书库 / 排行 / 搜索 / 书架） */
.bookList, .booklist, .bookListSm, .novel-list, .list, .bookBox .booklist {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px 16px; margin: 0;
}
.bookList > li, .bookList > a, .booklist > a, .bookListSm > li, .bookListSm > a,
.novel-list > li, .bookBox .booklist > a {
    min-width: 0; display: block; background: transparent; border: 0;
}
.bookImg, .bookimg, .bookListSm .bookImg, .bookBox .bookimg {
    position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 10px;
    background: var(--nc-surface-2); border: 1px solid var(--nc-line); margin-bottom: 10px;
}
.bookImg img, .bookimg img, .bookListSm img, .bookBox .bookimg img { width: 100%; height: 100%; object-fit: cover; }
.bookinfo h2, .bookIntro h2, .bookname, .bookListSm h2, .bookname_number { margin: 0 0 4px; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookinfo .desc, .bookIntro span, .intro, .bookListSm .intro { color: var(--nc-muted); font-size: 12px; line-height: 1.6; }
.bookinfo .author, .bookIntro em, .author, .bookListSm .author { color: var(--nc-dim); font-size: 12px; font-style: normal; }
.bookLink { display: flex; gap: 14px; align-items: flex-start; }
.bookLink .bookImg { flex: 0 0 92px; width: 92px; }
.bookLink .bookIntro { min-width: 0; flex: 1; }
.bookLink .bookIntro > span:not(.nc-tag) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--nc-muted); font-size: 12px; }

/* 筛选 / 表单 */
.filter-group, .control-group, .form-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.filter-group > span, .filter-group > label, .control-group > label, .form-group > label { color: var(--nc-muted); font-size: 13px; min-width: 62px; }
.filter-group a, .filter-group span.item { padding: 5px 12px; border-radius: 999px; color: var(--nc-text-2); font-size: 13px; border: 1px solid transparent; }
.filter-group a:hover, .filter-group a.current, .filter-group a.on { color: var(--nc-gold); background: var(--nc-gold-soft); }
input.text, input[type="text"], input[type="password"], input[type="tel"], input[type="email"],
.form-input, select, textarea {
    height: 42px; padding: 0 14px; color: var(--nc-text);
    background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: 10px;
    font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--nc-gold); box-shadow: 0 0 0 3px var(--nc-gold-soft); }
input::placeholder, textarea::placeholder { color: var(--nc-dim); }
.login-form, .register-form { max-width: 430px; margin: 40px auto; padding: 32px; background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: var(--nc-r); box-shadow: var(--nc-shadow); }
.login-form h1, .register-form h1 { margin-bottom: 22px; font: 600 24px var(--nc-serif); text-align: center; }
.tab-item { padding: 9px 18px; border-radius: 999px; color: var(--nc-muted); font-size: 14px; cursor: pointer; }
.tab-item.active, .tab-item.on { color: var(--nc-gold); background: var(--nc-gold-soft); }
.error-tip { display: none; margin-top: 6px; color: var(--nc-red); font-size: 12px; }
.send-btn { padding: 0 14px; border: 1px solid var(--nc-line-2); border-radius: 10px; color: var(--nc-gold); font-size: 13px; }
.form-input, .form-group input, .login-form input, .register-form input { width: 100%; }

/* 分页 */
.pagination, .page, .chapter-pagination, .nc-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px 0; }
.pagination a, .pagination span, .page a, .page span, .chapter-pagination a, .chapter-pagination span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px;
    border: 1px solid var(--nc-line); border-radius: 9px; background: var(--nc-surface);
    color: var(--nc-text-2); font-size: 13px;
}
.pagination a:hover, .page a:hover, .chapter-pagination a:hover,
.pagination .current, .page .current, .chapter-pagination .current { border-color: var(--nc-gold); color: var(--nc-gold); background: var(--nc-gold-soft); }
.chapter-pagination__prev, .chapter-pagination__next, .chapter-pagination__jump { border-color: var(--nc-line) !important; }
.chapter-current-page, .chapter-total-page { color: var(--nc-muted) !important; }

/* 书籍详情 */
.tabTopBox { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 26px; margin-bottom: 26px; }
.tabTopBox img, .tabTopBox .bookImg img { width: 170px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; box-shadow: var(--nc-shadow-sm); }
.tabTopBox h1, .tabTopBox .bookname { font: 700 27px var(--nc-serif); }
.tabTopBox .intro, .tabTopBox .desc { color: var(--nc-muted); line-height: 1.9; }
.tabTopBox .btnList, .tabTopBox .tabTopBox-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tabList { display: flex; gap: 26px; margin-bottom: 20px; border-bottom: 1px solid var(--nc-line); }
.tabList span { display: inline-block; padding: 12px 2px; color: var(--nc-muted); font-size: 15px; cursor: pointer; }
.tabList span:hover, .tabList span.current, .tabList .itct { color: var(--nc-gold); border-bottom: 2px solid var(--nc-gold); }
.lfO, .lfT, .ct_right, .lf { min-width: 0; }
#chapter-list, #chapter-section, .chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 18px; }
#chapter-list a, .chapter-list a { display: block; padding: 10px 0; border-bottom: 1px dashed var(--nc-line); font-size: 13px; color: var(--nc-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#comments { margin-top: 30px; }
#qrcode img { border-radius: 8px; }

/* 章节阅读 */
.con_box, #Jcontent { max-width: 860px; margin: 40px auto; padding: 44px 52px; background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: var(--nc-r); }
.con_box h1, #Jcontent h1 { margin-bottom: 30px; font: 600 30px/1.4 var(--nc-serif); text-align: center; }
#chapter_content, .con_box .content { font: 17px/2.1 var(--nc-serif); color: var(--nc-text-2); letter-spacing: .02em; }
#chapter_content p, .content p { margin: 0 0 1.1em; text-indent: 2em; }
.paging_box { display: flex; justify-content: center; gap: 12px; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--nc-line); }
.paging_box a { padding: 10px 26px; border: 1px solid var(--nc-line-2); border-radius: 999px; font-size: 14px; color: var(--nc-text-2); }
.paging_box a:hover { border-color: var(--nc-gold); color: var(--nc-gold); }
.left_bar_list, .right_bar_list { position: fixed; top: 50%; z-index: 40; display: flex; flex-direction: column; gap: 8px; transform: translateY(-50%); }
.left_bar_list { left: 18px; } .right_bar_list { right: 18px; }
/* 仅作用于直子磁贴：弹窗面板（db_box/setUp_box/听书面板/二维码浮层）也在侧栏内，
   毯式后代选择器会把它们的内层 div/a 全部压成 44px 磁贴（弹窗破碎的根因） */
.left_bar_list > .left_bar, .left_bar_list > .left_bar > a,
.right_bar_list > .right_bar, .right_bar_list > .right_bar > a {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--nc-surface); border: 1px solid var(--nc-line); color: var(--nc-muted); font-size: 12px; cursor: pointer;
}
.left_bar_list > .left_bar > a:hover, .right_bar_list > .right_bar > a:hover { color: var(--nc-gold); border-color: var(--nc-gold); }
.left_panel, .db_box, .setUp_box, .comments_box {
    position: fixed; top: 0; bottom: 0; z-index: 75; width: min(360px, 88vw); padding: 26px;
    overflow-y: auto; background: var(--nc-bg-2); border-right: 1px solid var(--nc-line); box-shadow: var(--nc-shadow);
}
.setUp_box, .comments_box { right: 0; border-right: 0; border-left: 1px solid var(--nc-line); }
.color_list { display: flex; flex-wrap: wrap; gap: 10px; }
.color_list a { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--nc-line-2); }
.fontSizeBox, .pageWidthBox { display: flex; gap: 10px; margin: 14px 0; }
.fontSizeBox span, .pageWidthBox span { padding: 6px 14px; border: 1px solid var(--nc-line); border-radius: 8px; font-size: 13px; cursor: pointer; }
#chapter-list-container a { display: block; padding: 11px 0; border-bottom: 1px solid var(--nc-line); font-size: 13px; color: var(--nc-text-2); }
.tts-panel, .tts-tbtn { background: var(--nc-surface-2); border: 1px solid var(--nc-line); border-radius: var(--nc-r-sm); }

/* 评论 */
#commentContent, .commentInput { width: 100%; }
#commentList { margin: 20px 0; }
#commentList li, .comment-item { padding: 16px 0; border-bottom: 1px solid var(--nc-line); }
#commentList img, .comment-item img { border-radius: 50%; }
#btnEmoji, #btnSubmit { margin-top: 10px; }
#emojiPanel { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: var(--nc-surface-2); border: 1px solid var(--nc-line); border-radius: var(--nc-r-sm); }
.emoji-item { padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.emoji-item:hover { background: var(--nc-gold-soft); }

/* 用户中心 / 文章 / 信息 */
.centerO, .wrapBox { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; margin: 36px auto; padding: 24px; }
.menuucenter, .usermenu, .userMenu, .lf { padding: 18px; background: var(--nc-surface-2); border: 1px solid var(--nc-line); border-radius: var(--nc-r-sm); }
.menuucenter a, .usermenu a, .userMenu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--nc-muted); font-size: 14px; }
.menuucenter a:hover, .menuucenter a.current, .usermenu a:hover { color: var(--nc-gold); background: var(--nc-gold-soft); }
table td, table th { padding: 12px 10px; border-bottom: 1px solid var(--nc-line); font-size: 13px; }
table th { color: var(--nc-muted); font-weight: 600; text-align: left; }
.infoBox h1, .article h1, .info-detail h1 { margin-bottom: 18px; font: 600 28px var(--nc-serif); }
.infoBox .content, .article .content, .detail .content { color: var(--nc-text-2); line-height: 2; }
.banner img, .boxCenter.banner img { width: 100%; border-radius: var(--nc-r); }

/* 404 */
.error-block { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--nc-bg); padding: 40px 20px; }
.error-block h2 { font: 700 clamp(90px, 18vw, 190px)/1 var(--nc-serif); color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(180deg, var(--nc-gold), rgba(224, 178, 106, .12)); -webkit-background-clip: text; background-clip: text; }
.error-block h3 { margin: 10px 0 8px; font: 600 24px var(--nc-serif); }
.error-block a.home { display: inline-block; margin: 26px 0; padding: 12px 32px; border-radius: 999px; background: var(--nc-gold); color: #17120a; font-size: 15px; }
.error-block .copyright { color: var(--nc-dim); font-size: 12px; }
.error-block .brand-logo img { max-height: 54px; }

/* 细节修正 */
.fas, .fa, [class^="fa-"], [class*=" fa-"] { color: var(--nc-gold); }
.breadcrumb, .position { color: var(--nc-dim); font-size: 12px; margin-bottom: 16px; }
.breadcrumb a { color: var(--nc-muted); }
img[data-src] { background: var(--nc-surface-2); }

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1200px) {
    .nc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .nc-columns { grid-template-columns: minmax(0, 1fr) 290px; }
    .nc-logo-sub { display: none; }
    .nc-nav-link { padding: 8px 9px; font-size: 13px; }
    .nc-search input.text { width: 100px; }
}
@media (max-width: 1024px) {
    .nc-header-inner { gap: 14px; }
    .nc-nav { display: none; }
    .nc-burger { display: block; }
    .nc-logo-sub { display: inline; }
    .nc-hero { grid-template-columns: 1fr; gap: 30px; padding: 34px; }
    .nc-hero-right { min-height: 280px; }
    .nc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nc-columns { grid-template-columns: 1fr; }
    .nc-rank { order: -1; }
    .sectionBox { grid-template-columns: 1fr; }
    .tabTopBox { grid-template-columns: 140px minmax(0, 1fr); }
    .tabTopBox img { width: 140px; }
    .tabTopBox .btnList, .tabTopBox .tabTopBox-btns { grid-column: 1 / -1; }
    .con_box, #Jcontent { padding: 34px 30px; }
    .left_bar_list, .right_bar_list { display: none; }
    .centerO, .wrapBox { grid-template-columns: 1fr; }
    .menuucenter, .usermenu, .userMenu { display: flex; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 768px) {
    .nc-container, .boxCenter, .wrap, .centerO, .centerFr, .centerSp, .wrapBox,
    .nc-header-inner, .foot { width: calc(100% - 32px); }
    .nc-header-inner { height: 62px; }
    .nc-logo-text { font-size: 18px; }
    .nc-logo-sub, .nc-search, .nc-theme-btn, .nc-app, .nc-login { display: none; }
    .nc-actions { margin-left: auto; }
    .nc-mini { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
    .nc-mini-nav { order: 3; width: 100%; overflow-x: auto; }
    .nc-mini-actions { margin-left: auto; }
    .nc-hero { padding: 26px 22px; border-radius: 16px; }
    .nc-hero h1 { font-size: 30px; }
    .nc-hero-stats { gap: 20px; }
    #boxCenter.nc-carousel { min-height: 240px; }
    .nc-carousel .slide-item { padding: 14px; gap: 14px; }
    .nc-carousel .nc-slide-cover { flex: 0 0 100px; width: 100px; }
    .nc-carousel .nc-slide-info h3 { font-size: 19px; }
    .nc-carousel .nc-slide-desc { -webkit-line-clamp: 2; }
    .nc-carousel .slide-item { padding-bottom: 28px; }
    .nc-carousel .slidepage { bottom: 6px; }
    .nc-quick { grid-template-columns: repeat(2, 1fr); }
    .nc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
    .nc-section { margin: 38px 0; }
    .nc-section-head h2, .nc-section-head .title strong { font-size: 21px; }
    .nc-updates { grid-template-columns: 1fr; }
    .nc-cta { flex-direction: column; align-items: flex-start; padding: 26px; }
    .nc-footer-top { grid-template-columns: 1fr; gap: 24px; }
    .nc-footer-qr { text-align: left; }
    .nc-ticker { border-radius: 14px; }
    .bookList, .booklist, .bookListSm, .novel-list, .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .con_box, #Jcontent { margin: 20px 12px; padding: 26px 20px; }
    #chapter_content, .con_box .content { font-size: 16px; line-height: 2; }
    .paging_box a { padding: 9px 16px; }
    .sectionBox, .bookBox, .box, .tabTopBox, .centerO, .wrapBox { padding: 18px; }
    .login-form, .register-form { margin: 24px 12px; padding: 22px; }
}
@media (max-width: 560px) {
    .nc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nc-hero-stats { display: none; }
    .nc-quick a { padding: 14px; gap: 10px; }
    .nc-quick i { width: 34px; height: 34px; font-size: 16px; }
    .nc-quick b { font-size: 14px; }
    .nc-ticker { padding: 11px 14px; }
    .nc-ticker-label { font-size: 12px; }
    .nc-carousel .nc-slide-cover { flex: 0 0 82px; width: 82px; }
    .nc-carousel .nc-slide-info h3 { font-size: 17px; }
    .nc-carousel .nc-slide-desc { display: none; }
    .bookList, .booklist, .bookListSm, .novel-list, .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tabTopBox { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
    .tabTopBox img { width: 96px; }
    .tabTopBox h1, .tabTopBox .bookname { font-size: 20px; }
    #chapter-list, #chapter-section, .chapter-list { grid-template-columns: 1fr; }
    .paging_box { flex-wrap: wrap; }
    .nc-totop { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 9. 首页补充组件 ---------- */
.nc-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nc-editor-grid .bookLink {
    padding: 18px; background: var(--nc-surface); border: 1px solid var(--nc-line);
    border-radius: var(--nc-r); transition: .22s ease;
}
.nc-editor-grid .bookLink:hover { border-color: var(--nc-gold); transform: translateY(-3px); }
.nc-editor-grid .bookImg { flex: 0 0 84px; width: 84px; margin: 0; }
.nc-editor-grid .bookIntro .nc-tag { display: inline-block; width: auto; }
.nc-editor-grid .bookIntro h2 { margin: 8px 0 4px; font: 600 17px var(--nc-serif); white-space: normal; }
.nc-editor-grid .bookIntro em { display: block; color: var(--nc-dim); font-size: 12px; font-style: normal; }
.nc-editor-grid .bookIntro > span:last-child {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-top: 8px; color: var(--nc-muted); font-size: 12px; line-height: 1.7;
}
.nc-grid.nc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 768px) {
    .nc-editor-grid { grid-template-columns: 1fr; }
    .nc-grid.nc-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .nc-grid.nc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 10. 旧入口兼容页 ---------- */
.nc-compat {
    position: relative; overflow: hidden; padding: 54px 48px;
    background: linear-gradient(120deg, var(--nc-gold-soft), transparent 68%), var(--nc-surface);
    border: 1px solid var(--nc-line); border-radius: var(--nc-r);
}
.nc-compat h1 { margin: 18px 0 12px; font: 700 clamp(28px, 3.4vw, 40px)/1.3 var(--nc-serif); }
.nc-compat p { max-width: 620px; color: var(--nc-muted); line-height: 1.9; }
.nc-compat .nc-hero-actions { margin-top: 26px; }
@media (max-width: 768px) { .nc-compat { padding: 32px 22px; } }

/* ---------- 11. 全局兜底（压过遗留规则） ---------- */
html, body { background-color: var(--nc-bg); }
body, body#content { color: var(--nc-text); }
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { color: var(--nc-text); }
input::placeholder, textarea::placeholder { color: var(--nc-dim); }
/* 字体图标兜底：避免 VIP 等页面因缺 Font Awesome 出现空位 */
[class^="fa-"]::before, [class*=" fa-"]::before { font-style: normal; margin-right: .4em; }
.fa-crown::before { content: "\2665"; }
.fa-coins::before { content: "\25C9"; }
.fa-credit-card::before { content: "\25A6"; }
.fa-check-circle::before { content: "\2713"; }
.fa-info-circle::before { content: "\24D8"; }
.fa-question-circle::before { content: "?"; }

/* ---------- 12. 合并旧 CSS 后的回归修复 ---------- */
/* 旧 common.css 给 body 设了 min-width:990px，会破坏响应式，必须解除 */
html, body, body#content {
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    overflow-x: clip;
}
/* 旧 CSS 的 .boxCenter{width:1200px}/@media{width:990px} 会撑破容器 */
.nc-container, .boxCenter, .wrap, .centerO, .centerFr, .centerSp, .wrapBox,
.nc-header-inner, .foot {
    width: calc(100% - 40px);
    max-width: var(--nc-max);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}
/* 旧 CSS 的 .navList .current 会给选中导航项铺满品牌色实心底 */
.nc-nav .nc-nav-link, .nc-nav .nc-nav-link.current {
    background: transparent !important;
    color: var(--nc-text-2) !important;
}
.nc-nav .nc-nav-link.current { color: var(--nc-gold) !important; }
.nc-nav .nc-nav-link:hover { background: var(--nc-gold-soft) !important; color: var(--nc-gold) !important; }
.nc-nav .nc-nav-link.current::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px;
    width: auto; transform: none;
    height: 2px; border-radius: 2px; background: var(--nc-gold);
}
/* 组件内的强制色块统一收敛 */
.nc-btn--gold, .nc-login .registerBtn, .submit, .nc-card-badge { color: #17120a; }
@media (max-width: 768px) {
    .nc-container, .boxCenter, .wrap, .centerO, .centerFr, .centerSp, .wrapBox,
    .nc-header-inner, .foot {
        width: calc(100% - 28px) !important;
        max-width: 100% !important;
    }
    /* 旧页面常见的固定宽表格 / 左右栏在窄屏改为流式 */
    .left_box, .right_box, .body-con-left, .body-con-right,
    .content-left, .content-right, .rtList, .ct_left, .ct_last {
        float: none !important; width: auto !important; max-width: 100% !important;
    }
    table, .bookrack_table, .table_box { max-width: 100%; font-size: 12px; }
}

/* ---------- 13. 新组件防污染（旧 CSS 通用规则兜底） ---------- */
.nc-card-badge {
    background: var(--nc-gold) !important; color: #17120a !important;
    padding: 3px 9px !important; border-radius: 6px !important;
    font-size: 11px !important; font-weight: 700 !important;
}
.nc-tag, .nc-slide-info .nc-tag, .nc-editor-grid .bookIntro .nc-tag {
    background: var(--nc-gold-soft) !important; color: var(--nc-gold) !important;
    width: auto !important; padding: 3px 9px !important; border-radius: 6px !important;
}
.nc-btn--gold, .nc-slide-cta, .nc-login .registerBtn {
    background: var(--nc-gold) !important; color: #17120a !important;
}
.nc-logo-mark { background: var(--nc-gold-soft) !important; }
.nc-quick i, .nc-ticker-label, .nc-rank-num { background: var(--nc-gold-soft) !important; color: var(--nc-gold) !important; }

/* ---------- 14. 历史固定宽容器自适应（窄屏错位根治） ---------- */
/* 旧样式把主容器写死 1200/990/900/1280px，窗口一窄就溢出、裁切、挤压 */
.sectionBox, .book_rank_list, .tonglan, .focus-box, .personal_box,
.wrap, .centerO, .centerFr, .centerSp, .wrapBox, .boxCenter {
    width: 100% !important;
    max-width: var(--nc-max) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* 阅读正文保留舒适宽度，但窄屏可收缩 */
.con_box { width: min(900px, 100%) !important; max-width: 100% !important; }
.w900  .con_box { width: min(900px, 100%) !important; }
.w800  .con_box { width: min(800px, 100%) !important; }
.w1280 .con_box { width: min(1280px, 100%) !important; }
/* 阅读页两侧悬浮工具条用 -520px 负 margin，窄屏会飞出视口 */
@media (max-width: 1400px) {
    .left_bar_list, .right_bar_list, .bar_list { display: none !important; }
}
@media (max-width: 1200px) {
    .book_rank_list .aside, .book_rank_list .rank_con,
    .left_box, .right_box, .body-con-left, .body-con-right,
    .content-left, .content-right {
        float: none !important;
        width: auto !important;
        max-width: 100% !important;
    }
    .focus-box, .slide-item { width: 100% !important; max-width: 100% !important; }
}
/* 历史样式残留的亮蓝/亮红链接收敛到主题色 */
.nc-main a { color: inherit; }
.nc-main .blue, .nc-main a.blue { color: var(--nc-blue) !important; }
.nc-main .red,  .nc-main a.red  { color: var(--nc-red) !important; }
.nc-main .org,  .nc-main a.org  { color: var(--nc-gold) !important; }

/* ═══════════════ §15 语言切换器（langswitch 插件） ═══════════════
   插件自带内联样式为浅色主题（白底/灰字/绿高亮），这里用更高特异性的
   选择器（.langswitch-widget 前缀）在深色主题下重新映射为设计令牌。 */
.langswitch-widget .langswitch-select {
    height: 34px;
    background: var(--nc-surface-2);
    color: var(--nc-text-2);
    border: 1px solid var(--nc-line-2);
    border-radius: 999px;
    padding: 0 12px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.langswitch-widget .langswitch-select:hover {
    border-color: var(--nc-gold);
    color: var(--nc-gold);
}
.langswitch-widget .langswitch-flags,
.langswitch-widget .langswitch-list {
    display: flex;
    gap: 6px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.langswitch-widget .langswitch-flags li a,
.langswitch-widget .langswitch-list li a {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--nc-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color .2s, background .2s;
}
.langswitch-widget .langswitch-flags li a:hover,
.langswitch-widget .langswitch-list li a:hover {
    color: var(--nc-gold);
    background: var(--nc-gold-soft);
}
.langswitch-widget .langswitch-flags li.active a,
.langswitch-widget .langswitch-list li.active a {
    color: var(--nc-gold);
    background: var(--nc-gold-soft);
    font-weight: 600;
}
/* 头部位置：紧跟导航项尾部（间距收紧） */
.nc-header .langswitch-widget {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 10px;
    flex: 0 0 auto;
}
/* 抽屉（移动端）：占满一行 */
.nc-drawer .langswitch-widget {
    width: 100%;
    margin: 6px 0 10px;
}
.nc-drawer .langswitch-widget .langswitch-select {
    width: 100%;
}
/* 小屏头部空间有限，切换器只在抽屉里出现 */
@media (max-width: 900px) {
    .nc-header .langswitch-widget { display: none; }
}

/* ═══════════════ §16 顶部语言条（日间/夜间自适应） ═══════════════
   模板把切换器放在 header 底部独立一行；原先的内联样式写死 color:#fff，
   日间模式浅底上会白字不可见。这里统一改用设计令牌，并让小屏交给抽屉。 */
.nc-lang-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0 8px;
}
/* 插件未启用时钩子返回空，不留空白带 */
.nc-lang-bar:empty,
.nc-drawer-lang:empty { display: none; }
.nc-header .nc-lang-bar .langswitch-widget { margin-left: 0; }
.nc-lang-bar .langswitch-widget .langswitch-select {
    height: 28px;
    font-size: 12px;
}
html:not([data-nc-theme="light"]) .nc-lang-bar .langswitch-select { color-scheme: dark; }
html[data-nc-theme="light"] .nc-lang-bar .langswitch-select { color-scheme: light; }
.nc-drawer-lang { margin: 8px 0 4px; }
/* 导航收起时同步隐藏顶部语言条，改由抽屉内的切换器接管 */
@media (max-width: 1024px) {
    .nc-lang-bar { display: none !important; }
}

/* ═══════════════ §17 文字溢出容器 · 全局收敛（中英文通用） ═══════════════
   现象：各页面文字会撑破/跑出容器，中文与英文都存在，与文案长度无关。
   根因：① 长文本（中文无空格、英文长词、URL）没有断点；② flex/grid 子项
   默认 min-width:auto 被最长内容撑开；③ 部分元素被 legacy 的 nowrap 命中
   却没有 text-overflow，文字被硬裁切；④ 固定宽表单/导航不收缩。 */

/* 1) 全局允许在任意字符间断行（overflow-wrap 可继承，覆盖所有元素） */
html {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 2) flex/grid 子项不再被最长内容撑破。
   :where() 特异性为 0，只补默认值，不覆盖任何既有 min-width 声明。 */
:where(.nc-main, .nc-container, .boxCenter, .nc-header-inner, .nc-hero,
       .nc-grid, .nc-columns, .sectionBox, .nc-card, .nc-drawer,
       .bookList, .booklist, .bookListSm, .novel-list, .list) :where(*) {
    min-width: 0;
}

/* 3) 文本块不超出父容器；超长串自动折行 */
:where(.nc-main, .nc-container, .boxCenter) :where(p, h1, h2, h3, h4, h5, li, td, dd, dt, blockquote) {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* 4) 被 legacy nowrap 命中的多行文本恢复折行（轮播简介此前被硬裁成一行） */
.nc-carousel .nc-slide-desc,
.bookIntro p,
.bookIntro .intro,
.nc-card p {
    white-space: normal !important;
    overflow-wrap: anywhere;
}
.nc-carousel .nc-slide-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 5) 筛选标签 / 页签：保持单行胶囊，过长时省略而不是撑破 */
.filter-group a, .channel-switch a, .tabList > a, .view-mode a {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* 6) 按钮类：允许折行 + 不超出父级，避免长文案顶破按钮 */
.nc-btn, .read, .registerBtn, .loginBtn, .bookshelf, .follow-btn,
.btn-read, .look_readBtn, .submit-btn, .submit, .nc-btn--ghost,
.nc-gold, .downLoad, .nc-slide-cta {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    text-align: center;
}

/* 7) 导航：英文/多语言长标签改为横向可滑动，不再被 overflow:hidden 直接裁掉 */
.nc-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nc-nav::-webkit-scrollbar { display: none; }
.nc-nav-link { flex: 0 0 auto; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* 8) 迷你搜索框：输入框可收缩，按钮不再顶出表单 */
.nc-search--mini { min-width: 0; max-width: 100%; flex-wrap: nowrap; }
.nc-search--mini input.text { width: auto; flex: 1 1 auto; min-width: 0; }
.nc-search--mini .submit, .nc-search--mini button { flex: 0 0 auto; }

/* 9) 表格 / 预格式化文本 / 长链接不撑破布局 */
table, pre, code, .con_box, .article, .content, .chapter-content {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* ═══════════════ §18 头部单行紧凑 · 控件视觉统一 ═══════════════
   现象：语言切换器独占 header 第二行，与导航/搜索/登录按钮不在同一行，
         各行控件高度（38/34/28px）与字号不一致；导航项之间、导航与控件
         组之间间距偏大。
   处理：模板已把切换器移入 .nc-actions 与主行同排（.nc-lang-bar 废弃）；
         这里统一主行控件为 36px 高 / 13px 字号，并逐层收紧 gap。 */

/* 1) 主行整体收紧 */
.nc-header-inner { gap: 14px; height: 64px; }
.nc-logo { gap: 7px; }

/* 2) 导航项：拉近间距、做成与右侧控件同高的可点击区 */
.nc-nav { gap: 0; }
/* 关键：legacy/common.css 的 `.navList a`（0,1,1）会用 !important 之外的
   font-size:16px / padding:0 13px / margin-right:20px / float:left 顶掉
   `.nc-nav-link`（0,1,0）。这里提到 0,3,0 并显式清零，导航才与右侧控件统一。 */
.nc-header .nc-nav .nc-nav-link {
    display: inline-flex; align-items: center; justify-content: center;
    height: auto; line-height: 1.25;
    margin: 0; float: none;
    padding: 8px 11px;
    font-size: 16px; font-weight: 500;
    color: var(--nc-text-2); background: transparent;
}
/* 当前项金色指示条跟随新的 10px 内边距（覆盖 §12 的 13px） */
.nc-nav .nc-nav-link.current::after { left: 11px; right: 11px; }

/* 3) 控件组：间距与高度统一 */
.nc-actions { gap: 8px; }
.nc-search { height: 36px; padding: 0 5px 0 11px; gap: 5px; }
.nc-search input.text { width: 112px; font-size: 12px; }
.nc-search input.submit, .nc-search button[type="submit"] {
    height: 26px; min-height: 26px; padding: 0 11px;
}
.nc-theme-btn, .nc-app .downLoad { width: 36px; height: 36px; }
.nc-login a { min-height: 34px; padding: 0 13px; font-size: 13px; }

/* 4) 语言切换器：与搜索框同款胶囊（特异性高于 §15/§16，且顺序在后） */
.nc-actions .langswitch-widget {
    display: inline-flex; align-items: center;
    margin: 0; flex: 0 0 auto;
}
.nc-actions .langswitch-widget .langswitch-select {
    height: 36px; padding: 0 11px; font-size: 12px;
    background: var(--nc-surface);
    border: 1px solid var(--nc-line);
    border-radius: 999px;
    color: var(--nc-text-2);
}
html:not([data-nc-theme="light"]) .nc-actions .langswitch-select { color-scheme: dark; }
html[data-nc-theme="light"] .nc-actions .langswitch-select { color-scheme: light; }

/* 5) 宽度不足时优先压缩导航（可横向滑动），保证切换器与搜索框仍在同一行 */
@media (max-width: 1180px) {
    .nc-header-inner { gap: 10px; }
    .nc-header .nc-nav .nc-nav-link { padding: 0 8px; }
    .nc-nav .nc-nav-link.current::after { left: 8px; right: 8px; }
    .nc-search input.text { width: 92px; }
}

/* ═══════════════ §19 导航完整性 + 详情页组件深色统一 ═══════════════ */

/* --- A. 头部瘦身，保证最后一项导航（公告 / Notice）不被裁掉 --- */
/* 语言下拉限宽：插件选项文案较长（如「简体中文」「日本語」），
   不限制会把 .nc-actions 撑宽，反过来挤压 .nc-nav 导致末项被裁。 */
.nc-actions .langswitch-widget .langswitch-select {
    max-width: 104px;
    min-width: 0;
    text-overflow: ellipsis;
}
.nc-actions .nc-search input.text { width: 92px; min-width: 0; }
.nc-login a { padding: 0 10px; }
.nc-header-inner { gap: 10px; }
.nc-header .nc-nav .nc-nav-link { padding: 0 clamp(6px, .7vw, 10px); }
.nc-nav .nc-nav-link.current::after { left: 8px; right: 8px; }

/* 中等宽度起收掉 APP 下载图标（功能仍可从抽屉/页脚进入），优先保导航 */
@media (max-width: 1360px) {
    .nc-app { display: none; }
    .nc-actions .nc-search input.text { width: 82px; }
}
@media (max-width: 1180px) {
    .nc-actions .nc-search input.text { width: 72px; }
    .nc-actions .langswitch-widget .langswitch-select { max-width: 88px; }
}

/* --- B. 书籍详情页「本书作者」卡片：金色实底 → 深色表面 --- */
/* legacy/bookDetails.css 把 .authorInfo 铺成 var(--nc-gold) 实底，
   卡内文字却是浅色，对比度极低；同时与整站深色卡片语言冲突。 */
.authorInfo {
    background: var(--nc-surface);
    border: 1px solid var(--nc-line);
    border-radius: 12px;
    padding: 20px;
}
.authorInfo h2 { color: var(--nc-text); }
.authorInfo .author span {
    color: var(--nc-text-2);
    width: auto;
    max-width: calc(100% - 70px);
}
.authorInfo p { color: var(--nc-muted); }
.authorList { border-top: 1px solid var(--nc-line); }
.authorList div span { color: var(--nc-muted); }
.authorList div em { color: var(--nc-gold); }
.authorInfo .follow-btn {
    background: var(--nc-gold-soft);
    border: 1px solid var(--nc-gold);
    color: var(--nc-gold);
}
.authorInfo .follow-btn.followed {
    background: var(--nc-surface-2);
    border-color: var(--nc-line-2);
    color: var(--nc-muted);
}

/* --- C. 详情页操作按钮：恢复单行，修复「加入书架」折成两行 --- */
/* §17 给 .bookshelf 等加了 white-space:normal + line-height:1.35，
   覆盖了 legacy 的 .readBtn a{line-height:38px}，文字折行并溢出按钮。 */
.readBtn a {
    width: auto;
    min-width: 102px;
    padding: 0 12px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow-wrap: normal;
    line-height: 38px;
}

/* ═══════════════ §20 面包屑纠错（tabTopBox / .list 语义冲突） ═══════════════
   §7 把 .tabTopBox 归入「卡片」并加背景/边框/圆角，§8 又把它设成三列 grid
   （170px 封面 + 内容 + 按钮），§7 还把 .list 设成 grid 列表。
   但真实模板中 .tabTopBox 只是面包屑容器：
     <div class="tabTopBox"><div class="boxCenter clearfix">
       <a class="list">首页<i></i></a> … <a class="last">书名</a>
     </div></div>
   结果：面包屑被塞进 170px 窄列竖排散落，容器变成一个大空卡片。
   这里恢复为横向面包屑；.list 仅在 .tabTopBox 作用域覆盖，
   不影响 novel/girls.html 里作为列表容器的 .list。 */
.tabTopBox {
    display: block;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 14px 0 6px;
    margin-bottom: 8px;
}
.tabTopBox > .boxCenter {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 0;
    width: min(var(--nc-max), calc(100% - 48px));
    margin-inline: auto;
}
.tabTopBox .boxCenter > a.list,
.tabTopBox .boxCenter > a.last {
    display: inline-flex; align-items: center;
    width: auto; min-width: 0; max-width: none;
    float: none; margin: 0;
    font-size: 13px; line-height: 1.6;
    color: var(--nc-muted);
    white-space: nowrap;
    text-decoration: none;
}
.tabTopBox .boxCenter > a.list:hover { color: var(--nc-gold); }
.tabTopBox .boxCenter > a.last { color: var(--nc-text-2); }
/* 分隔符：改用字符，避免依赖 legacy 的雪碧图 */
.tabTopBox .list i {
    width: auto; height: auto; padding: 0 7px;
    background: none; font-style: normal; color: var(--nc-dim);
}
.tabTopBox .list i::before { content: '›'; }

/* ═══════════════ §21 迷你头部（headermini）对齐 ═══════════════
   book/detail、author/detail、search、pages/default、user/report 共用
   common/headermini.html。其中 .nc-mini-logo 未设 flex，而 .nc-logo-mark
   是 display:grid 的块级元素 → 独占一行，把「飞鸟阅读」挤到下一行；
   .clearfix 的 :after 伪元素又混进 .nc-mini 的 flex 子项里占位。 */
.nc-mini-logo {
    display: inline-flex; align-items: center; gap: 9px;
    flex: 0 0 auto; text-decoration: none;
}
.nc-mini-logo .nc-logo-mark { flex: 0 0 auto; }
.nc-mini-logo .nc-logo-text { white-space: nowrap; }
.nc-mini::after { content: none; display: none; }
.nc-mini-nav { min-width: 0; }
.nc-mini-actions { flex: 0 0 auto; margin-left: auto; }

/* ═══════════════ §22 旧 .navSecond 包装层兜底 ═══════════════
   5 个模板原先把 headermini 包在 <div class="navSecond"> 里，这是旧主题的
   「吸顶二级导航」，会带来灰底 rgba(68,68,68,.96)、height:44px 限高、
   .logo{display:block;float:left;width:103px} 和 .navLi a{float:left;
   line-height:44px} —— 正是头部灰条、logo 拆成两行、导航错位的来源。
   模板已改为 .nc-mini-wrap；这里保留兜底，兼容尚未更新的缓存页面。 */
body .navSecond {
    height: auto; line-height: normal;
    background: transparent; box-shadow: none;
    border-bottom: 1px solid var(--nc-line);
    display: block; padding: 0; gap: 0;
}
body .navSecond .logo {
    display: inline-flex; align-items: center; gap: 9px;
    float: none; width: auto; height: auto; margin: 0;
}
body .navSecond .navLi { float: none; }
body .navSecond .navLi a { float: none; line-height: 1.4; padding: 7px 12px; }
body .navSecond form { float: none; }
body .navSecond .logoWrapRt { float: none; }
.nc-mini-wrap { border-bottom: 1px solid var(--nc-line); }

/* ═══════════════ §23 书籍详情页 · 全新 UI（nc-book-v2 作用域） ═══════════════
   目标：把旧模板「860px 固定宽 + float 双栏」改成卡片化 grid 布局。
   全部规则以 .nc-book-v2 前缀限定，并置于样式表末尾，
   覆盖 legacy/bookDetails.css 与早期 §7/§8/§19 的通用深色化，
   同时不污染首页 / 书库 / 排行榜等其它页面。
   DOM 与旧类名（.bookIntro/.tabList/.readBtn/.lfT 等）完全保留，
   book.js 里的 .tabList span 切换、书架、关注、目录分页逻辑均不受影响。 */
.nc-book-v2 { padding-bottom: 44px; }
/* clearfix 的 ::after 在 grid / flex 容器里会变成多余网格项，统一清掉 */
.nc-book-v2 .clearfix::before,
.nc-book-v2 .clearfix::after { content: none !important; display: none !important; }
.nc-book-v2 .tabTopBox { padding-top: 22px; }
.nc-book-v2 a { text-decoration: none; }

/* --- A. Hero：封面 + 信息 + 作者卡，两块卡片并排 --- */
.nc-book-v2 .nc-book-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 22px;
    align-items: start;
    margin: 8px 0 22px;
    padding: 24px;
    border: 1px solid var(--nc-line);
    border-radius: 20px;
    background:
        radial-gradient(520px 260px at 88% -20%, rgba(224, 178, 106, .10), transparent 70%),
        linear-gradient(160deg, var(--nc-surface) 0%, var(--nc-bg-2) 100%);
    box-shadow: var(--nc-shadow-sm);
    border-bottom: 1px solid var(--nc-line);
}
.nc-book-v2 .nc-book-hero > .lf,
.nc-book-v2 .nc-book-hero > .rt {
    float: none; width: auto; max-width: 100%;
    margin: 0; min-width: 0;
}
.nc-book-v2 .bookIntro {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 0 26px;
    align-items: start;
}
.nc-book-v2 .bookIntro > .bookCover {
    float: none; width: 190px; margin: 0;
    position: relative; border-radius: 12px;
    box-shadow: var(--nc-shadow);
}
.nc-book-v2 .bookCover .bookImg {
    width: 100%; height: auto; aspect-ratio: 3 / 4;
    border-radius: 12px; overflow: hidden;
    background: var(--nc-surface-2);
}
.nc-book-v2 .bookCover .bookImg img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; border-radius: 12px;
}
.nc-book-v2 .bookCover .lz {
    top: 10px; right: 10px;
    padding: 2px 10px; border-radius: 999px;
    background: var(--nc-gold); color: #17120a;
    font-size: 11px; font-weight: 700; line-height: 20px;
    letter-spacing: .04em;
}
.nc-book-v2 .bookIntro > .nc-book-info { min-width: 0; }
.nc-book-v2 .bookNm { padding: 0; line-height: 1.5; }
.nc-book-v2 .bookNm .bkNm {
    display: block; margin: 0 0 8px; padding: 0;
    font: 700 clamp(24px, 2.4vw, 32px)/1.3 var(--nc-serif);
    color: var(--nc-text); letter-spacing: .02em;
    overflow-wrap: anywhere;
}
.nc-book-v2 .bookNm .author,
.nc-book-v2 .bookNm .author a { font-size: 13px; color: var(--nc-muted); }
.nc-book-v2 .bookNm .author a:hover { color: var(--nc-gold); }

/* 标签 pill */
.nc-book-v2 .sortList {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 16px 0 0; overflow: visible;
}
.nc-book-v2 .sortList a {
    float: none; margin: 0; padding: 3px 11px;
    font-size: 12px; line-height: 1.7;
    color: var(--nc-gold); background: var(--nc-gold-soft);
    border: 1px solid rgba(224, 178, 106, .28);
    border-radius: 999px; white-space: nowrap;
}

/* 数据条：四格等分，隐藏旧 hr 竖线 */
.nc-book-v2 .datum {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0 0; overflow: hidden;
    border: 1px solid var(--nc-line); border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}
.nc-book-v2 .datum hr { display: none; }
.nc-book-v2 .datum > span {
    float: none; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 10px 6px;
    border-right: 1px solid var(--nc-line);
    font-size: 12px; color: var(--nc-muted); text-align: center;
    overflow-wrap: anywhere;
}
.nc-book-v2 .datum > span:last-of-type { border-right: 0; }
.nc-book-v2 .datum em {
    position: static; top: auto;
    font: 600 18px/1.25 var(--nc-serif); font-style: normal;
    color: var(--nc-gold);
}

/* 操作按钮：金色主 CTA + 描边次按钮 */
.nc-book-v2 .readBtn {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 20px 0 0; min-width: 0;
}
.nc-book-v2 .readBtn > a,
.nc-book-v2 .readBtn > .code { float: none; margin: 0; }
.nc-book-v2 .readBtn a {
    float: none; width: auto; min-width: 0; height: 42px;
    padding: 0 16px; box-sizing: border-box;
    font-size: 14px; font-weight: 600; line-height: 40px;
    white-space: nowrap; overflow-wrap: normal; text-align: center;
    border: 1px solid var(--nc-line-2); border-radius: 10px;
    background: var(--nc-surface-2); color: var(--nc-text-2);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.nc-book-v2 .readBtn a:hover { transform: translateY(-2px); border-color: var(--nc-gold); color: var(--nc-gold); opacity: 1; }
.nc-book-v2 .readBtn a.read {
    min-width: 156px; border-color: transparent;
    background: linear-gradient(135deg, var(--nc-gold-2), var(--nc-gold));
    color: #17120a; box-shadow: 0 8px 22px rgba(224, 178, 106, .22);
}
.nc-book-v2 .readBtn a.read:hover { color: #17120a; background: var(--nc-gold-2); }
.nc-book-v2 .readBtn a.bookshelfed,
.nc-book-v2 .readBtn a.alreadyIn {
    background: var(--nc-surface-2); border-color: var(--nc-line);
    color: var(--nc-muted);
}
.nc-book-v2 .readBtn > .code { position: relative; }

/* 分段式 Tab（保留 span 结构供 book.js 绑定） */
.nc-book-v2 .bookIntro > .tabList {
    grid-column: 1 / -1;
    display: flex; gap: 4px; align-items: center;
    margin: 24px 0 0; padding: 5px;
    overflow-x: auto; scrollbar-width: none;
    background: var(--nc-surface-2);
    border: 1px solid var(--nc-line); border-bottom: 1px solid var(--nc-line);
    border-radius: 12px;
}
.nc-book-v2 .bookIntro > .tabList::-webkit-scrollbar { display: none; }
.nc-book-v2 .tabList > span {
    flex: 0 0 auto; position: relative;
    margin: 0; padding: 8px 18px;
    font-size: 14px; font-weight: 600; line-height: 1.5;
    color: var(--nc-muted); border-bottom: 0; border-radius: 8px;
    white-space: nowrap;
}
.nc-book-v2 .tabList > span:hover { color: var(--nc-gold); border-bottom: 0; }
.nc-book-v2 .tabList > span.current,
.nc-book-v2 .tabList > span.itct.current {
    color: #17120a; background: var(--nc-gold); border-bottom: 0;
}
.nc-book-v2 .tabList > span em { display: none !important; }
.nc-book-v2 .tabList > span i { font-size: 12px; font-style: normal; opacity: .8; }

/* --- B. 作者卡片 --- */
.nc-book-v2 .authorInfo {
    padding: 20px; border: 1px solid var(--nc-line); border-radius: 16px;
    background: var(--nc-surface); box-shadow: var(--nc-shadow-sm);
}
.nc-book-v2 .authorInfo h2 {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--nc-line);
    font: 600 14px/1.6 var(--nc-sans); color: var(--nc-muted);
}
.nc-book-v2 .authorInfo .follow-btn {
    flex: 0 0 auto; padding: 4px 12px; border-radius: 999px;
    font-size: 12px; background: var(--nc-gold-soft);
    border: 1px solid var(--nc-gold); color: var(--nc-gold);
}
.nc-book-v2 .authorInfo .follow-btn:hover { background: var(--nc-gold); color: #17120a; opacity: 1; box-shadow: none; }
.nc-book-v2 .authorInfo .follow-btn.followed {
    background: var(--nc-surface-2); border-color: var(--nc-line-2); color: var(--nc-muted);
}
.nc-book-v2 .authorInfo .author {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0; overflow: visible;
}
.nc-book-v2 .authorInfo .author img {
    float: none; margin: 0; width: 54px; height: 54px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--nc-gold-soft);
}
.nc-book-v2 .authorInfo .author span {
    float: none; width: auto; max-width: none; min-width: 0;
    line-height: 1.5; font-size: 16px; font-weight: 600;
    color: var(--nc-text); overflow-wrap: anywhere;
}
.nc-book-v2 .authorList {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px; margin: 0; padding-top: 14px;
    border-top: 1px solid var(--nc-line); overflow: visible;
}
.nc-book-v2 .authorList > div {
    float: none; width: auto; margin: 0; padding: 10px 4px;
    text-align: center; background: var(--nc-surface-2); border-radius: 10px;
}
.nc-book-v2 .authorList > div img { width: 20px; height: 20px; object-fit: contain; opacity: .8; }
.nc-book-v2 .authorList > div span {
    display: block; margin: 6px 0 2px; font-size: 11px; color: var(--nc-muted);
}
.nc-book-v2 .authorList > div em {
    display: block; font: 600 15px/1.4 var(--nc-serif); color: var(--nc-gold);
}
.nc-book-v2 .authorInfo p { color: var(--nc-muted); }

/* --- C. 内容区：主栏 + 侧栏 --- */
.nc-book-v2 .nc-book-content {
    display: grid; grid-template-columns: minmax(0, 1fr) 296px;
    gap: 22px; align-items: start;
}
.nc-book-v2 .nc-book-content > .lfO,
.nc-book-v2 .nc-book-content > .lfT {
    float: none; width: auto; max-width: 100%; margin: 0;
    min-width: 0; grid-column: 1; grid-row: 1;
}
.nc-book-v2 .nc-book-content > .rt {
    float: none; width: auto; max-width: 100%; margin: 0;
    min-width: 0; grid-column: 2; grid-row: 1;
}
.nc-book-v2 .lfO > h2,
.nc-book-v2 #comments > h2 {
    margin: 0 0 14px; padding-left: 12px;
    border-left: 3px solid var(--nc-gold);
    font: 600 19px/1.5 var(--nc-serif); color: var(--nc-text);
}
.nc-book-v2 .lfO > .intro {
    margin: 0 0 18px; padding: 18px 20px;
    background: var(--nc-surface); border: 1px solid var(--nc-line);
    border-radius: 14px;
    font-size: 14px; line-height: 1.95; color: var(--nc-text-2);
    white-space: pre-wrap; text-indent: 0; overflow-wrap: anywhere;
}
.nc-book-v2 .newChapterBox {
    display: flow-root;
    margin: 0 0 24px; padding: 18px 20px;
    background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: 14px;
}
.nc-book-v2 .newChapterBox .zxzj {
    float: none; margin: 0 0 10px; font: 600 15px/1.5 var(--nc-serif); color: var(--nc-gold);
}
.nc-book-v2 .newChapterBox .newChapter {
    float: none; width: auto; max-width: 100%; min-width: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px;
}
.nc-book-v2 .newChapter > div {
    float: none; width: auto; min-width: 0; margin: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 0; border-bottom: 1px dashed var(--nc-line);
}
.nc-book-v2 .newChapter > div a {
    float: none; max-width: none;
    flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--nc-text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nc-book-v2 .newChapter > div a:hover { color: var(--nc-gold); }
.nc-book-v2 .newChapter > div em {
    flex: 0 0 auto; font-size: 11px; color: var(--nc-dim); font-style: normal;
}
.nc-book-v2 .newChapter > div a.chapterMore { color: var(--nc-gold); }
.nc-book-v2 .newChaptercontent {
    display: flow-root; clear: both; float: none;
    width: auto; max-width: 100%; min-width: 0;
    margin: 0 0 24px; padding: 18px 20px;
    background: var(--nc-surface); border: 1px solid var(--nc-line);
    border-radius: 14px; font-size: 14px; line-height: 1.9; color: var(--nc-text-2);
    overflow-wrap: anywhere;
}
.nc-book-v2 .newChaptercontent h3 {
    margin: 0 0 12px; font: 600 17px var(--nc-serif); color: var(--nc-gold);
}

/* 相似推荐 */
.nc-book-v2 .likeRead {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px; margin: 0 0 24px; overflow: visible;
}
.nc-book-v2 .likeRead > a {
    float: none; width: auto; margin: 0; padding: 10px;
    min-width: 0; text-align: center;
    background: var(--nc-surface); border: 1px solid var(--nc-line);
    border-radius: 12px; transition: transform .18s ease, border-color .18s ease;
}
.nc-book-v2 .likeRead > a:hover { transform: translateY(-3px); border-color: var(--nc-gold); }
.nc-book-v2 .likeRead .bookImg {
    width: 100%; aspect-ratio: 3 / 4; border-radius: 8px;
    overflow: hidden; background: var(--nc-surface-2);
}
.nc-book-v2 .likeRead .bookImg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nc-book-v2 .likeRead h3 {
    margin: 9px 0 2px; font: 600 13px/1.5 var(--nc-sans); color: var(--nc-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nc-book-v2 .likeRead span {
    display: block; font-size: 11px; color: var(--nc-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 评论区 */
.nc-book-v2 #comments {
    margin: 0; padding: 18px 20px;
    background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: 14px;
}
.nc-book-v2 #comments h2 { border-left-color: var(--nc-gold); }
.nc-book-v2 #comments h2 i { display: none; }

/* 目录页（Tab 切换显示） */
.nc-book-v2 .lfT {
    padding: 18px 20px; background: var(--nc-surface);
    border: 1px solid var(--nc-line); border-radius: 14px; overflow: hidden;
}
.nc-book-v2 .chapter-list-box {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px; counter-reset: nc-chapter;
}
.nc-book-v2 .chapter-list-box a {
    float: none; width: auto !important; min-width: 0;
    display: flex; align-items: center; gap: 9px;
    padding: 9px 0; border-bottom: 1px dashed var(--nc-line);
    font-size: 13px; color: var(--nc-text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nc-book-v2 .chapter-list-box a::before {
    counter-increment: nc-chapter; content: counter(nc-chapter, decimal-leading-zero);
    flex: 0 0 auto; font: 11px/1 var(--nc-sans); color: var(--nc-dim);
}
.nc-book-v2 .chapter-list-box a:hover { color: var(--nc-gold); }
.nc-book-v2 .chapter-pagination { flex-wrap: wrap; gap: 10px; }
.nc-book-v2 .chapter-pagination__info .chapter-current-page { color: var(--nc-gold); }
.nc-book-v2 .chapter-pagination__btn { border-radius: 8px; }
.nc-book-v2 .chapter-pagination__btn:hover:not(.disabled) {
    background: var(--nc-gold); border-color: var(--nc-gold); color: #17120a;
}
.nc-book-v2 .chapter-pagination__jump {
    background: var(--nc-surface-2); border-radius: 8px; color: var(--nc-text-2);
}

/* 侧栏榜单 */
.nc-book-v2 .bookWrap {
    margin: 0 0 18px; padding: 16px 18px;
    background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: 14px;
}
.nc-book-v2 .bookWrap h2 {
    margin: 0 0 8px; padding: 0 0 10px;
    border-bottom: 1px solid var(--nc-line);
    font: 600 16px/1.5 var(--nc-serif); color: var(--nc-text);
}
.nc-book-v2 .bookWrap a {
    display: flex; align-items: center; gap: 9px;
    margin: 0; padding: 8px 0; line-height: 1.45;
    border-bottom: 1px dashed var(--nc-line); overflow: visible;
}
.nc-book-v2 .bookWrap a:last-child { border-bottom: 0; }
.nc-book-v2 .bookWrap a i {
    float: none; width: 20px; height: 20px; flex: 0 0 20px;
    line-height: 20px; border-radius: 6px; font-size: 11px; font-style: normal;
    background: var(--nc-surface-3); color: var(--nc-muted);
}
.nc-book-v2 .bookWrap a i.o,
.nc-book-v2 .bookWrap a i.t,
.nc-book-v2 .bookWrap a i.th { background: var(--nc-gold); color: #17120a; }
.nc-book-v2 .bookWrap a span {
    float: none; width: auto; flex: 1 1 auto; min-width: 0; margin: 0;
    font-size: 13px; color: var(--nc-text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nc-book-v2 .bookWrap a em {
    float: none; width: auto; flex: 0 1 auto; max-width: 36%; min-width: 0;
    font-size: 11px; font-style: normal; color: var(--nc-dim) !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- D. 响应式 --- */
@media (max-width: 1080px) {
    .nc-book-v2 .nc-book-hero,
    .nc-book-v2 .nc-book-content { grid-template-columns: minmax(0, 1fr); }
    .nc-book-v2 .nc-book-content > .rt { grid-column: 1; grid-row: auto; }
    .nc-book-v2 .likeRead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .nc-book-v2 .nc-book-hero { padding: 16px; gap: 18px; }
    .nc-book-v2 .bookIntro { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; }
    .nc-book-v2 .bookIntro > .bookCover { width: 148px; }
    .nc-book-v2 .bookIntro > .nc-book-info,
    .nc-book-v2 .bookIntro > .tabList { width: 100%; }
    .nc-book-v2 .bookNm { text-align: center; }
    .nc-book-v2 .sortList { justify-content: center; }
    .nc-book-v2 .datum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nc-book-v2 .datum > span:nth-child(2) { border-right: 0; }
    .nc-book-v2 .readBtn { justify-content: center; }
    .nc-book-v2 .readBtn a { flex: 1 1 44%; min-width: 0; padding: 0 8px; font-size: 13px; }
    .nc-book-v2 .tabList > span { padding: 8px 12px; }
    .nc-book-v2 .newChapter,
    .nc-book-v2 .chapter-list-box { grid-template-columns: minmax(0, 1fr); }
    .nc-book-v2 .likeRead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══════════════ §24 语言切换并入导航（主导航 + 迷你导航） ═══════════════
   header.html / headermini.html 已把 langswitchSwitcher 钩子从
   .nc-actions 移到 <nav> 末尾，作为最后一项栏目。这里让它与导航项同高、
   同为胶囊外观，并在导航横向滚动时固定在右端可见。
   抽屉里仍保留一份，供小屏主导航折叠后使用。 */
.nc-nav .nc-nav-lang,
.nc-mini-nav .nc-nav-lang {
    display: inline-flex; align-items: center;
    flex: 0 0 auto; min-width: 0;
    margin: 0 0 0 6px; padding-left: 8px;
    position: sticky; right: 0; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--nc-bg) 26%);
}
.nc-mini-nav .nc-nav-lang { margin-left: auto; }
.nc-nav-lang .langswitch-widget {
    display: inline-flex; align-items: center; margin: 0; flex: 0 0 auto;
}
.nc-nav-lang .langswitch-select {
    height: 30px; max-width: 112px; min-width: 0;
    padding: 0 22px 0 10px; font-size: 12px;
    line-height: 28px; vertical-align: middle; text-align: center;
    background: var(--nc-surface); color: var(--nc-text-2);
    border: 1px solid var(--nc-line-2); border-radius: 999px;
    text-overflow: ellipsis; cursor: pointer;
}
.nc-nav-lang .langswitch-select:hover,
.nc-nav-lang .langswitch-select:focus { border-color: var(--nc-gold); color: var(--nc-gold); }
html:not([data-nc-theme="light"]) .nc-nav-lang .langswitch-select { color-scheme: dark; }
html[data-nc-theme="light"] .nc-nav-lang .langswitch-select { color-scheme: light; }
/* appearance:none 会去掉原生箭头，这里补一个统一的下拉指示 */
.nc-nav-lang::after {
    content: '▾'; position: absolute; right: 9px; top: 50%;
    transform: translateY(-50%);
    font-size: 9px; color: var(--nc-muted); pointer-events: none;
}
/* 迷你导航同样允许横滑，避免语言胶囊挤掉栏目 */
.nc-mini-nav { overflow-x: auto; scrollbar-width: none; }
.nc-mini-nav::-webkit-scrollbar { display: none; }
.nc-mini-nav > a { float: none !important; flex: 0 0 auto; }
.nc-mini-nav .nc-nav-lang::before { content: none; }
/* 主导航在 ≤900px 折叠，语言由抽屉接管；迷你导航（书籍详情等）保持可见 */
@media (max-width: 900px) {
    .nc-nav .nc-nav-lang { display: none; }
    .nc-nav-lang .langswitch-select { max-width: 96px; }
}
@media (max-width: 480px) {
    .nc-nav-lang .langswitch-select { max-width: 84px; font-size: 11px; }
}

/* ===== §26 阅读页左右侧栏图标：内联 SVG 替代失效的 legacy PNG（与头部金色线描风格统一） ===== */
#left_bar_box .left_bar a i,
#right_bar_box .right_bar a i { background-image: none !important; }

.nc-bar-ico {
    display: block;
    width: 22px;
    height: 22px;
    margin: 2px auto 6px;
    color: var(--nc-muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color .18s ease;
}
#left_bar_box .left_bar a:hover .nc-bar-ico,
#right_bar_box .right_bar a:hover .nc-bar-ico { color: var(--nc-gold); }
#left_bar_box .left_bar a:hover span,
#right_bar_box .right_bar a:hover span { color: var(--nc-gold); }
.bookcase_btn.on .nc-bar-ico,
.like.on .nc-bar-ico { color: var(--nc-gold); }

/* 首页快捷入口图标：统一为金色线描 SVG */
.nc-quick i svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== 首页 · 分类导航条 ===== */
.nc-catbar {
    margin: 34px 0 40px;
    padding: 20px 22px;
    border: 1px solid var(--nc-line);
    border-radius: var(--nc-r);
    background: var(--nc-surface);
    box-shadow: var(--nc-shadow-sm);
}
.nc-catbar-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 14px;
}
.nc-catbar-head h2 { font: 600 17px/1.3 var(--nc-serif); color: var(--nc-text); }
.nc-catbar-head h2::before {
    content: ""; display: inline-block; width: 3px; height: 14px; margin-right: 9px;
    border-radius: 2px; background: var(--nc-gold); vertical-align: -1px;
}
.nc-catbar-list { display: flex; flex-wrap: wrap; gap: 10px; }
.nc-catbar-list a {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 16px;
    border: 1px solid var(--nc-line-2); border-radius: 999px;
    color: var(--nc-text-2); font-size: 13px; line-height: 1;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.nc-catbar-list a:hover {
    color: var(--nc-gold); border-color: var(--nc-gold);
    background: var(--nc-gold-soft); transform: translateY(-1px);
}
.nc-catbar-list a.nc-catbar-girls {
    color: var(--nc-gold); border-color: rgba(224,178,106,.45);
}
@media (max-width: 768px) {
    .nc-catbar { margin: 24px 0 30px; padding: 16px; }
    .nc-catbar-list a { height: 32px; padding: 0 13px; font-size: 12px; }
}
/* ===== 首页 · 最近更新（带封面） ===== */
.nc-updates li { align-items: flex-start; gap: 12px; padding: 12px 0; }
.nc-updates li a.nc-update-cover {
    flex: 0 0 auto; width: 38px; height: 50px; overflow: hidden;
    border-radius: 6px; border: 1px solid var(--nc-line); background: var(--nc-surface-2);
}
.nc-updates li a.nc-update-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-update-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.nc-updates li .nc-update-title {
    flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 14px; color: var(--nc-text); line-height: 1.35;
}
.nc-updates li .nc-update-title:hover { color: var(--nc-gold); }
.nc-update-info span { color: var(--nc-dim); font-size: 12px; }
.nc-update-info em { font-style: normal; color: var(--nc-gold); }
/* ===== 图片加载占位：骨架条 + 淡入（仅 JS 打上类时生效，不会隐藏图片） ===== */
img.nc-img-loading {
    background: linear-gradient(100deg, var(--nc-surface-2) 30%, var(--nc-surface-3) 50%, var(--nc-surface-2) 70%);
    background-size: 200% 100%;
    animation: ncShimmer 1.2s linear infinite;
    color: transparent;
}
img.nc-img-loaded { animation: ncFadeIn .32s ease both; }
@keyframes ncShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes ncFadeIn { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    img.nc-img-loading { animation: none; }
    img.nc-img-loaded { animation: none; }
}
/* ===== 首页 Hero 轮播卡：内容垂直居中 + 「立即阅读」居中 + 圆点挪到右下 ===== */
.nc-carousel .slide-item {
    position: relative;
    align-items: center;
    padding: 26px 48px 82px;
}
.nc-carousel .nc-slide-cover { flex: 0 0 150px; width: 150px; }
.nc-carousel .nc-slide-cover img { border-radius: 12px; }
.nc-carousel .nc-slide-info { justify-content: center; align-self: center; }
.nc-carousel .nc-slide-info h3 {
    margin: 8px 0;
    font-size: 22px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-carousel .nc-slide-desc { margin: 12px 0 0; }
.nc-carousel .nc-slide-cta {
    position: absolute;
    left: 50%;
    bottom: 22px;
    margin: 0;
    transform: translateX(-50%);
    padding: 9px 26px;
    box-shadow: 0 8px 20px rgba(224, 178, 106, .22);
}
.nc-carousel .slide-item:hover .nc-slide-cta { background: var(--nc-gold-2); }
.nc-carousel .slidepage { left: auto; right: 26px; bottom: 30px; transform: none; }
@media (max-width: 560px) {
    .nc-carousel .slide-item { padding: 18px 40px 74px; gap: 14px; }
    .nc-carousel .nc-slide-cover { flex: 0 0 104px; width: 104px; }
    .nc-carousel .slidepage { right: 18px; bottom: 26px; }
}
/* ===== 卡片文字留白：封面出血到卡片边缘，文字左右各留 14px（原来文字贴着边框） ===== */
.nc-card { padding: 0; }
.nc-card .nc-card-cover {
    margin: 0;
    border: 0;
    border-radius: calc(var(--nc-r) - 1px) calc(var(--nc-r) - 1px) 0 0;
}
.nc-card h3 { margin: 12px 14px 5px; }
.nc-card > p { margin: 0 14px; }
.nc-card .nc-card-desc { margin: 6px 14px 14px; }
.nc-card .nc-card-desc + p { margin-bottom: 14px; }
.nc-card > p:last-child { margin-bottom: 14px; }
@media (max-width: 560px) {
    .nc-card h3 { margin: 9px 11px 4px; font-size: 14px; }
    .nc-card > p { margin: 0 11px; }
    .nc-card .nc-card-desc { margin: 5px 11px 12px; }
}
/* ===== 主导航字号加大一号（14 → 15px；语言胶囊 12 → 13px） ===== */
.nc-nav-link { font-size: 15px; padding: 8px 14px; }
.nc-nav .nc-nav-link.current::after { left: 14px; right: 14px; }
.nc-nav-lang .langswitch-select { font-size: 13px; max-width: 124px; }
@media (max-width: 1024px) {
    .nc-nav-link { font-size: 14px; padding: 8px 10px; }
}
/* ===== 头部整体字号再加大一档 ===== */
.nc-logo-text { font-size: 23px; }
.nc-mini-logo .nc-logo-text { font-size: 21px; }
.nc-nav-link { font-size: 16px; padding: 8px 15px; }
.nc-nav .nc-nav-link.current::after { left: 15px; right: 15px; }
.nc-nav-lang .langswitch-select { font-size: 14px; max-width: 132px; height: 32px; line-height: 30px; }
.nc-search input.text { font-size: 14px; width: 140px; }
.nc-search input.submit, .nc-search button[type="submit"] { font-size: 14px; }
.nc-login a { font-size: 14px; min-height: 36px; padding: 0 17px; }
@media (max-width: 1024px) {
    .nc-logo-text { font-size: 21px; }
    .nc-nav-link { font-size: 15px; padding: 8px 10px; }
    .nc-search input.text { width: 110px; }
}
/* ===== 迷你头部（内页）字号与主导航对齐：导航 16px、logo 22px ===== */
.nc-mini-nav a { font-size: 16px; padding: 7px 14px; }
.nc-mini-logo .nc-logo-text { font-size: 22px; }
@media (max-width: 1024px) {
    .nc-mini-nav a { font-size: 15px; padding: 7px 10px; }
    .nc-mini-logo .nc-logo-text { font-size: 20px; }
}
/* ===== 头部字号（最终版，与 header.html 内联保持一致）：导航 18px、logo 23px ===== */
.nc-nav-link { font-size: 16px; padding: 8px 11px; }
.nc-nav .nc-nav-link.current::after { left: 16px; right: 16px; bottom: 2px; }
.nc-logo-text { font-size: 23px; }
.nc-mini-nav a { font-size: 16px; padding: 8px 11px; line-height: 1.25; }
.nc-mini-logo .nc-logo-text { font-size: 23px; }
.nc-nav-lang .langswitch-select { font-size: 14px; height: 32px; line-height: 30px; max-width: 132px; }
@media (max-width: 1024px) {
    .nc-nav-link { font-size: 16px; padding: 8px 11px; }
    .nc-mini-nav a { font-size: 16px; padding: 8px 11px; }
    .nc-logo-text { font-size: 21px; }
    .nc-mini-logo .nc-logo-text { font-size: 21px; }
}
/* ===== 评论操作按钮：点赞不再整颗金边，与“回复”统一为中性描边 ===== */
.comment-btn, .like-btn {
    border-color: var(--nc-line-2);
    color: var(--nc-muted);
    background: transparent;
}
.comment-btn:hover, .like-btn:hover {
    color: var(--nc-text);
    border-color: var(--nc-line-2);
    background: var(--nc-surface-2);
}
.like-btn.active {
    color: var(--nc-gold);
    border-color: rgba(224, 178, 106, .55);
    background: var(--nc-gold-soft);
}
/* 点赞 / 回复图标：默认跟随主题正文色（深色主题即白色），悬停转金色 */
.comment-btn .icon {
    flex: 0 0 auto;
    fill: var(--nc-text);
    transition: fill .2s ease;
}
.comment-btn:hover .icon,
.comment-btn:focus-visible .icon {
    fill: var(--nc-gold);
}
.like-btn.active .icon {
    fill: var(--nc-gold);
}
/* 悬停 / 键盘聚焦时，点赞、回复的图标与文字一起转金色 */
.comment-btn:hover,
.comment-btn:focus-visible,
.like-btn:hover,
.like-btn:focus-visible {
    color: var(--nc-gold);
}
/* 评论卡片悬停也不要整块泛金 */
.comment-item:hover { border-color: var(--nc-line-2); }
/* ===== 书库（novel.html）卡片统一：3:4 封面、圆角描边、hover、占位图不刺眼 ===== */
.grid-view { gap: 22px 18px; }
.grid-item {
    border-radius: 14px;
    border: 1px solid var(--nc-line);
    box-shadow: var(--nc-shadow-sm);
    overflow: hidden;
    background: var(--nc-surface);
}
.grid-item:hover { transform: translateY(-3px); box-shadow: var(--nc-shadow); border-color: var(--nc-line-2); }
.grid-cover { height: auto; aspect-ratio: 3 / 4; background: var(--nc-surface-2); }
.grid-cover img { transition: transform .45s ease; }
.grid-item:hover .grid-cover img { transform: scale(1.05); }
/* 懒加载占位图是白色底图，未加载时先隐藏，露出深色封面框 */
.grid-cover img[src*="coverBg"],
.list-cover img[src*="coverBg"] { opacity: 0; }
.grid-info { padding: 12px 14px 14px; }
.grid-title { font-size: 15px; color: var(--nc-text); margin-bottom: 7px; }
.grid-meta { color: var(--nc-muted); display: flex; flex-wrap: wrap; gap: 10px; }
.grid-meta span i, .list-view .list-meta span i { display: none; }
.grid-desc { color: var(--nc-dim); -webkit-line-clamp: 2; }
/* ===== 书库筛选行：文字不再贴边，标签列对齐，行内留白统一 ===== */
.category-filter, .status-filter, .channel-switch {
    display: flex !important;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 12px 0 !important;
    padding: 12px 18px !important;
    background: var(--nc-surface);
    border: 1px solid var(--nc-line);
    border-radius: 12px;
}
.category-filter > span:first-child,
.status-filter > span:first-child,
.channel-switch > span:first-child {
    flex: 0 0 52px;
    margin: 0 !important;
    line-height: 32px;
    font-weight: 600;
    color: var(--nc-muted);
}
.category-filter .filter-group,
.status-filter .filter-group,
.channel-switch .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
}
/* ===== 排行榜（top-*.html）：卡片改网格，修掉「书籍详情」压住文字 ===== */
.book_ran_list .booklist {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 132px;
    gap: 20px;
    align-items: start;
    padding: 18px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--nc-line);
    border-radius: 14px;
    background: var(--nc-surface);
    overflow: visible;
}
.book_ran_list .booklist .bookimg {
    width: 120px;
    height: auto;
    aspect-ratio: 3 / 4;
    float: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--nc-surface-2);
}
.book_ran_list .booklist .bookimg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.book_ran_list .booklist .bookimg img[src*="coverBg"] { opacity: 0; }
.book_ran_list .booklist .bookinfo { width: auto; float: none; margin: 0; min-width: 0; }
.book_ran_list .booklist .bookinfo .bookname { margin-top: 0; }
.book_ran_list .booklist .bookinfo .booknick { margin-top: 10px; }
.book_ran_list .booklist .bookinfo .bookdes { margin-top: 10px; -webkit-line-clamp: 3; }
.book_ran_list .booklist .bookbt {
    float: none;
    padding: 0;
    align-self: center;
    justify-self: end;
}
.book_ran_list .booklist .bookbt a { width: 120px; height: 38px; line-height: 38px; border-radius: 999px; }

/* 排行侧栏导航：当前项不用淡金底，改用金色文字 + 左侧金色竖线 */
.book_rank_list .aside nav a.active {
    background: transparent !important;
    color: var(--nc-gold) !important;
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--nc-gold);
}
.book_rank_list .aside nav a:hover { color: var(--nc-gold); }
@media (max-width: 900px) {
    .book_ran_list .booklist { grid-template-columns: 96px minmax(0, 1fr); }
    .book_ran_list .booklist .bookbt { grid-column: 2; justify-self: start; margin-top: 12px; }
}
/* ===== 排行榜总榜（top-*-all.html）：分类胶囊、前三名排版、封面占位 ===== */
.classify_nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.classify_nav a {
    padding: 6px 14px;
    border: 1px solid var(--nc-line-2);
    border-radius: 999px;
    color: var(--nc-text-2);
    font-size: 13px;
    line-height: 1.4;
    transition: color .18s, border-color .18s, background .18s;
}
.classify_nav a:hover { color: var(--nc-gold); border-color: var(--nc-gold); background: var(--nc-gold-soft); }
.classify_nav a.active { background: var(--nc-gold) !important; border-color: var(--nc-gold) !important; color: #17120a !important; font-weight: 600; }

.classify_list .booklist a .left { min-width: 0; }
.classify_list .booklist a .bookname {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.classify_list .booklist a .right:has(> img) {
    width: 56px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--nc-surface-2);
    border: 1px solid var(--nc-line);
    box-sizing: border-box;
    align-self: center;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.classify_list .booklist a .right:has(> img) img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}
.classify_list .booklist a .right img { width: 100%; height: 100%; object-fit: cover; display: block; }
.classify_list .booklist a .right img[src*="coverBg"] { opacity: 0; }
/* ===== 榜单序号：圆形徽标重做（原来 17px 圆 + 14px 白字压金底，数字溢出且看不清） ===== */
.book_rank_list .article .classify_book .classify_list .booklist a {
    padding-left: 32px;
}
.book_rank_list .article .classify_book .classify_list .booklist a::before {
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    top: 9px !important;
    font-size: 11.5px !important;
    font-weight: 700;
    color: var(--nc-text-2);
    background: var(--nc-surface-3) !important;
    border: 1px solid var(--nc-line);
    box-sizing: border-box;
}
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(-n+3):has(.right img)::before {
    background: linear-gradient(144deg, var(--nc-gold), var(--nc-gold-2)) !important;
    border-color: transparent;
    color: #17120a;
}
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(n+10)::before {
    font-size: 10.5px !important;
    letter-spacing: -.02em;
}
/* ===== 榜单总榜：字号整体减小一档 ===== */
.book_rank_list .article .classify_book .classify_list .title span { font-size: 17px !important; }
.book_rank_list .article .classify_book .classify_list .title a { font-size: 12px !important; }
.book_rank_list .article .classify_book .classify_list .booklist a .left .bookname { font-size: 16px !important; }
.book_rank_list .article .classify_book .classify_list .booklist a .left .author,
.book_rank_list .article .classify_book .classify_list .booklist a .left .popularity,
.book_rank_list .article .classify_book .classify_list .booklist a .right .nickname { font-size: 14px !important; }
.book_rank_list .article .classify_book .classify_list .booklist a::before {
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    font-size: 12px !important;
    top: 10px !important;
}
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(n+10)::before {
    font-size: 11px !important;
}
.book_rank_list .article .classify_book .classify_list .booklist a { padding-left: 32px; }
/* ===== 榜单总榜：每个榜单独立成卡片，行 hover 有反馈 ===== */
.book_rank_list .article .classify_book:has(.classify_list) .classify_list {
    background: var(--nc-surface);
    border: 1px solid var(--nc-line);
    border-radius: 14px;
    padding: 14px 10px 6px;
    transition: border-color .2s ease;
}
/* 卡片标题加金色竖线，与全站 section 标题统一 */
.book_rank_list .article .classify_book .classify_list .title span {
    position: relative;
    padding-left: 10px;
}
.book_rank_list .article .classify_book .classify_list .title span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--nc-gold);
}
/* 前三名行轻提示 */
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(-n+3):has(.right img) {
    background: color-mix(in srgb, var(--nc-gold) 6%, transparent);
}
.book_rank_list .article .classify_book .classify_list:hover { border-color: var(--nc-line-2); }
.book_rank_list .article .classify_book .classify_list .title {
    border-bottom: 1px solid var(--nc-line);
    padding-bottom: 10px;
    margin-bottom: 4px;
}
.book_rank_list .article .classify_book .classify_list .booklist a {
    border-radius: 8px;
    transition: background .18s ease;
}
.book_rank_list .article .classify_book .classify_list .booklist a:hover { background: var(--nc-surface-2); }
/* ===== 榜单总榜：页头改横幅，整体更像一个完整页面 ===== */
.book_rank_list .article .breadcrumb {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid var(--nc-line);
    border-radius: 16px;
    background:
        radial-gradient(600px 160px at 0% 0%, rgba(224, 178, 106, .10), transparent 70%),
        var(--nc-surface);
}
.book_rank_list .article .breadcrumb label:first-child {
    font: 600 24px/1.3 var(--nc-serif);
    color: var(--nc-text);
    letter-spacing: .02em;
}
.book_rank_list .article .breadcrumb label:last-child {
    color: var(--nc-gold);
    font-size: 15px;
    letter-spacing: .04em;
}
/* 卡片悬停轻抬升 */
.book_rank_list .article .classify_book:has(.classify_list) .classify_list {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.book_rank_list .article .classify_book .classify_list:hover {
    border-color: var(--nc-line-2);
    box-shadow: var(--nc-shadow-sm);
    transform: translateY(-2px);
}

/* ===== 榜单总榜：Top3 横向卡（封面在左、信息在右），4 名以后保持紧凑列表 ===== */
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(-n+3):has(.right img) {
    display: flex !important;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 10px 6px 10px 32px !important;
    border-radius: 10px;
    background: color-mix(in srgb, var(--nc-gold) 7%, transparent);
}
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(-n+3):has(.right img) .left {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(-n+3):has(.right img) .bookname {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    font-size: 14px !important;
}
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(-n+3):has(.right img) .author,
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(-n+3):has(.right img) .popularity {
    font-size: 12px !important;
    margin-top: 4px;
    text-align: left;
}
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(-n+3):has(.right img) .right:has(> img) {
    width: 56px;
    height: 75px;
    margin: 0;
    flex: 0 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.book_rank_list .article .classify_book .classify_list .booklist a:nth-child(-n+3):has(.right img)::before {
    top: 50% !important;
    transform: translateY(-50%);
}
/* ===== 榜单行：序号徽标与文字垂直居中对齐 ===== */
.book_rank_list .article .classify_book .classify_list .booklist a {
    align-items: center;
}
.book_rank_list .article .classify_book .classify_list .booklist a::before {
    top: 50% !important;
    transform: translateY(-50%);
}
.book_rank_list .article .classify_book .classify_list .booklist a .right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
/* ===== 榜单总榜：独立 Top3 领奖台 ===== */
.nc-podium { counter-reset: podium;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 4px 0 24px;
}
.nc-podium-item { counter-increment: podium;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 14px 16px;
    border: 1px solid var(--nc-line);
    border-radius: 16px;
    background: var(--nc-surface);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nc-podium-item:hover { transform: translateY(-3px); border-color: var(--nc-line-2); box-shadow: var(--nc-shadow-sm); }
.nc-podium-item:nth-child(1) { order: 2; border-color: rgba(224, 178, 106, .45); background: linear-gradient(180deg, rgba(224,178,106,.10), var(--nc-surface) 62%); }
.nc-podium-item:nth-child(2) { order: 1; }
.nc-podium-item:nth-child(3) { order: 3; }
.nc-podium-cover {
    width: 96px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background: var(--nc-surface-2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.nc-podium-item:nth-child(1) .nc-podium-cover { width: 112px; }
.nc-podium-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-podium-info { width: 100%; text-align: center; }
.nc-podium-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--nc-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-podium-info p { margin-top: 5px; font-size: 12px; color: var(--nc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-podium-badge::before { content: counter(podium); }
.nc-podium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}
.nc-podium-item:nth-child(1) .nc-podium-badge::before { content: counter(podium); }
.nc-podium-badge { background: linear-gradient(144deg, var(--nc-gold), var(--nc-gold-2)); color: #17120a; }
.nc-podium-item:nth-child(2) .nc-podium-badge,
.nc-podium-item:nth-child(3) .nc-podium-badge::before { content: counter(podium); }
.nc-podium-badge { background: var(--nc-surface-3); color: var(--nc-text-2); border: 1px solid var(--nc-line); }
@media (max-width: 900px) {
    .nc-podium { counter-reset: podium; grid-template-columns: 1fr; }
    .nc-podium-item:nth-child(1) { order: 0; }
    .nc-podium-item:nth-child(2) { order: 0; }
    .nc-podium-item:nth-child(3) { order: 0; }
    .nc-podium-item { counter-increment: podium; flex-direction: row; align-items: center; text-align: left; }
    .nc-podium-cover, .nc-podium-item:nth-child(1) .nc-podium-cover { width: 64px; }
    .nc-podium-info { text-align: left; }
    .nc-podium-badge::before { content: counter(podium); }
.nc-podium-badge { position: static; order: -1; }
}

/* ===== 榜单总榜：骨架改 grid，真正支持响应式 ===== */
.book_rank_list {
    display: grid !important;
    grid-template-columns: 136px minmax(0, 1fr);
    column-gap: 35px;
    width: min(1200px, calc(100% - 48px)) !important;
    overflow: visible !important;
}
.book_rank_list .aside { float: none !important; width: auto !important; }
.book_rank_list .splitLine { display: none !important; }
.book_rank_list .article { float: none !important; width: auto !important; margin-left: 0 !important; }
.book_rank_list .article .classify_book:has(.classify_list) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.book_rank_list .article .classify_book:has(.classify_list) .classify_list {
    width: auto !important;
    margin: 0 !important;
}
@media (max-width: 1240px) {
    .book_rank_list { grid-template-columns: 156px minmax(0, 1fr); column-gap: 24px; }
    .book_rank_list .article .classify_book:has(.classify_list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .book_rank_list { grid-template-columns: minmax(0, 1fr); width: calc(100% - 32px) !important; }
    .book_rank_list .aside { display: none !important; }
    .book_rank_list .article .classify_book:has(.classify_list) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .book_rank_list .article .breadcrumb { padding: 16px 18px; }
    .book_rank_list .article .breadcrumb label:first-child { font-size: 20px; }
}
/* 窄屏：榜单条目恢复纵向堆叠，铺满整行 */
@media (max-width: 900px) {
    .book_rank_list .article .classify_book:has(.classify_list) .classify_list .booklist { display: block !important; }
    .book_rank_list .article .classify_book .classify_list .booklist a {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box;
    }
}
/* 领奖台：标题按容器换行，不再贴边/被裁 */
.nc-podium-info { padding: 0 6px; }
.nc-podium-info h3 {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
}
/* ===== 人气榜等卡片式榜单：容器铺满，修掉 1400 下卡片被压窄、文字竖排 ===== */
.book_ran_list { width: 100% !important; float: none !important; }
.book_ran_list .booklist { width: 100% !important; box-sizing: border-box; }
@media (max-width: 900px) {
    .book_ran_list .booklist {
        grid-template-columns: 96px minmax(0, 1fr) !important;
        gap: 14px !important;
    }
    .book_ran_list .booklist .bookbt {
        grid-column: 2;
        justify-self: start;
        margin-top: 10px;
    }
    .book_ran_list .booklist .bookimg { width: 96px !important; }
}
/* ===== 首页 Hero 轮播：填满右栏，去掉多余留白 ===== */
.nc-hero-right { display: flex; }
#boxCenter.nc-carousel { flex: 1 1 auto; width: 100%; }
.nc-carousel .slide-track { width: 100%; }
.nc-carousel .slide-item { width: 100%; height: 100%; box-sizing: border-box; }
/* 轮播卡底部：左侧“查看详情”提示，右侧圆点，中间主按钮 */
.nc-carousel .nc-slide-detail {
    position: absolute;
    left: 28px;
    bottom: 34px;
    font-size: 12px;
    color: var(--nc-muted);
    letter-spacing: .02em;
    transition: color .18s ease;
}
.nc-carousel .slide-item:hover .nc-slide-detail { color: var(--nc-gold); }
@media (max-width: 560px) {
    .nc-carousel .nc-slide-detail { left: 18px; bottom: 26px; font-size: 11px; }
}

/* Hero 左栏：本周更新动态行 */
.nc-hero-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--nc-muted);
    letter-spacing: .01em;
}
.nc-hero-live strong { color: var(--nc-gold); font-weight: 600; }
.nc-hero-live::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--nc-gold);
    box-shadow: 0 0 0 3px var(--nc-gold-soft);
}
/* ===== 书库引导页：Hero 数据条 ===== */
.nc-sk-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--nc-line);
}
.nc-sk-stats div strong {
    display: block;
    font: 700 22px/1.2 var(--nc-serif);
    color: var(--nc-gold);
    white-space: nowrap;
}
.nc-sk-stats div span { color: var(--nc-dim); font-size: 12px; }
@media (max-width: 640px) {
    .nc-sk-stats { gap: 22px; margin-top: 20px; }
    .nc-sk-stats div strong { font-size: 19px; }
}
/* ===== 书库引导页：一点“佐料”——巨型水印字 + 金色描边角 ===== */
.nc-compat { position: relative; overflow: hidden; isolation: isolate; }
.nc-compat::after {
    content: "书";
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    font: 700 240px/1 var(--nc-serif);
    color: rgba(224, 178, 106, .055);
    letter-spacing: 0;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.nc-compat > * { position: relative; z-index: 1; }
/* 右上角金线装饰 */
.nc-compat::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(224, 178, 106, .12);
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 900px) {
    .nc-compat::after { font-size: 150px; right: -10px; opacity: .7; }
    .nc-compat::before { width: 130px; height: 130px; right: -40px; top: -40px; }
}
/* 书库页 Hero 右上：把“半截圆环”改成完整的印章式标记（双环 + 中心金点） */
.nc-compat::before {
    content: "";
    position: absolute;
    right: 44px;
    top: 34px;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 1px solid rgba(224, 178, 106, .22);
    box-shadow: inset 0 0 0 8px transparent, inset 0 0 0 9px rgba(224, 178, 106, .12);
    background:
        radial-gradient(circle at 50% 50%, rgba(224, 178, 106, .55) 0 2px, transparent 2px);
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 900px) {
    .nc-compat::before { width: 72px; height: 72px; right: 18px; top: 20px; }
}
/* 印章标记：改为双细环（用径向渐变画线），去掉厚重的 inset 阴影 */
.nc-compat::before {
    content: "";
    position: absolute;
    right: 40px;
    top: 30px;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    background:
        radial-gradient(circle at 50% 50%,
            transparent 0 40px,
            rgba(224, 178, 106, .20) 40px 41px,
            transparent 41px 45px,
            rgba(224, 178, 106, .10) 45px 46px,
            transparent 46px);
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 900px) {
    .nc-compat::before {
        width: 68px; height: 68px; right: 16px; top: 18px;
        background:
            radial-gradient(circle at 50% 50%,
                transparent 0 29px,
                rgba(224, 178, 106, .20) 29px 30px,
                transparent 30px 33px,
                rgba(224, 178, 106, .10) 33px 34px,
                transparent 34px);
    }
}
/* 水印：站点名称（竖排，像书脊上的书名） */
.nc-compat::after { content: none !important; }
.nc-compat-mark {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: upright;
    font: 700 96px/1 var(--nc-serif);
    letter-spacing: .06em;
    color: rgba(224, 178, 106, .06);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}
@media (max-width: 900px) {
    .nc-compat-mark { font-size: 60px; right: 6px; opacity: .8; }
}
/* 水印与印章的比例修正 */
.nc-compat-mark {
    font-size: 76px !important;
    letter-spacing: .04em !important;
    right: 34px !important;
    color: rgba(224, 178, 106, .07) !important;
}
.nc-compat::before {
    width: 76px !important;
    height: 76px !important;
    right: 26px !important;
    top: 24px !important;
    background:
        radial-gradient(circle at 50% 50%,
            transparent 0 32px,
            rgba(224, 178, 106, .16) 32px 33px,
            transparent 33px 37px,
            rgba(224, 178, 106, .08) 37px 38px,
            transparent 38px) !important;
}
@media (max-width: 900px) {
    .nc-compat-mark { font-size: 52px !important; right: 8px !important; }
}
/* 右上角大圆环：加大，只露出下半圆（弧顶伸出 Hero 边界被裁掉） */
.nc-compat::before {
    width: 380px !important;
    height: 380px !important;
    right: 40px !important;
    top: -190px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background:
        radial-gradient(circle at 50% 50%,
            transparent 0 168px,
            rgba(224, 178, 106, .20) 168px 169px,
            transparent 169px 178px,
            rgba(224, 178, 106, .10) 178px 179px,
            transparent 179px) !important;
}
@media (max-width: 900px) {
    .nc-compat::before {
        width: 220px !important;
        height: 220px !important;
        right: -20px !important;
        top: -110px !important;
        background:
            radial-gradient(circle at 50% 50%,
                transparent 0 96px,
                rgba(224, 178, 106, .20) 96px 97px,
                transparent 97px 103px,
                rgba(224, 178, 106, .10) 103px 104px,
                transparent 104px) !important;
    }
}
/* ===== 流星雨 ===== */
.nc-meteors {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0 !important;
}
.nc-meteor {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: #fff6e6;
    box-shadow: 0 0 6px 1px rgba(224, 178, 106, .75);
    opacity: 0;
    transform: rotate(24deg);
    animation-name: ncMeteor;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}
.nc-meteor::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1px;
    width: var(--nc-meteor-len, 90px);
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(224, 178, 106, .85), rgba(224, 178, 106, 0));
}
@keyframes ncMeteor {
    0%   { transform: rotate(24deg) translate3d(0, 0, 0); opacity: 0; }
    6%   { opacity: 1; }
    70%  { opacity: .85; }
    100% { transform: rotate(24deg) translate3d(-460px, 210px, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .nc-meteor { display: none; }
}
/* ===== 流星：修正坠落方向（原来 rotate 把位移也转了，看起来是横着飘） ===== */
.nc-meteor {
    transform: none !important;
    animation-name: ncMeteorFall !important;
}
.nc-meteor::after {
    left: 1px;
    right: auto;
    top: 1px;
    width: var(--nc-meteor-len, 90px);
    height: 1.5px;
    transform-origin: 0 50%;
    transform: rotate(-40deg);
    background: linear-gradient(270deg, rgba(255, 246, 230, .95), rgba(224, 178, 106, .55) 40%, rgba(224, 178, 106, 0));
}
@keyframes ncMeteorFall {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    5%   { opacity: 1; }
    68%  { opacity: .9; }
    100% { transform: translate3d(-360px, 300px, 0); opacity: 0; }
}
/* ===== 流星：金光闪闪 ===== */
.nc-meteor {
    width: 3px !important;
    height: 3px !important;
    background: radial-gradient(circle, #fffdf3 0%, #ffd98a 45%, #e0b26a 72%, rgba(224, 178, 106, 0) 100%) !important;
    box-shadow:
        0 0 8px 2px rgba(255, 214, 140, .85),
        0 0 18px 6px rgba(224, 178, 106, .32),
        0 0 34px 12px rgba(224, 178, 106, .12) !important;
}
.nc-meteor::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 226, 160, .55), rgba(255, 214, 140, .16) 55%, transparent 72%);
    animation: ncMeteorTwinkle 1.1s ease-in-out infinite alternate;
    pointer-events: none;
}
.nc-meteor::after {
    height: 2px !important;
    transform: rotate(-40deg) !important;
    background: linear-gradient(270deg,
        rgba(255, 248, 226, .95) 0%,
        rgba(255, 214, 132, .78) 28%,
        rgba(224, 178, 106, .35) 62%,
        rgba(224, 178, 106, 0) 100%) !important;
    filter: drop-shadow(0 0 3px rgba(255, 206, 120, .55));
}
@keyframes ncMeteorTwinkle {
    from { transform: scale(.65); opacity: .35; }
    to   { transform: scale(1.3); opacity: .95; }
}
@media (prefers-reduced-motion: reduce) {
    .nc-meteor::before { animation: none; }
}
/* ===== 烟花（替换流星） ===== */
.nc-firework { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 0; }
.nc-spark {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
    animation: ncSparkBurst 1.7s cubic-bezier(.18, .62, .3, 1) forwards;
    will-change: transform, opacity;
}
@keyframes ncSparkBurst {
    0%   { transform: translate3d(0, 0, 0) scale(.3); opacity: 0; }
    8%   { opacity: 1; transform: translate3d(calc(var(--tx) * .16), calc(var(--ty) * .16), 0) scale(1); }
    72%  { opacity: .9; }
    100% { transform: translate3d(var(--tx), calc(var(--ty) + 38px), 0) scale(.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .nc-firework { display: none; }
}
/* 烟花：更大更亮 */
.nc-spark { width: 3.5px; height: 3.5px; }
.nc-firework::before {
    content: "";
    position: absolute;
    left: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 200, .85), rgba(255, 214, 140, .25) 60%, transparent 75%);
    animation: ncFlash .55s ease-out forwards;
}
@keyframes ncFlash {
    0% { transform: scale(.3); opacity: 0; }
    18% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}
/* 书库列表：无刷新翻页的加载态 */
.container.nc-list-loading { opacity: .45; pointer-events: none; position: relative; }
.container.nc-list-loading::after {
    content: "加载中…";
    position: fixed;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(21, 27, 37, .92);
    border: 1px solid var(--nc-line-2);
    color: var(--nc-gold);
    font-size: 13px;
    z-index: 60;
}
/* ===== 书库页响应式：网格列数 + 封面比例 ===== */
.grid-view { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cover {
    height: auto !important;
    aspect-ratio: 3 / 4;
    background: var(--nc-surface-2);
}
.grid-cover img { border-radius: 0 !important; }
@media (max-width: 1240px) {
    .grid-view { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .grid-view { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-info { padding: 12px; }
}
@media (max-width: 860px) {
    .grid-view { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
    .grid-title { font-size: 14px; }
    .grid-desc { display: none; }
}
@media (max-width: 600px) {
    .grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}
/* 窄屏：自动列数，避免卡片过宽导致封面过高 */
@media (max-width: 860px) {
    .grid-view { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important; }
    .grid-cover { max-height: 220px; }
}
@media (max-width: 600px) {
    .grid-view { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)) !important; }
    .grid-cover { max-height: 180px; }
    .grid-info { padding: 10px; }
    .grid-meta { font-size: 11px; }
}
/* ===== 书库筛选区：行高自适应、chip 换行有间距、不再贴边 ===== */
.filter-box > div { padding: 12px 14px !important; margin: 10px 0 !important; height: auto !important; box-sizing: border-box; }
.channel-switch, .category-filter, .status-filter, .word-filter {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.filter-box > div > span:first-child {
    flex: 0 0 auto;
    color: var(--nc-dim);
    font-size: 13px;
    margin-right: 4px;
}
.filter-box .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}
.channel-switch a, .filter-group a { margin: 0 !important; }
@media (max-width: 600px) {
    .filter-box > div { padding: 10px 12px !important; }
    .filter-box > div > span:first-child { font-size: 12px; }
    .channel-switch a, .filter-group a { padding: 4px 10px; font-size: 12px; }
}
/* ===== 书库排序条：chip 化 + 响应式换行 ===== */
.tabList {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    margin: 14px 0 18px;
    background: var(--nc-surface);
    border: 1px solid var(--nc-line);
    border-radius: 12px;
    box-sizing: border-box;
}
.tabList > a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--nc-text-2);
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}
.tabList > a:hover { color: var(--nc-gold); background: var(--nc-gold-soft); }
.tabList > a.active { background: var(--nc-gold); color: #17120a; font-weight: 600; }
.tabList .view-mode { margin-left: auto; display: flex; gap: 6px; }
.tabList .view-mode a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.3;
    border: 1px solid var(--nc-line-2);
    color: var(--nc-muted);
    text-decoration: none;
}
.tabList .view-mode a.active { border-color: var(--nc-gold); color: var(--nc-gold); }
@media (max-width: 760px) {
    .tabList { gap: 6px; padding: 8px 10px; }
    .tabList > a { padding: 6px 11px; font-size: 13px; }
    .tabList .view-mode { margin-left: 0; width: 100%; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--nc-line); }
}
@media (max-width: 460px) {
    .tabList > a { padding: 5px 9px; font-size: 12px; }
}
/* ===== 窄屏宽度约束（书库页） ===== */
.boxCenter {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding-left: 14px;
    padding-right: 14px;
}
.filter-box, .tabList, .container, .grid-view, .list-view { max-width: 100%; box-sizing: border-box; }
@media (max-width: 640px) {
    .filter-box > div > span:first-child { flex: 0 0 100%; margin-bottom: 2px; }
    .filter-group a, .channel-switch a { white-space: normal; text-align: left; }
    .tabList > a { white-space: normal; }
    .tabList .view-mode { flex-wrap: wrap; }
}
/* 排序条：把「大图/列表」并进同一行，不再单独占一行 */
.tabList { flex-wrap: wrap; row-gap: 6px; }
.tabList .view-mode {
    margin-left: auto !important;
    width: auto !important;
    justify-content: flex-end;
    padding-top: 0 !important;
    border-top: 0 !important;
    flex: 0 0 auto;
}
@media (max-width: 820px) {
    .tabList { padding: 8px 10px; gap: 4px; }
    .tabList > a { padding: 5px 9px; font-size: 12.5px; }
    .tabList .view-mode a { padding: 5px 9px; font-size: 12px; }
}
@media (max-width: 520px) {
    .tabList > a { padding: 4px 7px; font-size: 12px; }
    .tabList .view-mode a { padding: 4px 7px; font-size: 11.5px; }
}
/* ===== 书库列表模式：封面缩放，文字跟着缩 ===== */
.list-view .list-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px; box-sizing: border-box; }
.list-view .list-cover { width: 120px; height: 160px; margin-right: 0; flex: 0 0 120px; border-radius: 6px; background: var(--nc-surface-2); }
.list-view .list-info { flex: 1 1 auto; min-width: 0; }
.list-view .list-title { font-size: 17px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.list-view .list-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0; }
@media (max-width: 860px) {
    .list-view .list-item { gap: 12px; padding: 12px; }
    .list-view .list-cover { width: 92px; height: 122px; flex: 0 0 92px; }
    .list-view .list-title { font-size: 15px; }
    .list-view .list-meta { font-size: 12px; gap: 8px; }
    .list-view .list-desc { font-size: 13px; -webkit-line-clamp: 2; }
}
@media (max-width: 560px) {
    .list-view .list-item { gap: 10px; padding: 10px; }
    .list-view .list-cover { width: 74px; height: 99px; flex: 0 0 74px; }
    .list-view .list-title { font-size: 14px; }
    .list-view .list-desc { display: none; }
    .list-view .list-status { font-size: 11px; }
    .list-view .btn-read { padding: 4px 10px; font-size: 12px; }
}
/* ===== 分页条：统一为站点深色 + 金色主题 ===== */
.pager {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 12px !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
}
.pager li { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
.pager li > a,
.pager li > span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px !important;
    border-radius: 10px !important;
    border: 1px solid var(--nc-line-2) !important;
    background: var(--nc-surface) !important;
    color: var(--nc-text-2) !important;
    font-size: 14px;
    line-height: 1;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.pager li > a:hover {
    border-color: var(--nc-gold) !important;
    color: var(--nc-gold) !important;
    background: var(--nc-gold-soft) !important;
}
.pager li.active > a,
.pager li.active > span {
    background: var(--nc-gold) !important;
    border-color: var(--nc-gold) !important;
    color: #17120a !important;
    font-weight: 600;
}
.pager li.disabled > span { opacity: .38; }
.pager li.ellipsis > span { border: 0 !important; background: transparent !important; min-width: 24px; }
@media (max-width: 560px) {
    .pager li > a, .pager li > span { min-width: 34px; height: 34px; font-size: 13px; padding: 0 9px !important; border-radius: 8px !important; }
    .pager { gap: 6px; margin: 20px 0 8px !important; }
}
/* 小屏幕分页：只保留上一页 / 下一页 */
@media (max-width: 640px) {
    .pager li:not(.prev):not(.next) { display: none !important; }
    .pager { justify-content: space-between !important; gap: 10px; }
    .pager li.prev > a, .pager li.next > a,
    .pager li.prev > span, .pager li.next > span {
        font-size: 0 !important;
        min-width: 96px !important;
        height: 38px !important;
        padding: 0 16px !important;
    }
    .pager li.prev > a::before, .pager li.prev > span::before { content: "上一页"; font-size: 13px; }
    .pager li.next > a::before, .pager li.next > span::before { content: "下一页"; font-size: 13px; }
    .pager li.disabled > span::before { color: var(--nc-dim); }
}
/* 分页：箭头改为文字后，清理旧的小屏 ::before 方案 */
.pager li.prev > a, .pager li.next > a,
.pager li.prev > span, .pager li.next > span {
    min-width: 0 !important;
    padding: 0 16px !important;
    font-size: 14px !important;
}
.pager li.prev > a::before, .pager li.next > a::before,
.pager li.prev > span::before, .pager li.next > span::before { content: none !important; }
@media (max-width: 640px) {
    .pager li.prev > a, .pager li.next > a,
    .pager li.prev > span, .pager li.next > span { font-size: 13px !important; height: 38px !important; }
}
/* 分页：上一页/下一页字号收敛，与数字按钮等重 */
.pager li.prev > a, .pager li.next > a,
.pager li.prev > span, .pager li.next > span {
    font-size: 13px !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0;
}
@media (max-width: 640px) {
    .pager li.prev > a, .pager li.next > a,
    .pager li.prev > span, .pager li.next > span {
        font-size: 12.5px !important;
        height: 36px !important;
        padding: 0 12px !important;
    }
}

/* ═══════════════ §25 书籍目录 · 章节目录重构 ═══════════════
   修复旧版 #chapter-section 被通用 grid 规则拆成 7 列、列表只占第 1 列的问题。
   目标：目录铺满主栏，章节按响应式网格排布，并提供搜索、页码和移动端布局。 */
.nc-book-v2 #chapter-section {
    display: block;
    grid-template-columns: none;
    gap: 0;
    padding: 22px 24px 20px;
    overflow: hidden;
    border: 1px solid var(--nc-line);
    border-radius: 18px;
    background:
        radial-gradient(520px 220px at 100% -10%, rgba(224, 178, 106, .075), transparent 72%),
        var(--nc-surface);
    scroll-margin-top: 18px;
}
.nc-catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.nc-catalog-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.nc-catalog-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--nc-gold);
    background: var(--nc-gold-soft);
    border: 1px solid rgba(224, 178, 106, .22);
}
.nc-catalog-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nc-catalog-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font: 600 20px/1.4 var(--nc-serif);
    color: var(--nc-text);
}
.nc-catalog-count {
    display: inline-flex;
    align-items: center;
    height: 23px;
    padding: 0 9px;
    border: 1px solid var(--nc-line);
    border-radius: 999px;
    background: var(--nc-surface-2);
    color: var(--nc-muted);
    font: 500 11.5px/1 var(--nc-sans);
    letter-spacing: .02em;
}
.nc-catalog-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 330px;
    width: min(330px, 100%);
    min-width: 230px;
    padding: 4px 4px 4px 12px;
    border: 1px solid var(--nc-line);
    border-radius: 11px;
    background: var(--nc-bg-2);
    transition: border-color .2s ease, background .2s ease;
}
.nc-catalog-search:focus-within {
    border-color: rgba(224, 178, 106, .55);
    background: var(--nc-bg);
}
.nc-catalog-search > svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--nc-dim);
    stroke-width: 1.8;
    stroke-linecap: round;
}
.nc-catalog-search input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nc-text);
    font-size: 13px;
    line-height: 32px;
    box-shadow: none !important;
}
.nc-catalog-search input[type="search"]:focus {
    border: 0;
    box-shadow: none !important;
}
.nc-catalog-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.nc-catalog-search button {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--nc-gold);
    color: #17120a;
    font-size: 12.5px;
    font-weight: 700;
    transition: background .2s ease, opacity .2s ease;
}
.nc-catalog-search button:hover { background: var(--nc-gold-2); }
.nc-catalog-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: -4px 0 14px;
    padding: 9px 12px;
    border: 1px solid rgba(224, 178, 106, .18);
    border-radius: 9px;
    background: var(--nc-gold-soft);
    color: var(--nc-muted);
    font-size: 12.5px;
}
.nc-catalog-filter b { color: var(--nc-gold); font-weight: 600; }
.nc-catalog-filter a { flex: 0 0 auto; color: var(--nc-gold); font-weight: 600; }

/* 关键：覆盖通用 #chapter-list 网格，让目录在宽屏下真正铺开 */
.nc-book-v2 #chapter-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    counter-reset: none;
}
@media (min-width: 1900px) {
    .nc-book-v2 #chapter-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.nc-book-v2 #chapter-list .nc-chapter-item {
    float: none;
    width: auto;
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid var(--nc-line);
    border-radius: 10px;
    background: var(--nc-surface-2);
    color: var(--nc-text-2);
    font-size: 13.5px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.nc-book-v2 #chapter-list .nc-chapter-item:hover {
    border-color: rgba(224, 178, 106, .42);
    background: var(--nc-gold-soft);
    color: var(--nc-gold);
}
.nc-book-v2 #chapter-list .nc-chapter-item:focus-visible {
    outline: 2px solid var(--nc-gold);
    outline-offset: 2px;
}
.nc-chapter-no {
    flex: 0 0 27px;
    color: var(--nc-dim);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
}
.nc-chapter-item:hover .nc-chapter-no { color: var(--nc-gold); }
.nc-chapter-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nc-chapter-arrow {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
}
.nc-chapter-item:hover .nc-chapter-arrow,
.nc-chapter-item:focus-visible .nc-chapter-arrow {
    opacity: .8;
    transform: translateX(0);
}

.nc-catalog-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 46px 20px;
    border: 1px dashed var(--nc-line-2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .015);
    text-align: center;
}
.nc-catalog-empty > svg {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    fill: none;
    stroke: var(--nc-dim);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nc-catalog-empty strong {
    color: var(--nc-text-2);
    font-size: 14px;
    font-weight: 600;
}
.nc-catalog-empty p {
    margin: 6px 0 14px;
    color: var(--nc-muted);
    font-size: 12.5px;
}
.nc-book-v2 #chapter-list .nc-catalog-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: auto;
    height: auto;
    min-width: 0;
    flex: 0 0 auto;
    padding: 7px 16px;
    border: 1px solid rgba(224, 178, 106, .35);
    border-bottom: 1px solid rgba(224, 178, 106, .35);
    border-radius: 8px;
    background: var(--nc-gold-soft);
    color: var(--nc-gold);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}
.nc-book-v2 #chapter-list .nc-catalog-empty a:hover { background: var(--nc-gold); color: #17120a; }

.nc-catalog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--nc-line);
}
.nc-catalog-range {
    color: var(--nc-muted);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}
.nc-catalog-range b {
    color: var(--nc-text-2);
    font-weight: 600;
}
.nc-catalog-range span { margin: 0 3px; color: var(--nc-dim); }
.nc-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
}
.nc-pager a,
.nc-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: auto;
    flex: 0 0 auto;
    min-width: 32px;
    height: 32px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid var(--nc-line);
    border-radius: 8px;
    background: var(--nc-surface-2);
    color: var(--nc-text-2);
    font-size: 12.5px;
    line-height: 1;
    text-decoration: none;
}
.nc-pager-step { padding: 0 11px !important; }
.nc-pager a:hover {
    border-color: var(--nc-gold);
    background: var(--nc-gold-soft);
    color: var(--nc-gold);
}
.nc-pager .is-current {
    border-color: transparent;
    background: var(--nc-gold);
    color: #17120a;
    font-weight: 700;
}
.nc-pager .is-disabled {
    opacity: .32;
    cursor: not-allowed;
}
.nc-pager .nc-pager-gap {
    min-width: 16px;
    border: 0;
    background: transparent;
    color: var(--nc-dim);
}

@media (max-width: 1700px) {
    .nc-book-v2 #chapter-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1320px) {
    .nc-book-v2 #chapter-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .nc-book-v2 #chapter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .nc-book-v2 #chapter-section { padding: 18px 16px 16px; border-radius: 14px; }
    .nc-catalog-head { align-items: stretch; gap: 14px; }
    .nc-catalog-search { flex: 1 1 100%; width: 100%; min-width: 0; }
    .nc-catalog-heading h2 { font-size: 19px; }
    .nc-catalog-foot { align-items: flex-start; }
}
@media (max-width: 620px) {
    .nc-book-v2 #chapter-list { grid-template-columns: minmax(0, 1fr); }
    .nc-catalog-icon { width: 34px; height: 34px; border-radius: 9px; }
    .nc-catalog-heading h2 { font-size: 18px; }
    .nc-catalog-count { height: 21px; font-size: 11px; }
    .nc-catalog-foot { flex-direction: column; gap: 12px; }
    .nc-pager { width: 100%; justify-content: center; gap: 8px; }
    .nc-pager-step { flex: 0 0 auto; }
    .nc-catalog-range { width: 100%; }
}
@media (hover: none) {
    .nc-chapter-arrow { opacity: .28; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .nc-book-v2 #chapter-list .nc-chapter-item,
    .nc-chapter-arrow,
    .nc-catalog-search,
    .nc-catalog-search button { transition: none; }
}
