:root {
  --page-bg: #f6f7f4;
  --paper: #ffffff;
  --ink: #202421;
  --muted: #636a64;
  --line: #dfe4dc;
  --soft-line: #edf0ea;
  --accent: #276749;
  --accent-soft: #e8f3ec;
  --warning: #a16207;
  --table-head: #f1f5ef;
  --code-bg: #f4f6f3;
  --shadow: 0 18px 45px rgba(32, 36, 33, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", "Noto Sans", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.manual-shell {
  display: grid;
  grid-template-columns: minmax(240px, 18rem) minmax(0, 1fr);
  min-height: 100vh;
}

.manual-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fbfcfa;
  padding: 28px 20px;
}

.manual-brand {
  display: block;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.manual-toc ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.manual-toc li {
  margin: 0;
  padding: 0;
}

.manual-toc li li {
  padding-left: 14px;
}

.manual-toc a {
  display: block;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  padding: 7px 8px;
  text-decoration: none;
}

.manual-toc a:hover,
.manual-toc a:focus {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.manual-main {
  min-width: 0;
  padding: 42px 32px;
}

.manual-document {
  width: min(100%, 980px);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 58px 64px 72px;
}

.manual-document > *:first-child {
  margin-top: 0;
}

.manual-document > *:last-child {
  margin-bottom: 0;
}

.manual-cover {
  display: flex;
  min-height: 900px;
  flex-direction: column;
  text-align: left;
}

.manual-cover > *:last-child {
  margin-bottom: 0;
}

.manual-cover-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.manual-cover-meta > * {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  margin: 58px 0 22px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  font-size: 32px;
}

.manual-text {
  margin: 18px 0;
  color: var(--ink);
  font-size: var(--manual-text-size, 1em);
  font-weight: var(--manual-text-weight, inherit);
  line-height: 1.25;
}

.manual-text > * {
  margin: 0;
}

.manual-text > * + * {
  margin-top: 0.45em;
}

h2 {
  margin: 44px 0 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-size: 24px;
}

h3 {
  margin: 34px 0 12px;
  font-size: 19px;
}

h4,
h5,
h6 {
  margin: 26px 0 10px;
  font-size: 16px;
}

.manual-heading-number {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.manual-document .manual-heading-number {
  margin-right: 0.35em;
}

.manual-toc .manual-heading-number {
  margin-right: 0.25em;
  font-weight: 650;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 18px 1.35rem;
  padding: 0;
}

li {
  margin: 6px 0;
  padding-left: 0.1rem;
}

strong {
  font-weight: 750;
}

blockquote {
  margin: 22px 0;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  padding: 14px 18px;
}

blockquote > *:last-child {
  margin-bottom: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  object-fit: contain;
}

figure {
  margin: 24px 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.manual-images {
  display: grid;
  grid-template-columns: repeat(var(--manual-image-cols, 2), max-content);
  gap: var(--manual-image-gap, 18px);
  align-items: var(--manual-image-align, start);
  justify-content: var(--manual-image-place, center);
  margin: 24px 0;
  padding-left: var(--manual-image-offset-left, 0);
  padding-right: var(--manual-image-offset-right, 0);
}

.manual-images > p,
.manual-images > figure {
  max-width: 100%;
  margin: 0;
}

.manual-images img {
  margin: 0 auto;
}

.manual-image.manual-image-left {
  margin-left: 0;
  margin-right: auto;
}

.manual-image.manual-image-center {
  margin-left: auto;
  margin-right: auto;
}

.manual-image.manual-image-right {
  margin-left: auto;
  margin-right: 0;
}

.manual-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 22px 0;
  border: 1px solid #d7e5d9;
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  background: #f7fbf7;
  padding: 15px 17px;
}

.manual-note-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #d7e5d9;
  border-radius: 6px;
  background: #ffffff;
}

.manual-note-icon img {
  width: 22px;
  height: 22px;
  margin: 0;
}

.manual-note-content {
  min-width: 0;
  color: var(--ink);
}

.manual-note-content > *:last-child {
  margin-bottom: 0;
}

table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.5;
}

.manual-table {
  display: table;
  table-layout: fixed;
  overflow: visible;
}

.manual-table-wrap-break-word th,
.manual-table-wrap-break-word td {
  overflow-wrap: break-word;
  word-break: normal;
}

.manual-table-wrap-anywhere th,
.manual-table-wrap-anywhere td {
  overflow-wrap: anywhere;
  word-break: normal;
}

thead {
  background: var(--table-head);
}

th,
td {
  min-width: 72px;
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: var(--manual-table-cell-vertical-align, top);
}

th {
  color: var(--ink);
  font-weight: 700;
}

th > *:last-child,
td > *:last-child {
  margin-bottom: 0;
}

.manual-table-images-inline td img {
  display: inline-block;
  margin: 0 var(--manual-table-image-gap, 3mm) var(--manual-table-image-row-gap, 1.5mm) 0;
  vertical-align: middle;
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  border-radius: 4px;
  background: var(--code-bg);
  padding: 0.12em 0.3em;
  font-size: 0.92em;
}

pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--code-bg);
  padding: 14px 16px;
}

pre code {
  background: transparent;
  padding: 0;
}

hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

.underline {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.page-break {
  height: 0;
  margin: 0;
  border: 0;
}

.manual-space {
  --manual-space-line-height: 1.45em;
  height: var(--manual-space-height, 0);
  margin: 0;
  border: 0;
}

.quick-start-cover {
  min-height: 820px;
}

.quick-start-cover .quick-start-logo {
  margin-left: 0;
  margin-right: auto;
}

.quick-start-cover .quick-start-product {
  margin-left: auto;
  margin-right: auto;
}

.quick-start-cover-subtitle {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.quick-start-intro {
  margin: 18px 0 26px;
  border: 1px solid #d7e5d9;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #f7fbf7;
  padding: 16px 18px;
  font-size: 17px;
}

.quick-start-intro > *:last-child {
  margin-bottom: 0;
}

.quick-start-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  margin: 16px 0;
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 16px;
}

.quick-start-step > * {
  margin: 0;
}

.quick-start-step img {
  margin: 0 auto;
}

.quick-start-step-image {
  justify-self: center;
}

@media screen and (max-width: 980px) {
  .manual-shell {
    display: block;
  }

  .manual-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 18px 14px;
  }

  .manual-brand {
    margin-bottom: 12px;
  }

  .manual-toc {
    max-height: 220px;
    overflow: auto;
  }

  .manual-main {
    padding: 20px 12px;
  }

  .manual-document {
    border-radius: 0;
    padding: 30px 20px 42px;
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 22px;
  }

  .manual-images {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-left: 0;
    padding-right: 0;
  }

  .manual-note {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 14px;
  }

  .manual-note-icon {
    width: 28px;
    height: 28px;
  }

  .quick-start-cover-subtitle,
  .quick-start-intro {
    font-size: 16px;
  }

  .quick-start-step {
    gap: 10px;
  }
}

@media print {
  :root {
    --paper: #ffffff;
    --ink: #000000;
    --line: #cfcfcf;
    --soft-line: #e6e6e6;
  }

  @page {
    size: A4;
    margin: 16mm 14mm;
  }

  body {
    background: #ffffff;
    color: var(--ink);
    font-size: 11pt;
    line-height: 1.45;
  }

  .manual-shell {
    display: block;
  }

  .manual-sidebar {
    display: none;
  }

  .manual-main {
    padding: 0;
  }

  .manual-document {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .manual-cover {
    min-height: calc(297mm - 32mm);
  }

  .manual-cover-meta {
    color: var(--ink);
    font-size: 9.5pt;
  }

  a {
    color: var(--ink);
    text-decoration: none;
  }

  .manual-document > section.level1 {
    break-before: page;
    page-break-before: always;
  }

  .manual-document > section.level1:first-of-type {
    break-before: auto;
    page-break-before: auto;
  }

  h1 {
    break-after: avoid;
    page-break-after: avoid;
    font-size: 22pt;
  }

  h2 {
    break-after: avoid;
    page-break-after: avoid;
    font-size: 17pt;
  }

  h3 {
    break-after: avoid;
    page-break-after: avoid;
    font-size: 13pt;
  }

  h4,
  h5,
  h6 {
    break-after: avoid;
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  li,
  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }

  .page-break,
  .page-break-before {
    break-before: page;
    page-break-before: always;
  }

  .page-break-after {
    break-after: page;
    page-break-after: always;
  }

  .no-break {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .manual-keep-with-next-image {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .manual-note {
    border-color: var(--line);
    border-left-color: var(--accent);
    background: #ffffff;
  }

  .manual-note-icon {
    border-color: var(--line);
  }

  img,
  blockquote,
  .manual-images,
  .manual-keep-with-next-image,
  .manual-note,
  .quick-start-step,
  pre {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  table {
    display: table;
    break-inside: auto;
    page-break-inside: auto;
    overflow: visible;
    font-size: 9.5pt;
  }

  th,
  td {
    padding: 5pt 6pt;
  }

  .quick-start-cover {
    min-height: calc(297mm - 32mm);
  }

  .quick-start-cover-subtitle,
  .quick-start-intro {
    color: var(--ink);
  }

  .quick-start-step {
    gap: 8pt 12pt;
    margin: 10pt 0;
    padding-bottom: 10pt;
  }

}
