
/* 全局基础 */
* {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

#pdfjs_container {
    width: 100%;
    margin: 0 auto;   /* ⭐关键：水平居中 */
}

/* 工具栏整体 */
.pdf-toolbar {
    display: flex;
    justify-content: center;
    width: 100%;
    background: #f6f7f9;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border-radius: 6px;
    box-sizing: border-box;
}

/* 工具栏按钮：扁平 + 边框风格 */
.pdf-btn {
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: 0.15s;
}

.pdf-btn:hover {
    background: #f0f0f0;
    border-color: #bdbdbd;
}

/* 禁用按钮 */
.pdf-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* 页码区域 */
.page-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
}

.page-box input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
}

/* PDF viewer box */
.pdf-view-area {
    display: flex;
    justify-content: center;  /* ⭐重点：让 PDF 画布在中间 */
    align-items: center;
    width: 100%;
    height: 850px;
    border: 1px solid #e3e3e3;
    background: #f8f9fc;
    margin-top: 10px;
    overflow: auto;
    border-radius: 8px;
    position: relative;
}

/* loading 居中 */
.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    color: #777;
}

/* 状态栏 */
.status-line {
    padding: 8px 2px;
    color: #666;
    font-size: 13px;
    display: flex;
    justify-content: center;  /* ⭐重点：让 PDF 画布在中间 */
}
#pdf-viewer canvas {
    display: block;
    margin: 0 auto;
}
:fullscreen::backdrop {
    background: #fff !important;  /* 或 transparent */
}

/* Firefox */
:-moz-full-screen::backdrop {
    background: #fff !important;
}

/* Safari */
:-webkit-full-screen::backdrop {
    background: #fff !important;
}
