/* PDF 轮播 (LinkedIn 风格) */
.pdf-carousel {
    position: relative;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
}
.pdf-carousel .pc-viewport {
    position: relative;
    text-align: center;
    background: #1a1a1a;
    padding: 12px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}
.pdf-carousel .pc-viewport canvas {
    max-width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
.pdf-carousel .pc-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 14px;
    background: #111;
    color: #eee;
    font-size: 14px;
}
.pdf-carousel .pc-bar a {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 32px;
    text-align: center;
    color: #fff;
    background: #c00;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    user-select: none;
    transition: background .15s;
}
.pdf-carousel .pc-bar a:hover { background: #e00; }
.pdf-carousel .pc-bar a.pc-disabled { background: #555; cursor: not-allowed; }
.pdf-carousel .pc-info { min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.pdf-carousel .pc-bar a.pc-fs { background: #444; font-size: 16px; }
.pdf-carousel.pc-error .pc-viewport { min-height: 120px; color: #f66; }

/* 全屏时让画布居中 */
.pdf-carousel .pc-viewport:fullscreen { background: #111; overflow: auto; }
.pdf-carousel .pc-viewport:-webkit-full-screen { background: #111; overflow: auto; }

@media (max-width: 767px) {
    .pdf-carousel .pc-viewport { padding: 6px; min-height: 160px; }
    .pdf-carousel .pc-bar { gap: 10px; }
    .pdf-carousel .pc-bar a { width: 30px; height: 30px; line-height: 28px; font-size: 18px; }
}
