/* 基础样式 */
:root {
    --primary-color: #3d5a80;
    --secondary-color: #98c1d9;
    --accent-color: #ee6c4d;
    --light-color: #f7f9fb;
    --dark-color: #293241;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.menu a:hover {
    color: var(--primary-color);
}

.menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* 英雄区 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
                url('https://via.placeholder.com/1920x1080/e8f4f8/ffffff?text=Shinichi+&+Ran') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 2s ease;
}

.names {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.date {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: 300;
}

.countdown {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.countdown > div {
    margin: 0 15px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 10px;
    border-radius: 5px;
    min-width: 80px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.countdown span {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.countdown p {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-top: 5px;
}

/* 我们的故事 */
.story {
    padding: 100px 0;
    background-color: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    top: 20px;
}

.timeline-item:nth-child(odd)::before {
    right: -14px;
}

.timeline-item:nth-child(even)::before {
    left: -14px;
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content .date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

/* 婚礼详情 */
.details {
    padding: 100px 0;
    background-color: #f7f9fb;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.detail-card {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.detail-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.detail-card p {
    margin-bottom: 10px;
    color: #666;
}

.detail-card .btn-small {
    margin-top: 15px;
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.detail-card .btn-small:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 引用 */
.quote {
    padding: 80px 0;
    background: linear-gradient(rgba(61, 90, 128, 0.85), rgba(61, 90, 128, 0.85)), 
                url('https://via.placeholder.com/1920x600/e8f4f8/ffffff?text=Love') center/cover fixed no-repeat;
    text-align: center;
}

blockquote {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 2rem;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.5;
    position: relative;
}

blockquote::before,
blockquote::after {
    content: '"';
    font-size: 4rem;
    position: absolute;
    opacity: 0.3;
}

blockquote::before {
    top: -20px;
    left: -20px;
}

blockquote::after {
    content: '"';
    bottom: -60px;
    right: -20px;
}

/* 相册 */
.gallery {
    padding: 100px 0;
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* RSVP */
.rsvp {
    padding: 100px 0;
    background-color: #f7f9fb;
}

.rsvp-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(152, 193, 217, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.rsvp-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.social-links {
    margin: 30px 0;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    .menu.active {
        right: 0;
    }
    
    .menu li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1002;
    }
    
    .names {
        font-size: 2.5rem;
    }
    
    .countdown > div {
        margin: 0 10px;
        min-width: 60px;
    }
    
    .countdown span {
        font-size: 1.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::before {
        left: 16px;
    }
    
    .timeline-item:nth-child(odd)::before {
        right: auto;
        left: 16px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: 16px;
    }
    
    blockquote {
        font-size: 1.5rem;
    }
    
    .rsvp-form {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    .names {
        font-size: 2rem;
    }
    
    .date {
        font-size: 1.2rem;
    }
    
    .countdown > div {
        margin: 0 5px;
        padding: 10px 5px;
        min-width: 50px;
    }
    
    .countdown span {
        font-size: 1.2rem;
    }
    
    .countdown p {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    blockquote {
        font-size: 1.2rem;
    }
}
