body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /*background: linear-gradient(125deg, #000428, #004e92);*/
    /*background: linear-gradient(125deg, #000428, #004e92);*/
    /* JPEG图片 */
    /*background-image: url('https://linux.do/uploads/default/original/4X/f/8/6/f86a72efdc4c46fc7dd8c22f51986185c4d01fca.jpeg');*/
    /* 修改背景渐变色为带红色调 */
    /*background: linear-gradient(125deg, rgba(0,4,40,0.7), rgba(0,78,146,0.7)), 
        url('https://linux.do/uploads/default/original/4X/f/8/6/f86a72efdc4c46fc7dd8c22f51986185c4d01fca.jpeg');*/
    /*background-size: cover;*/  /* 确保图片覆盖整个区域 */
    /*background-position: center;*/  /* 图片居中 */
    background: linear-gradient(125deg, #FFD700, #FF4500);
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 3.5em;
    margin-bottom: 40px;
    /*text-shadow: 0 0 10px rgba(0, 128, 255, 0.5),
                 0 0 20px rgba(0, 128, 255, 0.3);*/
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5),
         0 0 20px rgba(255, 215, 0, 0.3);
    /*background: linear-gradient(to right, #00ff9d, #00d4ff);*/
    background: linear-gradient(to right, #FFD700, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.countdown {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.time-box {
    position: relative;
    width: 120px;
    height: 140px; /* 固定高度 */
    text-align: center;
    background: rgba(139, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
    /*background: rgba(0, 20, 40, 0.4);*/
    border-radius: 12px;
    /*box-shadow: 0 0 20px rgba(0, 128, 255, 0.2);*/
    backdrop-filter: blur(5px);
    /*border: 1px solid rgba(0, 128, 255, 0.2);*/
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.digit-canvas {
    width: 100px;
    height: 100px;
    margin-bottom: 10px; /* 与标签的间距 */
}

.label {
    font-size: 1.2em;
    /*color: #00d4ff;*/
    /*text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);*/
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
    font-weight: bold;
    position: absolute;
    bottom: 15px;
}

#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.container::before,
.container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    /*background: linear-gradient(45deg, #00ff9d33, #00d4ff33);*/
    background: linear-gradient(45deg, rgba(255,215,0,0.2), rgba(255,69,0,0.2));
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.container::before {
    top: -100px;
    left: -100px;
}

.container::after {
    bottom: -100px;
    right: -100px;
}

@keyframes glow {
    /*0% { box-shadow: 0 0 20px rgba(0, 128, 255, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 128, 255, 0.4); }
    100% { box-shadow: 0 0 20px rgba(0, 128, 255, 0.2); }*/
    0% { box-shadow: 0 0 20px rgba(255,69,0,0.2); }
    50% { box-shadow: 0 0 30px rgba(255,215,0,0.4); }
    100% { box-shadow: 0 0 20px rgba(255,69,0,0.2); }
}

.time-box {
    animation: glow 2s infinite ease-in-out;
}
/* 移动端适配样式 */
@media screen and (max-width: 768px) {
.container {
    padding: 20px;
    width: 90%;
    max-width: 390px; /* iPhone 13 宽度 */
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.countdown {
    flex-wrap: wrap;
    gap: 10px;
}

.time-box {
    width: calc(50% - 15px); /* 两列布局 */
    height: 120px;
    padding: 10px;
}

.digit-canvas {
    width: 80px;
    height: 80px;
}

.label {
    font-size: 1em;
    bottom: 10px;
}
}

/* iPhone 13 特定适配 */
@media screen and (width: 390px) and (height: 844px) {
.container {
    padding: 15px;
}

.time-box {
    height: 110px;
}
}

/* 横屏适配 */
@media screen and (max-width: 768px) and (orientation: landscape) {
.countdown {
    flex-wrap: nowrap;
}

.time-box {
    width: 120px;  /* 增加宽度 从100px到120px */
    height: 120px; /* 增加高度 从100px到120px */
    padding: 10px;
}

.digit-canvas {
    width: 100px;  /* 增加画布宽度 从70px到100px */
    height: 100px; /* 增加画布高度 从70px到100px */
}
}