/* =================================== */
/* PDF 阅读器 (pdf-reader.js) 专属样式 */
/* =================================== */

.pdf-control-btn { padding: 8px; border-radius: 9999px; color: #475569; background-color: transparent; transition: all 0.2s ease-in-out; }
.pdf-control-btn:hover { background-color: #f1f5f9; color: #1e293b; }
.pdf-control-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pdf-control-btn.active { background-color: #fef3c7; color: #b45309; }
#pdf-viewer-container.book-view { display: flex; justify-content: center; align-items: center; gap: 8px; }

/* PDF 文本图层 */
.pdf-page-wrapper { position: relative; margin: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pdf-text-layer { position: absolute; top: 0; left: 0; overflow: hidden; opacity: 0.8; line-height: 1.0; }
.pdf-text-layer ::selection { background: rgba(245, 158, 11, 0.3); }
.pdf-text-layer > span { color: transparent; position: absolute; white-space: pre; cursor: pointer; transform-origin: 0% 0%; transition: background-color 0.15s ease-in-out; }
.pdf-text-layer > span:hover { background-color: rgba(245, 158, 11, 0.2); color: transparent !important; }
.pdf-text-layer > span.autoplay-highlight { background-color: rgba(245, 158, 11, 0.2); }