/* PDF 查看器页面样式 */

.pdf-page {
    min-height: 100vh;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* PDF 查看器区域 */
.pdf-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.pdf-container {
    display: flex;
    gap: 24px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: calc(100vh - 300px);
    min-height: 600px;
}

/* 左侧 PDF 列表 */
.pdf-sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.pdf-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
}

.pdf-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.pdf-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pdf-upload-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.pdf-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* 空状态 */
.pdf-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.pdf-empty-hint {
    font-size: 12px;
    margin-top: 8px;
}

/* PDF 列表 */
.pdf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.pdf-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pdf-item.active {
    background: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pdf-item-icon {
    color: #dc3545;
    flex-shrink: 0;
}

.pdf-item-info {
    flex: 1;
    min-width: 0;
}

.pdf-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.pdf-item-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

/* 右侧 PDF 查看器 */
.pdf-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pdf-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.pdf-viewer-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-viewer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.pdf-viewer-btn:hover {
    background: #667eea;
    color: white;
}

.pdf-viewer-page-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #333;
}

#zoomLevel {
    font-size: 14px;
    color: #333;
    min-width: 50px;
    text-align: center;
}

.pdf-viewer-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
}

.pdf-placeholder {
    text-align: center;
    color: #999;
}

.pdf-placeholder svg {
    margin-bottom: 16px;
}

#pdfCanvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 响应式 */
@media (max-width: 768px) {
    .pdf-container {
        flex-direction: column;
        height: auto;
    }

    .pdf-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        max-height: 300px;
    }

    .pdf-viewer {
        min-height: 500px;
    }
}
