/* --- 全局温馨粉红渐变风设置 --- */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* 改成更有层次感的粉色渐变背景，毛玻璃透出来会超级好看 */
    background: linear-gradient(135deg, #fff0f3 0%, #ffccd5 50%, #ffb3c6 100%);
    background-attachment: fixed;
    color: #4a4a4a;
    text-align: center;
}

/* 屏幕通用样式 */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 引导页封面照片样式 */
.cover-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(255, 182, 193, 0.4);
    margin-bottom: 25px;
}

/* 主菜单容器 */
.menu-container {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

/* --- 核心：主菜单卡片毛玻璃效果 (Glassmorphism) --- */
.menu-card {
    background: rgba(255, 255, 255, 0.65); /* 半透明白色 */
    backdrop-filter: blur(12px);            /* 背景模糊（毛玻璃核心） */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8); /* 细腻的亮边框 */
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    border-color: #ffffff;
    box-shadow: 0 12px 35px rgba(255, 117, 140, 0.4);
}

/* 返回按钮（也带毛玻璃） */
.back-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ff6b81;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    transition: all 0.2s;
    z-index: 10;
}

.back-btn:hover {
    background-color: #ff6b81;
    color: #ffffff;
}

/* --- Memories & Words 瀑布流样式（带毛玻璃质感） --- */
#content-screen {
    overflow-y: auto;
    padding: 70px 20px 40px 20px;
    justify-content: flex-start;
}

.timeline-container {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

/* 照片卡片毛玻璃化 */
.memory-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 15px 15px 10px 15px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.25);
    width: 80%;
    max-width: 420px;
}

.memory-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.photo-number {
    font-size: 13px;
    color: #ff758c;
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* 心里话便签条毛玻璃化 */
.love-note {
    background: rgba(255, 245, 247, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid #ff758c;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding: 16px 22px;
    border-radius: 0 16px 16px 0;
    max-width: 440px;
    width: 80%;
    text-align: left;
    font-size: 15px;
    color: #555555;
    line-height: 1.7;
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.2);
}

/* --- Little surprise 小游戏板块毛玻璃化 --- */
.game-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.gif-box {
    width: 210px;
    height: 210px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.25);
    margin-bottom: 20px;
}

.game-tip-text {
    font-size: 16px;
    color: #ff6b81;
    font-weight: bold;
    min-height: 30px;
}

.emoji-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.emoji-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 26px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.25);
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-card:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
    border-color: #ff758c;
}
/* --- 浪漫 BGM 悬浮播放按钮样式（毛玻璃风） --- */
.music-float-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.music-float-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
}

#music-icon {
    font-size: 18px;
    transition: transform 0.3s;
}

/* 播放时的动态音符/波浪特效 */
.music-wave {
    position: absolute;
    bottom: 8px;
    display: none;
    gap: 2px;
}

.music-wave span {
    display: block;
    width: 3px;
    height: 8px;
    background-color: #ff6b81;
    border-radius: 2px;
    animation: waveAni 0.6s infinite alternate;
}

.music-wave span:nth-child(2) { animation-delay: 0.2s; }
.music-wave span:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveAni {
    0% { height: 4px; }
    100% { height: 16px; }
}

/* 播放状态下隐藏静态图标，显示跳动波浪 */
.music-float-btn.playing #music-icon {
    display: none;
}
.music-float-btn.playing .music-wave {
    display: flex;
}

/* --- 密码弹窗精致样式 --- */
.password-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    width: 90%;
}

.password-box h2 {
    color: #4a4a4a;
    margin-bottom: 5px;
    font-size: 22px;
}

#password-input {
    width: 160px;
    padding: 12px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    border: 1px solid rgba(255, 117, 140, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff758c;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(255, 182, 193, 0.2);
}

#password-input:focus {
    border-color: #ff758c;
    box-shadow: 0 0 10px rgba(255, 117, 140, 0.3);
}

.pwd-btn {
    margin-top: 15px;
    padding: 10px 25px;
    background: #ff758c;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
    transition: all 0.2s;
}

.pwd-btn:hover {
    background: #ff526d;
    transform: translateY(-2px);
}

/* --- 让互动表情保持横排、每排 5 个 --- */
.emoji-container {
    display: flex;
    flex-wrap: wrap;       /* 允许换行 */
    justify-content: center; /* 居中对齐 */
    gap: 12px;             /* 表情之间的间距 */
    max-width: 450px;      /* 限制容器宽度，强制每排最多放下5个 */
    margin: 20px auto 0 auto;
}

