/* 音频转换器样式 - 新设计 */

.audio-converter-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 头部区域 */
.audio-converter-header {
    text-align: center;
    margin-bottom: 40px;
}

.audio-converter-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.audio-converter-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

/* 格式标签 */
.audio-converter-format-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.format-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.format-tag-mp3 { background: #e3f2fd; }
.format-tag-wav { background: #e8f5e9; }
.format-tag-flac { background: #f3e5f5; }
.format-tag-aac { background: #fff9c4; }
.format-tag-ogg { background: #ffe0b2; }

/* 主内容区域 */
.audio-converter-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

/* 上传区域 */
.audio-converter-upload-area {
    min-height: 400px;
}

.upload-zone {
    border: 2px dashed #0076ff;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    background: #e7f3ff;
    border-color: #0056cc;
}

.upload-zone.drag-over {
    background: #d4e9ff;
    border-color: #0056cc;
    border-style: solid;
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #0076ff;
    margin: 0 0 10px 0;
}

.upload-or {
    color: #999;
    margin: 15px 0;
    font-size: 14px;
}

.upload-btn {
    background: #0076ff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: #0056cc;
}

.upload-info {
    margin-top: 25px;
    font-size: 13px;
    color: #666;
}

.upload-formats {
    margin-top: 8px;
    font-size: 13px;
    color: #999;
}

.php-limit-info {
    display: inline-block;
    margin-left: 5px;
    font-size: 14px;
    color: #0076ff;
    cursor: pointer;
    vertical-align: middle;
}

.php-limit-info:hover {
    color: #0056cc;
}

.php-limits-info {
    text-align: left;
    line-height: 1.8;
}

.php-limits-info strong {
    display: block;
    margin-bottom: 5px;
}

/* 文件列表 */
.file-list {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.file-list h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.file-size {
    font-size: 13px;
    color: #666;
    margin-right: 10px;
}

.file-remove {
    background: #ff4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: background 0.3s;
}

.file-remove:hover {
    background: #cc0000;
}

/* 设置面板 */
.audio-converter-settings {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
}

.settings-icon {
    font-size: 20px;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.setting-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.setting-select:focus {
    outline: none;
    border-color: #0076ff;
}

/* 音质按钮 */
.quality-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quality-btn {
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.quality-btn:hover {
    border-color: #0076ff;
    background: #f0f6ff;
}

.quality-btn-active {
    border-color: #0076ff;
    background: #e7f3ff;
}

.quality-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.quality-desc {
    font-size: 12px;
    color: #666;
}

/* 转换按钮 */
.convert-btn {
    width: 100%;
    background: #0076ff;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
    margin-top: 10px;
}

.convert-btn:hover:not(:disabled) {
    background: #0056cc;
}

.convert-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.convert-btn:disabled::after {
    content: '🚫';
    position: absolute;
    right: 10px;
    font-size: 18px;
}

.btn-icon {
    font-size: 18px;
}

/* 状态显示 */
.audio-converter-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    min-height: 20px;
}

.status-info {
    background: #e7f3ff;
    color: #0056cc;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

/* 下载区域 */
.download-area {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.download-area h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.download-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
}

.download-item.error {
    color: #721c24;
    background: #f8d7da;
}

.download-link {
    display: inline-block;
    color: #0076ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.download-link:hover {
    color: #0056cc;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .audio-converter-main {
        grid-template-columns: 1fr;
    }
    
    .audio-converter-settings {
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .audio-converter-wrapper {
        margin: 20px;
        padding: 20px;
    }
    
    .audio-converter-title {
        font-size: 24px;
    }
    
    .upload-zone {
        padding: 40px 20px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
}
