/* 页面基础样式 */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  box-sizing: border-box;
  overflow: auto;
  font-size: 15px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.42857143;
  color: #333;
  background-color: #fff;
}

/* 段落样式 */
p {
  font-size: 17px !important;
  line-height: 1.8 !important;
}

/* 段落内链接样式 */
p a{
  color: #337ab7;
}
p a:hover{
  color:#086bc1;
}

/* 四级标题样式 */
h4{
  /* text-indent: 2em;   首行缩进2字符 */
  line-height: 1.5;
  color: #02784d;
  font-size: 20px !important;
}

/* .h-5 段落样式 */
h5 {
  text-indent: 1.1em;   /* 首行缩进2字符 */
  font-size: 14px;
  margin-top: 0.5em;  /* 段落上方间距 */
  margin-bottom: 0.8em;  /* 段落下方间距 */
  line-height: 1.5;
}
h5 span {
  margin-left: 2em;  /* 段落内元素左间距 */
}

/* .h-6 段落样式 */
h6{
  text-indent: 1em;   /* 首行缩进2字符 */
  line-height: 1.5;
  font-size: 12px;
}


/* 书本容器布局 */
.bookContainer {
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh;
  display: flex;
  box-sizing: border-box;
  align-items: flex-start;
}

/* 书本内容区域 */
.bookContent {
  flex-grow: 1;
  min-width: 0;
}

/* 侧边栏样式 */
.bookSideBar {
  max-width: 500px;
  background-color: #fff;
  margin: 0;
  padding: 20px 20px 20px 0;
  border-right: 1px solid black;
  height: 100vh;
  display: inline-block;
  box-sizing: border-box;
}

/* 首页链接样式 */
.homeLink {
  color:black;
  font-size:26px;
  text-align: left;
  padding-left:0;
}

/* 侧边栏分割线样式 */
.bookSideBar hr {
  margin-left:0;
  margin-right:0;
  border-top: 1px solid #eee;
} 
/* 让导航内容一行显示 */
.bookSideBar .sidenav-list,
.bookSideBar .sidenav-list li,
.bookSideBar .sidenav-list a {
  white-space: nowrap;
}
.nav-left-title {
  font-size: 1.5rem;
  color: #337ab7;
  font-weight: bold;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  margin-top: 7px;
}

.sidenav hr {
  margin: 16px 0 16px 24px;
  border: none;
  border-top: 1px solid #eee;
  width: 80%;
}

.sidenav-list {
  list-style: none;
  padding: 0 0 0 24px;
  margin: 0;
}

.sidenav-list li {
  margin-bottom: 18px;
}

.sidenav-list a {
  color: #337ab7;
  text-decoration: none;
  font-size: 1.15rem;
  transition: color 0.2s;
}

.sidenav-list a:hover {
  color: #23527c;
  text-decoration: underline;
}




/* 代码块排版美化 */
pre code {
  display: block;
  background: #fff;
  color: #222;
  padding: 1em;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.7;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
  overflow-x: auto;
  margin-bottom: 1em;
  border: 1px solid #e0e0e0;
} 


/* 自定义 highlight.js 代码高亮内置变量颜色 */
.hljs-variable,
.hljs-built_in,
.hljs-attr,
.hljs-property {
  color: #D94A7A !important;
}