/* Audio Enhancement Demo 样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.audio-enhancement-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.audio-enhancement-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.audio-enhancement-header h1 {
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.audio-enhancement-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 主表单容器 */
.audio-enhancement-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 通用区域样式 */
.upload-section, .enhancement-section, .action-section, .status-section, .result-section {
    margin-bottom: 40px;
}

/* 区域标题样式 */
.upload-header, .enhancement-header, .result-header {
    margin-bottom: 25px;
}

.upload-header h3, .enhancement-header h3, .result-header h3 {
    color: #333;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-header h3::before { content: "📁"; }
.enhancement-header h3::before { content: "🎛️"; }
.result-header h3::before { content: "✨"; }

.upload-desc, .enhancement-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
}

/* 文件上传区域 */
.upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f2ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.upload-area.dragover {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.upload-icon {
    font-size: 4.5rem;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.upload-text p {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-text small {
    color: #6b7280;
    font-size: 1rem;
}

/* 已上传音频显示 */
.uploaded-audio {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.audio-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.audio-meta {
    flex: 1;
}

.audio-name {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.audio-details {
    display: block;
    color: #666;
    font-size: 0.95rem;
}

.remove-audio-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.remove-audio-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.4);
}

.audio-player-section {
    margin-bottom: 20px;
}

.audio-player-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.original-audio {
    width: 100%;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.audio-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.analysis-item {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.analysis-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.analysis-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

/* 增强选项标签页 */
.enhancement-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    background: #f1f5f9;
    border-radius: 15px;
    padding: 5px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
    white-space: nowrap;
    min-width: 120px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.tab-btn:not(.active):hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 标签页内容 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 效果组 */
.effect-group {
    display: grid;
    gap: 20px;
}

.effect-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.effect-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.effect-item:hover::before {
    transform: scaleX(1);
}

.effect-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* 复选框样式 */
.effect-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    margin-bottom: 15px;
    position: relative;
}

.effect-checkbox {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.effect-checkbox:checked + .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.effect-checkbox:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* 效果控制 */
.effect-controls {
    display: none;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 15px;
}

.effect-checkbox:checked ~ .effect-controls {
    display: grid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.effect-controls label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.effect-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.effect-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.effect-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.effect-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.slider-value {
    font-weight: 700;
    color: #667eea;
    font-size: 0.95rem;
    min-width: 60px;
    text-align: center;
    background: white;
    padding: 5px 10px;
    border-radius: 20px;
}