* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    color: #fff;
    position: relative;
    min-height: 100vh;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: background-position 0.5s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

header {
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
}

.profile {
    margin: 20px auto;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    margin-bottom: 15px;
}

.profile h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

.profile p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #fff;
    font-size: 24px;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* 音乐播放器样式 */
.music-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 100;
    cursor: pointer;
}

.music-player-container.collapsed {
    width: 50px;
    height: 50px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.player-header h3 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.music-player-container.collapsed .player-header h3 {
    display: none;
}

.music-player-container.collapsed .player-header {
    justify-content: center;
    margin-bottom: 0;
}

.toggle-player {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.player-content {
    transition: all 0.3s ease;
}

.music-player-container.collapsed .player-content {
    display: none;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.player-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.player-controls button:hover {
    transform: scale(1.1);
}

.play-pause {
    font-size: 30px;
}

.progress-container {
    width: 100%;
    height: 5px;
    background-color: #555;
    border-radius: 5px;
    margin: 10px 0;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background-color: #1db954;
    border-radius: 5px;
    width: 0%;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 10px;
}

.music-platforms {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.platform-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.platform-btn:hover {
    opacity: 0.8;
}

.netease {
    background-color: #e13e3e;
}

.kugou {
    background-color: #2ca2f9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile {
        margin: 10px;
        padding: 15px;
    }
    
    .music-player-container {
        width: calc(100% - 40px);
        left: 20px;
        right: auto;
    }
    
    .music-player-container.collapsed {
        width: 50px;
        height: 50px;
        left: auto;
        right: 20px;
    }
}

/* 保留原有的所有样式，只添加以下新样式 */

/* 音乐赏析部分样式 */
.work {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.chtitle {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.8em;
}

.chtitle span {
    color: #1db954;
}

#music-player {
    margin-top: 20px;
}

/* 移除原有音乐播放器样式 */
.music-player-container {
    display: none;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.popup-content {
    background: white;
    width: 300px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    text-align: center;
}
