/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e1e4e8;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 转换容器样式 */
.conversion-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.conversion-type {
    margin-bottom: 25px;
}

.conversion-type h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.conversion-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.conversion-btn {
    padding: 12px 20px;
    background-color: #f1f2f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #555;
}

.conversion-btn:hover {
    background-color: #e3e6f0;
}

.conversion-btn.active {
    background-color: #3498db;
    color: white;
}

/* 文件上传区域 */
.file-upload-container {
    margin-bottom: 25px;
}

#drop-area {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

#drop-area.highlight {
    background-color: #ecf0f1;
    border-color: #2980b9;
}

.file-input-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    margin: 15px 0;
    transition: background-color 0.3s ease;
}

.file-input-label:hover {
    background-color: #2980b9;
}

.file-name {
    margin-top: 10px;
    font-weight: bold;
    color: #2c3e50;
}

/* 转换选项面板 */
.options-panel {
    display: none;
    background-color: #f8fafc;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.options-panel.active {
    display: block;
}

.options-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.option {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.option label {
    width: 100px;
    color: #555;
}

.option select, .option input[type="range"] {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex: 1;
}

.option input[type="range"] {
    margin-right: 10px;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.primary-btn {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    flex: 1;
}

.primary-btn:hover {
    background-color: #2980b9;
}

.primary-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* 进度条 */
#progress-container {
    margin-top: 20px;
}

#progress-bar {
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

#progress {
    height: 100%;
    background-color: #2ecc71;
    width: 0;
    transition: width 0.3s ease;
}

#progress-text {
    text-align: center;
    color: #7f8c8d;
}

.hidden {
    display: none;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .conversion-options {
        flex-direction: column;
    }
    
    .conversion-btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option label {
        margin-bottom: 5px;
        width: 100%;
    }
}