/*
    LeftNav 左侧导航树 修复版（消除多余空行，协调背景）
*/
a {text-decoration:none;}
a,a:visited {color:#222;background:transparent;}
body {
    margin: 0;
    padding-top: 4px; /* 大幅减少顶部空白行 */
    padding-left:0;
    font: 13px tahoma,宋体,sans-serif;
    background: transparent; /* 继承#left背景，不重复色块 */
}
dt {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 4px 12px;
}
dd {margin:0 0 4px 12px;}
h4 {
    margin: 0 0 6px;
    padding: 0;
    font-size: 15px;
    text-align: left;
}
p {margin:0;padding:0 0 4px 14px;}
p a,p a:visited {color:#0066cc;background:inherit;}

/*CNLTreeMenu Start */
.CNLTreeMenu {
    margin: 0;
    padding: 6px 8px; /* 收紧上下内边距，消除顶部空行 */
    text-align:left;
}
/* 标题span紧贴ul，干掉标题下方空行 */
.CNLTreeMenu > span {
    display:block;
    margin-bottom:0;
    line-height:1.3;
}
.CNLTreeMenu img.s {
    cursor: pointer;
    vertical-align: middle;
    margin-right:3px;
}
.CNLTreeMenu ul {
    padding: 0;
    margin-bottom:2px; /* 层级间隙压缩 */
}
.CNLTreeMenu li {
    list-style:none;
    padding:2px 0; /* 行高紧凑，无松散换行 */
}
/* 鼠标悬浮高亮，提升交互 */
.CNLTreeMenu li a:hover {
    color:#165DFF;
    background:#e8f0fe;
    padding:2px 5px;
    border-radius:4px;
    transition:0.15s;
}
.Closed ul {display:none;}
.Child img.s {background:none;cursor:default;}

#CNLTreeMenu1 ul {margin:0 0 0 16px;}
#CNLTreeMenu1 img.s {width:20px;height:15px;}
#CNLTreeMenu1 .Opened img.s {background:url(skin1/opened.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Closed img.s {background:url(skin1/closed.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Child img.s {background:url(skin1/child.gif) no-repeat 3px 5px;}

#CNLTreeMenu2 ul {margin:0 0 0 16px;}
#CNLTreeMenu2 img.s {width:17px;height:15px;}
#CNLTreeMenu2 .Opened img.s {background:url(skin2/opened.gif) no-repeat 4px 6px;}
#CNLTreeMenu2 .Closed img.s {background:url(skin2/closed.gif) no-repeat 3px 6px;}
#CNLTreeMenu2 .Child img.s {background:url(skin2/child.gif) no-repeat 3px 5px;}

#CNLTreeMenu3 ul {margin:0 0 0 16px;}
#CNLTreeMenu3 img.s {width:34px;height:18px;}
#CNLTreeMenu3 .Opened img.s {background:url(skin3/opened.gif) no-repeat 0 1px;}
#CNLTreeMenu3 .Closed img.s {background:url(skin3/closed.gif) no-repeat 0 1px;}
#CNLTreeMenu3 .Child img.s {background:url(skin3/child.gif) no-repeat 13px 2px;}

#CNLTreeMenu1,#CNLTreeMenu2,#CNLTreeMenu3 {
    float:left;width:100%;
    background:transparent; /* 继承外层#left，不双层色块 */
    margin:0;
    padding:0;
}
#CNLTreeMenu1,#CNLTreeMenu2 {padding-bottom:4px;}

/* 左侧树形选中高亮核心样式 */
.CNLTreeMenu li a.active,
.CNLTreeMenu li a:target {
    background: #d9ecff !important;
    color: #165DFF !important;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
}
/* 展开父级保持浅底色区分 */
.CNLTreeMenu > li.Opened > a {
    background: #eef5ff;
}
/* hover弱化区分 */
.CNLTreeMenu li a:hover {
    background: #e8f0fe;
}

/* 当前锚点常驻选中高亮（和hover区分开） */
.CNLTreeMenu a.active {
    background: #d9ecff !important;
    color: #165DFF !important;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
}

.CNLTreeMenu li.Current > a {
    background: #d9ecff !important;
    color: #165DFF !important;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
}



/* 解决右侧锚点跳转被顶部fixed导航遮挡、定位跑偏 */
html {
    scroll-padding-top: 80px !important;
    scroll-behavior: smooth;
}
h2[id], h3[id], h4[id] {
    scroll-margin-top: 80px !important;
}

/* 左侧容器平滑滚动，避免一跳直接顶到顶部 */
#left {
    scroll-behavior: smooth;
    overflow-y: auto !important;
    overflow-x: hidden;
}

html,body{
    height:100%;
    margin:0;
    padding:0;
}
body{
    overflow-y:auto;
}

.ViewCode {
 clear:both;
 border:1px solid #FFB900;background:#FFFBEB;color:inherit;margin:4px 0;padding:6px;border-radius:6px;
}
.ViewCode h6 {color:#00f;}
/*CNLTreeMenu End */