:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --surface: #fffefa;
  --surface-muted: #ebe8df;
  --ink: #202521;
  --ink-soft: #58605a;
  --line: #d8d6cd;
  --jade: #2f6f69;
  --jade-dark: #23544f;
  --vermilion: #a84d3b;
  --vermilion-soft: #f3e5df;
  --focus: #0b6fba;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
a { color: var(--jade-dark); text-underline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; letter-spacing: 0; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 254, 250, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { display: block; border-radius: 8px; }
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-family: Georgia, "Songti SC", "STSong", serif; font-size: 17px; font-weight: 700; }
.brand small { color: var(--ink-soft); font-size: 10px; text-transform: uppercase; }
.document-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.document-nav a {
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.document-nav a:hover { color: var(--ink); }
.document-nav a[aria-current="page"] { color: var(--jade-dark); border-bottom-color: var(--jade); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.language-switch button {
  width: 48px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
}
.language-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
.print-button {
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.print-button:hover { border-color: var(--ink-soft); color: var(--ink); }

.document-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 68px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 72px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--vermilion);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.document-title {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}
.document-subtitle {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}
.document-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
}
.document-meta div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.document-meta div:nth-child(odd) { padding-right: 18px; }
.document-meta div:last-child { grid-column: 1 / -1; }
.document-meta dt { color: var(--ink-soft); font-size: 12px; }
.document-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 650; }

.document-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 96px;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 72px;
  justify-content: center;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  max-height: calc(100vh - var(--header-height) - 56px);
  overflow: auto;
  padding-right: 18px;
}
.toc > p { margin: 0 0 14px; color: var(--ink); font-size: 13px; font-weight: 750; }
.toc nav { display: grid; }
.toc a {
  padding: 7px 0 7px 12px;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}
.toc a:hover, .toc a.is-active { color: var(--jade-dark); border-left: 3px solid var(--jade); padding-left: 10px; }
.legal-content { min-width: 0; }
.english-document-title { margin: 0 0 4px; font-family: Georgia, serif; font-size: 28px; }
.english-document-subtitle { margin: 0 0 36px; color: var(--ink-soft); }
.legal-section {
  scroll-margin-top: calc(var(--header-height) + 28px);
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--line);
}
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}
.legal-section p { margin: 0 0 14px; color: #333934; }
.legal-section ul, .legal-section ol { margin: 0; padding-left: 1.4em; }
.legal-section li { margin: 0 0 12px; padding-left: 5px; color: #333934; }
.legal-section li::marker { color: var(--vermilion); font-weight: 700; }
.legal-section strong { color: var(--ink); }
.table-scroll { margin: 22px 0; overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 14px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-muted); color: var(--ink); font-weight: 700; }
td { background: var(--surface); color: #39403a; }

.action-band {
  margin: 0 0 42px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid var(--vermilion);
  border-bottom: 1px solid var(--line);
}
.action-band div { display: grid; }
.action-band strong { font-size: 18px; }
.action-band span { color: var(--ink-soft); }
.request-tool {
  margin: 0 0 54px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--vermilion);
  border-radius: 8px;
}
.request-tool-heading h2 { margin: 0; font-family: Georgia, "Songti SC", "STSong", serif; font-size: 28px; }
.request-tool-heading > p:last-child { margin: 10px 0 0; color: var(--ink-soft); }
.request-actions { margin: 24px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 42px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--jade-dark); color: white; }
.button-primary:hover { background: var(--jade); color: white; }
.button-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button-secondary:hover { border-color: var(--ink-soft); }
.email-row {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.email-row span { color: var(--ink-soft); }
.request-template {
  margin: 18px 0 0;
  padding: 18px;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: 13px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}
.site-footer > div { display: grid; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.site-footer a { color: var(--ink-soft); }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100% - 44px));
  padding: 11px 15px;
  background: var(--ink);
  color: white;
  border-radius: 7px;
  box-shadow: 0 12px 32px rgba(32, 37, 33, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

.document-hero .hero-inner { animation: hero-in 420ms ease both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (max-width: 1040px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 16px; padding: 10px 0; }
  .document-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; border-top: 1px solid var(--line); }
  .header-tools { justify-self: end; }
  .site-header { --header-height: 126px; }
  .document-shell { grid-template-columns: 190px minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 760px) {
  :root { --header-height: 116px; }
  body { font-size: 15px; line-height: 1.72; }
  .header-inner { width: min(100% - 24px, 720px); gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 15px; }
  .print-button { display: none; }
  .document-nav { gap: 0; }
  .document-nav a { min-height: 36px; padding: 7px 11px; font-size: 13px; }
  .hero-inner { width: min(100% - 32px, 720px); padding: 44px 0 36px; grid-template-columns: 1fr; gap: 32px; }
  .document-title { font-size: 36px; }
  .document-subtitle { font-size: 16px; }
  .document-shell { width: min(100% - 32px, 720px); padding: 34px 0 68px; display: block; }
  .toc { position: static; max-height: none; margin: 0 0 36px; padding: 0 0 14px; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .toc > p { margin-bottom: 8px; }
  .toc nav { display: flex; width: max-content; max-width: none; }
  .toc a { min-height: 38px; padding: 8px 12px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .toc a:hover, .toc a.is-active { padding: 8px 12px 6px; border-left: 0; border-bottom-color: var(--jade); }
  .legal-section { margin-bottom: 30px; padding-bottom: 30px; }
  .legal-section h2 { font-size: 21px; }
  .request-tool { margin-bottom: 42px; padding: 22px 18px; }
  .request-tool-heading h2 { font-size: 24px; }
  .request-actions { display: grid; }
  .button { width: 100%; }
  .email-row { display: grid; gap: 2px; overflow-wrap: anywhere; }
  .action-band { display: grid; }
  .site-footer { width: min(100% - 32px, 720px); display: grid; }
  .site-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  :root { --paper: white; --surface: white; }
  .site-header, .toc, .site-footer, .request-actions, .toast, .action-band { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .document-hero { border: 0; }
  .hero-inner, .document-shell { width: 100%; display: block; padding: 0; }
  .document-meta { margin: 20px 0 32px; }
  .legal-section { break-inside: avoid; }
  .request-tool { border: 1px solid #999; }
  a { color: black; text-decoration: none; }
}