/* PDF 查看器模态框 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-mask.show {
    opacity: 1;
}

.modal-content {
    background: #2d2d2d;
    border-radius: 0.75rem;
    width: 85%;
    height: 80vh;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-mask.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    right: 1rem;
    top: 0.9rem;
    z-index: 1;
    background: none;
    border: none;
    font-size: 1.0rem;
    color: #adb5bd;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

.fullscreen-btn {
    position: absolute;
    right: 3rem;
    top: 1.0rem;
    z-index: 1;
    background: none;
    border: none;
    font-size: 0.8rem;
    color: #adb5bd;
    transition: color 0.2s ease;
    line-height: 1;
}

.fullscreen-btn:hover {
    color: #fff;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
}

:fullscreen .modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-width: none;
}

:-ms-fullscreen .modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-width: none;
}

:-webkit-full-screen .modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-width: none;
}