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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    color: #2196F3;
}

h2 {
    margin-bottom: 15px;
    color: #333;
}

.mood-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.mood-btn {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

.mood-btn:hover {
    background-color: #e0e0e0;
}

.diary-input textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    resize: vertical;
}

.save-btn {
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background-color: #1976D2;
}

.auth-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

.tab-btn.active {
    color: #2196F3;
    border-bottom: 2px solid #2196F3;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-content input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.auth-btn {
    padding: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.hidden {
    display: none;
}

/* 导航样式 */
.main-nav {
    margin-top: 15px;
}

.main-nav a {
    color: #666;
    text-decoration: none;
    padding: 5px 15px;
    margin: 0 5px;
    border-radius: 15px;
}

.main-nav a.active {
    background-color: #2196F3;
    color: white;
}

/* 统计页面样式 */
.stats-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stats-summary {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.history-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.history-mood {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.history-text {
    color: #333;
    line-height: 1.5;
}

/* 音乐播放器样式 */
#audio-player {
    width: 100%;
    margin-top: 10px;
}

#next-song {
    padding: 8px 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#next-song:hover {
    background-color: #1976D2;
}

.music-info {
    flex: 1;
}

.music-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.music-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

#next-song:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#audio-player {
    width: 100%;
    height: 32px;
    margin-top: 10px;
}

/* 修改播放器相关样式 */
.player-pic {
    width: 150px;
    height: 150px;
    position: relative;
    margin-right: 20px;
}

.player-pic img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.icon_music_switch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}

/* 在现有样式后添加播放器样式 */

/* 播放器布局 */
#player {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-top: 20px;
    gap: 30px;
}

/* 封面区域样式 */
.player-pic {
    flex: 0 0 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin-bottom: 0;
}

.player-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
    cursor: pointer;
    pointer-events: none;
}

.play-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.play-overlay i {
    color: white;
    font-size: 45px;
}

.player-pic:hover .play-overlay {
    opacity: 1;
    pointer-events: auto;
}

.player-pic:hover img {
    transform: scale(1.05);
}

/* 信息区域样式 */
.player-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.song-info {
    margin-bottom: 0;
}

.song-info h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 6px;
}

.song-info p {
    font-size: 15px;
    color: #666;
}

/* 进度条样式 */
.player-progress {
    width: 100%;
    margin-top: auto;
}

.jp-progress {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
}

.jp-seek-bar {
    height: 100%;
    background: #ddd;
    position: relative;
    width: 100%;
}

.jp-play-bar {
    background: #2196F3;
    height: 100%;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 0;
}

.time-info {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
    padding: 0 2px;
}

/* 换歌按钮样式 */
.switch-btn {
    margin-top: 20px;
    padding: 10px 22px;
    border: none;
    border-radius: 25px;
    background: #2196F3;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.switch-btn:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.switch-btn i {
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #player {
        flex-direction: column;
    }
    
    .player-pic {
        width: 100%;
        max-width: 260px;
        margin: 0 auto 20px;
    }
    
    .player-info {
        text-align: center;
    }
    
    .info-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
} 

/* 条样式 */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
}

.progress {
    background: #2196F3;
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    color: #666;
    font-size: 12px;
}

/* 修改播放按钮样式，确保初始可见 */
.play-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.4);
}

.play-overlay:hover {
    background: rgba(0,0,0,0.6);
}

/* 社区心情区域样式 */
.community-section {
    text-align: center;
}

.mood-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.mood-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mood-emoji {
    font-size: 24px;
}

.mood-count {
    font-size: 18px;
    font-weight: bold;
    color: #2196F3;
}

.recent-moods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.mood-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

.mood-entry .user-name {
    font-weight: 500;
    color: #2196F3;
}

.mood-entry .mood-time {
    color: #666;
    font-size: 0.9em;
    margin-left: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
} 