body{
    /* 初始化 取消内外边距 */
    margin: 0;
    padding: 0;
}
#container{
    /* 100%窗口高度 */
    height: 100vh;
}
.bg{
    /* 绝对定位 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.sun{
    margin: 0;
    padding: 0;
    /* 绝对定位 水平垂直居中 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 600px;
    height: 600px;
    background-color: orange;
    border-radius: 50%;
}
.moon{
    margin: 0;
    padding: 0;
    /* 绝对定位 水平垂直居中 */
    position: absolute;
    top: 50%;
    left: 50%;
    /* 计算得出月亮的位置 */
    transform: translate(calc(-50% + -160px),calc(-50% + -180px));
    width: 600px;
    height: 600px;
    /* 通过阴影绘制月亮 */
    box-shadow: 160px 180px 0 rgb(225, 229, 252);
    border-radius: 50%;
}
.sea{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35%;
    /* 背景模糊制造大海的感觉 */
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    z-index: 100;
}
.sun,
.moon,
.sun-box,
.moon-box,
.bg{
    /* 添加动画过渡 */
    transition: all 1s ease-in-out;
}
.sun-box,
.moon-box{
    /* 相对定位 */
    position: relative;
    /* 溢出隐藏 */
    overflow: hidden;
}
/* 白天 */
.light .sun-box{
    height: 100%;
}
.light .moon-box{
    height: 0;
}
.light .bg{
    background-color: #ffeea2;
}
/* 夜晚 */
.dark .sun-box{
    height: 0;
}
.dark .moon-box{
    height: 100%;
}
.dark .bg{
    background-color: #040720;
}
/* 切换按钮样式 */
.btn-box{
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 101;
    display: flex;
    flex-direction: row;
}
.btn-box div{
    background: rgba(255,255,255,0.7);
    color: #000;
    width: 122px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 5px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}
.btn-box div:hover{
    background: #fff;
}

/* 底部按钮样式 */
.btn div{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    /* background: linear-gradient(90deg,#292d4f,#dec8fa); */
    background-image: linear-gradient(to top, #d5d4d0 0%, #d5d4d0 1%, #eeeeec 31%, #efeeec 75%, #e9e9e7 100%);
    color: #000;
    width: 296px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    padding: auto;
    font-size: 32px;
    font-weight: bolder;
    border-radius: 100px;
    cursor: pointer;
    transition:0.5s;
}
.btn div:hover{
    animation: animate 8s linear;
    color: #000;
    /* background: rgba(255,255,255,0.7); */
    /* background: linear-gradient(90deg,#a2e9f5,#c8b9ec); */
    background: linear-gradient(90deg,#e6e9f0,#eef1f5);
    background-position-x: -296px;
}

@keyframes animate{
    0%{
        background-position: 0%;
    }
    100%{
        background-position: 400%;
    }
}

/* 备案信息样式 */
.icp-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 102;
    text-align: center;
}

.icp-info a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 白天模式下的备案信息颜色 */
.light .icp-info a {
    color: rgba(0, 0, 0, 0.5);
}

.light .icp-info a:hover {
    color: rgba(0, 0, 0, 0.8);
}