* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #f4f4f4; color: #333; font: 14px/1.8 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
a { color: #333; text-decoration: none; }
a:hover { color: #c00; text-decoration: underline; }
img { display: block; max-width: 100%; }
.story-grid, .img-main, .cellmod, .hot-line, .row { max-width: 980px; margin: 0 auto; }

.cat-unit { height: 30px; background: #f7f7f7; border-bottom: 1px solid #ddd; color: #777; font-size: 12px; }
.img-main { display: flex; gap: 24px; align-items: center; height: 30px; }
.sec-cover { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.sec-cover:hover { color: #0871bd; text-decoration: underline; }
.text { background: #2f8ed8; }
.cellmod { height: 76px; display: flex; align-items: center; gap: 28px; }
.tag-text { width: 170px; font-size: 34px; line-height: 1; font-weight: 700; }
.tag-text a { color: #fff; letter-spacing: 0; }
.tag-text a:hover { color: inherit; text-decoration: none; }
.rowline { flex: 1; display: flex; max-width: 470px; }
.panelmeta { flex: 1; height: 38px; padding: 0 12px; border: 0; outline: 0; font-size: 14px; }
.title-mod { width: 78px; height: 38px; border: 0; background: #f5a623; color: #fff; font-size: 15px; cursor: pointer; }
.hot-col { margin-left: auto; display: flex; gap: 10px; }
.hot-col a { color: #fff; padding: 5px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 2px; }

.hot-line { display: flex; height: 42px; background: #287dc2; overflow: hidden; }
.hot-line a { color: #fff; line-height: 42px; padding: 0 13px; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.12); }
.hot-line a:hover { background: #1d6fb0; text-decoration: none; color: #fff; }
.row { display: none; }
.rowpanel { padding: 12px 0 20px; }

.hdmeta { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 12px; }
.areacon, .link-cell, .hd-col, .foot, .link-main, .img-name, .authorblock { background: #fff; border: 1px solid #ddd; }
.areacon { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; gap: 12px; }
.page-wrap { display: flex; min-height: 132px; overflow: hidden; }
.page-wrap .cha { width: 88px; flex: 0 0 88px; margin-right: 12px; }
.page-wrap .cha img { width: 88px; height: 120px; object-fit: cover; border: 1px solid #ddd; }
.page-wrap dt { height: 28px; line-height: 28px; overflow: hidden; font-weight: 700; }
.page-wrap dt span { float: right; max-width: 72px; color: #888; font-size: 12px; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.page-wrap dd { color: #555; height: 88px; overflow: hidden; font-size: 13px; }
.page-wrap dd a { color: #555; }
.unit-wrap, .hd-col h2, .link-main h2, .img-name h2 { height: 38px; line-height: 38px; padding: 0 12px; border-bottom: 1px solid #ddd; background: #f9f9f9; color: #287dc2; font-size: 16px; }
.cover-list, .top-img, .rank-cell, .time-inner, .area { list-style: none; }
.cover-list li, .rank-cell li, .area li { display: flex; height: 35px; line-height: 35px; padding: 0 12px; border-bottom: 1px dashed #e5e5e5; overflow: hidden; }
.cell-cover, .panel-cover { width: 86px; color: #888; flex: 0 0 86px; }
.page-area, .cate-grid { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.col-info { width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.panellink, .wen-col { width: 88px; color: #777; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vol { width: 70px; color: #888; text-align: right; }

.name-area { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.newbox { display: flex; padding: 12px; border-bottom: 1px dashed #ddd; }
.newbox .cha { width: 76px; flex: 0 0 76px; margin-right: 12px; }
.newbox .cha img { width: 76px; height: 104px; object-fit: cover; border: 1px solid #ddd; }
.newbox dt { font-weight: 700; height: 28px; line-height: 28px; overflow: hidden; }
.newbox dd { height: 72px; overflow: hidden; color: #555; font-size: 13px; }
.newbox dd a { color: #555; }
.top-img { padding: 7px 12px; columns: 2; }
.top-img li { height: 28px; line-height: 28px; overflow: hidden; break-inside: avoid; }

.foot { display: flex; padding: 18px; margin-bottom: 12px; }
.foot .unit-hd { width: 150px; flex: 0 0 150px; margin-right: 22px; }
.foot .unit-hd img { width: 150px; height: 200px; object-fit: cover; border: 1px solid #ccc; padding: 2px; background: #fff; }
.cover-wrap h1 { height: 44px; line-height: 44px; font-size: 28px; font-weight: 500; border-bottom: 1px dashed #ddd; margin-bottom: 8px; }
.cover-wrap p { height: 30px; line-height: 30px; color: #555; }
.hd-block { margin-top: 18px; display: flex; gap: 12px; }
.datebd { display: inline-block; min-width: 110px; height: 36px; line-height: 36px; text-align: center; background: #287dc2; color: #fff; border-radius: 2px; }
.datebd.img-col { background: #f5a623; }
.datebd:hover { color: #fff; text-decoration: none; opacity: .9; }
.link-main { margin-bottom: 12px; }
.link-main p { padding: 14px 16px; color: #555; text-indent: 2em; }
.time-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 12px; }
.time-inner li { height: 34px; line-height: 34px; border-bottom: 1px dashed #e5e5e5; overflow: hidden; padding-right: 18px; white-space: nowrap; text-overflow: ellipsis; }
.authorblock h1 { height: 42px; line-height: 42px; padding: 0 12px; font-size: 18px; color: #287dc2; border-bottom: 1px solid #ddd; background: #f9f9f9; }

.author-cell { background: #f6f1e7; border: 1px solid #d8cfbd; padding: 0 24px 26px; }
.new-link { height: 38px; line-height: 38px; color: #777; border-bottom: 1px solid #e4dccd; font-size: 13px; }
.cont-block { text-align: center; padding: 20px 0 10px; border-bottom: 1px dashed #d8cfbd; }
.cont-block h1 { font-size: 26px; font-weight: 500; color: #222; }
.cont-block p { color: #777; margin-top: 6px; }
.infoline { padding: 20px 8px; color: #222; font: 20px/2 "Microsoft YaHei", "PingFang SC", serif; }
.newinner { display: none; margin: 0 0 16px; padding: 2px 0 10px; border-bottom: 1px dashed #d8cfbd; color: #222; font-size: 22px; font-weight: 700; line-height: 1.45; text-align: center; text-indent: 0; }
.infoline p { text-indent: 2em; margin-bottom: 14px; text-align: justify; }
.story-name { display: flex; justify-content: center; gap: 12px; padding: 18px 0 0; border-top: 1px dashed #d8cfbd; }
.story-name.list-hd { padding: 14px 0; border-top: 0; border-bottom: 1px dashed #d8cfbd; }
.author-cell .story-name.home { margin-bottom: 18px; }
.story-name a, .story-name span { min-width: 110px; height: 34px; line-height: 34px; text-align: center; background: #fff; border: 1px solid #d8cfbd; color: #555; }
.story-name a:hover { background: #287dc2; color: #fff; text-decoration: none; border-color: #287dc2; }

.pic-main { background: #fff; border: 1px solid #ddd; padding: 20px; }
.cat-mod { border-top: 1px solid #ddd; background: #f7f7f7; color: #888; text-align: center; padding: 20px 0; font-size: 12px; }

@media (max-width: 768px) {
    .story-grid, .img-main, .cellmod, .hot-line, .row { width: 100%; max-width: none; }
    .cat-unit { display: none; }
    .text { padding: 10px; }
    .cellmod { height: auto; display: block; }
    .tag-text { width: auto; margin-bottom: 10px; font-size: 28px; text-align: center; }
    .rowline { max-width: none; }
    .hot-col { display: none; }
    .hot-line { display: none; }
    .row { display: flex; overflow-x: auto; background: #287dc2; }
    .row a { color: #fff; line-height: 38px; padding: 0 14px; white-space: nowrap; }
    .rowpanel { padding: 8px; }
    .hdmeta, .name-area { display: block; }
    .areacon { grid-template-columns: 1fr; margin-bottom: 10px; }
    .link-cell, .hd-col { margin-bottom: 10px; }
    .cell-cover, .col-info, .panellink, .panel-cover, .wen-col, .vol { display: none; }
    .top-img { columns: 1; }
    .foot { display: block; text-align: center; }
    .foot .unit-hd { margin: 0 auto 12px; }
    .cover-wrap h1 { height: auto; line-height: 1.4; font-size: 24px; }
    .hd-block { justify-content: center; }
    .time-inner { grid-template-columns: 1fr; }
    .author-cell { padding: 0 12px 18px; }
    .cont-block h1 { font-size: 22px; }
    .infoline { font-size: 18px; line-height: 1.95; padding: 14px 0; }
    .newinner { display: block; font-size: 18px; margin-bottom: 12px; padding-bottom: 8px; line-height: 1.45; }
    .story-name { gap: 8px; }
    .story-name a, .story-name span { min-width: 0; flex: 1; }
}

.new-img { background: #fff; border: 1px solid #ddd; padding: 14px; }
.new-img h1 { height: 38px; line-height: 38px; font-size: 18px; color: #287dc2; border-bottom: 1px solid #ddd; margin-bottom: 14px; }
.cha-ft { display: flex; max-width: 560px; margin-bottom: 12px; }
.cha-ft input { flex: 1; height: 36px; padding: 0 10px; border: 1px solid #ccc; border-right: 0; outline: 0; }
.cha-ft button { width: 76px; border: 0; background: #287dc2; color: #fff; cursor: pointer; }
.mod-row { color: #777; padding: 8px 0 12px; }
.infocol { list-style: none; }
.infocol li { display: flex; padding: 12px 0; border-top: 1px dashed #e5e5e5; }
.infocol li[hidden] { display: none !important; }
.infocol li.ft-sec { display: block; color: #888; }
.block { width: 72px; flex: 0 0 72px; margin-right: 12px; }
.block img { width: 72px; height: 96px; object-fit: cover; border: 1px solid #ddd; }
.areaft h2 { font-size: 16px; height: 28px; line-height: 28px; overflow: hidden; }
.areaft .head-img { color: #888; font-size: 13px; margin-bottom: 4px; }
.areaft .grid-con { color: #555; height: 48px; overflow: hidden; line-height: 1.7; }
@media (max-width: 768px) {
    .new-img { padding: 10px; }
    .cha-ft { max-width: none; }
}

/* Screenshot-style desktop home layout */
body { background: #e6f8fb; color: #555; font-size: 14px; }
a { color: #4d6da8; }
.story-grid, .img-main, .cellmod, .hot-line, .row { max-width: 1160px; }
.cat-unit { background: #d9eef3; border-bottom: 1px solid #b8dce7; }
.img-main { color: #6d8f9e; }
.text { background: #e6f8fb; }
.cellmod { height: 82px; gap: 24px; }
.tag-text { width: 150px; font-size: 36px; font-family: Georgia, "Microsoft YaHei", serif; text-shadow: 2px 2px 0 #c3e3f1; }
.tag-text a { color: #0871bd; }
.rowline { max-width: 480px; margin-left: auto; }
.panelmeta { height: 36px; border: 1px solid #9bc7df; background: #fff; }
.title-mod { height: 36px; background: #ddd; color: #222; }
.hot-col { display: none; }
.hot-line { height: 44px; background: #79c2e3; padding: 0 10px; }
.hot-line a { line-height: 44px; padding: 0 11px; border-right: 0; color: #fff; font-weight: 700; }
.hot-line a:hover { background: #5eb1d8; }
.rowpanel { padding: 12px 0 24px; }

.sec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; padding: 14px; margin-bottom: 22px; border: 3px solid #b9dff1; background: #fffdf6; }
.col-name { display: grid; grid-template-columns: 126px 1fr; gap: 12px; min-height: 176px; }
.list-item img { width: 126px; height: 170px; object-fit: cover; border: 1px solid #abc6d4; padding: 3px; background: #fff; }
.top-inner h2 { height: 28px; line-height: 28px; font-size: 15px; border-bottom: 1px dotted #c7d8e3; overflow: hidden; }
.top-inner h2 a { color: #5b6fad; font-weight: 700; }
.top-inner h2 span { float: right; color: #aaa; font-weight: 400; }
.top-inner p { padding-top: 8px; color: #555; line-height: 1.85; height: 132px; overflow: hidden; text-indent: 2em; }
.cont-main { display: grid; grid-template-columns: 1fr 335px; gap: 14px; align-items: start; }
.hot-box, .shumain { border: 3px solid #86c9e8; background: #eef6f6; }
.hot-box h2, .shumain h2 { height: 36px; line-height: 36px; padding: 0 12px; background: #9bd3e9; color: #456; font-size: 16px; }
.ft-panel, .sitesec { list-style: none; padding: 8px 12px; }
.ft-panel li { display: grid; grid-template-columns: 95px 190px 1fr 90px 50px; gap: 8px; height: 32px; line-height: 32px; border-bottom: 1px solid #d8e2e4; overflow: hidden; }
.ft-panel .cate-item { color: #555; }
.ft-panel .cell, .ft-panel .modgrid, .ft-panel .menu { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ft-panel .menu, .ft-panel .box { color: #aaa; text-align: right; }
.sitesec li { display: grid; grid-template-columns: 78px 1fr 58px; gap: 6px; height: 31px; line-height: 31px; border-bottom: 1px solid #d8e2e4; overflow: hidden; }
.sitesec span { color: #555; }
.sitesec a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sitesec em { color: #666; font-style: normal; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.block-info { display: grid; grid-template-columns: 190px 1fr 190px; gap: 18px; padding: 14px 12px; }
.block-info a, .block-info select { height: 40px; border: 0; background: #4eadd0; color: #fff; text-align: center; border-radius: 3px; font-weight: 700; }
.block-info a { line-height: 40px; }
.block-info select { background: #fff; color: #222; border: 1px solid #d8e2e4; padding: 0 12px; }
.cat-mod { background: #e6f8fb; border-top: 2px solid #72c4e8; color: #555; }

/* Desktop vs mobile are intentionally different. */
@media (max-width: 768px) {
    body { background: #e6f8fb; font-size: 14px; }
    .story-grid, .img-main, .cellmod, .hot-line, .row { width: 100%; max-width: none; }
    .cat-unit { display: none; }
    .text { padding: 10px; background: #dff5fb; }
    .cellmod { display: block; height: auto; }
    .tag-text { width: auto; font-size: 30px; text-align: left; margin: 0 0 10px; padding-right: 58px; }
    .rowline { max-width: none; display: flex; margin-left: 0; }
    .panelmeta { height: 38px; font-size: 14px; }
    .title-mod { width: 72px; height: 38px; }
    .hot-line { display: none; }
    .row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: hidden; height: 40px; background: #79c2e3; padding: 0; }
    .row a { min-width: 0; color: #fff; line-height: 40px; padding: 0 2px; text-align: center; font-weight: 700; white-space: nowrap; }
    .cellmod .row { margin-bottom: 8px; }
    .rowpanel { padding: 8px; }
    .sec { display: block; padding: 8px; margin-bottom: 10px; border-width: 2px; }
    .col-name { display: grid; grid-template-columns: 82px 1fr; gap: 10px; min-height: 116px; padding: 8px 0; border-bottom: 1px solid #d8e2e4; }
    .col-name:last-child { border-bottom: 0; }
    .list-item img { width: 82px; height: 110px; padding: 2px; }
    .top-inner h2 { height: 24px; line-height: 24px; font-size: 15px; }
    .top-inner h2 span { display: none; }
    .top-inner p { height: 78px; line-height: 1.7; padding-top: 5px; text-indent: 0; }
    .cont-main { display: block; }
    .bd { display: flex; flex-direction: column; }
    .bd .shumain { order: 1; }
    .bd .hot-box { order: 2; }
    .hot-box, .shumain { border-width: 2px; margin-bottom: 10px; }
    .hot-box h2, .shumain h2 { height: 34px; line-height: 34px; font-size: 15px; }
    .ft-panel, .sitesec { padding: 4px 8px; }
    .ft-panel li { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; height: 34px; min-height: 34px; line-height: 34px; padding: 0; }
    .ft-panel .menu, .ft-panel .box { display: none; }
    .ft-panel .cate-item { display: block; width: auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #555; }
    .ft-panel .cell { font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .ft-panel .modgrid { color: #777; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .sitesec li { grid-template-columns: minmax(0, 1fr) 88px; height: 34px; line-height: 34px; }
    .sitesec span { display: none; }
    .block-info { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 8px; }
    .block-info select { grid-column: 1 / -1; order: -1; }
    .cat-mod { padding: 14px 8px; line-height: 1.7; }
}

.meta-ft { border: 3px solid #b9dff1; background: #fffdf6; }
.meta-ft h1 { height: 38px; line-height: 38px; padding: 0 12px; background: #dcecef; color: #444; font-size: 15px; }
.barinfo { overflow-x: auto; }
.menuunit { width: 100%; border-collapse: collapse; table-layout: fixed; }
.menuunit th, .menuunit td { height: 45px; padding: 0 12px; border-bottom: 1px solid #ddd7ca; text-align: left; color: #4d6da8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menuunit th { color: #444; background: #fffaf0; font-weight: 700; }
.menuunit th:nth-child(1), .menuunit td:nth-child(1) { width: 58px; }
.menuunit th:nth-child(2), .menuunit td:nth-child(2) { width: 220px; }
.menuunit th:nth-child(4), .menuunit td:nth-child(4) { width: 140px; }
.menuunit th:nth-child(5), .menuunit td:nth-child(5) { width: 110px; }
.menuunit th:nth-child(6), .menuunit td:nth-child(6) { width: 80px; color: red; }
.menuunit .ft-sec { text-align: center; color: #888; }
.coveritem { border: 0; background: transparent; color: red; cursor: pointer; }
@media (max-width: 768px) {
    .meta-ft { border-width: 2px; }
    .meta-ft h1 { height: auto; line-height: 1.5; padding: 8px; font-size: 14px; }
    .barinfo { overflow-x: hidden; }
    .menuunit { min-width: 0; table-layout: fixed; }
    .menuunit th, .menuunit td { height: 40px; padding: 0 8px; }
    .menuunit th:nth-child(1),
    .menuunit td:nth-child(1),
    .menuunit th:nth-child(4),
    .menuunit td:nth-child(4),
    .menuunit th:nth-child(5),
    .menuunit td:nth-child(5) { display: none; }
    .menuunit th:nth-child(2),
    .menuunit td:nth-child(2) { width: 34%; }
    .menuunit th:nth-child(3),
    .menuunit td:nth-child(3) { width: 49%; }
    .menuunit th:nth-child(6),
    .menuunit td:nth-child(6) { width: 17%; text-align: center; }
}

/* Desktop home v2: hero + classic sidebar + 3x2 category matrix */
.card-bar { display: grid; grid-template-columns: 1fr 340px; gap: 0; border: 3px solid #b9dff1; background: #fffdf6; margin-bottom: 16px; }
.update-name { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; padding: 12px; }
.cat-con { display: grid; grid-template-columns: 142px 1fr; gap: 14px; min-height: 178px; }
.row-hd img { width: 142px; height: 170px; object-fit: cover; border: 1px solid #abc6d4; padding: 3px; background: #fff; }
.metacol h2 { height: 30px; line-height: 30px; font-size: 15px; border-bottom: 1px dotted #c7d8e3; overflow: hidden; }
.metacol h2 a { color: #5b6fad; font-weight: 700; }
.metacol h2 span { float: right; max-width: 78px; color: #aaa; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.metacol p { padding-top: 8px; color: #555; line-height: 1.85; height: 132px; overflow: hidden; text-indent: 2em; }
.vol-unit { border-left: 3px solid #b9dff1; background: #eef6f6; }
.vol-unit h2 { height: 39px; line-height: 39px; padding: 0 12px; background: #dcecef; color: #444; font-size: 16px; }
.vol-unit ul { list-style: none; padding: 7px 12px; }
.vol-unit li { display: grid; grid-template-columns: 78px 1fr 58px; gap: 6px; height: 31px; line-height: 31px; border-bottom: 1px solid #d8e2e4; overflow: hidden; }
.vol-unit span { color: #555; }
.vol-unit a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vol-unit em { font-style: normal; color: #666; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tool { display: grid; grid-template-columns: repeat(3, 1fr); border: 3px solid #86c9e8; background: #fffdf6; }
.mod { min-height: 318px; padding: 0 12px 9px; border-right: 1px dotted #9fc9db; border-bottom: 1px solid #b9dff1; overflow: hidden; }
.mod:nth-child(3n) { border-right: 0; }
.mod h2 { height: 34px; line-height: 34px; color: #444; font-size: 16px; border-bottom: 1px solid #c7d8e3; }
.date-cover { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 12px 0 8px; }
.title-row img { width: 82px; height: 104px; object-fit: cover; border: 1px solid #abc6d4; padding: 2px; background: #fff; }
.date-cover h3 { height: 24px; line-height: 24px; font-size: 14px; overflow: hidden; }
.date-cover h3 a { color: #4d6da8; }
.date-cover p { height: 76px; overflow: hidden; line-height: 1.7; color: #555; }
.col-bd { list-style: none; }
.col-bd li { height: 26px; line-height: 26px; border-bottom: 1px solid #d8e2e4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 768px) {
    .card-bar { display: block; border-width: 2px; margin-bottom: 10px; }
    .update-name { display: block; padding: 8px; }
    .cat-con { grid-template-columns: 82px 1fr; gap: 10px; min-height: 116px; padding: 8px 0; border-bottom: 1px solid #d8e2e4; }
    .cat-con:last-child { border-bottom: 0; }
    .row-hd img { width: 82px; height: 110px; padding: 2px; }
    .metacol h2 { height: 24px; line-height: 24px; font-size: 15px; }
    .metacol h2 span { display: block; float: right; max-width: 82px; margin-right: 2px; color: #999; font-size: 13px; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .metacol p { height: 78px; line-height: 1.7; padding-top: 5px; text-indent: 0; }
    .vol-unit { border-left: 0; border-top: 2px solid #b9dff1; }
    .vol-unit ul { padding-right: 12px; }
    .vol-unit li { grid-template-columns: minmax(0, 1fr) 82px; }
    .vol-unit span { display: none; }
    .tool { display: block; border-width: 2px; }
    .mod { min-height: 0; border-right: 0; padding-bottom: 6px; }
    .mod:nth-child(n+4) { display: none; }
    .date-cover { grid-template-columns: 72px 1fr; gap: 10px; }
    .title-row img { width: 72px; height: 94px; }
    .col-bd li { height: 30px; line-height: 30px; }
}

.info-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; padding: 12px; border: 3px solid #b9dff1; background: #fffdf6; }
.card-sec { display: grid; grid-template-columns: 126px 1fr; gap: 14px; min-height: 178px; padding-bottom: 12px; margin-bottom: 12px; overflow: hidden; }
.imgpanel img { width: 126px; height: 170px; object-fit: cover; border: 1px solid #abc6d4; padding: 3px; background: #fff; }
.num-row h2 { height: 30px; line-height: 30px; font-size: 15px; border-bottom: 1px dotted #c7d8e3; overflow: hidden; }
.num-row h2 a { color: #5b6fad; font-weight: 700; }
.num-row h2 span { float: right; max-width: 82px; color: #aaa; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.num-row p { padding-top: 8px; color: #555; line-height: 1.85; height: 132px; overflow: hidden; text-indent: 2em; }
@media (max-width: 768px) {
    .info-line { display: block; padding: 8px; border-width: 2px; }
    .card-sec { grid-template-columns: 82px 1fr; gap: 10px; min-height: 116px; padding: 8px 0; margin: 0; border-bottom: 1px solid #d8e2e4; }
    .imgpanel img { width: 82px; height: 110px; padding: 2px; }
    .num-row h2 { height: 24px; line-height: 24px; font-size: 15px; }
    .num-row h2 span { display: none; }
    .num-row p { height: 78px; line-height: 1.7; padding-top: 5px; text-indent: 0; }
}

.cont-unit { position: fixed; right: 18px; bottom: 26px; z-index: 50; display: grid; gap: 8px; }
.cont-unit button { width: 54px; height: 34px; border: 1px solid #5eb1d8; background: #79c2e3; color: #fff; border-radius: 3px; cursor: pointer; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.cont-unit button:hover { background: #4eadd0; }
body.card-mod { background: #1e1e1e; color: #aaa; }
body.card-mod a { color: #9eb8e8; }
body.card-mod .cat-unit,
body.card-mod .text,
body.card-mod .cat-mod { background: #252525; border-color: #3a3a3a; color: #888; }
body.card-mod .hot-line,
body.card-mod .row { background: #333; }
body.card-mod .hot-line a:hover,
body.card-mod .row a:hover { background: #444; }
body.card-mod .sec,
body.card-mod .card-bar,
body.card-mod .tool,
body.card-mod .info-line,
body.card-mod .meta-ft,
body.card-mod .new-img,
body.card-mod .foot,
body.card-mod .link-main,
body.card-mod .img-name,
body.card-mod .authorblock,
body.card-mod .hot-box,
body.card-mod .shumain,
body.card-mod .vol-unit,
body.card-mod .pic-main { background: #2a2a2a; border-color: #444; }
body.card-mod .author-cell { background: #202020; border-color: #444; }
body.card-mod .infoline { color: #b8b8b8; }
body.card-mod .unit-wrap,
body.card-mod .hd-col h2,
body.card-mod .link-main h2,
body.card-mod .img-name h2,
body.card-mod .hot-box h2,
body.card-mod .shumain h2,
body.card-mod .vol-unit h2,
body.card-mod .meta-ft h1,
body.card-mod .authorblock h1,
body.card-mod .mod h2,
body.card-mod .new-img h1 { background: #333; color: #ccc; border-color: #444; }
body.card-mod .top-inner p,
body.card-mod .metacol p,
body.card-mod .date-cover p,
body.card-mod .num-row p,
body.card-mod .link-main p,
body.card-mod .cover-wrap p,
body.card-mod .areaft .grid-con { color: #aaa; }
body.card-mod .menuunit th { background: #333; color: #ccc; }
body.card-mod .menuunit th,
body.card-mod .menuunit td,
body.card-mod .ft-panel li,
body.card-mod .sitesec li,
body.card-mod .vol-unit li,
body.card-mod .col-bd li { border-color: #444; }
body.card-mod .panelmeta,
body.card-mod .cha-ft input,
body.card-mod .block-info select { background: #222; color: #ddd; border-color: #555; }
@media (max-width: 768px) {
    .cont-unit { right: 10px; bottom: 14px; }
    .cont-unit button { width: 48px; height: 32px; font-size: 13px; }
}

.bookitem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; padding: 12px; border: 3px solid #b9dff1; background: #fffdf6; margin-bottom: 18px; }
.nav-item { display: grid; grid-template-columns: 126px 1fr; gap: 14px; min-height: 176px; overflow: hidden; }
.pic-con img { width: 126px; height: 170px; object-fit: cover; border: 1px solid #abc6d4; padding: 3px; background: #fff; }
.list-area h2 { height: 30px; line-height: 30px; font-size: 15px; border-bottom: 1px dotted #c7d8e3; overflow: hidden; }
.list-area h2 a { color: #5b6fad; font-weight: 700; }
.list-area h2 span { float: right; max-width: 78px; color: #aaa; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-area p { padding-top: 8px; color: #555; line-height: 1.85; height: 132px; overflow: hidden; text-indent: 2em; }
.homename { display: grid; grid-template-columns: 1fr 335px; gap: 14px; align-items: start; }
.bar-bd, .head-row { margin-bottom: 18px; }
@media (max-width: 768px) {
    .bookitem { display: block; padding: 8px; border-width: 2px; margin-bottom: 10px; }
    .nav-item { grid-template-columns: 82px 1fr; gap: 10px; min-height: 116px; padding: 8px 0; border-bottom: 1px solid #d8e2e4; }
    .nav-item:last-child { border-bottom: 0; }
    .pic-con img { width: 82px; height: 110px; padding: 2px; }
    .list-area h2 { height: 24px; line-height: 24px; font-size: 15px; }
    .list-area h2 span { display: none; }
    .list-area p { height: 78px; line-height: 1.7; padding-top: 5px; text-indent: 0; }
    .homename { display: block; }
}

.bd { display: grid; grid-template-columns: 1fr 335px; gap: 14px; align-items: start; margin-top: 16px; }
@media (max-width: 768px) {
    .bd { display: flex; flex-direction: column; width: 100%; max-width: 100%; margin-top: 10px; }
    .bd .shumain { order: 1; }
    .bd .hot-box { order: 2; }
    .bd .shumain,
    .bd .hot-box { width: 100%; max-width: 100%; min-width: 0; }
}

.boxrow { border: 3px solid #86c9e8; background: #eef6f6; margin-bottom: 22px; }
.boxrow .new-link { height: 34px; line-height: 34px; padding: 0 12px; color: #456; border-bottom: 1px solid #b9dff1; background: #dcecef; }
.text-bar { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 14px 28px 18px; }
.wen-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    min-height: 200px;
    box-sizing: border-box;
    background: rgba(0,0,0,.04);
    padding: 12px;
    overflow: hidden;
}
.wen-link img {
    display: block;
    width: 100%;
    height: 176px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}
.cate-line h1 { font-size: 30px; line-height: 44px; color: #333; }
.siteblock { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-bottom: 1px dashed #86aebd; padding-bottom: 6px; margin-bottom: 8px; }
.siteblock p { height: 28px; line-height: 28px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #444; }
.siteblock .imgmain { color: #b54800; font-weight: 700; grid-column: 1 / -1; }
.nav-bd { grid-column: 2; line-height: 1.8; color: #444; }
.tool-item { display: none; }
.cate-hd { display: none; }
.nav-block { border: 3px solid #4eadd0; background: #eef6f6; margin-bottom: 30px; }
.nav-block h2 { height: 38px; line-height: 38px; text-align: center; background: #9fb6bd; color: #333; font-size: 16px; border-bottom: 1px solid #9fc9db; }
.nav-block .time-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 12px; list-style: none; }
.nav-block .time-inner li { height: 40px; line-height: 40px; border-bottom: 1px dashed #9fb6bd; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 16px; }
.nav-block .time-inner.tool-bd li { font-weight: 700; }
.title-name { display: grid; grid-template-columns: 250px 1fr 250px; gap: 18px; padding: 16px 12px; }
.title-name a, .title-name span, .title-name button, .title-name select { height: 40px; line-height: 40px; border: 0; text-align: center; border-radius: 3px; }
.title-name a, .title-name span, .title-name button { background: #1e6f8a; color: #fff; cursor: pointer; font: inherit; }
.title-name button:disabled { cursor: default; opacity: .65; }
.title-name select { background: #fff; border: 1px solid #ddd; padding: 0 12px; text-align: left; }
.area-block { background: #eee; padding: 18px 14px; margin-bottom: 20px; }
.area-block h2 { text-align: center; color: #777; font-size: 16px; margin-bottom: 14px; font-weight: 400; }
.tag-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 45px; }
.tag-box a { display: block; height: 38px; line-height: 38px; text-align: center; background: #e3e3e3; color: #333; border-radius: 3px; }
@media (max-width: 768px) {
    .boxrow, .nav-block { border-width: 2px; margin-bottom: 12px; }
    .boxrow .new-link { height: auto; line-height: 1.5; padding: 8px; }
    .text-bar { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px; align-items: start; }
    .wen-link { width: 96px; min-height: 126px; padding: 4px; background: rgba(255,255,255,.45); }
    .wen-link img { width: 100%; height: 118px; object-fit: contain; object-position: center; }
    .cate-line { min-width: 0; }
    .cate-line h1 { font-size: 18px; line-height: 28px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .siteblock { display: block; border-bottom: 0; padding-bottom: 0; margin-bottom: 6px; }
    .siteblock p { height: 26px; line-height: 26px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .tool-item { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; grid-column: 1 / -1; margin: 2px 0 8px; }
    .hd-inner { display: block; height: 32px; line-height: 32px; border: 0; border-radius: 4px; color: #fff; text-align: center; font-weight: 700; font-size: 14px; cursor: pointer; }
    .hd-inner:hover { color: #fff; text-decoration: none; opacity: .92; }
    .hd-inner.mod-box { background: #f0305a; }
    .hd-inner.block-link { background: #f1a51e; }
    .hd-inner.home { background: #5b8cc3; }
    .nav-bd { grid-column: 1 / -1; max-height: 118px; overflow: hidden; line-height: 1.85; color: #444; }
    .nav-bd.pagebar { max-height: none; }
    .cate-hd { display: block; grid-column: 1 / -1; justify-self: center; margin-top: -2px; border: 0; background: transparent; color: #4d6da8; font-weight: 700; font-size: 14px; cursor: pointer; }
    .nav-block .time-inner { grid-template-columns: 1fr; padding: 0 8px; }
    .nav-block .time-inner li { height: 36px; line-height: 36px; padding-right: 0; }
    .title-name { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 8px; }
    .title-name select { grid-column: 1 / -1; order: -1; }
    .tag-box { grid-template-columns: 1fr; gap: 8px; }
}

.cont-unit a { width: 54px; height: 34px; line-height: 34px; border: 1px solid #5eb1d8; background: #79c2e3; color: #fff; border-radius: 3px; cursor: pointer; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.12); text-align: center; }
.cont-unit a:hover { background: #4eadd0; color: #fff; text-decoration: none; }
@media (max-width: 768px) {
    .story-name { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .story-name a, .story-name span { width: 100%; }
    .cont-unit a { width: 48px; height: 32px; line-height: 32px; font-size: 13px; }
}

@media (max-width: 768px) {
    .author-cell .story-name { grid-template-columns: 1fr 1fr; }
    .author-cell .story-name a:last-child,
    .author-cell .story-name span:last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
    .story-grid, .rowpanel, .text, .cellmod, .author-cell, .boxrow, .nav-block { max-width: 100%; overflow-x: hidden; }
    .rowline { width: 100%; max-width: 100%; }
    .panelmeta { min-width: 0; }
    .title-mod { flex: 0 0 68px; width: 68px; }
    .row { max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
    .author-cell { padding-left: 10px; padding-right: 10px; }
    .new-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cont-block h1 { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
    .cont-block p { white-space: normal; overflow-wrap: anywhere; }
    .infoline { max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
    .infoline p { max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
    .cont-unit { right: 8px; }
}

.tag-con { display: none; margin-left: auto; padding: 6px 13px; color: #fff; border: 1px solid rgba(255,255,255,.65); border-radius: 3px; font-weight: 700; white-space: nowrap; }
.tag-con:hover { color: #fff; background: rgba(255,255,255,.16); text-decoration: none; }
@media (max-width: 768px) {
    .cellmod { position: relative; }
    .tag-con { display: inline-block; position: absolute; right: 0; top: 0; margin-left: 0; padding: 4px 9px; color: #0871bd; border-color: #79c2e3; background: rgba(255,255,255,.55); font-size: 13px; }
    .tag-con:hover { color: #0871bd; background: rgba(255,255,255,.8); }
}

.linkmod {
    display: grid;
    grid-template-columns: auto 32px 32px 32px auto 48px 48px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px dashed #d8cfbd;
}
.linkmod.home { border-top: 1px dashed #d8cfbd; border-bottom: 0; margin-top: 8px; }
.linkmod span { color: #287dc2; }
.linkmod label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.linkmod select { height: 28px; border: 1px solid #83bfe0; background: #fff; }
.linkmod button { height: 28px; border: 1px solid #1e8bd1; background: #fff; color: #006eb8; border-radius: 3px; cursor: pointer; }
.linkmod button.nav-ft { background: #d8effc; font-weight: 700; }
@media (min-width: 1024px) {
    .author-cell { position: relative; }
    .author-cell > .new-link { padding-right: 390px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .author-cell > .linkmod:not(.home) {
        position: absolute;
        top: 5px;
        right: 24px;
        z-index: 2;
        width: auto;
        padding: 0;
        background: transparent;
        border: 0;
    }
    .author-cell > .linkmod.home { display: none; }
}
.vol-item { margin: 18px 0; padding: 18px 14px; background: #eee; }
.vol-item h2 { text-align: center; color: #777; font-size: 16px; font-weight: 400; margin-bottom: 14px; }
.mod-link { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 36px; }
.mod-link a { display: block; height: 34px; line-height: 34px; text-align: center; background: #e3e3e3; color: #333; border-radius: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.card-mod .vol-item { background: #2a2a2a; }
body.card-mod .mod-link a { background: #333; color: #bbb; }
@media (max-width: 768px) {
    .linkmod { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 8px 0; border-bottom: 1px dashed #d8cfbd; }
    .linkmod.home { border-top: 1px dashed #d8cfbd; border-bottom: 0; margin-top: 8px; }
    .linkmod button,
    .linkmod a { height: 28px; line-height: 28px; border: 1px solid #d8cfbd; background: #fff; color: #287dc2; border-radius: 2px; text-align: center; font-size: 12px; padding: 0; }
    .linkmod button { cursor: pointer; }
    .linkmod a:hover { text-decoration: none; }
    body.card-mod .linkmod button,
    body.card-mod .linkmod a { background: #333; border-color: #555; color: #9eb8e8; }
    .vol-item { margin: 12px 0; padding: 12px 8px; }
    .mod-link { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .mod-link a { height: 32px; line-height: 32px; font-size: 13px; }
}

@media (max-width: 768px) {
    .author-cell .story-name { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
    .author-cell .story-name a,
    .author-cell .story-name span { border-radius: 0; }
    .author-cell .story-name a:last-child,
    .author-cell .story-name span:last-child { grid-column: auto; }
}

body.imgname .author-cell { background: #e9fbfb; }
body.sort-grid .author-cell { background: #f6f1e7; }
body.head-meta .author-cell { background: #eeeeee; }
@media (max-width: 768px) {
    .linkmod { grid-template-columns: auto 28px 28px 28px 1fr 42px 42px; align-items: center; gap: 4px; padding: 7px 4px; background: #fff; }
    .linkmod span { color: #287dc2; font-size: 13px; }
    .linkmod label { display: flex; align-items: center; gap: 3px; min-width: 0; font-size: 12px; color: #333; white-space: nowrap; }
    .linkmod select { width: 54px; height: 25px; border: 1px solid #83bfe0; background: #fff; font-size: 12px; }
    .linkmod button { height: 25px; line-height: 23px; border: 1px solid #1e8bd1; background: #fff; color: #006eb8; border-radius: 3px; font-size: 12px; }
    .linkmod button.nav-ft { background: #d8effc; font-weight: 700; }
    .linkmod a { display: none; }
    body.card-mod .linkmod { background: #292929; }
    body.card-mod .linkmod span,
    body.card-mod .linkmod label { color: #bbb; }
    body.card-mod .linkmod select,
    body.card-mod .linkmod button { background: #333; border-color: #666; color: #9eb8e8; }
}

body.card-mod .tag-text a { color: #b8d7ef; text-shadow: 1px 1px 0 #1a3c55; }
body.card-mod .author-cell { background: #242424; }
body.card-mod .cont-block h1 { color: #ddd; }
body.card-mod .cont-block p,
body.card-mod .new-link { color: #aaa; }
body.card-mod .infoline { color: #d2d2d2; }
body.card-mod .infoline p { color: #d2d2d2; }
body.card-mod.sort-grid .author-cell,
body.card-mod.imgname .author-cell,
body.card-mod.head-meta .author-cell { background: #242424; }
@media (max-width: 768px) {
    .linkmod { grid-template-columns: auto 28px 28px 28px 1fr 42px; }
    body.card-mod .linkmod { background: #2b2b2b; border-color: #555; }
}

:root { --reader-bg-custom: #E9FAFF; }
.author-cell { background: var(--reader-bg-custom, #f6f1e7); }
body:not(.card-mod) .author-cell { background: var(--reader-bg-custom, #E9FAFF); }
body:not(.card-mod) .infoline { color: #333; }

@media (max-width: 768px) {
    .linkmod { grid-template-columns: auto 28px 28px 28px 1fr 42px 42px; }
}

@media (max-width: 768px) {
    .author-cell > .new-link,
    .author-cell > .cont-block { display: none; }
    .author-cell { padding-top: 0; }
}

/* 关灯只作用于章节正文，头部、搜索、工具栏和翻页保持原样。 */
body.card-mod { background: #e6f8fb; color: #555; }
body.card-mod a { color: #4d6da8; }
body.card-mod .cat-unit { background: #d9eef3; border-color: #b8dce7; color: #6d8f9e; }
body.card-mod .text,
body.card-mod .cat-mod { background: #e6f8fb; border-color: #72c4e8; color: #555; }
body.card-mod .hot-line,
body.card-mod .row { background: #79c2e3; }
body.card-mod .hot-line a,
body.card-mod .row a { color: #fff; }
body.card-mod .panelmeta,
body.card-mod .cha-ft input,
body.card-mod .block-info select { background: #fff; color: #333; border-color: #9bc7df; }
body.card-mod .author-cell,
body.card-mod.sort-grid .author-cell,
body.card-mod.imgname .author-cell,
body.card-mod.head-meta .author-cell { background: #2f3437; border-color: #444; }
body.card-mod .cont-block h1 { color: #ddd; }
body.card-mod .cont-block p,
body.card-mod .new-link { color: #aaa; }
body.card-mod .story-name a,
body.card-mod .story-name span { background: #363b3f; border-color: #555; color: #c8c8c8; }
body.card-mod .linkmod { background: #2f3437; border-color: #555; }
body.card-mod .linkmod span,
body.card-mod .linkmod label { color: #c8c8c8; }
body.card-mod .linkmod select,
body.card-mod .linkmod button { background: #363b3f; border-color: #6b747b; color: #c8d7e8; }
body.card-mod .infoline { background: transparent; color: #aaa; }
body.card-mod .newinner { border-color: #555; color: #bbb; }
body.card-mod .infoline p { color: #aaa; }
body.card-mod .tag-text a { color: #0871bd; text-shadow: 2px 2px 0 #c3e3f1; }
body.card-mod .tag-con { color: #0871bd; border-color: #79c2e3; background: rgba(255,255,255,.55); }
body.card-mod .tag-con:hover { color: #0871bd; background: rgba(255,255,255,.8); }
body.card-mod .vol-item { background: #eee; }
body.card-mod .vol-item h2 { color: #777; }
body.card-mod .mod-link a { background: #e3e3e3; color: #333; }
.bar-unit { text-align: center; padding: 54px 20px 62px; border: 3px solid #86c9e8; background: #fffdf6; }
.bar-unit h1 { margin-bottom: 12px; color: #287dc2; font-size: 30px; font-weight: 700; }
.bar-unit p { margin: 8px 0; color: #555; }
.cover-hd { display: inline-block; min-width: 110px; height: 34px; margin-top: 12px; line-height: 34px; background: #4eadd0; color: #fff; border-radius: 3px; }
.cover-hd:hover { color: #fff; text-decoration: none; background: #287dc2; }
@media (max-width: 768px) {
    body.card-mod .text { background: #dff5fb; }
    .bar-unit { padding: 42px 12px 48px; border-width: 2px; }
    .bar-unit h1 { font-size: 24px; }
}

@media (max-width: 768px) {
    .linkmod {
        align-items: center;
    }
    .linkmod span,
    .linkmod label,
    .linkmod button,
    .linkmod select {
        height: 25px;
        line-height: 25px;
        vertical-align: middle;
    }
    .linkmod span,
    .linkmod label {
        display: flex;
        align-items: center;
    }
    .linkmod button {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    .linkmod select {
        padding: 0 4px;
        line-height: 25px;
    }
}

/* Home update/new panels alignment fix */
.bd .hot-box,
.bd .shumain { align-self: start; }
.bd .ft-panel,
.bd .sitesec { padding: 8px 10px; font-size: 13px; }
.bd .ft-panel li,
.bd .sitesec li { height: 31px; line-height: 31px; border-bottom: 1px solid #d8e2e4; }
.bd .ft-panel li { grid-template-columns: 92px 188px minmax(0, 1fr) 78px 42px; gap: 7px; }
.bd .sitesec li { grid-template-columns: 82px minmax(0, 1fr) 62px; gap: 7px; }
.bd .ft-panel .cate-item,
.bd .ft-panel .cell,
.bd .ft-panel .modgrid,
.bd .ft-panel .menu,
.bd .ft-panel .box,
.bd .sitesec span,
.bd .sitesec a,
.bd .sitesec em { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 768px) {
    .bd .ft-panel,
    .bd .sitesec { padding: 4px 8px; font-size: 14px; }
    .bd .ft-panel li,
    .bd .sitesec li { height: 34px; line-height: 34px; }
    .bd .ft-panel li { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
    .bd .sitesec li { grid-template-columns: minmax(0, 1fr) 88px; gap: 6px; }
}

/* rank-static-layout */
.info-line.sec-unit {
    display: block !important;
    border: 2px solid #86c7e7;
    background: #fffdf6;
    padding: 10px 12px;
    margin: 12px auto 0;
    box-sizing: border-box;
}
.info-line.sec-unit .topbd {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
}
.info-line.sec-unit .card-sec {
    float: none !important;
    width: auto !important;
    min-height: 164px;
    margin: 0 !important;
    padding: 0 0 10px;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px dotted #b9ccd2;
    box-sizing: border-box;
    overflow: hidden;
}
.info-line.sec-unit .imgpanel,
.info-line.sec-unit .imgpanel img {
    display: block;
    width: 116px;
    height: 154px;
}
.info-line.sec-unit .imgpanel img {
    object-fit: cover;
    border: 1px solid #b7cbd4;
    background: #f4f4f4;
    box-sizing: border-box;
}
.info-line.sec-unit .num-row {
    min-width: 0;
    overflow: hidden;
}
.info-line.sec-unit .num-row h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 5px;
    padding: 0 0 4px;
    border-bottom: 1px dotted #b9ccd2;
    font-size: 15px;
    line-height: 22px;
    white-space: nowrap;
}
.info-line.sec-unit .num-row h2 a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.info-line.sec-unit .num-box {
    margin-left: auto;
    max-width: 66px;
    color: #aaa;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.info-line.sec-unit .shulink {
    margin: 0;
    color: #333;
    font-size: 13px;
    line-height: 24px;
    text-indent: 2em;
    max-height: 120px;
    overflow: hidden;
}
.info-line.sec-unit .item-line {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px;
    color: #555;
}
@media (max-width: 720px) {
    .info-line.sec-unit {
        padding: 8px;
    }
    .info-line.sec-unit .topbd {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .info-line.sec-unit .card-sec {
        min-height: 108px;
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 8px;
        padding: 8px 0;
    }
    .info-line.sec-unit .imgpanel,
    .info-line.sec-unit .imgpanel img {
        width: 76px;
        height: 100px;
    }
    .info-line.sec-unit .num-row h2 {
        font-size: 14px;
        line-height: 20px;
    }
    .info-line.sec-unit .shulink {
        font-size: 13px;
        line-height: 20px;
        max-height: 60px;
        text-indent: 0;
    }
}
/* /rank-static-layout */

/* static rank page, bqg style */
.info-line.tag {
  display: block;
  border: 2px solid #8ed1ef;
  background: #fffdf6;
  padding: 12px;
}
.tag .item-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin: 0 0 10px;
  min-height: 28px;
}
.tag .item-list h2 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  color: #444;
  font-weight: 700;
}
.tag .item-list strong {
  grid-column: 2 / 3;
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  color: #444;
}
.tag .listname {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 12px;
}
.tag .descarea {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  min-height: 156px;
  overflow: hidden;
}
.tag .novel img {
  width: 110px;
  height: 148px;
  object-fit: cover;
  border: 1px solid #b7d2dd;
  background: #fff;
}
.tag .side-cell {
  min-width: 0;
}
.tag .descarea h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding-bottom: 2px;
  border-bottom: 1px dotted #9fc7d6;
  font-size: 14px;
  line-height: 22px;
}
.tag .descarea h3 a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag .descarea h3 span,
.tag .descarea h3 em {
  color: #999;
  font-weight: 400;
  font-style: normal;
  white-space: nowrap;
}
.tag .bd-col {
  margin: 4px 0;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}
.tag .bd-col a {
  display: inline;
}
.tag .shulink {
  margin: 6px 0 0;
  color: #333;
  font-size: 13px;
  line-height: 23px;
  max-height: 92px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .info-line.tag {
    padding: 8px;
  }
  .tag .item-list {
    display: flex;
    justify-content: space-between;
  }
  .tag .item-list h2 {
    font-size: 20px;
  }
  .tag .item-list strong {
    font-size: 16px;
  }
  .tag .listname {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .tag .descarea {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 116px;
  }
  .tag .novel img {
    width: 86px;
    height: 116px;
  }
  .tag .shulink {
    max-height: 66px;
  }
}

/* static category layout fix */
body { background: #e6f8fb; color: #333; font: 14px/1.8 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
a { color: #2d65ad; }
a:hover { color: #c00; text-decoration: underline; }
.story-grid, .img-main, .cellmod, .navinfo { width: 980px; max-width: 980px; margin: 0 auto; }
.text { background: #e6f8fb; }
.cellmod { height: 86px; display: flex; align-items: center; gap: 28px; }
.tag-text { width: 180px; font-size: 34px; line-height: 1; font-family: Georgia, "Microsoft YaHei", serif; font-weight: 700; }
.tag-text a { color: #0871bd; text-shadow: 2px 3px 3px rgba(0, 90, 150, .28); }
.tag-text a:hover { text-decoration: none; color: #0871bd; }
.rowline { margin-left: auto; flex: 0 0 470px; display: flex; height: 38px; border: 1px solid #9bd5ee; background: #fff; }
.panelmeta { flex: 1; height: 36px; padding: 0 12px; border: 0; font-size: 14px; outline: 0; }
.title-mod { width: 78px; height: 36px; border: 0; background: #ddd; color: #222; cursor: pointer; }
.hot-line { width: 980px; max-width: 980px; height: 42px; margin: 0 auto; background: #74c0df; display: block; overflow: hidden; }
.navinfo { display: flex; height: 42px; width: 980px; }
.hot-line a { display: block; color: #fff; font-weight: 700; line-height: 42px; padding: 0 12px; white-space: nowrap; }
.hot-line a:hover, .hot-line a.nav-ft { background: #57acd2; color: #fff; text-decoration: none; }
.rowpanel { padding: 12px 0 20px; }

.wen-cover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; border: 3px solid #9bd5ee; background: #fffdf5; padding: 10px; margin-bottom: 12px; }
.wen-cover .page-meta, .page .page-meta { display: grid; grid-template-columns: 112px 1fr; gap: 12px; min-height: 150px; overflow: hidden; }
.unit-hd { display: block; width: 112px; }
.unit-hd img { width: 112px; height: 150px; object-fit: cover; border: 1px solid #b7d3df; background: #fff; }
.sort-box { min-width: 0; }
.sort-box h3 { height: 26px; line-height: 26px; margin: 0 0 6px; border-bottom: 1px dotted #b9cfd7; font-size: 15px; overflow: hidden; }
.sort-box h3 a { font-weight: 700; }
.sort-box h3 span { float: right; max-width: 72px; color: #aaa; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sort-box p { margin: 0; text-indent: 2em; height: 108px; overflow: hidden; color: #333; line-height: 1.85; }

.page { display: grid; grid-template-columns: repeat(3, 1fr); border: 3px solid #9bd5ee; background: #fffdf5; margin-bottom: 12px; }
.unit-item { min-height: 275px; padding: 8px 12px; border-right: 1px dotted #9bd5ee; border-bottom: 1px solid #ddd; overflow: hidden; }
.unit-item:nth-child(3n) { border-right: 0; }
.unit-item h2 { margin: 0 0 8px; height: 24px; line-height: 24px; border-bottom: 1px solid #cddbe0; font-size: 16px; color: #333; }
.unit-item .page-meta { grid-template-columns: 86px 1fr; min-height: 116px; margin-bottom: 6px; }
.unit-item .unit-hd, .unit-item .unit-hd img { width: 86px; }
.unit-item .unit-hd img { height: 116px; }
.unit-item .sort-box h3 { font-size: 14px; height: 24px; line-height: 24px; }
.unit-item .sort-box p { height: 96px; font-size: 13px; line-height: 24px; }
.cover-unit, .card-grid, .rank-cell, .area { list-style: none; margin: 0; padding: 0; }
.cover-unit li { display: flex; align-items: center; height: 24px; line-height: 24px; border-top: 1px solid #ddd; overflow: hidden; }
.cover-unit a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cover-unit span { width: 74px; margin-left: 6px; color: #666; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.tool-name { display: grid; grid-template-columns: 1fr 300px; gap: 12px; margin-bottom: 12px; }
.contunit, .read-main, .item-cell { border: 3px solid #9bd5ee; background: #eefafa; }
.contunit h2, .read-main h2 { height: 36px; line-height: 36px; padding: 0 12px; background: #9bd5ee; font-size: 16px; color: #333; }
.rank-cell li, .card-grid li, .area li { display: grid; align-items: center; min-height: 30px; line-height: 30px; border-bottom: 1px solid #d1e3e8; overflow: hidden; }
.rank-cell li { grid-template-columns: 88px minmax(120px,1.15fr) minmax(180px,1.45fr) 90px 50px; column-gap: 8px; padding: 0 10px; }
.card-grid li { grid-template-columns: 76px minmax(0, 1fr) 76px; column-gap: 0; padding: 0 10px; }
.card-grid li.update-mod { grid-template-columns: 76px minmax(0, 1fr); }
.area li { grid-template-columns: 90px minmax(220px,1fr) minmax(240px,1.2fr) 120px 78px; column-gap: 8px; padding: 0 12px; }
.rank-cell a, .card-grid a, .area a, .hot-img, .cha-mod, .link-hd, .rankhd, .card-grid em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hot-img { color: #555; }
.cha-mod, .link-hd, .rankhd, .card-grid em { color: #777; font-style: normal; text-align: right; }
.item-cell { padding-bottom: 8px; }
.item-cell h2 { height: 42px; line-height: 42px; padding: 0 12px; background: #fff; border-bottom: 1px solid #ddd; color: #0871bd; font-size: 18px; }
.footline { display: grid; grid-template-columns: 160px minmax(160px, 1fr) 160px; gap: 12px; padding: 12px 10px 10px; background: #eefafa; }
.footline button, .footline select { width: 100%; height: 36px; border-radius: 2px; font: inherit; }
.footline button { border: 0; background: #4badd3; color: #fff; cursor: pointer; }
.footline button:disabled { opacity: .55; cursor: default; }
.footline select { border: 1px solid #b9d7e3; background: #fff; padding: 0 10px; }
.card-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 5px; width: 100%; padding: 10px 6px; box-sizing: border-box; }
.card-link button, .card-link select { min-width: 0; padding-left: 3px; padding-right: 3px; font-size: 13px; }
.menu-sec > [hidden] { display: none !important; }
.row-name { margin: 0; padding: 28px 20px; background: #fff; border: 1px solid #ddd; }
.row-name h2 { margin: 0 0 8px; font-size: 22px; color: #555; }
.row-name p, .story-row { color: #555; }

.tag { border: 3px solid #9bd5ee; background: #fffdf5; padding: 10px; }
.item-list { display: grid; grid-template-columns: 1fr 1fr; height: 38px; line-height: 38px; border-bottom: 1px solid #ddd; margin-bottom: 8px; }
.item-list h2, .item-list strong { font-size: 20px; color: #333; }
.text-item { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px 18px; }
.list-text { display: grid; grid-template-columns: 112px 1fr; gap: 12px; min-height: 164px; overflow: hidden; }
.imgpanel img { width: 112px; height: 150px; object-fit: cover; border: 1px solid #b7d3df; }
.num-row h3 { height: 26px; line-height: 26px; border-bottom: 1px dotted #b9cfd7; font-size: 15px; overflow: hidden; }
.num-row h3 span { float: right; max-width: 72px; color: #aaa; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.num-row h3 em { float: right; margin-left: 6px; color: #999; font-style: normal; font-weight: 400; }
.bd-col { height: auto !important; color: #555; font-size: 13px; }
.num-row p { padding-top: 0; height: 130px; max-height: 130px; overflow: hidden; line-height: 26px; }

.cat-mod { border-top: 2px solid #74c0df; padding: 18px 0 24px; text-align: center; color: #444; font-size: 12px; }
.cont-unit { position: fixed; right: 16px; bottom: 16px; z-index: 20; }
.cont-unit button { border: 1px solid #54afd4; background: #74c0df; color: #fff; border-radius: 3px; padding: 8px 10px; cursor: pointer; }

@media (max-width: 1023px) {
  .story-grid, .img-main, .cellmod, .hot-line, .navinfo { width: auto; max-width: none; }
  .cat-unit { display: block; }
  .img-main { padding: 0 10px; justify-content: center; }
  .text { padding: 10px; }
  .cellmod { height: auto; display: block; }
  .tag-text { width: auto; margin-bottom: 8px; font-size: 28px; }
  .rowline { width: 100%; max-width: none; margin: 0; flex-basis: auto; }
  .hot-line { margin: 0 10px; height: 38px; overflow-x: auto; }
  .navinfo { display: flex; height: 38px; min-width: max-content; }
  .hot-line a { line-height: 38px; padding: 0 12px; }
  .rowpanel { padding: 8px 10px 16px; }
  .wen-cover { display: block; padding: 8px; }
  .wen-cover .page-meta { grid-template-columns: 86px 1fr; min-height: 116px; padding: 8px 0; border-bottom: 1px solid #ddd; }
  .wen-cover .unit-hd, .wen-cover .unit-hd img { width: 86px; }
  .wen-cover .unit-hd img { height: 116px; }
  .page { display: block; }
  .unit-item { min-height: 0; border-right: 0; }
  .tool-name { display: flex; flex-direction: column; }
  .read-main { order: 1; }
  .contunit { order: 2; }
  .rank-cell li { grid-template-columns: 1fr 1fr; gap: 0 10px; min-height: 28px; line-height: 28px; }
  .rank-cell .hot-img, .rank-cell .cha-mod, .rank-cell .rankhd { display: none; }
  .card-grid li { grid-template-columns: 1fr 72px; min-height: 28px; line-height: 28px; }
  .card-grid li span { display: none; }
  .area li { grid-template-columns: 1fr 72px; min-height: 30px; line-height: 30px; }
  .area .hot-img, .area .author-sec { display: none; }
  .area .cha-mod, .area .link-hd { text-align: right; }
  .item-cell h2 { height: 36px; line-height: 36px; font-size: 16px; }
  .footline { grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; padding: 10px 8px; }
  .card-link { grid-template-columns: 1fr 1.25fr 1fr; }
  .text-item { display: block; }
  .list-text { grid-template-columns: 86px 1fr; min-height: 116px; padding: 8px 0; border-bottom: 1px solid #ddd; }
  .imgpanel img { width: 86px; height: 116px; }
}

/* mobile category layout restore: compact bqg-style category pages */
@media (max-width: 1023px) {
  .rowpanel > .story-grid {
    width: auto;
    margin-left: 8px;
    margin-right: 8px;
  }

  .cardbar {
    display: block;
    padding: 8px 10px;
    border: 2px solid #8fd1ed;
    background: #fffdf4;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  .cardbar .page-meta {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    min-height: 112px;
    padding: 8px 0;
    border-bottom: 1px solid #d8d8d8;
    overflow: hidden;
    box-sizing: border-box;
  }

  .cardbar .page-meta:last-child {
    border-bottom: 0;
  }

  .cardbar .unit-hd,
  .cardbar .unit-hd img {
    width: 82px;
  }

  .cardbar .unit-hd img {
    height: 110px;
    object-fit: cover;
  }

  .cardbar .sort-box {
    min-width: 0;
  }

  .cardbar .sort-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    margin: 0 0 4px;
    padding-bottom: 3px;
    border-bottom: 1px dotted #b7d1da;
    font-size: 14px;
    line-height: 20px;
    overflow: hidden;
  }

  .cardbar .sort-box h3 a {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .cardbar .sort-box h3 span {
    flex: 0 0 auto;
    max-width: 5.5em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #999;
    font-size: 12px;
    font-weight: normal;
  }

  .cardbar .sort-box p {
    margin: 0;
    font-size: 13px;
    line-height: 22px;
    max-height: 66px;
    overflow: hidden;
  }

  .page-box {
    display: block;
    margin-top: 10px;
  }

  .page-box .contunit,
  .page-box .read-main {
    width: 100%;
    margin: 0 0 10px;
    border: 2px solid #8fd1ed;
    box-sizing: border-box;
  }

  .page-box .contunit h2,
  .page-box .read-main h2 {
    padding: 8px 10px;
    font-size: 14px;
    line-height: 20px;
  }

  .page-box .rank-cell li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 6px;
    align-items: center;
    min-height: 32px;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .page-box .rank-cell .hot-img,
  .page-box .rank-cell .new-name,
  .page-box .rank-cell .author-sec {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
  }

  .page-box .rank-cell .hot-img {
    display: none;
  }

  .page-box .rank-cell .cha-mod,
  .page-box .rank-cell .rankhd {
    display: none;
  }

  .page-box .card-grid li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 6px;
    align-items: center;
    min-height: 32px;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .page-box .card-grid li.update-mod {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-box .card-grid li > span {
    display: none;
  }

  .page-box .card-grid span,
  .page-box .card-grid a,
  .page-box .card-grid em {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
  }
}

/* desktop bqg scale restore */
@media (min-width: 1024px) {
  .story-grid,
  .img-main,
  .cellmod,
  .navinfo {
    width: 1024px;
    max-width: 1024px;
  }

  .wen-cover {
    gap: 14px 20px;
    padding: 10px 12px;
  }

  .wen-cover .page-meta {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    min-height: 160px;
  }

  .wen-cover .unit-hd,
  .wen-cover .unit-hd img {
    width: 120px;
  }

  .wen-cover .unit-hd img {
    height: 160px;
  }

  .wen-cover .sort-box h3,
  .page .sort-box h3 {
    font-size: 15px;
    line-height: 23px;
  }

  .wen-cover .sort-box p,
  .page .sort-box p {
    font-size: 14px;
    line-height: 24px;
  }

  .unit-item {
    padding: 10px 12px;
  }

  .unit-item .page-meta {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-height: 124px;
  }

  .unit-item .unit-hd,
  .unit-item .unit-hd img {
    width: 92px;
  }

  .unit-item .unit-hd img {
    height: 124px;
  }

  .cover-unit li,
  .card-grid li,
  .rank-cell li {
    font-size: 14px;
    min-height: 24px;
    line-height: 24px;
  }

  .contunit h2,
  .read-main h2,
  .unit-item h2 {
    font-size: 16px;
  }
}

/* 2026-07-12: desktop home layout restore: 4 featured + classic sidebar */
@media (min-width: 1024px) {
  .story-grid,
  .img-main,
  .cellmod,
  .navinfo {
    width: 1024px;
    max-width: 1024px;
    box-sizing: border-box;
  }

  .navinfo {
    display: flex;
    align-items: stretch;
    overflow: visible;
    height: 40px;
  }

  .navinfo a,
  .row a {
    flex: 0 0 auto;
    display: block;
    padding: 0 10px;
    font-size: 14px;
    line-height: 40px;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .row-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
    border: 3px solid #9bd5ee;
    background: #fffdf5;
    padding: 10px;
    margin: 0 0 12px;
    box-sizing: border-box;
  }

  .row-panel .wen-cover {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .row-panel .wen-cover .page-meta {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 160px;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .row-panel .wen-cover .page-meta:nth-child(n+5) {
    display: none;
  }

  .row-panel .unit-hd,
  .row-panel .unit-hd img {
    width: 120px;
    height: 160px;
    object-fit: cover;
  }

  .tag-bar {
    border-left: 3px solid #9bd5ee;
    background: #eefafa;
    margin: -10px -10px -10px 0;
    min-width: 0;
  }

  .tag-bar h2 {
    height: 36px;
    line-height: 36px;
    margin: 0;
    padding: 0 12px;
    background: #d9edf0;
    color: #333;
    font-size: 16px;
    font-weight: 700;
  }

  .tag-bar ul {
    list-style: none;
    margin: 0;
    padding: 6px 10px;
  }

  .tag-bar li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 68px;
    gap: 6px;
    height: 28px;
    line-height: 28px;
    border-bottom: 1px solid #d3e1e4;
    overflow: hidden;
  }

  .tag-bar li span,
  .tag-bar li a,
  .tag-bar li em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-style: normal;
    font-size: 13px;
  }

  .tag-bar li a {
    color: #3366aa;
  }

  .tag-bar li em {
    color: #666;
    text-align: right;
  }
}

@media (max-width: 1023px) {
  .row-panel {
    display: block;
    border: 2px solid #8fd1ed;
    background: #fffdf4;
    padding: 8px;
    margin-bottom: 10px;
  }

  .row-panel .wen-cover {
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .tag-bar {
    margin-top: 8px;
    border: 2px solid #8fd1ed;
    background: #eefafa;
  }

  .tag-bar h2 {
    height: 34px;
    line-height: 34px;
    margin: 0;
    padding: 0 10px;
    background: #d9edf0;
    font-size: 15px;
  }

  .tag-bar ul {
    list-style: none;
    margin: 0;
    padding: 4px 8px;
  }

  .tag-bar li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 58px;
    gap: 4px;
    height: 30px;
    line-height: 30px;
    border-bottom: 1px solid #d3e1e4;
    overflow: hidden;
  }

  .tag-bar li span,
  .tag-bar li a,
  .tag-bar li em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-style: normal;
    font-size: 13px;
  }

  .tag-bar li em {
    text-align: right;
  }
}

/* 2026-07-12: force desktop nav/header width to 1024px */
@media (min-width: 1024px) {
  .img-main,
  .cellmod,
  .navinfo,
  .story-grid {
    width: 1024px !important;
    max-width: 1024px !important;
    box-sizing: border-box;
  }

  .hot-line,
  .row {
    width: 1024px !important;
    max-width: 1024px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .navinfo {
    display: flex !important;
    align-items: stretch !important;
    overflow: visible !important;
  }
}

/* 2026-07-12: remove current-menu selection mark, keep nav visually flat */
.hot-line a.nav-ft,
.hot-line a[aria-current="page"],
.row a.nav-ft,
.row a[aria-current="page"],
.navinfo a.nav-ft,
.navinfo a[aria-current="page"] {
  background: transparent !important;
  color: #fff !important;
  text-decoration: none !important;
}

.hot-line a:hover,
.row a:hover,
.navinfo a:hover {
  background: #57acd2 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* 2026-07-12: desktop starts at 1024px; below 1024 uses mobile adaptive layout */
@media (min-width: 1024px) {
  .img-main,
  .cellmod,
  .navinfo,
  .story-grid,
  .hot-line,
  .row {
    width: 1024px !important;
    max-width: 1024px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .hot-line,
  .row {
    overflow: hidden !important;
  }
}

@media (max-width: 1023px) {
  .img-main,
  .cellmod,
  .navinfo,
  .story-grid,
  .hot-line,
  .row {
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  .story-grid,
  .cellmod,
  .img-main {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  .hot-line,
  .row {
    margin-left: 10px !important;
    margin-right: 10px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .navinfo {
    min-width: max-content !important;
    display: flex !important;
  }
}

/* nav-hover-disabled: 导航条不保留 hover / focus / active 印记 */
.text nav a:hover,
.text nav a:focus,
.text nav a.nav-ft,
.text nav .nav-ft,
.cellmod nav a:hover,
.cellmod nav a:focus,
.cellmod nav a.nav-ft,
.cellmod nav .nav-ft,
.hot-line a:hover,
.hot-line a:focus,
.hot-line a.nav-ft,
.hot-line .nav-ft,
.row a:hover,
.row a:focus,
.row a.nav-ft,
.row .nav-ft {
    background: transparent !important;
    color: #fff !important;
    text-decoration: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* responsive-1024-fix:start */
/* 桌面版：传统站宽度固定 1024，导航与主体保持同宽 */
@media (min-width: 1024px) {
    .img-main,
    .text .cellmod,
    .cellmod,
    .story-grid,
    .rowpanel,
    .mainunit,
    .infoimg,
    .cont,
    .hot-line,
    .row {
        width: 1024px !important;
        max-width: 1024px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}

/* 小于等于 1024：立即切到移动自适应，不再保留桌面定宽 */
@media (max-width: 1023px) {
    html,
    body {
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body {
        margin: 0 !important;
    }

    .cat-unit,
    .text,
    .rowpanel,
    .cat-mod,
    .img-main,
    .text .cellmod,
    .cellmod,
    .story-grid,
    .cont,
    .mainunit,
    .infoimg,
    .new-bar,
    .hot-line,
    .row {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .img-main,
    .text .cellmod,
    .cellmod,
    .story-grid,
    .mainunit,
    .infoimg,
    .rowpanel {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .text .cellmod,
    .cellmod {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .tag-text,
    .text h1,
    .text .tag-text {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .tag-con {
        margin-left: auto !important;
    }

    .rowline {
        order: 3 !important;
        flex: 0 0 100% !important;
        display: flex !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .rowline .panelmeta,
    .rowline input[type="text"] {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .rowline .title-mod,
    .rowline button,
    .rowline input[type="submit"] {
        flex: 0 0 82px !important;
        width: 82px !important;
    }

    .hot-line,
    .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
    }

    .hot-line a,
    .row a {
        flex: 0 0 auto !important;
        padding: 0 12px !important;
        text-align: center !important;
    }

    .info-line,
    .list,
    .topbd,
    .rank-ft,
    .descgrid,
    .item-cell .menucon,
    .area,
    .menucon,
    .cell-name,
    .cha-wrap,
    .block-bar,
    .boxrow {
        display: block !important;
        grid-template-columns: none !important;
        columns: auto !important;
        width: 100% !important;
    }

    .page-img,
    .celltext,
    .menucon .title-cell,
    .area .title-cell,
    .cell-name .title-cell,
    .cha-wrap .title-cell,
    .block-bar .title-cell,
    .story,
    .page-wrap {
        display: grid !important;
        grid-template-columns: 88px minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 118px !important;
        margin: 0 0 12px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px dotted #98c9d9 !important;
        box-sizing: border-box !important;
        break-inside: avoid !important;
    }

    .page-img img,
    .celltext img,
    .imgpanel img,
    .menucon .title-cell img,
    .area .title-cell img,
    .cell-name .title-cell img,
    .cha-wrap .title-cell img,
    .block-bar .title-cell img,
    .story img,
    .page-wrap img {
        width: 88px !important;
        height: 118px !important;
        object-fit: cover !important;
    }

    .num-row,
    .storygrid,
    .sort-box,
    .cover-wrap,
    .page-wrap dl,
    .page-wrap .vol-cover {
        min-width: 0 !important;
    }

    .topmeta,
    .volitem,
    .hdmeta,
    .panel-bd {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
    }

    .topmeta > *,
    .volitem > *,
    .hdmeta > *,
    .panel-bd > * {
        width: 100% !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }
}

/* 导航条不保留 hover/focus/active 视觉印记 */
.hot-line a:hover,
.hot-line a:focus,
.hot-line a:active,
.hot-line a.nav-ft,
.hot-line .nav-ft,
.row a:hover,
.row a:focus,
.row a:active,
.row a.nav-ft,
.row .nav-ft,
.text nav a:hover,
.text nav a:focus,
.text nav a:active,
.text nav a.nav-ft,
.cellmod nav a:hover,
.cellmod nav a:focus,
.cellmod nav a:active,
.cellmod nav a.nav-ft {
    background: transparent !important;
    color: #fff !important;
    text-decoration: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
/* responsive-1024-fix:end */
/* Homepage featured descriptions: clip at exactly five complete lines. */
@media (min-width: 1024px) {
  .row-panel .sort-box p,
  .cardbar .sort-box p {
    height: 130px;
    line-height: 26px;
  }
}

/* Compact desktop header while preserving independent mobile layout. */
@media (min-width: 1024px) {
  .cat-unit,
  .img-main {
    height: 28px;
  }

  .cellmod {
    height: 68px;
  }

  .hot-line,
  .navinfo {
    height: 38px;
  }

  .hot-line a,
  .navinfo a {
    line-height: 38px;
  }

  .rowpanel {
    padding-top: 8px;
  }
}

/* Target-site adaptive header: up to 1023px mobile; 1024px and above desktop. */
.area-sec,
.main-panel {
  display: none;
}

@media (max-width: 1023px) {
  .cat-unit {
    display: none !important;
  }

  .text {
    padding: 0 !important;
    background: #e6f8fb !important;
  }

  .text .cellmod,
  .cellmod {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    background: #e6f8fb !important;
  }

  .text .tag-text,
  .text h1 {
    height: 52px !important;
    line-height: 52px !important;
    padding-left: 12px !important;
    margin: 0 !important;
    color: #0871bd !important;
    font-size: 27px !important;
    text-shadow: 2px 3px 3px rgba(0, 90, 150, .28) !important;
  }

  .text .tag-text a {
    color: #0871bd !important;
    text-shadow: 2px 3px 3px rgba(0, 90, 150, .28) !important;
  }

  .area-sec {
    display: flex !important;
    gap: 8px !important;
    padding-right: 10px !important;
  }

  .area-sec a {
    display: block !important;
    min-width: 48px !important;
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 8px !important;
    border-radius: 3px !important;
    background: #74c0df !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 13px !important;
  }

  .main-panel {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 42px !important;
    background: #74c0df !important;
    border-top: 0 !important;
  }

  .main-panel a {
    min-width: 0 !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .text .rowline,
  .cellmod .rowline {
    display: flex !important;
    grid-column: 1 / -1 !important;
    order: initial !important;
    width: auto !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    border: 0 !important;
    background: #e6f8fb !important;
    box-sizing: border-box !important;
  }

  .text .rowline .panelmeta,
  .text .rowline input[type="text"] {
    height: 34px !important;
    border: 1px solid #8dcde7 !important;
    border-right: 0 !important;
  }

  .text .rowline .title-mod,
  .text .rowline button {
    flex: 0 0 82px !important;
    width: 82px !important;
    height: 34px !important;
    border: 1px solid #8dcde7 !important;
    background: #ddd !important;
    color: #222 !important;
  }

  body > .hot-line,
  body > nav.hot-line {
    display: none !important;
  }

  .rowpanel {
    padding-top: 0 !important;
  }

  .row-panel {
    margin-top: 0 !important;
  }

  /* Book detail: keep metadata beside the cover, but move actions/intro full width. */
  .text-bar {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 8px 10px !important;
    padding: 10px !important;
    align-items: start !important;
  }

  .text-bar .wen-link {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 96px !important;
    min-height: 126px !important;
    padding: 4px !important;
  }

  .text-bar .wen-link img {
    width: 100% !important;
    height: 118px !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .text-bar .cate-line {
    display: contents !important;
  }

  .text-bar .cate-line h1 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    height: auto !important;
    line-height: 27px !important;
    font-size: 18px !important;
    white-space: normal !important;
  }

  .text-bar .siteblock {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .text-bar .siteblock p {
    height: 25px !important;
    line-height: 25px !important;
  }

  .text-bar .tool-item {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
    margin: 2px 0 0 !important;
  }

  .text-bar .nav-bd {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    max-height: 112px !important;
    padding-top: 2px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .text-bar .nav-bd.pagebar {
    max-height: none !important;
  }

  .text-bar .cate-hd {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
  }

  .nav-block .time-inner {
    grid-template-columns: 1fr !important;
  }

  .author-cell .area-block {
    margin: 14px 0 0 !important;
    padding: 14px 10px 16px !important;
    background: #fff !important;
  }

  .author-cell .area-block h2 {
    margin-bottom: 12px !important;
    color: #888 !important;
    font-weight: 400 !important;
  }

  .author-cell .tag-box {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 14px !important;
  }

  .author-cell .tag-box a {
    min-width: 0 !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  .rowpanel .story-grid > .area-block {
    margin: 0 0 14px !important;
    padding: 14px 10px 16px !important;
    background: #fff !important;
  }

  .rowpanel .story-grid > .area-block .tag-box {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 14px !important;
  }

  .rowpanel .story-grid > .area-block .tag-box a {
    min-width: 0 !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
}

/* 分类页桌面双栏等高：左侧 42×35px，右侧 49×30px。 */
@media (min-width: 1024px) {
  .page-box .rank-cell li {
    height: 35px;
    min-height: 35px;
    line-height: 35px;
  }

  .page-box .card-grid li,
  .page-box .card-grid li.update-mod {
    height: 30px;
    min-height: 30px;
    line-height: 30px;
  }

  /* 数据不足49条时，左右条数相同，统一使用35px行高。 */
  .page-box.vol-bd .card-grid li,
  .page-box.vol-bd .card-grid li.update-mod {
    height: 35px;
    min-height: 35px;
    line-height: 35px;
  }
}

/* Category footer controls: keep the three paging controls on one row and
   pin the right-column entry to the bottom of the equally tall panel. */
.page-box { align-items: stretch; }
.page-box .contunit,
.page-box .read-main { min-width: 0; }
.page-box .read-main { display: flex; flex-direction: column; }
.page-box .read-main .card-grid { flex: 0 0 auto; }
.page-box .conts {
  display: grid;
  grid-template-columns: minmax(90px, 160px) minmax(120px, 1fr) minmax(90px, 160px);
  gap: 10px;
  align-items: center;
  padding: 12px 10px 10px;
  box-sizing: border-box;
}
.page-box .conts > a,
.page-box .conts > span,
.page-box .conts > select {
  width: 100%;
  height: 36px;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}
.page-box .conts > a,
.page-box .conts > span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-box .conts > select {
  border: 1px solid #b9d7e3;
  background: #fff;
  padding: 0 10px;
}
.page-box .homesec {
  margin: auto 0 0;
  padding: 12px 10px 10px;
  border-top: 1px solid #cbdde3;
  box-sizing: border-box;
}
.page-box .homesec a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  background: #4badd3;
  color: #fff;
  box-sizing: border-box;
}
@media (max-width: 1023px) {
  .page-box .conts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 5px;
    padding: 10px 6px;
  }
}

/* Mobile reader width: avoid stacking page/container/reader side gutters. */
@media (max-width: 1023px) {
  .rowpanel.card,
  .rowpanel.site-list,
  .rowpanel.cellname {
    width: 100% !important;
    max-width: none !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    box-sizing: border-box !important;
  }

  .rowpanel.card > .story-grid,
  .rowpanel.site-list > .story-grid,
  .rowpanel.cellname > .story-grid {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .rowpanel.wrapunit {
    width: 100% !important;
    max-width: none !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    box-sizing: border-box !important;
  }

  .rowpanel.wrapunit > .story-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .rowpanel.wrapunit .author-cell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: clamp(6px, 2vw, 16px) !important;
    padding-right: clamp(6px, 2vw, 16px) !important;
    box-sizing: border-box !important;
  }

  .rowpanel.wrapunit .infoline {
    width: 100% !important;
    max-width: none !important;
    padding-left: clamp(2px, 1.2vw, 10px) !important;
    padding-right: clamp(2px, 1.2vw, 10px) !important;
    box-sizing: border-box !important;
  }

  .rowpanel.wrapunit .linkmod,
  .rowpanel.wrapunit .story-name {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}
/* ===== gudian 模板:三栏古典首页 —— 复刻 88106 (jieqi230) 真实设计令牌 ===== */
/* 令牌:宋体12px/lh1.6 · 文字#373a3c · 边框#b4c2cb · 标题底#f5f5f5 · 蓝#0275d8 橙#f0ad4e */
.time{max-width:1000px;margin:8px auto;padding:0 6px;
  font-family:宋体,SimSun,Verdana,Arial,sans-serif;font-size:12px;line-height:1.6;color:#373a3c}
.wrap-panel{display:flex;gap:0;align-items:flex-start;margin:0 -0.5%}
.text-info,.meta-block{flex:0 0 24.25%;margin:0 0.5%;min-width:0}
.site-area{flex:1 1 auto;margin:0 0.5%;min-width:0}
.site{border:1px solid #b4c2cb;margin-bottom:5px;padding:1px;background:#fff}
.menu-link{margin:0 0 1px;height:1.9em;line-height:1.9em;font-size:1.25em;font-weight:bold;
  text-indent:0.6em;color:#373a3c;background:#f5f5f5;border-bottom:1px solid #ebebeb}
/* 左右分类 TOP 榜:数字序号 + 蓝链接,88106 风 */
.book-link{list-style:none;margin:0;padding:4px 8px;counter-reset:gd}
.book-link li{counter-increment:gd;line-height:1.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-link li::before{content:counter(gd);display:inline-block;width:1.4em;margin-right:4px;
  color:#fff;background:#b4c2cb;font-size:11px;text-align:center;line-height:1.4em;border-radius:2px}
.book-link li:nth-child(-n+3)::before{background:#f0ad4e}
.book-link a{color:#0275d8} .book-link a:hover{color:#f0ad4e;text-decoration:underline}
/* 中栏卡片:热读榜/编辑推荐 封面+简介 */
.hot{padding:8px;display:flex;flex-wrap:wrap;gap:10px}
.cha-cover{display:flex;gap:8px;width:calc(50% - 5px);min-width:0}
.hotitem{flex:0 0 60px} .hotitem img{width:60px;height:80px;object-fit:cover;border:1px solid #ddd}
.cat-text{min-width:0} .cat-text h4{margin:0 0 2px;font-size:14px;font-weight:bold}
.cat-text h4 a{color:#0275d8} .author-panel{margin:0 0 3px;color:#999}
.update-box{margin:0;color:#818a91;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* 最近更新 */
.link{list-style:none;margin:0;padding:4px 8px}
.link li{line-height:2;display:flex;gap:6px;align-items:baseline;border-bottom:1px dotted #ebebeb}
.link li:last-child{border-bottom:0}
.story-hd{flex:0 0 auto;color:#0275d8;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.baritem{flex:1 1 auto;color:#373a3c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desc-area{flex:0 0 auto;color:#999}
.unit-link .hd{padding:8px;color:#d9534f;line-height:1.7;font-size:12px}
.title{max-width:1000px;margin:0 auto 12px;border:1px solid #b4c2cb;padding:1px;background:#fff}
.title .sitearea{padding:6px 8px;line-height:2}
.sitearea a{margin-right:12px;color:#818a91} .sitearea a:hover{color:#f0ad4e}

/* ---- 头部 + 导航条:复刻 88106 (jieqi230),纯 CSS 改造现有类,不动 HTML ---- */
body,.rowpanel{font-family:宋体,SimSun,Verdana,Arial,sans-serif;color:#373a3c;background:#fff}
a{color:#0275d8} a:hover{color:#f0ad4e}
/* 顶部条 .list-hd(88106 #f6f6f6) */
.cat-unit{background:#f6f6f6;color:#333;border-bottom:1px solid #ddd;line-height:2.2}
.img-main{max-width:1000px;margin:0 auto;padding:0 6px;text-align:right}
.sec-cover{background:none;border:0;color:#333;cursor:pointer;font-size:12px;padding:0 8px}
.sec-cover:hover{color:#f0ad4e}
/* 头部:logo 左 + 搜索右(88106 .dateunit 60px) */
.text{background:#fff;border:0;box-shadow:none}
.cellmod{max-width:1000px;margin:0 auto;padding:8px 6px;display:flex;align-items:center;min-height:60px}
.tag-text{margin:0} .tag-text a{color:#0275d8;font-size:28px;font-weight:bold;font-family:宋体,SimSun,serif;letter-spacing:1px}
.rowline{margin-left:auto;display:flex}
.panelmeta{border:1px solid #b4c2cb;padding:6px 10px;font-size:12px;width:240px;height:auto;border-radius:2px 0 0 2px}
.title-mod{background:#6896b1;color:#fff;border:0;padding:0 18px;cursor:pointer;border-radius:0 2px 2px 0;font-size:13px}
.title-mod:hover{background:#5485a2}
/* 主导航条 .foot-cell:蓝灰 #6896b1 白粗字 */
.hot-line{background:#6896b1;font-family:宋体,SimSun,sans-serif;margin-bottom:8px;border:0}
.navinfo{max-width:1000px;margin:0 auto;height:40px;display:flex;flex-wrap:wrap}
.navinfo a{display:block;color:#fff;font-weight:bold;font-size:14px;padding:0 16px;line-height:40px;
  border-right:1px solid #5f8aa4;text-decoration:none}
.navinfo a:first-child{border-left:1px solid #5f8aa4}
.navinfo a:hover,.navinfo a.nav-ft{background:#5485a2;color:#fff}
/* 内页区块标题/链接统一配色 */
.unit-item h2,.contunit h2,.item-cell h2,.tag-bar h2,.text-item h2{
  color:#373a3c;background:#f5f5f5;border-bottom:1px solid #ebebeb;border-left:0}
.new-name,.sort-box h3 a,.num-row h3 a{color:#0275d8}

/* ---- 移动端:栗棕单栏(88106 wap 风) ---- */
@media (max-width:1023px){
  .time{margin:5px auto;padding:0 5px}
  .wrap-panel{flex-direction:column;margin:0}
  .text-info,.meta-block,.site-area{flex:1 1 auto;width:100%;margin:0}
  .cha-cover{width:100%}
  body{background:#f4ede7;color:#4b3a30}
  .site{border-color:#e0d3c9}
  .menu-link{color:#fff;background:linear-gradient(#8a5a48,#734636);border-bottom-color:#5e392c;text-indent:0.7em}
  .book-link a,.story-hd,.cat-text h4 a{color:#8a5230} .book-link a:hover{color:#a5342a}
  .book-link li::before{background:#b99}  .book-link li:nth-child(-n+3)::before{background:#a5522f}
  .hot-line{background:#734636;margin-bottom:6px} .navinfo{height:auto}
  .navinfo a{color:#f2e6de;border-color:#5e392c;font-size:13px;padding:0 12px}
  .navinfo a:hover,.navinfo a.nav-ft{background:#5e392c}
  .cat-unit{background:#efe4dc;border-bottom-color:#e0d3c9} .sec-cover{color:#6b4a3a}
  .tag-text a{color:#8a5230}
  .title-mod{background:#8a5230} .title-mod:hover{background:#734636}
  .unit-item h2,.contunit h2{color:#fff;background:#7a4634}
  a{color:#8a5230}
}

/* ---- gudian 分类页附加:面包屑 / 分页 / 更多按钮 ---- */
.new{max-width:1000px;margin:8px auto 0;padding:2px 6px;color:#818a91;font-size:12px}
.new a{color:#0275d8} .new a:hover{color:#f0ad4e}
.wrap-mod{padding:10px 8px;text-align:center;line-height:2.2}
.wrap-mod a,.wrap-mod span,.wrap-mod em,.wrap-mod strong{
  display:inline-block;min-width:24px;padding:2px 9px;margin:0 2px;
  border:1px solid #b4c2cb;color:#0275d8;text-decoration:none;border-radius:2px;font-style:normal;font-weight:normal}
.wrap-mod a:hover{background:#6896b1;color:#fff;border-color:#6896b1}
.wrap-mod .unit,.wrap-mod .nav-ft,.wrap-mod strong,.wrap-mod em{background:#6896b1;color:#fff;border-color:#6896b1}
.wrap-main{padding:8px;text-align:center;border-top:1px solid #ebebeb}
.wrap-main a{display:inline-block;padding:6px 16px;background:#6896b1;color:#fff;border-radius:2px;text-decoration:none}
.wrap-main a:hover{background:#5485a2}
@media (max-width:1023px){
  .wrap-main a{background:#8a5230} .wrap-main a:hover{background:#734636}
  .wrap-mod a,.wrap-mod span{color:#8a5230;border-color:#e0d3c9}
  .wrap-mod .unit,.wrap-mod strong,.wrap-mod em{background:#8a5230;border-color:#8a5230;color:#fff}
}

/* ===== gudian 目录页 / 正文页 —— 88106(jieqi230)风,gd- 结构 ===== */
.name-panel,.hdpanel{max-width:1000px;margin:8px auto;padding:0 6px;
  font-family:宋体,SimSun,Verdana,Arial,sans-serif;font-size:12px;line-height:1.6;color:#373a3c}
.name-panel .story-grid,.hdpanel .story-grid{max-width:100%;margin:0;padding:0}

/* ---- 书籍信息头 ---- */
.shu{border:1px solid #b4c2cb;background:#fff;padding:1px;margin-bottom:5px}
.shu .new{margin:0;padding:6px 10px;border-bottom:1px solid #ebebeb;background:#f5f5f5}
.foot-grid{display:flex;gap:16px;padding:14px 12px;align-items:flex-start}
.head-line{flex:0 0 120px}
.head-line img{width:120px;height:160px;object-fit:cover;border:1px solid #ccc;background:#eee}
.top-unit{flex:1 1 auto;min-width:0}
.top-unit h1{margin:0 0 8px;font-size:22px;font-weight:bold;color:#373a3c;font-family:宋体,SimSun,serif}
.card-meta{margin:0 0 8px}
.card-meta p{margin:2px 0;color:#5a5a5a}
.card-meta a{color:#0275d8} .card-meta a:hover{color:#f0ad4e}
.name-col{margin:0 0 10px;color:#818a91;line-height:1.7;max-height:4.8em;overflow:hidden}
.name-col.pagebar{max-height:none}
.unit-cell{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.unit-cell .hd-inner{display:inline-block;padding:6px 18px;border-radius:2px;
  background:#6896b1;color:#fff;text-decoration:none;border:0;cursor:pointer;font-size:13px}
.unit-cell .hd-inner.mod-box{background:#f0ad4e}
.unit-cell .hd-inner.mod-box:hover{background:#ec9c2a}
.unit-cell .hd-inner:hover{background:#5485a2}
.cate-hd{margin-top:6px;background:none;border:0;color:#0275d8;cursor:pointer;font-size:12px;padding:0}

/* ---- 章节目录:多栏网格(杰奇特征) ---- */
.meta-box{border:1px solid #b4c2cb;background:#fff;padding:1px 1px 10px;margin-bottom:5px}
.meta-box .menu-link{margin:0 0 6px;height:2em;line-height:2em;font-size:1.25em;font-weight:bold;
  text-indent:0.6em;color:#373a3c;background:#f5f5f5;border-bottom:1px solid #ebebeb}
.wrap-hd{list-style:none;margin:0 0 6px;padding:4px 8px;
  display:grid;grid-template-columns:repeat(4,1fr);gap:0 14px}
.wrap-hd.tool-bd{grid-template-columns:repeat(2,1fr)}
.wrap-hd li{line-height:2.1;border-bottom:1px dotted #e2e2e2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wrap-hd a{color:#0275d8;text-decoration:none}
.wrap-hd a:hover{color:#f0ad4e;text-decoration:underline}
.catehd{padding:8px;text-align:center;border-top:1px solid #ebebeb}
.catehd a,.catehd span{display:inline-block;padding:4px 14px;margin:0 4px;
  border:1px solid #b4c2cb;color:#0275d8;text-decoration:none;border-radius:2px}
.catehd a:hover{background:#6896b1;color:#fff;border-color:#6896b1}
.catehd select{padding:4px 8px;border:1px solid #b4c2cb;border-radius:2px;margin:0 6px}

/* ---- 正文阅读器:居中窄栏 宋体 ---- */
.wen-info{border:1px solid #b4c2cb;background:#fff;padding:0 1px 14px;margin-bottom:5px}
.wen-info .new{margin:0;padding:6px 10px;border-bottom:1px solid #ebebeb;background:#f5f5f5}
.grid-main{text-align:center;padding:16px 12px 6px}
.grid-main h1{margin:0 0 6px;font-size:22px;font-weight:bold;color:#373a3c;font-family:宋体,SimSun,serif}
.grid-main p{margin:0;color:#818a91} .grid-main a{color:#0275d8}
.ft-name{text-align:center;padding:8px;line-height:2}
.ft-name a,.ft-name span{display:inline-block;padding:4px 16px;margin:0 4px;
  border:1px solid #b4c2cb;color:#0275d8;text-decoration:none;border-radius:2px}
.ft-name a:hover{background:#6896b1;color:#fff;border-color:#6896b1}
.sort{max-width:720px;margin:10px auto;padding:0 14px;
  font-family:宋体,SimSun,Verdana,Arial,sans-serif;font-size:20px;line-height:2;color:#2b2b2b}
.sort .newinner{font-size:24px;text-align:center;margin:0 0 18px;font-weight:bold}
.sort p{margin:0 0 1em;text-indent:2em}

/* ---- 移动端:栗棕单栏(88106 wap 风) ---- */
@media (max-width:1023px){
  .name-panel,.hdpanel{margin:5px auto;padding:0 5px;background:#f4ede7;color:#4b3a30}
  .shu,.meta-box,.wen-info{border-color:#e0d3c9}
  .shu .new,.wen-info .new,.meta-box .menu-link{
    color:#fff;background:linear-gradient(#8a5a48,#734636);border-bottom-color:#5e392c}
  .foot-grid{flex-direction:column;align-items:center;text-align:center}
  .wrap-hd{grid-template-columns:repeat(2,1fr)}
  .wrap-hd.tool-bd{grid-template-columns:1fr}
  .card-meta a,.wrap-hd a,.top-unit h1{color:#8a5230}
  .unit-cell .hd-inner{background:#8a5230} .unit-cell .hd-inner.mod-box{background:#a5522f}
  .ft-name a,.catehd a{color:#8a5230;border-color:#e0d3c9}
  .sort{max-width:100%;font-size:19px}
}

/* ===== gudian v2 —— 往 88106 再靠:两排导航 / 区块头更多 / 红书名 / 编辑推荐封面行 ===== */

/* 分类栏(主导航下的第二排,白底) */
.text-mod{background:#fff;border-bottom:2px solid #6896b1;margin-bottom:8px}
.site-wrap{max-width:1000px;margin:0 auto;display:flex;flex-wrap:wrap;padding:0 6px}
.site-wrap a{display:block;padding:7px 15px;color:#373a3c;font-size:13px;text-decoration:none}
.site-wrap a:hover,.site-wrap a.nav-ft{color:#0275d8;font-weight:bold}
/* 主导航去掉下边距(交给 subnav) */
.hot-line{margin-bottom:0}

/* 区块标题:左强调条 + 右「更多..」 */
.menu-link{position:relative;border-left:3px solid #6896b1;padding-left:2px}
.hot-wrap{position:absolute;right:10px;top:0;font-weight:normal;font-size:12px;color:#818a91;text-indent:0}
.hot-wrap:hover{color:#f0ad4e}

/* 序号方块(杰奇风,不圆角) */
.book-link li::before{border-radius:0;width:1.3em;line-height:1.4em}
.book-link li{display:flex;align-items:baseline;gap:4px}
.hd-cell{color:#f0ad4e;flex:0 0 auto;font-size:12px}
.book-link a{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 热读/流行榜:书名红色带《》,作者次要 */
.cat-text h4{font-size:14px;margin:0 0 3px}
.cat-text h4 a{color:#c0392b;font-weight:bold}
.cat-text h4 a:hover{color:#f0ad4e}
.author-panel{color:#7a7a7a;margin:0 0 3px}

/* 编辑推荐:封面行(4 封面 + 书名) */
.rank{display:flex;gap:10px;padding:10px 8px}
.menutext{flex:1 1 0;text-align:center;min-width:0;text-decoration:none}
.menutext img{width:100%;max-width:96px;height:120px;object-fit:cover;border:1px solid #ccc;background:#eee}
.menutext span{display:block;margin-top:4px;font-size:12px;color:#0275d8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menutext:hover span{color:#f0ad4e}

/* 最近更新:[分类] 前缀 */
.link li{gap:5px}
.box-link{color:#f0ad4e;flex:0 0 auto;font-size:12px}

/* 移动端:分类栏换行、封面行两列 */
@media (max-width:1023px){
  .text-mod{border-bottom-color:#734636}
  .site-wrap a.nav-ft,.site-wrap a:hover{color:#8a5230}
  .rank{flex-wrap:wrap}
  .menutext{flex:0 0 calc(25% - 8px)}
  .menu-link{border-left-color:#8a5a48}
}

/* ===== gudian v3 —— 细节抠近 88106:密度 / 卡片 / 区块头 / 序号 ===== */

/* 区块更紧凑 + 淡渐变标题 */
.site{margin-bottom:6px}
.menu-link{height:2em;line-height:2em;font-size:14px;text-indent:0.5em;
  background:linear-gradient(#fbfbfb,#eef1f4);border-bottom:1px solid #dfe3e7;
  border-left:3px solid #6896b1;padding-left:2px}
.hot-wrap{top:0;line-height:2em}

/* 左右榜单:无 tag、行紧、橙/灰方块序号 */
.book-link{padding:5px 8px}
.book-link li{display:list-item;line-height:2.0}
.book-link li::before{border-radius:0;background:#c3ccd2;width:1.35em;line-height:1.4em;margin-right:5px}
.book-link li:nth-child(-n+3)::before{background:#e8792b}
.book-link a{color:#33587a}
.book-link a:hover{color:#f0ad4e}

/* 热读/流行榜卡片:封面更大、书名红《》、作者蓝、简介淡 */
.hot{gap:12px 10px;padding:10px 8px}
.cha-cover{width:calc(50% - 5px)}
.hotitem{flex:0 0 66px}
.hotitem img{width:66px;height:88px}
.cat-text h4{font-size:15px;margin:0 0 3px;line-height:1.3}
.cat-text h4 a{color:#c0392b;font-weight:bold}
.author-panel{color:#0275d8;margin:0 0 3px}
.update-box{color:#8a8a8a;line-height:1.55;-webkit-line-clamp:3}

/* 编辑推荐封面稍大 */
.rank{padding:12px 8px}
.menutext img{height:126px;max-width:100px}

/* 最近更新更紧、[分类] 橙 */
.link{padding:5px 8px}
.link li{line-height:2.0;gap:5px}
.story-hd{max-width:40%}
.box-link{color:#e8792b}

/* 公告更贴近 88106(红字、细体) */
.unit-link .hd{color:#c0392b;padding:8px 10px;font-size:12px;line-height:1.8}

@media (max-width:1023px){
  .book-link a{color:#8a5230}
  .book-link li:nth-child(-n+3)::before{background:#a5522f}
  .author-panel{color:#8a5230}
}

/* v4: 单排导航,恢复 nav 下边距(去掉 subnav) */
.hot-line{margin-bottom:8px}

/* ===== gudian v5 —— 移动端复刻 88106 wap:咖啡棕皮肤 + 票签式区块头 + [分类]书名|作者 ===== */

/* 桌面隐藏移动专用的分类/作者内联标记(桌面榜单只显示书名+序号) */
.head-bd, .bar { display: none; }

@media (max-width: 1023px) {
  /* —— 基调:米色页 + 咖啡棕 —— */
  body, .rowpanel, .time, .name-panel, .hdpanel {
    background: #efe7db; color: #4b3a30;
    font-family: 宋体, SimSun, "Microsoft YaHei", sans-serif;
  }
  a { color: #8a5a3c; }

  /* —— 顶栏 / 头部 —— */
  .cat-unit { background: #e7dccc; border-bottom: 1px solid #d8c8b3; }
  .img-main { text-align: right; }
  .sec-cover { color: #6b4a3a; }
  .text { background: #efe7db; border: 0; box-shadow: none; }
  .cellmod { min-height: auto; padding: 10px 12px; flex-wrap: wrap; }
  .tag-text a { color: #7a4326; font-size: 27px; font-family: 宋体, SimSun, serif; letter-spacing: 1px; }
  .area-sec a { color: #7a4326; }

  /* 搜索:圆角胶囊 + 棕按钮 */
  .rowline { width: 100%; margin: 10px 0 0; order: 9; }
  .panelmeta { flex: 1 1 auto; width: auto; border: 1px solid #cbb9a0;
    border-radius: 18px 0 0 18px; padding: 8px 14px; background: #fff; }
  .title-mod { border-radius: 0 18px 18px 0; background: #8a5a3c; padding: 0 18px; }
  .title-mod:hover { background: #734326; }

  /* —— 导航:棕色条,分类横排 —— */
  .hot-line, .text-mod { background: #a07f66; border: 0; margin-bottom: 8px; }
  .navinfo, .site-wrap { height: auto; padding: 0; flex-wrap: wrap; }
  .navinfo a, .site-wrap a {
    color: #fff8f2; font-weight: normal; font-size: 13px; line-height: 38px;
    padding: 0 13px; border: 0; }
  .navinfo a:hover, .navinfo a.nav-ft,
  .site-wrap a:hover, .site-wrap a.nav-ft { background: #8a6853; color: #fff; }
  .main-panel a { color: #7a4326; }

  /* —— 区块:白卡 + 票签式标题 —— */
  .time { margin: 6px auto; padding: 0 8px; }
  .wrap-panel { flex-direction: column; margin: 0; }
  .text-info, .site-area, .meta-block { flex: 1 1 auto; width: 100%; margin: 0; }
  .site { border: 1px solid #e0d3c4; background: #fff; border-radius: 5px;
    margin-bottom: 10px; padding: 2px; }

  /* 票签标题:左小图标 + 棕粗字 + 右「更多›」 */
  .menu-link {
    height: auto; line-height: 1.6; font-size: 15px; font-weight: bold;
    color: #7a4326; background: #faf5ee; border: 0; border-bottom: 1px solid #ecdfce;
    border-left: 0; border-radius: 4px 4px 0 0; padding: 8px 12px 8px 30px; text-indent: 0;
    position: relative; }
  .menu-link::before { content: "❖"; position: absolute; left: 10px; top: 8px;
    color: #b07a4a; font-size: 14px; }
  .hot-wrap { position: absolute; right: 10px; top: 8px; font-size: 12px;
    font-weight: normal; color: #a98; }
  .hot-wrap::after { content: " ›"; color: #b07a4a; font-weight: bold; }

  /* 榜单条目:无序号,[分类] 书名 | 作者 */
  .book-link { padding: 6px 12px; }
  .book-link li { display: flex; align-items: baseline; gap: 5px; line-height: 2.2;
    border-bottom: 1px dashed #efe6da; }
  .book-link li:last-child { border-bottom: 0; }
  .book-link li::before { display: none; }           /* 去掉序号方块 */
  .head-bd { display: inline; color: #a0673f; flex: 0 0 auto; font-size: 13px; }
  .book-link a { color: #4b3a30; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .book-link a:hover { color: #a5342a; }
  .bar { display: inline; color: #b0a596; flex: 0 0 auto; font-size: 12px; margin-left: auto; }
  .bar::before { content: "| "; color: #d8ccbc; }

  /* 热读/流行:单列封面卡,书名红棕 */
  .hot { flex-direction: column; gap: 0; padding: 6px 12px; }
  .cha-cover { width: 100%; padding: 10px 0; border-bottom: 1px dashed #efe6da; }
  .cha-cover:last-child { border-bottom: 0; }
  .hotitem { flex: 0 0 72px; }
  .hotitem img { width: 72px; height: 96px; }
  .cat-text h4 a { color: #a5342a; }
  .author-panel { color: #8a5a3c; }
  .update-box { color: #8a7d6d; -webkit-line-clamp: 3; }

  /* 编辑推荐封面行:4→横向滚动/两行 */
  .rank { flex-wrap: wrap; gap: 10px; }
  .menutext { flex: 0 0 calc(25% - 8px); }
  .menutext span { color: #8a5a3c; }

  /* 最近更新 */
  .link { padding: 6px 12px; }
  .link li { line-height: 2.2; border-bottom: 1px dashed #efe6da; }
  .box-link { color: #a0673f; }
  .story-hd { color: #4b3a30; max-width: 44%; }
  .baritem { color: #7a6a58; }
  .desc-area { color: #b0a596; }

  /* 公告 / 友链 */
  .unit-link .hd { color: #a5342a; }
  .title { border-color: #e0d3c4; background: #fff; }
  .sitearea a { color: #8a5a3c; }
}

/* ===== gudian v6 —— 移动端补齐头部/页脚咖啡棕(压过 biquge 基础样式) ===== */
@media (max-width: 1023px) {
  /* 页面底色 */
  body.info-name { background: #efe7db !important; }

  /* 顶栏 */
  .info-name .cat-unit { background: #e7dccc !important; border-bottom: 1px solid #d8c8b3 !important; }
  .info-name .sec-cover { color: #6b4a3a !important; }

  /* 头部 + logo */
  .info-name .text { background: #efe7db !important; border: 0 !important; box-shadow: none !important; }
  .info-name .text .tag-text a, .info-name .tag-text a { color: #7a4326 !important; }
  .info-name .area-sec a { color: #7a4326 !important; }

  /* 导航条:主导航 + 手机分类导航都刷成棕色条 */
  .info-name .hot-line, .info-name .main-panel {
    background: #a07f66 !important; border: 0 !important; }
  .info-name .hot-line .navinfo a, .info-name .navinfo a,
  .info-name .main-panel a { color: #fff8f2 !important; }
  .info-name .navinfo a.nav-ft, .info-name .navinfo a:hover,
  .info-name .main-panel a:hover { background: #8a6853 !important; color: #fff !important; }
  .info-name .main-panel { display: flex; flex-wrap: wrap; padding: 0; }
  .info-name .main-panel a { padding: 0 12px; line-height: 38px; }

  /* 搜索 */
  .info-name .panelmeta { border: 1px solid #cbb9a0 !important; background: #fff !important; }
  .info-name .title-mod { background: #8a5a3c !important; color: #fff !important; }

  /* 页脚 + 回顶按钮 */
  .info-name .cat-mod { background: #efe7db !important; color: #8a7d6d !important;
    border-top: 1px solid #e0d3c4 !important; }
  .info-name .cat-mod a { color: #8a5a3c !important; }
  .info-name .title { background: #fff !important; border-color: #e0d3c4 !important; }
  .info-name .cont-unit button { background: #8a5a3c !important; color: #fff !important; border: 0 !important; }
}

/* ===== gudian v7 —— 移动端统一单排导航(≤1023):隐藏 13 项功能导航,用单排可滑分类条 ===== */
@media (max-width: 1023px) {
  /* 隐藏桌面那条多项导航,避免平板宽度换行成多排 */
  body.info-name .hot-line { display: none !important; }

  /* 单排、不换行、可横向滑动的棕色分类导航 */
  body.info-name .main-panel {
    display: flex !important; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; background: #a07f66 !important;
    margin: 0 0 8px; padding: 0; scrollbar-width: none; }
  body.info-name .main-panel::-webkit-scrollbar { display: none; }
  body.info-name .main-panel a {
    flex: 0 0 auto; white-space: nowrap; color: #fff8f2 !important;
    line-height: 40px; padding: 0 15px; font-size: 13px; border: 0; }
  body.info-name .main-panel a:hover,
  body.info-name .main-panel a.nav-ft { background: #8a6853 !important; color: #fff !important; }

  /* 头部再兜底一层高特异性,防基础样式压住(硬刷新后即可见) */
  body.info-name header.text { background: #efe7db !important; }
  body.info-name header.text h1.tag-text a { color: #7a4326 !important; }
  body.info-name header.text .area-sec a {
    background: #8a5a3c !important; color: #fff !important; border-radius: 4px; padding: 4px 12px !important; }
}

/* ===== gudian 分类页 v2 —— 88106 风:封面书单 + 右侧栏 ===== */
.read-ft { display: flex; gap: 0; align-items: flex-start; margin: 0 -0.5%; }
.colpanel { flex: 1 1 auto; margin: 0 0.5%; min-width: 0; }
.hd-main { flex: 0 0 24.25%; margin: 0 0.5%; min-width: 0; }
.rank-bar { float: right; font-weight: normal; font-size: 12px; color: #a99; margin-right: 10px; }

/* 书单 */
.cover { list-style: none; margin: 0; padding: 0; }
.cell-item { display: flex; gap: 14px; padding: 14px 12px; border-bottom: 1px solid #eee; }
.cell-item:last-child { border-bottom: 0; }
.cellmeta { flex: 0 0 90px; }
.cellmeta img { width: 90px; height: 120px; object-fit: cover; border: 1px solid #ccc; background: #eee; }
.mainimg { flex: 1 1 auto; min-width: 0; }
.info-unit { margin: 0 0 6px; font-size: 16px; font-weight: bold; line-height: 1.3; }
.info-unit a { color: #2b2b2b; }
.info-unit a:hover { color: #c0392b; }
.top-link { margin: 0 0 7px; color: #999; font-size: 12px; }
.top-link em { color: #c0392b; font-style: normal; }
.top-link .hd-panel { margin-left: 14px; }
.img { margin: 0 0 7px; color: #6b6b6b; line-height: 1.75; font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.info-ft { margin: 0; color: #999; font-size: 12px; }
.info-ft a { color: #0275d8; }
.info-ft a:hover { color: #f0ad4e; }

/* 右侧:分类阅读 */
.col { padding: 10px 8px; display: flex; flex-wrap: wrap; gap: 7px; }
.col a { display: block; padding: 5px 11px; border: 1px solid #dfe3e7; border-radius: 3px;
  color: #33587a; font-size: 12px; background: #fafcfd; }
.col a:hover, .col a.metawrap { background: #6896b1; color: #fff; border-color: #6896b1; }

/* —— 移动端(≤1023):单栏、封面缩小、右侧栏落到下方 —— */
@media (max-width:1023px) {
  .read-ft { flex-direction: column; margin: 0; }
  .colpanel, .hd-main { flex: 1 1 auto; width: 100%; margin: 0; }
  .cell-item { padding: 12px 10px; gap: 10px; }
  .cellmeta { flex: 0 0 72px; }
  .cellmeta img { width: 72px; height: 96px; }
  .info-unit { font-size: 15px; }
  .info-unit a { color: #4b3a30; }
  .info-unit a:hover { color: #a5342a; }
  .top-link .hd-panel { margin-left: 8px; }
  .col a { color: #8a5230; background: #fff; border-color: #e0d3c4; }
  .col a:hover, .col a.metawrap { background: #8a5230; color: #fff; border-color: #8a5230; }
}

/* 分类页侧栏搜索框 */
.metapanel{display:flex;padding:10px 8px;gap:0}
.metapanel input{flex:1 1 auto;min-width:0;border:1px solid #cbd6dc;border-right:0;border-radius:3px 0 0 3px;padding:7px 9px;font-size:12px}
.metapanel button{flex:0 0 auto;border:0;background:#6896b1;color:#fff;padding:0 14px;border-radius:0 3px 3px 0;cursor:pointer;font-size:13px}
.metapanel button:hover{background:#5485a2}
@media (max-width:1023px){.metapanel button{background:#8a5230}.metapanel input{border-color:#e0d3c4}}

/* ===== gudian v8 —— 桌面页脚/底色改成 88106 白色(移动端咖啡棕由 v6 覆盖) ===== */
body.info-name { background: #fff; }
.info-name .cat-mod { background: #fff; color: #999; border-top: 1px solid #e6e6e6; padding: 16px 0; box-shadow: none; }
.info-name .cat-mod a { color: #6896b1; }
.info-name .cat-mod a:hover { color: #f0ad4e; }

/* ===== gudian 目录页 v2 —— 88106 两栏:主栏 + 右侧栏 ===== */
.panel { display: flex; gap: 0; align-items: flex-start; margin: 0 -0.5%; }
.item-cover { flex: 1 1 auto; margin: 0 0.5%; min-width: 0; }
.cate { flex: 0 0 24.25%; margin: 0 0.5%; min-width: 0; }

/* 右栏「同类推荐」:把 hot_recommendations 片段收进侧栏,做成带序号的书名列表 */
.cat-meta .area-block { border: 0; margin: 0; padding: 0; }
.cat-meta .area-block > h2,
.cat-meta .area-block > h3 { display: none; }   /* 用 gd-hd 标题,隐藏内层标题 */
.cat-meta .tag-box { display: block; padding: 6px 10px; counter-reset: rec; }
.cat-meta .tag-box a {
  display: block; counter-increment: rec; line-height: 2.1; padding-left: 22px; position: relative;
  color: #33587a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px dotted #ececec; }
.cat-meta .tag-box a:last-child { border-bottom: 0; }
.cat-meta .tag-box a::before {
  content: counter(rec); position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px;
  line-height: 16px; text-align: center; font-size: 11px; color: #fff; background: #c3ccd2; }
.cat-meta .tag-box a:nth-child(-n+3)::before { background: #e8792b; }
.cat-meta .tag-box a:hover { color: #f0ad4e; }

/* 侧栏搜索(复用分类页样式,若未加载则给个兜底) */
.cate .metapanel { display: flex; padding: 10px 8px; }
.cate .metapanel input { flex: 1 1 auto; min-width: 0; border: 1px solid #cbd6dc; border-right: 0; border-radius: 3px 0 0 3px; padding: 7px 9px; font-size: 12px; }
.cate .metapanel button { border: 0; background: #6896b1; color: #fff; padding: 0 14px; border-radius: 0 3px 3px 0; cursor: pointer; font-size: 13px; }

/* 主栏封面略放大,信息更从容 */
.item-cover .head-line { flex: 0 0 130px; }
.item-cover .head-line img { width: 130px; height: 173px; }

/* —— 移动端(≤1023):单栏,右侧栏落到下方 —— */
@media (max-width:1023px) {
  .panel { flex-direction: column; margin: 0; }
  .item-cover, .cate { flex: 1 1 auto; width: 100%; margin: 0; }
  .item-cover .head-line { flex: 0 0 96px; }
  .item-cover .head-line img { width: 96px; height: 128px; }
  .cat-meta .tag-box a { color: #8a5230; }
  .cat-meta .tag-box a:nth-child(-n+3)::before { background: #a5522f; }
  .cate .metapanel button { background: #8a5230; }
}

/* ===== gudian 同类推荐:清掉基础样式的灰底按钮外观,改成干净列表 ===== */
.cat-meta .area-block { background: transparent; padding: 0; margin: 0; }
.cat-meta .tag-box a {
  background: transparent; height: auto; text-align: left; border-radius: 0;
}

/* ===== gudian 正文页 v2 —— 88106/杰奇阅读器精修 ===== */
/* 章节导航:居中大按钮,上一章 | 章节目录 | 下一章 */
.ft-name { padding: 12px 8px; text-align: center; }
.ft-name a, .ft-name span {
  display: inline-block; min-width: 118px; padding: 8px 20px; margin: 4px 5px;
  border: 1px solid #cbd6dc; color: #0275d8; background: #fff; border-radius: 3px; text-decoration: none; }
.ft-name a:hover { background: #6896b1; color: #fff; border-color: #6896b1; }
.ft-name span { color: #b7c0c6; background: #f5f7f8; cursor: default; }

/* 正文:居中舒适阅读栏 */
.sort { max-width: 840px; margin: 6px auto; padding: 14px 22px 24px;
  font-family: 宋体, SimSun, "Microsoft YaHei", serif; font-size: 19px; line-height: 2.05; color: #2f2f2f; }
.sort .newinner { font-size: 24px; text-align: center; margin: 4px 0 22px; font-weight: bold; color: #333; }
.sort p { margin: 0 0 1.1em; text-indent: 2em; }

/* 底部「热门推荐」:清掉基础灰按钮,做成 4 栏网格干净链接 */
.datebox { border: 1px solid #b4c2cb; background: #fff; padding: 1px; margin-top: 8px; }
.datebox .area-block { background: transparent; padding: 8px; margin: 0; border: 0; }
.datebox .area-block > h2, .datebox .area-block > h3 { display: none; }
.datebox .tag-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.datebox .tag-box a {
  background: #f7f9fa; border: 1px solid #e3e9ec; height: auto; line-height: 2; text-align: center;
  color: #33587a; border-radius: 3px; padding: 2px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.datebox .tag-box a:hover { background: #6896b1; color: #fff; border-color: #6896b1; }

@media (max-width:1023px) {
  .sort { max-width: 100%; font-size: 19px; padding: 12px 14px 20px; }
  .ft-name a, .ft-name span { min-width: 88px; padding: 7px 12px; }
  .datebox .tag-box { grid-template-columns: repeat(2, 1fr); }
  .datebox .tag-box a { color: #8a5230; }
  .datebox .tag-box a:hover { background: #8a5230; border-color: #8a5230; color: #fff; }
}

/* 正文页热门推荐只显示 8 条(4 栏 x 2 行) */
.datebox .tag-box a:nth-child(n+9){display:none}

/* 章节导航按钮:文字居中(min-width 下短字靠左的修正) */
.ft-name a, .ft-name span { text-align: center; }

/* ===== gudian 阅读器工具条(照 88106:背景色/前景色/字体)+ 导航字号 ===== */
.name { background: #5f9ea0; color: #fff; padding: 8px 12px; margin: 6px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 13px; }
.name .area-grid { margin: 0 3px 0 12px; }
.name .time-panel { width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.75);
  cursor: pointer; padding: 0; border-radius: 2px; vertical-align: middle; }
.name .time-panel:hover { outline: 2px solid #fff; }
.name .box-list { background: #fff; border: 1px solid #cbd6dc; color: #0275d8;
  padding: 3px 11px; cursor: pointer; border-radius: 2px; margin: 0 2px; font-size: 13px; }
.name .box-list:hover { background: #6896b1; color: #fff; border-color: #6896b1; }

/* 章节导航按钮:字号放大 + 居中 */
.ft-name a, .ft-name span { font-size: 16px; text-align: center; font-weight: bold; }

@media (max-width:1023px) {
  .name { background: #8a6a52; }
  .name .area-grid { margin-left: 6px; }
  .ft-name a, .ft-name span { font-size: 15px; }
}

/* ===== gudian 阅读器工具条:移入面包屑行 · 缩小 · 去绿底 ===== */
.grid-bd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: #f5f5f5; border-bottom: 1px solid #ebebeb; padding: 5px 10px; margin: 0; }
.grid-bd .new { flex: 1 1 auto; min-width: 180px; margin: 0; padding: 0; background: none; border: 0; }
.name { background: transparent; color: #666; padding: 0; margin: 0; gap: 3px; font-size: 12px; flex: 0 0 auto; }
.name .area-grid { margin: 0 2px 0 8px; color: #777; }
.name .time-panel { width: 15px; height: 15px; border: 1px solid #b9b9b9; border-radius: 2px; }
.name .time-panel:hover { outline: 2px solid #6896b1; }
.name .box-list { padding: 1px 8px; font-size: 12px; margin: 0 1px; }
@media (max-width:1023px) {
  .name .area-grid { margin-left: 4px; }
  .name .box-list { padding: 1px 6px; }
}

/* ===== gudian 章节导航按钮:固定等宽·行高垂直居中·16px 加粗(最终规整) ===== */
.ft-name { padding: 14px 8px; text-align: center; font-size: 0; line-height: normal; }
.ft-name a, .ft-name span {
  display: inline-block; width: 132px; height: 40px; line-height: 40px; margin: 0 7px; padding: 0;
  font-size: 16px; font-weight: bold; text-align: center; box-sizing: border-box;
  border: 1px solid #cbd6dc; color: #0275d8; background: #fff; border-radius: 3px; text-decoration: none; }
.ft-name a:hover { background: #6896b1; color: #fff; border-color: #6896b1; }
.ft-name span { color: #b7c0c6; background: #f5f7f8; cursor: default; }
@media (max-width:1023px) {
  .ft-name a, .ft-name span { width: 30%; max-width: 120px; margin: 0 4px; font-size: 15px; }
}

/* ===== gudian v9 —— 移动端头部/导航用单类选择器(避开 skin 对复合选择器改名不一致的坑) ===== */
@media (max-width: 1023px) {
  .cat-unit { background: #e7dccc !important; }
  .sec-cover { color: #6b4a3a !important; }
  .text { background: #efe7db !important; }
  .cellmod { background: transparent !important; }
  .tag-text a { color: #7a4326 !important; }
  .area-sec a { background: #8a5230 !important; color: #fff !important; }

  /* 搜索:去淡蓝,棕按钮 */
  .rowline { background: transparent !important; }
  .panelmeta { background: #fff !important; border: 1px solid #cbb9a0 !important; }
  .title-mod { background: #8a5230 !important; color: #fff !important; }

  /* 导航:隐藏 13 项主导航,手机分类导航做成单排棕条 + 明确间距 */
  .hot-line { display: none !important; }
  .main-panel { display: flex !important; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; background: #a07f66 !important; margin: 0 0 8px !important; padding: 0 !important; }
  .main-panel::-webkit-scrollbar { display: none; }
  .main-panel a { flex: 0 0 auto; white-space: nowrap; color: #fff8f2 !important;
    line-height: 40px; padding: 0 16px !important; font-size: 14px; border: 0 !important; }
  .main-panel a:active, .main-panel a:hover { background: #8a6853 !important; }
}

/* ===== gudian v10 —— 目录分页按钮:白底蓝字边框(基础样式给了蓝底导致蓝字看不清) ===== */
.catehd { padding: 10px 8px; text-align: center; display: flex; flex-wrap: wrap;
  gap: 8px; align-items: center; justify-content: center; }
.catehd a, .catehd span {
  background: #fff !important; border: 1px solid #cbd6dc !important; color: #0275d8 !important;
  padding: 8px 18px !important; border-radius: 3px !important; text-decoration: none;
  font-weight: normal !important; display: inline-block; width: auto !important; }
.catehd a:hover { background: #6896b1 !important; color: #fff !important; border-color: #6896b1 !important; }
.catehd span { color: #b7c0c6 !important; background: #f5f7f8 !important; cursor: default; }
.catehd select { padding: 8px 10px; border: 1px solid #cbd6dc; border-radius: 3px; min-width: 150px; }
@media (max-width: 1023px) {
  .catehd select { flex: 1 1 100%; order: -1; margin-bottom: 4px; }
  .catehd a, .catehd span { padding: 8px 22px !important; }
  .catehd a:hover { background: #8a5230 !important; border-color: #8a5230 !important; }
}

/* ===== gudian v11 —— 移动端页头改棕(元素选择器,skin 打不动)+ 导航自适应换行 ===== */
@media (max-width: 1023px) {
  header { background: #a07f66 !important; }          /* site-header(<header>元素)整条棕 */
  header > div { background: transparent !important; }/* header-inner(直接子 div) */
  header h1 a { color: #fff8f2 !important; }          /* logo 文字白 */
  .area-sec a { background: #6f4e35 !important; color: #fff !important; }
  .cat-unit { background: #8a6a52 !important; }
  .sec-cover { color: #f0e6da !important; }

  /* 导航条自适应:换行,全部可见,不横向溢出 */
  .main-panel { flex-wrap: wrap !important; overflow-x: visible !important; justify-content: center; }
  .main-panel a { padding: 0 13px !important; line-height: 38px; }
}

/* ===== gudian v12 —— 章节导航按钮不加粗 + 去掉浮动「顶部」按钮 ===== */
.ft-name a, .ft-name span { font-weight: normal !important; }
.cont-unit { display: none !important; }

/* ===== gudian v13 —— 分类阅读:网格排列(桌面 2 列 / 移动 4 列,整齐两排) ===== */
.col { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.col a { text-align: center; padding: 6px 4px !important; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023px) {
  .col { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ===== gudian v14 —— 目录页操作按钮移动端等宽铺满自适应 ===== */
@media (max-width: 1023px) {
  .unit-cell { display: flex !important; gap: 8px; flex-wrap: nowrap; width: 100%; }
  .unit-cell .hd-inner { flex: 1 1 0; text-align: center; padding: 10px 4px !important;
    white-space: nowrap; box-sizing: border-box; }
  .top-unit { width: 100%; }
}

/* ===== gudian v15 —— 头部/页脚/底色 权威覆盖(元素+单类,不依赖 tpl-gudian,盖死冲突) ===== */
.text { background: #fff !important; box-shadow: none !important; }
.cellmod { background: transparent !important; }
.cat-mod { background: #fff !important; }
body { background: #fff !important; }
@media (max-width: 1023px) {
  body { background: #efe7db !important; }
  .text { background: #8a6a52 !important; }
  .cellmod { background: transparent !important; }
  .tag-text a { color: #fff8f2 !important; }
  .cat-mod { background: #efe7db !important; color: #8a7d6d !important; }
  .cat-mod a { color: #8a5a3c !important; }
}

/* ===== gudian v16 —— 正文页 reader-head 清爽可读(去掉误染的棕横条,书名/作者可读) ===== */
.wen-info { background: #fff !important; }
.grid-main { background: transparent !important; }
.grid-main h1 { color: #333 !important; }
.grid-main p { color: #8a8a8a !important; }
.grid-main p a { color: #0275d8 !important; }
@media (max-width: 1023px) {
  .wen-info { background: #fff !important; }
  .grid-main { background: transparent !important; }
  .grid-main h1 { color: #333 !important; }
  .grid-main p { color: #8a8a8a !important; }
}

/* ===== gudian v17 —— 移动导航全名/超窄短名 + 面包屑白字 + 操作按钮文字居中 ===== */
/* 默认(含移动 520~1023)显示全名;超窄 <520 才用 2 字短名 */
.ft { display: none; }
@media (max-width: 520px) {
  .mn-full { display: none; }
  .ft { display: inline; }
}
/* 目录页面包屑(移动棕条):文字纯白 */
@media (max-width: 1023px) {
  .shu .new, .shu .new a { color: #fff !important; }
}
/* 目录页操作按钮:文字居中 */
.unit-cell .hd-inner { text-align: center !important; justify-content: center; }

/* ===== gudian v18 —— 目录页操作按钮:文字水平+垂直居中(修沉底) ===== */
.unit-cell .hd-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.2 !important;
}
