/* 设置滚动条的样式 */
::-webkit-scrollbar {
    width: 6px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #5FB878;
    -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:window-inactive {
    background: #5FB878;
}

.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.382);
    display: none;
}

#navbar {
    background-color: #393D49;
    background: -webkit-gradient(left top, right top, color-stop(0%, #70e1f5), color-stop(100%, #FFD194));
    background: -webkit-linear-gradient(left, #70e1f5 0%, #FFD194 100%);
    background: -o-linear-gradient(left, #70e1f5 0%, #FFD194 100%);
    background: -ms-linear-gradient(left, #70e1f5 0%, #FFD194 100%);
    background: -webkit-gradient(linear, left top, right top, from(#70e1f5), to(#FFD194));
    background: linear-gradient(200deg, #70e1f5, #ffd194);
    height: 48px;
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1000;
}

#navbar .bg-blur {
    background-color: rgba(255, 255, 255, 0.618);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.10);
    line-height: 48px;
    height: 48px;
    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: #333;
}

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

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

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

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

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

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

#leftbar {
    width: 300px;
    top: 48px;
    border-radius: 0;
    transition: left 0.5s ease;
    -webkit-transition: left 0.5s ease;
    -moz-transition: left 0.5s ease;
    -ms-transition: left 0.5s ease;
    -o-transition: left 0.5s ease;
    overflow-x: visible;
    border-right: 1px solid #eee;
    background-color: #fafafa;
}

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

#leftbar .copyright {
    color: #fff;
    text-align: center;
    line-height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

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

#leftbar>li>a>i.layui-icon {
    font-size: 1.625rem;
    vertical-align: top;
    margin-right: 10px;
}

#leftbar>li>dl>dd>a>i.layui-icon {
    font-size: 1.125rem;
    vertical-align: top;
    margin-right: 10px;
}

#leftbar>li>dl>dd>a {
    padding-left: 30px;
}

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

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

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

#body {
    padding-left: 300px;
    width: 100%;
    padding-top: 48px;
    position: absolute;
    transition: left 0.5s ease;
    -webkit-transition: left 0.5s ease;
    -moz-transition: left 0.5s ease;
    -ms-transition: left 0.5s ease;
    -o-transition: left 0.5s ease;
    height: 100%;
    box-sizing: border-box;
    top: 0;
}

.navRight {
    float: right;
}

#navMenuLeft,
#navMenuRight {
    display: none;
    color: #333;
    line-height: 48px;
}

#navMenuLeft {
    float: left;
}

#navMenuRight {
    float: right;
}

#navMenuLeft.active>i,
#navMenuRight.active>i {
    color: #5FB878
}

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

.inputBox {
    position: relative;
}

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

.inputBox .layui-input:focus+.input-icon {
    color: #000
}

#treeSearch>li {
    padding: 0 4px 10px 6px;
    border-bottom: 1px solid #e6e6e6;
    line-height: 24px;
    word-break: break-word;
    margin-bottom: 0;
}

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

#treeSearch strong {
    color: #FF5722;
}

@media screen and (max-width: 768px) {
    #mask {
        display: block;
    }

    #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;
        -ms-transition: top 0.5s ease;
        -o-transition: top 0.5s ease;
        z-index: 999;
        background-color: #fff;
    }

    #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: 48px;
    }

    #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;
    }
}

/* === 企业蓝白主题增强 === */
body {
	font-family: 'Inter','Noto Sans SC','Microsoft YaHei',sans-serif;
	background: #f6f8fc;
	color: #0f172a;
}

#navbar {
	background: linear-gradient(135deg, #0d6efd, #0a58ca);
	box-shadow: 0 4px 18px -12px rgba(13,110,253,.65);
}
#navbar .bg-blur {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
}
#navbar .logo>img {
	filter: drop-shadow(0 4px 10px rgba(13,110,253,.18));
}
.layui-nav .layui-nav-item a,
.layui-nav .layui-nav-item a:hover,
.layui-nav .layui-this a {
	color: #0f172a;
	font-weight: 600;
}
#navMenuLeft.active>i,
#navMenuRight.active>i {
	color: #0d6efd;
}

#leftbar {
	background: #ffffff;
	border-right: 1px solid #e5e7eb;
	box-shadow: 8px 0 20px -16px rgba(15,23,42,.35);
}
#leftbar .layui-tab-title li {
	font-weight: 600;
	color: #0f172a;
}
#leftbar .layui-tab-title .layui-this {
	color: #0d47a1;
}
#leftbar .layui-tab-title .layui-this:after {
	border-bottom: 2px solid #0d6efd;
}
#leftbar .layui-tab-content {
	padding: 12px 6px 0 0;
}
#leftbar .copyright {
	color: #64748b;
	background: #f8fbff;
	border-top: 1px solid #e5e7eb;
}
.inputBox .layui-input {
	border-radius: 10px;
	border: 1px solid #dbe2f3;
	background: #f8fbff;
}
.inputBox .layui-input:focus {
	border-color: #0d6efd;
	box-shadow: 0 0 0 3px #0d6efd1c;
}
.inputBox .input-icon {
	color: #94a3b8;
}

#body {
	background: #f6f8fc;
}
#content_body {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 18px 42px -28px rgba(15,23,42,.35);
}

.ztree li a.curSelectedNode::before {
	background: #e8f1ff;
}
.ztree li a.curSelectedNode::after {
	background-color: #0d6efd;
}
.ztree li a:hover {
	color: #0d6efd;
}
.ztree li a.curSelectedNode {
	color: #0d6efd;
}

.markdown-body {
	color: #0f172a;
	font-family: 'Inter','Noto Sans SC','Microsoft YaHei',sans-serif;
	line-height: 1.7;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
	color: #0f172a;
}
.markdown-body a {
	color: #0d6efd;
}
.markdown-body code,
.markdown-body pre {
	background: #f8fbff;
	border: 1px solid #dbe2f3;
	border-radius: 10px;
}
.markdown-body blockquote {
	border-left: 4px solid #0d6efd;
	background: #f1f5ff;
	border-radius: 10px;
	color: #0f172a;
}

.syntaxhighlighter {
	background: #f8fbff !important;
	border: 1px solid #dbe2f3 !important;
	border-radius: 12px !important;
	padding: 12px !important;
	box-shadow: 0 10px 30px -22px rgba(15,23,42,.35);
}
.syntaxhighlighter .line {
	color: #0f172a !important;
}
.syntaxhighlighter .gutter {
	background: #eef3ff !important;
	border-right: 1px solid #dbe2f3 !important;
	color: #60738f !important;
}
.syntaxhighlighter .toolbar {
	display: none;
}

.searchResultNone {
	color: #94a3b8;
}