:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;  
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* TTS模式下容器扩展 */
.container.tts-mode {
    max-width: 80%;
    min-width: 1200px;
}

.header {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.subtitle-inline {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 8px;
}

.subtitle-inline-small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 12px;
    display: inline-block;
}

.header .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.header .features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--success-color);
}

.main-content {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.form-container {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--surface-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.btn-primary {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: #047857;
    transform: translateY(-1px);
}

.result-container {
    margin-top: 32px;
    padding: 24px;
    background: var(--background-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: none;
}

.audio-player {
    width: 100%;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
}

.error-message {
    color: var(--error-color);
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    font-weight: 500;
}

.loading-container {
    text-align: center;
    padding: 32px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.loading-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.wechat-promotion {
    margin-top: 40px;
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.promotion-header {
    background: #f1f5f9;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.promotion-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.promotion-content {
    padding: 30px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.promotion-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.benefits-list li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    font-size: 1rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* 输入方式选择优化样式 */
.input-method-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--background-color);
    padding: 4px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.tab-btn .tab-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.tab-btn:not(.active) .tab-icon {
    background: rgba(100, 116, 139, 0.1);
}

.file-upload-container {
    width: 100%;
}

.file-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(248, 250, 252, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.file-drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-drop-zone:hover::before,
.file-drop-zone.dragover::before {
    opacity: 1;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.file-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.file-drop-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.file-drop-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.file-drop-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    padding: 8px 16px;
    background: rgba(100, 116, 139, 0.1);
    border-radius: var(--radius-sm);
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(248, 250, 252, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.file-info:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-name::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 0.8;
    flex-shrink: 0;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(100, 116, 139, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.file-remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--error-color);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.file-remove-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 主功能切换器样式 */
.mode-switcher {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    max-width: 250px;
}

.mode-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mode-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mode-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 语音转录界面样式 */
.transcription-container {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.audio-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(248, 250, 252, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.audio-upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-upload-zone:hover::before,
.audio-upload-zone.dragover::before {
    opacity: 1;
}

.audio-upload-zone:hover,
.audio-upload-zone.dragover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.token-config {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.token-option {
    display: flex;
    align-items: center;
}

.token-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.token-label:hover {
    color: var(--text-primary);
}

.token-label input[type="radio"] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.transcription-result {
    margin-top: 20px;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.result-actions .btn-secondary {
    flex: 1;
    min-width: 140px;
}

/* 语言切换器样式 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.language-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    display: none;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.language-option.active {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle-inline {
        display: block;
        font-size: 0.9rem;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .subtitle-inline-small {
        display: inline-block;
        font-size: 0.875rem;
        font-weight: 500;
        margin-left: 8px;
        margin-top: 0;
        color: var(--text-secondary);
    }
    
    .form-container {
        padding: 24px;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .promotion-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .qr-code {
        margin: 0 auto;
    }
    
    .input-method-tabs {
        gap: 2px;
        padding: 2px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .tab-btn .tab-icon {
        width: 18px;
        height: 18px;
    }
    
    .file-drop-zone {
        padding: 32px 16px;
    }
    
    .file-drop-icon {
        width: 56px;
        height: 56px;
    }
    
    .file-info {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .file-remove-btn {
        align-self: flex-end;
    }
    
    /* 移动端模式切换器样式 */
    .mode-switcher {
        padding: 0 16px;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .mode-btn {
        max-width: none;
        padding: 14px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .mode-icon {
        width: 20px;
        height: 20px;
    }
    
    /* 移动端语音转录界面样式 */
    .audio-upload-zone {
        padding: 32px 16px;
    }
    
    .token-config {
        flex-direction: column;
        gap: 12px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn-secondary {
        min-width: auto;
    }
}

/* 三列布局样式 */
.tts-three-column-layout {
    display: grid;
    grid-template-columns: 2fr 1.33fr 1fr;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

/* TTS模式下的主内容区域扩展 */
.main-content.tts-expanded {
    max-width: none;
    width: 100%;
    margin: 0 auto;
}

.main-content.tts-expanded .form-container {
    max-width: none;
    padding: 30px;
}

.column {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    min-height: 600px;
}

.column-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 第一列特殊高度设置 */
.column-input {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 650px;
}

.column-input .form-textarea {
    min-height: 450px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
}

/* 第二列：语音设置 */
.column-voice {
    background: linear-gradient(135deg, #fef7f0 0%, #fef3ec 100%);
}

.column-voice .form-group {
    margin-bottom: 16px;
}

.column-voice .btn-primary {
    margin-top: 20px;
    width: 100%;
}

/* 语音列表样式 */
.voice-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-color);
}

.voice-item {
    border-bottom: 1px solid var(--border-color);
}

.voice-item:last-child {
    border-bottom: none;
}

.voice-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0;
}

.voice-label:hover {
    background-color: var(--hover-color);
}

.voice-label input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--primary-color);
}

.voice-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.voice-name {
    font-size: 0.9rem;
    color: var(--text-color);
}

.voice-preview-btn {
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-preview-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.voice-preview-btn:active {
    transform: translateY(0);
}

.voice-preview-btn:disabled {
    background: var(--muted-color);
    cursor: not-allowed;
    transform: none;
}

/* 选中状态样式 */
.voice-label input[type="radio"]:checked + .voice-info .voice-name {
    color: var(--primary-color);
    font-weight: 500;
}

.voice-label:has(input[type="radio"]:checked) {
    background-color: var(--primary-bg);
    border-left: 3px solid var(--primary-color);
}

/* 第三列：音频结果 */
.column-result {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.column-result .result-container {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    display: block;
}

/* 默认提示样式 */
.default-hint {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.hint-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.default-hint p {
    margin-bottom: 8px;
    font-weight: 500;
}

.hint-sub {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 音频历史列表样式 */
.audio-history-list {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 10px;
}

.audio-history-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    animation: slideInUp 0.3s ease-out;
}

.audio-history-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.audio-item-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.audio-item-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--background-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.audio-item-player {
    margin-bottom: 12px;
}

.audio-item-player audio {
    width: 100%;
    height: 32px;
}

.audio-item-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.audio-item-download {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.audio-item-download:hover {
    background: #047857;
    transform: translateY(-1px);
}

.audio-item-delete {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
}

.audio-item-delete:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* 滚动条样式 */
.audio-history-list::-webkit-scrollbar {
    width: 6px;
}

.audio-history-list::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 3px;
}

.audio-history-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.audio-history-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .container.tts-mode {
        max-width: 90%;
        min-width: 1000px;
    }
}

@media (max-width: 1200px) {
    .container.tts-mode {
        max-width: 95%;
        min-width: 900px;
    }
}

@media (max-width: 1024px) {
    .container.tts-mode {
        max-width: 100%;
        min-width: auto;
        padding: 16px;
    }
    
    .tts-three-column-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 20px;
    }
    
    .column-result {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: none;
        padding: 16px;
    }
    
    .container.tts-mode {
        max-width: none;
        min-width: auto;
    }
    
    .tts-three-column-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .column {
        padding: 16px;
        min-height: auto;
    }
    
    .column-title {
        font-size: 1rem;
        margin-bottom: 16px;
    }
}
