/* PDF转换器工具专用样式 */

/* 容器样式 */
.pdf-converter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.converter-header {
    text-align: center;
    margin-bottom: 30px;
}

.converter-header h1 {
    color: #333;
    margin-bottom: 20px;
}

/* 功能选择器 */
.function-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.function-btn {
    padding: 12px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.function-btn:hover {
    border-color: #4a90e2;
    background: #f0f7ff;
}

.function-btn.active {
    border-color: #4a90e2;
    background: #4a90e2;
    color: white;
}

/* 转换器主区域 */
.converter-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* 上传区域 */
.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #4a90e2;
    background: #f0f7ff;
}

.upload-icon {
    font-size: 48px;
    color: #4a90e2;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.upload-hint {
    color: #666;
    font-size: 14px;
}

.file-input {
    display: none;
}

/* 文件列表 */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fafafa;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #4a90e2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    font-weight: bold;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.file-remove {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
}

.file-remove:hover {
    background: #ff3742;
}

/* 功能选项 */
.function-options {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-select,
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input {
    margin-right: 8px;
}

/* 操作按钮 */
.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #357abf;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 进度显示 */
.progress-section {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #4a90e2;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 结果显示 */
.result-section {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    display: none;
}

.result-success {
    background: #f0fff4;
    border: 1px solid #b3d9c7;
}

.result-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
}

.result-title {
    font-weight: 500;
    margin-bottom: 10px;
}

.download-link {
    display: inline-block;
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 10px;
}

.download-link:hover {
    background: #357abf;
    text-decoration: none;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .function-selector {
        flex-direction: column;
        align-items: center;
    }

    .function-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .converter-main {
        padding: 20px;
    }
}
