* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', '宋体', serif;
    background: #f8f1e9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* padding: 16px; */
    overflow: hidden; /* 阻止浏览器默认滚动，改用内部纵向滑动 */
}

#app {
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: 100vh;
    background: #fffcf7;
    /* border-radius: 48px 48px 32px 32px; */
    /* box-shadow: 0 30px 40px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.05); */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    /* border: 1px solid rgba(230, 200, 180, 0.3); */
}

/* 纵向滑动容器 */
.slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    /* border-radius: 0 0 32px 32px; */
    touch-action: pan-y; /* 允许纵向触摸滑动，禁止浏览器页面滚动 */
}

.slider-track {
    display: flex;
    flex-direction: column; /* 纵向布局 */
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%; /* 每个slide占满容器高度 */
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 28px;
    scrollbar-width: thin;
    scrollbar-color: #d9b99b transparent;
    background: #fffcf7;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.slide::-webkit-scrollbar {
    width: 4px;
}
.slide::-webkit-scrollbar-thumb {
    background: #d9b99b;
    border-radius: 20px;
}

/* ========== 封面样式 ========== */
.cover {
    background: linear-gradient(155deg, #fdeeee 0%, #f5dada 100%);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    touch-action: pan-y; /* 确保触摸滑动正常 */
}
.cover::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 215, 190, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cover::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 240, 220, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cover h1 {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 6px;
    color: #8b5a3c;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(180, 120, 80, 0.2);
    z-index: 2;
    position: relative;
}
.cover .sub {
    font-size: 1.1rem;
    color: #a67c5b;
    letter-spacing: 2px;
    font-style: italic;
    margin-top: 8px;
    z-index: 2;
    position: relative;
}
.cover .click-hint {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
    color: #6b4a33;
    letter-spacing: 1px;
    border: 1px solid #e7cdb8;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
    transition: all 0.3s;
    z-index: 2;
    position: relative;
}

/* ========== 内页通用 ========== */
.page-title {
    font-size: 2.5rem;
    color: #7e5a3f;
    font-weight: 350;
    letter-spacing: 4px;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
}
.page-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #d9b99b;
    margin: 8px auto 0;
}

.couple-name {
    font-size: 2.2rem;
    color: #594735;
    font-weight: 400;
    margin: 10px 0;
    letter-spacing: 2px;
    text-align: center;
}
.date-text {
    font-size: 1.4rem;
    color: #80654f;
    letter-spacing: 3px;
    margin: 15px 0 5px;
    text-align: center;
}
.small-text {
    font-size: 0.9rem;
    color: #9e897b;
    letter-spacing: 1px;
    line-height: 1.7;
    text-align: center;
}
.ornament {
    font-size: 2rem;
    color: #c7a78b;
    margin: 10px 0;
    text-align: center;
}

/* 新郎新娘卡片 */
.couple-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0 15px;
    width: 100%;
    flex-wrap: wrap;
}
.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fcf5ef;
    padding: 15px 10px;
    border-radius: 30px;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.02);
    border: 1px solid #f0dfd2;
}
.person .avatar {
    font-size: 3.8rem;
    line-height: 1;
    margin-bottom: 6px;
}
.person .name {
    font-size: 1.3rem;
    color: #5e4532;
}
.person .role {
    font-size: 0.8rem;
    color: #b2957a;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* 信息卡片 */
.map-card {
    background: #fdf1e7;
    border-radius: 28px;
    padding: 20px 24px;
    margin: 20px 0;
    width: 100%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0dfd0;
    text-align: center;
}

.rsvp-box {
    background: #fff8f2;
    border: 1px dashed #d5b69b;
    border-radius: 40px;
    padding: 18px 26px;
    margin-top: 15px;
    color: #6d4f38;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-align: center;
}

/* 底部导航点（简化，仅保留圆点） */
.nav-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0 10px;
    background: #fffcf7;
    border-top: 1px solid #f3e4d9;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2cdbc;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    padding: 0;
}
.dot.active {
    background: #b48b6e;
    width: 26px;
    border-radius: 20px;
}

/* 响应式微调 */
@media (max-width: 440px) {
    #app {
        height: 100vh;
        /* border-radius: 32px; */
    }
    .cover h1 {
        font-size: 2.2rem;
    }
}