html {
    overflow-x: hidden
}

h1,h2,h3 {
    font-size: 14px
}

.ws-content,.ws-menu {
    min-height: calc(100vh - 210px)
}

.ws-menu {
    box-shadow: none;
    border-left: none
}

.ws-content {
    padding: 32px
}

.ws-container {
    padding-top: 60px;
    width: 1170px;
    min-height: calc(100vh - 210px)
}

.ws-header {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background-color: #2f363c;
    box-shadow: 0 1px 3px rgb(0 0 0 / 5%)
}

.ws-header:after {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: #eee;
    content: ''
}

.ws-logo {
    position: absolute;
    width: 240px;
    height: 60px;
    line-height: 60px;
    text-align: center
}

.ws-logo img {
    width: 160px
}
.ws-footer {
    padding: 30px 15px;
    line-height: 30px;
    text-align: center;
    color: #777
}

.ws-footer a {
    padding: 0 5px;
    color: #777
}

.ws-footer a:hover {
    color: #1e9fff;
    text-decoration: underline
}
.ws-anchor:not(h1), [lay-toc]:not(h1) {
    padding-top: 86px !important
}
[lay-tips] {
    cursor: pointer
}
.layui-menu * {
    box-sizing: border-box;
}
.ws-menu {
    position: fixed;
    top: 60px;
    bottom: 0;
    width: 240px;
    z-index: 777;
    min-height: 0;
    border-top: none;
    overflow: hidden;
    background-color: #fff
}

.ws-menu:hover {
    overflow-y: auto;
    overflow-x: hidden
}
.ws-menu .layui-menu-body-title {
    font-size: 14px;
}
.ws-menu .layui-menu-body-title .layui-font-gray {
    padding-left: 6px
}

.ws-menu .layui-menu-body-title .layui-badge,.ws-menu .layui-menu-body-title .layui-badge-dot {
    left: 6px
}

.ws-menu .layui-menu-body-title .layui-badge {
    height: 16px;
    line-height: 16px
}
.ws-menu .layui-menu-item-group .layui-menu-body-title, .ws-menu .layui-menu-item-parent .layui-menu-body-title {
    padding-right: 0;
}
.ws-menu .layui-menu {
    padding-bottom: 16px
}

.ws-content {
    position: relative;
    margin: 0 0 0 240px;
    line-height: 1.8;
    box-sizing: border-box
}
.ws-anchor {
    margin-bottom: 16px
}

.ws-anchor.layui-code-preview {
    margin-bottom: 0
}

.ws-anchor,[lay-toc] {
    padding-top: 76px!important;
    margin-top: -76px!important
}

.ws-anchor:not(h1),[lay-toc]:not(h1) {
    padding-top: 86px!important
}

a[lay-toc] {
    display: inline-block
}
.ws-detail {
    padding-bottom: 16px
}

.ws-text {
    color: #3a3a3a
}

.ws-text h1,.ws-text h2 {
    font-weight: 700
}

.ws-text h1 {
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 11px;
    border-bottom: 1px solid #eee;
    font-size: 24px;
    font-weight: 700
}

.ws-text h2,.ws-text h3,.ws-text h4.ws-anchor {
    margin: 16px 0
}

.ws-text h2 {
    padding-top: 20px;
    font-size: 21px
}

.ws-text h3 {
    font-size: 18px
}

.ws-text h4 {
    font-size: 16px
}

.ws-text h2 span {
    position: relative;
    top: -2px;
    left: 3px;
    font-weight: 400
}

.ws-text p {
    margin: 16px 0
}
.ws-bg-light {
    background-color: #fff!important
}
.ws-side {
    position: absolute;
    right: -210px;
    top: 32px;
    bottom: 0;
    width: 210px
}

.ws-side-fixed {
    position: fixed;
    z-index: 776;
    width: 210px
}

.ws-dir {
    position: relative
}

.ws-dir:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-left: 1px solid #eee;
    content: ''
}

.ws-dir-ul {
    position: relative;
    max-height: calc(100vh - 210px);
    padding-left: 1px;
    box-sizing: border-box;
    overflow: hidden;
    transition: all .3s
}

.ws-dir-ul:hover {
    overflow: auto
}

.ws-dir-ul li {
    position: relative;
    padding-left: 16px;
    line-height: 28px;
    color: rgba(0,0,0,.35)
}

.ws-dir-ul li[level="2"] {
    padding-left: 32px
}

.ws-dir-ul li[level="3"] {
    padding-left: 48px
}

.ws-dir-ul li a {
    display: block
}

.ws-dir-ul li a:hover,.ws-dir-ul li.layui-this a {
    color: #5fb878
}

.ws-dir-ul li.layui-this:before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    border-left: 1px solid #5fb878
}

.ws-dir-ul li .layui-badge-dot {
    top: -2px;
    left: 3px
}
.layui-fixbar li[lay-type=dir] {
    display: none
}
@media screen and (max-width: 1399.98px) {
    .layui-container {
        width:auto!important
    }
}

@media screen and (max-width: 991.98px) {
    .ws-container {
        width:100%!important;
        overflow: hidden
    }

    .ws-menu {
        top: 0;
        left: -340px;
        transition: all .3s;
        z-index: 1003;
        overflow-y: auto;
        overflow-x: hidden
    }

    .ws-menu-bar {
        display: block!important;
        position: fixed;
        z-index: 999;
        top: 50%;
        left: 0;
        width: 52px;
        height: 52px;
        line-height: 52px;
        margin-top: -26px;
        border-radius: 3px;
        text-align: center;
        color: #fff;
        cursor: pointer;
        box-shadow: 1px 1px 16px rgba(0,0,0,.16)
    }

    .ws-menu-bar .layui-icon {
        font-size: 21px
    }

    .ws-menu-show .ws-menu {
        display: block;
        left: 0
    }

    .ws-shade-show .ws-shade {
        content: '';
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0,0,0,.7);
        z-index: 1001
    }

    .ws-content {
        margin: 0;
        padding: 16px
    }

    .ws-text-tools {
        display: none
    }

    .ws-text>div {
        overflow-x: auto
    }

    .ws-side {
        position: fixed;
        top: 0;
        right: -240px;
        padding-top: 32px;
        z-index: 1000000;
        background-color: #fff;
        transition: all .3s
    }

    .ws-side-show .ws-side {
        right: 0
    }

    .ws-side-show .ws-side:before {
        content: '目录';
        position: absolute;
        top: 0;
        padding: 0 16px;
        height: 32px;
        line-height: 32px;
        color: #ccc
    }

    .ws-dir-ul {
        overflow: auto
    }

    .layui-fixbar li[lay-type=dir] {
        display: block
    }
}

@media screen and (max-width: 767.98px) {
    .ws-content {
        padding: 16px 0
    }
    .ws-logo {
        left:50%;
        margin-left: -120px
    }
     .ws-footer {
        background: #fafafa
    }

    .ws-footer p {
        padding-bottom: 16px
    }

    .ws-footer a {
        display: block
    }
}
.layui-image {
    padding: 15px 0;
    width: 100%;
}
/* 图片自适应规则 */
.img-responsive {
    max-width: 100%;   /* 宽度不超过容器 */
    height: auto;      /* 高度自适应 */
    display: block;    /* 消除图片底部间隙 */
    margin: 0 auto;    /* 水平居中 */
}
