* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.music-list, .all-music-section {
    margin-bottom: 40px;
}

.all-music-section {
    margin-bottom: 120px;
}

.section-title {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.music-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    background-color: #3498db;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.card-name {
    font-size: 1.2rem;
    font-weight: 500;
}

.expand-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.expand-btn.rotate {
    transform: rotate(180deg);
}

.card-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.card-content.show {
    padding: 20px;
    max-height: 2000px;
}

.slogan {
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-left: 3px solid #3498db;
    border-radius: 4px;
    color: #555;
    font-style: italic;
    font-size: 0.95rem;
}

.music-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.music-item:hover {
    background-color: #f0f8ff;
}

.music-item:last-child {
    border-bottom: none;
}

.music-item.playing {
    background-color: #e8f4fd;
    border-left: 3px solid #3498db;
}

.music-info {
    flex: 1;
}

.music-title {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 4px;
}

.music-author {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.music-duration {
    font-size: 0.85rem;
    color: #95a5a6;
}

/* 新增：一键听列表样式 */
.all-music-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.all-music-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.all-music-item:hover {
    background-color: #f0f8ff;
}

.all-music-item:last-child {
    border-bottom: none;
}

.all-music-item.playing {
    background-color: #e8f4fd;
    border-left: 3px solid #3498db;
}

.all-music-info {
    flex: 1;
}

.all-music-title {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 4px;
}

.all-music-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.all-music-player {
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 8px;
}

/* 新增：选择按钮样式 */
.select-btn {
    background-color: #f0f0f0;
    border: none;
    color: #3498db;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
    margin-left: 10px;
}

.select-btn:hover {
    background-color: #e0e0e0;
}

/* 新增：弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 15px 20px;
    background-color: #3498db;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-option:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.modal-option:last-child {
    margin-bottom: 0;
}

.modal-option-player {
    background-color: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 12px;
}

.modal-option-info {
    flex: 1;
}

.modal-option-title {
    font-size: 0.95rem;
    color: #2c3e50;
}

.modal-option-author {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* 底部播放栏样式 */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

.play-info {
    min-width: 200px;
}

.play-meta {
    line-height: 1.4;
}

.play-name {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.play-author {
    font-size: 0.75rem;
    color: #7f8c8d;
}

.play-controls {
    flex: 1;
    max-width: 700px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #3498db;
    cursor: pointer;
}

.current-time, .total-time {
    font-size: 0.75rem;
    color: #95a5a6;
    width: 45px;
    text-align: center;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.control-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #3498db;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.control-btn:hover {
    background-color: #f0f8ff;
}

.play-btn {
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    background-color: #3498db;
    color: white;
}

.play-btn:hover {
    background-color: #2980b9;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.volume-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #3498db;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.volume-btn:hover {
    background-color: #f0f8ff;
}

.volume-bar {
    flex: 1;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3498db;
    cursor: pointer;
}

.loading, .empty-tip {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
}

.empty-tip {
    font-size: 0.9rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .player-bar {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .play-info {
        width: 100%;
        text-align: center;
        min-width: auto;
    }
    
    .play-controls {
        width: 100%;
        max-width: none;
    }

    .volume-container {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .all-music-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .select-btn {
        margin-left: 0;
        align-self: flex-end;
    }
}