/* ========================================
   全局样式与重置
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    touch-action: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   通用页面容器
======================================== */
.page-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Page 2 特殊处理 - 初始隐藏但结构正常 */
#page-2.hidden {
    display: block !important;
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   Page 1 样式 - 视频与高清图片无缝嫁接
======================================== */

/* Page 1 容器 */
#page-1 {
    position: relative;
    overflow: hidden;
}

/* Page 1 背景 */
.page1-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('./assets/images/bj11.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

/* 信封拆信视频 (z-index: 10) */
.envelope-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    opacity: 1;
    will-change: opacity;
}

/* 高清图片容器 (z-index: 20) 覆盖在视频上方，初始隐藏 */
.hd-ticket-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0; /* 初始隐藏 */
    pointer-events: none; /* 初始不可交互 */
    will-change: opacity;
}

/* 高清船票图片 */
.hd-ticket-img {
    width: 85%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    margin-bottom: 50px;
}

/* 登岛按钮（在高清容器内） */
.hd-ticket-wrapper .board-button {
    position: relative;
    transform: none;
    padding: 16px 45px;
    background: linear-gradient(135deg, #FF5757 0%, #E8505B 100%);
    color: white;
    font-size: 19px;
    font-weight: 700;
    border-radius: 35px;
    box-shadow: 0 8px 25px rgba(255, 87, 87, 0.45);
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hd-ticket-wrapper .board-button:active {
    transform: scale(0.92);
}

/* 小岛 */
.island-far {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    height: auto;
    z-index: 10;
    opacity: 0;
    will-change: transform;
}

/* 小船 */
.boat {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: auto;
    z-index: 15;
    opacity: 0;
    will-change: transform;
}
}

/* 按钮 2：岛主的旅行日记 - 阳光黄 */
#btn-story {
    background: linear-gradient(135deg, #FFB830 0%, #FFA000 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 按钮 3：登岛装备 - 珊瑚橙红 */
#btn-rsvp {
    background: linear-gradient(135deg, #FF5757 0%, #E8505B 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-emoji {
    font-size: 18px;
    line-height: 1;
    z-index: 1;
}

.btn-text {
    font-size: 11px;
    line-height: 1.2;
    white-space: normal; /* 允许换行 */
    word-break: break-word;
    z-index: 1;
    max-width: 100%;
}

/* ========================================
   Page 2 样式
======================================== */

/* Page 2 背景 */
#page-2 {
    background: linear-gradient(180deg, #FFE5D9 0%, #FFF5E1 100%);
}

/* 花瓣容器 */
#petals-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* 花瓣 */
.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #FFB6C1 0%, #FFC0CB 100%);
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
    animation: fall linear forwards;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* 主请柬 */
.main-invitation {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    max-width: 650px;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s;
}

.main-invitation:active {
    transform: translateX(-50%) scale(0.98);
}

/* 按钮容器 */
.button-container {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row; /* 横向排列 */
    justify-content: center;
    gap: 12px;
    z-index: 20;
    width: 90%;
    max-width: 400px;
    opacity: 0; /* 初始隐藏 */
}

/* 胶囊按钮 */
.capsule-button {
    flex: 1; /* 平均分配宽度 */
    padding: 12px 8px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
}

/* 按钮颜色 - 橘色 */
#btn-map {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

/* 按钮颜色 - 绿色 */
#btn-story {
    background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* 按钮颜色 - 黄色 */
#btn-rsvp {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}

.capsule-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.capsule-button:hover::before {
    left: 100%;
}

.capsule-button:active {
    transform: scale(0.96);
}
/* ========================================
   弹窗系统
======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90vw;
    max-width: 500px;
    max-height: 85vh;
    background: #FFF9F0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 101;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-content {
    padding: 25px;
    overflow-y: auto;
    max-height: 85vh;
}

/* 照片弹窗特殊样式 */
#modal-story .modal-content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 85vh;
    padding: 20px 15px 15px 15px;
}

#modal-story .modal-title {
    margin-bottom: 15px;
    margin-top: 25px;
    flex-shrink: 0;
}

#modal-story .polaroid-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
}

#modal-story .swipe-hint {
    flex-shrink: 0;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #DE6262;
    margin-bottom: 20px;
    text-align: center;
}

/* ========================================
   弹窗 A: 农场地图 & 时刻表
======================================== */

/* 登岛坐标 */
.location-info {
    background: linear-gradient(135deg, #FFE5D9 0%, #FFF5E1 100%);
    border: 2px dashed #E85D04;
    border-radius: 12px;
    padding: 18px 15px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #2E5C31;
    margin: 0 0 12px 0;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.info-line {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin: 6px 0;
}

.info-line strong {
    color: #E85D04;
    font-weight: 700;
}

/* 地图容器 */
.farm-map-container {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    border: 3px solid #E85D04;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.farm-map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 日程区块 */
.schedule-block {
    background: white;
    border: 2px solid #FFE5D9;
    border-radius: 12px;
    padding: 18px 15px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.schedule-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.schedule-time {
    font-size: 16px;
    font-weight: 800;
    color: #E85D04;
    margin-right: 8px;
}

.schedule-divider {
    color: #D2BE9B;
    margin: 0 8px;
    font-weight: 300;
}

.schedule-title {
    font-size: 16px;
    font-weight: 700;
    color: #2E5C31;
}

.schedule-subtitle {
    font-size: 14px;
    color: #666;
    margin: 5px 0 12px 0;
    font-style: italic;
}

.schedule-content {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.schedule-content p {
    margin: 10px 0;
}

/* 提示框 */
.tip-box {
    background: #FFF9E6;
    border-left: 3px solid #E85D04;
    padding: 10px 12px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 5px;
}

/* 高亮文本 */
.highlight-text {
    font-size: 15px;
    font-weight: 700;
    color: #E85D04;
    margin: 8px 0;
}

/* 着装指南区域 */
.dress-code-section {
    background: linear-gradient(135deg, #FFF5E1 0%, #FFE5D9 100%);
    border: 2px dashed #2E5C31;
    border-radius: 12px;
    padding: 20px 15px;
    margin-top: 25px;
}

.dress-line {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 10px 0;
}

.dress-line strong {
    color: #2E5C31;
    font-weight: 700;
}

/* 引用块 */
.quote-block {
    background: white;
    border-left: 4px solid #E85D04;
    padding: 12px 15px;
    margin: 15px 0;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 结尾文本 */
.closing-text {
    text-align: center;
    font-weight: 700;
    color: #2E5C31;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   农场地图弹窗样式 - 手绘复古风格
======================================== */

/* 弹窗内容区域 */
.modal-map-content {
    background: #FFF9F2;
    padding: 0;
    max-height: 85vh;
    overflow-y: auto;
}

/* Hero Info - 登岛坐标 */
.hero-info {
    padding: 25px 20px;
    background: linear-gradient(135deg, #FFE5D9 0%, #FFF5E1 100%);
    border-bottom: 2px dashed #E85D04;
    text-align: center;
}

.location-title {
    font-size: 24px;
    font-weight: 800;
    color: #2E5C31;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}

.event-date {
    font-size: 20px;
    font-weight: 700;
    color: #E85D04;
    margin: 10px 0;
    letter-spacing: 2px;
}

.event-location {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 10px 0 0 0;
}

.event-location strong {
    font-size: 18px;
    color: #2E5C31;
    font-weight: 800;
}

.location-detail {
    font-size: 13px;
    color: #666;
    display: inline-block;
    margin-top: 5px;
}

/* Interactive Map Container */
.map-interactive-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid #E85D04;
    background: #FFF;
}

.farm-map-bg {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Map Pins - 地图图钉 */
.map-pin {
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
}

/* Pin位置 - 可根据实际地图调整 */
.pin-a {
    top: 25%;
    left: 45%;
}

.pin-b {
    top: 42%;
    left: 22%;
}

.pin-c {
    top: 55%;
    left: 60%;
}

.pin-d {
    top: 70%;
    left: 80%;
}

/* Pin Dot - 中心圆点 */
.pin-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: #E85D04;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(232, 93, 4, 0.6);
    z-index: 2;
    animation: pinBounce 2s ease-in-out infinite;
}

/* Pin Ripple - 呼吸波纹 */
.pin-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid #E85D04;
    border-radius: 50%;
    opacity: 0.6;
    animation: rippleEffect 2s ease-out infinite;
}

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

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.map-pin:hover .pin-dot {
    background: #2E5C31;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Info Card Popup - 信息卡片 */
.map-info-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 85%;
    max-width: 350px;
    background: #FFFBF5;
    border: 3px dashed #E85D04;
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-info-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.info-card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card-time {
    font-size: 22px;
    font-weight: 800;
    color: #E85D04;
    margin-bottom: 10px;
    text-align: center;
}

.info-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2E5C31;
    margin-bottom: 12px;
    text-align: center;
}

.info-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    text-align: center;
}

/* Flowing Timeline - 蜿蜒时间轴 */
.flowing-timeline {
    position: relative;
    padding: 30px 20px 40px;
    background: linear-gradient(180deg, #FFF9F2 0%, #FFE5D9 100%);
}

.timeline-header {
    font-size: 22px;
    font-weight: 800;
    color: #2E5C31;
    text-align: center;
    margin: 0 0 30px 0;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

/* SVG Path */
.timeline-path {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    pointer-events: none;
    z-index: 1;
}

#windingPath {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2s ease-out forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Timeline Nodes */
.timeline-node {
    position: relative;
    background: white;
    border: 2px solid #E85D04;
    border-radius: 15px;
    padding: 20px 15px;
    margin: 0 0 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: nodeSlideIn 0.6s ease-out backwards;
}

.node-1 { animation-delay: 0.1s; }
.node-2 { animation-delay: 0.2s; }
.node-3 { animation-delay: 0.3s; }
.node-4 { animation-delay: 0.4s; }
.node-5 { animation-delay: 0.5s; }

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

.node-time {
    font-size: 16px;
    font-weight: 800;
    color: #E85D04;
    margin-bottom: 8px;
}

.node-icon {
    font-size: 28px;
    margin: 10px 0;
}

.node-title {
    font-size: 17px;
    font-weight: 700;
    color: #2E5C31;
    margin-bottom: 10px;
    line-height: 1.3;
}

.node-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #FFE4B5 0%, #FFEEE0 100%);
    border: 2px dashed #FFB88C;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #DE6262;
    font-size: 16px;
    font-weight: 600;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s;
}

.timeline-item:active {
    transform: scale(0.98);
}

.timeline-icon {
    font-size: 32px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.timeline-item:active .timeline-icon {
    transform: scale(1.2);
}

.timeline-content {
    flex: 1;
}

.timeline-time {
    font-size: 16px;
    font-weight: 700;
    color: #DE6262;
    margin-bottom: 5px;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
}

/* ========================================
   弹窗 B: 拍立得照片栈
======================================== */
.polaroid-stack {
    position: relative;
}

.polaroid-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.polaroid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 500px;
    background: #FFF5E6; /* 托斯卡纳橘色-浅色调 */
    padding: 25px 25px 50px 25px;
    box-shadow: 0 10px 30px rgba(232, 93, 4, 0.2);
    border: 3px solid #FFECD1; /* 托斯卡纳橘色边框 */
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
}

.polaroid.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.polaroid-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 宽高比 */
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #FFE4CC; /* 托斯卡纳橘色-中间色调 */
}

.polaroid-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 完整显示照片，不裁剪 */
    object-position: center;
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, #FFE4B5 0%, #FFEEE0 100%);
}

.polaroid-title {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #E85D04;
    margin-bottom: 3px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.polaroid-caption {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    padding: 0 5px;
    margin-top: 3px;
}

.tape {
    position: absolute;
    width: 80px;
    height: 25px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.tape-1 {
    top: -10px;
    right: 20px;
    transform: rotate(15deg);
}

.tape-2 {
    top: -10px;
    left: 20px;
    transform: rotate(-10deg);
}

.tape-3 {
    top: -10px;
    right: 30px;
    transform: rotate(20deg);
}

.final-message {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFE4B5 0%, #FFEEE0 100%);
    padding: 40px 30px;
}

.final-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #DE6262;
}

.swipe-hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* ========================================
   弹窗 C: RSVP 表单
======================================== */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #DE6262;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    padding: 12px 15px;
    border: 2px solid #FFD4B3;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    border-color: #FFB88C;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-label input,
.checkbox-label input {
    display: none;
}

.radio-custom {
    padding: 12px 18px;
    border: 2px solid #FFD4B3;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.radio-label input:checked + .radio-custom {
    background: #FFB88C;
    border-color: #FFB88C;
    color: white;
    font-weight: 600;
}

.size-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.size-btn {
    cursor: pointer;
}

.size-btn input {
    display: none;
}

.size-btn span {
    display: block;
    padding: 15px 5px;
    border: 2px solid #FFD4B3;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.size-btn small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin-top: 5px;
}

.size-btn input:checked + span {
    background: #FFB88C;
    border-color: #FFB88C;
    color: white;
}

.checkbox-label span {
    padding: 10px 15px;
    border: 2px solid #FFD4B3;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.checkbox-label input:checked + span {
    background: #FFB88C;
    border-color: #FFB88C;
    color: white;
    font-weight: 600;
}

.submit-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFB88C 0%, #DE6262 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(222, 98, 98, 0.3);
    transition: all 0.2s;
}

.submit-btn:active {
    transform: scale(0.95);
}

/* 岛民通行证 */
.islander-pass {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFEEE0 100%);
    border: 3px dashed #DE6262;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pass-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFD4B3;
    padding-bottom: 15px;
}

.pass-header h3 {
    font-size: 24px;
    color: #DE6262;
    margin-bottom: 5px;
}

.pass-header p {
    font-size: 12px;
    color: #999;
}

.pass-body {
    position: relative;
    margin-bottom: 20px;
}

.pass-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #FFE4B5;
}

.pass-label {
    font-size: 14px;
    color: #666;
}

.pass-value {
    font-size: 14px;
    font-weight: 600;
    color: #DE6262;
}

.pass-stamp {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(15deg);
}

.stamp-circle {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(222, 98, 98, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 184, 140, 0.2);
}

.stamp-text {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: rgba(222, 98, 98, 0.8);
    line-height: 1.3;
}

.pass-footer {
    text-align: center;
    font-size: 13px;
    color: #DE6262;
    line-height: 1.6;
    background: rgba(255, 184, 140, 0.2);
    padding: 12px;
    border-radius: 10px;
}

/* ========================================
   音乐控制按钮
======================================== */
/* ========================================
   背景音乐控制按钮
======================================== */
.bgm-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background: rgba(255, 249, 242, 0.95);
    border: 2px solid #E85D04;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.bgm-control:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

.bgm-control:active {
    transform: scale(0.95);
}

.vinyl-disc {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s;
}

/* 播放时的旋转动画 */
.bgm-control.playing .vinyl-disc {
    animation: spin 3s linear infinite;
}

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

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