:root {
  color-scheme: light;
  --navy-950: #081426;
  --navy-900: #0d1d35;
  --navy-800: #152b4b;
  --blue-700: #235c9f;
  --blue-100: #dce9f6;
  --paper: #f8f8f3;
  --paper-deep: #f0f0e8;
  --ink: #162235;
  --muted: #5e6876;
  --rule: #d7d9d6;
  --gold: #c99b4b;
  --gold-soft: #ead7ad;
  --success: #28684d;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper-deep);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(13, 29, 53, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper-deep);
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-900);
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(35, 92, 159, 0.3);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-950);
  color: #fff;
}

.header-inner {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 32px;
  height: 36px;
  border: 1px solid rgba(234, 215, 173, 0.68);
  border-radius: 4px 9px 9px 4px;
  place-items: center;
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 18px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
}

.site-nav a {
  color: #cbd6e4;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: #fff;
}

.page-shell {
  position: relative;
  width: min(960px, calc(100% - 40px));
  margin: 38px auto 64px;
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(8, 20, 38, 0.1);
}

.page-shell::before {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 8px;
  background: var(--gold);
  content: "";
}

.document-header {
  padding: 48px clamp(28px, 6vw, 72px) 34px;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy-900);
  font-family: "Songti SC", "STSong", serif;
}

h1 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 46em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.meta-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper);
}

.meta-item dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.meta-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}

.document-body {
  padding: 22px clamp(28px, 6vw, 72px) 58px;
}

.toc {
  margin: 14px 0 36px;
  padding: 22px 24px;
  border-left: 3px solid var(--blue-700);
  background: var(--blue-100);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-900);
  font-size: 14px;
}

.toc ol,
.toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 24px;
  margin: 0;
  padding-left: 20px;
}

.toc a {
  font-size: 14px;
}

.document-section {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.document-section:first-of-type {
  border-top: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.3;
}

h3 {
  margin: 28px 0 12px;
  font-size: 19px;
  line-height: 1.45;
}

p,
li {
  color: #344153;
  font-size: 15px;
  line-height: 1.9;
}

p {
  margin: 12px 0;
}

ul,
ol {
  padding-left: 1.35em;
}

li + li {
  margin-top: 7px;
}

.note {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--gold-soft);
  background: #fffaf0;
  color: #57431f;
}

.status-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.status-note::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.table-wrap {
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: #fff;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 14px 15px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
}

code {
  border: 1px solid #dde1e5;
  border-radius: 4px;
  background: #fff;
  padding: 0.1em 0.35em;
  color: #263a55;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.document-card {
  display: flex;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--rule);
  background: #fff;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.document-card:hover {
  border-color: var(--gold);
  color: inherit;
  transform: translateY(-2px);
}

.document-card small {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.document-card strong {
  margin: 15px 0 9px;
  color: var(--navy-900);
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

.document-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  align-items: center;
  border: 1px solid var(--rule);
  background: #fff;
}

.contact-panel p {
  margin: 4px 0 0;
}

.button-link {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy-900);
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  background: var(--blue-700);
  color: #fff;
}

.page-footer {
  width: min(960px, calc(100% - 40px));
  margin: -40px auto 0;
  padding: 0 0 44px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .header-inner {
    width: min(100% - 28px, 1120px);
    padding: 15px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-shell {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .page-shell::before {
    width: 5px;
  }

  .document-header,
  .document-body {
    padding-right: 22px;
    padding-left: 26px;
  }

  .meta-list,
  .toc ol,
  .toc ul,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .page-footer {
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .document-card {
    transition: border-color 160ms ease, transform 160ms ease;
  }
}

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

  .site-header,
  .toc,
  .page-footer {
    display: none;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .page-shell::before {
    display: none;
  }

  a {
    color: inherit;
  }
}
