/* 页面整体样式 */
body {
  background: #c1e6c6;
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* 内容居中容器 */
.container {
  max-width: 1080px;
  margin: 40px auto;
  padding: 20px;
  background: #c1e6c6;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  white-space: pre-wrap; /* 保留换行 */
  font-size: 20px;
}

/* 标题样式 */
.chapter-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 1px;
  color: #2f855a;
}

/* 美观分割线 */
.divider, .toc-divider {
  width: 60%;
  max-width: 300px;
  height: 3px;
  margin: 1px auto 20px;
  background: linear-gradient(to right, transparent, #2f855a, transparent);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 目录样式 */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 500px;
  text-align: center;
  line-height: 0.5; /* 控制行高，避免间距太大 */
}

.toc-list li {
  margin: 4px 0; /* 每行上下间距控制在4px左右，更紧凑 */
}

.toc-list a {
  text-decoration: none;
  font-size: 1.1em; /* 可根据需要调整大小 */
  padding: 4px 10px; /* 缩小内边距，让行高更紧凑 */
  border-radius: 6px;
  transition: 0.2s;
  color: #2f855a;
}

.toc-list a:hover {
  background: #c7edcc;
  color: #fff;
}


/* 底部导航按钮 */
.nav {
  display: flex;
  justify-content: space-between;
  margin-top: 0px;
}

.nav a {
  flex: 1;
  margin: 0 5px;
  text-align: center;
  padding: 1px;
  background: #c1e6c6;
  color: #2f855a;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.2s;
}

.nav a:hover {
  background: #c7edcc;
}
