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

/* 根变量定义 */
:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --secondary-light: #f472b6;
    --accent-color: #f59e0b;
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #000000;
    --text-secondary: #666666;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-tertiary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
    --transition-elastic: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 基础样式 */
body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* 粒子背景 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* 容器样式 */
.container {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 英雄区 */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    opacity: 0.1;
    animation: expandPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes expandPulse {
    0%, 100% {
        width: 0;
        height: 0;
        opacity: 0.1;
    }
    50% {
        width: 100vw;
        height: 100vw;
        opacity: 0.05;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: heroContentAppear 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes heroContentAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.title {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: titleWordAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    transform-origin: center;
    cursor: pointer;
    transition: all var(--transition-elastic);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
}

.title-word:nth-child(1) {
    animation-delay: 0.5s;
}

.title-word:nth-child(2) {
    animation-delay: 1s;
}

.title-word:nth-child(3) {
    animation-delay: 1.5s;
}

@keyframes titleWordAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 0 0 30px rgba(99, 102, 241, 0.8), 0 0 60px rgba(236, 72, 153, 0.6), 0 0 80px rgba(245, 158, 11, 0.4);
    }
}

.title-word:hover {
    transform: scale(1.3) rotate(5deg);
    text-shadow: 0 0 40px rgba(99, 102, 241, 1), 0 0 80px rgba(236, 72, 153, 0.8), 0 0 120px rgba(245, 158, 11, 0.6);
    transition: all 0.3s ease;
}

.title-word::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.title-word:hover::after {
    width: 100%;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--secondary-color);
    font-weight: 500;
    opacity: 0;
    animation: subtitleAppear 1s ease-out 2s forwards;
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
    margin-bottom: 2.5rem;
}

@keyframes subtitleAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 25px rgba(236, 72, 153, 0.8), 0 0 50px rgba(236, 72, 153, 0.4);
    }
}

.cta-button {
    margin-top: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.3);
    opacity: 0;
    animation: ctaButtonAppear 1s ease-out 2.5s forwards;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

@keyframes ctaButtonAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.6), 0 0 60px rgba(236, 72, 153, 0.4);
    }
}

.cta-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 ease;
    z-index: 1;
}

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

.cta-button:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.8), 0 0 80px rgba(236, 72, 153, 0.6);
}

.cta-button:active {
    transform: scale(1.05);
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.button-icon {
    font-size: 1.8rem;
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

/* 滑动互动区 */
.sliding-section {
    padding: 2rem;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: none;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sliding-section.active {
    opacity: 1;
    transform: translateY(0);
    display: flex;
    animation: slidingSectionAppear 1s ease-out forwards;
}

@keyframes slidingSectionAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sliding-container {
    max-width: 900px;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

/* 滑动背景 */
.sliding-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.background-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.background-clouds .cloud {
    position: absolute;
    font-size: 4rem;
    opacity: 0.3;
    animation: cloudFloat 25s linear infinite;
}

.background-clouds .cloud:nth-child(1) {
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.background-clouds .cloud:nth-child(2) {
    top: 30%;
    left: -100px;
    animation-delay: 8s;
}

.background-clouds .cloud:nth-child(3) {
    top: 60%;
    left: -100px;
    animation-delay: 16s;
}

@keyframes cloudFloat {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(100vw);
    }
}

.background-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: heartFloat 6s ease-in-out infinite;
}

.floating-heart:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-heart:nth-child(3) {
    top: 70%;
    left: 20%;
    animation-delay: 3s;
}

.floating-heart:nth-child(4) {
    top: 30%;
    left: 45%;
    animation-delay: 4.5s;
}

.floating-heart:nth-child(5) {
    top: 60%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) rotate(-10deg);
        opacity: 0.9;
    }
}

/* 浪漫动画区 */
.romantic-animation {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 3rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
    border-radius: 2rem;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 动画背景 */
.animation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* 爱心粒子 */
.love-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.love-particles::before,
.love-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

.love-particles::after {
    animation-delay: 10s;
    opacity: 0.6;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(5%) translateY(-5%) scale(1.1);
    }
    50% {
        transform: translateX(-3%) translateY(3%) scale(0.9);
    }
    75% {
        transform: translateX(2%) translateY(2%) scale(1.05);
    }
}

/* 浪漫文字 */
.romantic-text {
    position: relative;
    z-index: 3;
    text-align: center;
    opacity: 0;
    animation: romanticTextAppear 2s ease-out forwards;
    animation-delay: 0.5s;
}

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

.romantic-line1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.romantic-line2 {
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--secondary-color);
    animation: textFade 3s ease-in-out infinite alternate;
    opacity: 0.9;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 15px rgba(99, 102, 241, 0.5), 0 0 30px rgba(236, 72, 153, 0.3);
    }
    to {
        text-shadow: 0 0 25px rgba(99, 102, 241, 0.8), 0 0 50px rgba(236, 72, 153, 0.6), 0 0 70px rgba(245, 158, 11, 0.4);
    }
}

@keyframes textFade {
    from {
        opacity: 0.8;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(-5px);
        text-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
    }
}

/* 中心爱心 */
.heart-center {
    position: relative;
    z-index: 3;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 脉动爱心 */
.pulsing-heart {
    font-size: 4rem;
    animation: heartPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 4;
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.8));
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pulsing-heart:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 35px rgba(236, 72, 153, 1));
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    25% {
        transform: scale(1.3) rotate(-5deg);
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(236, 72, 153, 1));
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.95;
    }
    75% {
        transform: scale(1.4) rotate(-3deg);
        opacity: 1;
        filter: drop-shadow(0 0 35px rgba(236, 72, 153, 1));
    }
}

/* 爱心环绕圆环 */
.heart-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--gradient-primary);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(to right, transparent, transparent),
                      linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    animation: ringExpand 3s ease-out infinite;
    opacity: 0;
    z-index: 3;
}

.heart-ring:nth-child(2) {
    animation-delay: 0s;
}

.heart-ring:nth-child(3) {
    animation-delay: 1s;
}

.heart-ring:nth-child(4) {
    animation-delay: 2s;
}

@keyframes ringExpand {
    0% {
        opacity: 0.8;
        transform: scale(0.5);
        border-width: 3px;
    }
    100% {
        opacity: 0;
        transform: scale(2);
        border-width: 1px;
    }
}

/* 男孩手持花朵动画 */
.boy-with-flower {
    font-size: 8rem;
    animation: boyFlowerAnimation 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.8));
}

/* 交互提示 */
.interaction-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 15;
    transition: all var(--transition-slow);
    pointer-events: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.interaction-hint p {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hint-arrow {
    font-size: 4rem;
    color: var(--secondary-color);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(25px) scale(1.25);
        opacity: 1;
    }
}

/* 最终场景 */
.final-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.final-scene.active {
    opacity: 1;
    visibility: visible;
}

.final-content {
    text-align: center;
    padding: 2rem;
    max-width: 80%;
    animation: finalSceneAppear 1s ease-out forwards;
}

@keyframes finalSceneAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.final-character {
    margin-bottom: 2rem;
}

.final-text h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: finalTextGlow 2s ease-in-out infinite alternate;
}

.final-text p {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

@keyframes finalTextGlow {
    from {
        text-shadow: 0 0 15px rgba(99, 102, 241, 0.5), 0 0 30px rgba(236, 72, 153, 0.3);
    }
    to {
        text-shadow: 0 0 25px rgba(99, 102, 241, 0.8), 0 0 50px rgba(236, 72, 153, 0.6);
    }
}

/* 接受花朵动画 */
@keyframes acceptFlower {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 最终展示内容 */
.final-display {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: 1rem;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: finalDisplayAppear 1s ease-out forwards 0.5s;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes finalDisplayAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.final-display h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.final-display p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* 滑动提示隐藏动画 */
.interaction-hint.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
}

/* 移动设备优化 */
@media (max-width: 768px) {
    .sliding-section {
        padding: 1rem;
    }
    
    .sliding-container {
        padding: 2rem 1rem;
    }
    
    .sliding-track {
        height: 150px;
        margin: 2rem 0;
    }
    
    .sliding-boy, .sliding-girl {
        width: 60px;
        height: 60px;
        bottom: 15px;
    }
    
    .sliding-boy {
        left: 15px;
    }
    
    .sliding-girl {
        right: 15px;
    }
    
    .character-icon {
        font-size: 2.5rem;
    }
    
    .boy-with-flower {
        font-size: 4rem;
    }
    
    .hint-arrow {
        font-size: 2rem;
    }
}

/* 消息区域 */
.message-section {
    padding: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-slow);
    display: none;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-section.active {
    opacity: 1;
    transform: translateY(0);
    display: flex;
}

.message-container {
    max-width: 600px;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.message-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
    transform: scale(1.1);
}

.message-content {
    position: relative;
    z-index: 2;
}

.message-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 500;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
}

.message-text p {
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.message-text p:nth-child(1) { animation-delay: 0.2s; }
.message-text p:nth-child(2) { animation-delay: 0.4s; }
.message-text p:nth-child(3) { animation-delay: 0.6s; }
.message-text p:nth-child(4) { animation-delay: 0.8s; }
.message-text p:nth-child(5) { animation-delay: 1s; }

.message-heart {
    font-size: clamp(3rem, 10vw, 5rem);
    animation: heartbeat 1.5s ease-in-out infinite, float 3s ease-in-out infinite;
    cursor: pointer;
    transition: all var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards, heartbeat 1.5s ease-in-out infinite;
}

.message-heart:hover {
    transform: scale(1.2);
    text-shadow: 0 0 30px rgba(236, 72, 153, 0.8);
}

/* 漂浮元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.5;
    animation: floatUp 6s ease-in-out infinite;
    user-select: none;
}

.floating-element:nth-child(odd) {
    animation-delay: 0s;
}

.floating-element:nth-child(even) {
    animation-delay: 3s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    body::after {
        display: none;
    }
    
    .hero {
        padding: 1rem;
    }
    
    .title {
        font-size: clamp(3rem, 12vw, 8rem);
        gap: 0.25rem;
    }
    
    .subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .game-section {
        padding: 1rem;
    }
    
    .game-container {
        padding: 1.5rem;
    }
    
    .game-area {
        height: 300px;
    }
    
    .message-section {
        padding: 1rem;
    }
    
    .message-container {
        padding: 2rem 1.5rem;
    }
    
    .message-text {
        font-size: 1rem;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-button {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: clamp(2.5rem, 10vw, 6rem);
    }
    
    .game-area {
        height: 250px;
    }
    
    .message-text {
        text-align: center;
    }
}