

body {
    background-color: #f9f9f9;
    color: #333333;
    line-height: 1.6;
}

.music-player {
    margin: 50px auto;
    background-color: white;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.player-header {
    background: linear-gradient(135deg, #ffa6b0, #ff8da1);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.player-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.player-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.album-cover {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 60px auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-cover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
}

.album-cover.playing {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.song-info {
    text-align: center;
    padding: 0 20px 20px;
}

.song-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333333;
}

.song-artist {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.progress-container {
    width: 92%;
    padding: 0 20px;
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #eeeeee;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: #ffa6b0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: #ffa6b0;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.progress-handle:hover {
    transform: translateY(-50%) scale(1.2);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.control-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skip-btn {
    width: 45px;
    height: 45px;
    color: #666;
    font-size: 1.2rem;
}

.skip-btn:hover {
    color: #ffa6b0;
    transform: scale(1.1);
}

.play-btn {
    width: 70px;
    height: 70px;
    background-color: #ffa6b0;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 166, 176, 0.4);
}

.play-btn:hover {
    background-color: #ff8da1;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 166, 176, 0.5);
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.volume-icon {
    color: #666;
    font-size: 1rem;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background-color: #eeeeee;
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ffa6b0;
    cursor: pointer;
}

.features {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #eeeeee;
}

.feature-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.feature-btn:hover {
    background-color: #ffccd5;
    color: #ff8da1;
}

.feature-icon {
    font-size: 1.1rem;
}

/* 歌词区域样式 */
.lyrics-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 92%;
    height: 100%;
    background-color: white;
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.lyrics-container.active {
    transform: translateX(0);
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

.lyrics-header h2 {
    color: #ffa6b0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #ffa6b0;
    transform: rotate(90deg);
}

.lyrics {
    text-align: center;
    line-height: 2.5;
    font-size: 1rem;
}

.lyric-line {
    transition: all 0.3s ease;
    padding: 5px 0;
    opacity: 0.7;
}

.lyric-line.active {
    opacity: 1;
    color: #ffa6b0;
    font-weight: 500;
    transform: scale(1.05);
}

/* 授权信息样式 */
.license-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 92%;
    height: 100%;
    background-color: white;
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.license-container.active {
    transform: translateX(0);
}

.license-content {
    margin-top: 20px;
}

.license-content h3 {
    color: #ff8da1;
    margin: 15px 0 10px;
}

.license-content p {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* 下载区域样式 */
.download-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 92%;
    height: 100%;
    background-color: white;
    z-index: 10;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.download-container.active {
    transform: translateX(0);
}

.download-icon {
    font-size: 4rem;
    color: #ffa6b0;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.download-text {
    text-align: center;
    margin-bottom: 30px;
}

.download-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.download-text p {
    color: #666;
    font-size: 0.9rem;
}

.download-btn {
    background-color: #ffa6b0;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-btn:hover {
    background-color: #ff8da1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 166, 176, 0.4);
}

/* 音乐系统样式 */
.system-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.system-container.active {
    transform: translateX(0);
}

.system-options {
    margin-top: 20px;
}

.system-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #eeeeee;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-icon {
    width: 30px;
    height: 30px;
    background-color: #ffccd5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8da1;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    transition: all 0.3s ease;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #ffa6b0;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* 响应式设计 */
@media (max-width: 400px) {
    .album-cover {
        width: 180px;
        height: 180px;
    }

    .player-header h1 {
        font-size: 1.5rem;
    }

    .song-title {
        font-size: 1.2rem;
    }

    .features {
        flex-wrap: wrap;
    }

    .feature-btn {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}
