:root {
  color-scheme: light;
  --bg: #eef3f1;
  --paper: #fffefa;
  --paper-soft: #f7faf6;
  --ink: #17211f;
  --muted: #65726d;
  --line: #d7e0da;
  --teal: #075b56;
  --green: #2f7d4f;
  --red: #c44834;
  --amber: #a86100;
  --shadow: 0 18px 54px rgba(18, 31, 28, 0.12);
  --radius: 8px;
  font-family: "Avenir Next", "IBM Plex Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(0, 121, 111, 0.08), transparent 38%),
    linear-gradient(240deg, rgba(196, 72, 52, 0.07), transparent 32%),
    var(--bg);
  color: var(--ink);
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.site-shell {
  min-height: 100vh;
  padding: 22px;
}

.site-header,
.site-main,
.site-footer {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(18, 31, 28, 0.16);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand span,
.site-nav a,
.muted,
.meta {
  color: var(--muted);
}

.brand span,
.meta {
  font-size: 12px;
}

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

.site-nav a {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 254, 250, 0.72);
  padding: 8px 11px;
  font-size: 13px;
  text-decoration: none;
}

.site-nav a.active {
  background: var(--ink);
  color: #fff;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.toc {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow);
  padding: 12px;
  min-width: 0;
}

.toc strong {
  font-size: 13px;
}

.toc a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  padding: 7px 8px;
  text-decoration: none;
}

.toc a:hover {
  background: var(--paper-soft);
  color: var(--ink);
}

.doc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.doc-hero {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 28px;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.96;
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.summary-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.download-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(7, 91, 86, 0.24);
  border-radius: var(--radius);
  background: rgba(7, 91, 86, 0.07);
  padding: 14px;
}

.download-panel div {
  display: grid;
  gap: 4px;
}

.download-panel span {
  color: var(--muted);
  font-size: 13px;
}

.summary-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 13px;
  min-width: 0;
}

.page-card {
  color: inherit;
  text-decoration: none;
}

.page-card:hover {
  border-color: rgba(7, 91, 86, 0.38);
}

.summary-card strong,
.support-card strong {
  display: block;
  margin-bottom: 5px;
}

.summary-card span,
.support-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.doc-section {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.doc-section:last-child {
  border-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

li {
  color: var(--muted);
  line-height: 1.65;
  margin: 5px 0;
}

.notice {
  border: 1px solid rgba(47, 125, 79, 0.24);
  border-radius: var(--radius);
  background: rgba(47, 125, 79, 0.08);
  color: var(--green);
  padding: 14px;
}

.notice p {
  color: var(--green);
  margin: 0;
}

.warning {
  border-color: rgba(168, 97, 0, 0.28);
  background: rgba(168, 97, 0, 0.08);
  color: var(--amber);
}

.warning p {
  color: var(--amber);
}

.contact-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 16px;
  min-width: 0;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  min-width: 0;
}

.contact-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.button-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--teal);
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.checksum-box {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  margin-top: 14px;
  padding: 12px;
}

.checksum-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.checksum-box code {
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  padding: 20px 0 4px;
  font-size: 13px;
}

.zh {
  border-top: 1px dashed var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

@media (max-width: 860px) {
  .site-shell {
    padding: 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
  }

  .summary-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .doc-hero,
  .doc-section {
    padding: 20px;
  }
}
