
:root {
    --primary-color: #FF0050;
    --secondary-color: #00f090;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-light: #f0f0f0;
    --text-gray: #b0b0b0;
}

/* 全局变量 */
:root {
    --primary-color: #ff0050;
    --secondary-color: #00f090;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-light: #f0f0f0;
    --text-gray: #b0b0b0;
    --shadow: 0 10px 25px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #07204e 50%, #121212 100%);
    color: var(--text-light);
    min-height: 100vh;
    padding: 20px;
    background-attachment: fixed;
    background-size: 200% 200%;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 120px; /* 为播放器留出空间 */
}

/* 导航和页眉样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb span {
    margin-left: 10px;
    color: var(--text-light);
}

/* 页眉样式 */
.hero {
    text-align: center;
    padding: 50px 0 30px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header h1 i {
    color: var(--primary-color);
}

.page-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* 导航卡片样式 */
.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.nav-card {
    background: rgba(30,30,30,0.7);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.nav-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.nav-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.nav-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

.nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.hot-songs { background: linear-gradient(to bottom right, #ff0050, #a80038); }
.new-songs { background: linear-gradient(to bottom right, #00f090, #009658); }
.female-singers { background: linear-gradient(to bottom right, #ff7eb3, #ff2581); }

/* 歌曲列表样式 */
.song-list-container {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.list-header {
    display: grid;
    grid-template-columns: 50px 3fr 1fr 1fr 150px;
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.song-item {
    display: grid;
    grid-template-columns: 50px 3fr 1fr 1fr 150px;
    padding: 15px 20px;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.song-item:hover {
    background: rgba(255,255,255,0.05);
}

.song-index {
    font-weight: bold;
    color: var(--text-gray);
    position: relative;
    padding-left: 10px;
}

.hot-indicator {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    display: inline-block;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.song-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.song-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.song-artist {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.song-plays, .song-duration {
    color: var(--text-gray);
}

.play-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-btn:hover {
    background: #ff0040;
    transform: scale(1.05);
}

/* 歌曲网格样式 */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.song-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.song-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.song-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.song-card:hover .song-cover img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay .play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.play-overlay .play-btn:hover {
    transform: scale(1.1);
}

.song-info {
    padding: 15px;
}

.song-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.song-artist {
    color: var(--text-gray);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.song-plays {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 歌手卡片样式 */
.singer-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.singer-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
}

.singer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.singer-avatar {
    width: 100px;
    height: 100%;
    object-fit: cover;
}

.singer-info {
    padding: 20px;
    flex: 1;
}

.singer-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.singer-stats {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.singer-stats div {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: #ff0040;
    transform: scale(1.05);
}

/* 播放器样式 */
.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 25%;
    min-width: 250px;
}

.now-playing img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.track-info .title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.track-info .artist {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.control-btn:hover {
    color: var(--primary-color);
}

.play-btn-large {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
}

.play-btn-large:hover {
    transform: scale(1.1);
}

.progress-container {
    width: 100%;
    max-width: 600px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 5px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .list-header {
        display: none;
    }
    
    .song-item {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .player-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .now-playing {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .progress-container {
        width: 90%;
    }
    
    .container {
        padding-bottom: 160px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .navigation-grid {
        grid-template-columns: 1fr;
    }
    
    .songs-grid, .singer-container {
        grid-template-columns: 1fr;
    }
}

            
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #07204e 50%, #121212 100%);
    color: var(--text-light);
    min-height: 100vh;
    padding: 20px;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 120px; /* 为播放器留出空间 */
}

header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.4);
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 1.2rem;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.song-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
}

.song-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.song-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.song-card:hover .song-cover img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
}

.song-info {
    padding: 20px;
}

.song-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-badge {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.song-artist {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.song-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 25%;
    min-width: 250px;
}

.now-playing img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.track-info .title {
    font-weight: bold;
}

.track-info .artist {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.control-btn:hover {
    color: var(--primary-color);
}

.play-btn-large {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.progress-container {
    width: 100%;
    max-width: 600px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    width: 30%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 20%;
    justify-content: flex-end;
}

.volume-bar {
    width: 100px;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.volume-level {
    height: 100%;
    width: 80%;
    background: var(--text-light);
    border-radius: 5px;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .player-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .now-playing, .volume-control {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .progress-container {
        width: 90%;
    }
}

            