/**
 * PDF 导出组件样式
 */

.pdf-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.pdf-preview-modal.show {
    opacity: 1;
    visibility: visible;
}

.pdf-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pdf-preview-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pdf-preview-modal.show .pdf-preview-content {
    transform: translate(-50%, -50%) scale(1);
}

.pdf-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.pdf-preview-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.pdf-preview-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.pdf-preview-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.pdf-preview-options {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.pdf-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.pdf-option-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.pdf-option-label .option-hint {
    font-size: 12px;
    color: #9ca3af;
}

.pdf-preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f3f4f6;
    -webkit-overflow-scrolling: touch;
}

.pdf-preview-page {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.pdf-preview-footer {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.pdf-preview-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.pdf-preview-footer button:active {
    transform: scale(0.98);
}

.pdf-preview-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.pdf-preview-cancel:hover {
    background: #e5e7eb;
}

.pdf-preview-export {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.pdf-preview-export:hover {
    background: linear-gradient(135deg, #5a71e4 0%, #6a4299 100%);
}
