/* 主页面内容 */
.main-content {
    background: white;
    min-height: 100vh;
    padding: 0;
    position: relative;
}

/* 统一颜色变量 */
:root {
    --primary-red: #e74c3c;
    --dark-red: #c0392b;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --gold: rgb(255, 224, 148);
}

/* 爱情宣言部分 */
.love-declaration {
    padding: 20px 15px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

/* 诗句容器 - 左右排列 */
.poetry-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 5px;
}

.poetry-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-style: italic;
    font-size: 9px;
    line-height: 1.8;
    color: var(--text-light);
    width: 48%;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.poetry-top.right {
    align-items: flex-end;
}

.poetry-top p {
    margin: 0;
}

.married-title {
    font-size: 36px;
    color: var(--primary-red);
    margin: 20px 0;
    font-style: normal;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.couple-photo-container {
    margin: 20px 0 10px;
    padding: 0;
    display: inline-block;
}

.love-declaration .couple-photo {
    width: 280px;
    height: 200px;
    display: block;
    object-fit: cover;
    animation: none;
    opacity: 1 !important;
    transform: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.date-outer {
    background-color: var(--primary-red);
    padding: 0 2px;
    display: inline-block;
    margin: 15px 0;
}

.date-inner {
    background-color: white;
    padding: 5px 35px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    text-align: center;
    letter-spacing: 2px;
}

.love-quotes {
    margin: 20px 0;
    line-height: 2.2;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-gray);
    font-family: 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.love-quote-english {
    font-style: italic;
    font-size: 13px;
    color: var(--text-gray);
    margin: 30px 0;
    letter-spacing: 1px;
    line-height: 1.8;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Born Free文字样式 */
.born-free-text {
    margin: 30px 15px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: var(--primary-red);
    letter-spacing: 2px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.born-free-text p {
    margin: 0;
}

/* 中文邀请文字样式 */
.chinese-invitation-text {
    margin: 30px 15px;
    text-align: center;
    font-size: 14px;
    line-height: 2.5;
    font-weight: 300;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.chinese-invitation-text p {
    margin: 0;
}

/* 新增图片样式 */
.full-width-image-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.full-width-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* 新人照片介绍部分 */
.lover-introduction {
    background: white;
    padding: 30px 15px;
    text-align: center;
    opacity: 1 !important;
}

/* 确保所有子元素都显示 */
.lover-introduction * {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

/* My lover标题 */
.my-lover-title {
    font-size: 36px;
    color: var(--primary-red);
    margin: 0 0 30px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 300;
    letter-spacing: 2px;
}

/* 新人照片展示 */
.couple-photos-section {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.couple-photo-item {
    width: 48%;
    max-width: 400px;
    position: relative;
}

.couple-photo-wrapper {
    padding: 0;
    border-radius: 0;
    position: relative;
}

.couple-photo {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* 新人信息 */
.couple-info-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* GROOM ❤ BRIDE标题 */
.couple-title {
    font-size: 22px;
    color: var(--primary-red);
    margin: 30px 0;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.heart-symbol {
    margin: 0 15px;
    font-size: 18px;
}

/* 新人名字 */
.couple-names {
    display: flex;
    justify-content: space-around;
    margin: 25px 0 15px;
    font-size: 22px;
    color: var(--text-dark);
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

/* 新人微信 */
.couple-wechat {
    text-align: center;
    margin: 15px 0 40px;
    font-size: 13px;
    color: var(--text-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.wechat-separator {
    color: var(--text-light);
    margin: 0 8px;
}

/* 新人引用文字 */
.couple-quote {
    margin: 40px 0;
    text-align: center;
    font-size: 15px;
    line-height: 2.2;
    font-weight: 300;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.couple-quote p {
    margin: 0;
}

/* 英文引用 */
.english-quotes {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 35px 0;
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.left-quote,
.right-quote {
    display: flex;
    flex-direction: column;
    width: 48%;
    line-height: 1.8;
}

.left-quote {
    align-items: flex-start;
}

.right-quote {
    align-items: flex-end;
}

.left-quote p,
.right-quote p {
    margin: 0;
    font-size: 9px;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* 大图片部分 */
.big-photo-section {
    margin: 50px 0;
    text-align: center;
}

.big-couple-photo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.big-photo-text {
    margin: 15px 0;
    text-align: center;
}

.big-photo-text p {
    margin: 0;
    font-size: 13px;
    color: var(--primary-red);
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 1px;
}

/* Love you Forever部分 */
.love-forever-section {
    margin: 60px 0;
    padding: 0;
}

.love-forever-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
}

.love-forever-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0 30px;
}

.forever-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.love-forever-text {
    text-align: center;
    padding: 40px 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.forever-title {
    margin: 0;
    font-size: 36px;
    color: var(--dark-red);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.1;
    display: inline-block;
}

/* 爱情引用部分 */
.love-quote-section {
    padding: 50px 20px;
    margin: 0;
    background: linear-gradient(to bottom, transparent 0%, #fef9f5 50%, transparent 100%);
}

.chinese-love-quote {
    width: 100%;
    text-align: center;
    font-size: 16px;
    line-height: 2.2;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    margin-bottom: 25px;
}

.english-love-quote {
    width: 100%;
    text-align: center;
    font-size: 13px;
    line-height: 2;
    color: var(--text-gray);
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.chinese-love-quote p,
.english-love-quote p {
    margin: 5px 0;
}

/* 浪漫照片部分 */
.romantic-section {
    margin: 50px 0;
    text-align: center;
}

.romantic-photo-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.romantic-photo {
    width: 100%;
    height: auto;
    display: block;
}

.romantic-text {
    padding: 40px 20px;
    text-align: center;
    background: white;
}

.romantic-english {
    margin-bottom: 25px;
    font-style: italic;
    font-size: 13px;
    color: var(--text-gray);
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 1px;
    line-height: 1.8;
}

.romantic-chinese {
    font-size: 15px;
    line-height: 2.2;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.romantic-english p,
.romantic-chinese p {
    margin: 5px 0;
}

/* 爱情日期部分 */
.love-date-section {
    margin: 50px 0;
    text-align: center;
    padding: 0 15px;
}

.love-date-content {
    max-width: 100%;
    margin: 0 auto;
}

.love-date-image {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 200px 200px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.love-date-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.date-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 200px 200px 0 0;
}

.love-date-quote {
    margin: 40px 0;
    text-align: center;
}

.date-chinese-quote {
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 2;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.date-chinese-quote p {
    white-space: nowrap;
    margin: 0;
}

.date-english-quote {
    font-style: italic;
    font-size: 11px;
    line-height: 1.8;
    color: var(--text-gray);
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

.date-english-quote p {
    white-space: nowrap;
    margin: 0;
}

.date-chinese-quote p,
.date-english-quote p {
    margin: 5px 0;
}

/* Save the date部分 */
.save-the-date-section {
    margin: 50px 0;
    padding: 0 15px;
    text-align: center;
}

.save-the-date-content {
    max-width: 100%;
    margin: 0 auto;
}

/* 标题 */
.save-the-date-title {
    font-size: 42px;
    color: var(--primary-red);
    margin: 30px 0 15px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 300;
    letter-spacing: 2px;
}

.save-the-date-subtitle {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 35px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

/* 倒计时 */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.countdown-item {
    background-color: #8B4513;
    color: white;
    padding: 12px 10px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 70px;
    transition: none;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 215, 0, 0.15) 1px, transparent 1px);
    background-size: 15px 15px;
    pointer-events: none;
}

.countdown-number {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', sans-serif;
    letter-spacing: 1px;
}

.countdown-label {
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    font-weight: 500;
}

/* 地图 */
.map-container {
    margin: 35px 15px;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.map-placeholder {
    background: white;
    padding: 0;
    text-align: center;
    border: 1px solid #f0f0f0;
    position: relative;
}

.map-content {
    padding: 40px 20px 35px;
}

.map-header {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.map-venue {
    font-size: 28px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.map-detail-address {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 2.2;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    font-weight: 400;
}

.map-divider {
    width: 50px;
    height: 1px;
    background: var(--primary-red);
    margin: 25px auto;
}

.map-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: var(--primary-red);
    padding: 12px 32px;
    border: 1px solid var(--primary-red);
    border-radius: 0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.map-nav-button:active {
    background: var(--primary-red);
    color: white;
}

.map-nav-icon {
    font-size: 16px;
}

.wedding-map {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}

/* 婚礼信息 */
.wedding-info {
    margin: 35px 0;
    font-size: 15px;
    line-height: 2.2;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    font-weight: 400;
}

.wedding-info p {
    margin: 5px 0;
}

/* 大图片部分 */
.final-photo-section {
    margin: 50px 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.final-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* 婚礼文字部分 */
.wedding-text-section {
    margin: 50px 0;
    padding: 0 20px;
    text-align: center;
}

.wedding-text-content {
    max-width: 100%;
    margin: 0 auto;
    font-size: 15px;
    line-height: 2.2;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    font-weight: 400;
}

.wedding-text-content p {
    margin: 5px 0;
}

/* 结尾GIF */
.final-gif-container {
    padding: 0;
    text-align: center;
}

.final-gif {
    width: 60%;
    height: auto;
    display: inline-block;
}

/* 结尾信息 */
.final-message {
    margin: 50px 0 30px;
    padding: 0 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.miss-text {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 400;
    line-height: 2.2;
}

.see-you {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 2.2;
}

.final-message p {
    margin: 5px 0;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .married-title,
    .my-lover-title,
    .save-the-date-title {
        font-size: 32px;
    }
    
    .forever-title {
        font-size: 32px;
    }
    
    .calendar-month {
        font-size: 28px;
    }
    
    .couple-photo-container {
        margin: 15px 0 8px;
    }
    
    .love-declaration .couple-photo {
        width: 250px;
        height: 180px;
    }
}

/* 懒加载样式 */
.lazy-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 当JavaScript加载完成后的懒加载效果 */
.js-loaded .lazy-section {
    opacity: 0;
    transform: translateY(30px);
}

.js-loaded .lazy-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 图片懒加载样式 */
.lazy-image {
    background: #f5f5f5;
    transition: opacity 0.3s ease;
}

.lazy-loading {
    opacity: 0.7;
    filter: blur(2px);
}

.lazy-image.loaded {
    opacity: 1;
    filter: blur(0);
}

.lazy-image.error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* 首屏内容优化 */
.hero-section {
    opacity: 1;
    transform: none;
}

.love-declaration.lazy-section {
    transition-delay: 0.1s;
}

.full-width-image-container.lazy-section {
    transition-delay: 0.2s;
}

.born-free-text.lazy-section {
    transition-delay: 0.3s;
}

.chinese-invitation-text.lazy-section {
    transition-delay: 0.4s;
}

.lover-introduction.lazy-section {
    transition-delay: 0.5s;
}

.romantic-section.lazy-section {
    transition-delay: 0.6s;
}

.love-date-section.lazy-section {
    transition-delay: 0.7s;
}

.save-the-date-section.lazy-section {
    transition-delay: 0.8s;
}

.final-photo-section.lazy-section {
    transition-delay: 0.9s;
}

.wedding-text-section.lazy-section {
    transition-delay: 1.0s;
}

.final-message.lazy-section {
    transition-delay: 1.1s;
}
