/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.nav-brand i {
    font-size: 28px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 主容器 */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 10px;
}

.sidebar-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar-section a:hover,
.sidebar-section li.active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #667eea;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.hint {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 14px;
}

/* 按钮样式 */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #f0f0f0;
    color: #667eea;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.login-tips {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
    border-left: 5px solid #667eea;
}

.login-tips ul {
    list-style: none;
    margin-top: 10px;
}

.login-tips li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.login-tips li:before {
    content: "🎵";
    position: absolute;
    left: 0;
}

/* 音乐播放器 */
.music-player {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-header h2 {
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-controls {
    display: flex;
    gap: 15px;
}

.btn-player {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-player:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.now-playing {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 25px;
}

.album-art {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.track-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.track-info p {
    color: #666;
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 20px 0;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.time-info {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
}

.player-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 25px;
    background: #f0f0f0;
    border: none;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-action:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* 音乐列表 */
.music-list-section,
.playlist-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 300px;
    font-size: 16px;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-search {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.music-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.music-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.music-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.music-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.music-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-card-actions button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.music-card-actions button:hover {
    transform: scale(1.2);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.page-info {
    color: #667eea;
    font-weight: bold;
}

/* 歌单网格 */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.playlist-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.playlist-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.playlist-card-info {
    padding: 15px;
}

.playlist-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.playlist-card p {
    color: #666;
    font-size: 12px;
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 20px 20px 0 0;
}

.footer-content p {
    color: #667eea;
    margin-bottom: 10px;
}

.footer-tips {
    font-size: 14px;
    color: #888;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 通知 */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    z-index: 3000;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 加载动画 */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.fa-spin {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .player-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .now-playing {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}












/* 增强分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 90px;
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.2);
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-btn-small {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.page-btn-small:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3);
}

.page-info {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 15px;
    padding: 8px 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    padding: 8px 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    color: #4a5568;
}

.page-jump input[type="number"] {
    width: 60px;
    padding: 6px 10px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-jump input[type="number"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.page-jump input[type="number"]::-webkit-inner-spin-button,
.page-jump input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .page-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .page-info {
        order: -1;
        margin: 0;
    }
    
    .page-jump {
        width: 100%;
        justify-content: center;
        margin: 10px 0 0 0;
    }
}

@media (max-width: 480px) {
    .page-btn {
        min-width: 80px;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .page-info {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .page-jump {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* 登录表单样式增强 */
.login-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.login-buttons .btn {
    flex: 1;
    min-width: 200px;
    padding: 14px 25px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-buttons .btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.login-buttons .btn-secondary {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.login-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.login-tips {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
    border-left: 5px solid #4facfe;
    border-right: 5px solid #00f2fe;
}

.login-tips p {
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #2c5282;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.login-tips ul {
    margin: 0;
    padding-left: 25px;
}

.login-tips li {
    margin: 8px 0;
    color: #4a5568;
    line-height: 1.5;
}

/* 隐私码表单样式增强 */
.privacy-form {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f4f8 100%);
    border-radius: 20px;
}

.privacy-icon {
    font-size: 56px;
    color: #667eea;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.privacy-tip {
    font-size: 17px;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

.privacy-buttons {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.privacy-buttons .btn {
    min-width: 160px;
    padding: 14px 30px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.privacy-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.privacy-buttons .btn-secondary {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #4a5568;
}

.privacy-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.privacy-hint {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
    border-left: 5px solid #ffc107;
    border-right: 5px solid #ffca28;
}

.privacy-hint p {
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.privacy-hint ul {
    margin: 0;
    padding-left: 25px;
}

.privacy-hint li {
    margin: 8px 0;
    color: #92400e;
    line-height: 1.5;
}

/* 表单输入框增强 */
.form-group input[type="password"],
.form-group input[type="text"] {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #718096;
    font-style: italic;
}

/* 加载动画增强 */
.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.loading i {
    font-size: 40px;
    margin-bottom: 15px;
}

.loading p {
    font-size: 16px;
    font-weight: 500;
}

/* 空状态样式增强 */
.empty {
    text-align: center;
    padding: 50px 20px;
    color: #a0aec0;
}

.empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.empty p {
    font-size: 16px;
    font-weight: 500;
}

/* 错误状态样式增强 */
.error {
    text-align: center;
    padding: 40px 20px;
    color: #f56565;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: 15px;
    margin: 20px 0;
}

.error i {
    font-size: 40px;
    margin-bottom: 15px;
}

.error p {
    font-size: 16px;
    font-weight: 500;
}


