/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: 'Bubblegum Sans', cursive;
    background: #ffd6e0;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    padding: 20px 0;
}



.container {
    width: 100%;
    padding: 60px 40px;
    background: #fff5f7;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.container > * {
    max-width: 1000px;
    margin: 0 auto;
    display: block;
}

/* 确保导航菜单中的每个链接都正确显示 */
nav.main-nav .nav-menu li {
    display: inline-block;
    margin: 0 10px;
}

/* 加载动画 */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 50%, #ffd6e0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    color: #fff;
}

.heart {
    width: 100px;
    height: 100px;
    background-color: #ff69b4;
    position: relative;
    transform: rotate(45deg);
    margin: 0 auto 20px;
    animation: pulse 1.5s infinite;
}

.heart::before,
.heart::after {
    content: '';
    width: 100px;
    height: 100px;
    background-color: #ff69b4;
    border-radius: 50%;
    position: absolute;
}

.heart::before {
    top: -50px;
    left: 0;
}

.heart::after {
    top: 0;
    left: -50px;
}

@keyframes pulse {
    0% { transform: scale(1) rotate(45deg); }
    50% { transform: scale(1.1) rotate(45deg); }
    100% { transform: scale(1) rotate(45deg); }
}

@keyframes pulseIntense {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1.2); }
}

/* 弹窗边框发光动画 */
@keyframes glowBorder {
    0% {
        box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4), 0 0 30px rgba(255, 182, 193, 0.6), 0 0 100px rgba(255, 105, 180, 0.2), inset 0 0 100px rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.8);
    }
    100% {
        box-shadow: 0 25px 70px rgba(255, 105, 180, 0.6), 0 0 40px rgba(255, 182, 193, 0.8), 0 0 150px rgba(255, 105, 180, 0.4), inset 0 0 120px rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 1);
    }
}

/* 消息区域发光动画 */
@keyframes messageGlow {
    0% {
        box-shadow: 0 8px 30px rgba(255, 182, 193, 0.4), 0 0 20px rgba(255, 105, 180, 0.2), inset 0 0 50px rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 105, 180, 0.4);
    }
    100% {
        box-shadow: 0 12px 40px rgba(255, 182, 193, 0.6), 0 0 30px rgba(255, 105, 180, 0.4), inset 0 0 70px rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 105, 180, 0.6);
    }
}

/* 爱心爆炸动画 - 使用CSS变量控制参数 */
@keyframes heartExplosion {
    0% {
        transform: translate(0, 0) scale(1) rotate(var(--rotation, 0deg));
        opacity: 1;
    }
    100% {
        transform: translate(calc(cos(var(--angle, 0deg)) * var(--distance, 100px)), calc(sin(var(--angle, 0deg)) * var(--distance, 100px) - 100px)) scale(0);
        opacity: 0;
    }
}

/* 头部 */
header {
    background: #fff5f7;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.title {
    font-size: 2rem;
    text-align: center;
    color: #ff69b4;
    margin-bottom: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.control-btn {
    background: #ffb6c1;
    color: white;
    border: 4px solid white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: bounce 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.control-btn:hover {
    transform: scale(1.2);
    background: #ff69b4;
    animation: bounce 0.4s ease;
}

.control-btn:active {
    transform: scale(1.1);
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.15), 0 2px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .container {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

.header-title {
    text-align: center;
    margin: 0 auto 20px;
    display: inline-block;
    width: 100%;
    max-width: 1000px;
}

.header-subtitle {
    text-align: center;
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 1000px;
}

/* 相册头部样式 - 固定在顶部 */
#albumHeader.header {
    padding: 20px 0;
    position: fixed;
    top: 130px;
    left: 0;
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15), 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.08) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
    z-index: 0;
}

.header-title {
    font-size: 3rem;
    color: #ff69b4;
    margin: 0 0 20px;
    font-family: 'Bubblegum Sans', cursive;
    text-shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.header-title::before,
.header-title::after {
    content: '💖';
    margin: 0 10px;
    display: inline-block;
    animation: bounce 1s ease-in-out infinite;
}

.header-subtitle {
    font-size: 1.3rem;
    color: #ff69b4;
    margin: 0;
    font-family: 'Bubblegum Sans', cursive;
    text-shadow: 0 2px 10px rgba(255, 105, 180, 0.2);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .header-title::before,
    .header-title::after {
        margin: 0 5px;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
}

/* 导航菜单样式 */
.main-nav {
    background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
    padding: 25px 0;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15), 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid rgba(255, 105, 180, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 10000;
    margin-bottom: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 确保导航菜单居中显示 */
.main-nav::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.05) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 100%;
}

.nav-link {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 105, 180, 0.2);
    font-family: 'Noto Sans SC', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 214, 224, 0.95);
    color: #ff69b4;
    transform: translateY(-3px);
    border-color: rgba(255, 105, 180, 0.4);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.2), 0 0 0 4px rgba(255, 105, 180, 0.05);
}

.nav-link.active {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: #fff;
    font-weight: bold;
    border-color: #ff69b4;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3), 0 0 0 4px rgba(255, 105, 180, 0.1);
}

/* 页面内容容器 */
.content {
    padding-top: 200px;
    position: relative;
}

/* 底部控制栏 */
.top-controls {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 10001;
    margin: 0;
}

.top-controls .controls {
    display: flex;
    gap: 15px;
}

/* 控制按钮 */
.control-btn {
    background: #ffb6c1;
    color: white;
    border: 4px solid white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: bounce 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.control-btn:hover {
    transform: scale(1.2);
    background: #ff69b4;
    animation: bounce 0.4s ease;
}

.control-btn:active {
    transform: scale(1.1);
}

/* 主内容区域 */
#mainContent {
    padding-top: 300px;
    position: relative;
}

/* 为index.html中的mainContent添加额外样式，确保内容不被固定导航栏遮挡 */
#mainContent > nav.main-nav + section {
    padding-top: 100px;
}

/* 通用区块样式 */
.section {
    padding: 0;
    position: relative;
    overflow: visible;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #ff69b4;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 2px solid #ffb6c1;
    animation: slideInUp 0.6s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* 生日祝福区域 */
.wish-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: #fff5f7;
    padding: 40px;
    border-radius: 20px;
    border: 3px solid white;
    animation: slideInUp 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.wish-text {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.wish-text h2 {
    font-size: 2rem;
    color: #ff69b4;
    margin-bottom: 20px;
}

.wish-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.surprise-btn {
    background: #ffb6c1;
    color: white;
    padding: 22px 45px;
    border-radius: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    border: 4px solid white;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 1;
    animation: bounce 0.6s ease-out;
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

.surprise-btn:hover {
    transform: scale(1.15);
    background: #ff69b4;
    animation: bounce 0.5s ease;
}

.surprise-btn:active {
    transform: scale(1.1);
}

.wish-image {
    position: relative;
}

.heart-img {
    width: 200px;
    height: auto;
    animation: float 3s ease-in-out infinite, heartBeat 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) rotate(10deg) scale(1.1); }
    50% { transform: translateY(-20px) rotate(0deg) scale(1); }
    75% { transform: translateY(-15px) rotate(-10deg) scale(1.1); }
}

/* 增强的爱心动画 */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(0.95); }
    50% { transform: scale(1.2); }
    60%, 80% { transform: scale(1.05); }
    70%, 90% { transform: scale(0.98); }
}

/* 新动画：弹跳 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 新动画：滑入 */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes modalBounceIn {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.05) rotate(360deg);
        opacity: 1;
    }
    80% {
        transform: scale(0.95) rotate(360deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* 新添加的动画效果 */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseSubtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.5); 
    }
    50% { 
        text-shadow: 3px 3px 8px rgba(255, 105, 180, 0.8), 0 0 20px rgba(255, 105, 180, 0.4); 
    }
}

@keyframes fadeInUpRotate {
    from { opacity: 0; transform: translateY(20px) rotate(-2deg); }
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes gentleSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-1deg); }
    75% { transform: rotate(1deg); }
}

@keyframes colorShift {
    0%, 100% { color: #ff8fab; }
    50% { color: #ff69b4; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 页面元素进入动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 蝴蝶结浮动动画 */
@keyframes bowFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg) scale(1.05); }
    50% { transform: translateY(-15px) rotate(0deg) scale(1); }
    75% { transform: translateY(-10px) rotate(-5deg) scale(1.05); }
}

/* 小兔子跳跃动画 */
@keyframes rabbitHop {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-20px) rotate(-5deg); }
}

/* 小猫咪浮动动画 */
@keyframes catFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(10deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-10deg); }
}

/* 图片展示区域 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    background: #fff5f7;
    padding: 120px 50px 60px;
    border-radius: 20px;
    position: relative;
    border: 3px solid white;
    animation: slideInUp 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

/* 改进的照片加载动画 */
@keyframes photoZoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
        box-shadow: 0 0 0 rgba(255, 182, 193, 0.3);
    }
    70% {
        transform: scale(1.02);
        opacity: 0.9;
        box-shadow: 0 15px 30px rgba(255, 182, 193, 0.5);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 8px 25px rgba(255, 182, 193, 0.2);
    }
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 比例 */
    background-color: #fff0f5;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 3px solid white;
    animation: photoZoomIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-fill-mode: both;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.2);
    transform-origin: center bottom;
}

.gallery-item:nth-child(1) { animation-delay: 0.3s; } 
.gallery-item:nth-child(2) { animation-delay: 0.4s; } 
.gallery-item:nth-child(3) { animation-delay: 0.5s; } 
.gallery-item:nth-child(4) { animation-delay: 0.6s; } 
.gallery-item:nth-child(5) { animation-delay: 0.7s; } 
.gallery-item:nth-child(6) { animation-delay: 0.8s; } 
.gallery-item:nth-child(7) { animation-delay: 0.9s; } 
.gallery-item:nth-child(8) { animation-delay: 1.0s; } 
.gallery-item:nth-child(9) { animation-delay: 1.1s; } 

/* 增强的悬停效果 */
@keyframes hoverPulse {
    0%, 100% { transform: scale(1.08); }
    50% { transform: scale(1.12); }
}

.gallery-item:hover {
    transform: scale(1.08) translateY(-5px) rotate(1deg);
    box-shadow: 0 20px 45px rgba(255, 105, 180, 0.5), 0 0 30px rgba(255, 182, 193, 0.7);
    animation: hoverPulse 1.5s ease-in-out infinite;
    z-index: 10;
}

.gallery-item:hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    animation: shineEffect 1s ease-in-out;
}

/* 高光效果 */
@keyframes shineEffect {
    0% { opacity: 0; transform: translateX(-100%) rotate(45deg); }
    50% { opacity: 0.3; }
    100% { opacity: 0; transform: translateX(100%) rotate(45deg); }
}

/* 改进的覆盖层效果 */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.8), rgba(255, 182, 193, 0.6));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    color: white;
    font-size: 3rem;
    transform: scale(0.8) translateY(20px);
    border-radius: 15px;
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.gallery-overlay i {
    animation: heartBeat 1.5s infinite;
    transform-origin: center;
}

/* 照片标题样式 */
.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

/* 图片查看器动画 */
@keyframes viewerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.image-viewer {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(3px);
}

.image-viewer.show {
    display: block;
    animation: viewerFadeIn 0.3s ease-out;
}

.viewer-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    animation: viewerSlideIn 0.5s ease-out;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.8;
}

.close:hover, .close:focus {
    color: #ff69b4;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
    transform: scale(1.2);
}

.caption-container {
    text-align: center;
    padding: 10px 20px;
    color: white;
    animation: viewerSlideIn 0.5s ease-out 0.2s both;
}

.caption-container p {
    font-size: 1.2rem;
    color: #ffd6e0;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 情书区域 */
.letter-container {
    display: flex;
    justify-content: center;
    animation: slideInUp 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.letter {
    background: #fff5f7;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    border: 3px solid white;
    animation: float 5s ease-in-out infinite;
    animation-delay: 0.6s;
}

.letter-header {
    text-align: center;
    margin-bottom: 30px;
}

.letter-header h3 {
    font-size: 1.8rem;
    color: #ff69b4;
    font-weight: bold;
}

.letter-content p {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 15px;
    text-indent: 2em;
    line-height: 1.8;
}

.signature {
    text-align: right;
    margin-top: 40px;
    font-weight: bold;
    color: #ff69b4;
    font-size: 1.2rem;
}

/* 互动区域 */
.interaction-content {
    text-align: center;
    background: #fff5f7;
    padding: 50px;
    border-radius: 20px;
    border: 3px solid white;
}

.heart-button {
    display: inline-block;
    background: #ffb6c1;
    color: white;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    font-size: 3.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto 30px;
    border: 4px solid white;
    z-index: 10;
    animation: bounce 1s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.heart-button:hover {
    transform: scale(1.2);
    background: #ff69b4;
    animation: heartBeat 1s infinite;
}

.heart-button:active {
    transform: scale(1.1);
}

#heartCount {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    background: #fff5f7;
    color: #ff69b4;
    padding: 5px 10px;
    border-radius: 20px;
    min-width: 40px;
    border: 2px solid white;
    animation: bounce 0.6s ease-out;
    animation-delay: 1s;
    animation-fill-mode: both;
}

/* 添加点击爱心时的计数动画 */
@keyframes heartCountPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

#heartCount.pulse {
    animation: heartCountPulse 0.3s ease;
}

.interaction-text {
    font-size: 1.2rem;
    color: #666;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1.2rem;
    color: #ff69b4;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1rem;
    border: 2px solid #ffd6e0;
    border-radius: 15px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Bubblegum Sans', cursive;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    color: #666;
    border: 2px dashed #ffd6e0;
    border-radius: 15px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #ff69b4;
    background: #fff5f7;
}

.memory-btn,
.upload-btn {
    display: inline-block;
    background: #ff69b4;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Bubblegum Sans', cursive;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.memory-btn:hover,
.upload-btn:hover {
    background: #ff1493;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.memory-btn:active,
.upload-btn:active {
    transform: translateY(-1px);
}

.memory-form-container,
.upload-form-container {
    background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.15), 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    border: 2px solid rgba(255, 105, 180, 0.1);
    position: relative;
    overflow: hidden;
}

.upload-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

/* 照片预览样式 */
.photo-preview {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.photo-preview.show {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

#previewImage {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 105, 180, 0.2);
    background: #f8f8f8;
    object-fit: contain;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ff69b4;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Bubblegum Sans', cursive;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.95);
    font-family: 'Noto Sans SC', sans-serif;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2), 0 0 0 4px rgba(255, 105, 180, 0.05);
    background: #fff;
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 文件选择按钮样式 */
.form-group input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Bubblegum Sans', cursive;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    border: 2px solid transparent;
}

.file-upload-label:hover {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5), 0 0 40px rgba(255, 105, 180, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.file-upload-label:active {
    transform: translateY(-1px);
}

/* 上传按钮样式优化 */
.upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    padding: 18px 40px;
    font-size: 1.3rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Bubblegum Sans', cursive;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3), 0 0 0 4px rgba(255, 105, 180, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.upload-btn:hover::before {
    left: 100%;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.5), 0 0 60px rgba(255, 105, 180, 0.2);
}

.upload-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.upload-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 成功消息样式优化 */
.success-message {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out, float 3s ease-in-out infinite;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '✨';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes sparkle {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 0.8; }
}

.memory-form,
.upload-form {
    max-width: 600px;
    margin: 0 auto;
}

/* 成功消息样式 */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 底部 */
footer {
    background: #fff5f7;
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid white;
}

/* 装饰元素样式 */
.decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 蝴蝶样式和动画 */
@keyframes butterflyFly {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-45px) rotate(-5deg);
    }
}

.butterfly {
    position: absolute;
    font-size: 2rem;
    animation: butterflyFly 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.butterfly-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.butterfly-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    transform: rotate(-10deg);
}

.butterfly-3 {
    top: 40%;
    left: 25%;
    animation-delay: 4s;
    transform: rotate(20deg);
}

.butterfly-4 {
    top: 80%;
    right: 20%;
    animation-delay: 1s;
    transform: rotate(-25deg);
}

/* 星星样式和动画 */
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 215, 0, 0.6);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8);
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.4), 0 0 5px rgba(255, 215, 0, 0.3);
    }
}

.star {
    position: absolute;
    font-size: 1.2rem;
    animation: twinkle 2s ease-in-out infinite;
    color: #ffd700;
}

.star-1 {
    top: 15%;
    right: 30%;
    animation-delay: 0s;
}

.star-2 {
    top: 30%;
    left: 15%;
    animation-delay: 0.5s;
}

.star-3 {
    top: 70%;
    right: 25%;
    animation-delay: 1s;
}

.star-4 {
    top: 50%;
    left: 85%;
    animation-delay: 1.5s;
}

.star-5 {
    top: 25%;
    right: 75%;
    animation-delay: 0.8s;
}

/* 气球样式和动画 */
@keyframes balloonFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-50px) scale(1.05);
    }
}

.balloons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    animation: balloonFloat 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.balloon-1 {
    bottom: 10%;
    left: 15%;
    animation-delay: 0s;
    transform: rotate(5deg);
}

.balloon-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
    transform: rotate(-10deg);
}

.balloon-3 {
    bottom: 35%;
    left: 20%;
    animation-delay: 4s;
    transform: rotate(15deg);
}

.balloon-4 {
    bottom: 15%;
    right: 25%;
    animation-delay: 1s;
    transform: rotate(-5deg);
}

.balloon-5 {
    bottom: 25%;
    left: 80%;
    animation-delay: 3s;
    transform: rotate(10deg);
}

/* 响应式设计 - 装饰元素 */
@media (max-width: 768px) {
    .butterfly,
    .balloon {
        font-size: 1.5rem;
    }
    
    .star {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* 装饰元素调整 */
    .butterfly,
    .balloon {
        font-size: 1.5rem;
    }
    
    .star {
        font-size: 1rem;
    }
    
    /* 页面布局调整 */
    .container {
        padding: 0 15px;
    }
    
    /* 标题调整 */
    .title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 0 10px;
    }
    
    /* 相册展示区域 */
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 20px 15px;
    }
    
    .gallery-item {
        height: 120px;
    }
    
    /* 许愿互动区域 */
    .wish-content {
        padding: 30px 20px;
    }
    
    .wish-text h2 {
        font-size: 1.8rem;
    }
    
    .wish-text p {
        font-size: 1.1rem;
    }
    
    #wishInput {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
    }
    
    .wish-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    /* 照片上传区域 */
    .upload-form-container {
        padding: 30px 20px;
        margin-top: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input[type="text"],
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .file-upload-label {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .upload-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: 100%;
    }
    
    /* 照片预览 */
    .photo-preview {
        padding: 15px;
    }
    
    #previewImage {
        max-height: 250px;
    }
    
    /* 底部 */
    footer p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* 装饰元素简化 */
    .butterfly,
    .balloon {
        font-size: 1.2rem;
    }
    
    .star {
        display: none;
    }
    
    .butterfly:nth-child(n+3),
    .balloon:nth-child(n+4) {
        display: none;
    }
    
    /* 页面布局调整 */
    .container {
        padding: 0 10px;
    }
    
    /* 标题调整 */
    .title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    /* 相册展示区域 */
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        padding: 15px 10px;
    }
    
    .gallery-item {
        height: 100px;
    }
    
    /* 许愿互动区域 */
    .wish-content {
        padding: 25px 15px;
    }
    
    .wish-text h2 {
        font-size: 1.5rem;
    }
    
    .wish-text p {
        font-size: 1rem;
    }
    
    #wishInput {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .wish-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    /* 照片上传区域 */
    .upload-form-container {
        padding: 25px 15px;
        margin-top: 15px;
        border-radius: 20px;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input[type="text"],
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .file-upload-label {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .upload-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* 照片预览 */
    .photo-preview {
        margin-top: 20px;
        padding: 10px;
    }
    
    #previewImage {
        max-height: 200px;
    }
    
    /* 成功消息 */
    .success-message {
        top: 15px;
        right: 15px;
        left: 15px;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    /* 底部 */
    footer p {
        font-size: 0.9rem;
    }
}

footer p {
    font-size: 1.2rem;
    color: #ff69b4;
    font-weight: bold;
}

/* 图片查看器 */
.image-viewer {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 图片滑动切换动画 */
.slide-left-out {
    animation: slideLeftOut 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.slide-right-out {
    animation: slideRightOut 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.slide-left-in {
    animation: slideLeftIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.slide-right-in {
    animation: slideRightIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideLeftOut {
    0% {
        transform: translate(-50%, -50%) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideRightOut {
    0% {
        transform: translate(-50%, -50%) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateX(100%);
        opacity: 0;
    }
}

@keyframes slideLeftIn {
    0% {
        transform: translate(-50%, -50%) translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) translateX(0);
        opacity: 1;
    }
}

@keyframes slideRightIn {
    0% {
        transform: translate(-50%, -50%) translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) translateX(0);
        opacity: 1;
    }
}

.image-viewer.show {
    display: block;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.92);
}

.viewer-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    z-index: 1001;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(20px);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ff69b4;
    font-size: 36px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    background: #fff5f7;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid white;
    z-index: 1000;
    position: relative;
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
}

.close:hover,
.close:focus {
    color: white;
    background: #ffb6c1;
    transform: scale(1.3) rotate(180deg);
    text-decoration: none;
    cursor: pointer;
    animation: bounce 0.4s ease;
}

/* 惊喜弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.8) 0%, rgba(255, 105, 180, 0.7) 100%);
    animation: fadeIn 0.5s ease;
}

.modal-content {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 30%, #ffd6e0 60%, #ffb6c1 100%);
    margin: 10% auto;
    padding: 60px 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4), 0 0 30px rgba(255, 182, 193, 0.6), 0 0 100px rgba(255, 105, 180, 0.2), inset 0 0 100px rgba(255, 255, 255, 0.5);
    animation: modalBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, glowBorder 2s ease-in-out infinite alternate;
    position: relative;
    border: 5px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transform: scale(0) rotate(180deg);
}

/* 弹窗装饰元素 */
.modal-decoration {
    position: absolute;
    font-size: 2rem;
    animation: twinkle 2s ease-in-out infinite;
    opacity: 0.8;
    z-index: 1;
}

.modal-decoration.top-left {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.modal-decoration.top-right {
    top: 20px;
    right: 20px;
    animation-delay: 0.5s;
    animation: bowFloat 2s ease-in-out infinite;
}

.modal-decoration.bottom-left {
    bottom: 20px;
    left: 20px;
    animation-delay: 1s;
    animation: bounce 2s ease-in-out infinite;
}

.modal-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    animation-delay: 1.5s;
    animation: heartBeat 1.5s infinite;
}

/* 星星装饰样式 */
.modal-decoration.star {
    font-size: 1.5rem;
    opacity: 0.6;
    animation: twinkle 1.5s ease-in-out infinite;
}

.modal-decoration.star-1 {
    top: 60px;
    left: 40px;
    animation-delay: 0.2s;
}

.modal-decoration.star-2 {
    top: 80px;
    right: 60px;
    animation-delay: 0.7s;
}

.modal-decoration.star-3 {
    bottom: 80px;
    left: 50px;
    animation-delay: 1.2s;
}

.modal-decoration.star-4 {
    bottom: 60px;
    right: 40px;
    animation-delay: 0.9s;
}

.modal-decoration.star-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.3;
    animation-delay: 1.5s;
}

/* 蝴蝶装饰样式 */
.modal-decoration.butterfly {
    font-size: 1.8rem;
    opacity: 0.7;
    animation: butterflyFly 6s ease-in-out infinite;
    z-index: 2;
}

.modal-decoration.butterfly-1 {
    top: 40%;
    left: 10%;
    animation-delay: 0s;
}

.modal-decoration.butterfly-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

/* 星星闪烁动画 */
@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 蝴蝶结浮动动画 */
@keyframes bowFloat {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* 蝴蝶飞行动画 */
@keyframes butterflyFly {
    0% { 
        transform: translate(0, 0) rotate(0deg);
    }
    25% { 
        transform: translate(20px, -10px) rotate(10deg);
    }
    50% { 
        transform: translate(40px, 0) rotate(0deg);
    }
    75% { 
        transform: translate(20px, 10px) rotate(-10deg);
    }
    100% { 
        transform: translate(0, 0) rotate(0deg);
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ff69b4;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff 0%, #ffe6f0 100%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(255, 180, 200, 0.5), 0 0 12px rgba(255, 105, 180, 0.3);
    border: 3px solid #ffb6c1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    position: relative;
}

.modal-close::before {
    content: '✨';
    position: absolute;
    top: -6px;
    left: -6px;
    font-size: 16px;
    animation: twinkle 1.5s infinite;
    z-index: -1;
}

.modal-close::after {
    content: '🎀';
    position: absolute;
    bottom: -6px;
    right: -6px;
    font-size: 16px;
    animation: bowFloat 1.8s ease-in-out infinite;
    z-index: -1;
}

.modal-close:hover {
    color: white;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    transform: scale(1.3) rotate(180deg);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.7), 0 0 20px rgba(255, 105, 180, 0.5);
    border-color: #ff69b4;
}

.modal-content h2 {
    color: #ff69b4;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
    animation: bounce 1s ease-in-out infinite;
    animation-delay: 0.5s;
}

.modal-message {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 245, 247, 0.8) 50%, rgba(255, 232, 240, 0.7) 100%);
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.4), 0 0 20px rgba(255, 105, 180, 0.2), inset 0 0 50px rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 105, 180, 0.4);
    position: relative;
    overflow: hidden;
    animation: messageGlow 3s ease-in-out infinite alternate;
}

/* 添加消息区域背景装饰 */
.modal-message::before {
    content: '💖';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 40px;
    opacity: 0.2;
    z-index: 0;
}

.modal-message::after {
    content: '✨';
    position: absolute;
    bottom: -15px;
    left: -15px;
    font-size: 30px;
    opacity: 0.2;
    z-index: 0;
}

.modal-text {
    font-size: 1.2rem;
    margin: 12px 0;
    line-height: 1.8;
    color: #333;
    font-family: 'Dancing Script', cursive;
    opacity: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* 为不同类型的文本添加特色动画 */
.modal-text.greeting {
    font-size: 1.8rem;
    color: #ff69b4;
    font-weight: bold;
    transform: translateX(-30px) scale(0.8);
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, pulseSubtle 2s ease-in-out 2s infinite, glow 2s ease-in-out 3s infinite alternate;
    animation-delay: 0.3s;
}

.modal-text.wish {
    font-size: 1.4rem;
    color: #ff8fab;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.6s;
}

.modal-text.highlight {
    font-size: 1.5rem;
    color: #ff1493;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.5);
    transform: scale(0.8);
    animation: scaleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, glow 2s ease-in-out 3s infinite alternate;
    animation-delay: 0.9s;
}

/* 为每个记忆文本添加递增的动画延迟 */
.modal-text.memory:nth-of-type(1) {
    font-size: 1.25rem;
    color: #ffb6c1;
    transform: translateY(20px) rotate(-2deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 4s infinite;
    animation-delay: 1.2s;
}

.modal-text.memory:nth-of-type(2) {
    font-size: 1.25rem;
    color: #ffb6c1;
    transform: translateY(20px) rotate(1deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 4.5s infinite reverse;
    animation-delay: 1.5s;
}

.modal-text.memory:nth-of-type(3) {
    font-size: 1.25rem;
    color: #ffb6c1;
    transform: translateY(20px) rotate(-1deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 5s infinite;
    animation-delay: 1.8s;
}

.modal-text.memory:nth-of-type(4) {
    font-size: 1.25rem;
    color: #ffb6c1;
    transform: translateY(20px) rotate(2deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 5.5s infinite reverse;
    animation-delay: 2.1s;
}

.modal-text.memory:nth-of-type(5) {
    font-size: 1.25rem;
    color: #ffb6c1;
    transform: translateY(20px) rotate(-2deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 6s infinite;
    animation-delay: 2.4s;
}

.modal-text.memory:nth-of-type(6) {
    font-size: 1.25rem;
    color: #ffb6c1;
    transform: translateY(20px) rotate(1deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 6.5s infinite reverse;
    animation-delay: 2.7s;
}

.modal-text.memory:nth-of-type(7) {
    font-size: 1.25rem;
    color: #ffb6c1;
    transform: translateY(20px) rotate(-1deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 7s infinite;
    animation-delay: 3.0s;
}

/* 为每个未来文本添加递增的动画延迟 */
.modal-text.future:nth-of-type(1) {
    font-size: 1.25rem;
    color: #ff69b4;
    transform: translateY(20px) rotate(2deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 5s infinite reverse;
    animation-delay: 3.3s;
}

.modal-text.future:nth-of-type(2) {
    font-size: 1.25rem;
    color: #ff69b4;
    transform: translateY(20px) rotate(-1deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 5.5s infinite;
    animation-delay: 3.6s;
}

.modal-text.future:nth-of-type(3) {
    font-size: 1.25rem;
    color: #ff69b4;
    transform: translateY(20px) rotate(2deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 6s infinite reverse;
    animation-delay: 3.9s;
}

.modal-text.future:nth-of-type(4) {
    font-size: 1.25rem;
    color: #ff69b4;
    transform: translateY(20px) rotate(-1deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 6.5s infinite;
    animation-delay: 4.2s;
}

.modal-text.future:nth-of-type(5) {
    font-size: 1.25rem;
    color: #ff69b4;
    transform: translateY(20px) rotate(2deg) scale(0.9);
    animation: fadeInUpRotate 0.8s ease forwards, gentleSwing 3s ease-in-out 7s infinite reverse;
    animation-delay: 4.5s;
}

/* 为每个祝福文本添加递增的动画延迟 */
.modal-text.blessing:nth-of-type(1) {
    font-size: 1.3rem;
    color: #ff8fab;
    transform: translateY(20px) scale(0.9);
    animation: fadeInUp 0.8s ease forwards, colorShift 3s ease-in-out 6s infinite;
    animation-delay: 4.8s;
}

.modal-text.blessing:nth-of-type(2) {
    font-size: 1.3rem;
    color: #ff8fab;
    transform: translateY(20px) scale(0.9);
    animation: fadeInUp 0.8s ease forwards, colorShift 3s ease-in-out 6.5s infinite;
    animation-delay: 5.1s;
}

.modal-text.blessing:nth-of-type(3) {
    font-size: 1.3rem;
    color: #ff8fab;
    transform: translateY(20px) scale(0.9);
    animation: fadeInUp 0.8s ease forwards, colorShift 3s ease-in-out 7s infinite;
    animation-delay: 5.4s;
}

.modal-text.blessing:nth-of-type(4) {
    font-size: 1.3rem;
    color: #ff8fab;
    transform: translateY(20px) scale(0.9);
    animation: fadeInUp 0.8s ease forwards, colorShift 3s ease-in-out 7.5s infinite;
    animation-delay: 5.7s;
}

/* 为每个爱语文本添加递增的动画延迟 */
.modal-text.love:nth-of-type(1) {
    font-size: 1.5rem;
    color: #ff1493;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.5);
    transform: scale(0.8) rotate(5deg);
    animation: scaleIn 0.8s ease forwards, heartBeat 2s ease-in-out 6s infinite;
    animation-delay: 6.0s;
}

.modal-text.love:nth-of-type(2) {
    font-size: 1.5rem;
    color: #ff1493;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.5);
    transform: scale(0.8) rotate(-3deg);
    animation: scaleIn 0.8s ease forwards, heartBeat 2s ease-in-out 6.5s infinite reverse;
    animation-delay: 6.3s;
}

.modal-text.love:nth-of-type(3) {
    font-size: 1.5rem;
    color: #ff1493;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.5);
    transform: scale(0.8) rotate(4deg);
    animation: scaleIn 0.8s ease forwards, heartBeat 2s ease-in-out 7s infinite;
    animation-delay: 6.6s;
}

.modal-text.love:nth-of-type(4) {
    font-size: 1.6rem;
    color: #ff1493;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.5);
    transform: scale(0.8) rotate(0deg);
    animation: scaleIn 0.8s ease forwards, heartBeat 2s ease-in-out 5s infinite, glow 2s ease-in-out 6s infinite;
    animation-delay: 6.9s;
}

.modal-image img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

/* 弹窗互动区域 */
.modal-interaction {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.heart-button.modal-heart {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    padding: 22px 45px;
    font-size: 1.6rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4), 0 0 30px rgba(255, 105, 180, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite, glow 2s ease-in-out 1s infinite alternate;
    position: relative;
    overflow: hidden;
    border: 4px solid white;
    z-index: 10;
}

.heart-button.modal-heart::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
}

.heart-button.modal-heart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.heart-button.modal-heart:hover {
    transform: scale(1.25) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.7), 0 0 60px rgba(255, 105, 180, 0.5), 0 0 2px 2px rgba(255, 255, 255, 0.8);
    animation: none;
}

.heart-button.modal-heart:hover::after {
    opacity: 1;
}

.heart-button.modal-heart:active {
    transform: scale(1.15) rotate(5deg);
}

.heart-button.modal-heart:active::before {
    transform: scale(1);
    opacity: 1;
    transition: all 0.2s ease;
}

.heart-button.modal-heart .fas.fa-heart {
    animation: heartBeat 1.5s infinite;
    z-index: 2;
    position: relative;
}

.modal-heart-count {
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

.modal-heart-count.pulse {
    animation: pulseIntense 0.6s ease-out, glow 0.6s ease-out;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
}

/* 气球效果 */
.balloons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.balloon {
    width: 50px;
    height: 70px;
    border-radius: 50%;
    position: relative;
    animation: balloonFloat 4s ease-in-out infinite;
}

.balloon:nth-child(1) {
    background: #ff69b4;
    animation-delay: 0s;
}

.balloon:nth-child(2) {
    background: #ff1493;
    animation-delay: 0.5s;
}

.balloon:nth-child(3) {
    background: #ffb6c1;
    animation-delay: 1s;
}

.balloon:nth-child(4) {
    background: #ffc0cb;
    animation-delay: 1.5s;
}

.balloon:nth-child(5) {
    background: #ff8fab;
    animation-delay: 2s;
}

.balloon::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 80px;
    background: linear-gradient(to bottom, #333 0%, #333 60%, rgba(51, 51, 51, 0) 100%);
    z-index: -1;
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-left: 3px solid #333;
    border-bottom: 3px solid #333;
    border-radius: 0 0 0 50%;
}

/* 为每个气球添加不同的装饰 */
.balloon:nth-child(1)::before {
    height: 70px;
}

.balloon:nth-child(2)::before {
    height: 90px;
}

.balloon:nth-child(3)::before {
    height: 80px;
}

.balloon:nth-child(4)::before {
    height: 100px;
}

.balloon:nth-child(5)::before {
    height: 75px;
}

@keyframes balloonFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 雪花效果 */
#snowflakes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: snowfall linear infinite;
    opacity: 0.8;
}

@keyframes snowfall {
    0% { transform: translateY(-10px); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(100vh); opacity: 0.8; }
}

/* 许愿互动功能样式 */
.wish-container {
    background: #fff5f7;
    padding: 40px;
    border-radius: 20px;
    border: 3px solid white;
    animation: slideInUp 0.8s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.2);
}

.wish-input-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

#wishInput {
    width: 100%;
    padding: 25px;
    border: 3px solid rgba(255, 182, 193, 0.8);
    border-radius: 20px;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    resize: vertical;
    min-height: 140px;
    max-height: 220px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 247, 0.95) 100%);
    color: #333;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: inset 0 4px 12px rgba(255, 182, 193, 0.15), 0 8px 25px rgba(255, 182, 193, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

#wishInput::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 1s;
    z-index: 1;
}

#wishInput:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: inset 0 4px 12px rgba(255, 105, 180, 0.3), 0 0 40px rgba(255, 105, 180, 0.5), 0 8px 30px rgba(255, 105, 180, 0.3);
    animation: inputGlow 1.5s ease-in-out infinite alternate;
    transform: translateY(-3px);
}

#wishInput::placeholder {
    color: #ffb6c1;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-style: italic;
}

#wishInput:focus::placeholder {
    opacity: 0.5;
    transform: translateX(10px);
}

@keyframes inputGlow {
    0% {
        box-shadow: inset 0 4px 12px rgba(255, 105, 180, 0.3), 0 0 40px rgba(255, 105, 180, 0.5), 0 8px 30px rgba(255, 105, 180, 0.3);
    }
    100% {
        box-shadow: inset 0 4px 12px rgba(255, 105, 180, 0.4), 0 0 60px rgba(255, 105, 180, 0.7), 0 8px 40px rgba(255, 105, 180, 0.5);
    }
}

.wish-btn {
    background: linear-gradient(135deg, #ffb6c1 0%, #ff69b4 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 4px solid white;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: bounce 0.8s ease-out;
    animation-delay: 0.7s;
    animation-fill-mode: both;
}

.wish-btn:hover {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.5), 0 0 50px rgba(255, 105, 180, 0.4);
    animation: bounce 0.5s ease, glow 1.5s ease-in-out infinite alternate;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
}

.wish-btn:active {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.6), 0 0 30px rgba(255, 105, 180, 0.5);
}

.wish-btn:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffb6c1, #ff69b4, #ff1493, #ffb6c1);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wish-btn:hover:before {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

.wish-count {
    position: absolute;
    bottom: -30px;
    right: 10px;
    color: #ff69b4;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.wish-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.wish-btn-secondary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border-color: white;
}

.wish-btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.wish-btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    margin-top: 20px;
}

.saved-wishes-list {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.1);
    border: 3px solid #ffb6c1;
    display: none;
}

.saved-wishes-list.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.saved-wishes-title {
    font-size: 1.8rem;
    color: #ff69b4;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Caveat', cursive;
}

.wishes-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.wish-item {
    background: rgba(255, 182, 193, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #ff69b4;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: #333;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
}

.wish-item:hover {
    background: rgba(255, 182, 193, 0.2);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.wish-date {
    font-size: 0.8rem;
    color: #ff69b4;
    margin-top: 5px;
    font-family: 'Arial', sans-serif;
    opacity: 0.8;
}

.wishes-list::-webkit-scrollbar {
    width: 8px;
}

.wishes-list::-webkit-scrollbar-track {
    background: rgba(255, 182, 193, 0.2);
    border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb:hover {
    background: #ff1493;
}

.wish-display {
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.wish-message {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 247, 0.95) 100%);
    padding: 35px 40px;
    border-radius: 25px;
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: #ff69b4;
    line-height: 1.7;
    max-width: 85%;
    text-align: center;
    opacity: 0;
    transform: scale(0.85) translateY(30px) rotate(-2deg);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    border: 3px solid rgba(255, 105, 180, 0.6);
    box-shadow: 0 12px 40px rgba(255, 182, 193, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.wish-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 1s;
}

.wish-message:hover::before {
    left: 100%;
}

.wish-message.show {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
    animation: float 3s ease-in-out infinite, wishGlow 2s ease-in-out infinite alternate;
}

@keyframes wishGlow {
    0% { box-shadow: 0 12px 40px rgba(255, 182, 193, 0.2), 0 0 20px rgba(255, 105, 180, 0.3); }
    100% { box-shadow: 0 15px 50px rgba(255, 182, 193, 0.4), 0 0 40px rgba(255, 105, 180, 0.6); }
}

.wish-stars {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.wish-stars.show {
    opacity: 1;
    transform: translateY(0);
}

.star {
    font-size: 2rem;
    color: #ffd700;
    animation: starTwinkle 2s ease-in-out infinite, starFloat 3s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    position: relative;
}

.star:nth-child(1) { animation-delay: 0s, 0.2s; }
.star:nth-child(2) { animation-delay: 0.3s, 0.5s; }
.star:nth-child(3) { animation-delay: 0.6s, 0.8s; }
.star:nth-child(4) { animation-delay: 0.9s, 1.1s; }
.star:nth-child(5) { animation-delay: 1.2s, 1.4s; }

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
    50% { 
        opacity: 0.3; 
        transform: scale(1.3) rotate(180deg);
        text-shadow: 0 0 25px rgba(255, 215, 0, 1), 0 0 50px rgba(255, 215, 0, 0.8);
    }
}

@keyframes starFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes starFall {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(-80px) translateX(20px) rotate(45deg) scale(1.2);
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: translateY(50vh) translateX(100px) rotate(180deg) scale(1);
        opacity: 0.8;
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
    100% {
        transform: translateY(100vh) translateX(200px) rotate(360deg) scale(0.5);
        opacity: 0;
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 20px 40px rgba(255, 105, 180, 0.5), 0 0 50px rgba(255, 105, 180, 0.4);
    }
    to {
        box-shadow: 0 20px 40px rgba(255, 105, 180, 0.7), 0 0 80px rgba(255, 105, 180, 0.6);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes inputPulse {
    0% {
        box-shadow: inset 0 3px 10px rgba(255, 105, 180, 0.2), 0 0 30px rgba(255, 105, 180, 0.4);
    }
    50% {
        box-shadow: inset 0 3px 10px rgba(255, 105, 180, 0.3), 0 0 50px rgba(255, 105, 180, 0.6);
    }
    100% {
        box-shadow: inset 0 3px 10px rgba(255, 105, 180, 0.2), 0 0 30px rgba(255, 105, 180, 0.4);
    }
}

.falling-star {
    position: absolute;
    color: #ffd700;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 10;
    animation: starFall 3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    transform-origin: center;
}

.falling-star i {
    display: inline-block;
    transform: rotate(45deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .wish-content {
        padding: 30px 20px;
    }
    
    .wish-text h2 {
        font-size: 1.5rem;
    }
    
    .wish-text p {
        font-size: 1rem;
    }
    
    .surprise-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .heart-img {
        width: 150px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        padding: 20px;
    }
    
    .letter {
        padding: 30px 20px;
    }
    
    .letter-content p {
        font-size: 1rem;
    }
    
    .heart-button {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20% auto;
    }
    
    .modal-content h2 {
        font-size: 1.8rem;
    }
    
    .modal-image img {
        width: 150px;
    }
    
    /* 装饰元素响应式调整 */
    .modal-decoration {
        font-size: 1.5rem;
    }
    
    .modal-decoration.star {
        font-size: 1.2rem;
    }
    
    .modal-decoration.butterfly {
        font-size: 1.4rem;
    }
    
    /* 消息文本响应式调整 */
    .modal-text {
        font-size: 1rem;
        margin: 8px 0;
    }
    
    .modal-text.greeting,
    .modal-text.love {
        font-size: 1.3rem;
    }
    
    .modal-text.highlight {
        font-size: 1.2rem;
    }
    
    /* 气球响应式调整 */
    .balloons {
        gap: 10px;
    }
    
    .balloon {
        width: 45px;
        height: 65px;
    }
    
    /* 交互元素响应式调整 */
    .modal-heart {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .interaction-text {
        font-size: 0.9rem;
    }
    
    .controls {
        gap: 10px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .wish-content {
        padding: 25px 15px;
    }
    
    .heart-img {
        width: 120px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 弹窗响应式优化 */
    .modal-content {
        padding: 25px 15px;
        margin: 25% auto;
        width: 95%;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    /* 弹窗装饰元素优化 */
    .modal-decoration.star-3, .star-4, .star-5, .butterfly-2 {
        display: none;
    }
    
    /* 消息区域优化 */
    .modal-message {
        padding: 20px 15px;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    /* 气球优化 */
    .balloon {
        width: 40px;
        height: 60px;
    }
    
    .balloon::before {
        height: 60px;
    }
    
    /* 按钮优化 */
    .heart-button.modal-heart {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    /* 文本优化 */
    .modal-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .modal-text.greeting, .modal-text.love {
        font-size: 1.2rem;
    }
    
    .balloons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .balloon {
        width: 40px;
        height: 60px;
    }
    
    /* 弹窗在极小屏幕上的额外调整 */
    .modal-content {
        padding: 25px 15px;
        margin: 25% auto;
        width: 95%;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .modal-content::-webkit-scrollbar-track {
        background: rgba(255, 182, 193, 0.1);
        border-radius: 10px;
    }
    
    .modal-content::-webkit-scrollbar-thumb {
        background: rgba(255, 105, 180, 0.5);
        border-radius: 10px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
        margin: 15px 0;
    }
    
    .modal-image img {
        width: 100px;
        margin: 10px 0;
    }
    
    .modal-message {
        max-height: 300px;
        overflow-y: auto;
        padding: 10px;
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .modal-message::-webkit-scrollbar {
        width: 3px;
    }
    
    .modal-text {
        font-size: 0.9rem;
        margin: 5px 0;
        line-height: 1.4;
    }
    
    .modal-text.greeting,
    .modal-text.love {
        font-size: 1.1rem;
        margin: 8px 0;
    }
    
    .modal-text.highlight {
        font-size: 1.05rem;
        margin: 7px 0;
    }
    
    .modal-text.memory,
    .modal-text.compliment,
    .modal-text.future,
    .modal-text.blessing {
        font-size: 0.85rem;
    }
    
    .modal-decoration {
        font-size: 1rem;
    }
    
    .modal-decoration.star {
        font-size: 0.8rem;
    }
    
    .modal-decoration.butterfly {
        font-size: 1rem;
    }
    
    /* 隐藏部分装饰元素以节省空间 */
    .modal-decoration.star-3,
    .modal-decoration.star-4,
    .modal-decoration.star-5,
    .modal-decoration.butterfly-2 {
        display: none;
    }
    
    .modal-heart {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin: 15px 0 10px;
    }
    
    .interaction-text {
        font-size: 0.8rem;
        margin: 5px 0 15px;
    }
    
    /* 优化气球在小屏幕上的显示 */
    .balloons {
        margin-top: 15px;
    }
    
    .balloon {
        width: 35px;
        height: 50px;
    }
    
    @keyframes balloonFloat {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
}