*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{color:#222;background:#fff;font:14px/1.5 Arial,"Helvetica Neue",sans-serif}
a{color:#333;text-decoration:none}
a:hover{color:#3987a5}
button,input{font:inherit}
img{display:block;max-width:100%}
.site-shell{width:100%;margin:0 auto;background:#fff;min-height:100vh}
.header{height:46px;display:grid;grid-template-columns:52px 1fr 52px;align-items:center;color:#fff;background:#68aac2;border-bottom:1px solid #5599b2}
.brand{color:#fff;text-align:center;font-size:16px;line-height:45px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand:hover,.header a:hover{color:#fff}
.header-side{height:46px;display:flex;align-items:center;justify-content:center;color:#eaf6fb}
.header-side a{display:flex;color:inherit;padding:10px}
.header-right{justify-content:center}
.nav{height:69px;display:grid;grid-template-columns:repeat(5,1fr);grid-auto-rows:34px;background:#f7f7f7;border-bottom:1px solid #ddd;overflow:hidden}
.nav a{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:nowrap}
.nav a.active,.nav a:hover{color:#347f9c}
.search{height:40px;margin:10px;display:flex;border:1px solid #ddd;background:#fff}
.search input{min-width:0;flex:1;height:38px;padding:0 10px;color:#555;border:0;outline:0;background:transparent}
.search input::placeholder{color:#999}
.search button{width:47px;border:0;border-left:1px solid #ddd;color:#999;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.search button:hover{color:#4e96b1;background:#f8f8f8}
.wrap{width:100%;overflow:hidden}
.featured-card{display:flex;gap:9px;margin:10px;padding:10px;border:1px solid #ded8c9;border-radius:3px;background:#fffdf7;min-height:122px}
.featured-cover{flex:0 0 78px}
.featured-cover img{width:78px;height:100px;object-fit:cover;border:1px solid #aebcc1}
.featured-info{min-width:0;flex:1}
.featured-meta{height:24px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#999;white-space:nowrap;overflow:hidden}
.featured-meta strong{color:#333;font-weight:700;overflow:hidden;text-overflow:ellipsis}
.featured-meta span{overflow:hidden;text-overflow:ellipsis}
.featured-info h2{margin:0;height:26px;font-size:15px;line-height:26px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.featured-info p{margin:1px 0 0;color:#999;font-size:13px;line-height:22px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.block{margin:0 0 10px;background:#fff;border-top:1px solid #eee;border-bottom:1px solid #e3e3e3}
.block-title{height:40px;margin:0;padding:0 9px;border-bottom:1px solid #e4e4e4;background:#fafafa;font-size:16px;font-weight:400;line-height:39px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.block-title a{display:block}
.compact-list{padding:0 9px}
.compact-row{min-height:38px;display:grid;grid-template-columns:24% minmax(0,46%) 30%;align-items:center;border-bottom:1px solid #eee;color:#888}
.compact-row:last-child{border-bottom:0}
.compact-row>a{overflow:hidden;color:#587f96;white-space:nowrap;text-overflow:ellipsis}
.compact-category,.compact-author{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.compact-category{color:#8999a3}
.compact-author{text-align:right;color:#999}
.muted{display:block;padding:9px;color:#999}
.footer{min-height:63px;padding:13px 10px 11px;text-align:center;background:#68aac2;color:#eaf6fb}
.footer a{color:#fff}
.footer span{padding:0 10px;color:#d6edf5}
.footer small{display:block;margin-top:4px;color:#dceff5;font-size:11px;line-height:16px}
.list-heading{margin-top:0}
.page-intro{margin:0;padding:10px;color:#777;background:#fff}
.list-card{display:flex;gap:10px;margin:10px;padding:10px;border:1px solid #ded8c9;border-radius:3px;background:#fffdf7}
.list-card img{width:72px;height:96px;object-fit:cover;border:1px solid #bac3c6}
.list-card>div{min-width:0;flex:1}
.list-card h2{margin:0 0 5px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-card p{margin:0;color:#888;font-size:13px;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.list-card .list-meta{margin-bottom:4px;color:#9a9a9a;-webkit-line-clamp:1}
.empty-state{padding:24px 12px;color:#999;text-align:center;background:#fff}
.pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 8px;border-top:1px solid #eee;background:#fafafa}
.pagination a,.pagination span{padding:6px 10px;border:1px solid #d5d5d5;border-radius:2px;background:#fff}
.pagination span:not(.disabled){border-color:transparent;background:transparent;color:#777}
.pagination .disabled{color:#bbb;background:#f5f5f5}
.ranking-list{padding:0 9px}
.ranking-row{min-height:49px;display:grid;grid-template-columns:34px minmax(0,1fr) 58px;align-items:center;border-bottom:1px solid #eee}
.ranking-row:last-child{border-bottom:0}
.rank-number{width:23px;height:23px;border-radius:2px;text-align:center;line-height:23px;background:#e8ecee;color:#71808a;font-size:12px}
.rank-number.top{background:#68aac2;color:#fff}
.rank-main{min-width:0;display:flex;flex-direction:column}
.rank-main a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#4c7890}
.rank-main small{color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-score{text-align:right;color:#999;font-size:12px}
.book-detail{margin:10px;border:1px solid #ded8c9;border-radius:3px;background:#fffdf7;overflow:hidden}
.book-hero{display:flex;gap:12px;padding:10px}
.book-cover{width:92px;height:124px;flex:0 0 92px;object-fit:cover;border:1px solid #aebbc0}
.book-facts{min-width:0;flex:1}
.book-facts h1{margin:0 0 8px;font-size:18px;line-height:24px}
.book-facts p{margin:3px 0;color:#666;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-facts p span{color:#999}
.book-facts a{color:#43819b}
.book-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 10px 10px}
.action-button{height:36px;display:flex;align-items:center;justify-content:center;border:1px solid #5397b1;border-radius:3px;background:#68aac2;color:#fff;cursor:pointer}
.action-button:hover{color:#fff;background:#559bb5}
.action-button.secondary{border-color:#c8c0ad;background:#f7f1e4;color:#675f52}
.action-button.secondary:hover{background:#efe6d3;color:#50493e}
.description-section{padding:0 10px 12px;border-top:1px solid #e5dfd2}
.description-section h2{margin:10px 0 5px;font-size:16px}
.description-section p{margin:0;color:#666;line-height:24px;white-space:pre-line}
.chapter-list{padding:0 9px}
.chapter-list>a{min-height:39px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #eee;color:#567e93}
.chapter-list>a span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chapter-list time{flex:0 0 auto;color:#aaa;font-size:12px}
.more-link{display:block;padding:10px;text-align:center;color:#43819b}
.related-grid{display:grid;grid-template-columns:1fr 1fr;padding:0 9px}
.related-grid a{padding:9px 4px;border-bottom:1px solid #eee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#587f96}
.catalog-grid{padding:0 9px}
.catalog-grid a{display:block;padding:9px 3px;border-bottom:1px solid #eee;color:#567e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.library-block{min-height:260px}
.library-list{padding:0 9px}
.library-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:10px 2px;border-bottom:1px solid #eee}
.library-item a{color:#507b91;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.library-item small{display:block;color:#999;margin-top:2px}
.library-remove{border:0;background:none;color:#b75b55;cursor:pointer}
.clear-library{display:none;margin:14px auto;height:32px;padding:0 16px;border:1px solid #d2c9b6;border-radius:3px;background:#faf6ed;color:#746b5d;cursor:pointer}
.library-block.has-items .clear-library{display:block}
.library-block.has-items .library-empty{display:none}
.reader-page{background:#f6f2e7;color:#333}
.reader-shell{min-height:100vh;margin:0 auto;background:#f6f2e7}
.reader-head{height:46px;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;background:#68aac2;color:#fff}
.reader-head>a{height:46px;display:flex;align-items:center;justify-content:center;color:#fff}
.reader-head>a:nth-child(2){font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-content{padding:12px 14px 20px}
.reader-content h1{margin:0 0 10px;font-size:19px;line-height:28px;text-align:center;font-weight:600}
.reader-content h1 span{color:#777;font-size:14px}
.reader-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;margin:8px 0 10px;color:#777;font-size:13px}
.reader-tools button{padding:2px 5px;border:0;background:transparent;color:#567e93;cursor:pointer}
.reader-nav{height:40px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;margin:5px 0 15px;border-top:1px solid #ddd5c5;border-bottom:1px solid #ddd5c5;text-align:center}
.reader-nav a{color:#4b7990}
.reader-nav span{color:#bbb}
.chapter-text{font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:2;color:#39362f;overflow-wrap:anywhere}
.bottom-nav{margin-top:22px;margin-bottom:0}
.reader-footer{min-height:60px;display:flex;align-items:center;justify-content:center;gap:28px;background:#68aac2}
.reader-footer a{color:#fff}
body.reader-dark{background:#1f2327;color:#b9c0c4}
body.reader-dark .reader-shell,body.reader-dark .reader-content{background:#1f2327}
body.reader-dark .chapter-text{color:#c2c8ca}
body.reader-dark .reader-nav{border-color:#454b4f}
body.reader-sepia,.reader-sepia .reader-shell,.reader-sepia .reader-content{background:#e8e1cf}
body.reader-sepia .chapter-text{color:#403b31}
.floating-ad{position:fixed;z-index:1000;right:10px;bottom:calc(30px + env(safe-area-inset-bottom,0px));width:25vw;aspect-ratio:1;overflow:visible;border:1px solid rgba(0,0,0,.18);background:#fff;box-shadow:0 5px 20px rgba(0,0,0,.28)}
.floating-ad-link{display:block;width:100%;height:100%;overflow:hidden;background:#f2f2f2}
.floating-ad-link img{width:100%;height:100%;object-fit:cover}
.floating-ad-close{position:absolute;z-index:2;top:3px;right:3px;width:12px;height:12px;padding:0;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(0,0,0,.58);color:#fff;font:10px/9px Arial,sans-serif;text-align:center;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.floating-ad-close::before{content:"";position:absolute;inset:-5px}
.floating-ad-close:hover,.floating-ad-close:focus-visible{background:rgba(0,0,0,.82);outline:1px solid #fff}

@media (min-width:720px){
    .featured-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}
    .catalog-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}
}
