/* ==========================================================================
   答谢宴邀请函样式表 (Wedding Banquet Invitation)
   胡先生 & 于女士 · 长春高新洲际酒店

   字体方案（多种字体混排的婚庆排版）：
     · 全站主体  → var(--font-serif)  宋体（正式典雅，正文/姓名/标题统一）
     · 英文点缀  → var(--font-script) 手写书法体（浪漫氛围）
     · 备用黑体  → var(--font-sans)   黑体（当前无引用，保留备用）
   ========================================================================== */

/* 英文手写体（自托管，避免国内访问 Google Fonts 失败） */
@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/dancing-script.woff2') format('woff2');
}

/* 中文宋体兜底（自托管 Noto Serif SC 子集，覆盖 3800+ 常用汉字）
   —— 仅当设备无系统宋体时才会下载，主要服务安卓端 */
@font-face {
    font-family: 'Noto Serif SC Web';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/noto-serif-sc.woff2') format('woff2');
}

:root {
    --primary-gold: #c5a880;
    --primary-gold-dark: #a2835a;
    --primary-gold-light: #f3ece2;
    --romantic-red: #c0392b;
    --romantic-rose: #d9777f;
    --bg-warm: #FAF7F2;
    --bg-card: #FFFFFF;
    --text-main: #2C2828;
    --text-muted: #847C77;
    --text-light: #B5AEA8;
    --border-gold: rgba(197, 168, 128, 0.35);
    --shadow-soft: 0 10px 30px rgba(162, 131, 90, 0.1);
    --shadow-elevated: 0 15px 35px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-serif: "Songti SC", "STSong", "SimSun", "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", "Noto Serif SC Web", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
    --font-script: 'Dancing Script', 'Snell Roundhand', 'Segoe Script', 'Brush Script MT', cursive;
}

/* 英文 / 点缀文字：手写书法体 */
.font-script {
    font-family: var(--font-script);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* 封面徽标内的英文手写体，稍大一点更接近婚庆模板观感 */
.invitation-badge .font-script {
    font-size: 16px;
    letter-spacing: 1px;
    margin-right: 2px;
}

/* 倒计时英文标签用手写体 */
.countdown-label .font-script {
    font-size: 13px;
    margin-right: 2px;
}

.music-name .font-script {
    font-size: 16px;
}

/* 微信分享缩略图容器
   微信抓取 body 内第一张 ≥300×300 的图片作为分享卡片图，
   这里把它移到视口外隐藏 —— 注意绝不能用 display:none（微信会跳过） */
.wx-share-thumb {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 500px;
    height: 500px;
    overflow: hidden;
    pointer-events: none;
}

/* 蜜罐字段（反自动填表）：移出视口但保留在 DOM 中 */
.rsvp-honeypot {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: #ECE7DF;
    font-family: var(--font-serif);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 原生控件兜底：button / input / textarea / select 默认【不继承】父级字体，
   浏览器会强制使用系统 UI 黑体。这里统一改成继承，保证全站宋体一致。 */
button,
input,
textarea,
select,
optgroup {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    letter-spacing: inherit;
}

/* 占位符同样要显式指定，否则部分内核仍走系统默认黑体 */
input::placeholder,
textarea::placeholder {
    font-family: inherit;
    letter-spacing: inherit;
    color: var(--text-light);
    opacity: 1;
}

/* ==========================================================================
   桌面端外层容器与设备模拟框 (Desktop Phone Simulator)
   ========================================================================== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 0 60px;
    transition: all 0.3s ease;
}

/* 桌面端顶部控制条 */
.desktop-controls {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 440px;
    margin-bottom: 14px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    font-size: 13px;
    color: var(--text-muted);
}

.desktop-controls .ctrl-badge {
    font-weight: 600;
    color: var(--primary-gold-dark);
}

.desktop-controls .ctrl-btns button {
    background: #f0eae1;
    border: none;
    outline: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 6px;
}

.desktop-controls .ctrl-btns button:hover,
.desktop-controls .ctrl-btns button.active {
    background: var(--primary-gold);
    color: #fff;
}

/* 模拟手机壳框 */
.device-frame {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 880px;
    background: var(--bg-warm);
    border-radius: 46px;
    box-shadow: 0 25px 65px rgba(50, 40, 30, 0.22), 0 0 0 10px #242220, 0 0 0 12px #3d3a36;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 全屏模式切换 */
.page-wrapper.full-mode .device-frame {
    max-width: 580px;
    border-radius: 0;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

/* 顶部刘海/灵动岛模拟 */
.device-notch {
    position: sticky;
    top: 0;
    width: 100%;
    height: 38px;
    background: var(--bg-warm);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 4px;
}

.notch-island {
    width: 110px;
    height: 24px;
    background: #181716;
    border-radius: 20px;
}

/* 移动端直接全屏无外壳 */
@media (max-width: 600px) {
    .page-wrapper {
        padding: 0;
    }
    .desktop-controls {
        display: none !important;
    }
    .device-frame {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    .device-notch {
        display: none;
    }
}

@media (min-width: 601px) {
    .desktop-controls {
        display: flex;
    }
}

/* 主内容滚动区域 */
.app-container {
    width: 100%;
    flex: 1;
    position: relative;
    padding-bottom: 90px; /* 留出底部快捷操作栏空间 */
    background: var(--bg-warm);
}

/* ==========================================================================
   右上角悬浮音乐控制器 (Floating Vinyl Music Player)
   ========================================================================== */
.floating-music-btn {
    position: fixed;
    right: 20px;
    top: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, #333 30%, #111 80%);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(197, 168, 128, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.floating-music-btn:active {
    transform: scale(0.92);
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 6s linear infinite;
    animation-play-state: paused;
}

.floating-music-btn.playing .vinyl-disc {
    animation-play-state: running;
}

.vinyl-grooves {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-center {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-center svg {
    width: 8px;
    height: 8px;
    fill: #fff;
}

/* 浮动音符动画 */
.music-note {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 14px;
    color: var(--primary-gold);
    opacity: 0;
    pointer-events: none;
}

.floating-music-btn.playing .music-note.n1 {
    animation: floatNote 2.4s infinite ease-out;
}
.floating-music-btn.playing .music-note.n2 {
    animation: floatNote 2.4s infinite ease-out 1.2s;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes floatNote {
    0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
    40% { opacity: 0.9; }
    100% { transform: translate(-18px, -28px) scale(1.1); opacity: 0; }
}

/* 自动播放引导气泡 */
.music-guide-toast {
    position: fixed;
    right: 72px;
    top: 26px;
    background: rgba(36, 30, 26, 0.88);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 20px;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    animation: pulseGuide 2s infinite ease-in-out;
    border: 1px solid rgba(197, 168, 128, 0.4);
    white-space: nowrap;
}

.music-guide-toast::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid rgba(36, 30, 26, 0.88);
}

@keyframes pulseGuide {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ==========================================================================
   页面顶部标头与封面 (Cover Section)
   ========================================================================== */
.cover-section {
    padding: 34px 24px 20px;
    text-align: center;
}

.invitation-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-gold-light);
    color: var(--primary-gold-dark);
    font-size: 12px;
    letter-spacing: 2px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 8px;
}

.sub-title {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.meta-author-date {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    margin-bottom: 30px;
}

.meta-author-date .author {
    color: #4a6288;
    font-weight: 500;
}

.meta-author-date .date {
    color: var(--text-light);
}

/* 封面复合相框 */
.cover-stage {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-bg-word {
    position: absolute;
    left: 10px;
    bottom: -15px;
    width: 62%;
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

.cover-photo-card {
    position: relative;
    width: 82%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 5px solid #fff;
    z-index: 2;
    background: #fff;
}

.cover-photo-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.cover-photo-card:hover img {
    transform: scale(1.03);
}

.cover-ornament {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 130px;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.cover-quote {
    margin-top: 24px;
    font-family: var(--font-serif);
    font-size: 15px;
    letter-spacing: 3px;
    color: var(--primary-gold-dark);
    font-style: italic;
}

/* ==========================================================================
   内嵌音乐播放展示条 (Inline Music Bar)
   ========================================================================== */
.music-inline-card {
    margin: 16px 20px 48px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(197, 168, 128, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
}

.music-inline-card:active {
    transform: scale(0.98);
}

.music-left-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.music-left-icon img {
    width: 22px;
    height: 22px;
    transition: transform 0.3s;
}

.music-info {
    flex: 1;
    text-align: left;
}

.music-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.music-state {
    font-size: 12px;
    color: var(--text-light);
}

.music-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    margin-right: 12px;
}

.vis-bar {
    width: 3px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 2px;
    transition: height 0.2s;
}

.music-inline-card.playing .vis-bar:nth-child(1) { animation: soundBar 1s infinite ease-in-out; }
.music-inline-card.playing .vis-bar:nth-child(2) { animation: soundBar 1.2s infinite ease-in-out 0.2s; }
.music-inline-card.playing .vis-bar:nth-child(3) { animation: soundBar 0.9s infinite ease-in-out 0.4s; }
.music-inline-card.playing .vis-bar:nth-child(4) { animation: soundBar 1.1s infinite ease-in-out 0.1s; }

@keyframes soundBar {
    0%, 100% { height: 4px; }
    50% { height: 18px; }
}

.music-poster-mini {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.music-poster-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   抒情诗歌与相遇故事 (Poetic Prose)
   ========================================================================== */
.prose-section {
    text-align: center;
    padding: 20px 24px 44px;
    font-family: var(--font-serif);
    line-height: 2.1;
    font-size: 14px;
    letter-spacing: 1px;
    color: #4a4543;
}

.prose-section .prose-lead {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.prose-section .prose-highlight {
    color: var(--primary-gold-dark);
    font-weight: 500;
    margin: 16px 0;
}

.prose-section .heart-icon {
    display: inline-block;
    color: var(--romantic-red);
    font-size: 18px;
    margin-top: 14px;
    animation: heartBeat 1.8s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

/* 分割线装饰 */
.ornament-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0;
}

.ornament-divider img {
    max-width: 85%;
    height: auto;
    opacity: 0.85;
}

/* ==========================================================================
   出生月亮与宇宙浪漫 (Moon & Universe Section)
   ========================================================================== */
.moon-section {
    text-align: center;
    padding: 10px 20px 50px;
}

.moon-title-img {
    max-width: 60%;
    margin-bottom: 24px;
}

.moons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 18px;
}

.moon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.moon-item img {
    width: 100%;
    max-width: 140px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    margin-bottom: 12px;
}

.moon-birth {
    font-size: 13px;
    color: var(--primary-gold-dark);
    letter-spacing: 1px;
    font-weight: 500;
}

.moon-caption {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.moon-caption .en {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 4px 0;
}

/* ==========================================================================
   新郎新娘 (Couple) —— 同行并排 · 圆形头像
   参考比例（390px 视口）：圆头像 130px · 姓名 15.6px · 身份 12.5px
   行宽 = 130 + 34 + 130 = 294px，居中后两侧各留 48px
   ========================================================================== */
.couple-cards-section {
    padding: 0 24px 46px;
}

/* 邀请语 —— 宋体，行高 2.2，居中 */
.couple-invite {
    font-family: var(--font-serif);
    font-size: clamp(11.5px, 3.2vw, 12.5px);
    line-height: 2.2;
    letter-spacing: 1px;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 38px;
}

.couple-invite-main,
.couple-invite-sub {
    margin: 0;
}

.couple-row {
    width: 100%;
    max-width: 294px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 34px;
}

.person-card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 圆形照片展示区（比原大图卡片小很多） */
.person-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(162, 131, 90, 0.18);
}

.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.person-card:hover .person-avatar img {
    transform: scale(1.06);
}

/* 中文姓名：宋体，正式典雅 */
.person-name {
    position: relative;
    width: 100%;
    margin-top: 26px;
    font-family: var(--font-serif);
    font-size: clamp(14px, 4vw, 15.6px);
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--text-main);
}

/* 两人姓名之间的连接符（手写体 &） */
.person-card--groom .person-name::after {
    content: "&";
    position: absolute;
    left: 100%;
    top: 50%;
    /* 卡片间距 34px 的一半，正好落在两列正中 */
    margin-left: 17px;
    transform: translate(-50%, -50%);
    font-family: var(--font-script);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    color: var(--primary-gold-dark);
    opacity: 0.85;
    pointer-events: none;
}

/* 身份：左「新郎/」、右「/新娘」，斜杠朝向中间 */
.person-role {
    width: 100%;
    margin-top: 8px;
    font-family: var(--font-serif);
    font-size: clamp(11px, 3.2vw, 12.5px);
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--text-muted);
}

.person-card--groom .person-role {
    text-align: left;
}

.person-card--bride .person-role {
    text-align: right;
}

.role-slash {
    font-style: normal;
    color: var(--primary-gold);
}

/* 一键拨号 */
.person-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--border-gold);
    color: var(--text-main);
    border-radius: 18px;
    font-family: var(--font-serif);
    font-size: 11px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
}

.person-call-btn:hover,
.person-call-btn:active {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}

.person-call-btn img {
    width: 13px;
    height: 13px;
    /* 图标原图为白色，默认浅色按钮下转为深色，保证可见性 */
    filter: brightness(0.25);
    transition: filter 0.2s;
}

/* 选中 / 悬浮（金色）状态下还原为白色图标 */
.person-call-btn:hover img,
.person-call-btn:active img {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   轮播组件 (Carousel / Swiper)
   ========================================================================== */
.carousel-section {
    padding: 10px 20px 48px;
    text-align: center;
}

.carousel-title-img {
    max-width: 65%;
    margin-bottom: 20px;
}

.custom-carousel {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    background: #fff;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 18px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4ccbf;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 22px;
    border-radius: 8px;
    background: var(--primary-gold);
}

.carousel-quote {
    font-size: 13px;
    color: #555;
    line-height: 2.1;
    padding: 0 10px;
}

.carousel-quote .author {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ==========================================================================
   连续长轴画卷画廊 (Series Gallery)
   ========================================================================== */
.series-section {
    padding: 10px 20px 48px;
    text-align: center;
}

.series-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
}

.series-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #fff;
    border: 4px solid #fff;
}

.series-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   绿叶与初见对白 (Leaf Section)
   ========================================================================== */
.leaf-section {
    padding: 10px 20px 48px;
}

.leaf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.leaf-photo-left {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 4px solid #fff;
}

.leaf-photo-left img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.leaf-art img {
    width: 100%;
    max-width: 170px;
}

.leaf-bottom-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leaf-bottom-photo {
    width: 48%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 4px solid #fff;
}

.leaf-bottom-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.leaf-text-quote {
    width: 48%;
    text-align: center;
    font-family: var(--font-serif);
    color: var(--primary-gold-dark);
    font-size: 15px;
    line-height: 2;
    letter-spacing: 3px;
}

.leaf-text-quote .line {
    width: 30px;
    height: 1px;
    background: var(--primary-gold);
    margin: 0 auto 12px;
}

/* ==========================================================================
   四宫格照片墙 (Four-Grid Wall)
   ========================================================================== */
.grid-section {
    padding: 10px 20px 48px;
    text-align: center;
}

.photo-quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.photo-quad-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #fff;
    border: 3px solid #fff;
    aspect-ratio: 1 / 1;
}

.photo-quad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-quad-item:hover img {
    transform: scale(1.06);
}

/* ==========================================================================
   中式传统囍宴与正式请柬 (Chinese Traditional Xi Section)
   ========================================================================== */
.chinese-section {
    padding: 20px 20px 50px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(192, 57, 43, 0.04), transparent);
}

.xi-symbol {
    font-family: "Songti SC", "SimSun", serif;
    font-size: 56px;
    font-weight: bold;
    color: var(--romantic-red);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(192, 57, 43, 0.2);
    display: inline-block;
    animation: pulseXi 3s infinite ease-in-out;
}

@keyframes pulseXi {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.chinese-invitation-box {
    background: #fff;
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-radius: var(--radius-md);
    padding: 26px 20px;
    margin-top: 20px;
    box-shadow: var(--shadow-soft);
    line-height: 2.3;
}

.chinese-couple-names {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--romantic-red);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

/* ==========================================================================
   吉日日历与倒计时组件 (Calendar & Countdown)
   ========================================================================== */
.calendar-section {
    padding: 10px 20px 48px;
    text-align: center;
}

.calendar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px 20px;
    border: 1px solid var(--border-gold);
    margin-bottom: 20px;
}

.cal-year {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-gold-dark);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.cal-month-day {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: 500;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px 4px;
    text-align: center;
    font-size: 13px;
}

.cal-week-head {
    color: var(--text-light);
    font-weight: 600;
    padding-bottom: 8px;
}

.cal-day-cell {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    color: #555;
}

.cal-day-cell.wedding-day {
    background: var(--romantic-red);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.4);
    animation: pulseDay 2s infinite ease-in-out;
}

.cal-day-cell.wedding-day::after {
    content: '❤';
    position: absolute;
    top: -8px;
    right: -3px;
    font-size: 10px;
    color: var(--romantic-red);
}

@keyframes pulseDay {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cal-footer-info {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #ede5db;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 实时倒计时卡片 */
.countdown-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.countdown-unit {
    background: #fff;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    min-width: 58px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.countdown-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-gold-dark);
    line-height: 1.2;
}

.countdown-label {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* ==========================================================================
   酒店地址与地图导航 (Hotel Location & Navigation Card)
   ========================================================================== */
.location-section {
    padding: 10px 20px 48px;
}

.hotel-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--border-gold);
}

.hotel-header {
    padding: 22px 20px 16px;
    text-align: center;
}

.hotel-name {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.hotel-hall {
    font-size: 13px;
    color: var(--primary-gold-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.hotel-addr {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 地图模拟视图 */
.hotel-map-view {
    position: relative;
    width: 100%;
    height: 180px;
    background: #e8e2d8;
    overflow: hidden;
    cursor: pointer;
}

.map-bg-pattern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.map-pin-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 5;
}

.map-pin-pulse {
    width: 38px;
    height: 38px;
    background: var(--romantic-red);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: pinBounce 2s infinite ease-in-out;
}

.map-pin-pulse svg {
    transform: rotate(45deg);
    width: 18px;
    height: 18px;
    fill: #fff;
}

.map-pin-text {
    margin-top: 8px;
    background: rgba(30, 25, 22, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0) rotate(-45deg); }
    50% { transform: translateY(-8px) rotate(-45deg); }
}

.hotel-actions {
    display: flex;
    border-top: 1px solid #f0eae1;
}

.hotel-action-btn {
    flex: 1;
    padding: 14px 10px;
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.hotel-action-btn:first-child {
    border-right: 1px solid #f0eae1;
    color: var(--primary-gold-dark);
}

.hotel-action-btn:hover {
    background: #faf6f0;
}

.hotel-action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==========================================================================
   答谢回执表单 (RSVP Form)
   · 版式：上方居中「碎碎念」+ 下方 姓名 / 出席人数 / 提交
   · 风格与全站统一，对齐正式邀请卡片 .chinese-invitation-box：
     白底 + 朱砂描边 rgba(192,57,43,.2) + 14px 圆角 + 金色柔和投影
   · 字号亦回归全站正文规格：宋体 16px / 行高 2.3 / 字距 1px
   ========================================================================== */
.rsvp-section {
    margin: 0 20px 50px;
    padding: 26px 20px 30px;
    background: #fff;
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* 碎碎念正文：与全站正文同字号、同行距，保持整体节奏一致 */
.rsvp-prose {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 2.3;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 24px;
}

.rsvp-prose p {
    margin: 0;
}

/* 收尾一句用金色强调，呼应正式邀请卡片末句的处理 */
.rsvp-prose p:last-child {
    color: var(--primary-gold-dark);
    font-weight: 500;
}

/* 表单与卡片同宽，不再单独内缩 */
.rsvp-form {
    width: 100%;
}

.rsvp-field {
    position: relative;
}

.rsvp-field + .rsvp-field {
    margin-top: 16px;
}

/* 输入框：白卡上的暖米底 + 朱砂细边 + 圆角 */
.rsvp-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-radius: var(--radius-sm);
    background: var(--bg-warm);
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--text-main);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.rsvp-input:focus {
    border-color: rgba(192, 57, 43, 0.5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.06);
}

/* 数字输入框去掉浏览器自带的上下箭头 */
.rsvp-input::-webkit-outer-spin-button,
.rsvp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 框内标签：空值时充当占位（垂直居中），填入内容后自动隐去 */
.rsvp-field-label {
    position: absolute;
    left: 14px;
    top: 0;
    height: 48px;
    display: flex;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--text-muted);
    pointer-events: none;
    transition: opacity 0.15s;
}

.rsvp-field-label .req {
    color: var(--romantic-red);
    margin-right: 7px;
}

/* 有内容 → 隐藏标签。伪类与 JS 类名并联：
   部分内核（Safari / iOS·微信内置 WebView）输入后不会重算 :placeholder-shown，
   导致标签一直压在文字上，故由 JS 同步 .has-value 兜底。 */
.rsvp-input:not(:placeholder-shown) + .rsvp-field-label,
.rsvp-input.has-value + .rsvp-field-label {
    opacity: 0;
}

/* 提交按钮：朱砂渐变 + 圆角 + 柔和投影，与全站按钮观感一致 */
.rsvp-submit-btn {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 22px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #c4382a, #9c2318);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 3px;
    text-indent: 3px; /* 补偿末字后的字距，让「提交」视觉居中 */
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.22);
    transition: box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.rsvp-submit-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
    transform: translateY(-1px);
}

.rsvp-submit-btn:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

/* 窄屏（≤360px）：略有压缩，保证「请带上最开心的自己来参加我们的婚礼」
   这最长一句仍然单行不折行 */
@media (max-width: 360px) {
    .rsvp-section {
        padding: 22px 16px 26px;
    }

    .rsvp-prose {
        font-size: 15px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 340px) {
    .rsvp-prose {
        font-size: 14px;
        letter-spacing: 0;
    }
}

/* ==========================================================================
   温馨提示与结尾寄语 (Tips & Closing)
   ========================================================================== */
.tips-section {
    padding: 10px 24px 50px;
    text-align: center;
}

.tips-box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: left;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 168, 128, 0.2);
    margin-bottom: 30px;
}

.tips-title {
    font-weight: 600;
    color: var(--primary-gold-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.tips-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.closing-quote {
    padding: 20px;
    text-align: right;
    font-family: var(--font-serif);
    font-size: 14px;
    color: #4a4543;
    line-height: 2.1;
}

.closing-quote .quote-author {
    font-size: 12px;
    color: var(--primary-gold-dark);
    margin-top: 10px;
}

.closing-seal {
    max-width: 45%;
    margin: 20px auto 0;
    display: block;
    opacity: 0.85;
}

/* ==========================================================================
   左下角悬浮祝福语滚动胶囊 (Floating Blessing Barrage)
   ========================================================================== */
.floating-barrage {
    position: fixed;
    left: 16px;
    bottom: 80px;
    z-index: 900;
    max-width: calc(100% - 32px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.barrage-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(36, 30, 26, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 14px 6px 8px;
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(197, 168, 128, 0.35);
    animation: fadeInSlide 0.5s ease-out;
}

.barrage-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
}

.barrage-name {
    color: var(--primary-gold-light);
    font-weight: 600;
    margin-right: 4px;
    white-space: nowrap;
}

.barrage-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ede9e4;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   底部吸底快捷工具条 (Bottom Floating Navigation Bar)
   ========================================================================== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 950;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.bottom-bar-inner {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(197, 168, 128, 0.25);
    padding: 8px 16px 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    pointer-events: auto;
}

.page-wrapper.full-mode .bottom-bar-inner {
    max-width: 580px;
}

.bar-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}

.bar-action-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.bar-action-item:hover,
.bar-action-item.highlight {
    color: var(--primary-gold-dark);
}

.bar-action-item.highlight svg {
    fill: var(--romantic-red);
}

/* ==========================================================================
   弹窗与抽屉 (Modal Sheets)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    width: 100%;
    max-width: 430px;
    max-height: 85vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
    padding: 24px 20px 36px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

.page-wrapper.full-mode .modal-sheet {
    max-width: 580px;
}

.modal-overlay.show .modal-sheet {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0eae1;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.modal-close-btn {
    background: #f2ede6;
    border: none;
    outline: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

/* 日程时间轴 */
.schedule-timeline {
    position: relative;
    padding-left: 20px;
    margin-bottom: 24px;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 18px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-gold);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--border-gold);
}

.timeline-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-gold-dark);
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 2px 0;
}

.timeline-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* 导航APP列表 */
.nav-app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: #faf8f5;
    border: 1px solid #e8e2d8;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-app-item:hover {
    background: var(--primary-gold-light);
    border-color: var(--primary-gold);
}

.nav-app-item svg {
    width: 18px;
    height: 18px;
    fill: #999;
}

/* 联系人呼叫列表 */
.contact-call-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-call-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #faf8f5;
    border: 1px solid #e8e2d8;
    border-radius: var(--radius-sm);
}

.contact-call-item .role {
    font-size: 14px;
    font-weight: 500;
}

.contact-call-item .phone-btn {
    padding: 6px 14px;
    background: var(--primary-gold);
    color: #fff;
    border-radius: 16px;
    font-size: 12px;
    text-decoration: none;
}

/* ==========================================================================
   Toast 轻提示与特效 (Toast & FX)
   ========================================================================== */
.toast-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(30, 25, 22, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-gold);
    text-align: center;
    pointer-events: none;
}

.toast-msg.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* 礼花彩带画布 */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1999;
}
