/* 小说闭环增量样式：由 index.html 在 app.css 之后加载。 */
.book-search { width: calc(100% - 20px); text-align: left; }
/* 快捷入口随内容滚走，不占固定顶栏空间；只保留这一层纵向滚动。 */
.book-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.book-scroll > .book-body { flex: none; overflow: visible; }
.book-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px 4px;
}
.book-shortcut { padding: 10px 2px; min-height: 62px; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.book-shortcut svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.book-shortcut.active { background: var(--brand); color: #fff; font-weight: 600; }
.book-card { border: 0; padding: 0; background: transparent; color: var(--text); font: inherit; align-self: start; }
.book-card-author { display: block; }
.book-card-meta { display: block; min-width: 0; }
.book-card-remark { display: none; }
.book-list { padding: 4px 14px; }
.book-list .book-card { display: flex; width: 100%; align-items: flex-start; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--search-stroke); }
.book-list .book-card img { width: 70px; height: 93px; flex-shrink: 0; }
.book-list .book-card-meta { flex: 1; }
.book-list .book-card-title { margin-top: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.book-list .book-card-remark { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-gray); font-size: 12px; line-height: 1.6; margin-top: 7px; overflow-wrap: anywhere; }
.book-list .book-card-author { margin-top: 7px; font-size: 12px; }
.book-local-note { margin: 12px 14px; color: var(--text-gray); font-size: 12px; line-height: 1.6; }
.book-page-status { padding: 4px 12px 20px; text-align: center; }
.book-retry, .book-load-more {
  display: block; margin: 10px auto; padding: 11px 24px;
  border: 1px solid var(--brand); border-radius: 8px;
  background: var(--card-bg); color: var(--brand); font-size: 14px;
}
.book-search-results { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: var(--safe-bottom); -webkit-overflow-scrolling: touch; }
#page-book-detail { background: var(--page-bg); }
#book-detail-content { min-height: 0; }
.book-detail-meta { display: flex; align-items: flex-start; gap: 16px; padding: 18px 16px 8px; }
.book-detail-meta img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--card-bg); }
.book-detail-meta > div { min-width: 0; }
.book-detail-meta h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.book-detail-meta p { margin: 6px 0; color: var(--text-gray); font-size: 13px; }
.book-detail-remark { margin: 12px 16px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.book-detail-actions { display: flex; gap: 10px; padding: 8px 16px; }
.book-detail-actions button { flex: 1; min-height: 44px; padding: 10px; border: 1px solid var(--brand); border-radius: 8px; background: var(--card-bg); color: var(--brand); font-size: 14px; }
#book-detail-read { background: var(--brand); color: #fff; }
#book-detail-catalog { padding: 0 16px 20px; }
#book-detail-catalog h3 { font-size: 16px; margin: 14px 0 8px; }
.book-detail-chapter { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--search-stroke); padding: 13px 4px; background: transparent; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.book-detail-actions button:disabled, .book-detail-chapter:disabled, .reader-toolbar button:disabled, .reader-ch:disabled { opacity: .5; cursor: default; }
.book-shortcut:focus-visible, .book-card:focus-visible, .book-detail-chapter:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.reader-body { min-height: 0; overflow-wrap: anywhere; }
.reader-body p { white-space: pre-wrap; }
.reader-toolbar, .reader-chapter-title { flex-shrink: 0; }
.reader-toolbar button { min-height: 36px; }
