html {
    scroll-behavior: auto !important;
    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: 1370px;
    min-height: calc(100vh - 210px)
}
@media screen and (min-width:1200px) {
    .layui-container {
		width: 1370px;
	}
}
.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: 340px;
    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 226px 0 340px;
    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-anchor:not(h1), [lay-toc]:not(h1) {
    padding-top: 86px !important
}
.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: #4785e6
}

.ws-dir-ul li.layui-this:before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    border-left: 1px solid #4785e6
}

.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;    /* 水平居中 */
}
.pure-table {
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    border: 0.00714286rem solid #cbcbcb;
}
.pure-table caption {
    color: #000;
    font: italic 85%/1 arial, sans-serif;
    padding: 1em 0;
    text-align: center;
}
.pure-table td,
.pure-table th {
    border-left: 0.00714286rem solid #cbcbcb;
    border-width: 0 0 0 0.00714286rem;
    font-size: inherit;
    margin: 0;
    overflow: visible;
    padding: 0.5em 1em;
}
.pure-table thead {
    background-color: #e0e0e0;
    color: #000;
    text-align: left;
    vertical-align: bottom;
}
.pure-table td {
    width: 33.33%;
    background-color: transparent;
}
.pure-table-bordered td {
    border-bottom: 0.00714286rem solid #cbcbcb;
}
.pure-table-bordered tbody > tr:last-child > td {
    border-bottom-width: 0;
}
.notes {
    color: #ed7d31;
}
.ws-docs-subtitle {
    position: relative;
}
.ws-docs-subtitle .layui-icon-note {
    margin-right: 5px;
    color: #4785e6;
    vertical-align: middle;
}
.copy-btn {
    position: absolute;
    right: 0;
    cursor: pointer;
    top: 0;
    width: 20px;
    height: 20px;
}
.copy-btn .iconfont {
    font-size: 18px;
}
.ws-header .layui-container {
    height: 100%
}
.ws-header-assist {
    position: absolute;
    right: 15px;
    top: 50%;
    height: 32px;
    margin-top: -16px
}

.ws-header-assist>* {
    display: inline-block;
    vertical-align: middle
}

.ws-search .layui-input {
    padding-right: 32px;
    padding-left: 10px;
    box-shadow: none;
    width: 300px;
    border: none;
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
}

.ws-search .layui-input::-webkit-focus {
    color: #ccc
}

.ws-search .layui-input::-webkit-input-placeholder {
    color: #ccc
}
.ws-search>.search-icon {
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: #999
}

.search-container {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.search-container.focused {
    box-shadow: 0 6px 16px rgba(30, 159, 255, 0.3);
}

.search-icon i {
    font-size: 20px;
}

.search-results {
    position: fixed;
    top: 80px;
    bottom: 20px;
    right: 20px;
    width: 600px;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-results.visible {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.results-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.result-item {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f9fbfd;
    border-left: 4px solid #1E9FFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-item:hover {
    background: #edf7ff;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(30, 159, 255, 0.15);
}

.item-header {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-code {
    background: #e3f2fd;
    color: #1E9FFF;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.item-content {
    color: #546e7a;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #90a4ae;
}

.meta-section {
    display: flex;
    align-items: center;
}

.meta-section i {
    margin-right: 5px;
}

.loading-container {
    text-align: center;
    padding: 20px;
}

.search-results .loading {
    display: inline-flex;
    align-items: center;
    color: #1E9FFF;
    font-size: 14px;
    background: none;
}

.search-results .loading i {
    margin-right: 8px;
    animation: rotate 1.5s linear infinite;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #90a4ae;
}

.no-results i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.no-results div:first-of-type {
    font-size: 18px;
    margin-bottom: 10px;
    color: #546e7a;
}

.container {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-title {
    font-size: 32px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
    position: relative;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #1E9FFF, #009688);
    border-radius: 3px;
}

.content {
    line-height: 1.8;
    color: #455a64;
}

.content h3 {
    margin: 25px 0 15px;
    color: #1E9FFF;
    position: relative;
    padding-left: 15px;
}

.content h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #1E9FFF;
    border-radius: 50%;
}

.content ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.content li {
    margin-bottom: 10px;
    position: relative;
}

.content li:before {
    content: '•';
    color: #1E9FFF;
    font-weight: bold;
    position: absolute;
    left: -18px;
}

.footer {
    text-align: center;
    margin-top: 50px;
    color: #90a4ae;
    font-size: 14px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.results-count {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #546e7a;
    background: #f8fafc;
}

.result-highlight {
    color: red;
    font-weight: 600;
    padding: 0 4px;
    border-radius: 3px;
}
