/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    color: #333;
    background: #f8f5f0;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #f8f5f0 0%, #f0ebe3 50%, #f8f5f0 100%);
}

/* 音乐控制 */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.music-control:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.music-icon {
    width: 20px;
    height: 20px;
    color: #c41e3a;
}

.music-icon.playing {
    animation: musicRotate 3s linear infinite;
}

@keyframes musicRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 花瓣飘落 */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -50px;
    font-size: 20px;
    opacity: 0.6;
    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 页面通用样式 */
.page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 30px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 第一页：封面 */
.page-cover {
    padding: 0;
    justify-content: center;
    min-height: 100vh;
    color: #fff;
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
 //   background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 0;
}

.cover-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/DSC03701.jpg') center/cover no-repeat;
    opacity: 0.3;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);*/
    background: linear-gradient(180deg, rgb(222 17 17 / 0%) 0%, rgb(170 23 202 / 14%) 100%);
    z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 30px;
}

.cover-date {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 30px;
    font-family: 'Noto Serif SC', serif;
    opacity: 0.9;
}

.cover-title {
    margin-bottom: 40px;
}

.title-chinese {
    display: block;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 64px;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.title-english {
    display: block;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 6px;
    font-style: italic;
    opacity: 0.85;
    font-family: 'Georgia', serif;
}

.cover-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 400;
}

.name-symbol {
    color: #e74c3c;
    font-size: 36px;
    font-family: 'Ma Shan Zheng', cursive;
}

.cover-quote {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.7;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-hint span {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 第二页：邀请函 */
.page-invitation {
    background: linear-gradient(180deg, #f8f5f0 0%, #f0ebe3 100%);
}

.invitation-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    text-align: center;
}

.title-handwrite {
    display: block;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 42px;
    font-weight: normal;
    color: #333;
    margin-bottom: 15px;
}

.title-english {
    display: block;
    font-size: 18px;
    font-weight: 300;
    color: #666;
    letter-spacing: 3px;
    font-style: italic;
    font-family: 'Georgia', serif;
}

.invitation-text {
    text-align: center;
    margin-bottom: 50px;
    line-height: 2.2;
    font-size: 16px;
    color: #555;
}

.invitation-text p {
    margin-bottom: 8px;
}

/* 照片框样式 */
.photo-frame {
    width: 100%;
    max-width: 350px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    background: #fff;
    padding: 8px;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.photo-frame.placeholder {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.photo-large {
    max-width: 320px;
}

.quote-bottom {
    text-align: center;
    margin-top: 20px;
}

.quote-english {
    font-size: 14px;
    font-style: italic;
    color: #888;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.quote-chinese {
    font-size: 15px;
    color: #666;
    font-family: 'Ma Shan Zheng', cursive;
}

/* 第三页：婚纱照展示 */
.page-photos {
    background: linear-gradient(180deg, #f0ebe3 0%, #f8f5f0 100%);
}

.music-hint {
    text-align: center;
    margin-bottom: 40px;
    color: #999;
    font-size: 14px;
    letter-spacing: 2px;
}

.photo-portrait {
    max-width: 300px;
    margin-bottom: 50px;
}

.photo-quote {
    text-align: center;
    line-height: 2.2;
    font-size: 16px;
    color: #555;
}

.photo-quote p {
    margin-bottom: 8px;
}

/* 第四页：照片拼贴 */
.page-collage {
    background: linear-gradient(180deg, #f8f5f0 0%, #f0ebe3 100%);
}

.collage-top {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 350px;
}

.photo-small {
    flex: 1;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 5px;
}

.photo-small img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.photo-small.placeholder {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.photo-medium {
    flex: 1.5;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 5px;
}

.photo-medium img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-medium.placeholder {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.collage-date {
    font-family: 'Georgia', serif;
    font-size: 36px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 4px;
}

.collage-text {
    text-align: left;
    line-height: 2.2;
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
    max-width: 350px;
    width: 100%;
}

.collage-text p {
    margin-bottom: 8px;
}

.divider {
    text-align: center;
    letter-spacing: 8px;
    color: #999;
    margin: 20px 0;
}

.text-right {
    text-align: right;
    font-style: italic;
    font-family: 'Georgia', serif;
    color: #666;
}

.photo-full {
    width: 100%;
    max-width: 100%;
    margin: 0 -30px;
    padding: 0;
    box-shadow: none;
}

.photo-full img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* 第五页：竖排文字 */
.page-vertical {
    background: linear-gradient(180deg, #f0ebe3 0%, #f8f5f0 100%);
}

.vertical-top {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 350px;
    align-items: flex-start;
}

.photo-vertical-left {
    flex: 2;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 5px;
}

.photo-vertical-left img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.photo-vertical-left.placeholder {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.vertical-text {
    flex: 1;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 20px;
    color: #333;
    letter-spacing: 4px;
    line-height: 2;
    padding-top: 20px;
}

.photo-center {
    max-width: 320px;
    margin-bottom: 40px;
}

.vertical-quote {
    text-align: center;
    line-height: 2.2;
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

.vertical-quote p {
    margin-bottom: 8px;
}

.vertical-bottom-text {
    text-align: center;
    margin-top: 20px;
}

.handwrite-large {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 32px;
    color: #c41e3a;
    letter-spacing: 8px;
}

/* 第六页：日历 */
.page-calendar {
    background: linear-gradient(180deg, #f8f5f0 0%, #f0ebe3 100%);
}

.photo-arch {
    width: 100%;
    max-width: 350px;
    height: 250px;
    overflow: hidden;
    border-radius: 175px 175px 0 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.photo-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-arch.placeholder {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.calendar-container {
    width: 100%;
    max-width: 320px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c41e3a;
}

.calendar-header .year {
    font-size: 24px;
    font-weight: 300;
    color: #c41e3a;
    font-family: 'Georgia', serif;
}

.calendar-header .month {
    font-size: 48px;
    font-weight: 300;
    color: #c41e3a;
    font-family: 'Georgia', serif;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-days span {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.calendar-days .empty {
    visibility: hidden;
}

.calendar-days .wedding-day {
    background: #c41e3a;
    color: #fff;
    font-weight: 500;
    position: relative;
}

.calendar-days .wedding-day .heart {
    position: absolute;
    top: -8px;
    right: -5px;
    font-size: 12px;
    animation: heartBeat 1s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.wedding-info {
    text-align: center;
    line-height: 2;
}

.wedding-datetime {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.wedding-lunar {
    font-size: 15px;
    color: #666;
}

/* 第七页：地址 */
.page-address {
    background: linear-gradient(180deg, #f0ebe3 0%, #f8f5f0 100%);
}

.photo-strip {
    width: 100%;
    height: 150px;
    overflow: hidden;
    margin: -60px -30px 40px;
    padding: 0;
    position: relative;
}

.photo-strip::before,
.photo-strip::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 1;
}

.photo-strip::before {
    left: 0;
    background: linear-gradient(90deg, #f0ebe3 0%, transparent 100%);
}

.photo-strip::after {
    right: 0;
    background: linear-gradient(-90deg, #f0ebe3 0%, transparent 100%);
}

.photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-strip.placeholder {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.address-title {
    font-family: 'Georgia', serif;
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 4px;
    font-style: italic;
}

.map-container {
    width: 100%;
    max-width: 320px;
    height: 200px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4e8 0%, #d4e8d4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-pin {
    font-size: 36px;
    margin-bottom: 10px;
    animation: pinBounce 2s infinite;
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.map-location {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.nav-btn {
    background: #c41e3a;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #a01830;
    transform: scale(1.05);
}

.nav-btn svg {
    width: 16px;
    height: 16px;
}

.address-detail {
    text-align: center;
    margin-bottom: 40px;
    line-height: 2;
}

.address-venue {
    font-size: 17px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.address-full {
    font-size: 15px;
    color: #666;
}

.address-quote {
    text-align: center;
    line-height: 2.2;
    font-size: 15px;
    color: #555;
}

.address-quote p {
    margin-bottom: 8px;
}

/* 第八页：RSVP */
.page-rsvp {
    background: linear-gradient(180deg, #f8f5f0 0%, #f0ebe3 100%);
    padding-bottom: 80px;
}

.photo-wide {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: -60px -30px 40px;
}

.photo-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-wide.placeholder {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.rsvp-title {
    font-family: 'Georgia', serif;
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 6px;
    font-style: italic;
}

.rsvp-form {
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    background: #fff;
    color: #333;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-group .required {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #c41e3a;
    font-size: 16px;
}

.form-group input {
    padding-left: 30px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.3s ease;
    letter-spacing: 4px;
}

.submit-btn:hover {
    background: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.3);
}

.contact-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 300px;
}

.contact-btn {
    flex: 1;
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.contact-btn svg {
    width: 16px;
    height: 16px;
}

.rsvp-quote {
    text-align: center;
    line-height: 2.2;
    font-size: 15px;
    color: #555;
    margin-bottom: 40px;
}

.rsvp-quote p {
    margin-bottom: 8px;
}

.quote-highlight {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    color: #c41e3a;
    margin-top: 15px;
}

.footer-text {
    text-align: center;
    color: #999;
    font-size: 14px;
    letter-spacing: 3px;
    font-family: 'Ma Shan Zheng', cursive;
}

/* 响应式适配 */
@media (max-width: 375px) {
    .title-chinese {
        font-size: 52px;
    }
    
    .cover-date {
        font-size: 26px;
    }
    
    .cover-names {
        font-size: 24px;
    }
    
    .title-handwrite {
        font-size: 36px;
    }
    
    .page {
        padding: 50px 20px;
    }
}

@media (min-width: 768px) {
    .page {
        padding: 80px 50px;
    }
    
    .photo-frame {
        max-width: 400px;
    }
    
    .collage-top,
    .vertical-top,
    .calendar-container,
    .map-container,
    .rsvp-form,
    .contact-buttons {
        max-width: 400px;
    }
    
    .photo-arch {
        max-width: 400px;
        height: 300px;
    }
}

/* 自动滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #c41e3a, #e74c3c);
    z-index: 999;
    transition: width 0.1s linear;
}
