body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1ch;
}

/* 日期样式 */
body>p:first-of-type {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-style: italic;
}

table {
  border-collapse: collapse;
  margin: 10px 0 15px 0;
}

td,
th {
  vertical-align: top;
  border: 1px solid #ddd;
  padding: 3px 10px;
}

/* 列表样式 */
ul {
  /*list-style: none;*/
  /*display: flex;*/
  flex-direction: column;
  gap: 0.5rem;
}

li {
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}


/* 链接样式 */
a {
  text-decoration: none;
}

a:hover {
  color: #F00;
  text-decoration: underline;
}

pre {
  white-space: pre-wrap;
  /* CSS3 */
  white-space: -moz-pre-wrap;
  /* Firefox */
  white-space: -pre-wrap;
  /* 古老的 Opera */
  white-space: -o-pre-wrap;
  /* 古老的 Opera */
  word-wrap: break-word;
  /* IE 5.5-7 */
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  padding: 8pt;
  overflow: auto;
  margin: 1.2em;
  font-size: 12px;
  line-height: 1.5;
  background-color: #f2f2f2;
  color: #000
}

/* PC 端样式 屏幕宽度 ≥ 768px */
@media screen and (min-width: 768px) {
  #table-of-contents {
    position: fixed;
    left: 10px;
    top: 20px;
    width: 250px;
    font-size: 14px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    /* 自定义滚动条 */
    scrollbar-width: none;
    z-index: 100;
  }

  body:has(#table-of-contents) {
    padding-left: 270px;
  }

}

/* 手机端样式 屏幕宽度 ≤ 767px */
@media screen and (max-width: 767px) {
  body {
    max-width: 800px;
  }
}
