.posts-nav-lists {
	padding-left: 10px;
}

/* 侧边边栏 TOC 容器悬浮专用 */
.xc_aside__item.posts-nav-box {
	position: sticky !important;
	top: 80px !important;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	z-index: 10;
}

/* 清除模块内部自带的阴影和背景，防止重叠变色 */
.xc_aside__item .xc_aside__item-contain,
.xc_aside__item .zib-widget {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	padding: 0 15px !important;
}

.xc_aside__item .xc_aside__item-title {
	padding: 0 15px;
	padding-top: 0;
	margin-bottom: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.xc_aside__item.posts-nav-box::-webkit-scrollbar {
	width: 4px;
}

.xc_aside__item.posts-nav-box::-webkit-scrollbar-thumb {
	background: var(--classC);
	border-radius: 4px;
}

.xc_aside__item.posts-nav-box.disable-sticky {
	position: static !important;
	max-height: none !important;
	overflow-y: visible !important;
}

.posts-nav-lists *:after,
.posts-nav-lists *:before {
	box-sizing: border-box;
}

.posts-nav-lists .bl {
	border-left: 1px solid var(--classC);
	padding: 10px 0;
	margin-left: 5px;
}

.posts-nav-lists li.yc:not(.active) {
	display: none
}

.posts-nav-lists li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.posts-nav-lists li a {
	flex: 1;
	/* text-ellipsis handles overflow */
}

.nav-toggle-collapse {
	cursor: pointer;
	padding: 5px;
	color: var(--routine);
	transition: transform 0.3s;
}

.nav-toggle-collapse:hover {
	color: var(--theme);
}

.posts-nav-lists li a {
	margin: 2px 10px;
	display: block;
	border-radius: 6px;
	padding: 6px 10px;
	color: var(--routine);
	transition: all 0.3s;
	font-size: 14px;
}

.posts-nav-lists li a:hover,
.posts-nav-lists li.active a {
	background: var(--classD);
	color: var(--theme);
}

.posts-nav-lists li.n-H1 a,
.posts-nav-lists li.n-H2 a {
	font-weight: 600;
}

.posts-nav-lists li.n-H3 a {
	padding-left: 20px;
	font-size: 13px;
}

.posts-nav-lists li.n-H4 a {
	padding-left: 30px;
	font-size: 12px;
}

.posts-nav-lists li.n-H5 a {
	padding-left: 40px;
	font-size: 12px;
}

.posts-nav-lists li.n-H6 a {
	padding-left: 50px;
	font-size: 12px;
}

.posts-nav-lists li::before {
	position: absolute;
	top: 50%;
	left: -5px;
	width: 8px;
	height: 8px;
	background: var(--classC);
	border-radius: 50%;
	content: '';
	transform: translateY(-50%);
	transition: all 0.3s;
	opacity: 0;
}

.posts-nav-lists li.active::before {
	opacity: 1;
	background: var(--theme);
	left: -10px;
	/* 激活时稍微向左偏移到边线上 */
}

.xc_action_item.posts-nav-switcher {
	position: relative;
}

.xc_action_item.posts-nav-switcher:hover {
	opacity: 1;
}

.posts-nav-switcher>.box-body {
	display: none;

}

.posts-nav-switcher>.zib-widget {
	position: absolute;
	display: none;
	right: 50px;
	bottom: 0px;
	border-radius: var(--radius-wrap);
	box-shadow: 0 0 10px 8px var(--main-shadow);
	overflow: auto;
	max-width: 70vw;
	background: var(--background);
	margin-bottom: 0px;
}

.posts-nav-switcher>.zib-widget>.posts-nav-lists {
	max-height: 50vh;
}

/*下载*/

.article-down {
    overflow: hidden;
    width: 100%;
}

.article-down a {
    background: #5298ff;
    color: #fff !important;
    padding: 10px 25px;
    font-size: 14px;
    border: 1px solid #5298ff;
    border-radius: 7px;
    float: left;
    margin: 1%;
    width: 14%;
    text-align: center;
    display: block;
}
