* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #0a1529 0%, #1c3b6d 100%);
    overflow: hidden;
}

.container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

#countdown {
    display: flex;
    gap: 20px;
    color: #fff;
    font-family: Arial, sans-serif;
}

.time-block {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-block span {
    display: block;
}

#days, #hours, #minutes, #seconds {
    font-size: 3em;
    font-weight: bold;
}

.label {
    font-size: 1em;
    margin-top: 5px;
}

#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.greeting {
    margin-top: 30px;
    color: #fff;
    text-align: center;
    font-family: "SimSun", "宋体", serif;
    animation: fadeIn 2s ease-in-out;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    white-space: nowrap;
    transition: all 0.5s ease;
}

.greeting p {
    margin: 10px 0;
    font-size: 1.5em;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 500;
    white-space: nowrap;
}

/* 修改缩放后的字体大小 */
.greeting.scaled p {
    font-size: 2.2em;
    line-height: 2.2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

@media (max-width: 768px) {
    .greeting p {
        font-size: 1.2em;
        white-space: normal;
    }
    
    .greeting.scaled p {
        font-size: 1.6em;
        line-height: 2;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #countdown {
        gap: 10px;
    }

    .time-block {
        padding: 10px;
    }

    #days, #hours, #minutes, #seconds {
        font-size: 2em;
    }

    .label {
        font-size: 0.8em;
    }

    .greeting p {
        font-size: 1.2em;
        white-space: normal;
    }
    
    .greeting.scaled p {
        font-size: 1em;
    }
}

#countdown.no-days .time-block {
    padding: 20px 30px;
    min-width: 110px;
}

#countdown.no-days #hours,
#countdown.no-days #minutes,
#countdown.no-days #seconds {
    font-size: 3.2em;
}

@media (max-width: 768px) {
    #countdown.no-days .time-block {
        padding: 12px 20px;
        min-width: 85px;
    }

    #countdown.no-days #hours,
    #countdown.no-days #minutes,
    #countdown.no-days #seconds {
        font-size: 2.3em;
    }
}

/* 修改音效控制按钮样式 */
.sound-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

.sound-control:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.sound-control:active {
    transform: scale(0.95);
}

.sound-control i {
    color: white;
    font-size: 20px;
}

.sound-control img {
    width: 25px;
    height: 25px;
    filter: invert(1) brightness(1.2);
    opacity: 0.9;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .sound-control {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.3);
    }

    .sound-control img {
        width: 36px;
        height: 36px;
    }
}

/* 修改文字动画样式 */
.celebration-text {
    display: none; /* 隐藏原来的文字 */
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 添加粒子效果 */
.celebration-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .celebration-text {
        font-size: 50px;
        margin-left: -25px;
        margin-top: -25px;
    }
    
    .celebration-particle {
        width: 3px;
        height: 3px;
    }
} 