/* 基础样式 */
html {
    touch-action: pan-y;  /* 只允许垂直滚动 */
    -ms-touch-action: pan-y;
    scroll-behavior: auto !important; /* 禁用原生滚动动画 */
    overscroll-behavior-y: none;
    overflow-x: hidden;

    
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    overscroll-behavior-y: none;
    scroll-behavior: auto; /* 禁用原生滚动 */
}
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #555;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}
/* 新增样式 */
/* 封面页样式 */
body.cover-active {
    overflow: hidden;
    height: 100vh;
}
/* 手写体签名线 */
.handwritten-line {
    width: 120px;
    height: 3px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            #a8d8b9 30%, 
            #a8d8b9 70%, 
            transparent 100%
        );
    margin: 8px auto;
    position: relative;
}

.handwritten-line::after {
    content: "";
    position: absolute;
    right: -5px;
    top: -2px;
    width: 8px;
    height: 8px;
    background: #a8d8b9;
    border-radius: 50%;
    opacity: 0.6;
}
.auto-scroll-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(168, 216, 185, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    pointer-events: auto !important; /* 确保可点击 */
}
.auto-scroll-control:hover {
    background: #a8d8b9;
    transform: scale(1.1);
}

.auto-scroll-control i {
    pointer-events: none; /* 防止图标拦截点击 */
}
.scroll-controls {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.scroll-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(168, 216, 185, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.scroll-control-btn:hover {
    background: #a8d8b9;
    transform: scale(1.1);
}

#scrollControlBtn {
    order: 2; /* 使播放按钮居中 */
}
/* 临时消息样式 */
.temp-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.temp-message.show {
    opacity: 1;

}
/* 修改原有样式 */
#invitationContent {

  position: relative;
     display: block; /* 始终占据布局空间 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* 禁止交互直到完全可见 */
    transform: translateY(30px);
    transform: none; /* 移除初始位移 */
    transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.3s, visibility 0.8s step-end 0.3s;
}

#invitationContent.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* 恢复交互 */
  transition: 
    opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0.8s step-start; /* 立即切换可见性 */
}
/* 邀请函容器 */
.invitation-container {
    
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
     position: static !important;
    transform: none !important;
    
}

/* 封面样式 */
.cover {
    pointer-events: auto;
    position: fixed;
     top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #555;
    overflow: hidden;
     z-index: 100;
    transition: opacity 0.8s ease, visibility 0.8s ease;
     overflow: hidden; /* 防止封面内容滚动 */
}

.cover.hidden {
  opacity: 0;
  visibility: hidden;
}
.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://qn.shiziling.top/zhoualiu/zhoualiu%20%2815%29.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.95);
    z-index: 1;
    transition: all 0.8s ease;

}

.cover-overlay {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform, opacity;
    border-radius: 10px;
    margin: 0 20px;
    backdrop-filter: blur(3px);
}

.cover h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #555;
}

.cover .and {
    font-size: 1.8rem;
    margin: 0 10px;
    color: #a8d8b9;
}

.wedding-date {
    font-size: 1.2rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: #777;
}
/* 添加加载指示器样式 */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}
.open-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #555;
    border: 1px solid #ddd;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(3px);
}

.open-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 内容区域 */
.section {
     position: relative;
    transform: none !important;
    will-change: auto !important;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    will-change: auto !important;
    will-change: transform;
    box-sizing: border-box;
   
}
.section:last-child {
    padding-bottom: 50px;
}

.section.greeting {
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.3s;
}
.section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #a8d8b9;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #d4a373;
    opacity: 0.5;
}

/* 新人资料样式 - 新娘在左，新郎在右 */
.couple-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.bride-profile, .groom-profile {
    text-align: center;
    width: 120px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-size: cover;
    background-position: center;
    border: 3px solid #a8d8b9;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.heart-icon {
    margin: 0 20px;
    color: #ffb6b6;
    font-size: 2rem;
    animation: heartbeat 1.5s infinite;
}

.couple-profile h3 {
    font-size: 1rem;
    color: #888;
    margin-bottom: 5px;
}

.couple-profile .name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
}

/* 邀请卡样式 */
.invitation-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin: 20px auto;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(168, 216, 185, 0.3);
}

.card-decoration {
    position: absolute;
    height: 15px;
    width: 90%;
    left: 5%;
    background: repeating-linear-gradient(
        to right,
        #a8d8b9,
        #a8d8b9 10px,
        transparent 10px,
        transparent 20px
    );
}

.card-decoration.top {
    top: -7px;
}

.card-decoration.bottom {
    bottom: -7px;
}

.card-content h2 {
    color: #a8d8b9;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.divider span {
    height: 1px;
    width: 40px;
    background: linear-gradient(to right, transparent, #a8d8b9, transparent);
}

.divider .left {
    margin-right: 10px;
}

.divider .right {
    margin-left: 10px;
}

.divider i {
    color: #a8d8b9;
    font-size: 1rem;
}

.poem {
    font-style: italic;
    color: #888;
    line-height: 1.8;
    margin: 20px 0;
    font-size: 1rem;
}

.date {
    font-size: 1.2rem;
    color: #555;
    margin: 15px 0 5px;
    font-weight: bold;
}

.location {
    color: #a8d8b9;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.greeting-text {
    margin-top: 20px;
    padding: 0 10px;
}

.greeting-text p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
}

/* 详情区域 */
.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.detail-item i {
    font-size: 1.5rem;
    color: #a8d8b9;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.detail-item p {
    text-align: left;
    flex: 1;
    font-size: 0.95rem;
}

/* 倒计时区域 */
.countdown-timer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.countdown-item {
    margin: 0 8px;
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #a8d8b9;
    min-width: 50px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #f0f0f0;
    border-radius: 5px;
}

.countdown-item small {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* RSVP区域 */
.rsvp-buttons {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.rsvp-btn {
    padding: 12px 25px;
    margin: 0 10px;
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.rsvp-btn.accept {
    background: #a8d8b9;
    color: white;
}

.rsvp-btn.decline {
    background: #f8f9fa;
    color: #888;
    border: 1px solid #eee;
}

.rsvp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rsvp-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}


/* 地图区域 */

.map-placeholder {
    text-align: center;
    color: #888;
}

.map-placeholder i {
    font-size: 3rem;
    color: #a8d8b9;
    margin-bottom: 10px;
}

/* 页脚 */
.footer {
    background: #f9f9f9;
    color: #888;
    padding: 30px 20px;
    border-top: 1px solid #f0f0f0;
     text-align: center;
}

.footer p {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icons a {
    color: #a8d8b9;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ffb6b6;
    transform: translateY(-3px);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .cover-overlay {
        margin: 0 15px;
        padding: 15px;
    }
    
    .cover h1 {
        font-size: 2rem;
    }
    
    .couple-profile {
        flex-direction: row; /* 保持横向排列 */
    }
    
    .heart-icon {
        margin: 0 15px; /* 保持横向间距 */
        transform: none; /* 取消旋转 */
    }
    
    .invitation-card {
        padding: 20px 15px;
        margin: 20px 10px;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .rsvp-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rsvp-btn {
        margin: 5px 0;
        width: 100%;
        max-width: 200px;
    }
}
/* 浪漫短句样式 */
.love-quote {
    position: relative;
    max-width: 90%;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.love-quote p {
    text-align: center;
    margin: 15px 0;
    line-height: 1.6;
}

.love-quote .chinese {
    font-family: 'Ma Shan Zheng', cursive, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 1.4rem;
    color: #e75480;
}

.love-quote .english {
    font-family: 'Dancing Script', cursive, sans-serif;
    font-size: 1.1rem;
    color: #a8d8b9;
    font-style: italic;
}

.quote-decoration {
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,5 Q25,10 50,5 T100,5" fill="none" stroke="%23a8d8b9" stroke-width="0.5"/></svg>') repeat-x;
    opacity: 0.6;
}

.quote-decoration.top {
    margin-bottom: 20px;
}

.quote-decoration.bottom {
    margin-top: 20px;
}

/* 音乐播放器 */
.music-player {
    position: relative; /* 确保波浪动画相对定位 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    max-width: 300px;
    overflow: hidden; /* 防止波浪动画溢出 */
}

.disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    animation: rotate 10s linear infinite;
    animation-play-state: paused;
    margin-right: 20px;
}

.disc-cover {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    top: 10px;
    left: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.8);
}

.disc-center {
    position: absolute;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.music-controls {
    flex: 1;
}

.music-controls p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

#play-btn {
    background: #a8d8b9;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

#play-btn:hover {
    background: #97c7a8;
    transform: scale(1.1);
}

.wave-animation {
    display: inline-flex;
    align-items: center;
    height: 30px;
    margin-left: 15px;
}


.wave-animation span {
    display: none; /* 默认隐藏，播放时显示 */
    width: 3px;
    height: 10px;
    background: #a8d8b9;
    margin: 0 2px;
    border-radius: 3px;
    animation: wave 1.5s ease-in-out infinite;
    animation-play-state: paused;
    vertical-align: middle;
}


.wave-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.wave-animation span:nth-child(3) {
    animation-delay: 0.4s;
}


/* 婚纱照 */
.wedding-photo {
    height: 300px;
    max-width: 100%;
    margin: 20px auto 0;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 5px solid white;
    position: relative;
    overflow: hidden;
}

.wedding-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
}

/* 动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wave {
    0%, 100% { height: 10px; transform: translateY(0); }
    50% { height: 20px; transform: translateY(-5px); }
}
/* 响应式设计 */
@media (max-width: 480px) {
    .love-quote .chinese {
        font-size: 1.2rem;
    }
    
    .love-quote .english {
        font-size: 1rem;
    }
    
    .music-player {
        flex-direction: column;
        text-align: center;
    }
    
    .disc {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .wedding-photo {
        height: 250px;
    }
}
/* 爱情历程 */
.journey {
    background: #fafafa;
    padding: 40px 20px;
}

.journey-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.journey-intro h2 {
    color: #e75480;
    margin-bottom: 15px;
}

.journey-intro p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.8;
}

.scroll-hint {
    margin-top: 30px;
    color: #a8d8b9;
    font-size: 0.9rem;
}

.scroll-hint i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
    animation: bounce 2s infinite;
}

.journey-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.journey-step {
    opacity: 1; /* 改为1避免影响布局计算 */
    transform: none; /* 移除初始位移 */
    transition: opacity 0.6s ease-out;
}

.step-content {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(168, 216, 185, 0.2);
}

.step-text {
    flex: 1;
    padding: 30px;
    text-align: left;
}

.step-text h3 {
    color: #e75480;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 5px;
}

.step-text .date {
    color: #a8d8b9;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.step-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

.step-image {
    width: 40%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.step-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -25px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb6b6;
    font-size: 1.2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

/* 交替布局 */
.journey-step.love .step-content {
    flex-direction: row-reverse;
}

.invitation-end {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.invitation-end p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
}

.invitation-end p:nth-child(2) {
    color: #e75480;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* 响应式设计 */
@media (max-width: 768px) {
    .step-content {
        flex-direction: column !important;
    }
    
    .step-image {
        width: 100%;
        height: 200px;
    }
    
    .step-text {
        padding: 20px;
    }
    
    .journey-step {
        margin-bottom: 40px;
    }
    
    .step-icon {
        bottom: -20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* 竖屏婚纱照展示 */
.portrait-showcase {
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
    padding: 40px 20px;
}

.portrait-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portrait-photo {
    width: 100%;
    max-width: 350px;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 8px solid white;
    position: relative;
    z-index: 1;
    margin-bottom: -50px;
}

.portrait-text {
    background: white;
    width: 90%;
    padding: 70px 30px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    position: relative;
    z-index: 0;
    margin-top: 0;
}

.portrait-text h3 {
    color: #e75480;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 3px;
}

.text-content {
    max-width: 500px;
    margin: 0 auto;
}

.text-content p {
    color: #666;
    line-height: 2;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.signature {
    margin-top: 40px;
    text-align: center;
    font-family: 'Dancing Script', cursive;
}

.signature p {
    color: #a8d8b9;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.divider-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, #a8d8b9, transparent);
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .portrait-photo {
        height: 400px;
        max-width: 280px;
    }
    
    .portrait-text {
        padding: 60px 20px 25px;
        width: 100%;
    }
    
    .portrait-text h3 {
        font-size: 1.5rem;
    }
    
    .text-content p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}
/* 新郎视角 */
.groom-perspective {
    background: white;
    padding: 60px 20px;
}

.perspective-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.groom-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #a8d8b9;
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.perspective-text {
    background: #fafafa;
    padding: 60px 30px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(168,216,185,0.3);
}

.perspective-text h3 {
    color: #5a8b97;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    font-weight: normal;
    letter-spacing: 2px;
}

.perspective-text .text-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.perspective-text .text-content p:before {
    content: "❀";
    color: #a8d8b9;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

.groom-signature {
    margin-top: 30px;
    text-align: right;
    padding-right: 30px;
}

.groom-signature p {
    color: #5a8b97;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.1rem;
    display: inline-block;
    position: relative;
}

.signature-line {
    width: 120px;
    height: auto;
    display: block;
    margin: 5px 0 5px auto;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .perspective-text {
        padding: 50px 20px 25px;
    }
    
    .perspective-text h3 {
        font-size: 1.3rem;
    }
    
    .perspective-text .text-content p {
        font-size: 0.95rem;
        padding-left: 18px;
    }
    
    .groom-signature {
        padding-right: 20px;
    }
}
.section.details {
    padding-bottom: 0 !important;
}

.wedding-calendar {
    font-family: 'Microsoft YaHei', sans-serif;
    max-width: 375px;  /* 改为max-width */
    margin: 0 auto;    /* 添加水平居中 */
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
     position: relative;
    padding-bottom: 80px; /* 给倒计时留出空间 */
}
.table-container {
    display: flex;
    justify-content: center;  /* 表格水平居中 */
}
.calendar-header {
    text-align: center;
    margin-bottom: 15px;
}
.section.map-rsvp {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: auto !important;
}
footer.footer {
    position: relative;
    z-index: 10;
    background: #fff;
    margin-top: -1px; /* 消除空隙 */
}
.rsvp-section {
    padding: 0 20px 40px;
}

.month {
    font-size: 24px;
    color: #c33;
    letter-spacing: 2px;
}

.year {
    font-size: 18px;
    color: #666;
    margin-top: -5px;
}

.calendar-table {
    border-collapse: collapse;
    margin: 15px 0;
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.calendar-table th {
    color: #666;
    font-weight: normal;
    padding: 8px;
}

.calendar-table td {
    text-align: center;
    padding: 10px;
    position: relative;
}

.wedding-day {
    color: #c33;
    font-weight: bold;
    position: relative;
}

.wedding-day:after {
    content: "♥";
    position: absolute;
    right: 2px;
    top: 0;
    font-size: 12px;
    color: #c33;  /* 添加爱心颜色 */
}

.wedding-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.info-item {
    margin: 10px 0;
}

.info-item span {
    color: #999;
    font-size: 14px;
}

.info-item p {
    color: #333;
    margin: 5px 0;
    line-height: 1.5;
}
/* 地图区域 */
.map {
    padding: 40px 20px;
    background: #f9f9f9;
}

.map-container {
    height: 300px;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    position: relative;
}

.map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #888;
    z-index: 1;
}

.map-placeholder i {
    font-size: 2.5rem;
    color: #a8d8b9;
    margin-bottom: 10px;
}

.map-note {
    text-align: center;
    color: #666;
    margin-top: 15px;
    line-height: 1.6;
}


/* 地图覆盖层样式 */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

/* 导航按钮样式 */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 15px;
    background: #a8d8b9;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn:hover {
    background: #97c7a8;
    transform: translateY(-2px);
}

.nav-btn i {
    font-size: 1rem;
}
.amap-btn {
    background: #1AAD19 !important;
    margin-top: 15px;
}
/* 高德地图容器样式 */

/* 地图覆盖层，用于点击事件 */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

/* 高德导航按钮样式 */
.amap-btn {
    background: #1AAD19 !important;
    color: white !important;
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.amap-btn:hover {
    background: #179116 !important;
    transform: translateY(-2px);
}

/* 地图信息窗口样式 */
.map-info-window {
    padding: 5px 10px;
    min-width: 150px;
}

.map-info-window h4 {
    color: #1AAD19;
    margin: 5px 0;
    font-size: 1rem;
}

.map-info-window p {
    color: #666;
    margin: 0;
    font-size: 0.8rem;
}

/* 地图加载提示 */
.map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #888;
    z-index: 1;
}

.map-placeholder i {
    font-size: 2.5rem;
    color: #a8d8b9;
    margin-bottom: 10px;
}
/* 自定义地图标记样式 */
.custom-marker-wedding {
    position: relative;
    width: 30px;
    height: 30px;
}

.custom-marker-wedding .marker-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e75480;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.custom-marker-wedding .marker-icon i {
    color: white;
    transform: rotate(45deg);
    font-size: 14px;
}

.custom-marker-wedding .marker-pulse {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60px;
    height: 60px;
    background: rgba(231, 84, 128, 0.3);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    animation: pulse 2s infinite;
}

/* 自定义信息窗口样式 */
.custom-info-window { /* 自定义样式 */
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.custom-info-window h4 {
    color: #e75480;
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.custom-info-window p {
    color: #666;
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.custom-info-window i {
    color: #a8d8b9;
    margin-right: 5px;
}

.custom-info-window .nav-btn {
    margin-top: 10px;
    padding: 8px 15px;
    background: #1AAD19;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}
/* 在style.css中添加以下样式 */
/* 自定义地图标记样式 - 红色爱心 */
.wedding-marker {
    position: relative;
    width: 30px;
    height: 30px;
}

.wedding-marker .marker-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e75480; /* 红色背景 */
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.wedding-marker .marker-icon i {
    color: white !important; /* 白色爱心图标 */
    transform: rotate(45deg);
    font-size: 14px;
}

.wedding-marker .marker-pulse {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60px;
    height: 60px;
    background: rgba(231, 84, 128, 0.3); /* 红色脉冲效果 */
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    animation: pulse 2s infinite;
}
/* 修复双层边框问题 */
.amap-info-content { /* 高德默认容器 */
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.form-group {
    margin: 15px 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group select {
    appearance: none;
    background: white url('data:image/svg+xml;utf8,<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23a8d8b9" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 8px center;
    background-size: 12px;
}
/* 添加初始透明状态 */
.journey-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
/* 补充完整动画定义 */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
/* 新郎新娘碎碎念 */
.couple-notes {
    padding: 40px 20px;
    background: #fafafa;
    text-align: center;
}

.notes-container {
    max-width: 800px;
    margin: 0 auto;
}

.landscape-photo {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.portrait-photo-notes {
    width: 100%;
    max-width: 350px;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.notes-text {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    line-height: 1.8;
    color: #666;
}

.notes-ending {
    margin-top: 40px;
    font-style: italic;
    color: #e75480;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .landscape-photo {
        height: 200px;
    }
    
    .portrait-photo-notes {
        height: 500px;
    }
    
    .notes-text {
        padding: 20px;
    }
}
#wedding-music {
    display: none; /* 隐藏音频元素 */
}
/* 碎碎念文本装饰样式 */
.notes-text {
    position: relative;
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    line-height: 2;
    color: #666;
    border: 1px solid rgba(168, 216, 185, 0.3);
}

.notes-text::before,
.notes-text::after {
    content: """;
    position: absolute;
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: rgba(231, 84, 128, 0.2);
    line-height: 1;
}

.notes-text::before {
    top: 10px;
    left: 15px;
}

.notes-text::after {
    bottom: -10px;
    right: 15px;
    transform: rotate(180deg);
}

.notes-text p {
    position: relative;
    padding: 0 20px;
    margin-bottom: 20px;
}

.notes-text p:first-child::first-letter {
    font-size: 1.8rem;
    color: #e75480;
    float: left;
    line-height: 1;
    margin-right: 5px;
    font-family: 'Ma Shan Zheng', cursive;
}

.notes-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, #a8d8b9, transparent);
    margin: 25px auto;
}

.notes-highlight {
    color: #e75480;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.flower-decoration {
    text-align: center;
    margin: 20px 0;
    color: #a8d8b9;
    font-size: 1.5rem;
    letter-spacing: 10px;
}

/* 心形背景装饰 */
.notes-bg {
    position: absolute;
    opacity: 0.05;
    z-index: 0;
}

.notes-bg.heart {
    font-size: 5rem;
    color: #e75480;
}

.notes-bg.heart-1 {
    top: 10%;
    left: 10%;
}

.notes-bg.heart-2 {
    bottom: 10%;
    right: 10%;
    transform: rotate(30deg);
}

.notes-content {
    position: relative;
    z-index: 1;
}
/* 在文档1的CSS中添加 */
.scroll-controls {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(168, 216, 185, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.scroll-control-btn:hover {
    background: rgba(168, 216, 185, 1);
    transform: scale(1.1);
}

.scroll-control-btn i {
    font-size: 16px;
}
/* 手写体诗句样式 */
.notes-ending p:first-child,
.notes-ending p:nth-child(2) {
    font-size: 1.4rem;
    position: relative;
    padding: 0 20px;
    font-family: 'Ma Shan Zheng', 'ZCOOL QingKe HuangYou', cursive, sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    margin: 2rem 0;
    color: #e75480;
}

/* 第二句添加特殊装饰 */
.notes-ending p:nth-child(2) {
    margin-top: 30px;
    font-size: 1.3rem;
}

/* 最后一句正式文本样式 */
.notes-ending p:last-child {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 1.1rem;
    color: #5a8b97;
    text-align: center;
    margin: 40px 0;
    position: relative;
    letter-spacing: 2px;
}

/* 添加装饰线 */
.notes-ending p:last-child::before {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #a8d8b9, transparent);
    margin: 0 auto 20px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .notes-ending p:first-child,
    .notes-ending p:nth-child(2) {
        font-size: 1.2rem;
        line-height: 1.6;
        padding: 0 10px;
        
    }
    
    .notes-ending p:last-child {
        font-size: 1rem;
        margin: 30px 0;
    }
}
.wedding-details {
    padding-bottom: 0;
}

.details-container {
    max-width: 800px;
    margin: 0 auto;
}


/* 地图登记模块 */

.map-section, .rsvp-section {
    flex: 1;
}

/* 底部空白修复 */
footer.footer {
    position: relative;
    margin-top: -1px;
    padding-top: 40px;
}
