/* 自定义样式：增大左侧导航栏字体 */

/* 侧边栏整体 */
#side-nav {
    font-size: 14px !important;
}

#side-nav * {
    font-size: 14px !important;
}

#side-nav a {
    font-size: 14px !important;
}

/* 导航栏容器 */
#nav-tree,
#nav-tree-contents,
.navpath {
    font-size: 14px !important;
}

/* 导航栏所有元素 */
#nav-tree *,
#nav-tree-contents *,
.navpath * {
    font-size: 14px !important;
}

/* 导航栏链接 */
#nav-tree a,
#nav-tree-contents a,
.navpath a {
    font-size: 14px !important;
}

/* 导航栏文本和标签 */
#nav-tree .item,
#nav-tree-contents .item,
#nav-tree .label,
#nav-tree-contents .label {
    font-size: 14px !important;
}

/* 导航栏标题（加粗显示） */
#nav-tree .label,
#nav-tree-contents .label,
.navpath .label {
    font-size: 15px !important;
    font-weight: bold;
}

/* 导航栏目录项 */
#nav-tree .selected,
#nav-tree-contents .selected {
    font-size: 14px !important;
}

/* 导航栏子项 */
#nav-tree .children_ul,
#nav-tree-contents .children_ul,
#nav-tree ul,
#nav-tree-contents ul {
    font-size: 14px !important;
}

#nav-tree .children_ul li,
#nav-tree-contents .children_ul li,
#nav-tree li,
#nav-tree-contents li {
    font-size: 14px !important;
}

/* 目录树 */
.treeview,
.treeview * {
    font-size: 14px !important;
}

.treeview a {
    font-size: 14px !important;
}

.treeview .label {
    font-size: 15px !important;
}

/* 导航路径 */
.navpath ul,
.navpath li {
    font-size: 14px !important;
}

/* PlantUML / Doxygen 图片靠左展示 */
.image,
.plantumlgraph,
div.contents center,
div.contents .image center,
div.contents .plantumlgraph center {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}
div.contents center {
    display: block !important;
    text-align: left !important;
}

/* ===== 正文区域字体增大 ===== */
div.contents {
    font-size: 15px !important;
    line-height: 1.7 !important;
}

div.contents p,
div.contents li,
div.contents td,
div.contents dd {
    font-size: 15px !important;
}

/* ===== 章节标题前后行距 ===== */
div.contents h1 {
    font-size: 22px !important;
    margin-top: 36px !important;
    margin-bottom: 14px !important;
}

div.contents h2 {
    font-size: 18px !important;
    margin-top: 28px !important;
    margin-bottom: 10px !important;
}

/* 第一个标题不需要额外的顶部间距 */
div.contents > h1:first-child {
    margin-top: 8px !important;
}

/* ===== 章节标题自动编号（1. / 1.1） ===== */
div.contents {
    counter-reset: section-h1;
}

div.contents h1 {
    counter-reset: section-h2;
    counter-increment: section-h1;
}

div.contents h1::before {
    content: counter(section-h1) ". ";
}

div.contents h2 {
    counter-increment: section-h2;
}

div.contents h2::before {
    content: counter(section-h1) "." counter(section-h2) " ";
}

