/* 文件转换工具样式 */

/* 通用样式 */
.file-converter-section {
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 工作区 */
.workspace {
    background: var(--bg-card);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
    margin-bottom: 1.5rem;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary-light);
}

.file-upload-area.active {
    border-color: var(--success-color);
    background: var(--bg-success-light);
}

.upload-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 文件信息 */
.file-info {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.file-info.show {
    display: block;
}

.file-info .row {
    margin: 0;
}

.file-info .col-md-6 {
    padding: 0 0.5rem;
}

.file-info strong {
    color: var(--text-primary);
}

/* 设置区域 */
.settings {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.625rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-range {
    width: 100%;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    background-color: var(--bg-disabled);
    border-color: var(--bg-disabled);
    cursor: not-allowed;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: var(--danger-dark);
    border-color: var(--danger-dark);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 0.1875rem solid var(--bg-light);
    border-top: 0.1875rem solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.625rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 结果区域 */
.result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
}

.result.success {
    border: 1px solid var(--success-color);
    background: var(--bg-success-light);
    color: var(--success-color);
    display: block;
}

.result.error {
    border: 1px solid var(--danger-color);
    background: var(--bg-danger-light);
    color: var(--danger-color);
    display: block;
}

/* 功能特性 */
.features {
    padding: 3rem 0;
    background: var(--bg-light);
}

.features .text-center {
    margin-bottom: 2rem;
}

.features h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 文件列表 */
.file-list {
    margin-top: 0.5rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 0.375rem;
    margin-bottom: 0.375rem;
    border: 1px solid var(--border-color);
}

.file-item span {
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .file-upload-area {
        padding: 2rem;
    }
    
    .workspace {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feature-icon {
        margin-bottom: 0.75rem;
    }
}

/* 主题变量 */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --bg-primary-light: #dbeafe;
    
    --success-color: #10b981;
    --success-dark: #059669;
    --bg-success-light: #d1fae5;
    
    --danger-color: #ef4444;
    --danger-dark: #dc2626;
    --bg-danger-light: #fee2e2;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    
    --bg-card: #ffffff;
    --bg-light: #f9fafb;
    --bg-disabled: #e5e7eb;
    
    --border-color: #e5e7eb;
}