:root {
    --primary-color: #f5b6c1;  /* 更柔和的粉色 */
    --secondary-color: #4a5568; /* 更现代的深灰色 */
    --accent-color: #ffd700;    /* 金色点缀 */
    --text-color: #2d3748;
    --light-bg: #fff5f7;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #ffffff;
}

.main-nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 2rem;
}

.main-nav li {
    margin: 0 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav a:hover::after {
    width: 100%;
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
                url('../images/bg1.jpg') center/cover;
    padding: 2rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 100%);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

.wedding-date {
    background: rgba(255,255,255,0.95);
    padding: 3rem;
    border-radius: 16px;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.venue {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.rsvp-section {
    padding: 8rem 2rem;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245,182,193,0.2);
}

.checkbox-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 3rem;
    background: var(--secondary-color);
    color: white;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 0.5rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .wedding-date {
        padding: 2rem;
    }
    
    .rsvp-form {
        padding: 2rem;
    }
    
    .timeline-item .content {
        width: 90%;
        margin: 2rem auto;
    }
    
    .timeline-item:nth-child(odd) .content,
    .timeline-item:nth-child(even) .content {
        margin-left: auto;
        margin-right: auto;
    }
} 

.story-section {
    padding: 5rem 2rem;
    background: white;
}

.timeline {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.timeline-item .date {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(245,182,193,0.3);
}

.timeline-item .content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 45%;
    margin-top: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(245,182,193,0.2);
}

.timeline-item:nth-child(odd) .content {
    margin-right: 55%;
}

.timeline-item:nth-child(even) .content {
    margin-left: 55%;
}

.timeline-item .content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-section {
    padding: 8rem 2rem;
    background: url('../images/bg3.jpg') center/cover;
    position: relative;
}

.gallery-overlay {
    background: linear-gradient(135deg, rgba(245,182,193,0.9), rgba(74,85,104,0.9));
}

.gallery-section h2 {
    position: relative;
    z-index: 2;
    color: white;
}

.gallery-swiper {
    /* max-width: 1200px; */
    /* margin: 3rem auto;
    padding: 2rem 4rem;
    position: relative; */
    width: 100%;
        height: 100%;
}

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    transform: scale(0.8);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    color: white;
    position: relative;
    z-index: 1;
}

/* Swiper 自定义样式 */
.swiper-button-next,
.swiper-button-prev {
    width: 27px;
    height: 48px;
    background: rgba(0, 0, 0, .5);
    border-radius: 2px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 0.8rem !important;
    color: white;
}

.swiper-button-next:hover,
.swiper-button-prev:hover,
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    background: rgba(0, 0, 0, .7);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: rgba(0, 0, 0, .8);
}

@media (max-width: 768px) {
    .gallery-swiper {
        padding: 1rem;
    }

    .swiper-slide {
        width: 240px;
    }

    .swiper-slide-active {
        width: 300px;
    }

    .gallery-card img {
        height: 240px;
    }

    .swiper-slide-active .gallery-card img {
        height: 300px;
    }

    .gallery-caption {
        font-size: 1rem;
        padding: 1rem;
    }
} 

.contact-section {
    padding: 5rem 2rem;
    background: white;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gifts-section {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.gifts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gift-category {
    margin-bottom: 4rem;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gift-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.gift-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gift-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gift-item h4, 
.gift-item p {
    padding: 1rem;
    margin: 0;
}

.gift-link {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gift-link:hover {
    background: var(--secondary-color);
}

.honeymoon-fund {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    margin-top: 2rem;
}

.fund-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.fund-btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fund-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .fund-options {
        flex-direction: column;
    }

    .fund-btn {
        width: 100%;
    }
} 

.bridesmaids-section {
    padding: 5rem 2rem;
    background: white;
}

.bridesmaids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.bridesmaid-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.bridesmaid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.bridesmaid-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.bridesmaid-card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--secondary-color);
}

.bridesmaid-card .role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.bridesmaid-card .description {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
}

.social-links {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.social-links a {
    color: var(--text-color);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.blog-section {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.blog-image {
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.read-more:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .bridesmaids-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
} 