/* 全局重置与基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: #444;
    overflow-x: hidden;
    position: relative;
}

/* 导航栏样式 */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 60px;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar a { margin: 0 15px; text-decoration: none; color: #888; font-size: 16px; transition: color 0.3s; }
.navbar a.active, .navbar a:hover { color: #ff8fa3; font-weight: bold; }


/* 页面容器 */
.page-container { padding-top: 80px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
h1.page-title { font-size: 28px; color: palevioletred; margin-bottom: 30px; text-align: center; }

/* 淡入动画 */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease; }

/* 相册网格样式（一排4张） */
#photoWall {
    display: flex; flex-wrap: wrap; padding: 20px; gap: 15px;
    justify-content: center; max-width: 1200px; margin: 0 auto;
}
.waterfall-item {
    width: calc(25% - 15px); background: #fff; border-radius: 10px;
    overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.waterfall-item:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 8px 20px rgba(255, 143, 163, 0.4); }
.waterfall-item img { width: 100%; height: auto; display: block; min-height: 150px; object-fit: cover; }
@media (max-width: 768px) { .waterfall-item { width: calc(50% - 10px); } #photoWall { gap: 10px; padding: 10px; } }

/* 音乐播放器样式 */
.music-player { text-align: center; margin-top: 50px; }
.vinyl { width: 200px; height: 200px; background: radial-gradient(circle at 30% 30%, #555, #111); border-radius: 50%; margin: 0 auto 30px; border: 5px solid #111; animation: spin 3s linear infinite; animation-play-state: paused; position: relative; }
.vinyl::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; background: #ff8fa3; border-radius: 50%; }
.vinyl.playing { animation-play-state: running; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.song-list { margin-top: 30px; text-align: left; max-width: 500px; }
.song-item { padding: 15px; background: white; margin-bottom: 10px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; transition: all 0.3s; }
.song-item:hover { background: #fff0f3; transform: translateX(10px); }

/* 祝福语样式 */
.wishes-content { max-width: 600px; background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); line-height: 2; font-size: 18px; min-height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.generate-btn { margin-top: 30px; padding: 12px 30px; background: #ff8fa3; color: white; border: none; border-radius: 25px; font-size: 16px; cursor: pointer; transition: all 0.3s; }
.generate-btn:hover { background: #ff7a91; transform: scale(1.1); box-shadow: 0 5px 15px rgba(255, 122, 145, 0.4); }

/* 全局动效样式 */
.particle, .balloon, .heart, .firework { position: fixed; pointer-events: none; z-index: 9999; user-select: none; }
.particle { top: -20px; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(360deg); opacity: 0; } }
.balloon { bottom: -150px; animation: floatUp linear infinite; opacity: 0.8; }
@keyframes floatUp { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { transform: translateY(-100vh) rotate(20deg); opacity: 0; } }
.heart { animation: heartBeat 1.5s ease-in-out infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.3); opacity: 1; } }
.cake-popup { position: fixed; bottom: 20px; right: 20px; font-size: 60px; z-index: 9999; animation: cakeBounce 2s ease-in-out infinite; cursor: pointer; pointer-events: auto; }
@keyframes cakeBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }