html{
    --primary-color: #3489fd;
    --font-color: #242424;
    --font-color-b: #909399;
    --header-box-shadow: 0 2px 5px rgba(0,0,0,.06);
    --header-background: white;
    --background: white;
    --background-b: rgba(27, 31, 35, 0.05);
    --border-color: #aaaaaa;
    --border-color-b: #ebeef5;
    --hero-color: white;
    --box-border: 0 1px 8px 0 rgba(0, 0, 0, 0.1);
    --box-border-hover: 0 2px 16px 0 rgba(0, 0, 0, 0.2);
}
body.d-night{
    --header-background: #222;
    --font-color: rgba(255, 255, 255, 0.8);
    --background:  #181818;
    --box-border:0 1px 8px 0 rgb(0 0 0 / 60%);
    --box-border-hover:0 2px 16px 0 rgba(0, 0, 0, 0.7);
    --border-color:rgba(0, 0, 0, 0.3);
    --border-color-b:rgba(0, 0, 0, 0.3);
    --background-b: rgba(0, 0, 0, 0.3);
}
html{
    height: 100%;
}
body{
    width: 100%;
    height: calc(100% - 60px);
    color: var(--font-color);
    font-family: Ubuntu,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
    background: var(--background);
}
a{
	text-decoration: none !important;
}
.d-theme-container{
  height: 100%;
}
::selection{
    color: #fff;
    background: var(--primary-color);
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #c0c4cc;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.mobile-side .navbar::-webkit-scrollbar{
    width: 0;
    height: 0;
}
/** header  */
.d-header{
    display: flex;
    width: 100%;
    height: 45px;
    box-shadow: var(--header-box-shadow);
    position: fixed;
    top: 0;
    background: var(--header-background);
    z-index: 99;
}
.d-nav-container{
    flex: 1;
    text-align: right;
}
.d-header-nav{
    display: flex;
    justify-content: flex-end;
    padding-right: 5px;
}
.d-header-nav .navbar{
    background-color: var(--header-background);
    color: var(--font-color);
    padding-right: 0;
}
.d-header-nav .navbar-child{
    background: var(--background);
    box-shadow: var(--box-border);
    border: none;
}
.d-header-nav .navbar-child dd a:hover{
    background: var(--background);
}
.d-header-nav .navbar .navbar-item a{
    color: var(--font-color);
    font-weight: 500;
    padding: 0;
    position: relative;
}
.d-header-nav .navbar-item{
    padding: 0 15px;
    line-height: 30px;
}
.d-header-nav .navbar-bar{
    display: none;
}
.d-header-nav .d-nav-item{
    color: var(--font-color); 
}
.d-header-nav .navbar active .d-nav-item:after{
    bottom: 15px;
    height: 2px;
    width: 100%;
}
.d-header-nav .navbar .navbar-item dd a{
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
}
.d-header-nav .navbar active:after{
    display: none;
}
.d-header-nav .navbar .navbar-more{
    position: initial;
}
.navbar .navbar-item .d-nav-item:after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all .2s;
    -webkit-transition: all .2s;
    pointer-events: none;
    top: auto;
    bottom: 15px;
}
.d-header-nav .navbar .navbar-item a:hover, .d-header-nav .navbar active .d-nav-item{
    color: var(--primary-color);
}
.d-nav-item .fa{
    margin-right: 5px;
}
.d-header-nav .navbar .navbar-item .d-nav-item:hover::after{
    height: 2px;
    width: 100%;
}
.d-logo-container{
    height: 25px;
    line-height: 15px;
    padding-left: 0px;
    color: var(--font-color);
    align-items: center;
    display: flex;
    justify-content: center;
}
.d-logo-container .d-logo-text{
    padding-left: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--font-color);
}
.d-search-box form{
    height: 60px;
    line-height: 60px;
    position: relative;
    min-width: 30px;
}
.d-search-box form input{
    height: 30px;
    width: 230px;
    padding-left: 30px;
    border: 1px solid var(--border-color);
    outline: none;
    background: var(--background);
    color: var(--font-color);
}
.d-search-icon{
    display: inline-block;
    width: 35px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    position: absolute;
    left: 0;
}
.d-search-box form input:focus{
    border: 1px solid var(--primary-color);
}
.d-search-box form .fa{
    position: absolute;
    left: 10px;
    top: 23px;
    color: var(--font-color);
}
.navbar-item .user-img{
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.d-box{
    margin-top: 35px;
    min-height: calc(100% - 91px);
}
.d-container{
    width: 60%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.d-container-left{
    width: calc(100% - 285px);
}
.d-container-right{
    margin-top: 25px;
    width: 285px;
    padding-left: 15px;
}
.d-web-info-box{
    width: 100%;
    box-shadow: var(--box-border);
    padding: 10px 15px;
    box-sizing: border-box;
    border-radius: 5px;
    top: 80px;
    margin-bottom: 15px;
    background: var(--background);
}
.d-web-info-box:hover{
    box-shadow: var(--box-border-hover);
}
.d-web-user-info-box{
    text-align: center;
}
.d-web-user-info-box img{
    border-radius: 50%;
    transition: transform 0.6s;
}
.d-web-user-info-box p{
    margin-top: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--font-color);
    opacity: .9;
}
.d-web-count{
    display: flex;
    margin-top: 10px;
}
.d-count-box{
    width: 50%;
}
.d-web-count .d-count-box:first-child{
    border-right: 1px solid var(--border-color-b);
}
.d-count-box span{
    display: block;
    font-size: 12px;
}
.d-count-box span:first-child{
    font-size: 18px;
    font-weight: 500;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    margin: auto;
    opacity: .8;
    color: var(--font-color);
    margin-bottom: 3px;
}

.d-category-list{
    border-top: 1px solid var(--border-color-b);
    margin-top: 10px;
}
.d-web-info-box:hover img{
    transform: rotate(-360deg);
}
.d-right-box-title{
    margin-top: 20px;
    font-size: 15px;
    padding-bottom: 8px;
}
.d-right-box-title .fa{
    margin-right: 5px;
    color: var(--font-color);
    opacity: .7;
}
.d-category-item{
    box-shadow: var(--box-border);
    margin-top: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    transition: all .35s;
}

.d-category-item span{
    width: 42px;
    display: inline-block;
    background: rgb(103, 204, 134);
    height: 26px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    margin-top: 7px;
    margin-right: 10px;
    line-height: 26px;
}
.d-category-item a{
    display: inline-block;
    width: 100%;
    padding: 10px 15px;
    font-size: 15px;
    color: var(--font-color);
}
.d-category-item:hover, .d-tag-item:hover{
    transform: scale(1.04);
}
.d-tag-item{
    display: inline-block;
    border-radius: 6px;
    box-shadow: var(--box-border);
    cursor: pointer;
    transition: all .5s;
    margin: 3px 2px 5px;
}
.d-tag-item a{
    padding: 3px 8px;
    display: inline-block;
    color: white;
    font-size: 13px;
}
.d-no-content{
    text-align: center;
    display: block;
    width: 100%;
    font-size: 15px;
    opacity: .8;
}
.pagination {
	display: block;
}
.m-pager-box{
    margin-bottom: 10px;
    text-align: center;
}
.m-pager{
    box-shadow: var(--box-border);
    padding: 6px 12px;
    border: 1px solid var(--border-color-b)!important;
    border-radius: 5px;
    font-weight: 700;
    opacity: .9;
    transition: background .3s;
    color: var(--font-color);
    display: inline-block;
    margin: 3px;
}
.m-pager:hover{
    color: white;
    background: var(--primary-color);
}
.m-pager.disabled{
    color: var(--font-color)!important;
    cursor: not-allowed;
    background:initial!important;
}
.m-pager.active{
    color: white!important;
    background: var(--primary-color)!important;
}
.d-footer{
    height: 70px;
    line-height: 70px;
    border-top: 1px solid var(--border-color-b);
    margin-top: 20px;
    font-size: 13px;
}
.d-footer .d-footer-container{
    width: 60%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.d-footer-container a{
    color: var(--font-color);
}
.d-footer-container a:hover{
    color: var(--primary-color);
}
.d-back-top-btn{
    position: fixed;
    right: -60px;
    bottom: 80px;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    box-shadow: var(--box-border);
    text-align: center;
    border-radius: 5px;
    color: var(--primary-color);
    font-size: 14px;
    transition: all .5s;
    overflow: hidden;
    background-color: var(--background);
    z-index: 2;
}
.d-back-top-btn:hover{
    color: var(--primary-color);
}
.show-back-up{
    right: 20px;
}
.d-web-color-switch-btn{
    position: fixed;
    right: 20px;
    bottom: 128px;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    box-shadow: var(--box-border);
    text-align: center;
    border-radius: 5px;
    color: var(--primary-color);
    font-size: 14px;
    transition: all .5s;
    overflow: hidden;
    z-index: 2;
    background-color: var(--background);
}
.d-web-color-switch-btn:hover{
    color: var(--primary-color);
}
.d-web-color-switch-btn .fa{
    font-weight: 800;
}
.d-mobile-side{
    position: fixed;
    left: -290px;
    width: 290px;
    z-index: 98;
    background: var(--background);
    box-shadow: var(--box-border);
    height: 100%;
    transition: all .3s;
}
.show-mobile{
    left: 0;
}
.d-mask{
    content: " ";
    position: fixed;
    width: 100vw;
    left: 0;
    z-index: 10;
    background: #0000002e;
    display: none;
    bottom: 0;
    top: 0;
}
.d-mobile-side .d-web-user-info-box{
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color-b);
}
.d-mobile-side .navbar-tree{
    width: 260px;
    border-radius: 0;
    background-color: var(--background);
    color: var(--font-color);
    max-height: calc(100% - 280px);
    overflow: auto;
}
.d-mobile-side .navbar .navbar-item a{
    color: var(--font-color)!important;
    font-weight: 600;
    font-size: 14px;
    background-color: var(--background) !important;
    padding-left: 25px;
    opacity: .9;
}
.d-mobile-side .navbar-tree .navbar-child a{
    padding-left: 40px;
    font-weight: normal;
}
.d-mobile-side .navbar .navbar-item a:hover{
    color: var(--primary-color)!important;
}
.d-mobile-side .navbar-itemed>a, .d-mobile-side .navbar-tree .navbar-title a, .d-mobile-side .navbar-tree .navbar-title a:hover{
    color: var(--primary-color)!important;
}
.d-mobile-side .navbar-tree .navbar-bar{
    display: none;
}
.d-mobile-side .navbar-itemed>.navbar-child{
    background-color: var(--background)!important;
}
.mobile-side-switch-btn{
    color: var(--font-color);
    padding-left: 5px;
    padding-right: 15px;
    font-size: 18px;
    display: none;
}
.mobile-side-switch-btn:hover{
    color: var(--primary-color);
}
.show-search{
    display: initial!important;
}
@media screen and (max-width:1600px) {
    .d-container,.d-footer .d-footer-container {
        width: 1250px;
    }
}
@media screen and (max-width:1400px) {
    .d-container,.d-footer .d-footer-container {
        width: 1150px;
    }
}
@media screen and (max-width:1200px) {
    .d-container,.d-footer .d-footer-container {
        width: 1100px;
    }
    .mobile-side-switch-btn{
        display: inline-block;
    }
    .d-header-nav .navbar{
        display: none;
    }
}
@media screen and (max-width:1150px) {
    .d-container,.d-footer .d-footer-container {
        width: 920px;
    }
}
@media screen and (max-width:1000px) {
    .d-container,.d-footer .d-footer-container {
        width: calc(100% - 60px);
    }
}
@media screen and (max-width:980px) {
    .d-container,.d-footer .d-footer-container {
        width: calc(100% - 60px);
    }

    .d-container-left{
        width: 100%;
    }
    .d-container-right{
        display: none;
    }
    .d-footer .d-footer-container{
        display: block;
        text-align: center;
    }
    .d-footer{
        line-height: 26px;
        padding: 15px 0;
    }
}
@media screen and (max-width: 840px) {
    .d-container,.d-footer .d-footer-container{
        width: calc(100% - 40px);
    }
}
