/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 按钮通用样式 */
.btn {
    padding: 10px 20px;
    background-color: #ff6767;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #ff4545;
}

/* 头部样式 */
.header {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 24px;
    color: #ff6767;
}

.logo h1 {
    font-size: 22px;
    font-weight: 600;
}

/* 导航栏样式 */
.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a.active, .nav a:hover {
    color: #ff6767;
}

/* 移动端菜单按钮 */
.menu-btn {
    font-size: 24px;
    cursor: pointer;
    display: none;
}

/* 横幅样式 */
.banner {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://picsum.photos/seed/music/1920/1080');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 70px;
    color: white;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 通用区域标题 */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title i {
    color: #ff6767;
}

/* 推荐歌曲区域 */
.recommend {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.song-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.song-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
    padding-bottom: 20px;
}

.song-card:hover {
    transform: translateY(-5px);
}

.song-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.song-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.song-card p {
    color: #666;
    margin-bottom: 15px;
}

.song-card .play-btn {
    padding: 8px 15px;
    background-color: #ff6767;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.song-card .play-btn:hover {
    background-color: #ff4545;
}

/* 我的歌单区域 */
.playlist {
    padding: 80px 0;
}

.playlist-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.playlist-list {
    flex: 1;
    list-style: none;
}

.playlist-list li {
    font-size: 18px;
    margin-bottom: 15px;
    padding: 10px 20px;
    background-color: #f1f1f1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.playlist-list li:hover {
    background-color: #ff6767;
    color: white;
}

.playlist-list i {
    color: #ff6767;
}

.playlist-list li:hover i {
    color: white;
}

.playlist-img {
    flex: 1;
}

.playlist-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

/* 关于博主区域 */
.about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.info {
    flex: 1;
    min-width: 300px;
}

.info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.info p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.contact {
    display: flex;
    gap: 20px;
}

.contact a {
    font-size: 24px;
    color: #ff6767;
    transition: color 0.3s;
}

.contact a:hover {
    color: #ff4545;
}

/* 播放状态栏 */
.player-bar {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
}

.player-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-controls {
    display: flex;
    gap: 15px;
}

.player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.player-controls button:hover {
    color: #ff6767;
}

/* 底部样式 */
.footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 50px; /* 给底部播放栏留空间 */
}

/* 响应式布局（移动端适配） */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: #1a1a1a;
        transition: left 0.3s;
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .banner h2 {
        font-size: 32px;
    }

    .banner p {
        font-size: 18px;
    }

    .playlist-content {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
}