/* 首页新版块（1A + 2A 升级版）：最近在读 / 最新上传 / 编辑推荐 / 书友动态 */
.panel h3 small.hm-sub{margin-left:8px;font-size:12px;font-weight:400;color:#9a948e}
.panel h3 small.hm-sub a{color:#9a948e;text-decoration:none}

/* ================= 1A：最近在读 ================= */
.hc-panel,.latest-upload-expand,.hw-panel{min-width:0;max-width:100%}
.hc-panel{position:relative}
.hc-panel[hidden],.hc-like[hidden]{display:none!important}
.hc-panel .body{padding-top:12px;padding-bottom:12px}
.hc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.hc-top-l{display:flex;align-items:center;gap:7px;min-width:0}
.hc-top-l svg{flex:none;color:#0f766e}
.hc-top-l b{font-size:14px;font-weight:700;color:#2b2622}
.hc-top-l span{font-size:12px;color:#8a837a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-top-r{display:flex;align-items:center;gap:8px;padding-right:28px;flex:none}
.hc-all-btn{border:0;background:none;padding:2px 6px;font-family:inherit;font-size:12px;color:#8a837a;cursor:pointer;border-radius:6px}
.hc-all-btn:hover{color:#0f766e;background:#eef8f6}

.hc-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hc-item{position:relative;display:flex;align-items:center;gap:10px;min-width:0;padding:8px 10px;border:1px solid #efe7dc;border-radius:10px;background:#fffdf9;color:#2b2622;transition:border-color .15s,box-shadow .15s}
.hc-item:hover{border-color:#bfe3dc;box-shadow:0 3px 10px rgba(15,118,110,.08)}
.hc-del{position:absolute;top:3px;right:4px;border:0;background:none;padding:1px 5px;color:#a59a88;font-size:13px;line-height:1;cursor:pointer;opacity:.55;border-radius:4px}
.hc-item:hover .hc-del{opacity:1;color:#c8673a}
.hc-cv-link{flex:none;display:block;border-radius:4px;overflow:hidden}
.hc-cv{display:block;width:36px;height:48px;object-fit:cover;background:#f1ede8;box-shadow:0 1px 4px rgba(60,40,20,.16)}
.hc-t{flex:1;min-width:0;padding-right:10px}
.hc-name{display:block;font-size:13px;font-weight:600;color:#2b2622;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}
.hc-name:hover{color:#0f766e}
.hc-chap{display:block;margin-top:2px;font-size:11.5px;color:#8a837a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}
.hc-prog{display:flex;align-items:center;gap:6px;margin-top:5px}
.hc-prog-bar{flex:1;height:3px;border-radius:2px;background:#eadfcd;overflow:hidden}
.hc-prog-bar i{display:block;height:100%;border-radius:2px;background:#0f766e}
.hc-prog-txt{flex:none;font-size:10.5px;color:#8a837a;font-variant-numeric:tabular-nums}
.hc-acts{flex:none;display:flex;flex-direction:column;align-items:center;gap:3px;padding-top:6px}
.hc-go{display:inline-block;padding:3px 10px;border-radius:12px;background:#c8673a;color:#fff!important;font-size:11.5px;font-weight:600;text-decoration:none!important;white-space:nowrap}
.hc-go:hover{background:#b2562c}
.hc-detail{font-size:11px;color:#8a837a;text-decoration:none}
.hc-detail:hover{color:#0f766e}

.hc-like{margin-top:11px;padding-top:10px;border-top:1px dashed #eadfcd;display:flex;align-items:center;gap:10px;min-width:0}
.hc-like h4{flex:none;margin:0;font-size:12px;font-weight:400;color:#8a837a;display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:100%}
.hc-basis{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap;max-width:100%}
.hc-basis-btn{border:1px solid #e3dccf;background:#fff;color:#52483e;border-radius:6px;padding:2px 7px;font-family:inherit;font-size:11px;line-height:1.4;cursor:pointer;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-basis-btn:hover{border-color:#0f766e;color:#0f766e}
.hc-basis-btn.on{border-color:#0f766e;background:#eef8f6;color:#0f766e;font-weight:600}
.hc-like-grid{flex:1;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hc-like-grid a{display:flex;gap:8px;align-items:center;min-width:0;padding:3px 5px;border-radius:7px;color:#2b2622;text-decoration:none!important}
.hc-like-grid a:hover{background:#f6efe4}
.hc-like-grid img{flex:none;width:34px;height:46px;border-radius:4px;object-fit:cover;background:#f1ede8;box-shadow:0 1px 3px rgba(60,40,20,.14)}
.hc-like-grid .hc-li{min-width:0}
.hc-like-grid b{display:block;font-size:12.5px;font-weight:600;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-like-grid a:hover b{color:#0f766e}
.hc-like-grid .hc-li span{display:block;font-size:11px;color:#8a837a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-swap{flex:none;padding:4px 10px;border-radius:999px;border:1px solid #e3dccf;background:#fff;color:#52483e;font-family:inherit;font-size:11.5px;cursor:pointer;white-space:nowrap}
.hc-swap:hover{border-color:#0f766e;color:#0f766e}

/* 关闭按钮与弹窗 */
.hc-x{position:absolute;right:10px;top:9px;width:24px;height:24px;padding:0;border:0;border-radius:12px;background:none;color:#a59a88;font-size:18px;line-height:24px;cursor:pointer}
.hc-x:hover{background:#f3ece2;color:#6b6560}
.hc-dlg,.mh-dlg{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.38)}
.hc-dlg-in{width:290px;padding:18px 18px 14px;border-radius:12px;background:#fffdf9;box-shadow:0 10px 30px rgba(0,0,0,.22);display:flex;flex-direction:column;gap:8px;font-size:14px;color:#2b2622}
.hc-dlg-in b{margin-bottom:4px;font-size:15px}
.hc-dlg-in button{height:36px;border:1px solid #e3dccf;border-radius:8px;background:#fff;color:#3b3226;font-family:inherit;font-size:14px;cursor:pointer}
.hc-dlg-in button:hover{border-color:#c8673a;color:#a9552d}
.hc-dlg-in .hc-dlg-no{border:0;background:none;color:#8a837a}
.hc-dlg-in small{font-size:12px;color:#a59a88;text-align:center}

/* 全部阅读记录弹窗 */
.hc-hist-dlg{width:460px;max-width:calc(100vw - 28px);max-height:76vh;padding:16px 18px}
.hc-hist-hd{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid #eadfcd}
.hc-hist-hd b{margin:0;font-size:15px}
.hc-hist-close{width:28px!important;height:28px!important;border:0!important;background:none!important;font-size:20px!important;line-height:26px!important;color:#8a837a!important;padding:0}
.hc-hist-list{overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px}
.hc-hist-row{display:flex;align-items:center;gap:10px;padding:7px 9px;border:1px solid #efe7dc;border-radius:8px;background:#fff}
.hc-hist-row img{flex:none;width:30px;height:40px;border-radius:4px;object-fit:cover;background:#f1ede8}
.hc-hist-info{flex:1;min-width:0}
.hc-hist-info a{color:#2b2622;text-decoration:none}
.hc-hist-info b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.hc-hist-info span{display:block;font-size:11.5px;color:#8a837a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-hist-del{width:24px!important;height:24px!important;border:0!important;background:none!important;color:#a59a88!important;font-size:16px!important;padding:0}

/* ================= 2A：最新上传 ================= */
.latest-upload-expand h3.latest{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.lu-title-l{display:inline-flex;align-items:center;gap:8px}
.lu-today-badge{padding:0;border-radius:0;background:none;border:0;color:#0f766e;font-size:12px;font-weight:600;line-height:1.4}

.lu-bar{display:flex;align-items:center;padding:0 16px;border-bottom:1px solid #eadfcd;background:#fffdf9;min-width:0;max-width:100%}
.lu-tabs{display:flex;align-items:center;gap:14px;overflow-x:auto;scrollbar-width:none;width:100%;min-width:0;max-width:100%}
.lu-tabs::-webkit-scrollbar{display:none}
.lu-tab{position:relative;flex:none;border:0;background:none;padding:8px 2px 10px;font-family:inherit;font-size:13px;font-weight:500;color:#8a837a;cursor:pointer;white-space:nowrap}
.lu-tab:hover{color:#2b2622}
.lu-tab.on{color:#0f766e;font-weight:700}
.lu-tab.on::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:#0f766e}
.lu-tab.ld{opacity:.5}
.lu-vsep{flex:none;width:1px;height:14px;background:#dfd5c3;margin:0 2px;align-self:center}

/* 列表行辅助信息与分色标签 */
.lu-today{color:#0f766e!important;font-weight:600}

.lines-books .cat.lu-c-blue{background:#f3f5f8;border-color:#e2e7ef;color:#64748b}
.lines-books .cat.lu-c-coral{background:#f8f3ef;border-color:#eaded5;color:#8d6e5d}
.lines-books .cat.lu-c-violet{background:#f5f3f8;border-color:#e5dff0;color:#7c6d8e}
.lines-books .cat.lu-c-rose{background:#f8f2f5;border-color:#ebd9e2;color:#8e677a}
.lines-books .cat.lu-c-teal{background:#f1f6f5;border-color:#dbe8e5;color:#5b7d78}
.lines-books .cat.lu-c-amber{background:#f7f4ec;border-color:#e8e0cf;color:#847458}

.latest-upload-expand .latest-upload-more-wrap{gap:10px;flex-wrap:wrap}
.lu-collapse{display:inline-flex;align-items:center;height:32px;padding:0 16px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#555;font-family:inherit;font-size:13px;cursor:pointer}
.lu-collapse:hover{border-color:#0f766e;color:#0f766e}

/* 桌面端悬停轻预览卡 */
.lu-hover-pop{position:fixed;z-index:9990;width:320px;padding:10px 12px;border-radius:10px;background:#fffdf9;border:1px solid #bfe3dc;box-shadow:0 12px 30px rgba(45,32,16,.16);pointer-events:none}
.lu-hp-in{display:flex;gap:10px}
.lu-hp-in img{flex:none;width:46px;height:62px;border-radius:4px;object-fit:cover;background:#f1ede8;box-shadow:0 2px 6px rgba(40,26,12,.15)}
.lu-hp-info{flex:1;min-width:0}
.lu-hp-info b{display:block;font-size:13px;color:#2b2622;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lu-hp-meta{font-size:11.5px;color:#8a837a;margin:2px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lu-hp-tags{display:flex;gap:4px;margin-bottom:4px}
.lu-hp-tags span{font-size:10.5px;padding:0 6px;border-radius:4px;background:#f6efe4;color:#9a6a26}
.lu-hp-info p{margin:0;font-size:11.5px;line-height:1.45;color:#52483e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ================= 编辑推荐 / 版主推荐分类筛选 / 书友动态 ================= */
.hw-panel>h3{display:flex;align-items:center;column-gap:6px;row-gap:10px;flex-wrap:wrap;padding-left:10px;min-width:0;max-width:100%}
.hw-panel>h3::before{position:static;transform:none;flex:none}
.hw-panel>h3 small.hm-sub{margin-left:auto}
.hw-tabs{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;max-width:100%;margin-left:4px}
.hw-tab{height:26px;padding:0 11px;border-radius:999px;border:1px solid #e3dccf;background:#fff;color:#52483e;font-family:inherit;font-size:12.5px;font-weight:500;cursor:pointer;white-space:nowrap}
.hw-tab:hover{border-color:#0f766e;color:#0f766e}
.hw-tab.on{border-color:#0f6b5c;background:#0f6b5c;color:#fff;font-weight:600}
.hw-tab.ld{opacity:.5}
.hw-empty{grid-column:1/-1;text-align:center;color:#9a948e;font-size:13px;padding:18px 0}
.hw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;align-items:start}
.hw-card{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:repeat(4,auto);align-content:start;column-gap:12px;align-items:start;min-width:0;max-width:100%;color:#2b2622;text-decoration:none!important}
.hw-cv{grid-row:1/5;position:relative;width:64px;height:86px;border-radius:5px;overflow:hidden;background:#f1ede8;box-shadow:0 1px 4px rgba(60,40,20,.15)}
.hw-cv img{width:100%;height:100%;object-fit:cover;display:block}
.hw-cv em{position:absolute;left:3px;top:3px;padding:0 4px;border-radius:4px;background:#c8673a;color:#fff;font-style:normal;font-size:10px;line-height:15px}
.hw-card b{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px}
.hw-card:hover b{color:#b8742a}
.hw-au{display:block;font-size:12px;color:#8a837a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hw-tags{display:flex;flex-wrap:nowrap;gap:4px;margin-top:3px;overflow:hidden;height:17px}
.hw-tags span{flex:none;padding:0 6px;border-radius:8px;background:#f6efe4;color:#9a6a26;font-size:11px;line-height:17px}
.hw-card p{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin:3px 0 0;font-size:12px;line-height:1.6;color:#6b6560}
.hh-n{font-size:12px;color:#c0442b;white-space:nowrap}
.hf-list{margin:0;padding:0;list-style:none}
.hf-list li{display:flex;align-items:flex-start;gap:8px;padding:7px 0;border-top:1px dashed #eadfcd;font-size:13px;line-height:1.55}
.hf-list li:first-child{border-top:0}
.hf-list i{flex:none;width:20px;height:20px;margin-top:1px;border-radius:5px;color:#fff;font-style:normal;font-size:11px;line-height:20px;text-align:center}
.hf-q{background:#cf8a3a}.hf-f{background:#0f8a5f}.hf-r{background:#5d7fb8}.hf-a{background:#9a6ac2}
.hf-list a{flex:1;min-width:0;color:#3b3226;text-decoration:none;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hf-list a:hover{color:#b8742a}
.hf-list b{font-weight:600}
.hf-list em{font-style:normal;color:#c0442b;font-size:12px}
.hf-list small{flex:none;font-size:11px;color:#a59a88}

/* ================= 夜间模式 ================= */
html[data-theme="dark"] .hc-top-l b,
html[data-theme="dark"] .hc-name{color:#e2e5e9}
html[data-theme="dark"] .hc-top-l svg{color:#4fd1b5}
html[data-theme="dark"] .hc-top-l span,
html[data-theme="dark"] .hc-chap,
html[data-theme="dark"] .hc-prog-txt,
html[data-theme="dark"] .hc-detail,
html[data-theme="dark"] .hc-all-btn,
html[data-theme="dark"] .hc-like h4,
html[data-theme="dark"] .hc-like-grid .hc-li span{color:#9ca3af}
html[data-theme="dark"] .hc-all-btn:hover{color:#4fd1b5;background:rgba(79,209,181,.12)}
html[data-theme="dark"] .hc-item{border-color:#33383f;background:#23272c;color:#d4d2cc}
html[data-theme="dark"] .hc-item:hover{border-color:rgba(79,209,181,.36)}
html[data-theme="dark"] .hc-prog-bar{background:#343a42}
html[data-theme="dark"] .hc-prog-bar i{background:#4fd1b5}
html[data-theme="dark"] .hc-go{background:#a9552d}
html[data-theme="dark"] .hc-like{border-top-color:#33383f}
html[data-theme="dark"] .hc-basis-btn,
html[data-theme="dark"] .hc-swap{background:#23272c;border-color:#3a3f46;color:#c2c8d0}
html[data-theme="dark"] .hc-basis-btn.on{border-color:rgba(79,209,181,.4);background:rgba(47,143,126,.18);color:#4fd1b5}
html[data-theme="dark"] .hc-like-grid a{color:#d4d2cc}
html[data-theme="dark"] .hc-like-grid a:hover{background:#2a2d33}
html[data-theme="dark"] .hc-like-grid img,
html[data-theme="dark"] .hc-cv,
html[data-theme="dark"] .hw-cv{background:#2a2d33;box-shadow:none}
html[data-theme="dark"] .hc-x:hover{background:#2a2d33;color:#d4d2cc}
html[data-theme="dark"] .hc-dlg-in,
html[data-theme="dark"] .hc-hist-row{background:#23272c;border-color:#33383f;color:#d4d2cc}
html[data-theme="dark"] .hc-dlg-in button{background:#2a2d33;border-color:#3a3f46;color:#d4d2cc}
html[data-theme="dark"] .hc-hist-info a{color:#e2e5e9}

html[data-theme="dark"] .lu-today-badge{background:none;border:0;color:#4fd1b5}
html[data-theme="dark"] .lu-bar{background:#1f2226;border-bottom-color:#2f353b}
html[data-theme="dark"] .lu-tab{color:#9ca3af}
html[data-theme="dark"] .lu-tab:hover{color:#e2e5e9}
html[data-theme="dark"] .lu-tab.on{color:#4fd1b5}
html[data-theme="dark"] .lu-tab.on::after{background:#4fd1b5}
html[data-theme="dark"] .lu-vsep{background:#3a4149}
html[data-theme="dark"] .lu-today{color:#4fd1b5!important}
html[data-theme="dark"] .lines-books .cat.lu-c-blue{background:rgba(59,130,246,.09);border-color:rgba(59,130,246,.18);color:#8d9cb0}
html[data-theme="dark"] .lines-books .cat.lu-c-coral{background:rgba(234,88,12,.09);border-color:rgba(234,88,12,.18);color:#b3927e}
html[data-theme="dark"] .lines-books .cat.lu-c-violet{background:rgba(168,85,247,.09);border-color:rgba(168,85,247,.18);color:#a194b8}
html[data-theme="dark"] .lines-books .cat.lu-c-rose{background:rgba(236,72,153,.09);border-color:rgba(236,72,153,.18);color:#b38d9f}
html[data-theme="dark"] .lines-books .cat.lu-c-teal{background:rgba(45,212,191,.09);border-color:rgba(45,212,191,.18);color:#7ea8a2}
html[data-theme="dark"] .lines-books .cat.lu-c-amber{background:rgba(245,158,11,.09);border-color:rgba(245,158,11,.18);color:#aa9a7b}
html[data-theme="dark"] .lu-collapse{background:#23272c;border-color:#3a3f46;color:#b5b3ad}
html[data-theme="dark"] .lu-hover-pop{background:#23272c;border-color:rgba(79,209,181,.35);box-shadow:0 12px 30px rgba(0,0,0,.5)}
html[data-theme="dark"] .lu-hp-info b{color:#e2e5e9}
html[data-theme="dark"] .lu-hp-meta{color:#9ca3af}
html[data-theme="dark"] .lu-hp-tags span{background:#3a2f1d;color:#e2b866}
html[data-theme="dark"] .lu-hp-info p{color:#c2c8d0}

html[data-theme="dark"] .hw-tab{background:#23272c;border-color:#3a3f46;color:#c2c8d0}
html[data-theme="dark"] .hw-tab:hover{border-color:#4fd1b5;color:#4fd1b5}
html[data-theme="dark"] .hw-tab.on{border-color:#2f8f7e;background:#2f8f7e;color:#fff}
html[data-theme="dark"] .hw-au{color:#a8a6a0}
html[data-theme="dark"] .hw-card{color:#d4d2cc}
html[data-theme="dark"] .hw-tags span{background:#3a2f1d;color:#e2b866}
html[data-theme="dark"] .hw-card p{color:#9d9a94}
html[data-theme="dark"] .hh-n,html[data-theme="dark"] .hf-list em{color:#e8907a}
html[data-theme="dark"] .hf-list li{border-top-color:#33383f}
html[data-theme="dark"] .hf-list a{color:#d4d2cc}
html[data-theme="dark"] .hf-list small{color:#8a877f}

/* ================= 窄屏适配 ================= */
@media (max-width:900px){
  .hc-list{grid-template-columns:minmax(0,1fr)}
  .hc-like{display:block}
  .hc-like h4{margin-bottom:8px}
  .hc-like-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
  .hc-like-grid{grid-template-columns:minmax(0,1fr)}
  .hw-grid{grid-template-columns:minmax(0,1fr)}
  .hw-tabs{width:100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%;margin-left:0}
  .hw-tabs::-webkit-scrollbar{display:none}
  .lu-bar{padding:0 12px}
  .lu-tabs{gap:12px;min-width:0;max-width:100%}
}
