/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 背景样式 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    z-index: -1;
    opacity: 0.9;
}

/* 爱心动画容器 */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 标题区域 */
.header {
    text-align: center;
    padding: 40px 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.title {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: fadeIn 1.5s ease-in-out;
}

.subtitle {
    font-size: 1.5rem;
    animation: fadeIn 2s ease-in-out;
}

/* 心跳动画 */
.heartbeat {
    animation: heartbeat 1.5s infinite;
    color: #e74c3c;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 祝福语区域 */
.message-section {
    margin: 40px 0;
}

.message-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    animation: fadeIn 2.5s ease-in-out;
}

.message-content p {
    font-size: 1.8rem;
    color: #e74c3c;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* 相册区域 */
.gallery-section {
    margin: 60px 0;
}

.section-title {
    text-align: center;
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* 倒计时区域 */
.countdown-section {
    margin: 60px 0;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.countdown-item span {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #e74c3c;
}

.countdown-item p {
    font-size: 1.2rem;
    color: #333;
    margin-top: 10px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2.2rem;
    }
    
    .message-content p {
        font-size: 1.4rem;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        padding: 15px 20px;
    }
    
    .countdown-item span {
        font-size: 2rem;
    }
}