/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1f3d 100%);
    overflow: hidden;
    font-family: 'Playfair Display', serif;
}

/* 主容器样式 */
.main-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
}

/* 祝福语容器 */
.greeting-container {
    margin-bottom: 40px;
}

/* 英文祝福 */
.greeting-english {
    margin-bottom: 20px;
}

.happy {
    font-family: 'Dancing Script', cursive;
    font-size: 5em;
    color: #fff;
    display: block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    margin-bottom: -20px;
    animation: fadeInDown 1.5s ease-out;
}

.new-year {
    font-family: 'Cinzel', serif;
    font-size: 3.5em;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1.5s ease-out;
}

/* 年份样式 */
.year-number {
    font-family: 'Ma Nier', serif;
    font-size: 8em;
    margin: 10px 0;
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeIn 2s ease-out;
}

/* 中文祝福 */
.greeting-chinese {
    margin-top: 20px;
    animation: fadeInUp 1.5s ease-out;
}

.chinese-main {
    font-size: 3.5em;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.chinese-sub {
    font-size: 1.8em;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 5px;
}

/* 倒计时样式 */
.countdown-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 40px;
    margin: 0 auto;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 2s ease-out;
}

.countdown-title {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.countdown-numbers {
    font-size: 2.5em;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 雪花效果 */
.snowflake {
    color: #fff;
    font-size: 1.2em;
    position: fixed;
    top: -10%;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    opacity: 0.5;
    z-index: 1;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* 气泡效果 */
.bubble {
    position: fixed;
    bottom: -20px;
    background: radial-gradient(circle at 50% 50%, 
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    animation: float linear infinite;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

/* Canvas样式 */
#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为雪花和气泡设置随机位置和动画时间 */
.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 8s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 15s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 9s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 13s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 10s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 14s; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 12s; }

.bubble:nth-child(1) { left: 10%; width: 30px; height: 30px; animation-duration: 8s; }
.bubble:nth-child(2) { left: 20%; width: 20px; height: 20px; animation-duration: 5s; }
.bubble:nth-child(3) { left: 30%; width: 25px; height: 25px; animation-duration: 7s; }
.bubble:nth-child(4) { left: 40%; width: 15px; height: 15px; animation-duration: 11s; }
.bubble:nth-child(5) { left: 50%; width: 30px; height: 30px; animation-duration: 6s; }
.bubble:nth-child(6) { left: 60%; width: 20px; height: 20px; animation-duration: 8s; }
.bubble:nth-child(7) { left: 70%; width: 25px; height: 25px; animation-duration: 12s; }
.bubble:nth-child(8) { left: 80%; width: 15px; height: 15px; animation-duration: 6s; }
.bubble:nth-child(9) { left: 90%; width: 30px; height: 30px; animation-duration: 5s; }
.bubble:nth-child(10) { left: 95%; width: 20px; height: 20px; animation-duration: 10s; }
