body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(to bottom, #0a1f3b, #1a3b6d);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 雪地 */
.floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: #ffffff;  /* 纯白色的雪地 */
    box-shadow: 0 -5px 15px rgba(255,255,255,0.3);  /* 添加柔和的光晕效果 */
}

.snow-ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;  /* 降低雪地高度 */
    background: #ffffff;
    box-shadow: 0 -5px 15px rgba(255,255,255,0.3);
}

/* 雪堆效果 */
.snow-hill {
    position: absolute;
    bottom: -20px;
    left: var(--left);
    width: var(--size);
    height: calc(var(--size) * 0.9);  /* 降低雪堆高度 */
    background: #ffffff;
    border-radius: 40% 60% 0 0;
    transform: rotate(var(--rotate, 0deg));
    box-shadow: 
        inset -5px -5px 15px rgba(0,0,0,0.1),
        inset 5px 5px 15px rgba(255,255,255,0.8);
    z-index: 1;
}

.snow-hill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent,
        rgba(255,255,255,0.3) 50%,
        transparent
    );
    border-radius: inherit;
}

/* 礼物堆 */
.presents {
    position: absolute;
    bottom: 40px;  /* 从90px降低到40px，让礼物贴近地面 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: flex-end;
    z-index: 3;
}

.present {
    position: relative;
    border-radius: 8px;
    background: var(--color);
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.2),  /* 减小阴影范围 */
        0 5px 15px rgba(255,255,255,0.8);  /* 调整光晕效果 */
}

.present.large {
    width: 100px;
    height: 100px;
}

.present.medium {
    width: 80px;
    height: 80px;
}

.present.small {
    width: 60px;
    height: 60px;
}

/* 礼物盒缎带 */
.ribbon {
    position: absolute;
    background: var(--ribbon);
}

.ribbon::before,
.ribbon::after {
    content: '';
    position: absolute;
    background: var(--ribbon);
}

.present .ribbon {
    top: 50%;
    left: 0;
    width: 100%;
    height: 10px;
    transform: translateY(-50%);
}

.present .ribbon::before {
    top: 50%;
    left: 50%;
    width: 10px;
    height: 100%;
    transform: translate(-50%, -50%);
}

/* 飘雪效果 */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        /* 大雪花 */
        radial-gradient(4px 4px at 100px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 200px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 300px 250px, #fff, rgba(0,0,0,0)),
        /* 中等雪花 */
        radial-gradient(3px 3px at 50px 200px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 150px 300px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 250px 100px, #fff, rgba(0,0,0,0)),
        /* 小雪花 */
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0));
    background-size: 400px 400px;
    animation: snowfall 10s linear infinite;
}

@keyframes snowfall {
    0% {
        background-position: 
            0 0, 0 0, 0 0,
            0 0, 0 0, 0 0,
            0 0, 0 0, 0 0,
            0 0, 0 0, 0 0;
    }
    100% {
        background-position: 
            /* 大雪花移动 */
            400px 400px, 
            -200px 400px,
            200px 600px,
            /* 中等雪花移动 */
            300px 300px,
            -100px 500px,
            100px 400px,
            /* 小雪花移动 */
            200px 200px,
            400px 400px,
            -200px 300px,
            -100px 250px,
            -300px 400px,
            100px 300px;
    }
}

/* 添加更多的雪花层，创造深度感 */
.snowfall::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(3px 3px at 150px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 250px 250px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 350px 350px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 450px 450px, #fff, rgba(0,0,0,0));
    background-size: 400px 400px;
    animation: snowfall-layer2 12s linear infinite;
}

@keyframes snowfall-layer2 {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 
            300px 600px,
            -200px 400px,
            400px 500px,
            -300px 300px;
    }
}

/* 添加礼物的光晕效果 */
.present::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 12px;
    background: radial-gradient(
        circle at center,
        rgba(255,255,255,0.2),
        transparent 70%
    );
    filter: blur(5px);
    z-index: -1;
}

/* 添加雪人样式 */
.snowman {
    position: absolute;
    bottom: 20px;
    left: var(--left);
    transform: translateX(-50%);
    z-index: 2;
}

/* 中间的大雪人 */
.snowman.center {
    --size: 120px;
    width: var(--size);
    height: calc(var(--size) * 2);
}

/* 两边的中等雪人 */
.snowman.left,
.snowman.right {
    --size: 90px;
    width: var(--size);
    height: calc(var(--size) * 1.8);
}

/* 雪人身体 */
.snowman::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60%;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1);
}

/* 雪人头部 */
.snowman::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 45%;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1);
}

/* 雪人的装饰 */
.snowman {
    /* 保持原有样式 */
    position: absolute;
    bottom: 20px;
    left: var(--left);
    transform: translateX(-50%);
    z-index: 2;
}

/* 雪人的眼睛 */
.snowman::before {
    content: '';
    position: absolute;
    top: 25%;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: 25px 0 #333;  /* 创建第二只眼睛 */
    z-index: 3;
}

/* 雪人的胡萝卜鼻子 */
.snowman .nose {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 20px solid #ff6b3d;
    transform-origin: top;
    transform: translateX(-50%) rotate(90deg);
    z-index: 3;
}

/* 雪人的围巾 */
.snowman .scarf {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 15px;
    background: #ff4444;
    border-radius: 5px;
    z-index: 3;
}

.snowman .scarf::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 20%;
    width: 20px;
    height: 40px;
    background: #ff4444;
    border-radius: 5px;
}

/* 雪人的帽子 */
.snowman .hat {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.snowman .hat::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 10px;
    background: #333;
    border-radius: 5px;
}

.snowman .hat::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 30px;
    background: #333;
    border-radius: 5px 5px 0 0;
}

/* 调整不同大小雪人的装饰比例 */
.snowman.center {
    --size: 120px;
    --eye-size: 10px;
    --nose-size: 25px;
    --scarf-width: 120%;
}

.snowman.left,
.snowman.right {
    --size: 90px;
    --eye-size: 8px;
    --nose-size: 20px;
    --scarf-width: 100%;
}

/* 添加欢迎界面样式 */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #0a1f3b, #1a3b6d);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.welcome-content {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.welcome-content h1 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#nameInput {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    font-size: 16px;
    width: 200px;
    outline: none;
    transition: all 0.3s ease;
}

#nameInput:focus {
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

#enterBtn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: #ff4444;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#enterBtn:hover {
    background: #ff6666;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,68,68,0.3);
}

/* 雪景场景的过渡效果 */
.scene {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 圣诞快乐文字样式 */
.christmas-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.christmas-text h1 {
    color: #fff;
    font-size: 72px;
    text-shadow: 
        0 0 10px rgba(255,255,255,0.5),
        0 0 20px rgba(255,255,255,0.3),
        0 0 30px rgba(255,255,255,0.2);
    margin: 0;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.christmas-text .name-text {
    color: #fff;
    font-size: 24px;
    margin-top: 10px;
    opacity: 0.8;
}

@keyframes textGlow {
    from {
        text-shadow: 
            0 0 10px rgba(255,255,255,0.5),
            0 0 20px rgba(255,255,255,0.3),
            0 0 30px rgba(255,255,255,0.2);
    }
    to {
        text-shadow: 
            0 0 20px rgba(255,255,255,0.6),
            0 0 30px rgba(255,255,255,0.4),
            0 0 40px rgba(255,255,255,0.3);
    }
}

/* 用户名样式 */
.user-name {
    color: #ffd700;  /* 金色 */
    font-size: 72px;
    text-shadow: 
        0 0 10px rgba(255,215,0,0.5),
        0 0 20px rgba(255,215,0,0.3),
        0 0 30px rgba(255,215,0,0.2);
}

/* 简化音乐控制按钮样式 */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#musicToggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#musicToggle:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* 新年祝福文字样式 */
.newyear-text {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.newyear-text h1 {
    color: #ff4444;
    font-size: 72px;
    text-shadow: 
        0 0 10px rgba(255,68,68,0.5),
        0 0 20px rgba(255,68,68,0.3),
        0 0 30px rgba(255,68,68,0.2);
    margin: 0;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.wishes {
    margin-top: 30px;
}

.wishes p {
    color: #ffd700;
    font-size: 36px;
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.wishes p:nth-child(2) { animation-delay: 0.5s; }
.wishes p:nth-child(3) { animation-delay: 1s; }
.wishes p:nth-child(4) { animation-delay: 1.5s; }
.wishes p:nth-child(5) { animation-delay: 2s; }
.wishes p:nth-child(6) { animation-delay: 2.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 