@font-face {
    font-family: 'jetbrais';
    src: url('https://cym919.s3.bitiful.net/JetBrainsMono-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'misans';
    src: url('https://cdn.yuntower.com/font/MiSans/woff2/MiSans-Normal.woff2') format('woff2');
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%); /* 更美观的渐变 */
    color: #333;
    transition: all 0.5s ease; /* 过渡效果 */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.countdown-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.countdown-card {
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
    border-radius: 20px; /* 更大的圆角 */
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 更柔和的阴影 */
    text-align: center;
    backdrop-filter: blur(15px); /* 更强的毛玻璃效果 */
    transition: all 0.3s ease; /* 过渡效果 */
    max-width: 800px;
    width: 100%;
}

.countdown-card:hover {
    transform: translateY(-5px); /* 悬停效果 */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* 悬停时更强的阴影 */
}

h1 {
    font-family: 'misans', sans-serif;
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#countdown1 {
    font-size: 5em;
    font-family: 'jetbrais', sans-serif;
    margin-top: 20px;
    letter-spacing: 8px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

#countdown2 {
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
    font-family: 'misans';
    margin-top: 15px;
    padding: 0 40px;
    color: #666;
}

#countdown2 span {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

#mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    border: 2px solid #333; /* 边框 */
    border-radius: 50%; /* 圆形按钮 */
    padding: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    transition: all 0.3s ease; /* 过渡效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#mode-toggle:hover {
    transform: scale(1.1); /* 悬停效果 */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

#mode-toggle img {
    width: 24px;
    height: 24px;
}

.dark-mode {
    background: linear-gradient(to bottom, #333, #000);/* 深色模式渐变色 */
    color: #fff; /* 文字颜色为白色 */
}

.dark-mode .countdown-card {
    background-color: transparent;
    box-shadow: none;
}

.dark-mode h1 {
    color: #fff;
}

.dark-mode #countdown1,
.dark-mode #countdown2 {
    color: #fff;
}

.dark-mode #mode-toggle {
    background-color: rgba(0, 0, 0, 0.5); /* 深色模式下的半透明背景 */
    border-color: #fff; /* 深色模式下的边框颜色 */
}

.dark-mode #mode-toggle img {
    filter: invert(1); /* 深色模式下的图标颜色反转 */
    content: url('sun-icon.svg'); /* 深色模式下的图标 */
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    padding: 15px 0;
    text-align: center;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    transition: all 0.3s ease; /* 过渡效果 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

#copyright {
    font-size: 1em;
    color: #666;
    transition: color 0.3s ease; /* 过渡效果 */
    font-family: 'misans', sans-serif;
}

#current-year {
    font-weight: bold;
    transition: color 0.3s ease; /* 过渡效果 */
    color: #333;
}

.dark-mode footer {
    background-color: rgba(0, 0, 0, 0.5); /* 深色模式下的半透明背景 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode #copyright,
.dark-mode #current-year {
    color: #ccc; /* 深色模式下的文字颜色 */
}

.dark-mode #current-year {
    color: #fff;
}
