:root {
  color-scheme: light;
  --document-font-size: 17px;
  --page-bg: #f1f4f5;
  --paper: #ffffff;
  --ink: #1d272d;
  --muted-ink: #53636c;
  --line: #c8d1d5;
  --soft-line: #e3e8ea;
  --accent: #b33b2f;
  --accent-warm: #bd7b2e;
  font-family: "SimSun", "宋体", "Songti SC", serif;
  font-size: var(--document-font-size);
  background: var(--page-bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: inherit;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 16px;
  padding: 0.45em 0.7em;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: inherit;
  transform: translateY(-160%);
}

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

.document {
  width: min(100% - 40px, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 64px 104px;
  background: var(--paper);
  box-shadow: 0 8px 30px rgb(22 38 47 / 8%);
  font-size: var(--document-font-size);
}

/* Keep every visible text role at the same size; hierarchy comes from weight and spacing. */
.document * {
  font-size: inherit;
  letter-spacing: 0;
}

.document h1,
.document h2,
.document h3,
.document p {
  overflow-wrap: anywhere;
}

.document h1,
.document h2,
.document h3 {
  break-after: avoid;
  page-break-after: avoid;
  font-weight: 700;
  line-height: 1.55;
}

.document h1 {
  margin: 0 0 2em;
  padding: 0 0 0.85em;
  border-bottom: 2px solid var(--ink);
  text-align: center;
}

.document h2 {
  margin: 2.2em 0 0.9em;
  padding: 0.18em 0 0.18em 0.72em;
  border-left: 4px solid var(--accent);
}

.document h3 {
  margin: 1.7em 0 0.65em;
  padding: 0.12em 0 0.12em 0.58em;
  border-left: 2px solid var(--accent-warm);
}

.document-paragraph {
  margin: 0.55em 0;
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-ideograph;
  white-space: pre-wrap;
}

.document-heading {
  white-space: normal;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

.align-left {
  text-align: left;
}

.align-justify {
  text-align: justify;
  text-justify: inter-ideograph;
}

.table-caption {
  margin: 1.5em 0 0.55em;
  font-weight: 700;
  text-align: center;
  text-indent: 0 !important;
}

.empty-paragraph {
  min-height: 1em;
  visibility: hidden;
}

.page-break {
  height: 1px;
  margin: 2.2em 0;
  border-top: 1px dashed var(--soft-line);
}

.image-paragraph {
  margin: 1.3em 0;
  line-height: 0;
  text-align: center;
  text-indent: 0 !important;
}

.docx-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

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

.document-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  line-height: 1.6;
}

.document-table--2col {
  min-width: 640px;
}

.document-table--3col {
  min-width: 760px;
}

.document-table--4col {
  min-width: 920px;
}

.document-table th,
.document-table td {
  padding: 0.7em 0.78em;
  border: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
  text-align: justify;
  text-justify: inter-ideograph;
}

.document-table th {
  background: #edf2f3;
  font-weight: 700;
  text-align: center;
}

.document-table tbody tr:nth-child(even) td {
  background: #fbfcfc;
}

.document-table .document-paragraph {
  margin: 0;
  line-height: 1.6;
  text-align: inherit;
  text-indent: 0;
}

.document-table .document-paragraph + .document-paragraph {
  margin-top: 0.45em;
}

.empty-table-placeholder {
  min-height: 1em;
}

@media (max-width: 720px) {
  .document {
    width: min(100% - 24px, 960px);
    padding: 34px 22px 72px;
  }

  .document h1 {
    margin-bottom: 1.6em;
  }

  .document h2 {
    margin-top: 1.9em;
  }

  .document h3 {
    margin-top: 1.5em;
  }

  .document-paragraph {
    line-height: 1.78;
  }
}

@media print {
  @page {
    size: A4;
    margin: 18mm 16mm;
  }

  :root {
    background: #ffffff;
  }

  body {
    background: #ffffff;
  }

  .document {
    width: auto;
    min-height: 0;
    padding: 0;
    box-shadow: none;
  }

  .skip-link {
    display: none;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  .document-table--2col,
  .document-table--3col,
  .document-table--4col {
    min-width: 0;
  }

  .page-break {
    height: 0;
    margin: 0;
    border: 0;
    break-before: page;
    page-break-before: always;
  }

  .docx-image {
    break-inside: avoid;
  }
}
