
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #000;
}

/* 音乐控制按钮 */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.music-control:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.music-icon {
    font-size: 24px;
    animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.music-control.paused .music-icon {
    animation: none;
    opacity: 0.5;
}

/* 通用section样式 */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 50px 20px;
    overflow: hidden;
}

/* 背景遮罩层 */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* 第一屏：求婚语 */
.section-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
        url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.proposal-text {
    text-align: center;
    z-index: 10;
    position: relative;
}

/* 装饰线条 */
.decorative-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    margin: 30px auto;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '✦';
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    top: -8px;
}

.decorative-line::before {
    left: -20px;
}

.decorative-line::after {
    right: -20px;
}

.decorative-line.top {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.decorative-line.bottom {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

.main-title {
    font-size: 80px;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.2);
    font-weight: 600;
    letter-spacing: 8px;
}

.main-title .char {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.main-title .char:nth-child(1) { animation-delay: 0.1s; }
.main-title .char:nth-child(2) { animation-delay: 0.2s; }
.main-title .char:nth-child(3) { animation-delay: 0.3s; }
.main-title .char:nth-child(4) { animation-delay: 0.4s; }
.main-title .char:nth-child(5) { animation-delay: 0.5s; }
.main-title .char:nth-child(6) { animation-delay: 0.6s; }
.main-title .char:nth-child(7) { animation-delay: 0.7s; }
.main-title .char:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 爱心容器 */
.heart-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.heart {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8e53 100%);
    position: relative;
    transform: rotate(-45deg);
    animation: heartBeat 1.2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.heart::before,
.heart::after {
    content: '';
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8e53 100%);
    border-radius: 50%;
    position: absolute;
}

.heart::before {
    top: -25px;
    left: 0;
}

.heart::after {
    left: 25px;
    top: 0;
}

.heart:nth-child(2) {
    animation-delay: 0.2s;
}

.heart:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes heartBeat {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    25% { transform: rotate(-45deg) scale(1.2); }
    50% { transform: rotate(-45deg) scale(1); }
}

.subtitle {
    font-size: 24px;
    color: #fff;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    letter-spacing: 2px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-hint {
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-hint span {
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.arrow-down {
    font-size: 30px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(20px); }
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

/* 其他屏幕样式 */
.section-2 { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-image: 
        linear-gradient(135deg, rgba(240, 147, 251, 0.85) 0%, rgba(245, 87, 108, 0.85) 100%),
        url('https://images.unsplash.com/photo-1518199266791-5375a83190b7?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-3 { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-image: 
        linear-gradient(135deg, rgba(79, 172, 254, 0.85) 0%, rgba(0, 242, 254, 0.85) 100%),
        url('https://images.unsplash.com/photo-1511895426328-dc8714191300?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-4 { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    background-image: 
        linear-gradient(135deg, rgba(67, 233, 123, 0.85) 0%, rgba(56, 249, 215, 0.85) 100%),
        url('https://images.unsplash.com/photo-1518199266791-5375a83190b7?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-5 { 
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    background-image: 
        linear-gradient(135deg, rgba(250, 112, 154, 0.85) 0%, rgba(254, 225, 64, 0.85) 100%),
        url('https://images.unsplash.com/photo-1484154218962-a197022b5858?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-6 { 
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    background-image: 
        linear-gradient(135deg, rgba(48, 207, 208, 0.9) 0%, rgba(51, 8, 103, 0.9) 100%),
        url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    z-index: 10;
    position: relative;
}

/* 标题包装器 */
.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.title-icon {
    font-size: 40px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.title-wrapper .title-icon:first-child {
    animation-delay: 0.2s;
}

.title-wrapper .title-icon:last-child {
    animation-delay: 0.6s;
}

.section-title {
    font-size: 60px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease;
    font-weight: 600;
    letter-spacing: 10px;
}

.section.active .section-title {
    opacity: 1;
    transform: translateY(0);
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.image-box {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.image-box:hover img {
    transform: scale(1.1);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-box:hover .image-caption {
    transform: translateY(0);
}

/* 从左边滑入 */
.image-box.slide-left {
    transform: translateX(-200px);
}

.section.active .image-box.slide-left {
    opacity: 1;
    transform: translateX(0);
    animation: bounceIn 0.6s ease;
}

/* 从右边滑入 */
.image-box.slide-right {
    transform: translateX(200px);
}

.section.active .image-box.slide-right {
    opacity: 1;
    transform: translateX(0);
    animation: bounceIn 0.6s ease;
}

/* 弹跳动画 */
@keyframes bounceIn {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.image-box:nth-child(1) { transition-delay: 0.1s; }
.image-box:nth-child(2) { transition-delay: 0.3s; }
.image-box:nth-child(3) { transition-delay: 0.5s; }

.placeholder-image {
    text-align: center;
    color: #fff;
}

.placeholder-image span {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.placeholder-image p {
    font-size: 20px;
    font-weight: bold;
}

.description {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
    font-weight: 300;
    letter-spacing: 2px;
}

.section.active .description {
    opacity: 1;
    transform: translateY(0);
}

/* 第六屏：最终求婚 */
.final-proposal {
    text-align: center;
    z-index: 10;
    position: relative;
}

.ring-container {
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.ring-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.ring {
    font-size: 120px;
    display: inline-block;
    animation: ringRotate 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.5));
    position: relative;
    z-index: 2;
}

@keyframes ringRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(15deg) scale(1.1); }
}

.final-title {
    font-size: 40px;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
    font-weight: 300;
    letter-spacing: 4px;
}

.final-question {
    font-size: 60px;
    color: #fff;
    margin-bottom: 50px;
    text-shadow: 0 4px 30px rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
    font-weight: 600;
    letter-spacing: 6px;
}

.button-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 20px 50px;
    font-size: 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon,
.btn-text {
    position: relative;
    z-index: 1;
}

.btn-yes {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8e53 100%);
    color: #fff;
    animation-delay: 1.3s;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.btn-yes:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
}

.btn-no {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(10px);
    animation-delay: 1.5s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-no:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* 成功弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    animation: scaleIn 0.5s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    font-size: 50px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.modal-content p {
    font-size: 30px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 2px;
}

.fireworks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section {
        padding: 30px 15px;
    }
    
    .music-control {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
    
    .music-icon {
        font-size: 20px;
    }
    
    .main-title {
        font-size: 50px;
        margin-bottom: 20px;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 18px;
        padding: 0 10px;
    }
    
    .decorative-line {
        width: 150px;
    }
    
    .heart {
        width: 40px;
        height: 40px;
    }
    
    .heart::before,
    .heart::after {
        width: 40px;
        height: 40px;
    }
    
    .heart::before {
        top: -20px;
    }
    
    .heart::after {
        left: 20px;
    }
    
    .scroll-hint {
        margin-top: 30px;
    }
    
    .title-icon {
        font-size: 30px;
    }
    
    .section-title {
        font-size: 40px;
        margin-bottom: 30px;
        letter-spacing: 6px;
    }
    
    .image-container {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .image-box {
        width: 250px;
        height: 250px;
    }
    
    .image-caption {
        font-size: 16px;
        padding: 15px;
    }
    
    .placeholder-image span {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .placeholder-image p {
        font-size: 16px;
    }
    
    .description {
        font-size: 20px;
        padding: 0 15px;
    }
    
    .ring {
        font-size: 100px;
    }
    
    .final-title {
        font-size: 32px;
    }
    
    .final-question {
        font-size: 40px;
        margin-bottom: 40px;
        letter-spacing: 3px;
    }
    
    .button-container {
        gap: 20px;
        padding: 0 15px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 18px;
    }
    
    .modal-content {
        padding: 40px 30px;
        margin: 0 20px;
        border-radius: 20px;
    }
    
    .modal-content h2 {
        font-size: 35px;
    }
    
    .modal-content p {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 20px 10px;
    }
    
    .music-control {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    
    .music-icon {
        font-size: 18px;
    }
    
    .main-title {
        font-size: 35px;
        margin-bottom: 15px;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 16px;
        padding: 0 15px;
        line-height: 1.6;
    }
    
    .decorative-line {
        width: 120px;
    }
    
    .heart-container {
        gap: 15px;
        margin: 20px 0;
    }
    
    .heart {
        width: 35px;
        height: 35px;
    }
    
    .heart::before,
    .heart::after {
        width: 35px;
        height: 35px;
    }
    
    .heart::before {
        top: -17.5px;
    }
    
    .heart::after {
        left: 17.5px;
    }
    
    .scroll-hint {
        margin-top: 25px;
    }
    
    .scroll-hint span {
        font-size: 14px;
    }
    
    .arrow-down {
        font-size: 24px;
    }
    
    .title-icon {
        font-size: 24px;
    }
    
    .title-wrapper {
        gap: 15px;
    }
    
    .section-title {
        font-size: 30px;
        margin-bottom: 25px;
        letter-spacing: 4px;
    }
    
    .image-container {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .image-box {
        width: 160px;
        height: 160px;
        border-radius: 15px;
    }
    
    .image-caption {
        font-size: 14px;
        padding: 12px;
    }
    
    .placeholder-image span {
        font-size: 50px;
        margin-bottom: 10px;
    }
    
    .placeholder-image p {
        font-size: 14px;
    }
    
    .description {
        font-size: 16px;
        padding: 0 20px;
        line-height: 1.6;
    }
    
    .ring {
        font-size: 80px;
    }
    
    .ring-container {
        margin-bottom: 30px;
    }
    
    .final-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .final-question {
        font-size: 28px;
        margin-bottom: 30px;
        padding: 0 10px;
        letter-spacing: 2px;
    }
    
    .button-container {
        gap: 15px;
        padding: 0 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 12px 40px;
        font-size: 16px;
        min-width: 200px;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .modal-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .modal-content p {
        font-size: 18px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .main-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .image-box {
        width: 140px;
        height: 140px;
    }
    
    .placeholder-image span {
        font-size: 40px;
    }
    
    .placeholder-image p {
        font-size: 12px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .final-question {
        font-size: 24px;
    }
    .btn {
        padding: 10px 30px;
        font-size: 14px;
        min-width: 180px;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .section {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .heart-container {
        margin: 15px 0;
    }
    
    .scroll-hint {
        margin-top: 20px;
    }
    
    .section-title {
        font-size: 35px;
        margin-bottom: 20px;
    }
    
    .image-box {
        width: 180px;
        height: 180px;
    }
    
    .placeholder-image span {
        font-size: 50px;
    }
    
    .ring {
        font-size: 80px;
    }
    
    .final-question {
        font-size: 35px;
        margin-bottom: 25px;
    }
}
    