body {
    background: linear-gradient(135deg, #f1d5da 0%, #ffdae0 50%, #f8c8d8 100%); /* 渐变粉色背景 */
    text-align: center;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

/* 背景歌词 */
#lyrics-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none; /* 让鼠标事件穿透 */
}

.lyrics-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    white-space: pre-wrap;
    font-size: 1.6em;
    font-weight: bold;
    color: rgba(104, 73, 91, 0.08);
    line-height: 2;
    text-align: center;
    animation: scroll-lyrics 120s linear infinite;
}

@keyframes scroll-lyrics {
    from {
        transform: translate(-50%, 100vh);
    }
    to {
        transform: translate(-50%, -100%);
    }
}

/* 场景样式 */
.scene {
    position: fixed;
    z-index: 1; /* 确保场景在歌词之上 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    transform: translateX(100%);
}

.scene.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.scene.prev {
    transform: translateX(-100%);
}

.scene-content {
    max-width: 90%;
    width: 500px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.scene-title {
    font-size: 2.5em;
    color: #68495b;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.scene-image-container {
    margin: 30px 0;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    margin: 30px 0;
}

.scene-lyric {
    font-size: 1.1em;
    line-height: 1.6;
    color: #68495b;
    font-style: italic;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f1d5da;
}

.next-btn {
    background: linear-gradient(45deg, #d4818e, #c56e81);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 129, 142, 0.3);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(212, 129, 142, 0.4);
}

/* 动画效果 */
.heart-beat {
    font-size: 4em;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.floating-hearts {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-hearts .heart {
    position: absolute;
    font-size: 2em;
    animation: float 3s ease-in-out infinite;
}

.floating-hearts .heart:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.floating-hearts .heart:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
}

.floating-hearts .heart:nth-child(3) {
    left: 80%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.sparkles {
    font-size: 3em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        text-shadow: 0 0 10px #ffd700;
    }
    50% { 
        transform: rotate(180deg) scale(1.3);
        text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

.couple-emoji {
    font-size: 3.5em;
    animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.thinking-emoji {
    font-size: 3.5em;
    animation: think 2s ease-in-out infinite;
}

@keyframes think {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* 原表白场景样式 */
.container {
    width: 90%; /* 适应手机屏幕宽度 */
    max-width: 500px; /* 最大宽度限制 */
}

#mainImage {
    width: 100%; /* 图片宽度自适应容器 */
    max-width: 200px; /* 最大宽度限制 */
    transition: all 0.3s ease;
}

h1 {
    font-size: 5vw; /* 字体大小根据视口宽度变化 */
    color: #68495b;
    margin: 20px 0; /* 增加上下间距 */
    transition: all 0.3s ease;
}

button {
    font-size: 4vw; /* 字体大小根据视口宽度变化 */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
}

#yes {
    background-color: #d4818e; /* 粉色 */
    color: white;
}

#no {
    background-color: #6784b1; /* 蓝色 */
    color: white;
    position: relative;
}

.yes-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffdae0; /* 粉色 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yes-text {
    font-size: 7vw; /* 字体大小根据视口宽度变化 */
}

.yes-image {
    width: 50%; /* 图片宽度自适应容器 */
    max-width: 300px; /* 最大宽度限制 */
}

.love-message {
    font-size: 1.2em;
    line-height: 1.8;
    color: #68495b;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 电脑端样式优化 */
@media (min-width: 768px) {
    .scene-content {
        width: 600px;
        padding: 50px;
    }
    
    .scene-title {
        font-size: 3em;
    }
    
    .scene-text {
        font-size: 1.3em;
    }

    #mainImage {
        width: 200px; /* 固定图片宽度 */
    }

    h1 {
        font-size: 28px; /* 固定字体大小 */
        margin: 20px 0;
    }

    button {
        font-size: 18px; /* 固定字体大小 */
    }

    .yes-text {
        font-size: 36px; /* 固定字体大小 */
    }

    .yes-image {
        width: 300px; /* 固定图片宽度 */
    }
}