/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* 页面通用样式 */
.page {
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

.active {
    display: block;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.header.small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 0;
}

.brand {
    font-size: 48px;
    font-weight: bold;
    color: #f00;
    margin-bottom: 10px;
}

.slogan {
    font-size: 16px;
    color: #666;
}

.back-link {
    font-size: 24px;
    font-weight: bold;
    color: #f00;
    text-decoration: none;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #f00;
    text-align: center;
    flex: 1;
}

/* 搜索框样式 */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-form {
    display: flex;
    border: 2px solid #f00;
    border-radius: 25px;
    overflow: hidden;
    background-color: #fff;
}

.search-form.small {
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    padding: 15px 30px;
    background-color: #f00;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #d00;
}

/* 导航按钮样式 */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.nav-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f00;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #d00;
    transform: translateY(-2px);
}

/* 搜索结果样式 */
.results-container {
    max-width: 800px;
    margin: 0 auto;
}

.results-title {
    font-size: 20px;
    font-weight: bold;
    color: #f00;
    margin-bottom: 20px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.result-info {
    flex: 1;
}

.result-song {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-artist {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.result-meta {
    font-size: 12px;
    color: #999;
}

.play-btn {
    padding: 8px 16px;
    background-color: #f00;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-btn:hover {
    background-color: #d00;
}

/* 歌曲列表样式 */
.songs-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.song-rank {
    font-size: 18px;
    font-weight: bold;
    color: #f00;
    width: 40px;
    text-align: center;
}

.song-info {
    flex: 1;
}

.song-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.song-artist {
    font-size: 14px;
    color: #666;
}

.song-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 底部播放控件样式 */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.player-info {
    flex: 1;
}

.current-song {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.current-artist {
    font-size: 14px;
    color: #666;
}

.player-controls {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.control-btn:hover {
    color: #f00;
}

.progress-container {
    flex: 1;
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background-color: #f00;
    width: 0%;
    transition: width 0.3s ease;
}

.time {
    font-size: 12px;
    color: #666;
}

.lyrics-toggle {
    color: #f00;
    font-weight: bold;
}

/* 歌词样式 */
.lyrics {
    position: fixed;
    bottom: 100px;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.lyrics-container {
    max-width: 800px;
    margin: 0 auto;
}

.lyrics-content {
    text-align: center;
    line-height: 2;
}

.lyrics-line {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.lyrics-line.active {
    color: #f00;
    font-weight: bold;
    font-size: 16px;
}

.lyrics-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* 底部样式 */
.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .brand {
        font-size: 36px;
    }
    
    .slogan {
        font-size: 14px;
    }
    
    .search-container {
        max-width: 400px;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .nav-btn {
        width: 200px;
        text-align: center;
    }
    
    .header.small {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .back-link {
        text-align: center;
    }
    
    .player {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }
    
    .player-controls {
        width: 100%;
    }
    
    .lyrics {
        bottom: 120px;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 10px;
    }
    
    .brand {
        font-size: 28px;
    }
    
    .slogan {
        font-size: 12px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-input {
        padding: 10px;
        font-size: 12px;
    }
    
    .search-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .result-item,
    .song-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .song-rank {
        align-self: flex-start;
    }
    
    .player-info {
        text-align: center;
    }
    
    .current-song {
        font-size: 14px;
    }
    
    .current-artist {
        font-size: 12px;
    }
}