/* 正文段落统一设置 */
main p {
  font-size: 16px;                       /* 小四字号 */
  font-family: "SimSun", "隶书", "Times New Roman", serif;
  text-align: justify;                  /* 两端对齐 */
  text-indent: 2em;                     /* 首行缩进 2 字 */
  line-height: 1.5;                     /* 行间距 1.5 倍 */
  margin-bottom: 1.0em;                   /* 段落间距 */
}

/* 中文内容强制使用宋体 */
:lang(zh),
html[lang|="zh"] {
  font-family: "SimSun", "隶书", serif;
}

/* 英文内容使用 Times New Roman */
:lang(en) {
  font-family: "Times New Roman", serif;
}

/* 强制列表项使用正文相同的字体和字号 */
ul, ol, li {
  font-family: "SimSun", "隶书", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
  text-indent: 0em;
}


.footnotes ol {
  list-style: none;           /* 去掉默认编号样式 */
  padding-left: 0;
  margin-left: 0;
}

.footnotes li {
  display: flex;              /* 使用弹性布局，使编号和内容同行 */
  align-items: flex-start;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.footnotes li::before {
  content: counter(list-item) ". ";
  counter-increment: list-item;
  font-weight: bold;
  margin-right: -2em;        /* 控制编号和内容间距 */
  min-width: 2em;             /* 保持编号列宽一致 */
  text-align: justify;
}

.figure {
  text-align: center;
}

.figcaption {
  text-align: center;
}

/* 针对 MathJax 渲染行内数学公式下标调整 */
mjx-mi > mjx-sub {
  font-size: 0.8em;         /* 缩小字体 */
  vertical-align: -0.4em;   /* 明确下沉 */
}

/* 备用：针对非 MathJax 数学公式的下标 */
.math.inline sub {
  font-size: 50%;
  vertical-align: -0.3em;
}

.math.inline, .math.display {
  font-family: "Cambria Math", "STIX", "Times New Roman", serif;
}

