/* 固定目录容器（左侧） */
.catalogue {
    position: fixed;
    /* 固定定位 */
    top: 20px;
    /* 距离顶部距离 */
    left: 20px;
    /* 距离左侧距离 */
    width: 250px;
    /* 固定宽度 */
    height: calc(100vh - 40px);
    /* 高度占满屏幕 */
    overflow-y: auto;
    /* 如果目录过长，允许自身滚动 */
    background: white;
    /* 背景色（可选） */
    z-index: 100;
    /* 确保目录在内容上方 */
}

/* 右侧内容区域（留出左侧目录的宽度） */
.document-detail-body {
    /* margin-left: 280px; */
    /* 避免被目录遮挡 */
    padding: 20px;
    overflow-y: auto;
    /* 允许内容滚动 */
}

@media (max-width: 768px) {
    .catalogue {
        display: none;
        /* 隐藏目录 */
    }

    .document-detail-body {
        margin-left: 0;
        /* 恢复全宽 */
    }
}

/* 基础样式 */
.subdirectory>li>a {
    position: relative;
    padding-left: 30px;
}

/* 默认隐藏所有箭头 */
.subdirectory>li>a::after {
    display: none;
}

/* 有子目录时显示箭头 */
.subdirectory>li.has-children>a::after {
    display: block;
    content: "";
    background: url(http://www.h3c.com/cn/tres/WebUI/images/sj_solve.png) no-repeat;
    background-size: cover;
    width: 15px;
    height: 30px;
    position: absolute;
    top: 0;
    left: 8px;
    pointer-events: none;
}

/* 展开状态的箭头 */
.subdirectory>li.has-children.expanded>a::after {
    transform: rotate(90deg);
    transform-origin: 50% 51%;
    top: 4px;
    left: 3px;
}

/* 点击区域样式 */
.subdirectory>li.has-children>a span {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

a[name^="Topic_"] {
    display: block;
    scroll-margin-top: 100px;
    position: relative;
    top: -100px;
    visibility: hidden;
}

@media (max-width: 768px) {
    a[name^="Topic_"] {
        scroll-margin-top: 50px;
        top: -50px;
    }
}