/* 调整页面宽度 */
.page-inner {
  max-width: 1200px !important; /* 默认约 900px */
}

/* 调整标题样式 */
h1, h2, h3 {
  color: rgb(25, 31, 27) !important; /* 标题颜色 */
  margin-top: 1.5em !important;
}

.book-summary ul.summary li a {
  color: rgb(106, 112, 108) !important; /* 覆盖目录链接颜色 */
  text-decoration: none !important; /* 始终取消下划线（包括默认状态） */
  padding: 5px 10px; /* 内边距，让背景色区域更明显 */
  transition: background-color 0.3s ease-in-out; /* 背景色平滑过渡 */
  
}

.book-summary ul.summary li a:hover {
  background-color: #eddae9 !important; /* 悬停时的背景色 */
  color: rgb(80, 85, 82) !important; /* 悬停时字体色（轻微加深） */
}

.book-summary ul.summary li a.chapter.active.expanded{
  color: #165dff !important; /* 文字色 */
  background-color: #0d70e0 !important; /* 背景色 */
  border-left: 2px solid #165dff !important; /* 左侧边框 */
  transition: all 0.3s ease !important;
}



/* 正文中的链接 */
.page-inner .markdown-section a {
  color: rgb(235, 171, 224) !important; /* 覆盖正文链接颜色 */
}

/* 调整代码块样式 */
.code-wrapper {
  border-radius: 6px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

:before {
  color: rgb(190, 194, 191);
  font-weight: 1px;
}

.book.without-animation.with-summary.font-size-2.font-family-1{
  background-color: rgb(247, 252, 249);
} 

/* 链接默认状态 */
a {
  padding: 2px 4px;
  border-radius: 2px;
  transition: all 0.2s ease; /* 简化过渡：所有变化统一时间 */
  font-size: 15px !important;
}

/* 鼠标滑过状态 */

span {
  margin-top: 20px;
  color: black;
  font-size: 18px !important;
  font-weight: bold;
}


/* 针对 expandable-chapters 插件的折叠图标 */
.book-summary .chapter .expand-icon,
.book-summary .chapter i.fa {
  /* 移除默认左浮动，改为右浮动 */
  float: right !important;
  /* 调整图标与文字的间距 */
  margin-left: 230px !important;
  margin-right: 0 !important;
    /* 垂直居中对齐（关键） */
  vertical-align: middle !important;
  line-height: inherit !important; /* 继承父元素行高，确保对齐 */
  color: #484c50;
  /* 取消加粗 */
  
  font-weight: 2px !important;
  
  /* 可选：调整字号 */
  font-size: 12px !important; /* 根据需要增大或减小 */
}

/* 确保文字不被图标覆盖，保持左对齐 */
.book-summary .chapter a,
.book-summary .chapter span {
  display: inline-block;
  width: calc(100% - 20px); /* 预留图标的位置 */
}