
/* 全局变量 - 浪漫温馨风格 */
:root {
    --primary-color: #ff6b81; /* 柔和粉红 */
    --secondary-color: #ff9eb5; /* 浅粉红 */
    --accent-color: #ffd3e0; /* 极浅粉 */
    --bg-color: #fff0f3; /* 淡粉背景 */
    --surface-color: #ffffff;
    --text-main: #5c2834; /* 深红褐 */
    --text-light: #8e4a5e;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(255, 107, 129, 0.15);
    --font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.love-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 107, 129, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links a {
    margin: 0 15px;
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 107, 129, 0.3);
}

.btn-login:hover {
    background: #ff4757;
    transform: translateY(-2px);
}

/* 英雄区域 */
.hero-banner {
    padding: 80px 0;
    background: linear-gradient(to bottom right, #fff0f3, #ffe0e6);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.tag-love {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-text h1 {
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.counter-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.counter-item {
    background: var(--surface-color);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 100px;
}

.counter-item .num {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.counter-item .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-start {
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 107, 129, 0.3);
}

.btn-start:hover {
    background: #ff4757;
    transform: translateY(-2px);
}

.btn-write {
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: bold;
}

.btn-write:hover {
    background: var(--primary-color);
    color: var(--white);
}

.hero-img-box {
    flex: 1;
}

.hero-img-box img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(255, 107, 129, 0.2);
    border: 5px solid var(--white);
}

/* 通用区块 */
.section-area {
    padding: 80px 0;
}

.bg-pink {
    background: #ffffff;
}

.bg-dark {
    background: var(--primary-color);
    color: var(--white);
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-head h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-head.light h2 {
    color: var(--white);
}

.section-head p {
    color: var(--text-light);
}

.section-head.light p {
    color: #ffe0e6;
}

/* 时光轴 */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '💖';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -15px;
}

.content {
    padding: 20px 30px;
    background-color: var(--surface-color);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.content h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: bold;
}

/* 相册网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

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

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(92, 40, 52, 0.7);
    color: var(--white);
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

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

/* 情书列表 */
.letter-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.letter-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.letter-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.letter-header h3 {
    font-size: 1.2rem;
}

.letter-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

.letter-body p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-read {
    display: inline-block;
    padding: 8px 20px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-read:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* 页脚 */
.site-footer {
    background: #5c2834;
    color: #ffe0e6;
    padding: 60px 0 20px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #8e4a5e;
    font-size: 0.85rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .counter-box {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 15px;
    }

    .left::after, .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
        height: 250px;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
