.knowledge-category-name li {
    margin: 6px 0;
    padding: 8px;
    border-radius: 4px;
    list-style: none;
    transition: all 0.2s ease; /* 添加所有属性过渡 */
    background: #fff;
    font-size: 14px; /* 增加字号 */
    font-weight: 600;
    color: #4e5358
}

.knowledge-category-name li.current-article {
    background: #f8f9fa!important;
    /* border-left: 3px solid #0073aa!important; */
    padding-left: 8px!important;
}

/* 新增当前文章文字颜色 */
.knowledge-category-name li.current-article a {
    color: #16b597!important; 
    font-weight: 600;
}

.knowledge-category-name li:hover {
    background: #f5f5f5;
    transform: translateX(3px); /* 添加悬停动画 */
}

.knowledge-category-name a {
    color: #444;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.knowledge-category-name a:hover {
    color: #16b597;
    /* text-decoration: underline; */
}



/* 全局字体 */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Widget 显示当前知识分类名 */
.knowledge-category-title {
    display: block;       /* 块级元素才支持 margin auto */
    margin: 0;
    /* text-align: center; */
    color: #4e5358;
    font-size: 16px;
    font-weight: 600;
}




/* 每个合集的容器 */
.knowledge-collection-group {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

/* 合集小标题（可点击展开收起） */
.knowledge-collection-subtitle {
    font-family: "SimHei", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #4e5358;
    margin-bottom: 0.5rem;
    position: relative;
    cursor: pointer; /* 显示小手 */
    padding-right: 20px;
}
.knowledge-collection-subtitle::after {
    content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'><polyline points='1,1 6,6 11,1' fill='none' stroke='%2316b597' stroke-width='2'/></svg>");
    position: absolute;
    right: 0;
    top: 0;
    font-size: 14px;
    color: #16b597;
    transition: transform 0.3s ease;
}
.knowledge-collection-subtitle.collapsed::after {
    transform: rotate(-90deg); /* 折叠时箭头向左 */
}

/* 文章列表 */
.knowledge-collection-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "SimHei", "Microsoft YaHei", sans-serif;
}
.knowledge-collection-list li {
    margin: 6px 6px;
    padding: 8px;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}
.knowledge-collection-list li.current-article {
    background: #f8f9fa !important;
    padding-left: 8px !important;
}
.knowledge-collection-list li.current-article a {
    color: #16b597 !important;
    font-weight: 600;
}
.knowledge-collection-list li:hover {
    background: #f5f5f5;
    transform: translateX(3px);
}

/* 文章链接 */
.knowledge-collection-list a {
    display: block;
    color: #6e757a;
    text-decoration: none;
    transition: color 0.2s;
}
.knowledge-collection-list a:hover {
    color: #16b597;
}

/* 列表之间的分隔线 */
.knowledge-collection-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1.5rem 0;
}

/* 移动端响应 */
@media (max-width: 782px) {
    .knowledge-category-title {
        font-size: 1.2em;
    }
    .knowledge-collection-subtitle {
        font-size: 1.1em;
    }
    .knowledge-collection-list li {
        font-size: 13px;
    }
}
