/**
 * 顶部小导航
 */
.header-top,
.top-nav-right {
    border-bottom-color: #f5f5f5;
}

/**
 * 头部导航
 */
.doc-head {
    height: 6rem;
}
.doc-head .am-container {
    position: relative;
    height: 100%;
}
.doc-head .logo img {
    max-height: 4rem;
    width: auto;
}
.doc-container {
    margin-top: 1.2rem;
}
@media only screen and (min-width: 641px) {
    .left-offcanvas-submit {
        display: none;
    }
}
@media only screen and (max-width:640px) {
    .doc-head .logo {
        display: none;
    }
}

/**
 * 头部右侧导航-列表
 */
.doc-list-choice button,
.doc-list-choice button:hover,
.doc-list-choice button:active,
.doc-list-choice button:focus {
    color: #333 !important;
}
.doc-head .navigation-container {
    position: static;
    float: right;
}
@media only screen and (min-width: 641px) {
    .doc-head .navigation-container .am-dropdown-toggle {
        display: none;
    }
    .doc-head .navigation-container .am-dropdown-content {
        display: block;
        -webkit-box-shadow: none;
        -moz-box-shadow: 0 0.2rem 1rem rgb(136 136 136 / 0.4);
        box-shadow: none;
        position: static;
        border: 0;
        padding: 0;
    }
    .doc-navigation {
        position: absolute;
        right: 0;
        bottom: 0.8rem;
    }
    .doc-navigation li {
        float: left;
    }
    .doc-navigation li:not(:last-child) {
        margin-right: 2.4rem;
    }
}
@media only screen and (max-width: 1024px) {
    .doc-navigation {
        right: 1.2rem;
    }
}
@media only screen and (max-width:640px) {
    .doc-head .navigation-container {
        margin-top: 0.6rem;
    }
    .doc-head .navigation-container .am-dropdown-content {
        right: 1.2rem;
    }
    .doc-navigation li:not(:last-child) {
        margin-bottom: 1rem;
    }
    .doc-navigation li a {
        display: block;
    }
}

/**
 * 右侧内容
 */
.right-container {
    width: calc(100% - 29.2rem);
    height: calc(100vh - 20rem);
}
.right-container iframe {
    border: 0px;
    vertical-align: top;
}

/**
 * 左侧目录和文件
 */
.left-container {
    width: 28rem;
    height: calc(100vh - 20rem);
}
.left-container .am-dropdown-content > p:not(:last-child) {
    margin-bottom: 1rem;
}
.left-content-container {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100% - 7rem);
}
.left-content-container ul {
    margin: 0;
}
.left-container .am-dropdown-content > p,
.left-content-container ul li,
.left-content-container ul li i {
    cursor: pointer;
}
.left-content-container ul li .right-operate i:hover {
    color: #666;
}
.left-content-container ul li span {
    display: inline-block;
    max-width: 100%;
}
.left-content-container ul li.folder {
    padding: 0.5rem 0 0 1.6rem;
}
.left-content-container > ul > li.folder {
    padding-left: 0;
    padding-right: 0;
}
.left-content-container > ul > li > ul {
    margin-top: 0.2rem;
}
.left-content-container > ul > li > ul > li > ul {
    margin-top: 0.4rem;
}
.left-content-container > ul > li > ul > li.folder {
    padding-bottom: 0;
}
.left-content-container ul li.folder.no-stretch,
.left-content-container > ul > li > ul > li.folder,
.left-content-container > ul > li ul {
    padding-left: 1rem;
}
.left-content-container ul li.folder > * {
    vertical-align: middle;
}
.left-content-container > ul > li.folder.no-stretch {
    padding-left: 0.2rem;
}
.left-content-container li.file {
    padding: 0 0 0 1rem;
    height: 3rem;
    line-height: 3rem;
    position: relative;
}
.left-content-container .right-operate .node-event[data-event="file-refresh"] {
    display: none;
}
.left-content-container li.am-active > .right-operate .node-event[data-event="file-refresh"] {
    display: block;
}
.left-content-container li.file.am-active::before {
    background: var(--color-main);
    width: 0.3rem;
    height: 1rem;
    display: block;
    content: '';
    position: absolute;
    top: 1rem;
    left: 0;
    border-radius: var(--border-radius);
}
.left-content-container li.file.am-active > span,
.left-content-container li.file:hover > span {
    color: var(--color-main) !important;
}
.left-content-container ul > li.folder > span {
    max-width: 20rem;
}
.left-content-container ul > li.folder > ul > li > span {
    max-width: 18rem;
}
.left-content-container ul > li.folder > ul > li.folder > ul > li > span {
    max-width: 22rem;
}
.left-content-container ul li.folder i.folder-icon {
    width: 1.4rem;
}
.left-content-container li i.node-stretch {
    -webkit-transition: all 300ms;
    transition: all 300ms;
    display: inline-block;
    width: 1.4rem;
    height: 1.4rem;
    line-height: 1.4rem;
    text-align: center;
    font-size: 1.2rem;
}
.left-content-container li i.node-stretch-rotate {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -webkit-transition: all 300ms;
    transition: all 300ms;
}
.left-offcanvas .am-offcanvas-bar {
    background: transparent;
    width: 28rem;
    overflow: hidden;
}
.left-offcanvas .am-offcanvas-bar:after {
    display: none;
}
@media only screen and (min-width: 641px) {
    .left-offcanvas {
        position: static;
        display: inline-block;
        background: transparent;
    }
    .left-offcanvas .am-offcanvas-bar {
        position: static;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }
}
@media only screen and (max-width:640px) {
    .left-container {
        height: 100vh;
    }
    .right-container {
        width: 100%;
    }
}

/**
 * 底部页脚
 */
.am-footer-default {
    border: 0;
    background: transparent;
}