@charset 'UTF-8';
/*
Theme ID: 子鼠
Author: 于于于
Author QQ:279434877
Author Email:yuxizhan@126.com
Author URL: http://www.4kku.com/
*/
/* ============================================================
   0. 主题变量
   ============================================================ */
:root{
    --primary:      rgba(20,70,50,1);
    --primary-90:   rgba(20,70,50,.9);
    --primary-70:   rgba(20,70,50,.7);
    --primary-50:   rgba(20,70,50,.5);
    --primary-30:   rgba(20,70,50,.3);
    --primary-25:   rgba(20,70,50,.25);
    --primary-20:   rgba(20,70,50,.2);
    --primary-15:   rgba(20,70,50,.15);
    --primary-10:   rgba(20,70,50,.1);
    --primary-06:   rgba(20,70,50,.06);
    --primary-05:   rgba(20,70,50,.05);
    --primary-02:   rgba(20,70,50,.02);
    --primary-01:   rgba(20,70,50,.01);
    --accent:       #f60;
    --accent-dark:  #e05800;
    --accent-50:    rgba(246,102,0,.5);
    --accent-12:    rgba(246,102,0,.12);
    --accent-06:    rgba(246,102,0,.06);
    --border:       #d7d7d7;
    --text:         #666;
    --text-dark:    #333;
    --text-muted:   #999;
    --white-75:     rgba(255,255,255,.75);
    --white-50:     rgba(255,255,255,.5);
    --radius:       .2rem;
    --sprite-size:  296px 140px;
}

/* ============================================================
   1. 基础重置
   ============================================================ */
blockquote,body,dd,dl,figure,form,h1,h2,h3,h4,h5,h6,ol,p,ul{margin:0}
ol,ul{padding:0;list-style:none}
a{text-decoration:none;color:inherit;outline:0}
a[href]:active,button:active{background-image:none}
em{font-style:normal}
h1,h2,h3,h4,h5,h6,input,select,textarea{font-size:100%}
input,select,textarea{font-family:inherit;box-sizing:border-box}
img{display:inline-block}
p{word-break:break-all}
main{display:block}
output{speak:digits}
html{font-size:16px}
@media (min-width:320px){html{font-size:20px}}
@media (min-width:375px){html{font-size:24px}}
@media (min-width:640px){html{font-size:28px}}
@media (min-width:768px){html{font-size:16px}}
@media (min-width:992px){html{font-size:20px}}
@media (min-width:1200px){html{font-size:24px}}
html{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',sans-serif;
    line-height:1.5;
    -webkit-user-select:none;
    fill:currentColor;
    -webkit-tap-highlight-color:transparent;
    -webkit-text-size-adjust:none;
    -webkit-touch-callout:none;
    background-color:var(--primary-10);
    color:var(--text);
}
body{margin:0 auto}
button,input{outline:0}
ul li{list-style:none outside none}
a{color:var(--primary-90);text-decoration:none}
a:hover{color:var(--accent)}
.clear{clear:both}
.cf:after,.cf:before{display:table;content:" "}
.cf:after{clear:both}

/* 雪碧图公共规则 */
.gotop,
.header_logo_left .back-btn,
.header_logo_left .book-btn,
.header_logo_right #menu-btn,
.header_logo_right #search-btn{
    background-image:url(default.png);
    background-repeat:no-repeat;
    background-size:var(--sprite-size);
    display:block;
    text-indent:-2500rem;
    font-size:0;
    overflow:hidden;
    margin:3px 0 0;
    content:"";
    width:30px;
    height:30px;
}

/* ============================================================
   2. 头部 Header
   ============================================================ */
.header{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    padding:10px 0;
    margin:0 auto;
    position:relative;
    z-index:990;
    overflow:visible !important;
}
.header .header_logo{
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    float:none;
    width:auto;
    height:auto;
    min-height:0;
    max-height:52px;
    margin:0 0 0 10px;
    padding:0;
    line-height:1;
    text-align:left;
    overflow:visible;
    flex:0 0 auto;
    font-weight:700;
}
.header .header_logo > a{
    display:inline-flex;
    align-items:center;
    width:auto;
    height:auto;
    line-height:1;
    color:inherit;
    text-decoration:none;
    border:none;
}
.header .header_logo img,
.header .header_logo img.site-logo-img{
    display:block;
    width:auto;
    height:44px;
    max-width:200px;
    max-height:44px;
    object-fit:contain;
    margin:0;
    padding:0;
    border:none;
    background:transparent;
    transition:opacity .2s ease;
}
.header .header_logo img:hover{opacity:.85}
.header .header_logo span.site-logo-text{
    display:inline-block;
    font-size:1.25rem;
    line-height:1;
    font-weight:800;
    letter-spacing:0;
    white-space:nowrap;
    background:linear-gradient(135deg,#3b82f6,#8b5cf6);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
}
.header .header_logo span{font-size:1.25rem;letter-spacing:.05rem;}
.header_logo_left{float:left;margin-left:10px;}
.header_logo_left li{float:left;margin-right:5px;}
.header_logo_left .back-btn{background-position:-80px -106px;}
.header_logo_left .book-btn{background-position:-243px -55px;}
.header_logo_middle{
    float:left;
    width:calc(100% - 160px);
    text-align:center;
    font-size:.8125rem;
    line-height:35px;
    height:35px;
    overflow:hidden;
    font-weight:700;
    color:var(--text-dark);
}
.header_logo_middle a{color:var(--text-dark)}
.header_logo_right{float:right;margin-right:10px;}
.header_logo_right li{float:left;}
.header_logo_right li:first-child{margin-right:10px;}
.header_logo_right #search-btn{background-position:-142px -106px;}
.header_logo_right #menu-btn{background-position:-110px -106px;}
.header_search{
    display:none;
    margin-top:.2rem;
    padding:10px .5rem 0;
    width:calc(100% - 1rem);
    float:left;
    border-top:1px solid var(--primary-25);
    flex:unset;
}
.header_search form{display:flex;align-items:center;height:1.8rem;}
.header_search form input{
    width:calc(100% - 4rem);
    text-indent:.5rem;
    flex-grow:2;
    font-size:.75rem;
    height:100%;
    border:.05rem solid var(--primary-50);
    border-radius:.15rem 0 0 .15rem;
    border-right:none;
    background:var(--primary-05);
}
.header_search form button{
    width:4rem;
    height:100%;
    background-color:var(--primary-50);
    color:#fff;
    cursor:pointer;
    border-radius:0 .15rem .15rem 0;
    font-size:.75rem;
    border:none;
}
.header_search form button:hover{background-color:var(--primary-70);}
.header_login{display:none}
.nav{
    display:none;
    overflow:hidden;
    margin:0 auto;
    width:100%;
    height:4rem;
    background-color:var(--primary-50);
    font-size:.75rem;
}
.nav ul li{float:left;width:16.66666%;text-align:center;line-height:2rem;}
.nav ul li .active,.nav ul li:hover{color:var(--accent)}
.nav ul li a{display:block;color:#fff;width:100%;height:100%;}
.nav ul li a.active,.nav ul li a:hover{
    background-color:var(--accent);
    border-color:var(--accent);
    color:#fff;
}
.header-right{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
}
.top-btn{padding:4px 10px;white-space:nowrap;}
.header-right .top-btn,
.header-right .user-dropdown-wrapper .dropdown-toggle{
    display:inline-block;
    height: 43.19px;
    line-height: 43.19px;
    padding: 0px 10px;
    font-size:14px;
    border:none;
    border-radius:3px;
    background:rgb(125 153 142);
    color:#fff;
    text-decoration:none;
    cursor:pointer;
    white-space:nowrap;
    box-sizing:border-box;
    transition:background .2s;
    min-width:50px;
}
.header-right .top-btn:hover,
.header-right .user-dropdown-wrapper .dropdown-toggle:hover{background:var(--accent)}
.user-dropdown-wrapper{position:relative;cursor:pointer;}
.dropdown-toggle{white-space:nowrap;}
.dropdown-menu{
    display:none;
    position:absolute;
    right:0;
    background:#fff;
    border:1px solid #eee;
    z-index:9999 !important;
    padding:8px 0;
    box-shadow:0 4px 14px rgba(0,0,0,.12);
}
.user-dropdown-wrapper:hover .dropdown-menu{display:block}
.dropdown-menu a{display:block;padding:9px 16px;white-space:nowrap;color:var(--text-dark);}
.dropdown-menu a:hover{background:#f5f5f5;color:var(--accent);}
.dropdown-menu .divider{height:1px;background:#eee;margin:6px 0;}

/* ============================================================
   3. 首页热榜 / 推荐
   ============================================================ */
#main{margin:0 auto;width:100%}
.main-height{min-height:calc(100vh - 136px);}
#hotcontent{overflow:hidden}

/* 合并：所有区块标题 */
#hotcontent h2,
#hotcontent > h2,
#newscontent h2,
.novelslist .content h2{
    overflow:hidden;
    margin:0;
    padding:0 0 0 .5rem;
    height:2rem;
    background-color:var(--primary-10);
    font-weight:700;
    font-size:.875rem;
    line-height:2rem;
}
.novelslist .content h2 a{color:var(--text)}
#hotcontent .nobook{text-align:center;padding:2rem 0;}
#hotcontent .l .item{height:4.5rem;padding:.5rem 0;margin:0 .5rem;}
#hotcontent .l .item+.item{border-top:1px dashed var(--border);}
#hotcontent .l .item dl dt{
    overflow:hidden;
    height:.8125rem;
    font-size: 15px;
    line-height:.8125rem;
    font-weight:700;
}
#hotcontent .l .item dl dt span{
    float:right;
    width:56px;
    color:#9e9e9e;
    font-weight:400;
    font-size:.875rem;
}
#hotcontent .l .item dl dd{
    overflow:hidden;
    padding:.15rem 0 0;
    height:2.5rem;
    font-size: 13px;
    line-height:.85rem;
    color:#888;
    text-align:justify;
}
#hotcontent .l #tempBookcase .item dl dd{line-height:1.2rem;}
#hotcontent .l .item dl .btm{margin: .1rem 0 0;font-size: 14px;}
#hotcontent .l .item dl .btm em{
    border:1px solid var(--accent);
    padding:0 .15rem;
    font-style:normal;
    float:right;
    margin-left:.15rem;
    color:var(--accent);
    font-size:.5rem;
    transform:scale(1);
    vertical-align:bottom;
}
#hotcontent .l .item dl .btm .blue{color:#88c6e5;border:1px solid #88c6e5;}
#hotcontent .l .item dl{padding:0}
#hotcontent .l .item .image{float:left;margin-right:.5rem;}
#hotcontent .l .item .image img{
    padding:.2rem;
    border:.05rem solid var(--primary-20);
    background-color:var(--white-75);
    width:3rem;
    height:4rem;
}
#hotcontent .r{font-size:.625rem}
#hotcontent .r li{
    overflow:hidden;
    margin:0 .5rem;
    padding:.1rem 0;
    height:1.5rem;
    line-height:1.5rem;
}
#hotcontent .r li+li{border-top:1px dashed var(--border);}
#hotcontent .r li span{float:left;display:inline-block;}
#hotcontent .r li .s1{width:2rem}
#hotcontent .r li .s2{font-size:.75rem;color:#b3b3b3;width:calc(100% - 8rem);}
#hotcontent .r li .s3{width:30px}
#hotcontent .r li .s4{width:50px;color:#b3b3b3;}
#hotcontent .r li .s5{
    float:right;
    overflow:hidden;
    width:5.2rem;
    text-align:right;
    white-space:nowrap;
}
#hotcontent h2 i,
#newscontent h2 i{
    color:var(--accent);
    margin-right:.3rem;
    font-size:.75rem;
    vertical-align:-1px;
}

/* ============================================================
   4. 小说列表
   ============================================================ */
.novelslist{margin:0;overflow:hidden;}
.novelslist .content .image{float:left;padding:10px 0 0 5px;width:71px;}
.novelslist .content .image img{
    padding:1px;
    width:67px;
    height:82px;
    border:1px solid #ddd;
    background-color:#fff;
}
.novelslist .content dl{float:right;padding:10px 0 0;width:219px;}
.novelslist .content dl dt{overflow:hidden;height:25px;font-weight:700;line-height:1.5625rem;}
.novelslist .content dl dd{overflow:hidden;height:60px;line-height:1.25rem;}
.novelslist .content ul{padding:0 .5rem .25rem;}
.novelslist .content ul li{
    overflow:hidden;
    height:1.5rem;
    line-height:1.5rem;
    font-size:.75rem;
    padding:.1rem 0;
}
.novelslist .content ul li a{float:left;width:calc(100% - 6rem);}
.novelslist .content ul li+li{border-top:1px dashed var(--border);}
.novelslist .content ul li i{
    float:right;
    width:5.2rem;
    text-align:right;
    font-style:normal;
    font-size:.625rem;
}

/* ============================================================
   5. 新闻 / 最近更新
   ============================================================ */
#newscontent .l{overflow:hidden;font-size:.625rem;}
#newscontent .l li{
    overflow:hidden;
    margin:0 .5rem;
    padding:.1rem 0;
    height:1.5rem;
    line-height:1.5rem;
}
#newscontent .l li+li{border-top:1px dashed var(--border);}
#newscontent .l li span{float:left;display:inline-block;}
#newscontent .l li .s1{width:3rem;}
#newscontent .l li .s3{display:none}
#newscontent .l li .s4{display:none;width:8rem;text-align:left;}
#newscontent .l li .s5{float:right;width:2rem;text-align:left;}
#newscontent .r{font-size:.625rem}
#newscontent .r ul{padding:0 .5rem}
#newscontent .r li{
    overflow:hidden;
    padding:.1rem 0;
    height:1.5rem;
    line-height:1.5rem;
}
#newscontent .r li+li{border-top:1px dashed var(--border);}
#newscontent .r li span{float:left;display:inline-block;}
#newscontent .r li .s1{width:2rem}
#newscontent .r li .s2{font-size:.75rem;color:#b3b3b3;width:calc(100% - 8rem);}
#newscontent .r li .s3{width:30px}
#newscontent .r li .s4{width:50px;color:#b3b3b3;}
#newscontent .r li .s5{
    float:right;
    overflow:hidden;
    width:5.2rem;
    text-align:right;
    white-space:nowrap;
}
#newscontent .l ul li.list-header{
    font-weight:normal;
    background-color:var(--primary-05);
    color:#888;
    height:1.5rem;
    line-height:1.5rem;
    margin:0;
    padding:.1rem .5rem;
    border-bottom:1px dashed var(--border);
}
#newscontent .list-empty{
    padding:1rem .5rem;
    text-align:center;
    color:var(--text-muted);
    font-style:italic;
    font-size:.7rem;
}
#newscontent .l li .vip-badge,
#newscontent .l li .vip-chapter-badge{
    display:inline-block !important;
    float:none;
    margin-left:4px;
    padding:0 3px;
    font-size:10px;
    font-weight:normal;
    color:var(--accent);
    border:1px solid var(--accent);
    border-radius:2px;
    vertical-align:1px;
}

/* ============================================================
   6. 书籍详情
   ============================================================ */
.box_con,.con_top{overflow:hidden}
.con_top{
    padding:0 .5rem;
    background-color:var(--primary-10);
    text-align:left;
    line-height:2rem;
    font-size:.725rem;
}
.detail-rec-inline a{color:var(--primary-90)}
.detail-rec-inline a:hover{color:var(--accent)}
#sidebar{float:left;width:4.6rem;text-align:center;}
#maininfo{display:flow-root;margin:.5rem .5rem 0;}
#fmimg{position:relative;overflow:hidden;}
#fmimg img{
    overflow:hidden;
    padding:.25rem;
    border:.05rem solid var(--border);
    background-color:#fff;
}
#info{font-size:.75rem;margin-left:5rem;margin-top:-.2rem;}
#info,#info h1{overflow:hidden}
#info h1{
    font-weight:700;
    font-size:.8125rem;
    height:1.5rem;
    line-height:1.5rem;
    overflow:hidden;
    color:var(--primary-90);
}
.booktitle h1{float:left}
.booktitle em{float:right;font-style:normal;}
#info p{width:100%;line-height:1.2rem;height:1.2rem;}
#info p,#info1,#intro{overflow:hidden}
#info1{font-size:.75rem}
#info1 h1{text-align:center;font-weight:700;font-size:1rem;}
#info1 .booktitle h1{float:left}
#info1 .booktitle em{float:right;font-style:normal;}
#info1 p{text-align:center;line-height:1.5625rem;}
#info1 p,#intro{overflow:hidden}
#intro{
    float:left;
    padding:.2rem 0;
    border-top:.05rem dashed var(--border);
    font-size:.75rem;
    text-align:justify;
}
#intro p{margin-top:10px;text-indent:2em;}
.lastchapter{
    float:left;
    width:100%;
    padding:.2rem 0;
    overflow:hidden;
    font-size:.75rem;
    border-top:.05rem dashed var(--border);
}
.readbtn{display:flex;float:left;width:100%;padding:.5rem 0;}
.readbtn a{
    width:32%;
    text-align:center;
    font-size:.75rem;
    padding:.25rem 0;
    background:var(--primary-10);
    border:.05rem solid var(--primary-10);
    border-radius:3px;
}
.readbtn .shelf-btn{
    margin:0 0 0 2%;
    background:var(--primary-50);
    border:.05rem solid var(--primary-10);
    color:#fff;
}
.readbtn .shelf-btn.in-bookshelf{
    background:var(--primary-10);
    color:#fff;
    cursor:default;
}
.readbtn .addbookcase{margin:0 0 0 2%;}
.listtj{
    float:left;
    padding:.2rem .5rem;
    text-align:justify;
    font-size:.75rem;
}
.listtj a{
    margin:0 .5rem 0 0;
    background:0 0;
    padding:0;
    border:none;
    border-radius:0;
}
#list{font-size: 16px;}
#list dl{overflow:hidden}
#list dt{
    float:left;
    width:100%;
    background-color:var(--primary-10);
    text-align:center;
    font-size:.8125rem;
    line-height: 2rem;
    font-weight:700;
}
#list dd{
    overflow:hidden;
    vertical-align:middle;
    width:calc(100% - 1rem);
    height:2rem;
    border-bottom:1px dashed var(--border);
    text-align:left;
    padding:0 .5rem;
    line-height:2rem;
}
#list dd:after{
    transform:scale(1.5,2.5);
    content:">";
    float:right;
    width:.5rem;
    font-weight:100;
    color:var(--primary-50);
}
#list dd a:visited{color:var(--text-muted)}
#list p{float:left;padding:.2rem .5rem;text-align:justify;}
#list p,.newscontent,.newslist{font-size:.75rem}

/* ============================================================
   7. 新闻内容 / 列表
   ============================================================ */
.newscontent p{margin:.5rem;text-indent:2rem;}
.newslist p{
    margin:0 .5rem;
    line-height:1.5rem;
    overflow:hidden;
    height:1.5rem;
}
.newslist p+p{border-top:1px dashed var(--border);}
.newslist p a{width:calc(100% - 4.5rem);float:left;}
.newslist p span{
    float:right;
    text-align:right;
    width:3rem;
    overflow:hidden;
    white-space:nowrap;
}

/* ============================================================
   8. 分页
   ============================================================ */
.listpage{
    padding:.5rem .5rem;
    line-height:1.5rem;
    width:calc(100% - 1rem);
    overflow:hidden;
    border-bottom:1px solid var(--border);
    height:1.5rem;
}
.listpage span{height:1.5rem;line-height:1.5rem;text-align:center;}
.listpage .left{float:left;width:25%;}
.listpage .left a,.listpage .right a{display:inline-block;height:1.5rem;width:90%;}
.listpage .left a{float:left}
.listpage .right a{float:right}
.listpage .right{float:right;width:25%;}
.listpage .middle{
    width:49%;
    border:.05rem solid var(--border);
    display:block;
    float:left;
    height:1.45rem;
    line-height:1.45rem;
}
.listpage .middle em{
    width:80%;
    text-align:center;
    color:var(--text-muted);
    font-style:normal;
    height:30px;
}
.listpage .middle a,.listpage .middle em{display:inline-block;float:left;line-height:36px;}
.listpage .middle a{width:19%;height:36px;vertical-align:middle;}
.listpage .middle select{
    clear:both;
    border:none;
    display:inline-block;
    float:left;
    font-style:normal;
    height:1.45rem;
    line-height:1.45rem;
    text-align:center;
    width:100%;
}
.listpage .middle select,.listpage .middle select option{color:var(--text);}
.listpage .onclick{background:var(--primary-50);color:#fff;}
.listpage .before{background:#cecece;color:#fff;}

/* ============================================================
   9. 阅读页
   ============================================================ */
.con_top #readSet{clear:both;border-top:.05rem solid var(--primary-10);}
.con_top #readSet .rf{float:right}
.con_top #readSet .rc{color:var(--text-dark);padding-left:.5rem;}
.con_top #readSet a.ra{
    border:.05rem solid #ccc;
    display:inline-block;
    width:.8125rem;
    height:.8125rem;
    margin-right:.25rem;
    overflow:hidden;
    vertical-align:middle;
    margin-top:-.2rem;
}
.con_top #readSet .rt{padding:0 5px}
.bookname{
    text-align:center;
    font-size:1rem;
    line-height:2rem;
    padding:1rem 5%;
    color:var(--primary-90);
    font-weight:400;
}
.bottem1{
    clear:both!important;
    display:flex;
    font-size:.75rem;
    margin:.2rem 5%;
    text-align:center;
    background:var(--white-50);
    border:.05rem solid var(--primary-25);
}
.box_con #content{
    font-size:1rem;
    letter-spacing:.1em;
    padding:0 5%;
    text-align:justify;
    line-height:1.8;
}
.box_con #content p{text-indent:2rem;margin:.8rem 0;}
.box_con #content .report{text-align:center;font-size:.8125rem;line-height:2rem;}
.bottem2{
    clear:both!important;
    margin:.5rem 5%;
    text-align:center;
    font-size:.75rem;
    display:flex;
    background:var(--white-50);
    border:.05rem solid var(--primary-25);
}
.bottem1 a,.bottem2 a{
    padding:.25rem 0;
    float:left;
    width:33.33333%;
    border-right:.05rem solid var(--primary-25);
}
.bottem1 a:last-child,.bottem2 a:last-child{border-right:none;}
.bottem1 .addbookcase_r,.bottem2 .addbookcase_r{color:var(--accent);}
.readtj{display:block;padding:.2rem 5%;text-align:justify;font-size:.75rem;}
.readtj a{margin:0 .5rem 0 0;}
.pages{
    border-top:.05rem solid var(--primary-20);
    text-align:center;
    font-size:.75rem;
    margin:.5rem 0 0;
    padding:.5rem 0 0;
}
.pagination{
    margin:0;
    display:inline-block;
    padding-left:0;
    margin:.5rem 0;
    border-radius:var(--radius);
}
.pagination>li{display:inline}
.pagination>li>a,.pagination>li>span{
    position:relative;
    float:left;
    padding:.2rem .5rem;
    margin-left:-1px;
    text-decoration:none;
    background-color:var(--primary-02);
    border:1px solid var(--primary-20);
}
.pagination>li>a:focus,.pagination>li>a:hover,
.pagination>li>span:focus,.pagination>li>span:hover{
    z-index:2;
    background-color:var(--primary-10);
}
.pagination>li:first-child>a,.pagination>li:first-child>span{
    margin-left:0;
    border-top-left-radius:var(--radius);
    border-bottom-left-radius:var(--radius);
}
.pagination>li:last-child>a,.pagination>li:last-child>span{
    border-top-right-radius:4px;
    border-bottom-right-radius:4px;
}
.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover{
    z-index:3;
    cursor:default;
    color:var(--accent);
}
.pagination>.disabled>a,
.pagination>.disabled>a:focus,
.pagination>.disabled>a:hover,
.pagination>.disabled>span,
.pagination>.disabled>span:focus,
.pagination>.disabled>span:hover{
    color:#777;
    cursor:not-allowed;
    background-color:#fff;
    border-color:#ddd;
}

/* 窄屏分页压缩：只留上一页 / 当前页 / 下一页 / 跳至 */
@media (max-width:768px){
    .pagination .page-first,
    .pagination .page-last,
    .pagination .page-ellipsis{display:none;}
    .pagination > .page-link:not(.active):not(.page-prev):not(.page-next){display:none;}
    .pagination{gap:.3rem;}
    .pagination .page-link{padding:0 .5rem;}
}

/* ============================================================
   10. 友情链接 / 页脚
   ============================================================ */
#firendlink{display:none}
#footer,.footer{
    overflow:hidden;
    text-align:center;
    font-size:.625rem;
    line-height:1.5rem;
    border-top:.05rem solid var(--border);
    padding:.5rem 0;
}
.footer_link{
    overflow:hidden;
    margin:5px auto;
    height:25px;
    border-bottom:3px solid #88c6e5;
    line-height:1.5625rem;
}
.footer_cont p{color:#b2b2b2}

/* 友情链接（精简：文字左对齐 + 按钮极右 + 细边框） */
.fl-section{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    margin:.5rem auto !important;
    padding:.5rem !important;
    border:2px solid rgb(124 152 141) !important;
    background:var(--primary-01) !important;
    border-radius:0 !important;
    box-sizing:border-box !important;
}
@media screen and (min-width:768px){
    .fl-section{width:57.5rem !important;}
}
.fl-head{display:contents !important;}
.fl-head h2{
    order:1 !important;
    margin:0 !important;
    font-size:.6875rem !important;
    font-weight:400 !important;
    color:var(--text-dark) !important;
    line-height:1.5 !important;
    display:inline-flex !important;
    align-items:center !important;
}
.fl-head h2 i{display:none !important;}
.fl-head h2::after{content:"：" !important;margin-right:.3rem !important;}
.fl-links{
    order:2 !important;
    display:inline-flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    padding:0 !important;
    margin:0 !important;
    font-size:.6875rem !important;
    line-height:1.5 !important;
}
.fl-item{
    display:inline-block !important;
    margin:0 .5rem 0 0 !important;
    color:var(--text) !important;
    text-decoration:none !important;
}
.fl-item:hover{color:var(--accent) !important;}
.fl-item-name{display:inline !important;}
.fl-item-desc{display:none !important;}
.fl-apply-btn{
    order:3 !important;
    margin-left:auto !important;
    display:inline-flex !important;
    align-items:center !important;
    padding:0 !important;
    background:none !important;
    border:none !important;
    color:var(--text-muted) !important;
    font-size:.625rem !important;
    font-family:inherit !important;
    cursor:pointer !important;
    transition:color .2s !important;
}
.fl-apply-btn i{
    display:inline-block !important;
    font-size:.65rem !important;
    margin-right:.2rem !important;
}
.fl-apply-btn:hover{color:var(--accent) !important;text-decoration:underline !important;}

/* ============================================================
   11. 回到顶部
   ============================================================ */
.gotop{
    position:fixed;
    z-index:9999;
    width:40px;
    height:40px;
    border-radius:3px;
    opacity:.75;
    background-position:-167px -100px;
    background-color:var(--primary-10);
    border:.05rem solid var(--primary-10);
    right:.5rem;
    bottom:30%;
}

/* ============================================================
   12. 登录页
   ============================================================ */
.login form{padding:1rem;font-size:.75rem;}
.login form .form-group+.form-group{margin-top:.5rem;}
.login form .form-group .form-title{
    float:left;
    width:2.5rem;
    overflow:hidden;
    line-height:1.5rem;
}
.login form .form-group .form-content{width:calc(100% - 2.5rem);overflow:hidden;}
.login form .form-group .form-content input{
    border:1px solid var(--primary-20);
    width:100%;
    font-size:.625rem;
    line-height:1.5rem;
    text-indent:.5rem;
}
.login form .form-submit{margin-top:2rem;text-align:center;}
.login form .form-submit button{
    border:1px solid var(--primary-20);
    background-color:var(--primary-10);
    border-radius:3px;
    font-size:.8125rem;
    padding:.2rem .5rem;
}
.login form .form-submit button:hover{
    background-color:var(--accent);
    color:#fff;
    border-color:var(--accent);
}
.hidden-xs{display:none!important}

/* ============================================================
   13. PC 端适配（>=768px）
   ============================================================ */
@media screen and (min-width:768px){
    .hidden-xs{display:inline!important;}
    .header{width:min(57.5rem, calc(100% - 20px));padding-top:15px;}
    #back-btn,.header_logo_left,.header_logo_middle,.header_logo_right{display:none;}
    .header .header_logo{
        order:1;
        display:inline-flex;
        align-items:center;
        float:left;
        flex-shrink:0;
        margin:0;
        max-height:52px;
        line-height:1.25rem;
    }
    .header .header_logo img,
    .header .header_logo img.site-logo-img{
        height:44px;
        max-width:200px;
        max-height:44px;
    }
    .header .header_logo span.site-logo-text{font-size:1.25rem;}
    .header_search{
        order:2;
        display:block;
        float:right;
        width:18rem;
        margin: 0rem;
        border:none;
        padding:0;
        flex-shrink:0;
    }
    .header-right{
        order:3;
        display:flex;
        align-items:center;
        flex-shrink:0;
        margin-left:12px;
    }
    .header_login{
        display:block;
        float:right;
        margin:.3rem 0 0 .5rem;
        background-color:var(--primary-50);
        color:#fff;
        border-radius:.15rem;
        font-size:.75rem;
        line-height:1.8rem;
        padding:0 .5rem;
    }
    .header_login:hover{background-color:var(--accent);color:#fff;}
    .nav{width:min(57.5rem, calc(100% - 20px));height:2rem;display:block;}
    .nav ul li{width:6.667%;}
    .nav ul li.active,.nav ul li:hover{background:var(--primary-30);}
    #main{width:min(57.5rem, calc(100% - 20px));}
    .main-height{min-height:calc(100vh - 136px - 120px);}
    #hotcontent{margin-top:.5rem}
    #hotcontent .l{
        float:right;
        width:45.75rem;
        overflow:hidden;
        border:.1rem solid var(--primary-50);
        background:var(--primary-01);
        padding-bottom:.469rem;
    }
    #hotcontent .l .item{width: 21.8rem;height:5.9rem;float:left;}
    #hotcontent .l .item .image{flex-shrink:0;}
#hotcontent .l .item .image img{width:4.3rem;height:5.4rem;}
@media (max-width:768px){
    #hotcontent .l .item{width:100% !important;}
}
    #hotcontent .l .item dl dd{height:4rem;line-height:1rem;}
    #hotcontent .l .item+.item{border:none;}
    #hotcontent .rank{float:left;width:min(57.3rem, calc(100% - 20px));padding:0 0 .5rem;}
    #hotcontent .login{float:left;width:44.3rem;padding:0 0 .5rem;}
    #hotcontent .rank .item{float:left;width: 18rem;}
    #hotcontent .r{
        float:left;
        width:11rem;
        border:.1rem solid var(--primary-50);
        background:var(--primary-01);
    }
    #hotcontent .r li .s5{width:2.5rem}
    #hotcontent .r li .s1{width:1.5rem}
    #hotcontent .r li .s2{width:calc(100% - 4rem)}
    .novelslist{margin:.5rem auto 0;background:var(--primary-01);}
    .novelslist .content{
        float:left;
        width:calc((100% - .6rem - 20px)/ 3);
        border:.1rem solid var(--primary-50);
    }
    .novelslist .content+.content{margin-left:10px;}
    #newscontent{margin:.5rem auto 0}
    #newscontent .r{
        float:left;
        width:11rem;
        border:.1rem solid var(--primary-50);
        background:var(--primary-01);
    }
    #newscontent .r li .s1{width:1.5rem}
    #newscontent .r li .s5{width:2.5rem}
    #newscontent .r li .s2{width:calc(100% - 4rem)}
    #newscontent .l{
        float:right;
        width:45.75rem;
        border:.1rem solid var(--primary-50);
        background:var(--primary-01);
    }
    #newscontent .l li .s1{display:inline;width:3rem;}
    #newscontent .l li .s2{width: 14rem;display:block;}
    #newscontent .l li .s3{width: 10rem;display:block;}
    #newscontent .l li .s4{display:block}
    #newscontent .l ul li.list-header .s1{width:3rem;}
    #newscontent .l ul li.list-header .s2{width: 14rem;}
    #newscontent .l ul li.list-header .s3{width: 10rem;}
    #newscontent .l ul li.list-header .s4{width:7rem;text-align:left;}
    #newscontent .l ul li.list-header .s5{width:3rem;text-align:right;float:right;}
    .box_con{
        width:min(57.3rem, calc(100% - 20px));
        margin:.5rem auto 0;
        border:.1rem solid var(--primary-50);
        background-color:var(--primary-01);
    }
    .con_top{font-size:.75rem}
    #sidebar{width:8rem;text-align:left;}
    #fmimg,#sidebar{float:left}
    #fmimg img{width:7rem;height:9.7rem;}
    #maininfo{margin:.5rem .5rem 0}
    #info{margin-left:0;font-size:.75rem;}
    #info h1{text-align:left;font-size:1rem;}
    #info p{float:left;width:50%;text-align:left;line-height:1.5rem;height:1.5rem;}
    #intro{float:none;width:auto;overflow:hidden;height:2.6rem;line-height:1.3rem;}
    .readbtn{float:none;display:inline;border:none;padding:0;}
    .readbtn a{padding:.25rem 2rem;}
    .readbtn a:hover{background:var(--accent);color:#fff;}
    #info1{margin-top:0}
    #list dd{width: calc(33.33333% - 1rem);float:left;}
    #list dd:after{display:none}
    .con_top #readSet{float:right;border:none;}
    .con_top #readSet .rf{margin-left:1rem;}
    .newscontent,.newslist{
        margin-top:.5rem;
        padding-bottom:.2rem;
        overflow:hidden;
        border:.1rem solid var(--primary-50);
        background:var(--primary-01);
    }
    .newscontent p{margin:.5rem}
    .newslist p{
        margin:0;
        float:left;
        width:calc(50% - 1rem);
        border-bottom:1px dashed var(--border);
        padding:0 .5rem;
    }
    .newslist p+p{border-top:none;}
    #firendlink{
        margin:.5rem auto;
        padding:.5rem;
        width:56.3rem;
        border:.1rem solid var(--primary-50);
        background:var(--primary-01);
        line-height:1rem;
        font-size:.625rem;
        display:block;
    }
    #firendlink a{display:inline-block;margin:0 .2rem 0 0;color:var(--text);}
    .gotop{right:36%;bottom:10%;margin-right:-25rem;}
    .login form{padding:1rem 10rem;}
    #footer,.footer{
        margin:.5rem auto 0;
        padding:.5rem 0;
        width:44.5rem;
        border:none;
    }
    .footer_cont p{width:88%}
    .visible-xs{display:none!important;}
}

/* ============================================================
   14. 响应式：LOGO 缩小
   ============================================================ */
@media (max-width:768px){
    .header-right .top-btn,.nav-lang-switch{display:none;}
    .header .header_logo{
        margin-left:10px;
        max-height:44px;
    }
    .header .header_logo img,
    .header .header_logo img.site-logo-img{
        height:36px;
        max-width:160px;
        max-height:36px;
    }
    .header .header_logo span.site-logo-text{font-size:1.15rem;}
}
@media (max-width:480px){
    .header .header_logo{
        margin-left:8px;
        max-height:38px;
    }
    .header .header_logo img,
    .header .header_logo img.site-logo-img{
        height:30px;
        max-width:130px;
        max-height:30px;
    }
    .header .header_logo span.site-logo-text{font-size:1rem;}
}

/* ============================================================
   15. 移动端 Header 布局优化（≤768px）
   ============================================================ */
@media (max-width:768px){
    .header{
        display:flex;
        flex-wrap:wrap;
        align-items:center;
        justify-content:space-between;
        padding:10px 12px;
        background:#fff;
        border-bottom:1px solid rgba(20,70,50,.12);
        box-shadow:0 1px 3px rgba(0,0,0,.04);
        box-sizing:border-box;
    }
    .header .header_logo{
        order:1;
        margin:0 !important;
        flex:0 0 auto;
        max-height:40px;
    }
    .header .header_logo img.site-logo-img{
        height:32px !important;
        max-width:140px !important;
        max-height:32px !important;
    }
    .header .header_logo span.site-logo-text{font-size:1.1rem !important;}
    .header_logo_right{
        order:2;
        display:flex !important;
        align-items:center;
        float:none !important;
        margin:0 0 0 auto !important;
        padding:0 !important;
    }
    .header_logo_right li{
        float:none !important;
        margin:0 !important;
        list-style:none;
    }
    .header_logo_right #menu-btn{display:none !important;}
    .header_logo_right #search-btn{
        width:34px !important;
        height:34px !important;
        margin:0 !important;
        background-size:var(--sprite-size) !important;
        background-position:-142px -106px !important;
        border-radius:50%;
        transition:background-color .2s;
        cursor:pointer;
    }
    .header_logo_right #search-btn:active{background-color:rgba(20,70,50,.12);}
    .header-right{
        order:3;
        display:flex !important;
        align-items:center;
        gap:6px;
        margin:0 0 0 8px !important;
        flex-shrink:0;
    }
    .header-right > a[href="/user/history"],
    .header-right > a[href="/user/bookshelf"]{display:none !important;}
    .header-right .top-btn,
    .header-right .user-dropdown-wrapper .dropdown-toggle{
        display:inline-block !important;
        height:32px !important;
        line-height:32px !important;
        padding:0 12px !important;
        font-size:13px !important;
        min-width:auto !important;
        border-radius:16px !important;
        background:rgb(125 153 142) !important;
        color:#fff !important;
        white-space:nowrap;
    }
    .header-right .top-btn:hover,
    .header-right .user-dropdown-wrapper .dropdown-toggle:hover{background:var(--accent) !important;}
    .header-right .user-dropdown-wrapper{position:relative;}
    .header-right .user-dropdown-wrapper .dropdown-toggle{cursor:pointer;user-select:none;}
    .header-right .user-dropdown-wrapper .dropdown-menu,
    .header-right .user-dropdown-wrapper:hover .dropdown-menu{display:none !important;}
    .header-right .user-dropdown-wrapper.show .dropdown-menu{
        display:block !important;
        position:absolute !important;
        right:0 !important;
        top:calc(100% + 8px) !important;
        left:auto !important;
        min-width:170px !important;
        background:#fff !important;
        border:1px solid #eee !important;
        border-radius:12px !important;
        box-shadow:0 8px 24px rgba(0,0,0,.15) !important;
        padding:6px 0 !important;
        z-index:9999 !important;
        overflow:hidden;
        animation:mDropdownIn .18s ease-out;
    }
    @keyframes mDropdownIn{
        from{opacity:0;transform:translateY(-6px);}
        to{opacity:1;transform:translateY(0);}
    }
    .header-right .dropdown-menu a{
        display:block !important;
        padding:11px 18px !important;
        font-size:14px !important;
        line-height:1.4 !important;
        color:var(--text-dark) !important;
        white-space:nowrap;
        background:#fff;
        transition:background .15s;
    }
    .header-right .dropdown-menu a:hover,
    .header-right .dropdown-menu a:active{
        background:#f5f5f5 !important;
        color:var(--accent) !important;
    }
    .header-right .dropdown-menu a i{width:18px;margin-right:6px;color:#8896a1;}
    .header-right .dropdown-menu a[href="/user/logout"] i{color:#d9534f;}
    .header-right .dropdown-menu .divider{height:1px;background:#eee;margin:6px 0;}
    .header_search{
        order:4;
        width:100% !important;
        display:none;
        margin:0 !important;
        padding:10px 0 2px !important;
        float:none !important;
        border-top:1px solid rgba(20,70,50,.12);
        box-sizing:border-box;
    }
    .header_search.active{display:block !important;}
    .header_search form{display:flex;align-items:center;height:38px;margin:0;}
    .header_search form input{
        flex:1;
        width:auto !important;
        height:100% !important;
        font-size:14px !important;
        padding:0 12px !important;
        text-indent:0 !important;
        box-sizing:border-box;
        border:1px solid var(--primary-30) !important;
        border-right:none !important;
        border-radius:19px 0 0 19px !important;
        background:var(--primary-02) !important;
        outline:none;
    }
    .header_search form button{
        width:72px !important;
        height:100% !important;
        font-size:14px !important;
        border-radius:0 19px 19px 0 !important;
        background:rgba(20,70,50,.6) !important;
        color:#fff;
        border:none;
        cursor:pointer;
    }
    .header_search form button:hover{background:var(--accent) !important;}
    .nav{
        display:block !important;
        width:100%;
        height:auto !important;
        background:var(--primary-50);
        overflow-x:auto;
        overflow-y:hidden;
        -webkit-overflow-scrolling:touch;
        white-space:nowrap;
        scrollbar-width:none;
        -ms-overflow-style:none;
        box-sizing:border-box;
    }
    .nav::-webkit-scrollbar{display:none;}
    .nav ul{
        display:flex !important;
        flex-wrap:nowrap !important;
        white-space:nowrap;
        padding:0 !important;
        margin:0 !important;
        width:max-content;
        min-width:100%;
    }
    .nav ul li{
        flex:0 0 auto !important;
        line-height: 44px !important;
        text-align:center;
        display:inline-block !important;
        font-size: 14px !important;
        box-sizing:border-box;
    }
    .nav ul li a{
        display:inline-block !important;
        padding:0 !important;
        height:auto !important;
        color:#fff;
    }
    .nav ul li a.active,
    .nav ul li a:hover{color: #ffffff;}
}

/* ============================================================
   16. 移动端章节列表修复（#list）
   ============================================================ */
@media (max-width:768px){
    #list dt{
        display:flex !important;
        flex-wrap:wrap !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:.4rem !important;
        float:none !important;
        clear:both !important;
        width:100% !important;
        height:auto !important;
        min-height:2rem !important;
        box-sizing:border-box !important;
        padding:.45rem .6rem !important;
        line-height:1.5 !important;
        text-align:left !important;
        overflow:visible !important;
    }
    #list dt::after{content:"";display:block;clear:both;}
    #list dt > span{
        float:none !important;
        display:inline-flex !important;
        align-items:center !important;
        gap:.3rem !important;
        margin-left:auto !important;
        font-size:12px !important;
        font-weight:400 !important;
        line-height:1.3 !important;
        white-space:nowrap;
    }
    #list dl > a{
        display:block;
        float:none !important;
        clear:both !important;
        width:100% !important;
        box-sizing:border-box !important;
    }
    #list dd{
        display:block;
        float:none !important;
        clear:both !important;
        width:100% !important;
        padding:.4rem .8rem !important;
        line-height:1.8 !important;
        height:auto !important;
        min-height:1.8rem;
        box-sizing:border-box !important;
    }
    #list dd:after{
        display:block !important;
        float:right !important;
        line-height:inherit !important;
    }
}

/* ============================================================
   17. 章节列表：VIP 标签 + 行内布局
   ============================================================ */
#list dd{display:flex !important;align-items:center;gap:.4rem;}
#list dd .ch-title{
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
#list dd .ch-words{flex:0 0 auto;font-size:.65rem;color:var(--text-muted);white-space:nowrap;}
#list dd .ch-vip{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:.15rem;
    padding:0 .3rem;
    font-size:.6rem;
    line-height:1.4;
    color:var(--accent);
    border:1px solid var(--accent-50);
    border-radius:.15rem;
    background:var(--accent-06);
    white-space:nowrap;
}
#list dd .ch-vip i{font-size:.55rem;}
#list dd:after{flex:0 0 auto;margin-left:auto;}
#list .sort-btn.active{
    background:var(--primary-50) !important;
    color:#fff !important;
    border-color:var(--primary-50) !important;
}

/* ============================================================
   18. 入驻作者列表
   ============================================================ */
.author-hero{
    margin:.5rem 0 0;
    padding:1.2rem .8rem 1rem;
    background:linear-gradient(135deg,var(--primary-10),var(--primary-02));
    border:.05rem solid var(--primary-20);
    border-radius:var(--radius);
    text-align:center;
    position:relative;
    overflow:hidden;
}
.author-hero::before{
    content:"";
    position:absolute;
    top:-30%;
    right:-10%;
    width:8rem;
    height:8rem;
    background:radial-gradient(circle,rgba(246,102,0,.12),transparent 70%);
    border-radius:50%;
    pointer-events:none;
}
.author-hero-inner{position:relative;z-index:1;}
.author-hero-title{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    font-size:1.1rem;
    font-weight:800;
    color:var(--primary-90);
    letter-spacing:.03rem;
    margin-bottom:.4rem;
}
.author-hero-title i{color:var(--accent);font-size:1rem;}
.author-hero-sub{
    font-size:.72rem;
    color:#888;
    line-height:1.5;
    margin-bottom:.6rem;
    max-width:22rem;
    margin-left:auto;
    margin-right:auto;
}
.author-hero-count{
    display:inline-flex;
    align-items:center;
    gap:.3rem;
    padding:.2rem .7rem;
    background:rgba(255,255,255,.7);
    border:1px solid var(--primary-20);
    border-radius:1rem;
    font-size:.65rem;
    color:var(--text);
}
.author-hero-count i{color:var(--primary-70);font-size:.65rem;}
.author-hero-count strong{color:var(--accent);font-weight:700;margin:0 .15rem;}
.author-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,12rem),1fr));
    gap:.5rem;
    margin:.6rem 0;
}
.author-card{
    display:flex;
    align-items:center;
    gap:.6rem;
    padding:.6rem .7rem;
    background:var(--white-75);
    border:.05rem solid var(--primary-20);
    border-radius:var(--radius);
    color:inherit;
    text-decoration:none;
    transition:all .25s ease;
    position:relative;
    overflow:hidden;
    min-width:0;
}
.author-card:hover{
    border-color:var(--accent-50);
    background:#fff;
    transform:translateY(-2px);
    box-shadow:0 .15rem .4rem var(--primary-10);
}
.author-card-avatar{
    flex:0 0 auto;
    width:2.4rem;
    height:2.4rem;
    border-radius:50%;
    background:#f0f4f1;
    box-shadow:0 0 0 1px var(--primary-06);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    transition:all .25s ease;
}
.author-card:hover .author-card-avatar{
    background:#fff5ec;
    box-shadow:0 0 0 2px var(--accent-50);
    transform:scale(1.05);
}
.author-card-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.author-initial{
    font-size:1rem;
    font-weight:800;
    color:#fff;
    line-height:1;
}
.author-card-body{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:.15rem;
}
.author-card-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.3rem;
    min-width:0;
}
.author-card-name{
    font-size:.75rem;
    font-weight:700;
    color:var(--text-dark);
    line-height:1.3;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    transition:color .2s;
    min-width:0;
}
.author-card:hover .author-card-name{color:var(--accent);}
.author-card-name mark{
    background:var(--accent-12);
    color:#d94e00;
    padding:0 .1rem;
    border-radius:.1rem;
}
.author-card-count{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:.2rem;
    padding:.05rem .35rem;
    background:var(--primary-06);
    border-radius:.7rem;
    font-size:.5625rem;
    color:var(--text);
    transition:all .25s;
}
.author-card-count i{color:var(--primary-70);font-size:.5rem;}
.author-card-count strong{color:var(--primary-90);font-weight:700;}
.author-card:hover .author-card-count{background:var(--accent-12);}
.author-card:hover .author-card-count i,
.author-card:hover .author-card-count strong{color:var(--accent);}
.author-card-bio{
    font-size:.6rem;
    color:var(--text-muted);
    line-height:1.3;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.author-card-bio.empty{color:#ccc;font-style:italic;}
.author-card-arrow{flex:0 0 auto;font-size:.6rem;color:#ccc;transition:all .25s;}
.author-card:hover .author-card-arrow{color:var(--accent);transform:translateX(2px);}
.author-empty{
    margin:2rem auto;
    padding:2rem 1rem;
    text-align:center;
    background:var(--white-50);
    border:.05rem dashed var(--primary-30);
    border-radius:var(--radius);
}
.author-empty i{
    font-size:2.5rem;
    color:var(--primary-25);
    display:block;
    margin-bottom:.5rem;
}
.author-empty p{font-size:.75rem;color:var(--text-muted);}
.author-empty .btn-submit{
    display:inline-flex;
    width:auto;
    min-width:8rem;
    margin-top:.6rem;
}

/* 作者列表 · 响应式微调（原第19节，去重后合并） */
@media (max-width:639px){
    .author-grid{grid-template-columns:repeat(2,1fr);gap:.4rem;margin:.5rem 0;}
    .author-card{padding:.5rem .55rem;gap:.45rem;}
    .author-card-avatar{width:2rem;height:2rem;}
    .author-initial{font-size:.85rem;}
    .author-card-name{font-size:.7rem;}
    .author-card-bio{display:none;}
    .author-card-count{padding:0 .3rem;font-size:.5rem;}
    .author-card-arrow{display:none;}
    .author-hero{padding:1rem .7rem .8rem;}
    .author-hero-title{font-size:1rem;}
    .author-hero-sub{font-size:.68rem;}
}
@media screen and (min-width:768px){
    .author-hero{padding:1.8rem 2rem 1.5rem;margin-top:.5rem;}
    .author-hero-title{font-size:1.4rem;}
    .author-hero-title i{font-size:1.25rem;}
    .author-hero-sub{font-size:.8rem;max-width:30rem;margin-bottom:.9rem;}
    .author-hero-count{padding:.3rem 1rem;font-size:.7rem;}
    .author-grid{gap:.8rem;margin:1rem 0;}
    .author-card{padding:.8rem .9rem;gap:.8rem;border-radius:.25rem;}
    .author-card-avatar{width:2.8rem;height:2.8rem;}
    .author-initial{font-size:1.15rem;}
    .author-card-name{font-size:.8rem;}
    .author-card-count{padding:.1rem .45rem;font-size:.625rem;}
    .author-card-bio{font-size:.65rem;}
    .author-card-arrow{font-size:.65rem;}
}

/* ============================================================
   19. 作者列表 · 筛选栏
   ============================================================ */
.author-filter{
    margin:.6rem 0;
    padding:.6rem .8rem;
    background:var(--white-75);
    border:.05rem solid var(--primary-20);
    border-radius:var(--radius);
}
.author-filter-row{
    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
    align-items:flex-end;
}
.author-filter-item{
    display:flex;
    flex-direction:column;
    gap:.3rem;
    flex:0 0 auto;
    min-width:0;
}
.author-filter-item label{
    font-size:.625rem;
    color:var(--text);
    font-weight:600;
    letter-spacing:.02rem;
}
.author-filter-input-wrap{
    position:relative;
    display:flex;
    align-items:center;
    width:20rem;
    max-width:100%;
    height:1.8rem;
    border:.05rem solid var(--primary-20);
    border-radius:.15rem;
    background:#fff;
    transition:border-color .2s;
    box-sizing:border-box;
}
.author-filter-input-wrap:focus-within{border-color:var(--primary-50);}
.author-filter-input-wrap > i.fa-search{
    flex:0 0 auto;
    padding:0 .5rem;
    font-size:.625rem;
    color:rgba(20,70,50,.6);
}
.author-filter-input-wrap input{
    flex:1;
    min-width:0;
    height:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:.6875rem;
    font-family:inherit;
    color:var(--text-dark);
    padding:0;
}
.author-filter-input-wrap input::placeholder{color:#aaa;}
.author-filter-clear{
    flex:0 0 auto;
    padding:0 .5rem;
    color:#ccc;
    font-size:.75rem;
    text-decoration:none;
    transition:color .2s;
}
.author-filter-clear:hover{color:var(--accent);}
.author-filter .vip-select{width:9rem;max-width:100%;height:1.8rem;line-height:1.8rem;}
.author-filter-actions{
    display:flex;
    flex-direction:row;
    gap:.4rem;
    align-items:center;
    margin-left:auto;
    flex:0 0 auto;
}
.author-filter-actions .btn-submit.btn-inline,
.author-filter-actions .btn-cancel.btn-inline{padding:.4rem 1rem;font-size:.6875rem;}
.author-filter-actions .btn-submit.btn-inline i,
.author-filter-actions .btn-cancel.btn-inline i{font-size:.6875rem;}
@media (max-width:768px){
    .author-filter{padding:.5rem .6rem;margin:.5rem 0;}
    .author-filter-row{flex-direction:column;align-items:stretch;gap:.5rem;}
    .author-filter-item{flex:none;width:100%;}
    .author-filter-input-wrap{width:100%;}
    .author-filter .vip-select{width:100%;}
    .author-filter-actions{flex-direction:row;margin-left:0;width:100%;}
    .author-filter-actions .btn-submit.btn-inline,
    .author-filter-actions .btn-cancel.btn-inline{flex:1;width:auto;min-width:0;}
}

/* ============================================================
   20. 手机端修复：最近更新表头“更新时间”显示完整
   ============================================================ */
@media screen and (max-width:767px){
    #newscontent .l li .s2{width:calc(100% - 6rem) !important;}
    #newscontent .l li .s5{
        width:3rem !important;
        float:right !important;
        text-align:right !important;
        white-space:nowrap !important;
    }
}

/* ============================================================
   21. PC 端修复：最新入库与最近更新等高
   ============================================================ */
@media screen and (min-width:768px){
    #newscontent{
        display:flex;
        align-items:stretch;
        justify-content:space-between;
        gap:10px;
    }
    #newscontent .r{float:none;flex:0 0 11rem;max-width:11rem;min-width:0}
    #newscontent .l{float:none;flex:1 1 auto;width:auto;min-width:0}
    #newscontent .clear{display:none;}
}

/* ============================================================
   22. 首页扩展榜单 / 主推推荐
   ============================================================ */
.home-section-title{
    display:flex;
    align-items:center;
    gap:.35rem;
    margin:.8rem .5rem .4rem;
    padding:0 0 0 .55rem;
    height:2rem;
    line-height:2rem;
    font-size:.875rem;
    font-weight:700;
    color:var(--text-dark);
    background-color:var(--primary-10);
    border-left:3px solid var(--primary-70);
    border-radius:0 .15rem .15rem 0;
}
.home-section-title i{color:var(--accent);font-size:.75rem;}
.home-rank-section{margin:.5rem 0;overflow:hidden;}
.home-rank-grid{display:grid;gap:.5rem;margin:0 .5rem;}
.home-rank-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.home-rank-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.home-rank-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    background:var(--white-75);
    border:.05rem solid var(--primary-20);
    border-radius:var(--radius);
    overflow:hidden;
    transition:box-shadow .25s,border-color .25s;
}
.home-rank-card:hover{
    border-color:rgba(20,70,50,.35);
    box-shadow:0 .15rem .5rem var(--primary-10);
}
.home-rank-card > h3{
    margin:0;
    padding:.4rem .7rem;
    font-size:.75rem;
    font-weight:700;
    color:var(--primary-90);
    background:var(--primary-06);
    border-bottom:1px dashed var(--primary-15);
    display:flex;
    align-items:center;
    gap:.3rem;
}
.home-rank-card > h3 i{color:var(--accent);font-size:.65rem;}
.home-rank-ul{list-style:none;margin:0;padding:.25rem 0;flex:1;}
.home-rank-ul li{
    display:flex;
    align-items:center;
    gap:.4rem;
    padding:.3rem .7rem;
    font-size:.7rem;
    line-height:1.4;
    overflow:hidden;
}
.home-rank-ul li+li{border-top:1px dashed var(--primary-10);}
.home-rank-ul li a{
    flex:1;
    min-width:0;
    color:#555;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    transition:color .2s;
}
.home-rank-ul li a:hover{color:var(--accent);}
.rank-num{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:1.15rem;
    height:1.15rem;
    font-size:.6rem;
    font-weight:700;
    font-style:normal;
    color:var(--text-muted);
    background:var(--primary-06);
    border-radius:.15rem;
}
.rank-num-1{color:#fff;background:linear-gradient(135deg,#f60,#d94e00);box-shadow:0 1px 3px rgba(246,102,0,.35);}
.rank-num-2{color:#fff;background:linear-gradient(135deg,#ffb347,#f60);}
.rank-num-3{color:#fff;background:linear-gradient(135deg,#ffd89b,#ffb347);}
.rank-empty{display:block;padding:.8rem;text-align:center;font-size:.7rem;color:var(--text-muted);font-style:italic;}
.home-like-section{margin:.5rem 0;overflow:hidden;}
.home-like-ul{
    display:flex;
    flex-wrap:wrap;
    gap:.4rem;
    list-style:none;
    padding:0 .5rem;
    margin:0;
}
.home-like-ul li{
    background:var(--white-75);
    border:.05rem solid var(--primary-20);
    border-radius:1rem;
    padding:.2rem .7rem;
    font-size:.7rem;
    transition:all .2s;
    overflow:hidden;
    max-width:100%;
}
.home-like-ul li a{
    display:block;
    color:#555;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:12rem;
}
.home-like-ul li:hover{
    border-color:var(--accent-50);
    background:#fff;
    transform:translateY(-1px);
    box-shadow:0 2px 6px var(--primary-10);
}
.home-like-ul li:hover a{color:var(--accent);}
.home-hero-slider{margin:.5rem 0 1rem;overflow:hidden;}
.slider-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(6.5rem,1fr));
    gap:.5rem;
    padding:0 .5rem;
    margin:0;
}
.slider-item{display:flex;flex-direction:column;min-width:0;transition:transform .25s;}
.slider-item a{display:flex;flex-direction:column;color:inherit;text-decoration:none;}
.slider-item:hover{transform:translateY(-3px);}
.slider-cover{
    position:relative;
    width:100%;
    aspect-ratio:3 / 4;
    overflow:hidden;
    border-radius:.15rem;
    border:.05rem solid var(--primary-20);
    background:var(--primary-05);
    box-shadow:0 2px 6px var(--primary-06);
    transition:box-shadow .25s;
}
.slider-item:hover .slider-cover{box-shadow:0 6px 16px rgba(20,70,50,.18);}
.slider-cover img{display:block;width:100%;height:100%;object-fit:cover;}
.slider-title{
    margin:.35rem 0 0;
    font-size:.7rem;
    text-align:center;
    color:#555;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    transition:color .2s;
}
.slider-item:hover .slider-title{color:var(--accent);}
.slider-empty{
    grid-column:1 / -1;
    padding:1rem;
    text-align:center;
    font-size:.75rem;
    color:var(--text-muted);
    font-style:italic;
}
.vip-badge,
.vip-chapter-badge{
    display:inline-block;
    margin-left:.25rem;
    padding:0 .25rem;
    font-size:.5rem;
    line-height:1.2;
    color:var(--accent);
    border:.05rem solid var(--accent-50);
    border-radius:.15rem;
    background:var(--accent-06);
    vertical-align:middle;
    white-space:nowrap;
}
@media (max-width:768px){
    .home-rank-grid.cols-3,
    .home-rank-grid.cols-2{grid-template-columns:1fr;}
    .home-section-title{
        margin:.5rem .5rem .3rem;
        height:1.9rem;
        line-height:1.9rem;
        font-size:.8rem;
    }
    .slider-list{grid-template-columns:repeat(auto-fill,minmax(5rem,1fr));gap:.4rem;}
    .slider-title{font-size:.65rem;}
    .home-like-ul li a{max-width:8rem;}
}

/* ============================================================
   23. 书库筛选栏 filter-group（边框清爽版）
   ============================================================ */
#hotcontent .filter-group{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:.4rem .6rem;
    margin:0 .5rem .5rem;
    padding:.45rem .6rem;
    border:1px solid #d9d9d9;
    border-radius:4px;
    background:transparent;
    box-sizing:border-box;
}
#hotcontent .filter-label{
    flex:0 0 auto;
    font-size:.75rem;
    color:var(--text-dark);
    font-weight:700;
    white-space:nowrap;
}
#hotcontent .filter-options{
    flex:1;
    display:flex;
    flex-wrap:wrap;
    gap:.3rem;
    min-width:0;
}
#hotcontent .filter-option{
    display:inline-block;
    padding:.15rem .5rem;
    font-size:.7rem;
    line-height:1.4;
    color:var(--text);
    background:#fff;
    border:1px solid var(--border);
    border-radius:3px;
    transition:.2s;
    white-space:nowrap;
}
#hotcontent .filter-option:hover{border-color:var(--accent);color:var(--accent);}
#hotcontent .filter-option.active{background-color:var(--accent);border-color:var(--accent);color:#fff;}
@media (max-width:768px){
    #hotcontent .filter-group{
        margin:0 .4rem .4rem;
        padding:.4rem .5rem;
        flex-direction:column;
        align-items:flex-start;
        gap:.3rem;
    }
    #hotcontent .filter-label{font-size:.7rem;}
    #hotcontent .filter-options{width:100%;gap:.25rem;}
    #hotcontent .filter-option{padding:.12rem .42rem;font-size:.675rem;}
}
@media screen and (min-width:768px){
    #hotcontent .filter-group{margin:0 0 .5rem;}
}

/* ============================================================
   24. 阅读页组件（购买面板 / 登录面板 / 阅读控制）
   说明：已合并原第 32 节与第 34 节两套重复样式，保留最终生效的「边框简洁版」
   ============================================================ */
.con_top .read-controls{
    float:right;
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-top:3px;
}
.con_top .read-controls .ctrl-btn{
    background:var(--primary-05);
    border:1px solid var(--primary-20);
    border-radius:3px;
    height:1.4rem;
    line-height:1.4rem;
    padding:0 .35rem;
    font-size:.65rem;
    color:#555;
    cursor:pointer;
    transition:all .2s;
}
.con_top .read-controls .ctrl-btn:hover{
    background:rgba(246,102,0,.1);
    color:var(--accent);
    border-color:rgba(246,102,0,.4);
}
.con_top .read-controls .ctrl-btn i{font-size:.65rem;}
.preview-divider{
    text-align:center;
    color:var(--text-muted);
    font-size:.9em;
    margin:10px 0 18px;
    border-top:1px dashed #ccc;
    padding-top:14px;
}
.panel-icon{font-size:1.8em;line-height:1;margin-bottom:6px;}
.login-panel .panel-icon{color:#3b82f6;}
.purchase-panel .panel-icon{color:#f59e0b;}

/* VIP购买面板 */
.purchase-panel{
    background:#fff;
    border:1px solid #f59e0b;
    border-radius:4px;
    padding:14px 14px 12px;
    text-align:center;
    margin:12px 0;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    font-size:1em;
}
.purchase-panel .panel-title{
    margin:0 0 6px;
    font-size:1.15em;
    font-weight:600;
    color:#1e293b;
    line-height:1.4;
}
.purchase-panel .panel-sub{
    margin:0 0 4px;
    font-size:1em;
    color:#64748b;
    line-height:1.5;
}
.purchase-panel .panel-sub .price-num{
    color:#f59e0b;
    font-size:1.15em;
    font-weight:700;
    margin:0 2px;
}
.purchase-panel .panel-gold{
    margin:0 0 10px;
    font-size:1em;
    color:#64748b;
    line-height:1.5;
}
.purchase-panel .panel-gold .gold-name{color:#f59e0b;font-weight:600;}
.purchase-panel .panel-gold .gold-num{color:#1e293b;font-size:1.1em;font-weight:700;margin-left:2px;}
.purchase-panel .panel-error{
    background:#fef2f2;
    color:#dc2626;
    border:1px solid #fecaca;
    border-radius:3px;
    padding:4px 10px;
    margin:0 auto 8px;
    font-size:.9em;
    display:inline-block;
    max-width:100%;
    line-height:1.5;
}
.auto-buy-option{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
    margin:10px 0;
    font-size:1em;
    color:var(--text-dark);
    cursor:pointer;
    user-select:none;
}
.auto-buy-option input[type="checkbox"]{
    width:16px;
    height:16px;
    accent-color:#f59e0b;
    cursor:pointer;
}
.btn-buy{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    background:#f59e0b;
    color:#fff;
    font-weight:500;
    font-size:1em;
    border:none;
    border-radius:3px;
    padding:6px 20px;
    cursor:pointer;
    transition:background .2s ease;
    line-height:1.5;
}
.btn-buy:hover{background:#d97706;}
.btn-buy:active{background:#b45309;}
.btn-buy:disabled{background:#fbbf24;cursor:not-allowed;}
.panel-links{margin-top:8px;font-size:.9em;color:#94a3b8;line-height:1.5;}
.panel-links a{
    color:#64748b;
    text-decoration:none;
    transition:color .2s;
    display:inline-flex;
    align-items:center;
    gap:3px;
}
.panel-links a:hover{color:#f59e0b;}
.panel-links .divider{margin:0 8px;color:#cbd5e1;}

/* 未登录面板 */
.login-panel{
    background:#fff;
    border:1px solid #3b82f6;
    border-radius:4px;
    padding:14px 14px 12px;
    text-align:center;
    margin:12px 0;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    font-size:1em;
}
.login-panel .panel-title{
    margin:0 0 6px;
    font-size:1.15em;
    font-weight:600;
    color:#1e293b;
    line-height:1.4;
}
.login-panel .panel-sub{
    margin:0 0 10px;
    font-size:1em;
    color:#64748b;
    line-height:1.5;
}
.login-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;}
.login-actions .btn-login{
    background:#3b82f6;
    border:none;
    font-weight:500;
    padding:6px 18px;
    border-radius:3px;
    color:#fff;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:4px;
    font-size:1em;
    line-height:1.5;
    transition:background .2s ease;
}
.login-actions .btn-login:hover{background:#2563eb;}
.login-actions .btn-register{
    padding:6px 18px;
    border-radius:3px;
    border:1px solid #cbd5e1;
    color:#475569;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:4px;
    background:#fff;
    font-size:1em;
    line-height:1.5;
    transition:all .2s ease;
}
.login-actions .btn-register:hover{border-color:#3b82f6;color:#3b82f6;}

/* fullContent 淡入动画 */
#fullContent{animation:fadeIn .3s ease;}
@keyframes fadeIn{
    from{opacity:0;transform:translateY(10px);}
    to{opacity:1;transform:translateY(0);}
}

/* 自动购买浮动按钮 */
.auto-float{
    position:fixed;
    right:24px;
    bottom:96px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    background:#fff;
    border:1px solid #f59e0b;
    border-radius:999px;
    color:#f59e0b;
    font-size:.85rem;
    cursor:pointer;
    box-shadow:0 4px 16px rgba(0,0,0,.12);
    z-index:900;
    user-select:none;
    transition:all .2s;
}
.auto-float:hover{background:#f59e0b;color:#fff;}
.auto-float i{font-size:.9rem;}

/* 购买遮罩与 Toast */
.purchase-mask{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.25);
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
    z-index:99998;
}
.purchase-mask.show{opacity:1;}
.purchase-toast{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%) scale(.85);
    background:#fff;
    border-radius:8px;
    padding:22px 36px;
    font-size:.8rem;
    font-weight:600;
    color:#16a34a;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    opacity:0;
    pointer-events:none;
    transition:all .25s ease;
    z-index:99999;
    box-shadow:0 12px 40px rgba(0,0,0,.18);
    min-width:90px;
}
.purchase-toast.show{opacity:1;transform:translate(-50%,-50%) scale(1);}
.purchase-toast i{font-size:2.2rem;}
.purchase-toast.success{color:#16a34a;}
.purchase-toast.error{color:#dc2626;}

/* ============================================================
   25. 通用弹窗 Modal
   ============================================================ */
.modal-mask{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:1000;
    padding:12px;
    box-sizing:border-box;
}
.modal-box.ui-box{
    background:#fff;
    width:460px;
    max-width:100%;
    border-radius:14px;
    box-shadow:0 14px 45px rgba(0,0,0,.22);
    overflow:hidden;
    border:none;
}
.modal-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 20px;
    border-bottom:1px solid #eee;
}
.modal-head h3{margin:0;font-size:1.05rem;color:#222;font-weight:700;}
.modal-head h3 i{color:var(--accent);margin-right:8px;}
.modal-close{
    background:none;
    border:none;
    font-size:1.4rem;
    color:var(--text-muted);
    cursor:pointer;
    line-height:1;
    transition:color .2s;
}
.modal-close:hover{color:var(--accent);}
.modal-body{padding:20px;font-size:.95rem;color:#555;line-height:1.6;}
.modal-foot{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:0;
    padding:14px 20px;
    border-top:1px solid #eee;
}
.modal-foot .btn-primary,
.modal-foot .btn-outline{
    padding:0 21px;
    border-radius:8px;
    font-size:.95rem;
    cursor:pointer;
    transition:all .2s;
    border:none;
}
.modal-foot .btn-primary{
    background:var(--accent);
    color:#fff;
    box-shadow:0 2px 8px rgba(246,102,0,.22);
}
.modal-foot .btn-primary:hover{background:var(--accent-dark);}
.modal-foot .btn-outline{
    background:#fff;
    color:var(--text);
    border:1px solid #d8d8d8;
}
.modal-foot .btn-outline:hover{border-color:var(--text-muted);color:var(--text-dark);}

/* ============================================================
   26. 全局夜间模式（合并两处夜间规则，含 Modal）
   ============================================================ */
body.night-mode{
    background-color:#1a1d21 !important;
    color:#c0c0c0 !important;
}
body.night-mode .box_con,
body.night-mode #booktxt,
body.night-mode #content,
body.night-mode #fullContent{
    background-color:#22262b !important;
    color:#c9c9c9 !important;
}
body.night-mode .bookname{color:#ddd !important;}
body.night-mode .con_top{
    background-color:#2a2f36 !important;
    color:var(--text-muted) !important;
}
body.night-mode .con_top a{color:#c0c0c0 !important;}
body.night-mode .bottem1,
body.night-mode .bottem2{
    background-color:#2a2f36 !important;
    border-color:#3a3f46 !important;
}
body.night-mode .bottem1 a,
body.night-mode .bottem2 a{
    color:#ddd !important;
    border-right-color:#3a3f46 !important;
}
body.night-mode .purchase-panel,
body.night-mode .login-panel{
    background:#2a2f36 !important;
    border-color:#3a3f46 !important;
    color:#c9c9c9 !important;
}
body.night-mode .panel-title{color:#eee !important;}
body.night-mode .panel-sub,
body.night-mode .panel-gold,
body.night-mode .panel-links a{color:#aaa !important;}
body.night-mode .purchase-panel .panel-gold .gold-num{color:#fff;}
body.night-mode .purchase-panel .panel-error{
    background:#442222;
    border-color:#772c2c;
    color:#ff8888;
}
body.night-mode .login-actions .btn-register{
    background:#2a2f36;
    border-color:#555;
    color:#ccc;
}
body.night-mode .login-actions .btn-register:hover{border-color:#3b82f6;color:#60a5fa;}
body.night-mode .modal-box.ui-box{background:#2a2f36;}
body.night-mode .modal-head{border-bottom-color:#3a3f46;}
body.night-mode .modal-head h3{color:#eee;}
body.night-mode .modal-close{color:#888;}
body.night-mode .modal-close:hover{color:var(--accent);}
body.night-mode .modal-body{color:#cccccc;}
body.night-mode .modal-foot{border-top-color:#3a3f46;}
body.night-mode .modal-foot .btn-outline{
    background:#2a2f36;
    border-color:#444;
    color:#ccc;
}
body.night-mode .purchase-toast{background:#2a2f36;}








/* ============================================================
   27. 章节列表头部（单行布局完美复刻）
   ============================================================ */

/* 主容器：两端对齐，强制覆盖原有的上下结构 */
#list dt.chapter-list-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 10px !important;
    background-color: var(--primary-10) !important;
    border-bottom: 1px solid var(--border) !important;
    box-sizing: border-box !important;
    height: auto !important;
    font-weight: normal !important;
    text-align: left !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
    flex-wrap: nowrap !important; /* 强制一行 */
}
#list dt.chapter-list-header::after { display: none !important; }

/* --- 左侧：共 XXX 章 --- */
.chapter-header-left {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    gap: 8px;
    flex-shrink: 0;
}
.chapter-header-left i {
    color: #f59e0b; /* 橙黄色图标 */
    font-size: 20px;
}

/* --- 右侧：工具区 --- */
.chapter-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* 分页按钮组 */
.chapter-pager {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.pg-btn:hover:not(.disabled):not(.current) {
    border-color: #999;
}
.pg-btn.current {
    background: #333;
    border-color: #333;
    color: #fff;
    cursor: default;
}
.pg-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
    border-color: #f0f0f0;
}
.pg-btn i { font-size: 12px; }

/* 跳转输入框 */
.chapter-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 13px;
    white-space: nowrap;
}
.chapter-jump input {
    width: 44px;
    height: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    outline: none;
    font-size: 13px;
    box-sizing: border-box;
    -moz-appearance: textfield;
    padding: 0;
    color: #333;
}
.chapter-jump input::-webkit-outer-spin-button,
.chapter-jump input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.chapter-jump input:focus { border-color: #999; }
.chapter-jump .jump-btn {
    height: 28px;
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
}

/* 正序/倒序 胶囊按钮 */
.chapter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chapter-sort .sort-btn {
    height: 32px;
    padding: 0 16px;
    border-radius: 3px; /* 胶囊形状 */
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: normal;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chapter-sort .sort-btn.active {
    background: #333;
    border-color: #333;
    color: #fff;
}
.chapter-sort .sort-btn:hover:not(.active) { border-color: #999; }

/* ============================================================
   夜间模式支持
   ============================================================ */
body.night-mode #list dt.chapter-list-header {
    background-color: #22262b !important;
    border-bottom-color: #3a3f46 !important;
}
body.night-mode .chapter-header-left { color: #ddd; }
body.night-mode .pg-btn { background: #2a2f36; border-color: #3a3f46; color: #ccc; }
body.night-mode .pg-btn.current { background: #ccc; border-color: #ccc; color: #22262b; }
body.night-mode .pg-btn.disabled { background: #1e2226; border-color: #333; color: #555; }
body.night-mode .chapter-jump { color: #aaa; }
body.night-mode .chapter-jump input { background: #2a2f36; border-color: #3a3f46; color: #ccc; }
body.night-mode .chapter-sort .sort-btn { background: #2a2f36; border-color: #3a3f46; color: #ccc; }
body.night-mode .chapter-sort .sort-btn.active { background: #ccc; border-color: #ccc; color: #22262b; }

/* ============================================================
   移动端适配（屏幕较小自动换行，避免挤压）
   ============================================================ */
@media (max-width: 768px) {
    #list dt.chapter-list-header {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }
    .chapter-header-left { font-size: 15px; gap: 6px; }
    .chapter-header-left i { font-size: 15px; }
    .chapter-header-right {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .chapter-pager { display: none; }
    .chapter-jump { margin-left: 0; }
}
@media (max-width: 480px) {
    .chapter-sort { display: none; }
}

/* ============================================================
   右侧悬浮图标组：书架 / 阅读记录 / 返回顶部
   ============================================================ */
.side-dock {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(20, 70, 50, .12);
}
.side-dock-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 92px;
    min-height: 38px;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--primary-90);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    transition: background .18s, color .18s;
    box-sizing: border-box;
}
.side-dock-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.side-dock-item:hover {
    background: var(--primary-10);
    color: var(--accent);
}

/* 阅读页正文末尾纯文字随机推荐 */
.read-rec-inline {
    margin: 1.2rem 0 0;
    padding-top: .8rem;
    border-top: 1px dashed var(--border);
    font-size: .8rem;
    line-height: 1.8;
    color: var(--text);
}
.read-rec-inline .read-rec-label {
    color: var(--text-dark);
    font-weight: 600;
}
.read-rec-inline a {
    color: var(--primary-90);
}
.read-rec-inline a:hover { color: var(--accent); }
.read-rec-inline .read-rec-sep { color: var(--text-muted); margin: 0 2px; }

/* 猜你喜欢（仅详情页 related-list）：标题独占一行，下方三列均分 */
#hotcontent .related-list {
    width: 100% !important;
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .6rem .5rem;
    padding: 0 0 .4rem;
    box-sizing: border-box;
}
#hotcontent .related-list h2 {
    width: 100%;
    flex-basis: 100%;
    margin: 0 0 .2rem;
}
#hotcontent .related-list .item {
    width: calc(33.333% - .34rem) !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    border-top: 0 !important;
    padding: 0 .4rem;
    box-sizing: border-box;
    display: flex;
}
#hotcontent .related-list .item dl { flex: 1; min-width: 0; }
#hotcontent .related-list .item dl dt { font-size: .78rem; }
#hotcontent .related-list .item dl dd {
    height: auto !important;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
#hotcontent .related-list .item .image{flex-shrink:0;margin-right:.4rem !important;}
#hotcontent .related-list .item .image img{width:3.7rem;height:5rem;}
@media (max-width:992px){
    #hotcontent .related-list .item{width:calc(50% - .3rem) !important;}
}
@media (max-width:768px){
    #hotcontent .related-list .item{width:100% !important;}
}

/* 书库筛选块：与列表块同宽对齐 */
#hotcontent .library-filter {
    width: 100% !important;
    float: none !important;
    box-sizing: border-box;
    margin: 0 0 .5rem;
}

/* 书库/分类小说列表：宽屏三列均分 */
#hotcontent .library-list {
    width: 100% !important;
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .6rem .5rem;
    padding: 0 0 .4rem;
    box-sizing: border-box;
}
#hotcontent .library-list h2 {
    width: 100%;
    flex-basis: 100%;
    margin: 0 0 .2rem;
}
#hotcontent .library-list .item {
    width: calc(33.333% - .34rem) !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    border-top: 0 !important;
    padding: 0 .4rem;
    box-sizing: border-box;
    display: flex;
}
#hotcontent .library-list .item dl { flex: 1; min-width: 0; }
#hotcontent .library-list .item dl dt { font-size: .78rem; }
#hotcontent .library-list .item dl dd {
    height: auto !important;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
#hotcontent .library-list .item .image{flex-shrink:0;margin-right:.4rem !important;}
#hotcontent .library-list .item .image img{width:3.7rem;height:5rem;}
#hotcontent .library-list .pages{flex-basis:100%;width:100%;text-align:center;}
#hotcontent .library-list .pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.3rem;width:auto;margin:.5rem auto;}
#hotcontent .library-list .pagination .page-link{display:inline-flex;align-items:center;}
@media (max-width:992px){
    #hotcontent .library-list .item{width:calc(50% - .3rem) !important;}
}
@media (max-width:768px){
    #hotcontent .library-list .item{width:100% !important;}
}

/* 详情页随机推荐：沿用 box_con 宽度，浅边框卡片，窄屏隐藏 */
.read-rec-inline.detail-rec-inline {
    margin: .5rem auto 0;
    padding: .6rem .8rem;
    border: .1rem solid var(--primary-50);
    border-top: .1rem solid var(--primary-50);
    background: var(--primary-01);
    border-radius: 0;
    box-sizing: border-box;
    font-size: .72rem;
    line-height: 1.8;
}
.read-rec-inline.detail-rec-inline .read-rec-label { font-weight: 600; }
@media (max-width:768px){
    .read-rec-inline.detail-rec-inline{display:none;}
}

body.night-mode .side-dock {
    background: rgba(34, 38, 43, .92);
    border-color: #3a3f46;
}
body.night-mode .side-dock-item { color: #ddd; }
body.night-mode .side-dock-item:hover { background: #2a2f36; }
body.night-mode .read-rec-inline { color: #aaa; border-top-color: #3a3f46; }
body.night-mode .read-rec-inline .read-rec-label { color: #ddd; }
body.night-mode .read-rec-inline a { color: #ccc; }

@media (max-width: 768px) {
    .side-dock { right: 8px; padding: 4px; gap: 4px; border-radius: 8px; }
    .side-dock-item { width: 78px; min-height: 34px; padding: 5px 8px; font-size: 11px; gap: 6px; }
    .side-dock-item i { font-size: 14px; }
}