* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a5568;
}

nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

nav button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #4299e1;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav button:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.section {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section.active {
    display: block;
}

/* 播放器样式 */
.player-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.now-playing {
    text-align: center;
}

.now-playing img {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.song-info h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2d3748;
}

.song-info p {
    color: #718096;
    font-size: 1.1em;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.control-buttons button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #4299e1;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-buttons button:hover {
    background: #3182ce;
    transform: scale(1.1);
}

#playPauseBtn {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-container span {
    font-size: 0.9em;
    color: #718096;
    min-width: 35px;
}

#progressBar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4299e1;
    cursor: pointer;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volumeSlider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
}

/* 播放列表样式 */
.playlist-container {
    background: rgba(247, 250, 252, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.playlist-container h3 {
    margin-bottom: 15px;
    color: #2d3748;
}

.playlist-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.playlist-controls input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    outline: none;
}

.playlist-controls button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: #e53e3e;
    color: white;
    cursor: pointer;
}

.playlist {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.playlist li {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.playlist li:hover {
    background: #edf2f7;
}

.playlist li.active {
    background: #bee3f8;
    border-left: 4px solid #4299e1;
}

.playlist li img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin-right: 12px;
    object-fit: cover;
}

.playlist li .song-details {
    flex: 1;
}

.playlist li .song-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.playlist li .song-artist {
    font-size: 0.9em;
    color: #718096;
}

.playlist li .delete-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.playlist li:hover .delete-btn {
    opacity: 1;
}

/* 管理后台样式 */
.admin-container {
    max-width: 800px;
}

.admin-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-controls button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: #4299e1;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-controls button:hover {
    background: #3182ce;
}

.baidu-pan-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.baidu-pan-section h3 {
    margin-bottom: 15px;
    color: #2d3748;
}

.pan-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pan-controls input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    outline: none;
}

.pan-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #38a169;
    color: white;
    cursor: pointer;
}

.pan-result {
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    min-height: 50px;
}

.music-form {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.music-form h3 {
    margin-bottom: 20px;
    color: #2d3748;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 10px;
}

.form-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.form-buttons button[type="submit"] {
    background: #38a169;
    color: white;
}

.form-buttons button[type="button"] {
    background: #a0aec0;
    color: white;
}

.admin-music-list {
    max-height: 400px;
    overflow-y: auto;
}

.admin-music-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}

.admin-music-item img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 15px;
    object-fit: cover;
}

.admin-music-item .info {
    flex: 1;
}

.admin-music-item .info h4 {
    margin-bottom: 5px;
    color: #2d3748;
}

.admin-music-item .info p {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 3px;
}

.admin-music-item .actions {
    display: flex;
    gap: 5px;
}

.admin-music-item .actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
}

.admin-music-item .edit-btn {
    background: #4299e1;
    color: white;
}

.admin-music-item .delete-btn {
    background: #e53e3e;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .player-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .now-playing img {
        width: 200px;
        height: 200px;
    }
    
    .control-buttons {
        flex-wrap: wrap;
    }
    
    .pan-controls {
        flex-direction: column;
    }
    
    .pan-controls input {
        min-width: auto;
    }
    
    .admin-controls {
        flex-direction: column;
    }
    
    .playlist-controls {
        flex-direction: column;
    }
}