/* 楷体 GB2312：系统名全部指向同一份内嵌字库，避免浏览器拣到别的楷体。 */
@font-face {
  font-family: "楷体_GB2312";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/STKaiti.woff2") format("woff2");
}
@font-face {
  font-family: "KaiTi_GB2312";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/STKaiti.woff2") format("woff2");
}
@font-face {
  font-family: "STKaiti";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/STKaiti.woff2") format("woff2");
}
@font-face {
  font-family: "华文楷体";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/STKaiti.woff2") format("woff2");
}
@font-face {
  font-family: "Kaiti SC";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/STKaiti.woff2") format("woff2");
}
@font-face {
  font-family: "KaiTi";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/STKaiti.woff2") format("woff2");
}
@font-face {
  font-family: "楷体";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/STKaiti.woff2") format("woff2");
}

:root {
  --font-kaiti: "楷体_GB2312", "KaiTi_GB2312", "STKaiti", "华文楷体", "Kaiti SC", "KaiTi", "楷体", serif;
  --font: var(--font-kaiti);
  --ui-font: var(--font-kaiti);
  --mono: var(--font-kaiti);
}

html, body, button, input, select, textarea {
  font-family: var(--font-kaiti);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.md h1, .md h2 {
  -webkit-text-stroke: 0.25px currentColor;
}

.md-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}
.md-table-scroll table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin-bottom: 0;
  table-layout: auto;
}
.md thead th,
.md th,
.md tbody td,
.md td {
  text-align: left;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
