/* novel.css —— 桌面端组件样式：按钮体系 / 卡片 / 口令结果面板 / 留白节奏
   手机端（<=768px、<=480px）适配由 mobile.css 负责，本文件不包含任何 @media 规则 */
body{background:#f5f7fa;color:#333}
.top-bar{background:#fff;border-bottom:1px solid #eef1f5;padding:12px 0;position:sticky;top:0;z-index:10}
.top-bar-inner{max-width:1200px;margin:0 auto;padding:0 16px;display:flex;align-items:center;justify-content:space-between;position:relative}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand-icon{width:34px;height:34px;background:linear-gradient(135deg,#1890ff 0%,#096dd9 100%);border-radius:8px;display:flex;align-items:center;justify-content:center;flex:0 0 34px}
.brand-icon svg{width:20px;height:20px;color:#fff}
.brand-text{font-size:18px;font-weight:600;color:#1890ff;letter-spacing:1px}
.top-nav{display:flex;align-items:center;gap:6px}
.top-nav a{padding:8px 14px;border-radius:6px;font-size:14px;color:#555;white-space:nowrap;text-decoration:none}
.top-nav a:hover{color:#1890ff;background:#f2f7ff}
.top-nav a.active{color:#1890ff;background:#e8f3ff;font-weight:600}
.nav-more{display:none;align-items:center;padding:6px 10px;border-radius:6px;font-size:14px;color:#555;cursor:pointer;user-select:none;white-space:nowrap}
.page-wrap{max-width:1200px;margin:20px auto 40px;padding:0 16px}
.page-card{background:#fff;border-radius:8px;padding:24px}
.page-title{font-size:22px;font-weight:700;color:#222;margin-bottom:8px}
.page-subtitle{font-size:14px;color:#1890ff;margin-bottom:16px}
.filter-panel{background:#f7f8fa;border:1px solid #eef1f5;border-radius:8px;padding:16px;margin-bottom:16px}
.filter-title{font-size:15px;font-weight:700;margin-bottom:12px}
.filter-row{display:flex;align-items:flex-start;margin-bottom:12px}
.filter-row:last-child{margin-bottom:0}
.filter-label{flex:0 0 44px;font-size:14px;color:#666;line-height:28px}
.filter-tags{flex:1;display:flex;flex-wrap:wrap;gap:8px}
.filter-tag{padding:5px 14px;background:#fff;border:1px solid #e3e6eb;border-radius:16px;font-size:13px;color:#444;cursor:pointer;transition:border-color .2s,color .2s,background .2s,box-shadow .2s;user-select:none}
.filter-tag:hover{border-color:#1890ff;color:#1890ff;background:#f2f7ff}
.filter-tag.active{background:#1890ff;border-color:#1890ff;color:#fff;box-shadow:0 2px 6px rgba(24,144,255,.25)}
.search-row{display:flex;gap:12px;margin-bottom:16px}
.search-input{flex:1;height:44px;padding:0 16px;border:1px solid #dcdfe6;border-radius:8px;font-family:inherit;font-size:14px;outline:none}
.search-input:focus{border-color:#1890ff}
.btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 20px;border:none;border-radius:8px;font-family:inherit;font-size:14px;line-height:1;white-space:nowrap;box-sizing:border-box;cursor:pointer;transition:all .2s}
.btn-primary{background:#1890ff;color:#fff;font-weight:600;box-shadow:0 2px 6px rgba(24,144,255,.25)}
.btn-primary:hover{background:#096dd9}
.btn-plain{background:#fff;color:#333;border:1px solid #dcdfe6}
.btn-plain:hover{color:#1890ff;border-color:#1890ff}
.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
.book-card{background:#fff;border:1px solid #eef1f5;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .25s ease,transform .25s ease}
.book-card:hover{box-shadow:0 6px 20px rgba(24,144,255,.12);transform:translateY(-2px)}
.book-cover{width:100%;aspect-ratio:3/4;object-fit:cover;background:#f0f2f5;display:block}
.book-info{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.book-title{font-size:14px;font-weight:700;color:#222;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.clickable{cursor:pointer}
.book-title.clickable:hover{color:#1890ff}
.book-author{font-size:12px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.book-meta{font-size:12px;color:#b0b6bf;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.book-actions{margin-top:auto;display:flex;gap:8px;align-items:center}
.book-get{font-family:inherit;font-size:13px;color:#1890ff;cursor:pointer;background:none;border:none;text-align:left;padding:0}
.book-get:hover{color:#096dd9}
.book-preview{font-family:inherit;font-size:13px;color:#52c41a;cursor:pointer;background:none;border:none;text-align:left;padding:0}
.book-preview:hover{color:#389e0d}
.book-grid.book-list{display:flex;flex-direction:column;gap:12px}
.book-list .book-card{flex-direction:row;align-items:center;padding:12px;gap:14px}
.book-list .book-cover{width:72px;flex:0 0 72px;aspect-ratio:3/4;border-radius:6px}
.book-list .book-info{padding:0;gap:4px}
.book-list .book-title{font-size:15px;-webkit-line-clamp:1}
.state-box{text-align:center;color:#999;font-size:14px;padding:30px 0 10px}
.spinner{display:inline-block;width:18px;height:18px;border:2px solid #d6e8ff;border-top-color:#1890ff;border-radius:50%;animation:nspin .8s linear infinite;vertical-align:-4px;margin-right:8px}
@keyframes nspin{to{transform:rotate(360deg)}}
.mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}
.modal{background:#fff;border-radius:10px;width:100%;max-width:460px;padding:24px;position:relative}
.modal-close{position:absolute;top:12px;right:16px;font-size:22px;color:#999;cursor:pointer;background:none;border:none;line-height:1}
.modal h3{font-size:17px;margin-bottom:6px;padding-right:24px}
.modal .modal-sub{font-size:13px;color:#999;margin-bottom:16px}
.pcode-box{background:#f5f7fa;border:1px dashed #c9d6e8;border-radius:8px;padding:14px;font-size:14px;line-height:1.7;color:#333;word-break:break-all;max-height:180px;overflow:auto;margin-bottom:16px}
.pcode-box .pcode-main{color:#1890ff;font-weight:700}
.pcode-msg{color:#8a94a6;font-size:12px;margin-top:6px;line-height:1.6}
.modal-actions{display:flex;gap:10px}
.modal-actions .btn{flex:1}
.toast{position:fixed;top:64px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.75);color:#fff;font-size:13px;padding:10px 20px;border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.18);z-index:200;max-width:90%;pointer-events:none}
.book-detail{display:flex;gap:24px;margin-bottom:24px}
.book-detail img{width:180px;flex:0 0 180px;height:240px;object-fit:cover;border-radius:8px;background:#f0f2f5;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.book-detail-info{flex:1;min-width:0}
.book-meta-line{font-size:14px;color:#999;margin-bottom:12px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-intro{font-size:14px;color:#555;line-height:1.8;margin-bottom:16px;max-height:200px;overflow-y:auto;white-space:pre-wrap}
.detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px}
.breadcrumb{font-size:14px;color:#888;margin-bottom:16px}
.breadcrumb a{color:#1890ff;text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.section-title{font-size:18px;font-weight:700;margin-bottom:12px;color:#222}
.trial-chapters{margin-top:8px}
.chapter-list{list-style:none;padding:0;margin:0}
.chapter-list li{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #eef1f5;gap:12px}
.chapter-list li a{flex:1;color:#333;font-size:14px;text-decoration:none}
.chapter-list li a:hover{color:#1890ff}
.trial-tag{flex:0 0 auto;font-size:12px;color:#52c41a;background:#f6ffed;border:1px solid #b7eb8f;border-radius:4px;padding:2px 8px}
.chapter-read{margin-top:8px}
.chapter-content{background:#fafafa;border:1px solid #eef1f5;border-radius:8px;padding:24px;white-space:pre-wrap;line-height:2;text-indent:2em;font-size:15px;color:#333;margin:16px 0 24px}
.chapter-nav{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}
.chapter-nav .btn-plain{min-width:88px}
.pan-page .pan-steps{margin:16px 0 20px;padding-left:20px;color:#666;line-height:2}
.site-footer{text-align:center;color:#999;padding:24px;font-size:13px}
@media(max-width:768px){
.page-card{padding:16px}
.nav-more{display:inline-flex}
.top-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #eef1f5;box-shadow:0 8px 16px rgba(0,0,0,.06);flex-direction:column;align-items:stretch;gap:2px;padding:8px 12px}
.top-nav.nav-open{display:flex}
.book-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.search-row{flex-wrap:wrap}
.search-input{flex:1 1 100%}
.book-detail{flex-direction:column}
}
.pcode-result{margin-top:18px;max-width:560px;background:#fafbfc;border:1px solid #eef1f5;border-radius:10px;padding:14px}
.pcode-result .pcode-box{margin-bottom:12px;background:transparent;border:none;padding:0;max-height:none;overflow:visible}
.pcode-result .pcode-main{display:block;font-size:22px;letter-spacing:1.5px;margin-bottom:6px}
.pcode-result .btn{height:40px;min-width:140px}

/* =========================================================================
   SEO：列表页服务端渲染区块
   只服务于 #seo-initial（爬虫可读的静态列表）与分页链接。
   ========================================================================= */
a.book-card{text-decoration:none;color:inherit}
a.book-card:hover{text-decoration:none}
a.filter-tag{text-decoration:none;display:inline-block}
a.filter-tag:visited{color:#444}
a.filter-tag.active:visited{color:#fff}

.pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:26px;flex-wrap:wrap}
.pager-btn{display:inline-block;padding:8px 18px;border:1px solid #e0e5ec;border-radius:6px;color:#333;text-decoration:none;font-size:14px;background:#fff;transition:border-color .2s,color .2s}
.pager-btn:hover{border-color:#1890ff;color:#1890ff}
.pager-btn.disabled{color:#c0c6cf;border-color:#f0f2f5;cursor:not-allowed}
.pager-info{font-size:13px;color:#999}

/* 不可点的按钮（章节页首/末章的「上一章/下一章」） */
.btn.disabled{color:#c0c6cf;border-color:#f0f2f5;cursor:not-allowed;pointer-events:none}
