/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    overflow: hidden;
    background: linear-gradient(135deg, #faf7f2 0%, #f5ebe0 100%);
    color: #4a4a4a;
}

/* 开场视频样式 */
.intro-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-video.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-video video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持视频比例，不裁剪 */
    background: #000;
}

.video-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
}

.skip-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.05);
}

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

/* 容器 */
.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 页面基础样式 */
.page {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(135deg, #faf7f2 0%, #f5ebe0 100%);
}

.page.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10;
}

.page.prev {
    transform: translateY(-100%);
    opacity: 0;
    z-index: 5;
}

.content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* 可滚动的内容区域 */
.content-wide {
    max-width: 90%;
    width: 100%;
    max-height: 85vh;
    overflow-y: visible;
    overflow-x: hidden;
    padding: 10px;
}

/* 自定义滚动条样式 */
.content-wide::-webkit-scrollbar {
    width: 6px;
}

.content-wide::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.content-wide::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 165, 0.5);
    border-radius: 3px;
}

.content-wide::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 165, 0.8);
}

/* 第4页和第5页的滚动条样式 */
.page-4 .content::-webkit-scrollbar,
.page-5 .content::-webkit-scrollbar {
    width: 4px;
}

.page-4 .content::-webkit-scrollbar-track,
.page-5 .content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

.page-4 .content::-webkit-scrollbar-thumb,
.page-5 .content::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 165, 0.4);
    border-radius: 2px;
}

/* 移动端滚动优化 */
@media (max-width: 768px) {
    .page-4 .content,
    .page-5 .content {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

.page.active .content {
    animation: fadeInUp 0.6s ease-out;
    opacity: 1;
    visibility: visible;
}

/* 确保非活动页面的内容不可见 */
.page:not(.active) .content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

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

/* 音乐控制按钮 */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.music-icon {
    font-size: 24px;
    animation: rotate 3s linear infinite;
}

.music-control.paused .music-icon {
    animation-play-state: paused;
}

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

/* 第1页：封面 */
.page-1 {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
}

.couple-names h1 {
    font-size: 2.5em;
    color: #d4a5a5;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 5px;
}

.wedding-title h2 {
    font-size: 1.8em;
    color: #8b7355;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 300;
}

.wedding-date p {
    font-size: 1.3em;
    color: #a0826d;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.enter-btn {
    padding: 15px 50px;
    font-size: 1.1em;
    background: transparent;
    border: 2px solid #d4a5a5;
    color: #d4a5a5;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 2px;
}

.enter-btn:hover {
    background: #d4a5a5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 165, 165, 0.4);
}

/* 第2页：拍立得照片墙 */
.page-2 h2 {
    font-size: 2.2em;
    color: #8b7355;
    margin-bottom: 10px;
    font-weight: 300;
}

.gallery-subtitle {
    font-size: 1em;
    color: #a0826d;
    margin-bottom: 30px;
    font-style: italic;
}

.polaroid-wall {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

.polaroid {
    position: absolute;
    background: white;
    padding: 12px 12px 45px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 3px;
}

.polaroid:hover {
    transform: scale(1.08) rotate(0deg) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 
                0 3px 10px rgba(0, 0, 0, 0.15);
    z-index: 100 !important;
}

.polaroid-frame {
    width: 140px;
    height: 140px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    box-sizing: border-box; /* 确保边框包含在尺寸内 */
}

.polaroid.featured .polaroid-frame {
    width: 180px;
    height: 180px;
}

.polaroid-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid-caption {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'KaiTi', '楷体', cursive;
    font-size: 0.95em;
    color: #6b5b4f;
    font-weight: 500;
}

/* 照片位置 - 散乱排列 */
.photo-1 {
    top: 10%;
    left: 5%;
    transform: rotate(-8deg);
    z-index: 3;
}

.photo-2 {
    top: 5%;
    left: 35%;
    transform: rotate(5deg);
    z-index: 2;
}

.photo-3 {
    top: 15%;
    right: 5%;
    transform: rotate(-3deg);
    z-index: 4;
}

.photo-4 {
    top: 40%;
    left: 2%;
    transform: rotate(6deg);
    z-index: 2;
}

.photo-5.featured {
    top: 35%;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    z-index: 10;
}

.photo-6 {
    top: 45%;
    right: 2%;
    transform: rotate(-7deg);
    z-index: 3;
}

.photo-7 {
    bottom: 15%;
    left: 8%;
    transform: rotate(4deg);
    z-index: 2;
}

.photo-8 {
    bottom: 10%;
    left: 38%;
    transform: rotate(-5deg);
    z-index: 3;
}

.photo-9 {
    bottom: 12%;
    right: 8%;
    transform: rotate(7deg);
    z-index: 2;
}

.gallery-hint {
    margin-top: 20px;
    font-size: 0.9em;
    color: #a0826d;
    opacity: 0.7;
}

/* 照片点击放大效果 - 简化版本 */
.polaroid.enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -220px; /* 总高度约440px的一半 */
    margin-left: -180px; /* 总宽度约360px的一半 */
    transform: rotate(0deg) !important; /* 强制清除旋转 */
    z-index: 9999;
    padding: 20px 20px 65px 20px;
    background: white !important; /* 强制白色背景 */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    /* 重置所有位置属性 */
    right: auto !important;
    bottom: auto !important;
}

.polaroid.enlarged .polaroid-frame {
    width: 320px;
    height: 320px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .polaroid.enlarged {
        margin-top: -180px;
        margin-left: -145px;
        padding: 15px 15px 55px 15px;
    }
    
    .polaroid.enlarged .polaroid-frame {
        width: 260px;
        height: 260px;
    }
}

/* 第3页：婚礼信息 */
.page-3 h2 {
    font-size: 2.2em;
    color: #8b7355;
    margin-bottom: 15px;
    font-weight: 300;
}

.page-3 .subtitle {
    font-size: 1em;
    color: #a0826d;
    margin-bottom: 30px;
}

/* 通用subtitle样式 - 支持文本换行 */
.subtitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.wedding-events {
    /* display: flex; */
    flex-direction: column;
    gap: 20px;
    /* margin-bottom: 30px; */
}

.event-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f0e6dc;
}

.event-icon {
    font-size: 2.5em;
    margin-right: 15px;
}

.event-header h3 {
    font-size: 1.4em;
    color: #8b7355;
    font-weight: 500;
}

.event-details {
    text-align: left;
}

.event-item {
    margin-bottom: 2px;
    font-size: 1em;
    color: #6b5b4f;
    line-height: 1.8;
}

.event-item .label {
    font-weight: 500;
    color: #8b7355;
}

.event-item .value {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 地址文本特殊样式 */
.address-text {
    font-size: 0.9em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .address-text {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .address-text {
        font-size: 0.8em;
    }
}

.contact-info {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    font-size: 1.2em;
    color: #8b7355;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1em;
    color: #6b5b4f;
    line-height: 2;
}

/* 第4页：婚礼流程 */
.page-4 h2 {
    font-size: 2.2em;
    color: #8b7355;
    margin-bottom: 30px;
    font-weight: 300;
}

.flow-section {
    margin-bottom: 35px;
}

.flow-section h3 {
    font-size: 1.3em;
    color: #d4a5a5;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d4a5a5, #e8d5c4);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4a5a5;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #d4a5a5;
}

.timeline-item .time {
    font-size: 1.3em;
    color: #d4a5a5;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-item .event {
    font-size: 1.1em;
    color: #6b5b4f;
}

/* 第5页：RSVP表单 */
.page-5 h2 {
    font-size: 2.2em;
    color: #8b7355;
    margin-bottom: 10px;
    font-weight: 300;
}

.subtitle {
    font-size: 1em;
    color: #a0826d;
    margin-bottom: 30px;
}

.rsvp-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1em;
    color: #6b5b4f;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8d5c4;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    color: #4a4a4a;
    transition: all 0.3s ease;
    background: #faf7f2;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a5a5;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #faf7f2;
    border: 2px solid #e8d5c4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: white;
    border-color: #d4a5a5;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
    transform: scale(1.2);
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #d4a5a5;
    font-weight: 500;
}

.checkbox-item span {
    font-size: 1em;
    color: #6b5b4f;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #d4a5a5 0%, #c99595 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 2px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 165, 165, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}

.success-message h3 {
    font-size: 1.8em;
    color: #8b7355;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1em;
    color: #6b5b4f;
}

/* 第6页：感谢页 */
.page-6 {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
}

.thank-you h2 {
    font-size: 3em;
    color: #d4a5a5;
    margin-bottom: 30px;
    font-weight: 300;
    font-style: italic;
}

.thank-message {
    font-size: 1.3em;
    color: #8b7355;
    line-height: 2.2;
    margin-bottom: 50px;
}

.final-names {
    font-size: 1.5em;
    color: #a0826d;
}

.final-names p:first-child {
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.final-date {
    font-size: 0.9em !important;
    color: #d4a5a5 !important;
}

/* 页面指示器 */
.page-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 165, 165, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #d4a5a5;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(212, 165, 165, 0.6);
}

/* 滑动提示 */
.swipe-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #d4a5a5;
    animation: bounce 2s infinite;
    z-index: 100;
}

.swipe-hint span {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.swipe-hint .arrow {
    font-size: 1.5em;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .couple-names h1 {
        font-size: 2em;
    }
    
    .wedding-title h2 {
        font-size: 1.5em;
    }
    
    .page-2 h2,
    .page-3 h2,
    .page-4 h2,
    .page-5 h2 {
        font-size: 1.8em;
    }
    
    /* 拍立得相册移动端优化 */
    .polaroid-wall {
        height: 450px;
    }
    
    .polaroid-frame {
        width: 110px;
        height: 110px;
    }
    
    .polaroid.featured .polaroid-frame {
        width: 140px;
        height: 140px;
    }
    
    .polaroid.enlarged .polaroid-frame {
        width: 250px;
        height: 250px;
    }
    
    .photo-1 {
        top: 5%;
        left: 2%;
    }
    
    .photo-2 {
        top: 3%;
        left: 30%;
    }
    
    .photo-3 {
        top: 8%;
        right: 2%;
    }
    
    .photo-4 {
        top: 38%;
        left: 0%;
    }
    
    .photo-5.featured {
        top: 32%;
    }
    
    .photo-6 {
        top: 42%;
        right: 0%;
    }
    
    .photo-7 {
        bottom: 12%;
        left: 5%;
    }
    
    .photo-8 {
        bottom: 8%;
        left: 35%;
    }
    
    .photo-9 {
        bottom: 10%;
        right: 5%;
    }
    
    .photo-frame {
        width: 240px;
        height: 300px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-item .icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .info-item .details {
        text-align: center;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    /* 第4页：婚礼信息 - 移动端优化 */
    .page-4 .content {
        max-height: 90vh;
        overflow-y: auto;
        padding: 15px 10px;
    }
    
    .page-4 .subtitle {
        font-size: 0.9em;
        line-height: 1.6;
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .event-card {
        padding: 18px;
        margin-bottom: 15px;
    }
    
    .event-header h3 {
        font-size: 1.2em;
    }
    
    .event-icon {
        font-size: 2em;
        margin-right: 10px;
    }
    
    .event-item {
        font-size: 0.9em;
        line-height: 1.6;
        margin-bottom: 8px;
    }
    
    .event-item .value {
        font-size: 0.85em;
        word-break: break-word;
    }
    
    .contact-info {
        padding: 18px;
    }
    
    .contact-info h3 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .contact-info p {
        font-size: 0.9em;
        line-height: 1.8;
    }
    
    /* 第5页：RSVP表单 - 移动端优化 */
    .page-5 .content {
        max-height: 90vh;
        overflow-y: auto;
        padding: 15px 10px;
    }
    
    .page-5 h2 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }
    
    .page-5 .subtitle {
        font-size: 0.85em;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .rsvp-form {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .checkbox-item {
        padding: 10px 12px;
    }
    
    .checkbox-item span {
        font-size: 0.85em;
        line-height: 1.4;
    }
    
    .checkbox-item input[type="checkbox"] {
        transform: scale(1.1);
        margin-right: 8px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1em;
    }
    
    .success-message {
        padding: 30px 20px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .success-message h3 {
        font-size: 1.5em;
    }
    
    .success-message p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .couple-names h1 {
        font-size: 1.6em;
        letter-spacing: 3px;
    }
    
    .wedding-title h2 {
        font-size: 1.3em;
    }
    
    .enter-btn {
        padding: 12px 40px;
        font-size: 1em;
    }
    
    .rsvp-form {
        padding: 20px;
    }
    
    /* 第4页：超小屏幕优化 */
    .page-4 .subtitle {
        font-size: 0.85em;
        line-height: 1.5;
    }
    
    .event-card {
        padding: 15px;
    }
    
    .event-header h3 {
        font-size: 1.1em;
    }
    
    .event-icon {
        font-size: 1.8em;
    }
    
    .event-item {
        font-size: 0.85em;
    }
    
    .event-item .value {
        font-size: 0.8em;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info h3 {
        font-size: 1em;
    }
    
    .contact-info p {
        font-size: 0.85em;
    }
    
    /* 第5页：超小屏幕优化 */
    .page-5 h2 {
        font-size: 1.5em;
    }
    
    .page-5 .subtitle {
        font-size: 0.8em;
    }
    
    .rsvp-form {
        padding: 15px 12px;
    }
    
    .form-group label {
        font-size: 0.85em;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 9px 10px;
        font-size: 0.85em;
    }
    
    .checkbox-item {
        padding: 8px 10px;
    }
    
    .checkbox-item span {
        font-size: 0.8em;
    }
    
    .submit-btn {
        padding: 11px;
        font-size: 0.95em;
    }
}
/* ===================================
   �?页：时间轴相册样�?
   =================================== */

.timeline-album {
    position: relative;
    padding: 20px 0;
    max-height: 75vh;
    overflow-y: auto;
}

/* 中心�?*/
.timeline-album::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #d4a5a5, #e8d5c4, #d4a5a5);
    transform: translateX(-50%);
}

.timeline-photo {
    position: relative;
    width: 45%;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.timeline-photo.left {
    margin-right: auto;
    text-align: right;
}

.timeline-photo.right {
    margin-left: auto;
    text-align: left;
}

.timeline-photo.featured {
    width: 60%;
    margin: 50px auto;
    text-align: center;
}

.photo-frame {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: inline-block;
    transition: all 0.3s ease;
}

.photo-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.photo-frame img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.photo-frame.large {
    padding: 15px;
}

.timeline-date {
    font-size: 0.9em;
    color: #d4a5a5;
    font-weight: bold;
    margin: 10px 0 5px;
}

.timeline-desc {
    font-size: 1em;
    color: #6b5b4f;
    font-family: 'KaiTi', '楷体', cursive;
}

/* 时间节点圆点 */
.timeline-photo::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #d4a5a5;
    border-radius: 50%;
    z-index: 10;
}

.timeline-photo.left::after {
    right: -8%;
}

.timeline-photo.right::after {
    left: -8%;
}

.timeline-photo.featured::after {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .timeline-album::before {
        left: 20px;
    }
    
    .timeline-photo {
        width: 85%;
        margin-left: 50px !important;
        text-align: left !important;
    }
    
    .timeline-photo::after {
        left: -38px !important;
        right: auto !important;
    }
    
    .timeline-photo.featured {
        width: 90%;
        margin-left: auto !important;
    }
}

/* ===================================
   �?页：拼图墙样�?
   =================================== */

.collage-wall {
    position: relative;
    width: 100%;
    padding: 20px 0;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 隐藏滚动条 */
.collage-wall::-webkit-scrollbar {
    display: none;
}

.collage-wall {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.collage-item {
    position: absolute;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #faf7f2 0%, #f5ebe0 100%);
}

.collage-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.collage-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 不同尺寸 - 通过控制宽度实现 */
.collage-item.small {
    /* 默认单列 */
}

.collage-item.medium {
    /* 中等尺寸，不做特殊处理，让图片自然流动 */
}

.collage-item.large {
    /* 大尺寸，不做特殊处理 */
}

.collage-item.xlarge {
    /* 超大尺寸，不做特殊处理 */
}

.collage-item.wide {
    /* 横向长图，不做特殊处理 */
}

/* 移动端适配由 JavaScript 处理 */
/* ===================================
   新增相册页面样式
   将此内容添加�?style.css 末尾
   =================================== */

/* �?页：瀑布流网格相�?*/
.content-wide {
    max-width: 90%;
    width: 100%;
    overflow-y: auto; /* 允许垂直滚动 */
    max-height: 85vh;
}

.page-3 h2 {
    font-size: 2.2em;
    color: #8b7355;
    margin-bottom: 10px;
    font-weight: 300;
}

.masonry-grid {
    column-count: 3;
    column-gap: 15px;
    padding: 20px 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

/* 移动端适配 */
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 10px;
    }
    
    .masonry-item {
        margin-bottom: 10px;
    }
    
    .content-wide {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 2;
    }
}
