/* 全局样式 */
:root {
    --primary-color: #3452ff;
    --primary-gradient: linear-gradient(135deg, #3452ff 0%, #2563eb 100%);
    --card-bg: #3452ff;
    --glass-bg: rgba(52, 82, 255, 0.95);
    --glass-border: rgba(52, 82, 255, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #e0e7ff;
    --shadow: 0 8px 32px 0 rgba(52, 82, 255, 0.25);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* 背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,96C1248,96,1344,128,1392,144L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: -1;
}

/* 头部样式 */
.header {
    background: var(--card-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(52, 82, 255, 0.1);
}

/* 制作团队信息弹窗样式 */
.production-dialog {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

/* 自定义字段帮助按钮样式 */
.btn-outline-info {
    background: white;
    color: #0dcaf0;
    border: 1px solid #0dcaf0;
}

.btn-outline-info:hover {
  background: #fff; 
  color: #0414ff;
  border-color: #0dcaf0;
}


.production-dialog-body {
    max-height: 60vh;
    overflow-y: auto;
}

.production-dialog .input-group-text {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--glass-border);
    min-width: 60px;
    text-align: right;
    font-size: 12px;
}

.production-dialog .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    color: #333;
    font-size: 12px;
}

.production-dialog .form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 82, 255, 0.25);
}

/* 制作团队信息样式 */
#productionInfo {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#productionInfo .input-group-sm {
    margin-bottom: 8px;
}

#productionInfo .input-group-text {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--glass-border);
    min-width: 60px;
    text-align: right;
    font-size: 12px;
}

#productionInfo .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    color: #333;
    font-size: 12px;
}

#productionInfo .form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 82, 255, 0.25);
}

#productionInfo .btn-outline-danger {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#productionInfo .btn-outline-danger:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.header h1 {
    color: white;
    font-weight: 600;
}

/* 保留版本信息样式以防其他地方使用 */
.version-info {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    display: inline-block;
}

.version-info:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 主内容区 */
.main-content {
    padding: 1rem 5%;
    padding-bottom: 180px;
    max-width: 100%;
}

/* 卡片样式 */
.glass-card {
    background: var(--card-bg);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* 文件操作卡片特殊样式 */
.glass-card:first-child .card-header,
.glass-card:nth-child(2) .card-header {
    padding: 0.35rem 1rem;
}

.glass-card:first-child .card-body,
.glass-card:nth-child(2) .card-body {
    padding: 0.5rem 1rem;
}

/* 快捷操作卡片特殊样式 */
.glass-card .card-header h5 {
    font-size: 1rem;
}

/* 快捷操作按钮间距调整 */
.glass-card .d-grid.gap-2 {
    gap: 0.5rem !important;
}

.glass-card .card-body {
    padding: 0.75rem 1rem;
}

/* 快捷操作区特别样式 */
.glass-card .card-body.pb-4 {
    padding-bottom: 1rem !important;
}

/* 快捷操作卡片的特殊底部间距 */
.glass-card:nth-child(3) {
    margin-bottom: 2rem !important;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(52, 82, 255, 0.35);
}

.card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px 16px 0 0 !important;
    padding: 0.5rem 1rem;
}

/* 快捷操作区卡片头部特别样式 */
.glass-card:nth-child(3) .card-header {
    padding: 0.4rem 1rem;
}

.card-header h5 {
    color: white;
    font-weight: 500;
    margin: 0;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(52, 82, 255, 0.15);
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(52, 82, 255, 0.2);
}

.upload-area.dragover {
    border-color: white;
    background: rgba(52, 82, 255, 0.3);
    transform: scale(1.02);
}

.upload-area .text-primary {
    color: #ffffff !important;
}

.upload-area p {
    color: rgba(255, 255, 255, 0.9);
    margin: 1rem 0;
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    padding: 0.5rem 1rem;
}

/* 快捷操作按钮特殊样式 */
.glass-card:nth-child(3) .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* ========== 现代化按钮样式系统 ========== */

/* 基础按钮样式 - 扁平化无边框 */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* 主按钮 - 智能识别（渐变蓝色） */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5568d3 0%, #63407a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* Outline 按钮 - 统一白底黑字风格 */
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-secondary {
    background: white;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-success:hover:not(:disabled),
.btn-outline-warning:hover:not(:disabled),
.btn-outline-info:hover:not(:disabled),
.btn-outline-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-success:disabled,
.btn-outline-warning:disabled,
.btn-outline-info:disabled,
.btn-outline-secondary:disabled {
    background: #f3f4f6;
    color: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* 实心按钮样式 - 渐变色 */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-warning:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-info:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.btn-secondary:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* 选择文件按钮特殊样式 */
#selectFileBtn {
    background: white;
    color: #667eea;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#selectFileBtn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 上传区域样式修复 */
.upload-area p {
    color: rgba(255, 255, 255, 0.9);
    margin: 1rem 0;
}

.upload-area:hover p {
    color: white;
}

.upload-area .text-primary {
    color: #ffffff !important;
}

/* Outline Primary 按钮 */

/* 歌词列表 */
.lyrics-list {
    max-height: 350px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.lyric-line {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #000000;
}

.lyric-line:hover {
    background: #f9fafb;
    transform: translateX(4px);
    border-color: #d1d5db;
}

.lyric-line.selected {
    background: #f3f4f6;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(52, 82, 255, 0.2);
}

/* 高亮效果：模仿鼠标悬停效果 */
.lyric-line.playing {
    background: #f9fafb;
    transform: translateX(4px);
    border-color: var(--primary-color);
    border-left-width: 3px;
    transition: all 0.3s ease;
}

.lyric-line.playing .lyric-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05em;
}

/* 制作信息歌词样式 */
.lyric-line.production-lyric {
    background: white;
    border-color: #e5e7eb;
    color: #000000;
}

.lyric-line.production-lyric:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.lyric-line.production-lyric .lyric-text {
    color: #000000;
}

/* 前奏/间奏/过渡占位符样式 */
.lyric-line.intro-lyric {
    background: rgba(156, 163, 175, 0.05);
    border-left-color: #9ca3af;
}

.lyric-line.intro-lyric .lyric-text {
    color: #6b7280;
    font-style: italic;
}

/* 间奏占位符（--）- 灰色 */
.lyric-line.interlude-marker {
    background: rgba(156, 163, 175, 0.08);
    border-left-color: #9ca3af;
    opacity: 0.8;
}

.lyric-line.interlude-marker .lyric-text {
    color: #6b7280;
    font-weight: 500;
}

.lyric-line.interlude-marker .lyric-text::before {
    content: '🎵 ';
    opacity: 0.6;
}

/* 过渡占位符（~）- 蓝色 */
.lyric-line.transition-marker {
    background: rgba(23, 162, 184, 0.05);
    border-left-color: #17a2b8;
    opacity: 0.8;
}

.lyric-line.transition-marker .lyric-text {
    color: #17a2b8;
    font-weight: 500;
}

.lyric-line.transition-marker .lyric-text::before {
    content: '〰️ ';
    opacity: 0.6;
}

/* 桥段歌词（有isBridge标记）- 紫色强调 */
.lyric-line.bridge-lyric {
    background: rgba(111, 66, 193, 0.05);
    border-left-color: #6f42c1;
}

.lyric-line.bridge-lyric .lyric-text {
    color: #6f42c1;
    font-weight: 600;
}

.lyric-line.bridge-lyric .lyric-text::before {
    content: '🌉 ';
    opacity: 0.7;
}

.lyric-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #6b7280;
    margin-right: 12px;
    font-size: 14px;
}

.lyric-text {
    flex: 1;
    color: #000000;
}

.lyric-actions {
    display: flex;
    gap: 8px;
}

.lyric-actions button {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.lyric-actions button:hover {
    background: #e5e7eb;
    color: #4b5563;
    transform: scale(1.1);
}

/* 表单控件 */
.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #333;
    border-radius: 8px;
    padding: 0.75rem;
}

.form-control::placeholder {
    color: #6b7280;
}

.form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 82, 255, 0.25);
    color: #333;
}

/* 音频播放器 */
audio {
    outline: none;
    border-radius: 8px;
}

#playerPlaceholder {
    color: rgba(255, 255, 255, 0.8);
}

/* 时间显示 */
#timeDisplay {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 8px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}



/* Outline Primary 按钮 */
.btn-outline-primary {
    background: white;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary:disabled {
    background: #f3f4f6;
    color: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* Outline Danger 按钮 */
.btn-outline-danger {
    background: white;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-outline-danger:disabled {
    background: #f3f4f6;
    color: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* 警告框 */
.alert {
    border-radius: 8px;
    border: none;
    backdrop-filter: blur(5px);
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.alert-info {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-info strong {
    color: white;
    font-weight: 600;
}

.alert-info span {
    color: white;
    font-weight: 400;
}

/* 详细说明按钮 */
.alert-info .btn-link {
    color: white !important;
    text-decoration: underline !important;
    font-weight: 600;
    padding: 0 5px;
    transition: all 0.2s ease;
    text-decoration-color: rgba(255, 255, 255, 0.5) !important;
}

.alert-info .btn-link:hover {
    color: #fbbf24 !important;
    text-decoration-color: #fbbf24 !important;
}

/* 版权信息 */
.copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    color: #6c757d;
    text-align: center;
    padding: 15px 10px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    /* 增加页脚上边距，使其与内容区域分离 */
    border-top: 1px solid #e9ecef;
}

/* 版本按钮样式 */
.version-btn {
    border-radius: 20px;
    font-size: 12px;
    padding: 4px 12px;
    transition: all 0.3s ease;
    color: #3452ff !important;  /* 蓝色文字，确保可见 */
    border-color: #3452ff !important;  /* 蓝色边框 */
    background: white !important;  /* 白色背景 */
}

.version-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(52, 82, 255, 0.3);
    background: #f0f4ff !important;  /* 悬停时浅蓝色背景 */
    color: #2563eb !important;  /* 深蓝色文字 */
}

/* 模态框样式 */
/* 模态框样式 - 白底黑字清爽风格 */
.modal-content {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
}

.modal-title {
    color: white;
    font-weight: 600;
}

.modal-body {
    background: white;
    color: #374151;
    padding: 24px;
}

.modal-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 16px 16px;
    padding: 16px 24px;
}

.changelog-content h6 {
    color: #667eea;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
}

.changelog-content ul {
    list-style: none;
    padding: 0;
}

.changelog-content li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    color: #4b5563;
    line-height: 1.6;
}

.changelog-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 - 大屏幕优化 */
@media (min-width: 1200px) {
    .main-content {
        padding: 1rem 10%;
    }
    
    .glass-card {
        max-width: 95%;
    }
    
    /* 限制最大宽度以避免在大屏幕上过宽 */
    .container {
        max-width: 1400px;
    }
}

/* 中等屏幕优化 */
@media (min-width: 992px) and (max-width: 1199px) {
    .glass-card {
        max-width: 90%;
    }
    
    .container {
        max-width: 1200px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .glass-card {
        max-width: 88%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .glass-card {
        max-width: 90%;
    }
    
    .container {
        max-width: 1200px;
    }
    
    /* 调整中等屏幕的列宽 */
    .col-lg-4 {
        flex: 0 0 38%;
        max-width: 38%;
    }
    
    .col-lg-8 {
        flex: 0 0 62%;
        max-width: 62%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .glass-card {
        max-width: 88%;
    }
    
    /* 调整小屏幕的列宽 */
    .col-md-5 {
        flex: 0 0 42%;
        max-width: 42%;
    }
    
    .col-md-7 {
        flex: 0 0 58%;
        max-width: 58%;
    }
}

@media (max-width: 767px) {
    .main-content {
        padding: 1rem 2%;
        padding-bottom: 180px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .glass-card {
        max-width: 100%;
    }
    
    /* 移动设备上快捷操作卡片的特殊底部间距 */
    .glass-card:nth-child(3) {
        margin-bottom: 2.5rem !important;
    }
    
    .header h1 {
        font-size: 1.2rem;
    }
    
    .version-info {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .lyric-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .lyric-actions button {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1rem 1%;
    }
    
    .glass-card {
        max-width: 100%;
    }
    
    .header .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .copyright {
        font-size: 10px;
        padding: 12px 8px;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
    
    .version-btn {
        font-size: 10px;
        padding: 2px 8px;
        color: #3452ff !important;  /* 保持蓝色文字 */
        border-color: #3452ff !important;
        background: white !important;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* 现代脉冲转圈动画 */
@keyframes pulse-spin {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

/* 现代渐变转圈动画 */
@keyframes smooth-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 脉冲效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* 加载按钮动画 - 只在detecting类下才有动画 */
.btn.detecting .fa-spinner,
.btn.detecting .fa-circle-notch {
    animation: smooth-spin 0.8s linear infinite;
}

.btn.detecting .fa-spinner.fa-pulse {
    animation: pulse-spin 1.2s ease-in-out infinite;
}

/* 自定义通知系统 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    pointer-events: all;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.notification-show {
    transform: translateX(0);
    opacity: 1;
}

.notification-hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-header {
    background: #f8fafc;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
}

.notification-icon {
    font-size: 18px;
    margin-right: 8px;
}

.notification-title {
    flex: 1;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.notification-content {
    padding: 16px;
}

.notification-content p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

/* 通知类型特定样式 */
.notification-success .notification-header {
    border-left: 4px solid #10b981 !important;
}

.notification-error .notification-header {
    border-left: 4px solid #ef4444 !important;
}

.notification-warning .notification-header {
    border-left: 4px solid #f59e0b !important;
}

.notification-info .notification-header {
    border-left: 4px solid #3b82f6 !important;
}

/* 自定义确认框 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-show {
    opacity: 1;
}

.confirm-hide {
    opacity: 0;
}

.confirm-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 90vw;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-show .confirm-box {
    transform: scale(1);
}

.confirm-hide .confirm-box {
    transform: scale(0.9);
}

.confirm-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.confirm-body {
    padding: 24px;
}

.confirm-body p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.5;
}

.confirm-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.confirm-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.btn-cancel {
    background: #6b7280;
    color: white;
}

.btn-cancel:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.confirm-footer .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.confirm-footer .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 更新日志特殊样式 */
.changelog-box {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.changelog-body {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
    background: white;
}

.changelog-content {
    padding: 24px;
    color: #374151;
}

.changelog-content h6 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

.changelog-content ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: #4b5563;
    line-height: 1.6;
}

.changelog-content li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.changelog-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* API配置模态框样式 */
.confirm-box .form-label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 6px;
}

.confirm-box .alert {
    margin-top: 12px;
    border-radius: 8px;
    border: none;
}

.confirm-box .alert-info {
    background: #eff6ff;
    color: #1e40af;
}

.api-provider-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.api-provider-section h6 {
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

/* 自动检测状态样式 */
.auto-detecting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auto-detecting-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.detect-progress {
    width: 60px;
    height: 60px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* 歌词自动检测提示 */
.auto-detect-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

/* 教程模态框样式 */
.tutorial-box {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.tutorial-body {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

.tutorial-content {
    padding: 24px;
}

.tutorial-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.tutorial-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tutorial-section h6 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tutorial-section ul {
    margin: 0;
    padding-left: 20px;
    color: #374151;
    line-height: 1.6;
}

.tutorial-section li {
    margin-bottom: 6px;
}

.tutorial-tips {
    margin-top: 20px;
}

.tutorial-tips .alert {
    margin-bottom: 0;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

/* 响应式设计 - 大屏幕优化 */
@media (min-width: 1200px) {
    .main-content {
        padding: 1rem 10%;
    }
    
    .glass-card {
        max-width: 95%;
    }
    
    /* 限制最大宽度以避免在大屏幕上过宽 */
    .container {
        max-width: 1400px;
    }
}

/* 中等屏幕优化 */
@media (min-width: 992px) and (max-width: 1199px) {
    .glass-card {
        max-width: 92%;
    }
    
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
    }
    
    .confirm-box {
        min-width: auto;
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .confirm-footer {
        flex-direction: column;
    }
    
    .confirm-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .changelog-box {
        max-width: none;
        max-height: 90vh;
    }
}

/* ============= 版本日志专用样式 ============= */

/* 版本号标签 - 当前版本（橙色黑字） */
.version-current-badge {
    background-color: #ff9800 !important;
    color: #000000 !important;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    margin-left: 8px;
    display: inline-block;
}

/* 版本信息区域标题（深青色） */
.version-info-title {
    color: #0c5460 !important;
    font-weight: bold;
}

/* Alert-info 区域内的版本号确保可见 */
.alert-info .version-info-title {
    color: #1c46ee!important;
}

/* 当前版本信息区域（绿色背景） */
.current-version-info {
    background: #d4edda;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.current-version-info strong {
    color: #155724 !important;
    font-size: 16px;
}

.current-version-info .version-number {
    color: #155724 !important;
}

.current-version-info small {
    color: #155724 !important;
}