/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* 头部样式 */
.header {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: white;
    padding: 30px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.8rem;
    color: #fbbf24;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 300;
}

/* 主内容区域 */
.main-content {
    padding: 30px 40px;
}

/* 控制面板 */
.control-panel {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.2rem;
}

#searchInput {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: white;
}

#searchInput:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: #10b981;
    color: white;
}

.btn-secondary:hover {
    background: #0da271;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    color: #64748b;
    border: 2px solid #cbd5e1;
}

.btn-outline:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.btn-live {
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: white;
}

.btn-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #475569;
}

.stat-item i {
    color: #4f46e5;
    font-size: 1.3rem;
}

/* 歌曲列表容器 */
.song-list-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #4f46e5;
}

.hint {
    background: #f0f9ff;
    color: #0369a1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #bae6fd;
}

.hint i {
    font-size: 1.2rem;
}

/* 歌曲列表 */
.song-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.song-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.song-item:hover {
    transform: translateY(-5px);
    border-color: #4f46e5;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
    background: white;
}

.song-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #4f46e5, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-item:hover::before {
    opacity: 1;
}

.song-number {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.song-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    word-break: break-word;
}

.song-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4f46e5;
    font-size: 0.95rem;
    font-weight: 500;
}

.song-action i {
    font-size: 1.1rem;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #64748b;
}

.loading i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4f46e5;
}

.loading p {
    font-size: 1.2rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #475569;
}

.empty-state p {
    font-size: 1.1rem;
}

/* 通知 */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    font-size: 1.5rem;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 40px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h3 i {
    color: #fbbf24;
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.footer-section pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    overflow-x: auto;
    margin-top: 10px;
    border: 1px solid #334155;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        border-radius: 15px;
        margin: 10px;
        padding: 0;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .main-content {
        padding: 25px 20px;
    }
    
    .song-list {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
