* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b81;
    --secondary-color: #ff4757;
    --text-color: #2f3542;
    --light-color: #f1f2f6;
    --accent-color: #ff9ff3;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Serif SC', serif;
    background: linear-gradient(135deg, #fff0f5, #ffeef8, #fff0f5);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 心形动画 */
.heart-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.heart {
    position: relative;
    width: 50px;
    height: 45px;
    background-color: var(--primary-color);
    transform: rotate(-45deg);
    animation: heartbeat 1.2s infinite;
}

.heart:before,
.heart:after {
    content: "";
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
}

.heart:before {
    top: -25px;
    left: 0;
}

.heart:after {
    top: 0;
    right: -25px;
}

@keyframes heartbeat {
    0% {
        transform: rotate(-45deg) scale(0.8);
    }
    5% {
        transform: rotate(-45deg) scale(0.9);
    }
    10% {
        transform: rotate(-45deg) scale(0.8);
    }
    15% {
        transform: rotate(-45deg) scale(1);
    }
    50% {
        transform: rotate(-45deg) scale(0.8);
    }
    100% {
        transform: rotate(-45deg) scale(0.8);
    }
}

/* 标题样式 */
header {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

header:before {
    content: "";
    position: absolute;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    font-weight: 300;
}

/* 计时器样式 */
.time-counter {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 2rem;
    margin: 4rem 0;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.time-counter:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    top: 0;
    left: 0;
}

.time-counter h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.counter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.time-box {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
}

.time-box span {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.time-box p {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--text-color);
}

/* 记忆区域 */
.memory {
    margin: 4rem 0;
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
}

.memory:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1518199266791-5375a83190b7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    top: 0;
    left: 0;
    z-index: -1;
}

.memory-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.memory h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.memory p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
    position: relative;
}

.highlight:after {
    content: "";
    position: absolute;
    height: 8px;
    width: 100%;
    background-color: rgba(255, 107, 129, 0.2);
    bottom: 0;
    left: 0;
    z-index: -1;
}

.memory-quote {
    margin: 2rem auto;
    max-width: 80%;
    position: relative;
}

blockquote {
    font-style: italic;
    padding: 1rem 2rem;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0 10px 10px 0;
}

/* 照片墙 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.photo {
    height: 250px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.photo1 {
    background-image: url('https://images.unsplash.com/photo-1522264174481-bb7c7962e1e8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.photo2 {
    background-image: url('https://images.unsplash.com/photo-1516589091380-5d8e87df6999?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.photo3 {
    background-image: url('https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
}

footer:before {
    content: "";
    position: absolute;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

footer p {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.love-quote {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .counter {
        gap: 1rem;
    }
    
    .time-box {
        width: 90px;
        height: 90px;
    }
    
    .time-box span {
        font-size: 2.2rem;
    }
    
    .memory-quote {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .counter {
        gap: 0.8rem;
    }
    
    .time-box {
        width: 70px;
        height: 70px;
    }
    
    .time-box span {
        font-size: 1.8rem;
    }
}

/* 额外的装饰元素 */
.container:before,
.container:after {
    content: "♥";
    position: fixed;
    color: rgba(255, 107, 129, 0.1);
    font-size: 10rem;
    z-index: -1;
}

.container:before {
    top: 10%;
    left: 5%;
}

.container:after {
    bottom: 10%;
    right: 5%;
} 