/* ==================== 爱心飘落动画 ==================== */
.heart {
    position: absolute;
    font-size: 20px;
    animation: fall linear forwards;
    opacity: 0;
}

@keyframes fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ==================== 文字打字效果 ==================== */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: currentColor;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==================== 淡入动画 ==================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 缩放动画 ==================== */
.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pop-in {
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== 抖动动画 ==================== */
.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

/* ==================== 心跳动画 ==================== */
.heartbeat {
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* ==================== 浮动动画 ==================== */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==================== 旋转动画 ==================== */
.spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== 彩带动画 ==================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* ==================== 气球动画 ==================== */
.balloon {
    position: fixed;
    font-size: 40px;
    animation: balloon-rise 4s ease-out forwards;
}

@keyframes balloon-rise {
    0% {
        opacity: 1;
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(20deg);
    }
}

/* ==================== 星星闪烁 ==================== */
.star {
    position: absolute;
    font-size: 20px;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ==================== 爱心爆炸效果 ==================== */
.heart-burst {
    position: fixed;
    pointer-events: none;
    animation: burst 0.6s ease-out forwards;
}

@keyframes burst {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* ==================== 页面切换动画 ==================== */
.page-enter {
    animation: pageEnter 0.5s ease forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-exit {
    animation: pageExit 0.3s ease forwards;
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ==================== 加载动画 ==================== */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ==================== 图片加载占位 ==================== */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== 成功动画 ==================== */
.success-check {
    animation: checkmark 0.5s ease-in-out forwards;
}

@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* ==================== 波浪动画 ==================== */
.wave {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* ==================== 信封动画 ==================== */
.envelope-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: 20px;
    padding-top: 180px;
}

.envelope {
    position: relative;
    width: 280px;
    height: 180px;
    cursor: pointer;
    transition: all 0.6s ease;
}

.envelope:hover:not(.open) {
    transform: scale(1.02);
}

.envelope.open {
    transform: translateY(160px);
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 100%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
}

.envelope-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, #FF69B4 0%, #FFB6C1 100%);
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    transform-origin: top center;
    transition: transform 0.6s ease;
    z-index: 5;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope-heart {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    z-index: 6;
    transition: all 0.3s ease;
}

.envelope.open .envelope-heart {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.envelope-letter {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 340px;
    max-width: 90vw;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    pointer-events: none;
}

.envelope.open .envelope-letter {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.letter-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 18px;
    color: #FF69B4;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px dashed #FFB6C1;
    padding-bottom: 8px;
}

.letter-content {
    font-size: 14px;
    line-height: 1.9;
    color: #333;
    white-space: pre-line;
}

.letter-signature {
    text-align: right;
    margin-top: 12px;
    font-style: italic;
    color: #FF69B4;
    font-size: 14px;
}

.envelope-hint {
    margin-top: 30px;
    color: var(--text-light);
    font-size: 14px;
    animation: pulse 2s infinite;
}

/* ==================== 礼物盒子动画 ==================== */
.gift-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 20px;
    position: relative;
}

.gift-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.6s ease;
}

.gift-wrapper.opened {
    transform: translateY(100px);
}

.gift-box {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gift-box:hover:not(.open) {
    transform: scale(1.05);
    animation: shake 0.5s ease;
}

.gift-body {
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.4);
}

.gift-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.gift-body::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.gift-lid {
    position: absolute;
    top: -30px;
    left: -10px;
    width: 220px;
    height: 40px;
    background: linear-gradient(135deg, #FF1493 0%, #C71585 100%);
    border-radius: 10px 10px 0 0;
    transform-origin: left bottom;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

.gift-lid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.gift-bow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    z-index: 3;
    transition: all 0.6s ease;
}

.gift-box.open .gift-lid {
    transform: rotate(-110deg) translateX(-30px);
}

.gift-box.open .gift-bow {
    transform: translateX(-150%) translateY(-20px) rotate(-30deg);
    animation: none;
}

.gift-content {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    pointer-events: none;
}

.gift-content.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.gift-surprise {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0) translateY(50px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gift-surprise.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.surprise-emoji {
    font-size: 70px;
    margin-bottom: 15px;
    animation: heartbeat 1s infinite;
}

.surprise-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    color: #FF69B4;
    text-align: center;
}

.gift-hint {
    margin-top: 30px;
    color: var(--text-light);
    font-size: 14px;
    animation: pulse 2s infinite;
}

.gift-reset-btn {
    margin-top: 20px;
}

.gift-confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confetti-fall 3s linear forwards;
    pointer-events: none;
    z-index: 100;
}

/* ==================== 星空背景 ==================== */
#starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.main-menu-starfield {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%) !important;
}

.main-menu-starfield .menu-title,
.main-menu-starfield .menu-subtitle {
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.main-menu-starfield .menu-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-menu-starfield .menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.main-menu-starfield .menu-text {
    color: white;
}

/* ==================== 打字机效果 ==================== */
.typewriter {
    overflow: hidden;
    white-space: pre-line;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: currentColor;
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

/* ==================== 音乐播放器 ==================== */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.music-player-mini {
    padding: 10px 15px;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px;
}

.music-btn:hover {
    transform: scale(1.2);
}

.music-info {
    display: flex;
    flex-direction: column;
}

.music-track-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.music-artist {
    font-size: 12px;
    color: var(--text-light);
}

.playlist-container {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-item:hover {
    background: rgba(255, 182, 193, 0.2);
}

.playlist-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.playlist-icon {
    font-size: 16px;
}

.playlist-name {
    font-size: 14px;
}

/* ==================== 恋爱计时器 ==================== */
.lovetimer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.lovetimer-heart {
    font-size: 60px;
    animation: heartbeat 1s infinite;
    margin-bottom: 20px;
}

.lovetimer-days {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 30px;
}

.lovetimer-days span:first-child {
    font-size: 80px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.days-label {
    font-size: 24px;
    color: #FF69B4;
}

.lovetimer-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #FFB6C1, #FFC0CB);
    padding: 15px 20px;
    border-radius: 15px;
    min-width: 70px;
}

.time-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.time-label {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
}

.lovetimer-message {
    font-size: 16px;
    color: var(--text-light);
}

/* ==================== 扭蛋机 ==================== */
.gashapon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

.gashapon-machine {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gashapon-machine:hover {
    transform: scale(1.02);
}

.gashapon-machine.shaking {
    animation: shake 0.15s ease infinite;
}

.gashapon-machine.shaking .gashapon-balls .ball {
    animation: ballBounce 0.2s ease infinite;
}

@keyframes ballBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gashapon-top {
    width: 180px;
    height: 50px;
    background: linear-gradient(180deg, #FF1493, #C71585);
    border-radius: 100px 100px 0 0;
    margin: 0 auto;
    position: relative;
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.2);
}

.gashapon-coin-slot {
    width: 40px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gashapon-glass {
    width: 200px;
    height: 180px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,240,245,0.9));
    border: 5px solid #FF69B4;
    border-radius: 100px 100px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(255, 105, 180, 0.2);
}

.gashapon-balls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 15px;
}

.gashapon-balls .ball {
    font-size: 32px;
    display: inline-block;
    animation: floatBall 3s ease-in-out infinite;
}

.ball-1 { animation-delay: 0s; }
.ball-2 { animation-delay: 0.3s; }
.ball-3 { animation-delay: 0.6s; }
.ball-4 { animation-delay: 0.9s; }
.ball-5 { animation-delay: 1.2s; }
.ball-6 { animation-delay: 1.5s; }
.ball-7 { animation-delay: 1.8s; }
.ball-8 { animation-delay: 2.1s; }

@keyframes floatBall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(10deg); }
}

.gashapon-bottom {
    width: 220px;
    height: 60px;
    background: linear-gradient(180deg, #FF69B4, #FF1493);
    border-radius: 0 0 30px 30px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.gashapon-outlet {
    width: 60px;
    height: 40px;
    background: #333;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.5);
}

.gashapon-handle {
    position: absolute;
    right: -40px;
    top: 50%;
    font-size: 35px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gashapon-machine.shaking .gashapon-handle {
    animation: handleTurn 0.3s ease infinite;
}

@keyframes handleTurn {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(45deg); }
}

.gashapon-hint {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.gashapon-container .btn-cute {
    margin-top: 15px;
}

.gashapon-result {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gashapon-result.show {
    opacity: 1;
    visibility: visible;
}

.result-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gashapon-result.show .result-content {
    transform: scale(1);
}

.result-emoji {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

.result-text {
    font-size: 20px;
    color: #FF69B4;
    margin-bottom: 25px;
    font-family: 'Ma Shan Zheng', cursive;
}

/* ==================== 爱心收集 ==================== */
.heart-collector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

.heart-progress {
    width: 100%;
    max-width: 300px;
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.heart-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFB6C1, #FF69B4, #FF1493);
    border-radius: 10px;
    width: 0;
    transition: width 0.3s ease;
}

.heart-count {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 20px;
}

.heart-collector-area {
    width: 100%;
    max-width: 350px;
    height: 250px;
    background: linear-gradient(135deg, #FFF0F5, #FFE4E1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 3px dashed #FFB6C1;
}

.heart-hint {
    font-size: 18px;
    color: #FF69B4;
}

.floating-heart {
    position: absolute;
    font-size: 30px;
    animation: floatUp 1s ease forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

.heart-complete-message {
    margin-top: 20px;
    text-align: center;
}

.heart-secret {
    font-size: 20px;
    color: #FF1493;
    font-family: 'Ma Shan Zheng', cursive;
    animation: pulse 2s infinite;
}

/* ==================== 许愿墙 ==================== */
.wishboard-container {
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.wish-input-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.wish-input-area textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #FFB6C1;
    border-radius: 15px;
    font-size: 16px;
    resize: none;
    font-family: inherit;
}

.wish-input-area textarea:focus {
    outline: none;
    border-color: #FF69B4;
}

.wish-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wish-card {
    background: linear-gradient(135deg, var(--card-color, #FFB6C1), rgba(255,255,255,0.8));
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    animation: fadeInUp 0.3s ease;
}

.wish-card.new {
    animation: bounce 0.5s ease;
}

.wish-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    word-break: break-word;
}

.wish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.wish-date {
    font-size: 12px;
    color: #999;
}

.wish-delete {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
}

.wish-delete:hover {
    color: #FF1493;
}

.wish-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== 记忆翻牌游戏 ==================== */
.memory-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.memory-stats {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text);
}

.memory-game-area {
    margin: 20px 0;
}

.memory-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 320px;
}

.memory-card {
    width: 70px;
    height: 70px;
    cursor: pointer;
    perspective: 1000px;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 30px;
}

.memory-card-front {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.memory-card-back {
    background: white;
    transform: rotateY(180deg);
    border: 2px solid #FFB6C1;
}

.memory-card.matched .memory-card-back {
    background: linear-gradient(135deg, #98FB98, #90EE90);
    border-color: #90EE90;
}

.memory-win {
    margin-top: 20px;
    font-size: 24px;
    color: #FF69B4;
    font-family: 'Ma Shan Zheng', cursive;
    animation: bounce 1s infinite;
}

/* ==================== 翻页相册 ==================== */
.flipalbum-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.flipalbum-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1500px;
}

.flip-book {
    position: relative;
    width: 300px;
    height: 400px;
    transform-style: preserve-3d;
}

.flip-page {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-page.flipped {
    transform: rotateY(-180deg);
}

.page-front,
.page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.page-front {
    background: linear-gradient(135deg, #fff, #FFF5F8);
}

.page-back {
    background: linear-gradient(135deg, #FFF5F8, #fff);
    transform: rotateY(180deg);
}

/* 封面样式 */
.cover-front,
.cover-back {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.cover-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-family: 'Ma Shan Zheng', cursive;
}

.cover-content p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cover-hint {
    font-size: 14px;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.heart-icon {
    font-size: 50px;
    display: block;
    margin-top: 20px;
    animation: heartbeat 1s infinite;
}

/* 照片框 */
.photo-frame {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.photo-frame img {
    max-width: 100%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.photo-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #FF69B4;
    text-align: center;
    font-family: 'Ma Shan Zheng', cursive;
}

.empty-page {
    font-size: 60px;
    opacity: 0.3;
}

/* 控制按钮 */
.flip-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.flip-btn {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flip-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.flip-btn:disabled {
    cursor: not-allowed;
}

.flip-page-info {
    font-size: 16px;
    color: var(--text);
    min-width: 80px;
    text-align: center;
}

.flip-hint {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

/* 页面堆叠效果 */
.flip-page:nth-child(1) { z-index: 10; }
.flip-page:nth-child(2) { z-index: 9; }
.flip-page:nth-child(3) { z-index: 8; }
.flip-page:nth-child(4) { z-index: 7; }
.flip-page:nth-child(5) { z-index: 6; }
.flip-page:nth-child(6) { z-index: 5; }
.flip-page:nth-child(7) { z-index: 4; }
.flip-page:nth-child(8) { z-index: 3; }
.flip-page:nth-child(9) { z-index: 2; }
.flip-page:nth-child(10) { z-index: 1; }

.flip-page.flipped {
    z-index: 0 !important;
}
