@font-face {
    font-family: 'STHupo';
    src: local('STHupo');
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, 
        #1a365d 0%,
        #2c5282 35%,
        #c05621 65%,
        #dd6b20 100%
    );
    opacity: 0.85;
    font-family: 'Microsoft YaHei', sans-serif;
    transition: background 3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.night-sky {
    background: linear-gradient(135deg, 
        #0A0B1F 0%,
        #0d1526 35%,
        #1a1040 65%,
        #261447 100%
    );
    opacity: 1;
}

.container {
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

h1 {
    font-family: 'STHupo', 'Microsoft YaHei', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
    background: linear-gradient(45deg, 
        rgba(44, 82, 130, 0.95), 
        rgba(192, 86, 33, 0.95)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-shadow: 
        1px 1px 0 rgba(255, 255, 255, 0.15),
        -1px -1px 0 rgba(0, 0, 0, 0.08);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px auto;
    flex-wrap: nowrap;
    width: fit-content;
    padding: 0 20px;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

@media (max-width: 768px) {
    .countdown {
        gap: 15px;
        padding: 0 10px;
    }
    
    .time-block {
        width: 80px;
        padding: 15px 10px;
    }
    
    .time-block span:first-child {
        font-size: 2.5em;
    }
    
    .label {
        font-size: 1em;
    }
}

.time-block {
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: 120px;
    flex-shrink: 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.time-block:hover {
    transform: translateY(-5px);
}

.time-block span {
    display: block;
    font-family: 'STHupo', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(45deg, 
        rgba(44, 82, 130, 0.95),   /* 柔和的蓝色 */
        rgba(192, 86, 33, 0.95)    /* 柔和的橙色 */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        1px 1px 0 rgba(255, 255, 255, 0.15),
        -1px -1px 0 rgba(0, 0, 0, 0.08);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.time-block span:first-child {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.label {
    font-size: 1.4em;
    margin-top: 10px;
    opacity: 0.9;
}

.message {
    position: fixed;
    padding: 30px 40px;
    display: none;
    background: rgba(21, 101, 192, 0.15);
    border-radius: 25px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    min-width: 320px;
    max-width: 500px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.message.show {
    display: block;
}

/* 移除原有的浮动动画，改用新的动画方式 */
@keyframes messageFloat {
    0% { transform: translate(var(--x), var(--y)) scale(1); }
    50% { transform: translate(var(--x), calc(var(--y) - 15px)) scale(1.02); }
    100% { transform: translate(var(--x), var(--y)) scale(1); }
}

/* 修改标题样式 */
.message h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    background: linear-gradient(45deg, 
        #1a365d,   /* 深蓝色，与背景呼应 */
        #c05621    /* 暖棕色，与背景呼应 */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.5s ease;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 0 rgba(255, 255, 255, 0.15),   /* 增加亮边 */
        -1px -1px 0 rgba(0, 0, 0, 0.2),        /* 内阴影 */
        0 4px 8px rgba(44, 82, 130, 0.3),      /* 蓝色阴影 */
        0 2px 4px rgba(192, 86, 33, 0.2);      /* 橙色阴影 */
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(15px);
}

/* 优化悬停效果 */
.message h2:hover {
    transform: perspective(1000px) translateZ(20px);
    text-shadow: 
        3px 3px 0 rgba(255, 255, 255, 0.2),
        -1px -1px 0 rgba(0, 0, 0, 0.25),
        0 6px 12px rgba(44, 82, 130, 0.4),
        0 3px 6px rgba(192, 86, 33, 0.3);
}

.message p {
    font-size: 1.6em;
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
    text-align: center;
    background: linear-gradient(45deg,
        #4a5568,   /* 深灰蓝色 */
        #ed8936    /* 柔和的橙色 */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.5s ease;
    letter-spacing: 1px;
    text-shadow: none;
}

/* 添加边框光效 */
.message::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 21px;
    background: linear-gradient(45deg, 
        rgba(255, 109, 0, 0.5), 
        rgba(21, 101, 192, 0.5)
    );
    z-index: -1;
}

.fireworks-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: none;
    background: radial-gradient(circle at center,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fireworks-container.show {
    display: block;
    opacity: 1;
}

/* 优化星星效果 */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 3s ease;
    z-index: 0;
    background-image: 
        radial-gradient(1.5px 1.5px at 50px 50px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 150px, #ffd1e3, rgba(0,0,0,0)),  /* 添加粉色星星 */
        radial-gradient(1.5px 1.5px at 220px 220px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 320px 320px, #ffd1e3, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 400px 400px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 500px 500px, #ffd1e3, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 600px 600px, #ffffff, rgba(0,0,0,0));
    background-size: 650px 650px;
    animation: stars-animation 300s linear infinite;
}

.stars-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0,0,0,0) 0%, 
        rgba(11,16,38,0.4) 100%
    );
}

.stars-container.show {
    opacity: 1;
}

@keyframes stars-animation {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-500px, -500px);
    }
} 

/* 添加薄雾效果 */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 3s ease;
    z-index: 1;
    background: 
        linear-gradient(to bottom,
            rgba(10, 11, 31, 0) 0%,
            rgba(10, 11, 31, 0.2) 50%,
            rgba(10, 11, 31, 0.5) 100%
        );
}

.fog-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 80%, 
        rgba(255, 209, 227, 0.1) 0%,    /* 粉色雾气 */
        rgba(86, 20, 90, 0.2) 50%,      /* 紫色雾气 */
        transparent 100%
    );
}

.fog-container.show {
    opacity: 1;
} 

/* 优化音乐播放按钮 */
.music-control {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.music-control .icon {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.music-control:hover {
    transform: scale(1.1) rotate(180deg);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 255, 255, 0.15),
        inset 0 0 25px rgba(255, 255, 255, 0.08);
}

.music-control.playing {
    animation: musicRotatePulse 3s infinite;
}

@keyframes musicRotatePulse {
    0% { 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        transform: scale(1.08) rotate(180deg); 
    }
    100% { 
        transform: scale(1) rotate(360deg); 
    }
}

.music-control:hover .icon {
    transform: rotate(-180deg);
}

.music-control.playing .icon {
    animation: iconRotate 3s linear infinite;
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移除测试按钮样式 */
.test-button {
    display: none;
}

/* 添加结束时的动画类 */
.container.countdown-ended {
    transform: translateY(-40vh) scale(0.6);
}

.container.countdown-ended h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
    opacity: 0.8;
}

.container.countdown-ended .countdown {
    margin: 20px auto;
}

.container.countdown-ended .time-block {
    transform: scale(0.8);
    background: rgba(255, 255, 255, 0.15);
} 

/* 添加响应式调整 */
@media (max-width: 768px) {
    .message {
        min-width: 280px;
        max-width: 90%;
        padding: 25px 30px;
    }
    
    .message h2 {
        font-size: 1.8em;
    }
    
    .message p {
        font-size: 1.4em;
    }
} 

/* 修改夜空背景的切换效果 */
function changeToNightSky() {
    // ...
    document.body.style.background = `
        linear-gradient(135deg, 
            #0A0B1F 0%,
            #0d1526 35%,
            #1a1040 65%,
            #261447 100%
        )
    `;
    // ...
} 

/* 添加一个单独的遮罩层 */
.night-mask {
    display: none;
}

/* 移除流星相关的样式 */
.meteor-container,
.meteor,
.meteor::before {
    display: none;
} 

/* 添加称呼的样式 */
.nickname {
    background: linear-gradient(45deg, 
        #2c5282,   /* 深蓝色 */
        #c05621    /* 暖棕色 */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 8px;
    font-weight: bold;
    text-shadow: none;  /* 移除文字阴影 */
} 

/* 修改克隆消息的样式 */
.message-clone {
    display: none;
} 