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

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ffc3d9;
    --accent-color: #c44569;
    --bg-light: #fff5f7;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ffd6e3;
    --shadow: 0 4px 6px rgba(255, 107, 157, 0.1);
    --shadow-hover: 0 8px 15px rgba(255, 107, 157, 0.2);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

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

/* 头部样式 */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 2rem 0 1rem;
    box-shadow: var(--shadow);
}

.header-content {
    margin-bottom: 1.5rem;
}

.site-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.95;
}

/* 导航样式 */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 主要内容 */
.main-content {
    min-height: calc(100vh - 300px);
}

/* Hero 区域 */
.hero {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), var(--bg-light)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,0 600,60 T1200,60 L1200,120 L0,120 Z" fill="%23fff5f7"/></svg>');
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.heart-icon {
    font-size: 4rem;
    animation: heartbeat 1.5s infinite;
    margin-bottom: 1rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

.hero h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.date-display {
    margin-top: 2rem;
}

.date-display p {
    font-size: 1rem;
    color: var(--text-light);
}

.days-counter {
    font-size: 4rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Noto Serif SC', serif;
    margin: 0.5rem 0;
}

.days-label {
    font-size: 1.5rem;
    color: var(--text-light);
}

/* 功能卡片网格 */
.features {
    padding: 4rem 2rem;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* 引用区域 */
.quote {
    background: linear-gradient(135deg, var(--secondary-color), var(--bg-light));
    padding: 4rem 2rem;
    text-align: center;
}

.quote blockquote {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.8;
}

.quote-author {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* 页面特定样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.page-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    background: var(--bg-white);
    margin: 2rem auto;
    padding: 3rem 2rem;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 2rem);
}

.timeline-content {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: 'Noto Serif SC', serif;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* 相册网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--secondary-color), var(--border-color));
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* 邀请函样式 */
.invitation-card {
    background: var(--bg-white);
    max-width: 700px;
    margin: 2rem auto;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
    border: 3px solid var(--border-color);
    text-align: center;
}

.invitation-card h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.couple-names {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin: 2rem 0;
}

.event-details {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.detail-item {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.detail-label {
    font-weight: 600;
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* 日常记录样式 */
.moment-card {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.moment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.moment-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.moment-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.moment-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.moment-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.moment-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--secondary-color), var(--border-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* 底部样式 */
.main-footer {
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .days-counter {
        font-size: 3rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .invitation-card {
        padding: 2rem 1.5rem;
    }
    
    .couple-names {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* 右下角音乐播放器容器 */
.music-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.music-player-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* 播放器标题栏 */
.player-header {
    /* background: rgba(0, 0, 0, 0.8); */
    background: #ec8585;
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.player-title {
    display: flex;
    align-items: center;
}

.player-title i {
    margin-right: 8px;
    color: #ff6b6b;
}

.close-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ff6b6b;
}

/* 播放器iframe样式调整 */
.music-player-iframe {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* 展开/收起按钮 */
.toggle-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.toggle-player:hover {
    background: #ff5252;
    transform: scale(1.1);
}