/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-hover: #252542;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: #2a2a4a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --record-color: #ff0000;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a3e 50%, var(--bg-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    position: relative;
}

.header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg,
        #ff0000, #ff8800, #ffff00, #ff00ff, #00ff00, #00ffff, #0088ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

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

/* 头部链接 */
.header-links {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.header-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 主内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 播放控制区 */
.playback-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.playback-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 16px 16px 0 0;
}

/* 区域头部 */
.section-header {
    margin-bottom: 20px;
    text-align: center;
}

.section-header h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

/* 预览区域 */
.preview-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-section .canvas-container {
    flex: 1;
    min-height: 400px;
}

.preview-section .progress-section {
    margin: 0;
}

.preview-section .action-buttons {
    margin: 0;
}

.preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--primary-color));
    border-radius: 16px 16px 0 0;
}

/* 歌词区域 */
.lyrics-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.lyrics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: 16px 16px 0 0;
}

.lyrics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.lyrics-preview-container h3,
.lyrics-editor-container h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* 权重调整区域 */
.weight-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.weight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 16px 16px 0 0;
}

.weight-section h3 {
    display: none;
}

.upload-section {
    margin-bottom: 18px;
}

.file-input-group {
    margin-bottom: 12px;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.file-label .icon {
    font-size: 1.1rem;
}

.file-name {
    display: block;
    margin-top: 6px;
    margin-left: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 设置区域 */
.settings-section {
    margin-bottom: 18px;
}

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

.setting-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.setting-group select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-group select:hover,
.setting-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 音频处理控制 */
.audio-processing-controls {
    display: flex;
    gap: 8px;
}

.audio-processing-controls .btn {
    flex: 1;
}

.btn-active {
    background: linear-gradient(135deg, var(--success-color), #14b8a6) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* 权重控制 */
.weight-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.weight-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weight-control label {
    flex: 0 0 120px;
    font-size: 14px;
    color: #666;
}

.weight-slider {
    flex: 1;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.weight-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

.weight-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.weight-control span {
    flex: 0 0 50px;
    font-size: 14px;
    color: #666;
    text-align: right;
}

/* 按钮样式 */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
}

.btn-record {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.btn-record:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-tiny {
    padding: 4px 8px;
    font-size: 0.75rem;
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-tiny:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #14b8a6);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* 歌词微调工具 */
.lyrics-adjust-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg-dark);
    border-radius: 8px;
    flex-wrap: wrap;
}

.lyrics-adjust-tools label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.offset-display {
    min-width: 60px;
    text-align: center;
    padding: 4px 8px;
    background: var(--bg-card);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* 进度条 */
.progress-section {
    margin-top: 10px;
}

.time-display {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: monospace;
}

#progressBar {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-dark);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

#progressBar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* 预览区域 */
.preview-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.canvas-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

#visualizer {
    width: 100%;
    height: 100%;
    display: block;
}

.lyrics-overlay {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.lyrics-text {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* 歌词样式 - 发光霓虹 */
.lyrics-glow {
    color: #fff !important;
    animation: glow-pulse 1s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow:
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color),
            0 0 40px var(--primary-color);
    }
    to {
        text-shadow:
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 30px var(--accent-color),
            0 0 50px var(--accent-color),
            0 0 70px var(--accent-color);
    }
}

/* 歌词样式 - 渐变 */
.lyrics-gradient {
    background: linear-gradient(90deg, #6366f1, #ec4899, #8b5cf6, #6366f1);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* 歌词样式 - 彩虹渐变 */
.lyrics-rainbow {
    font-size: 1.8rem !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    background: linear-gradient(90deg,
        #ff0000, #ff8800, #ffff00, #00ff00, #00ffff, #0088ff, #ff00ff, #ff0000);
    background-size: 800% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-flow 2s linear infinite !important;
    transition: none !important;
}

@keyframes rainbow-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

.lyrics-rainbow span {
    display: inline-block;
}

/* 歌词样式 - KTV模式 */
.lyrics-karaoke {
    color: rgba(255, 255, 255, 0.4);
    position: relative;
}

.lyrics-karaoke .karaoke-fill {
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 0 0 20px var(--primary-color);
    transition: width 0.1s linear;
}

/* 歌词样式 - 打字机 */
.lyrics-typewriter {
    color: #fff;
    border-right: 3px solid var(--primary-color);
    animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

/* 歌词样式 - 弹跳 */
.lyrics-bounce .char {
    display: inline-block;
    animation: bounce-char 0.5s ease infinite alternate;
}

@keyframes bounce-char {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* 加载和录制指示器 */
.loading-indicator,
.recording-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    font-size: 0.85rem;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: var(--record-color);
    border-radius: 50%;
    animation: pulse-rec 1s ease infinite;
}

@keyframes pulse-rec {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hidden {
    display: none !important;
}

/* 歌词搜索框 */
.lyrics-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.lyrics-search-box input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lyrics-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* 歌词编辑器 */
.lyrics-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#lyricsEditor {
    width: 100%;
    height: 220px;
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

#lyricsEditor:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.lyrics-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.lyrics-tools .btn {
    flex: 1;
    min-width: 100px;
}

.lyrics-tools .file-label {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.lyrics-tools .file-name {
    flex: 1;
    min-width: 150px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 歌词预览 */
.lyrics-preview {
    margin-bottom: 12px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.lyrics-preview-hint {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.lyrics-preview-hint span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 歌词微调工具 */
.lyrics-adjust-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 15px;
    background: var(--bg-dark);
    border-radius: 8px;
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
}



.lyrics-search-results {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.lyrics-search-results.hidden {
    display: none;
}

.lyrics-search-item {
    padding: 10px 12px;
    margin: 4px 0;
    background: var(--bg-card);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lyrics-search-item:hover {
    background: var(--bg-hover);
    transform: translateX(5px);
}

.lyrics-search-item .song-info {
    flex: 1;
}

.lyrics-search-item .song-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lyrics-search-item .song-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lyrics-search-item .download-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lyrics-search-item .download-btn:hover {
    transform: scale(1.05);
}

.lyrics-search-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.lyrics-search-error {
    text-align: center;
    padding: 20px;
    color: var(--error-color);
}

.lyrics-search-result-item {
    padding: 12px 14px;
    margin: 6px 0;
    background: var(--bg-card);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.lyrics-search-result-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.lyrics-search-result-item .song-info {
    flex: 1;
    min-width: 0;
}

.lyrics-search-result-item .song-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-search-result-item .song-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-preview {
    margin-bottom: 8px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.lyrics-preview-hint {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.lyrics-preview-hint span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.lyrics-editor {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

#lyricsEditor {
    width: 100%;
    height: 220px;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

#lyricsEditor:focus {
    outline: none;
    border-color: var(--primary-color);
}

.lyrics-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lyrics-line {
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lyrics-line:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.lyrics-line.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.lyrics-line.selected {
    background: rgba(99, 102, 241, 0.2);
    border-left: 3px solid var(--primary-color);
    outline: none;
}

.lyrics-line .time-tag {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-right: 8px;
    font-family: monospace;
}

.lyrics-line .section-tag {
    font-size: 0.65rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 6px;
    font-weight: 500;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 380px;
}

.modal-content h3 {
    margin-bottom: 18px;
    text-align: center;
    font-size: 1.1rem;
}

.record-settings {
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-buttons .btn {
    flex: 1;
}

/* 权重调整区域 */
.weight-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.weight-section h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

/* 权重控制 */
.weight-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.weight-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weight-control label {
    flex: 0 0 120px;
    font-size: 14px;
    color: var(--text-secondary);
}

.weight-slider {
    flex: 1;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.weight-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.weight-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.weight-control span {
    flex: 0 0 50px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .playback-section {
        order: 2;
    }
    
    .preview-section {
        order: 1;
    }
    
    .lyrics-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .header-links {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-top: 15px;
    }
    
    .main-content {
        gap: 15px;
    }
    
    .playback-section,
    .preview-section,
    .lyrics-section,
    .weight-section {
        padding: 15px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-record {
        grid-column: span 1;
    }
    
    .lyrics-text {
        font-size: 1.2rem;
    }
    
    .lyrics-tools .btn {
        flex: 1 1 100%;
    }
    
    .lyrics-adjust-tools {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 3px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 播放列表样式 */
.playlist-section {
    margin-bottom: 18px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.playlist-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.playback-mode {
    display: flex;
    align-items: center;
    gap: 8px;
}

.playback-mode label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.playback-mode select {
    padding: 6px 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.playback-mode select:hover,
.playback-mode select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.playlist {
    max-height: 180px;
    overflow-y: auto;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.playlist-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.playlist-item:hover {
    background: var(--bg-hover);
}

.playlist-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.playlist-item .song-info {
    flex: 1;
    min-width: 0;
}

.playlist-item .song-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item .song-duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.playlist-item.active .song-duration {
    color: rgba(255, 255, 255, 0.8);
}

.playlist-item .remove-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.playlist-item .remove-btn:hover {
    background: var(--error-color);
    color: white;
}

.playlist-empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
