/* =====================================================================
   高中语文古诗文深度学习讲义 · 深圳版 —— 网页版样式
   复用PDF引擎样式 + 网页导航/侧边栏/查找灯/背景
   ===================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
    font-weight: 600; color: #1f2937; font-size: 16px; line-height: 1.7;
    background: #f5f6fa; min-height: 100vh;
}
b, strong { font-weight: 700; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航栏 ---------- */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e5ec;
    height: 52px; display: flex; align-items: center; padding: 0 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.topbar .tb-brand {
    font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    font-weight: 900; font-size: 15px; color: #1a1a2e; white-space: nowrap;
    margin-right: 16px;
}
.topbar .tb-brand a { color: inherit; text-decoration: none; }
.topbar .tb-search {
    flex: 1; max-width: 420px; position: relative;
}
.topbar .tb-search input {
    width: 100%; padding: 7px 36px 7px 14px; border: 1.5px solid #d1d5db;
    border-radius: 20px; font-size: 13px; outline: none; background: #f9fafb;
    transition: border-color .2s;
}
.topbar .tb-search input:focus { border-color: #3b82f6; background: #fff; }
.topbar .tb-search .search-results {
    position: absolute; top: 42px; left: 0; right: 0; background: #fff;
    border: 1px solid #e2e5ec; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    max-height: 400px; overflow-y: auto; display: none; z-index: 200;
}
.topbar .tb-search .search-results.show { display: block; }
.topbar .tb-search .sr-item {
    padding: 8px 14px; border-bottom: 1px solid #f0f1f5; cursor: pointer; font-size: 13px;
}
.topbar .tb-search .sr-item:hover { background: #f0f5ff; }
.topbar .tb-search .sr-item .sr-title { font-weight: 700; color: #1a1a2e; }
.topbar .tb-search .sr-item .sr-meta { font-size: 11px; color: #6b7280; margin-top: 2px; }
.topbar .tb-search .sr-item mark { background: #fde68a; padding: 0 2px; border-radius: 2px; }
.topbar .tb-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar .tb-btn {
    font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    font-size: 12px; padding: 6px 12px; border-radius: 6px; cursor: pointer;
    border: 1px solid #d1d5db; background: #fff; color: #374151; white-space: nowrap;
}
.topbar .tb-btn:hover { background: #f3f4f6; }
.topbar .tb-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ---------- 侧边栏 ---------- */
.sidebar {
    position: fixed; top: 52px; left: 0; bottom: 0; width: 280px; z-index: 90;
    background: #fff; border-right: 1px solid #e2e5ec; overflow-y: auto;
    transition: transform .3s ease; padding-bottom: 20px;
}
.sidebar.collapsed { transform: translateX(-280px); }
.sidebar .sb-section { margin-bottom: 4px; }
.sidebar .sb-book-h {
    font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    font-weight: 900; font-size: 14px; padding: 12px 16px 8px; color: #fff;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.sidebar .sb-band {
    font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    font-weight: 700; font-size: 12px; padding: 8px 16px 4px; color: #4b5563;
    cursor: pointer;
}
.sidebar .sb-band::before { content: "▸ "; font-size: 10px; }
.sidebar .sb-band.open::before { content: "▾ "; }
.sidebar .sb-pieces { display: none; padding-left: 12px; }
.sidebar .sb-pieces.open { display: block; }
.sidebar .sb-piece {
    display: block; padding: 5px 12px; font-size: 13px; color: #374151;
    border-left: 3px solid transparent; text-decoration: none;
}
.sidebar .sb-piece:hover { background: #f0f5ff; border-left-color: #3b82f6; text-decoration: none; }
.sidebar .sb-piece.active { background: #eff6ff; border-left-color: #2563eb; color: #1d4ed8; font-weight: 700; }
.sidebar .sb-piece.star::before { content: "★ "; color: #f59e0b; }
.sidebar .sb-piece .sb-author { font-size: 11px; color: #9ca3af; }

/* ---------- 主内容区 ---------- */
.main-content {
    margin-left: 280px; margin-top: 52px; padding: 24px 32px 60px;
    transition: margin-left .3s ease;
}
.main-content.full { margin-left: 0; }
.content-paper {
    max-width: 860px; margin: 0 auto; background: #fff;
    border-radius: 10px; padding: 40px 48px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ---------- 首页：册封面 ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; }
.book-card {
    border-radius: 12px; overflow: hidden; color: #fff; cursor: pointer;
    transition: transform .2s, box-shadow .2s; text-decoration: none; display: block;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.15); text-decoration: none; }
.book-card .bc-inner { padding: 36px 28px; min-height: 260px; }
.book-card .bc-vol { font-size: 13px; letter-spacing: 4px; opacity: .9; }
.book-card .bc-title { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: 900; font-size: 26px; margin: 12px 0 8px; line-height: 1.3; }
.book-card .bc-sub { font-size: 13px; opacity: .9; line-height: 1.6; }
.book-card .bc-desc { font-size: 12px; opacity: .8; margin-top: 12px; line-height: 1.8; }

/* 公告 */
.announce-box {
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
    padding: 16px 20px; margin-bottom: 20px;
}
.announce-box .ab-h { font-weight: 700; color: #92400e; margin-bottom: 8px; font-size: 14px; }
.announce-item { padding: 6px 0; border-bottom: 1px dashed #fde68a; font-size: 14px; }
.announce-item:last-child { border-bottom: none; }
.announce-item .ai-date { color: #9ca3af; font-size: 12px; margin-right: 8px; }

/* 推荐篇目 */
.section-h2 {
    font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    font-weight: 900; font-size: 20px; color: #1a1a2e; margin: 28px 0 16px;
    padding-left: 12px; border-left: 4px solid #2563eb;
}
.piece-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.piece-list .pl-item {
    display: block; padding: 12px 16px; background: #fff; border-radius: 8px;
    border: 1px solid #e5e7eb; text-decoration: none; color: #1f2937; transition: all .15s;
}
.piece-list .pl-item:hover { border-color: #3b82f6; background: #f0f5ff; text-decoration: none; }
.piece-list .pl-title { font-weight: 700; font-size: 14px; }
.piece-list .pl-meta { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* =====================================================================
   以下为PDF引擎样式（适配网页，去掉print相关）
   ===================================================================== */

/* 标题块 */
.ptitle { text-align: center; margin: 20px 0 28px; }
.ptitle .p-stars { font-size: 18px; color: var(--book-color, #0d8a8c); letter-spacing: 3px; }
.ptitle .p-name { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: 900; font-size: 28px; color: #142033; margin: 6px 0; }
.ptitle .p-meta { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-size: 14px; color: #4b5563; }
.ptitle .p-meta i { font-style: normal; margin: 0 6px; color: #9ca3af; }

/* 顶部信息条 */
.infobar {
    display: flex; flex-wrap: wrap; align-items: center;
    background: var(--info-bg, #e7f4f2); border: 1px solid var(--info-border, #bfe0dc);
    border-radius: 6px; padding: 8px 14px; font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    font-size: 13px; margin-bottom: 16px;
}
.infobar span { margin-right: 16px; }
.infobar .tag { border-radius: 4px; padding: 2px 10px; color: #fff; font-weight: bold; font-size: 12px; }
.tag.must { background: var(--book-color, #0d8a8c); }
.tag.read { background: #64748b; }

/* 历史背景 */
.bgbox { background: var(--soft-bg, #eef7f6); border: 1px solid var(--soft-border, #c8e4e0); border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.bgbox .bg-h { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: var(--book-color, #0d8a8c); font-size: 15px; margin-bottom: 8px; }
.bgbox p { margin: 6px 0; font-size: 14px; }
.bgbox .why3 { display: table; width: 100%; margin-top: 10px; border-collapse: separate; border-spacing: 8px 0; }
.bgbox .why3 > div { display: table-cell; width: 33.3%; background: #fff; border: 1px solid var(--soft-border, #c8e4e0); border-top: 3px solid var(--book-color, #0d8a8c); border-radius: 6px; padding: 10px 12px; font-size: 13px; vertical-align: top; }
.bgbox .why3 .w-h { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: var(--book-color, #0d8a8c); display: block; margin-bottom: 4px; }

/* 章节标题 */
.sec-h { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: #fff; background: var(--book-color, #0d8a8c); font-size: 15px; padding: 8px 16px; border-radius: 6px; margin: 20px 0 12px; }
.sec-h.alt { background: var(--book-color2, #3f5fb0); }

/* 两栏对照 */
.duizhao { display: table; width: 100%; border-collapse: collapse; }
.duizhao > .dcol { display: table-cell; width: 50%; vertical-align: top; padding: 12px 16px; border: 1px solid #d7dce5; }
.dcol.orig { background: #fcfdfd; }
.dcol.anno { background: #f7f9fb; border-left: none; }
.dcol p { margin: 8px 0; }
.dcol .ln { color: var(--book-color, #0d8a8c); font-weight: bold; }
.dcol.anno { font-size: 13px; color: #374151; }
.dcol.anno b { color: #111827; }
.dcol.orig { font-size: 15px; line-height: 1.9; }

/* 高亮 */
.hl-y { background: linear-gradient(transparent 45%, #fde68a 45%); font-weight: 700; }
.hl-g { background: #bbf7d0; font-weight: 700; }
.hl-b { background: #bfdbfe; font-weight: 700; }
.hl-p { background: #fbcfe8; font-weight: 700; }
.hl-o { background: #fed7aa; font-weight: 700; }
.hl-v { background: #ddd6fe; font-weight: 700; }
.wavy { text-decoration: underline wavy var(--book-color, #0d8a8c); text-underline-offset: 3px; font-weight: 700; }
.wavy-r { text-decoration: underline wavy #dc2626; text-underline-offset: 3px; font-weight: 700; }
.wavy-b { text-decoration: underline wavy #2563eb; text-underline-offset: 3px; font-weight: 700; }
.uline { text-decoration: underline solid 1.4px; text-underline-offset: 2.5px; font-weight: 700; }
.uline-d { text-decoration: underline double 2.2px; text-underline-offset: 2.5px; font-weight: 700; }
.dmark { border-bottom: 2px dotted var(--book-color, #0d8a8c); font-weight: 700; }
.keyb { font-weight: 800; color: var(--book-color, #0d8a8c); }
.keyr { font-weight: 800; color: #dc2626; }

/* 翻译 */
.trans { background: #eef4ff; border-left: 4px solid #2563eb; border-radius: 0 6px 6px 0; padding: 12px 16px; color: #1e3a8a; font-size: 14px; }
.trans p { margin: 6px 0; }

/* 赏析 */
.appr { background: #fdf3f2; border: 1px solid #f5d0cc; border-radius: 8px; padding: 16px 20px; }
.appr .mod { margin: 12px 0; }
.appr .mod-h { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: #b91c1c; font-size: 15px; }
.appr .mod-h::before { content: "▎"; color: #dc2626; }
.appr p { margin: 6px 0; font-size: 14px; }
.appr ol, .appr ul { margin: 6px 0 6px 24px; padding: 0; }
.appr li { margin: 4px 0; font-size: 14px; }
.layer { display: table; width: 100%; margin: 8px 0; }
.layer > div { display: table-cell; padding: 10px 14px; border-radius: 6px; font-size: 13px; vertical-align: top; }
.layer .l1 { background: #fee2e2; } .layer .l2 { background: #fecaca; } .layer .l3 { background: #fca5a5; color: #7f1d1d; }
.layer .l-h { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; display: block; margin-bottom: 4px; }
.template { background: #fff7ed; border: 1px dashed #ea580c; border-radius: 6px; padding: 10px 14px; font-size: 13px; color: #9a3412; margin: 8px 0; }
.template b { color: #c2410c; }

/* 文言基础梳理表 */
.basetable { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.basetable th { background: var(--book-color, #0d8a8c); color: #fff; font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; padding: 8px 10px; text-align: left; font-size: 13px; }
.basetable td { border: 1px solid #d7dce5; padding: 8px 10px; vertical-align: top; }
.basetable tr:nth-child(even) td { background: #f7f9fb; }
.basetable .bt-cat { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: var(--book-color, #0d8a8c); white-space: nowrap; }
.basetable b { color: #b91c1c; }

/* 文化常识 */
.culture { background: var(--soft-bg, #eef7f6); border-radius: 8px; padding: 16px 20px; columns: 2; column-gap: 24px; font-size: 13px; }
.culture .cul { break-inside: avoid; margin-bottom: 10px; }
.culture .cul-h { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: var(--book-color, #0d8a8c); }
.culture p { margin: 4px 0; }

/* 考题 */
.exam .q { border: 1px solid #e5d5c3; border-left: 4px solid #ea580c; border-radius: 0 6px 6px 0; padding: 12px 16px; margin: 12px 0; background: #fffaf5; }
.exam .q-type { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: #c2410c; font-size: 14px; }
.exam .q-stem { margin: 6px 0; font-size: 14px; }
.exam .q-ans { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px; padding: 10px 14px; margin: 8px 0; font-size: 13px; color: #14532d; }
.exam .q-ans .a-h { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: #15803d; }
.exam .q-pts { font-size: 12px; color: #92400e; background: #fef3c7; border-radius: 4px; padding: 4px 10px; display: inline-block; margin-top: 4px; }
.exam .q-think { font-size: 13px; color: #44403c; background: #f5f5f4; border-radius: 4px; padding: 8px 14px; margin: 6px 0; }
.exam .q-think b { color: #292524; }

/* 字音字形 */
.ziyin { background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 8px; padding: 16px 20px; font-size: 13px; color: #4c1d95; }
.ziyin .z-h { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: #6d28d9; }
.ziyin .z-grid { display: table; width: 100%; }
.ziyin .z-grid > div { display: table-cell; width: 50%; vertical-align: top; padding-right: 16px; }
.ziyin b { color: #5b21b6; }
.ziyin .wrong { color: #dc2626; font-weight: 700; }

/* 名句清单 */
.famous { background: var(--soft-bg, #eef7f6); border-radius: 8px; padding: 16px 20px; columns: 2; column-gap: 24px; font-size: 14px; }
.famous p { break-inside: avoid; margin: 4px 0; }
.famous .n { color: var(--book-color, #0d8a8c); font-weight: bold; }

/* 时间轴 */
.timeline { border-left: 3px solid var(--book-color, #7c3aed); margin: 12px 0 12px 16px; padding-left: 20px; }
.timeline .tl { position: relative; margin: 8px 0; font-size: 14px; }
.timeline .tl::before { content: ""; position: absolute; left: -29px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--book-color, #7c3aed); }
.timeline .tl .tl-time { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: var(--book-color, #7c3aed); }

.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.compare-table th { background: var(--book-color2, var(--book-color, #7c3aed)); color: #fff; font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; padding: 8px; font-size: 13px; }
.compare-table td { border: 1px solid #d7dce5; padding: 8px 10px; vertical-align: top; }
.compare-table tr:nth-child(even) td { background: #faf7fd; }

/* 词汇全编 */
.dict-letter { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: 900; color: #fff; background: var(--book-color, #7c3aed); font-size: 18px; padding: 10px 20px; border-radius: 8px; margin: 16px 0 12px; }
.dict-letter .dl-sub { float: right; font-size: 12px; font-weight: bold; color: rgba(255,255,255,.85); padding-top: 4px; }
.dict-entry { border: 1px solid #e2d9f5; border-radius: 8px; padding: 0; margin: 10px 0; background: #fff; break-inside: avoid; overflow: hidden; }
.dict-entry .de-head { display: table; width: 100%; background: var(--soft-bg, #f5f1ff); border-bottom: 1px solid #e6ddf7; }
.dict-entry .de-char { display: table-cell; width: 64px; text-align: center; vertical-align: middle; font-family: "Noto Serif CJK SC", serif; font-weight: 900; font-size: 28px; color: var(--book-color, #7c3aed); padding: 8px 0; }
.dict-entry .de-py { display: table-cell; vertical-align: middle; font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; font-size: 15px; color: #6d28d9; }
.dict-entry .de-py .de-bu { display: block; font-size: 12px; color: #9ca3af; font-weight: normal; margin-top: 2px; }
.dict-entry table.de-mean { width: 100%; border-collapse: collapse; font-size: 13px; }
.dict-entry .de-mean td { padding: 6px 12px; border-top: 1px solid #f0ecfa; vertical-align: top; }
.dict-entry .de-mean .dm-no { width: 28px; font-weight: bold; color: var(--book-color, #7c3aed); text-align: center; }
.dict-entry .de-mean .dm-cat { width: 100px; font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: #b91c1c; }
.dict-entry .de-mean .dm-ex { color: #374151; }
.dict-entry .de-mean .dm-ex .dm-src { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-weight: bold; color: #1d4ed8; }
.dict-entry .de-mean tr:nth-child(even) td { background: #faf8ff; }
.dict-note { font-size: 13px; color: #6b21a8; background: var(--soft-bg, #f5f1ff); border-radius: 6px; padding: 10px 16px; margin: 8px 0; }
.dict-index-bar { font-size: 13px; background: #fff; border: 1px solid #e2d9f5; border-radius: 6px; padding: 10px 12px; margin: 10px 0; line-height: 1.9; }
.dict-index-bar a { color: var(--book-color, #7c3aed); font-weight: bold; text-decoration: none; margin: 0 6px; }

/* =====================================================================
   网页专用：阅读导航、查找灯、专注模式、背景
   ===================================================================== */

/* 阅读页底部导航 */
.read-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 32px; padding-top: 20px; border-top: 1px solid #e5e7eb;
}
.read-nav a {
    padding: 10px 20px; border-radius: 8px; background: #f3f4f6; color: #374151;
    text-decoration: none; font-size: 14px; font-weight: 600;
}
.read-nav a:hover { background: #e5e7eb; text-decoration: none; }
.read-nav a:disabled { opacity: .4; pointer-events: none; }
.read-nav .rn-center { font-size: 13px; color: #6b7280; }

/* 回顶按钮 */
.back-top {
    position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
    border-radius: 50%; background: #2563eb; color: #fff; border: none;
    font-size: 18px; cursor: pointer; display: none; z-index: 80;
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
}
.back-top.show { display: block; }

/* 查找灯面板 */
.find-panel {
    position: fixed; top: 52px; right: 0; width: 320px; max-height: calc(100vh - 52px);
    background: #fff; border-left: 1px solid #e2e5ec; box-shadow: -4px 0 16px rgba(0,0,0,.08);
    z-index: 95; transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; padding: 16px;
}
.find-panel.show { transform: translateX(0); }
.find-panel .fp-h { font-weight: 700; font-size: 15px; margin-bottom: 12px; color: #1a1a2e; }
.find-panel .fp-row { margin-bottom: 12px; }
.find-panel .fp-row label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.find-panel .fp-row input[type=text] {
    width: 100%; padding: 8px 12px; border: 1.5px solid #d1d5db; border-radius: 6px; font-size: 14px;
}
.find-panel .fp-row input[type=text]:focus { border-color: #3b82f6; outline: none; }
.find-panel .fp-nav { display: flex; gap: 6px; margin-top: 6px; }
.find-panel .fp-nav button {
    flex: 1; padding: 6px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px;
    cursor: pointer; font-size: 12px;
}
.find-panel .fp-nav button:hover { background: #f3f4f6; }
.find-panel .fp-count { font-size: 12px; color: #6b7280; margin-top: 4px; }
.find-panel .fp-divider { border-top: 1px solid #e5e7eb; margin: 16px 0; }

/* 查找高亮 */
mark.find-hl { background: #fde047; padding: 0 1px; border-radius: 2px; }
mark.find-hl.current { background: #f97316; color: #fff; }

/* 专注模式（聚光灯） */
.focus-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 70;
    pointer-events: none; opacity: 0; transition: opacity .3s;
}
.focus-overlay.active { opacity: 1; }
.focus-overlay .fo-mask {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.55);
    -webkit-mask-image: radial-gradient(ellipse 320px 200px at 50% 40%, transparent 60%, black 100%);
    mask-image: radial-gradient(ellipse 320px 200px at 50% 40%, transparent 60%, black 100%);
}
body.focus-mode .content-paper > * { transition: opacity .3s; }
body.focus-mode .content-paper > *.focus-active { position: relative; z-index: 71; }

/* 亮度/暖色滑块 */
.fp-slider-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fp-slider-row label { flex: 0 0 50px; font-size: 12px; color: #6b7280; }
.fp-slider-row input[type=range] { flex: 1; }

/* 背景选择器 */
.bg-panel {
    position: fixed; bottom: 80px; right: 30px; z-index: 85;
    background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.12);
    padding: 14px; display: none; width: 200px;
}
.bg-panel.show { display: block; }
.bg-panel .bp-h { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: #1a1a2e; }
.bg-opt {
    padding: 10px 12px; border-radius: 6px; cursor: pointer; margin-bottom: 6px;
    font-size: 13px; border: 2px solid transparent; transition: all .15s;
}
.bg-opt:hover { background: #f3f4f6; }
.bg-opt.active { border-color: #2563eb; background: #eff6ff; }

/* 背景动画 */
body.bg-gradient1 { background: linear-gradient(135deg, #e0f2fe 0%, #fce7f3 50%, #fef3c7 100%); background-attachment: fixed; }
body.bg-gradient2 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%); background-attachment: fixed; }
body.bg-gradient2 .main-content { color: #e5e7eb; }
body.bg-ink { background: #f5f0e8; background-image: radial-gradient(circle at 20% 30%, rgba(139,119,83,.06) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(60,80,60,.06) 0%, transparent 50%); background-attachment: fixed; }
body.bg-paper { background: #faf9f6; }

/* 快速跳转下拉 */
.quick-jump {
    padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px;
    background: #fff; max-width: 180px;
}

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1024px) {
    .sidebar { width: 240px; }
    .main-content { margin-left: 240px; padding: 16px 20px 60px; }
    .content-paper { padding: 24px 28px; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-280px); width: 280px; box-shadow: 2px 0 12px rgba(0,0,0,.1); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 12px 10px 60px; }
    .main-content.full { margin-left: 0; }
    .content-paper { padding: 16px 14px; border-radius: 6px; }
    .topbar .tb-brand { font-size: 13px; margin-right: 8px; }
    .topbar .tb-search { max-width: none; }
    .topbar .tb-right .tb-btn { padding: 5px 8px; font-size: 11px; }
    .duizhao { display: block; }
    .duizhao > .dcol { display: block; width: 100%; border: 1px solid #d7dce5; border-bottom: none; }
    .duizhao > .dcol:last-child { border-bottom: 1px solid #d7dce5; }
    .culture { columns: 1; }
    .famous { columns: 1; }
    .bgbox .why3 { display: block; }
    .bgbox .why3 > div { display: block; width: 100%; margin-bottom: 8px; }
    .layer { display: block; }
    .layer > div { display: block; margin-bottom: 4px; }
    .find-panel { width: 100%; max-width: 320px; }
    .ptitle .p-name { font-size: 22px; }
    .back-top { bottom: 20px; right: 16px; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
    .topbar .tb-brand { font-size: 12px; }
    .topbar .tb-btn span.btn-text { display: none; }
    .content-paper { padding: 12px 10px; }
}
