/* 组件样式 */
/* Logo */
.logo h1 {
    font-size: 2.2rem;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: 50px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--accent-color);
    color: white;
}

/* 主题切换按钮 */
.theme-toggle {
    background: var(--card-bg);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* 标题和文本 */
.hero h2, .mv-hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p, .mv-hero p {
    font-size: 1.2rem;
    margin: 0 auto 40px;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0.9;
}

/* 音乐播放器 */
.music-player {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: 0 10px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.light-theme .music-player {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.song-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.album-art {
    width: 140px;
    height: 140px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.album-art::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.music-note {
    font-size: 3.5rem;
    color: white;
    animation: float 3s ease-in-out infinite;
}

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

.song-details h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.song-details p {
    color: #aaa;
    font-size: 1rem;
}

.light-theme .song-details p {
    color: #666;
}

/* 进度条 */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.light-theme .progress-container {
    background: rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.1s linear;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 25px;
}

.light-theme .time-info {
    color: #666;
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 50%;
}

.control-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.play-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volumeSlider {
    width: 80px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

/* 播放列表 */
.playlist-section h3, .mv-playlist-section h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.playlist-section h3::after, .mv-playlist-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 3px;
}

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

.search-box {
    position: relative;
    width: 300px;
}

#searchInput {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 50px;
    border: none;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#searchInput:focus {
    outline: none;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.playlist, .mv-playlist {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 8px 25px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 500px;
    overflow-y: auto;
}

.light-theme .playlist, .light-theme .mv-playlist {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 歌曲项 */
.song-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.light-theme .song-item {
    background: rgba(0, 0, 0, 0.05);
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.light-theme .song-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.song-item.active {
    background: rgba(106, 90, 205, 0.3);
    border-left: 4px solid var(--accent-color);
}

.song-number {
    font-weight: bold;
    margin-right: 15px;
    color: var(--accent-color);
    min-width: 25px;
}

.album-art-small {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.music-note-small {
    color: white;
    font-size: 1.2rem;
}

.song-item .song-details {
    flex: 1;
}

.song-item .song-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.song-item .song-details p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.song-duration {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* MV播放器 */
.mv-player {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 8px 25px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#mvPlayer {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.mv-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.mv-info p {
    opacity: 0.8;
    line-height: 1.5;
}

/* MV项 */
.mv-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.light-theme .mv-item {
    background: rgba(0, 0, 0, 0.05);
}

.mv-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mv-item.active {
    background: rgba(106, 90, 205, 0.3);
    border-left: 4px solid var(--accent-color);
}

.mv-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mv-thumbnail i {
    color: white;
    font-size: 1.5rem;
}

.mv-item .mv-details {
    flex: 1;
}

.mv-item .mv-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.mv-item .mv-details p {
    font-size: 0.8rem;
    opacity: 0.7;
}