/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 爱心背景动画 */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #e91e63;
    transform: rotate(45deg);
    animation: float 3s ease-in-out infinite;
    opacity: 0.6;
}

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

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
        opacity: 1;
    }
}

/* 页面头部 */
.header {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.title {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* 图片展示区 */
.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 225px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 时间线 */
.timeline {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    color: #e91e63;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e91e63;
    margin: 10px auto 0;
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    color: #e91e63;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.date {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: bold;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.duration-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #444;
    text-align: center;
}

.duration-label {
    font-weight: bold;
    color: #e91e63;
    margin-right: 10px;
}

.duration-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.years-highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e91e63;
}

.years-unit {
    font-size: 1.2rem;
    color: #e91e63;
    font-weight: bold;
}

.months-days {
    font-size: 0.9rem;
    color: #888;
    opacity: 0.8;
}

.total-days {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-left: 10px;
}

.stats p {
    font-size: 1.1rem;
    color: #444;
}

.anniversary.hidden {
    display: none;
}

.label {
    font-weight: bold;
    color: #e91e63;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    color: #e91e63;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .gallery {
        gap: 15px;
    }
    
    .gallery-item {
        width: 250px;
        height: 187px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.5rem;
    }
    
    .stats {
        gap: 10px;
    }
    
    .stats p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .gallery-item {
        width: 200px;
        height: 150px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
}