* {
    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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    background: white;
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #667eea;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: #f0f0f0;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 搜索区域 */
.search-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* 播放器容器 */
.player-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.player-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.album-art {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.player-details h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.player-details p {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

/* 歌词区域 */
.lyrics-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.lyrics-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.lyrics-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    line-height: 2;
    font-size: 16px;
    color: #333;
}

.lyrics-container pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lyrics-placeholder {
    color: #999;
    text-align: center;
    font-style: italic;
    padding: 40px 20px;
}

/* 歌曲列表区域 */
.songs-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* 歌曲列表 */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.song-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.song-item.playing {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.song-meta {
    font-size: 14px;
    color: #666;
}

.song-duration {
    font-size: 14px;
    color: #999;
    margin-right: 15px;
}

/* 上传页面样式 */
.upload-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.upload-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area svg {
    color: #667eea;
    margin-bottom: 20px;
}

.upload-area p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: #999;
}

.file-info {
    padding: 15px;
    background: #f0f4ff;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-btn {
    padding: 8px 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.submit-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
}

#progressText {
    margin-top: 10px;
    text-align: center;
    color: #666;
}

.upload-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.upload-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 表单样式 */
.form-group {
    margin-top: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.lyrics-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    transition: all 0.3s;
}

.lyrics-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* 管理页面样式 */
.manage-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.manage-header h2 {
    font-size: 28px;
    color: #333;
}

.manage-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-small {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.action-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #5568d3;
}

.action-btn.danger {
    background: #ff4757;
}

.action-btn.danger:hover {
    background: #e63946;
}

.action-btn.small {
    padding: 5px 10px;
    font-size: 12px;
}

.action-btn.success {
    background: #28a745;
}

.action-btn.success:hover {
    background: #218838;
}

.songs-table td:last-child {
    white-space: nowrap;
}

.songs-table td:last-child .action-btn {
    margin-right: 5px;
}

/* 统计卡片 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* 表格样式 */
.songs-table-container {
    overflow-x: auto;
}

.songs-table {
    width: 100%;
    border-collapse: collapse;
}

.songs-table thead {
    background: #f9f9f9;
}

.songs-table th,
.songs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.songs-table th {
    font-weight: 600;
    color: #333;
}

.songs-table tbody tr:hover {
    background: #f9f9f9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-link {
        text-align: center;
    }

    .player-info {
        flex-direction: column;
        text-align: center;
    }

    .album-art {
        margin: 0 auto;
    }

    .search-section {
        flex-direction: column;
    }

    .manage-controls {
        flex-direction: column;
        width: 100%;
    }

    .action-btn {
        width: 100%;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

