:root {
  --page-bg: #eef2f5;
  --paper: #ffffff;
  --ink: #18232d;
  --muted: #66727f;
  --line: #d9e0e6;
  --accent: #c43b3b;
  --accent-soft: #f7e9e6;
  --blue-soft: #e7f0f6;
  --table-head: #eef4f7;
  --shadow: 0 10px 32px rgb(24 35 45 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  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% - 56px, 1280px);
  margin: 0 auto;
  padding: 42px 0 32px;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.28;
}

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

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  width: min(100% - 56px, 1280px);
  margin: 28px auto 72px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.toc nav {
  display: grid;
  gap: 6px;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}

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

.toc-level-3 {
  padding-left: 14px;
  color: var(--muted) !important;
}

.document {
  min-width: 0;
  padding: 44px 52px 68px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.document h2 {
  margin: 0 0 18px;
  padding: 9px 0 9px 18px;
  border-left: 5px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  font-size: 24px;
  line-height: 1.45;
}

.document h2:not(:first-child) {
  margin-top: 46px;
}

.document h3 {
  margin: 28px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.45;
}

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

.document strong {
  font-weight: 700;
}

.structured-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
}

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

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

.table-wrap {
  width: 100%;
  margin: 18px 0 26px;
  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.62;
}

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

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

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

@media (max-width: 920px) {
  .header-inner,
  .layout {
    width: min(100% - 28px, 1280px);
  }

  .layout {
    display: block;
    margin-top: 18px;
  }

  .toc {
    position: static;
    max-height: none;
    margin-bottom: 18px;
    box-shadow: none;
  }

  .toc nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .document {
    padding: 28px 22px 48px;
  }

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

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

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

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .toc,
  .skip-link {
    display: none;
  }

  .layout {
    display: block;
    width: auto;
    margin: 0;
  }

  .document {
    padding: 0;
    box-shadow: none;
  }

  table {
    min-width: 0;
  }
}
