/* 小清新绿色主题歌词库样式表 */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #f8fff8;
    --accent-color: #81C784;
    --light-green: #E8F5E9;
    --text-primary: #2E7D32;
    --text-secondary: #558B2F;
    --text-light: #689F38;
    --gradient-primary: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    --gradient-light: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    --shadow-soft: 0 4px 15px rgba(76, 175, 80, 0.15);
    --shadow-card: 0 2px 8px rgba(139, 195, 74, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #fafef9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== 全局布局 ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    padding: 30px 0;
}

.section-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

/* ========== 导航栏 ========== */
.navbar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(139, 195, 74, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--light-green);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo::before {
    content: '🍃';
    margin-right: 8px;
    font-size: 1.3em;
}

.search-box {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1.5px solid var(--accent-color);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--light-green);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* ========== 首页专属样式 ========== */
/* 热门推荐模块 */
.hot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.hot-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid #E8F5E9;
    position: relative;
    overflow: hidden;
}

.hot-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.hot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.hot-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.hot-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 分类导航模块 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.category-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid #E8F5E9;
    box-shadow: var(--shadow-card);
}

.category-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

/* ========== 歌词页专属样式 ========== */
.lyric-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 0 15px;
}

/* 歌曲头部 */
.song-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 20px;
    background: var(--gradient-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    color: white;
}

.song-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.song-title {
    font-size: 2.2rem;
    margin: 0 0 15px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-weight: 600;
}

.artist-info {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 2;
}

.artist-info a {
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.artist-info a:hover {
    border-bottom-color: rgba(255,255,255,0.9);
}

/* 歌词区域 */
.lyric-section {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid #E8F5E9;
    position: relative;
    isolation: isolate;
}

.lyric-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 16px 16px 0 0;
}

.lyric-content {
    white-space: pre-wrap;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 2;
    font-size: 1.1rem;
    color: #424242;
    text-align: center;
    padding: 10px 0;
    height: 98%;
}

/* 歌词切换器 */
.lyric-type-switcher {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid #E8F5E9;
    position: sticky;
    top: 80px;
    z-index: 2;
}

.switch-btn {
    padding: 12px 24px;
    border: 1.5px solid var(--accent-color);
    border-radius: 25px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.switch-btn:hover {
    background: var(--light-green);
    transform: translateY(-2px);
}

.switch-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* 下载区域 */
.download-section {
    text-align: center;
    margin: 40px 0;
    padding: 40px;
    background: var(--gradient-light);
    border-radius: 16px;
    border: 1px solid #E8F5E9;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    margin: 0 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.download-tip {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    background: white;
    border-radius: 12px;
    border: 1px dashed var(--accent-color);
}

.empty-state::before {
    content: '🎵';
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
        margin: 10px 0;
    }

    .hot-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .song-title {
        font-size: 1.8rem;
    }

    .lyric-type-switcher {
        flex-direction: row; /* 保持水平排列但换行 */
        gap: 8px;
        top: 0;
        padding: 15px;
    }
    
    .switch-btn {
        flex: 1 1 calc(50% - 8px); /* 每行显示2个按钮 */
        min-width: 0; /* 允许收缩 */
        text-align: center;
        font-size: 0.9rem;
        padding: 10px 12px;
    }


    .lyric-container {
        margin: 10px auto;
        padding: 0 10px;
    }

    .song-header {
        padding: 30px 15px;
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .download-btn {
        display: block;
        margin: 10px auto;
        width: 90%;
        max-width: 250px;
    }
}

/* 搜索建议框样式 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--accent-color);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-soft);
    display: none;
    z-index: 100;
    overflow: hidden;
}

.search-suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-green);
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestion-item:hover {
    background: var(--light-green);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-box {
        order: 3;
        width: 100%;
        margin: 10px 0;
    }
}

/* 在原有的CSS基础上添加以下样式 */

/* 歌词区域样式调整 */
.lyric-content {
    white-space: pre-wrap;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 2;
    font-size: 1.1rem;
    color: #424242;
    text-align: left; /* 改为左对齐 */
    padding: 25px !important;
    background: white;
    border-radius: 12px;
    border: 1px solid #E8F5E9;
    position: relative;
}

/* 复制按钮样式 */
.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-soft);
    z-index: 10;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: var(--text-secondary);
}

/* 歌词容器相对定位，方便按钮定位 */
.lyric-section {
    position: relative;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .copy-btn {
        top: 0;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .lyric-content {
        padding: 20px 15px !important;
    }
}
/* 在原有CSS基础上添加以下样式 */

/* 下载按钮组样式 */
.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    border: none;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        margin: 5px 0;
    }
}
/* 在原有CSS基础上添加以下样式 */

/* 固定按钮组 */
.fixed-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* 播放按钮 */
.play-music-btn {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    border: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
}

.play-music-btn.show {
    opacity: 1;
    visibility: visible;
}

.play-music-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.play-music-btn.playing {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

/* 返回顶部按钮 */
.back-to-top {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    border: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* 音频播放器 */
.audio-player {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: white;
    border-radius: 25px;
    padding: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #E8F5E9;
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    z-index: 999;
}

.audio-player.show {
    display: flex;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s;
}

.time-display {
    font-size: 0.8rem;
    color: var(--text-light);
    min-width: 80px;
    text-align: center;
}

.control-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

/* 下载按钮组样式 */
.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fixed-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .play-music-btn,
    .back-to-top {
        width: 45px;
        height: 45px;
    }
    
    .audio-player {
        bottom: 90px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 300px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        margin: 5px 0;
    }
}
/* 在原有CSS基础上添加以下样式 */

/* 固定按钮组 */
.fixed-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* 播放按钮 - 一直显示 */
.play-music-btn {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    border: none;
    font-size: 1.2rem;
    opacity: 1;
    visibility: visible;
}

.play-music-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.play-music-btn.playing {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

/* 返回顶部按钮 */
.back-to-top {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    border: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* 音频播放器 */
.audio-player {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: white;
    border-radius: 25px;
    padding: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #E8F5E9;
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    z-index: 999;
}

.audio-player.show {
    display: flex;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s;
}

.time-display {
    font-size: 0.8rem;
    color: var(--text-light);
    min-width: 80px;
    text-align: center;
}

.control-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

/* 下载按钮组样式 */
.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fixed-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .play-music-btn,
    .back-to-top {
        width: 45px;
        height: 45px;
    }
    
    .audio-player {
        bottom: 90px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 300px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        margin: 5px 0;
    }
}
/* 在原有CSS基础上添加以下样式 */

/* 固定按钮组 */
.fixed-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* 播放按钮 - 一直显示 */
.play-music-btn {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    border: none;
    font-size: 1.2rem;
    opacity: 1;
    visibility: visible;
}

.play-music-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.play-music-btn.playing {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

/* 返回顶部按钮 */
.back-to-top {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    border: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* 音频播放器 - 增大尺寸以容纳歌词 */
.audio-player {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #E8F5E9;
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 350px;
    max-height: 500px;
    z-index: 999;
    overflow: hidden;
}

.audio-player.show {
    display: flex;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.player-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.close-player {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s;
}

.time-display {
    font-size: 0.8rem;
    color: var(--text-light);
    min-width: 80px;
    text-align: center;
}

.control-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: var(--transition);
}

.control-btn:hover {
    transform: scale(1.1);
}

/* 歌词显示区域 */
.lyrics-display {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    padding: 10px;
    background: var(--light-green);
    border-radius: 10px;
    margin-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.lyrics-display::-webkit-scrollbar {
    width: 4px;
}

.lyrics-display::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.lyric-line {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text-light);
}

.lyric-line.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.lyric-line.past {
    color: var(--text-secondary);
}

/* 下载按钮组样式 */
.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fixed-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .play-music-btn,
    .back-to-top {
        width: 45px;
        height: 45px;
    }
    
    .audio-player {
        bottom: 90px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 350px;
        max-height: 70vh;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        margin: 5px 0;
    }
    
    .lyrics-display {
        max-height: 40vh;
    }
}

/* 移动端导航栏滑动效果 */
@media (max-width: 768px) {
    .navbar {
        transition: transform 0.3s ease;
        transform: translateY(0);
    }
    
    .navbar.hidden {
        transform: translateY(-100%);
    }
}

.site-footer {
    background: linear-gradient(135deg, #f8fff8 0%, #f1f8e9 100%);
    color: var(--text-primary);
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -2px 20px rgba(76, 175, 80, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3.footer-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-section h4.footer-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 8px;
    font-weight: 600;
}

.footer-desc {
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-stats .stat {
    background: var(--light-green);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--accent-color);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.copyright-notice {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    margin-top: 10px !important;
}

.legal-link {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    margin-left: 10px;
    font-weight: 500;
}

.legal-link:hover {
    color: var(--text-secondary) !important;
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: var(--light-green);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .site-footer {
        padding: 30px 0 15px;
    }
    
    .footer-stats .stat {
        display: block;
        margin-bottom: 8px;
    }
}
/* 在现有的footer CSS样式中添加以下代码 */

/* 移动端隐藏特定footer板块 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* 移动端只显示一列 */
    }
    
    /* 隐藏快速链接板块 */
    .footer-section:nth-child(2) {
        display: none;
    }
    
    /* 隐藏分类浏览板块 */
    .footer-section:nth-child(3) {
        display: none;
    }
    
    /* 隐藏法律条款板块 */
    .footer-section:nth-child(4) {
        display: none;
    }
    
    /* 确保第一个板块（网站介绍）正常显示 */
    .footer-section:first-child {
        display: block;
        text-align: center;
    }
}

/* 如果需要在小屏手机上有更好的显示效果 */
@media (max-width: 480px) {
    .footer-section:first-child {
        padding: 0 10px;
    }
    
    .footer-stats .stat {
        display: block;
        margin-bottom: 8px;
        text-align: center;
    }
}
.site-footer {
    background: linear-gradient(135deg, #f8fff8 0%, #f1f8e9 100%);
    color: var(--text-primary);
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -2px 20px rgba(76, 175, 80, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3.footer-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-section h4.footer-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 8px;
    font-weight: 600;
}

.footer-desc {
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-stats .stat {
    background: var(--light-green);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--accent-color);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.copyright-notice {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    margin-top: 10px !important;
}

.legal-link {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    margin-left: 10px;
    font-weight: 500;
}

.legal-link:hover {
    color: var(--text-secondary) !important;
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: var(--light-green);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--accent-color);
}

/* 备案信息样式 */
.icp-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.icp-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.icp-icon {
    font-size: 0.9rem;
}

.icp-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 移动端隐藏 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hide-on-mobile {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .icp-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 15px;
    }
    
    .footer-stats .stat {
        display: block;
        margin-bottom: 8px;
    }
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    gap: 20px;
    margin-left: auto;  /* 将菜单推到右侧 */
}

.nav-menu-item {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.nav-menu-item:hover {
    background: var(--light-green);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        gap: 15px;
    }

    .nav-menu-item {
        padding: 6px 12px;
        font-size: 0.95rem;
    }
}
/* 汉堡菜单按钮样式 - 默认隐藏（桌面端） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
}

/* 汉堡图标三条横线 */
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* 按钮点击展开状态（可选：变成叉号） */
.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* 桌面端导航菜单样式（原样保留） */
.nav-menu {
    display: flex;
    gap: 10px;
    margin-left: auto;  /* 菜单靠右 */
}

.nav-menu-item {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.nav-menu-item:hover {
    background: var(--light-green);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
        position: relative; /* 为绝对定位菜单提供基准 */
    }

    .logo {
        flex: 0 0 auto;
        margin-right: 0;
        position: absolute; /* 如您调试后的结果，保留 */
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nav-menu {
        /* 移除 display: none; 改用 opacity + visibility */
        flex-direction: column;
        width: 100%;
        margin: 0; /* 清除外边距，避免影响定位 */
        gap: 5px;
        background: white;
        padding: 15px;
        border-radius: 12px;
        box-shadow: var(--shadow-soft);
        border: 1px solid var(--light-green);
        /* 绝对定位，位于导航栏下方 */
        position: absolute;
        top: 57px;        /* 根据您的导航栏高度调整 */
        left: 0;
        right: 0;
        z-index: 1000;
        /* 动画相关属性 */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px); /* 初始向上偏移一点 */
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        pointer-events: none; /* 隐藏时禁止点击 */
    }

    .nav-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu-item {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 8px;
    }

    .nav-menu-item:hover {
        background: var(--light-green);
    }
}
/* 修改 footer 布局，使内容居中且美观 */
.site-footer .footer-content {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.site-footer .footer-section {
    max-width: 600px;
    margin: 0 auto;
}

.site-footer .footer-section h3.footer-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.site-footer .footer-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-footer .footer-content {
        margin-bottom: 30px;
    }
    
    .site-footer .footer-section {
        padding: 0 15px;
    }
}

/* 限制歌手列表显示最多两行，超出隐藏并显示省略号 */
.song-meta .meta-links {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}
.artist-info a:nth-child(n+11) {
    display: none;
}

/* 歌词预览样式 */
.lyric-preview {
    margin-top: 12px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color, #4CAF50);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-light, #888);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.preview-content {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    font-family: inherit;
    font-size: 0.85rem;
    /*line-height: 1.4;*/
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-footer {
    margin-top: 8px;
    text-align: right;
}

.preview-more {
    font-size: 0.75rem;
    color: var(--primary-color, #4CAF50);
    text-decoration: none;
    transition: color 0.2s;
}

.preview-more:hover {
    text-decoration: underline;
    color: var(--text-secondary, #2E7D32);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .lyric-preview {
        padding: 8px;
        font-size: 0.8rem;
    }
    .preview-content {
        max-height: 60px;
    }
}