html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* 白天和黑夜的背景 */
.mk-dark-mode-sky,
.mk-dark-mode-sky:before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
    transition: 2s ease all;
}
.mk-dark-mode-sky {
    background: linear-gradient(#feb8b0, #fef9db);
    cursor: pointer; /* 添加指针样式提示用户可点击 */
}
.mk-dark-mode-sky:before {
    opacity: 0;
    background: linear-gradient(#4c3f6d, #6c62bb, #93b1ed);
}
.mk-dark-mode .mk-dark-mode-sky:before {
    opacity: 1;
}

/* 太阳和月亮 */
.mk-dark-mode-planet {
    z-index: 0; /* 降低z-index，确保不会影响交互 */
    position: fixed;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none; /* 允许点击穿透 */
    transform-origin: center bottom;
    transition: 2s cubic-bezier(.7, 0, 0, 1) all;
}

/* 太阳 */
.mk-dark-mode-planet:after {
    position: absolute;
    left: 35%;
    top: 40%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    content: "";
    background: linear-gradient(#fefefe, #fffbe8);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    transition: all 2s ease;
}

/* 月亮效果 - 简单圆形 */
.mk-dark-mode .mk-dark-mode-planet:after {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    left: 40%;
    top: 45%;
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.8);
}

/* 移除半月阴影 */
.mk-dark-mode .mk-dark-mode-planet:before {
    display: none;
}

/* 星星容器 */
.mk-dark-mode-stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.mk-dark-mode .mk-dark-mode-stars {
    opacity: 1;
}

/* 星星样式 - 确保是白色 */
.star {
    position: absolute;
    background-color: #ffffff !important;
    border-radius: 50%;
    animation: twinkle 1.5s infinite alternate;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.8);
}

/* 星星位置和大小 */
.star-1 {
    width: 3px;
    height: 3px;
    left: 35%;
    top: 30%;
    animation-delay: 0.3s;
}

.star-2 {
    width: 4px;
    height: 4px;
    left: 45%;
    top: 35%;
    animation-delay: 0.7s;
}

.star-3 {
    width: 3px;
    height: 3px;
    left: 38%;
    top: 55%;
    animation-delay: 1.1s;
}

.star-4 {
    width: 2px;
    height: 2px;
    left: 48%;
    top: 50%;
    animation-delay: 0.2s;
}

.star-5 {
    width: 3px;
    height: 3px;
    left: 32%;
    top: 45%;
    animation-delay: 0.5s;
}

.star-6 {
    width: 2px;
    height: 2px;
    left: 50%;
    top: 30%;
    animation-delay: 0.8s;
}

.star-7 {
    width: 3px;
    height: 3px;
    left: 55%;
    top: 40%;
    animation-delay: 0.4s;
}

/* 星星闪烁动画 - 明亮的白色 */
@keyframes twinkle {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.6);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 7px 2px rgba(255, 255, 255, 1), 0 0 10px 3px rgba(255, 255, 255, 0.8);
    }
}