@media print {
    /* 隐藏整个 PDF.js 容器，防止打印 */
    #viewerContainer, #outerContainer, #printContainer {
        display: none !important;
    }

    /* 或者，显示一个空白页面或自定义消息 */
    body::before {
        content: "此文档不允许打印。";
        font-size: 24px;
        text-align: center;
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #000;
        background-color: #fff;
        padding: 20px;
        border: 2px solid #ccc;
        z-index: 9999;
    }
    /* 隐藏所有其他内容 */
    body > *:not(body::before) {
        display: none !important;
    }
}
#download,
#print,
#openFile,
#viewBookmark,
#secondaryPrint,
#secondaryOpenFile,
#secondaryDownload,
#secondaryViewBookmark,
#documentProperties,
#horizontalToolbarSeparator,
#secondaryToolbarToggle,
#presentationMode{
    display: none!important;
    }
#pageNumber {
    width: 20px;
}



#fullscreenLoadingOverlay {
    position: fixed; /* 固定定位，覆盖整个视口 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    display: flex; /* 使用 flexbox 居中内容 */
    flex-direction: column; /* 保持垂直排列 */
    justify-content: flex-start; 
    padding-top: 20vh; 
    align-items: center; /* 水平居中 */
    z-index: 9999; /* 确保它在最上层 */
    color: white; /* 文本颜色 */
    font-size: 1.2em;
    transition: opacity 0.3s ease-in-out; /* 隐藏/显示时的过渡效果 */
    margin-top: 35px;
}
#loadingDes {
    /* 基本排版 */
    margin-top: 25px; /* 与上方内容（例如百分比）保持足够间距 */
    font-size: 1.1em; /* 稍微放大字体，更易阅读 */
    color: #f0f0f0; /* 浅色文本，与深色背景形成对比，略微柔和于纯白 */
    text-align: center; /* 文本水平居中 */
    max-width: 80%; /* 限制宽度，防止长文本在小屏幕上过于分散 */
    line-height: 1.6; /* 增加行高，提升阅读舒适度 */

    /* 增加一点视觉强调，可选 */
    font-weight: bold; /* 加粗文字，使其更显眼 */
    /* text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); */ /* 文本阴影，增加发光效果，可选 */
}
/* 加载动画 (示例：双重弹跳动画) */
.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 30px auto;
}
.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #337ab7; /* 蓝色 */
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}
.double-bounce2 {
    animation-delay: -1.0s;
}
@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0.0);
    }
    50% {
        transform: scale(1.0);
    }
}