/* ============================================================
 * pdf-viewer.css —— 低带宽逐页 PDF 阅读器（两站共用）
 * 铃二次元风格：奶油玻璃 / 应援黄 / 瞳色青 / 樱花粉
 * 只加载视口附近的页，单页 webp 约 30~60KB
 * ============================================================ */

.pvpdf { max-width: 1100px; margin: 0 auto; }

/* ---- 工具条 ---- */
.pvpdf-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 14px; margin-bottom: 14px;
    background: var(--sh-glass, rgba(255, 252, 240, .82));
    border: 2px solid var(--sh-line, rgba(214, 178, 74, .45));
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(196, 154, 40, .12);
    backdrop-filter: blur(8px);
    position: sticky; top: 8px; z-index: 5;
}
.pvpdf-nav {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12.5px; font-weight: 800; color: #6B4A00;
}
.pvpdf-nav button {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1.5px solid var(--sh-line, rgba(214,178,74,.45));
    background: #FFFDF4; color: #8A6208; cursor: pointer;
    font-size: 15px; font-weight: 800; line-height: 1;
}
.pvpdf-nav button:disabled { opacity: .4; cursor: default; }
.pvpdf-nav button:not(:disabled):hover { background: #FFF3C8; }
.pvpdf-page-input {
    width: 54px; height: 30px; text-align: center;
    border: 1.5px solid var(--sh-line, rgba(214,178,74,.45));
    border-radius: 8px; background: #FFFDF4; color: #5A3E00;
    font: 700 12.5px ui-monospace, Consolas, monospace;
}
.pvpdf-count { font-size: 12px; color: #9A7A2A; font-weight: 700; white-space: nowrap; }
.pvpdf-sep { width: 1px; height: 22px; background: var(--sh-line, rgba(214,178,74,.4)); margin: 0 3px; }
.pvpdf-q {
    display: inline-flex; border-radius: 8px; overflow: hidden;
    border: 1.5px solid var(--sh-line, rgba(214,178,74,.45));
}
.pvpdf-q button {
    padding: 5px 9px; border: 0; background: #FFFDF4; color: #8A6208;
    font-size: 11.5px; font-weight: 800; cursor: pointer;
}
.pvpdf-q button + button { border-left: 1px solid var(--sh-line, rgba(214,178,74,.4)); }
.pvpdf-q button.on { background: linear-gradient(140deg, #FFE985, #F2C94C); color: #5A3E00; }
.pvpdf-info { margin-left: auto; font-size: 11.5px; color: #9A7A2A; font-weight: 700; white-space: nowrap; }

/* ---- 页面流 ---- */
.pvpdf-pages {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding: 4px 0 30px;
}
.pvpdf-item {
    position: relative;
    width: 100%; max-width: 900px;
    display: flex; flex-direction: column; align-items: center;
}
.pvpdf-item img {
    display: block; width: 100%; height: auto;
    background: #FFF; border-radius: 6px;
    box-shadow: 0 4px 20px rgba(60, 45, 15, .16), 0 0 0 2px rgba(214,178,74,.3);
}
.pvpdf-item:not(.loaded) img { min-height: 320px; background: #FFFDF4; }
.pvpdf-ph {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #B8942E; font-size: 12px; font-weight: 800;
    letter-spacing: .5px; pointer-events: none;
}
.pvpdf-item.loaded .pvpdf-ph { display: none; }
.pvpdf-item.error .pvpdf-ph { color: #C0392B; }
.pvpdf-lbl {
    margin-top: 6px; font-size: 11px; color: #A58224; font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---- 底部加载提示 ---- */
.pvpdf-tip {
    text-align: center; padding: 10px; font-size: 11.5px;
    color: #A58224; font-weight: 700;
}

@media (max-width: 720px) {
    .pvpdf-bar { padding: 8px 10px; gap: 6px; top: 4px; }
    .pvpdf-nav button { width: 28px; height: 28px; }
    .pvpdf-info { display: none; }
    .pvpdf-pages { gap: 12px; }
}
