/**
 * 顶部小导航
 */
.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: 0;
    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) {
    .doc-head {
        height: auto;
        padding: 0.8rem 0;
    }
    .left-container {
        height: 100vh;
        width: 100%;
    }
    .right-container {
        width: 100%;
        height: calc(100vh - 8rem);
        float: none;
    }
    .doc-container {
        margin-top: 0.8rem;
    }
    .left-offcanvas .am-offcanvas-bar {
        width: 85%;
        max-width: 28rem;
    }
    .left-search-container {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
    }
}

/**
 * 阅读套餐卡片
 */
.doc-access-plan-card-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.doc-access-plan-card-list > li {
    padding: 0.5rem;
}
.doc-access-plan-card {
    position: relative;
    border: 0.1rem solid #eee;
    background: #fff;
    padding: 1.2rem 1rem;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.2s;
    margin: 0;
}
.doc-access-plan-card:hover,
.doc-access-plan-card-list > li.selected .doc-access-plan-card {
    border-color: var(--color-main);
}
.doc-access-plan-card .doc-access-plan-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.doc-access-plan-card-days {
    display: block;
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 0.5rem;
}
.doc-access-plan-card-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
}
.doc-access-plan-card .icon-subscript {
    position: absolute;
    bottom: -0.9rem;
    right: -1.7rem;
    font-size: 3.4rem;
    color: var(--color-main);
    display: none;
    line-height: 1;
}
.doc-access-plan-card-list > li.selected .doc-access-plan-card .icon-subscript {
    display: block;
}
#doc-pay-popup .doc-pay-plans {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

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