:root {
    --primary-color: #ff6b8b;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --time-color: #ff6b8b;
    --bg-color: #fff;
    --music-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Logo样式 */
.logo-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.custom-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

/* 樱花飘落特效 */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sakura {
    position: absolute;
    background-color: #ffccd5;
    border-radius: 50% 50% 20% 20%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 侧边音乐播放器 */
.music-player {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 800px !important;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 107, 139, 0.5);
    backdrop-filter: blur(15px);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    gap: 20px;
    height: auto !important;
}

.player-info {
    width: 100%;
    margin-bottom: 15px;
}

.song-details {
    text-align: center;
}

.song-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.lyrics-container {
    height: 60px;
    overflow: hidden;
    position: relative;
    margin: 10px 0;
    padding: 5px 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 10px rgba(255, 107, 139, 0.1);
}

.lyrics {
    position: absolute;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease;
}

.lyrics div {
    padding: 4px 0;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lyrics div.active {
    color: var(--primary-color);
    font-weight: 600;
    transform: scale(1.05);
}

.lyrics div.active {
    color: var(--primary-color);
    font-weight: 500;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 5px 0;
}

.player-controls button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

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

#play-btn {
    font-size: 1.5rem;
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    width: 30%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.current-time, .duration {
    font-size: 0.8rem;
    color: #666;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
}

.volume-bar {
    width: 100%;
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    display: none;
    transition: height 0.2s;
}

#volume-btn:hover + .volume-container,
.volume-container:hover {
    display: block;
    height: 6px;
}

.volume {
    height: 100%;
    width: 70%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 主内容区 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.time-container {
    margin: 50px 0;
    color: var(--time-color);
}

#current-time {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

#running-time {
    font-size: 1.2rem;
    opacity: 0.9;
}

.profile-section {
    margin: 100px 0;
}

.profile-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.profile-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 内容框样式 */
.content-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 50px 0;
}

.card {
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* 页脚统计信息 */
footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 5;
    padding-left: 100px;
}

.stats {
    background: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .music-player {
        left: 10px;
        width: 50px;
        padding: 10px;
    }

    .container {
        padding-left: 70px;
    }

    #current-time {
        font-size: 2.5rem;
    }

    footer {
        padding-left: 70px;
    }
}

@media (max-width: 480px) {
    .music-player {
        width: 40px;
    }

    .player-controls button {
        font-size: 16px;
    }

    #current-time {
        font-size: 2rem;
    }
}