:root {
  --ink: #202327;
  --muted: #68717c;
  --line: #d8dde3;
  --soft-line: #eef1f4;
  --paper: #ffffff;
  --accent: #9b6731;
  --accent-strong: #24415d;
  --table-head: #f4f6f8;
  --shadow: 0 18px 45px rgb(32 35 39 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.82;
  letter-spacing: 0;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 64px, 1120px);
  margin: 0 auto;
  padding: 54px 0 38px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.site-header h1 {
  margin: 0 auto;
  max-width: 880px;
  font-size: 42px;
  line-height: 1.25;
  font-weight: 800;
}

.upload-date {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.page-shell {
  width: min(100% - 64px, 1120px);
  margin: 34px auto 88px;
}

.toc {
  margin: 0 auto 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 16px;
}

.toc div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.toc a {
  max-width: 100%;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.toc a:hover {
  color: var(--accent);
}

.document {
  min-width: 0;
  max-width: 980px;
  margin: 0 auto;
  padding: 58px 66px 82px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  counter-reset: section;
}

.document h2,
.document h3,
.document h4,
.document p,
.doc-list,
.table-wrap {
  overflow-wrap: anywhere;
}

.document h2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--soft-line);
  color: var(--accent-strong);
  font-size: 25px;
  line-height: 1.42;
  counter-increment: section;
}

.document h2:first-child {
  margin-top: 0;
}

.document h2::before {
  content: counter(section, decimal-leading-zero);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.document h3,
.document h4 {
  margin: 30px 0 12px;
  color: var(--ink);
  line-height: 1.45;
}

.document h3 {
  font-size: 21px;
}

.document h4 {
  font-size: 18px;
}

.document p {
  margin: 10px 0;
  text-align: justify;
  text-justify: inter-ideograph;
}

.document strong {
  font-weight: 700;
}

.table-caption {
  margin: 26px 0 8px !important;
  color: var(--accent-strong);
  font-weight: 700;
  text-align: left !important;
}

.doc-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 20px;
  padding: 0;
  list-style: none;
}

.doc-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.marker {
  min-width: 2.2em;
  color: var(--accent);
  font-weight: 700;
  text-align: right;
}

.table-wrap {
  width: 100%;
  margin: 14px 0 30px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  line-height: 1.58;
}

th,
td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--table-head);
  color: var(--accent-strong);
  font-weight: 700;
  text-align: center;
}

tr:nth-child(even) td {
  background: #fbfcfd;
}

.doc-figure {
  margin: 22px 0 30px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.doc-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.table-image {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
    line-height: 1.74;
  }

  .header-inner,
  .page-shell {
    width: min(100% - 30px, 1120px);
  }

  .header-inner {
    padding: 38px 0 28px;
  }

  .site-header h1 {
    font-size: 30px;
  }

  .page-shell {
    margin-top: 24px;
    margin-bottom: 54px;
  }

  .document {
    padding: 30px 18px 44px;
    box-shadow: none;
  }

  .document h2 {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 38px;
    font-size: 22px;
  }

  .document h2::before {
    font-size: 13px;
  }

  .toc div {
    display: grid;
    gap: 8px;
  }

  table {
    min-width: 680px;
  }
}
