/* 通用样式（与阅读/详情页同系：浅灰底 + 蓝主色，单文件 CSS 利于缓存与爬虫抓取静态资源） */
:root { --main: #2563eb; --bg: #f1f5f9; --border: #e2e8f0; }
body { background: var(--bg); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; margin:0; padding:0; color:#334155; }
.container { max-width: 1200px; margin:0 auto; padding: 0 15px; }

/* 头部 */
.header { background:#fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(255,255,255,0.8); }
.flex-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-size: 26px; font-weight: bold; color: #1e3a5f; text-decoration: none; }
.logo span { color: #64748b; font-weight: 600; }
.search-box { display: flex; background: #eee; border-radius: 20px; padding: 5px 15px; }
.search-box input { border:none; background:none; outline:none; width: 180px; }
.search-box button { border:none; background:none; cursor:pointer; color:#888; padding:0; display:flex; align-items:center; justify-content:center; }
.search-box .ico-search { display:block; flex-shrink:0; }

/* 导航 */
.main-nav { background: #fff; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--border); }
.main-nav a { display: inline-block; padding: 12px 20px; color: #666; text-decoration: none; font-weight: 500; }
.main-nav a.active, .main-nav a:hover { color: var(--accent); }

/* 布局 */
.section-header { border-left: 5px solid var(--accent); padding-left: 10px; margin: 25px 0 15px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-header h2 { margin:0; font-size: 20px; }
.section-header a { font-size: 13px; color: #999; text-decoration: none; }

.book-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.book-card { background: #fff; border: 1px solid var(--border); padding: 5px; transition: 0.3s; }
.book-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.book-card img { width: 100%; height: 160px; object-fit: cover; }
.card-info h3 { font-size: 14px; margin: 8px 0 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-info p { font-size: 12px; color: #888; margin:0; }

.content-row { display: flex; gap: 20px; margin-top: 20px; }
.main-col { flex: 3; }
.side-col { flex: 1; }

.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-item { background:#fff; padding:8px; text-align:center; }
.mini-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 2px; }
.mini-item h4 { font-size: 13px; margin: 5px 0; font-weight: normal; }

.side-list { list-style:none; padding:0; background:#fff; border: 1px solid var(--border); }
.side-list li { padding: 10px 15px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; font-size: 14px; }
.side-list a { text-decoration: none; color: #444; }
.side-list span { color: #999; font-size: 12px; }

/* 全站统一页脚（与 footer_inner.tpl.php / footer.tpl.php 对应） */
.site-footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #94a3b8;
    padding: 28px 0 32px;
    margin-top: 48px;
    text-align: center;
    border-top: 1px solid #334155;
}
.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 2px;
    font-size: 13px;
    margin: 0 0 14px;
    line-height: 1.65;
}
.site-footer-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}
.site-footer-nav a:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.45);
}
.site-footer-nav a:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}
.site-footer-sep {
    color: #475569;
    user-select: none;
    padding: 0 1px;
    font-weight: 300;
}
.site-footer-copy {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}
.site-footer-read-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}
.site-footer--read {
    margin-top: 36px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .search-box { display: none; }
    /* 小屏仅显示站名时，品牌标题水平居中；PC 仍为左右分布 */
    .flex-header {
        justify-content: center;
        padding: 12px 0;
    }
    .book-grid { grid-template-columns: repeat(3, 1fr); }
    .channel-grid { grid-template-columns: repeat(2, 1fr); }
    .content-row { flex-direction: column; }
    .side-col { display: none; }
}

.skip-link:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 9999;
    padding: 8px 14px;
    background: #1e293b;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

/* ========== 全站视觉统一（轻量，单文件利于缓存；无外链字体保证首屏速度） ========== */
:root {
    --accent: #2563eb;
    --accent-soft: #eff6ff;
    --text-muted: #64748b;
    --panel-border: #e8ecf1;
    --panel-shadow: 0 4px 22px rgba(15, 23, 42, 0.06);
}

.site-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 15px 40px;
}

.site-bread {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.site-bread a {
    color: var(--text-muted);
    text-decoration: none;
}
.site-bread a:hover { color: var(--accent); text-decoration: underline; }
.site-bread-sep { margin: 0 8px; color: #cbd5e1; }

.site-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    overflow: hidden;
    margin-bottom: 18px;
}

.site-panel-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.site-panel-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.site-panel-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.novel-list-grid {
    padding: 8px 0;
}

.novel-row {
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}
.novel-row:last-child { border-bottom: none; }
.novel-row:hover { background: #fafbff; }

.novel-row-cover img {
    width: 100px;
    height: 135px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.novel-row-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.novel-row-title a {
    color: #0f172a;
    text-decoration: none;
}
.novel-row-title a:hover { color: var(--accent); }

.novel-row-meta {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 8px;
}

.novel-row-intro {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-empty {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
    font-size: 15px;
}
.site-empty a { color: var(--accent); }

.site-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 16px 22px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: var(--text-muted);
}

.site-pager-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}
.site-pager-btn:hover {
    background: var(--accent-soft);
    border-color: #bfdbfe;
    color: var(--accent);
}

.site-pager-info { padding: 0 8px; }

.site-aside-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 14px 18px;
    font-size: 13px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}
.site-aside-links a {
    color: var(--accent);
    text-decoration: none;
}
.site-aside-links a:hover { text-decoration: underline; }

/* ========== 内页公用：紧凑渐变顶栏（与阅读页 Hero 同系，零额外 HTTP） ========== */
.site-mini-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 48%, #6366f1 100%);
    color: #fff;
    border-radius: 16px;
    padding: 20px 22px 22px;
    margin-bottom: 20px;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.2);
}
.site-mini-hero-bread {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 12px;
    line-height: 1.5;
}
.site-mini-hero-bread a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}
.site-mini-hero-bread a:hover { text-decoration: underline; }
.site-mini-hero-bread-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
}
.site-mini-hero-bread-here { color: rgba(255, 255, 255, 0.72); }
.site-mini-hero-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1.3;
}
.site-mini-hero-sub {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
}
@media (max-width: 640px) {
    .site-mini-hero { padding: 18px 18px 20px; }
    .site-mini-hero-title { font-size: 20px; }
}

.site-panel--no-head .novel-list-grid,
.site-panel--no-head .upd-table-wrap { padding-top: 4px; }
.site-empty--pad { margin: 0; padding: 28px 22px; }

/* 排行榜双栏 */
.rank-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
.rank-page-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    padding: 20px 22px;
}
.rank-page-heading {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    color: #0f172a;
}
.rank-page-heading--muted {
    border-bottom-color: #cbd5e1;
}
.rank-page-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.rank-page-row:last-child { border-bottom: none; }
.rank-page-row a {
    flex: 1;
    min-width: 0;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}
.rank-page-row a:hover { color: var(--accent); }
.rank-page-num { font-weight: 700; margin-right: 10px; flex-shrink: 0; }
.rank-page-num--hot { color: #ea580c; }
.rank-page-num--dim { color: #94a3b8; }
.rank-page-views { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.rank-page-new-item { margin-bottom: 14px; }
.rank-page-new-item:last-child { margin-bottom: 0; }
.rank-page-new-item a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.4;
}
.rank-page-new-item a:hover { color: var(--accent); }
.rank-page-new-intro {
    font-size: 12px;
    color: #94a3b8;
    margin: 6px 0 0;
    line-height: 1.45;
}
.rank-page-empty {
    color: #94a3b8;
    text-align: center;
    padding: 36px 16px;
    margin: 0;
}

/* 文章正文页 */
.site-article-body { margin-bottom: 18px; }
.site-article-body-inner {
    padding: 22px 24px 28px;
    font-size: 16px;
    line-height: 1.88;
    color: #334155;
}
.site-article-body-inner p { margin: 0.85em 0; }

/* 百科中心新闻列表侧栏 */
.news-hub-layout {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.news-hub-main { flex: 2; min-width: 280px; }
.news-hub-title-page {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.news-hub-side { flex: 1; min-width: 240px; }
.news-hub-side-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    padding: 16px 18px;
    box-shadow: var(--panel-shadow);
}
.news-hub-side-title {
    font-size: 15px;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    font-weight: 600;
}
.news-hub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.news-hub-tag {
    font-size: 13px;
    color: #334155;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
}
.news-hub-tag:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--accent);
}
.news-hub-empty {
    color: #94a3b8;
    text-align: center;
    padding: 40px 16px;
    margin: 0;
}
.news-hub-empty a { color: var(--accent); }

@media (max-width: 992px) {
    .rank-page-layout { grid-template-columns: 1fr; }
}

/* 首页区块（由原 index 内联迁入，减少 HTML 体积） */
.main-container { max-width: 1200px; margin: 0 auto; padding: 15px; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.section-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--panel-shadow);
    border: 1px solid var(--panel-border);
    margin-bottom: 22px;
    overflow: hidden;
}
.section-title {
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    background: linear-gradient(180deg, #fafbff 0%, #fff 55%);
}
.featured-flex { display: flex; flex-wrap: wrap; padding: 20px; gap: 28px; }
.featured-main { flex: 1; min-width: 280px; display: flex; gap: 18px; }
.featured-side {
    width: 280px;
    border-left: 1px solid #f1f5f9;
    padding-left: 24px;
}
.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 20px;
}
.rank-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eef2f7;
}

.news-hub .news-main-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    padding: 20px 22px;
    box-shadow: var(--panel-shadow);
}
.news-hub .news-card-item {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.news-hub .news-card-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-hub .news-card-item h3 { margin: 0 0 10px; font-size: 17px; }
.news-hub .news-card-item h3 a { color: #0f172a; text-decoration: none; }
.news-hub .news-card-item h3 a:hover { color: var(--accent); }
.news-hub .news-meta { font-size: 12px; color: #94a3b8; margin-top: 10px; }
.news-card-excerpt {
    color: #475569;
    font-size: 14px;
    line-height: 1.75;
    margin: 10px 0 0;
}
.site-aside-links--article {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .featured-side {
        width: 100%;
        border-left: none;
        padding-left: 0;
        padding-top: 18px;
        border-top: 1px solid #f1f5f9;
    }
    .novel-row { flex-direction: column; align-items: flex-start; }
    .novel-row-cover img { width: 88px; height: 118px; }
}

/* ========== 文学百科页（原 encyclopedia.tpl 内联样式迁入，便于全站复用） ========== */
.enc-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.enc-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 48%, #6366f1 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 26px 32px;
    margin-bottom: 28px;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.22);
}
.enc-hero h1 { margin: 0 0 10px; font-size: 26px; font-weight: 700; letter-spacing: 0.02em; }
.enc-hero p { margin: 0; font-size: 14px; line-height: 1.65; opacity: 0.92; max-width: 720px; }
.enc-crumb { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.enc-crumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.enc-crumb a:hover { text-decoration: underline; }
.enc-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef0f4;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.enc-panel-hd {
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.enc-panel-hd h2 { margin: 0; font-size: 18px; color: #0f172a; font-weight: 600; }
.enc-panel-hd span { font-size: 13px; color: #64748b; }
.enc-list { padding: 0; margin: 0; list-style: none; }
.enc-item {
    display: flex;
    gap: 18px;
    padding: 22px 22px;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
    transition: background 0.15s ease;
}
.enc-item:last-child { border-bottom: none; }
.enc-item:hover { background: #fafbff; }
.enc-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.enc-body { flex: 1; min-width: 0; }
.enc-title-row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.enc-title-row h3 { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 600; }
.enc-title-row h3 a { color: #0f172a; text-decoration: none; }
.enc-title-row h3 a:hover { color: #2563eb; }
.enc-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.enc-badge-wiki { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.enc-badge-news { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.enc-badge-tip { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.enc-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.enc-meta { margin-top: 10px; font-size: 12px; color: #94a3b8; }
.enc-empty {
    text-align: center;
    padding: 56px 24px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.8;
}
.enc-empty strong { color: #64748b; display: block; margin-bottom: 8px; font-size: 16px; }
.enc-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 22px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #64748b;
}
.enc-pager a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}
.enc-pager a:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.enc-quick {
    margin-top: 22px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
}
.enc-quick a { color: #2563eb; text-decoration: none; margin-right: 14px; white-space: nowrap; }
.enc-quick a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .enc-hero h1 { font-size: 21px; }
    .enc-item { flex-direction: column; gap: 12px; }
    .enc-num { width: 32px; height: 32px; font-size: 13px; }
}

/* ========== 首页 Hero + 频道矩阵（对齐百科渐变与面板气质） ========== */
.home-site-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 48%, #6366f1 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 26px 32px;
    margin-bottom: 22px;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.22);
}
.home-site-hero-inner { max-width: 720px; }
.home-site-hero-tag { margin: 0 0 10px; font-size: 13px; opacity: 0.88; letter-spacing: 0.06em; }
.home-site-hero-title { margin: 0 0 12px; font-size: 26px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; }
.home-site-hero-desc { margin: 0 0 18px; font-size: 14px; line-height: 1.65; opacity: 0.92; }
.home-site-hero-intro .home-site-hero-desc { margin-bottom: 10px; }
.home-site-hero-intro .home-site-hero-desc:last-child { margin-bottom: 18px; }
.home-site-hero-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.home-site-hero-jumps a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.home-site-hero-jumps a:hover,
.home-site-hero-jumps a:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
    outline: none;
}
@media (max-width: 640px) {
    .home-site-hero-title { font-size: 21px; }
}

/* ========== 章节更新流列表页（updates.tpl） ========== */
.upd-table-wrap { overflow-x: auto; }
.upd-stream-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-size: 14px;
}
.upd-stream-table thead tr {
    background: #f8fafc;
    color: #64748b;
    text-align: left;
    font-size: 13px;
}
.upd-stream-table th { padding: 12px 20px; font-weight: 600; }
.upd-stream-table td { padding: 14px 20px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.upd-col-st { width: 100px; }
.upd-col-time { width: 120px; }
.upd-cell-muted { color: #94a3b8; }
.upd-book { color: #0f172a; font-weight: 600; text-decoration: none; }
.upd-book:hover { color: var(--accent); }
.upd-ch-sep { color: #94a3b8; margin-left: 10px; font-size: 13px; }
.upd-ch { color: #64748b; text-decoration: none; }
.upd-ch:hover { color: var(--accent); text-decoration: underline; }
.upd-st { color: #64748b; }
.upd-st--on { color: #16a34a; }
.upd-time { color: #94a3b8; font-size: 12px; white-space: nowrap; }

/* ========== 阅读页（read.tpl，body.read-page） ========== */
body.read-page {
    margin: 0;
    background: var(--bg);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #334155;
}
.read-page .read-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}
/* 头部：与全站百科/首页同系渐变 */
.read-page .read-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 48%, #6366f1 100%);
    color: #fff;
    border-radius: 16px;
    padding: 22px 24px 26px;
    margin-bottom: 20px;
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.25);
}
.read-page .read-hero-bread {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin: 0 0 14px;
    text-align: left;
}
.read-page .read-hero-bread a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}
.read-page .read-hero-bread a:hover { text-decoration: underline; }
.read-page .read-hero-bread-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
}
.read-page .read-hero-bread-here { color: rgba(255, 255, 255, 0.7); }
.read-page .read-hero-book {
    margin: 0 0 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
    text-align: left;
}
.read-page .read-hero-booklink {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.read-page .read-hero-booklink:hover { text-decoration: underline; }
.read-page .read-hero-dot { margin: 0 6px; opacity: 0.75; }
.read-page .read-hero-author { margin-right: 8px; }
.read-page .read-hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    vertical-align: middle;
    white-space: nowrap;
}
.read-page .read-hero-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-align: left;
    color: #fff;
}
.read-page .read-hero-meta {
    margin: 10px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
}
.read-page .read-container {
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.read-page .read-inner { max-width: 680px; margin: 0 auto; padding: 32px 28px 28px; }
.read-page .read-content {
    font-size: 19px;
    line-height: 1.95;
    color: #1e293b;
    min-height: 320px;
    text-align: justify;
    text-justify: inter-ideograph;
}
.read-page .read-content p { margin: 0.9em 0; }
.read-page .read-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
}
.read-page .read-actions a {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}
.read-page .read-actions a:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.read-page .read-actions-disabled {
    color: #94a3b8 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 8px;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: default;
}
.read-page .read-below { margin-top: 8px; }
.read-page .zhihu-mod { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.read-page .zhihu-mod h3 {
    font-size: 17px;
    color: #0f172a;
    margin: 0 0 14px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
    font-weight: 600;
}
.read-page .cmt-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    text-align: left;
}
.read-page .cmt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.read-page .cmt-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #bfdbfe, #93c5fd);
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.read-page .cmt-user { font-weight: 600; color: #334155; font-size: 14px; }
.read-page .cmt-meta { font-size: 12px; color: #94a3b8; margin-left: auto; }
.read-page .cmt-body { font-size: 14px; color: #475569; line-height: 1.75; }
.read-page .cmt-foot { margin-top: 10px; font-size: 12px; color: #94a3b8; }
.read-page .topic-row {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    text-align: left;
}
.read-page .topic-q { font-size: 14px; color: #2563eb; font-weight: 600; margin-bottom: 6px; }
.read-page .topic-a { font-size: 13px; color: #475569; line-height: 1.65; }
.read-page .seo-hub {
    margin-top: 28px;
    padding: 22px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
}
.read-page .seo-hub h3 {
    font-size: 17px;
    margin: 0 0 14px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
    color: #0f172a;
    font-weight: 600;
}
.read-page .seo-hub .seo-row { font-size: 13px; color: #475569; line-height: 1.75; margin-bottom: 14px; }
.read-page .seo-hub .seo-row a {
    color: var(--accent);
    text-decoration: none;
    margin-right: 10px;
    display: inline-block;
    padding: 3px 0;
}
.read-page .seo-hub .seo-row a:hover { text-decoration: underline; }
.read-page .seo-hub .seo-split { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #cbd5e1; }
.read-page .seo-hub .seo-hub-label { color: #334155; font-weight: 600; }
@media (max-width: 768px) {
    .read-page .read-inner { padding: 22px 16px; }
    .read-page .read-content { font-size: 18px; }
    .read-page .read-hero-title { font-size: 20px; }
}

/* ========== 书目详情页（info.tpl，对齐阅读页渐变 + 白底卡片） ========== */
.novel-info-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 16px 40px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.novel-info-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 48%, #6366f1 100%);
    color: #fff;
    border-radius: 16px;
    padding: 22px 24px 26px;
    margin-bottom: 20px;
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.25);
}
.novel-info-hero-bread {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin: 0 0 14px;
    text-align: left;
}
.novel-info-hero-bread a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}
.novel-info-hero-bread a:hover { text-decoration: underline; }
.novel-info-hero-bread-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
}
.novel-info-hero-bread-here { color: rgba(255, 255, 255, 0.88); font-weight: 500; }
.novel-info-hero-title {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #fff;
}
.novel-info-hero-meta {
    margin: 0 0 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    line-height: 1.6;
}
.novel-info-hero-cate {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #fff;
}
.novel-info-hero-dot { opacity: 0.65; margin: 0 2px; }
.novel-info-hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
}
.novel-info-hero-upd { color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.novel-info-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.novel-info-subtag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.novel-info-subtag--hero {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 600;
}
.novel-info-subtag--hero:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
.novel-info-hero-actions { margin: 0; }
.novel-info-hero-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #fff;
    color: #1d4ed8 !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.novel-info-hero-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.novel-info-hero-btn--disabled {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85) !important;
    cursor: default;
    box-shadow: none;
}
.novel-info-hero-btn--disabled:hover { transform: none; }

.novel-info-maincard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
}
.novel-info-maincard-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    padding: 28px 26px;
    align-items: start;
}
.novel-info-cover-wrap {
    flex-shrink: 0;
}
.novel-info-cover-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
    display: block;
}
.novel-info-intro-heading {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
}
.novel-info-intro-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.85;
    text-align: justify;
    text-justify: inter-ideograph;
}

.novel-info-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.novel-info-left,
.novel-info-side {
    min-width: 0;
}
.novel-info-card {
    background: #fff;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
.novel-info-card--spaced { margin-bottom: 20px; }
.novel-info-card-title {
    border-left: 4px solid var(--accent);
    padding-left: 12px;
    margin: 0 0 14px;
    font-size: 17px;
    color: #0f172a;
    font-weight: 700;
}
.novel-info-card-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: -6px 0 12px;
    line-height: 1.5;
}
.novel-info-card-hint--tight { margin: -4px 0 10px; }
.novel-info-chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.novel-info-chapter-cell {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}
.novel-info-chapter-cell a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}
.novel-info-chapter-cell a:hover { color: var(--accent); }
.novel-info-faq-item {
    border-bottom: 1px dashed #e2e8f0;
    padding: 14px 0;
    text-align: left;
}
.novel-info-faq-item:last-child { border-bottom: none; }
.novel-info-faq-q {
    font-size: 14px;
    color: #1d4ed8;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.55;
}
.novel-info-faq-a { font-size: 13px; color: #475569; line-height: 1.75; }
.novel-info-rec {
    display: block;
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.novel-info-rec::before { content: '· '; color: #94a3b8; }
.novel-info-rec:hover { color: var(--accent); }
.novel-info-link-row {
    display: block;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    line-height: 1.45;
}
.novel-info-link-row:hover { color: var(--accent); }
.novel-info-wiki-more { margin-top: 12px; font-size: 13px; }
.novel-info-wiki-more a { color: var(--accent); text-decoration: none; font-weight: 600; }
.novel-info-wiki-more a:hover { text-decoration: underline; }
.novel-info-channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.novel-info-subtag--plain {
    margin: 0;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 600;
}
.novel-info-subtag--plain:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

@media (max-width: 992px) {
    .novel-info-grid { grid-template-columns: 1fr; }
    .novel-info-maincard-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .novel-info-cover-wrap { justify-self: center; }
    .novel-info-cover-img { max-width: 220px; margin: 0 auto; }
    .novel-info-intro-heading { text-align: left; }
    .novel-info-intro-text { text-align: left; }
    .novel-info-hero-title { font-size: 22px; }
}
@media (max-width: 640px) {
    .novel-info-hero { padding: 18px 18px 22px; }
    .novel-info-hero-title { font-size: 20px; }
}

/* Tag / Topic 聚合页 */
.site-page-list .topic-intro {
    font-size: 14px;
    color: #475569;
    line-height: 1.85;
    margin-top: 12px;
    max-width: 920px;
}
.site-page-list .seo-row--wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}
.site-page-list .seo-row--wrap a {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}
.site-page-list .seo-row--wrap a:hover {
    text-decoration: underline;
}