@font-face {
    font-family: 'Rubik';
    src: url(../fonts/Rubik-Regular.woff2);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei';
}
body {
    overflow: hidden;
}
.container {
    width: 100%;
    height: 100%;
    position: absolute;
}
.bgi {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}
.bgi::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0 0 0 / 20%);
    position: absolute;
    left: 0;
    top: 0;
}
.bgi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}
.top,
.bottom {
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.top .datetime {
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
    position: absolute;
    bottom: 50px;
}
.top .datetime .time {
    font-family: 'Rubik';
    font-size: 100px;
}
.top .datetime .date {
    font-size: 20px;
}
.top .search {
    width: 800px;
    height: 50px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
}
.top .search input {
    width: 100%;
    height: 100%;
    background-color: rgba(255 255 255 / 50%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 4px 25px;
    border: 0;
    outline: 0;
    padding: 0 98px 0 25px;
    font-size: 16px;
    color: #333;
    transition: all .3s;
}
.top .search input::placeholder {
    font-size: 14px;
    color: #666;
}
.top .search input:hover,
.top .search input:focus {
    background-color: rgba(255 255 255 / 80%);
}
.top .search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 80px;
    height: 40px;
    border-radius: 4px 20px;
    border: 0;
    background-color: rgba(255 255 255 / 80%);
    text-align: center;
    line-height: 40px;
    font-size: 14px;
    color: #333;
    transition: all .2s;
}
.top .search button:hover {
    cursor: pointer;
    background-color: #fff;
}
.top .search input:hover ~ button,
.top .search input:focus ~ button {
    background-color: #fff;
}

.bottom {
    justify-content: space-between;
}
.bottom,
.bottom a {
    text-decoration: none;
    font-size: 14px;
    color: #f5f5f5;
    line-height: 1.5;
}
.bottom a:hover {
    text-decoration: underline;
}
.bottom .bottom-header {
    margin-top: 30px;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .3s;
}
.bottom .bottom-header:hover {
    background-color: rgba(0 0 0 / 50%);
}
.bottom .bottom-footer {
    text-align: center;
    position: absolute;
    bottom: 30px;
}
.bottom .bottom-footer > * {
    line-height: 25px;
}
.bottom .bottom-footer a {
    display: inline-block;
}

/* nav */
.nav {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition: all .2s;
}
.nav-off {
    visibility: hidden;
    opacity: 0;
    transform: scale(.95);
    transition: all .2s;
}
#nav-bg {
    width: 100%;
    height: 100%;
    position: absolute;
}
.nav-box {
    width: 890px;
    background-color: #35363A;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0 0 0 / 20%);
    z-index: 2;
}
.nav-tab {
    display: flex;
    width: 100%;
    background-color: #262728;
    margin-bottom: 30px;
    border-radius: 10px;
    padding: 5px;
    overflow: auto;
}
.nav-tab::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.nav-tab li {
    list-style: none;
    font-size: 14px;
    border-radius: 8px;
    padding: 8px 12px;
    margin-right: 5px;
    color: #f5f5f5;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all .2s;
}
.nav-tab li:last-child {
    margin-right: 0;
}
.nav-tab li:hover {
    background-color: #35363A80;
}
.nav-tab .current,
.nav-tab .current:hover {
    background-color: #4E4F55;
}
.nav-content {
    max-height: 390px;
    overflow: overlay;
    overflow-x: hidden;
}
.nav-content::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.nav-content::-webkit-scrollbar-thumb {
    border-radius: 2px;
}
.nav-content:hover::-webkit-scrollbar-thumb {
    background-color: #4E4F55;
}
.nav-content ul {
    display: none;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 10px;
}
.nav-content .current {
    display: grid;
}
.nav-content ul li {
    list-style: none;
    width: 100%;
    height: 70px;
    overflow: hidden;
}
.nav-content ul li a {
    width: 100%;
    height: 100%;
    padding: 10px;
    text-decoration: none;
    border-radius: 10px;
    display: flex;
    transition: all .2s;
}
.nav-content ul li a:hover {
    background-color: rgba(255 255 255 / 10%);
}
.nav-content ul li a img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 10px;
}
.nav-content ul li a .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #f5f5f5;
    overflow: hidden;
    padding-left: 10px;
}
.nav-content ul li a .text .title {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-content ul li a .text .description {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 920px) {
    .nav-box {
        width: calc(100% - 40px);
    }
    .nav-content ul {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 820px) {
    .top {
        padding: 0 20px;
    }
    .top .datetime .time {
        font-size: 80px;
    }
    .top .datetime .date {
        font-size: 16px;
    }
    .top .search {
        width: calc(100% - 40px);
    }

}
@media screen and (max-width: 720px) {
    .nav-content ul {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 510px) {
    .nav-content ul {
        grid-template-columns: 1fr;
    }
}