
:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #d8d8d4;
  --paper: #ffffff;
  --card: #ffffff;
  --head: #1f4e79;
  --accent: #8a1f1f;
  --link: #1f4e79;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 18px 64px;
}
header.doc-head { text-align: center; padding: 28px 0 8px; }
h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.meta {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
}
h2 {
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
p { margin: 0 0 12px; text-align: left; text-indent: 0; }
strong { font-weight: 700; }
a { color: var(--link); word-break: break-all; }
.toc {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15px;
}
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--link); text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 12px 0 20px; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
  background: var(--card);
}
th, td {
  border: 1px solid #c5c5c0;
  padding: 8px 8px;
  vertical-align: top;
  text-align: left;
}
th {
  background: var(--head);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
tr.is-sensitive td, tr.is-emphasis td { font-weight: 600; }
tr.is-sensitive td:first-child { color: var(--accent); }
.group-row td { background: #e7ecf3; font-weight: 600; text-align: left; }
.table-stack .group-row td { display: block; }
.table-stack .group-row td::before { content: none; }
.portal-list { list-style: none; padding: 0; margin: 24px 0; }
.portal-list li { margin: 0 0 10px; }
.portal-list a {
  display: block;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.portal-list a:hover { border-color: var(--head); }
.portal-list small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
.table-stack table, .table-stack thead, .table-stack tbody, .table-stack th, .table-stack td, .table-stack tr {
  display: block;
  width: 100%;
}
.table-stack thead { display: none; }
.table-stack tr {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.table-stack td {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}
.table-stack td:last-child { border-bottom: none; }
.table-stack td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: var(--head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .wrap { padding: 14px 14px 48px; }
  h1 { font-size: 20px; }
  table { font-size: 12px; }
  th { white-space: normal; }
  .table-wrap:not(.table-stack) table,
  .table-wrap:not(.table-stack) thead,
  .table-wrap:not(.table-stack) tbody,
  .table-wrap:not(.table-stack) th,
  .table-wrap:not(.table-stack) td,
  .table-wrap:not(.table-stack) tr { display: block; width: 100%; }
  .table-wrap:not(.table-stack) thead { display: none; }
  .table-wrap:not(.table-stack) tr {
    margin: 0 0 14px;
    border: 1px solid var(--line);
    background: var(--card);
  }
  .table-wrap:not(.table-stack) td {
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }
  .table-wrap:not(.table-stack) td:last-child { border-bottom: none; }
  .table-wrap:not(.table-stack) td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--head);
    font-size: 12px;
    font-weight: 600;
  }
}
@media print {
  body { background: #fff; }
  a { color: inherit; text-decoration: none; }
}
