#detail-view { background: #f5f0e6; }

.detail-header-bar { flex-shrink: 0; padding: 15px 20px; display: flex; justify-content: space-between; font-size: 16px; color: #333; font-weight: bold; background: #f5f0e6; z-index: 10; border-bottom: 1px solid rgba(0,0,0,0.03);}
.header-actions { display: flex; gap: 20px; font-size: 14px; font-weight: normal; }

.detail-scroll-box { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 20px; position: relative; }

.detail-top { display: flex; flex-direction: column; align-items: center; padding: 12px 0 22px; }
.detail-cover { width: 120px; height: 160px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); margin-bottom: 18px; object-fit: cover; }
.detail-title { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 8px; text-align: center; padding: 0 20px; }
.detail-author { font-size: 14px; color: #666; }

.detail-intro-box { padding: 0 20px 24px; font-size: 15px; color: #444; line-height: 1.8; text-align: justify; }
.detail-intro-box strong { color: #222; display: block; margin-bottom: 6px; }

#infinite-reader-container { padding: 0 16px 10px; }
.reader-chapter-box { margin: 0 0 20px; padding: 18px 16px; background: rgba(255,255,255,0.58); border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.reader-chapter-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 14px; }
.reader-chapter-content { font-size: 18px; line-height: 2; color: #333; white-space: pre-wrap; word-break: break-word; }
.reader-chapter-content p { margin: 0 0 1em; text-indent: 2em; }

.quark-bottom-bar { flex-shrink: 0; background: #ede8dc; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.q-bar-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; font-size: 13px; color: #888; border-bottom: 1px solid rgba(0,0,0,0.03); }
.q-action-btn { cursor: pointer; font-weight: bold; }
.q-action-btn.disabled { color: #ccc; pointer-events: none; }
.q-progress-bar { flex: 1; height: 36px; background: rgba(0,0,0,0.04); border-radius: 18px; margin: 0 20px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #666; font-weight: bold; cursor: pointer; }
.q-bar-bottom { display: flex; justify-content: space-around; padding: 12px 0 25px; background: #f5f0e6; }
.q-nav-item { display: flex; flex-direction: column; align-items: center; color: #333; font-size: 11px; gap: 5px; cursor: pointer; font-weight: bold; }
.q-icon { font-size: 20px; }

.scroll-anchor { height: 60px; line-height: 60px; text-align: center; color: #aaa; font-size: 14px; margin-bottom: 30px; }