/* Davinci 对接文档 - 布局骨架（深色科技感） */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0F1613;
}

::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #1E2A25;
}

::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

.clear {
    clear: both;
}

.center {
    text-align: center;
}

.pull-left {
    float: left !important;
}

.pull-right {
    float: right !important;
}

#mask {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

#navbar {
    background-color: #0A0E0C;
    height: 52px;
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#navbar .bg-blur {
    background-color: rgba(10, 14, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 52px;
    height: 52px;
    position: relative;
}

#navbar .navbar-body {
    top: 0;
    position: absolute;
    width: 100%;
    padding: 0 1em;
}

#navbar .navbar-body>.layui-nav .layui-nav-more {
    border-top-color: #9AA5A1;
}

#navbar .navbar-body>.layui-nav .layui-nav-mored {
    border-top-color: transparent;
    border-bottom-color: #9AA5A1;
}

#navbar .layui-nav {
    border-radius: 0;
    background: transparent;
}

.layui-nav .layui-nav-item {
    line-height: 52px;
}

#navbar .logo {
    float: left;
    font-size: 1.5rem;
    color: #F4F7F5;
    line-height: 46px;
}

#navbar .logo>img {
    height: 36px;
}

.layui-nav .layui-nav-item a,
.layui-nav .layui-nav-item a:hover,
.layui-nav .layui-this a {
    color: #9AA5A1;
}

.layui-nav .layui-nav-item a:hover,
.layui-nav .layui-this a {
    color: #34D399;
}

#leftbar {
    width: 300px;
    top: 52px;
    border-radius: 0;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -moz-transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-x: visible;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background-color: #0F1613;
}

#leftbar .layui-tab-content {
    padding: 12px 2px 0 0;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
}

#leftbar .layui-tab-brief .layui-tab-title .layui-this {
    color: #34D399;
}

#leftbar .layui-tab-brief .layui-tab-title {
    color: #9AA5A1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#leftbar .copyright {
    color: #9AA5A1;
    text-align: center;
    line-height: 28px;
    background: rgba(255, 255, 255, 0.03);
}

#leftbar .copyright.noScroll {
    bottom: 0;
    position: absolute;
    width: 100%;
}

.left-show-hide {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-100%);
    padding: 0;
    height: 64px;
    width: 18px;
    background-color: #0F1613;
    color: #9AA5A1;
    border: none;
    border-radius: 0;
    opacity: 1;
    display: none;
}

.left-show-hide:hover {
    color: #34D399;
}

.left-show-hide>.layui-icon {
    font-size: 14px;
}

#body {
    padding-left: 300px;
    width: 100%;
    padding-top: 52px;
    position: absolute;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -moz-transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    box-sizing: border-box;
    top: 0;
    background-color: #0A0E0C;
}

.navRight {
    float: right;
}

#navMenuLeft,
#navMenuRight {
    display: none;
    color: #9AA5A1;
    line-height: 52px;
}

#navMenuLeft {
    float: left;
}

#navMenuRight {
    float: right;
}

#navMenuLeft.active>i,
#navMenuRight.active>i {
    color: #34D399;
}

#navMenuLeft>i,
#navMenuRight>i {
    font-size: 1.625rem;
}

.inputBox {
    position: relative;
}

.inputBox .input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 6px;
    color: #5c6661;
    pointer-events: none;
}

.inputBox .layui-input:focus+.input-icon {
    color: #34D399;
}

#treeSearch>li {
    padding: 0 4px 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 24px;
    word-break: break-word;
    margin-bottom: 0;
}

#treeSearch>li a {
    color: #9AA5A1;
}

#treeSearch h3 {
    font-weight: bold;
    line-height: 48px;
    color: #F4F7F5;
}

#treeSearch strong {
    color: #34D399;
}

@media screen and (max-width: 768px) {
    #leftbar {
        left: -300px !important;
    }

    #leftbar.show-item {
        left: 0 !important;
    }

    #navbar {
        text-align: center;
    }

    #navbar .logo {
        float: none;
        margin-left: 0;
        display: inline-block;
    }

    #navbar .layui-nav {
        top: -180px;
        position: absolute;
        width: 100%;
        left: 0;
        transition: top 0.5s ease;
        -webkit-transition: top 0.5s ease;
        -moz-transition: top 0.5s ease;
        z-index: 999;
        background-color: #0F1613;
    }

    #navbar .navbar-body {
        padding: 0;
    }

    #navbar .bg-blur {
        z-index: 1000;
    }

    #navMenuLeft,
    #navMenuRight {
        display: block;
    }

    #body {
        padding-left: 0;
    }

    #navbar .navbar-body>.layui-nav.show-item {
        top: 52px;
    }

    #navbar .navbar-body>.layui-nav>.navRight {
        width: 100%;
    }

    #navbar .navbar-body>.layui-nav>.navRight .layui-nav-item {
        width: 100%;
        text-align: left;
    }

    .nav-menu {
        z-index: 1000;
        background: inherit;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .left-show-hide {
        display: none !important;
    }
}