:root {
  --paper: #f5f8ff;
  --canvas: #ffffff;
  --surface: #ffffff;
  --ink: #30394b;
  --ink-strong: #02124e;
  --muted: #536078;
  --soft: #68758b;
  --line: #e3e5e8;
  --line-strong: #cdd5e3;
  --accent: #152a68;
  --accent-dark: #02124e;
  --accent-soft: #edf2fb;
  --teal: #3f6c4f;
  --teal-soft: #edf4ef;
  --danger: #c14e33;
  --danger-soft: #faf0ec;
  --shadow: 0 20px 55px rgba(6, 11, 39, 0.10);
  --header-height: 78px;
  --content-width: 860px;
  --gold: #886327;
  --gold-light: #f2db91;
  --title-font: "屏显臻宋", "Noto Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--ink-strong);
  background: #dbe7f3;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink-strong);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 120ms linear;
}

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.topbar-brand,
.topbar-actions,
.brand-logo,
.search-trigger {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 112px;
  height: 42px;
}

.brand-logo img {
  width: 112px;
  height: 42px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 22px;
  margin: 0 18px;
  background: var(--line-strong);
}

.help-title {
  color: var(--ink-strong);
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.topbar-actions {
  gap: 16px;
}

.search-trigger {
  width: min(340px, 30vw);
  height: 40px;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-trigger:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 16px rgba(30, 36, 48, 0.06);
}

.search-trigger > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-trigger kbd {
  margin-left: auto;
  padding: 0 7px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font: inherit;
  font-size: 12px;
  line-height: 22px;
}

.search-mark {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.search-mark::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.7px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.site-link {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-link:hover {
  color: var(--accent-dark);
}

.mobile-menu-button,
.mobile-context-bar {
  display: none;
}

.help-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, var(--content-width)) 224px;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
}

.product-rail {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100vh - var(--header-height));
  padding: 32px 24px 24px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.rail-heading {
  padding: 0 8px 20px;
}

.rail-heading span,
.section-label,
.manual-kicker,
.product-code {
  display: block;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
}

.rail-heading strong {
  display: block;
  margin-top: 3px;
  color: var(--ink-strong);
  font-family: var(--title-font);
  font-size: 20px;
}

.device-panel {
  margin-bottom: 22px;
  padding: 14px 8px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.device-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #e8ebf0;
}

.device-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 88px;
  padding: 6px 5px;
  color: var(--muted);
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.device-icon {
  display: block;
  width: 64px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.device-button:hover {
  color: var(--ink-strong);
}

.device-button.is-active {
  color: var(--ink-strong);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(30, 36, 48, 0.1);
}

.product-list {
  display: grid;
  gap: 5px;
}

.product-button {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.product-button:hover {
  background: rgba(255, 255, 255, 0.7);
}

.product-button.is-active {
  color: var(--ink-strong);
  border-color: #cdd4de;
  background: var(--surface);
}

.product-button.is-active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -1px;
  width: 3px;
  background: var(--accent);
  content: "";
}

.product-number {
  color: var(--soft);
  font-family: Georgia, serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.product-button b,
.product-button small {
  display: block;
}

.product-button b {
  font-size: 14px;
  font-weight: 600;
}

.product-button small {
  margin-top: 1px;
  color: var(--soft);
  font-size: 11px;
}



.mobile-context-bar select {
  width: 100%;
  height: 38px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background-color: var(--surface);
}


.rail-support {
  display: grid;
  gap: 7px;
  margin: 24px 8px 0;
}

.support-status {
  color: var(--teal);
  font-size: 11px;
}

.support-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

.rail-support strong {
  font-size: 13px;
}

.rail-support a {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.manual {
  min-width: 0;
  padding: 44px 48px 64px;
  background: var(--surface);
}

.manual-header {
  position: relative;
  min-height: 0;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line);
}

.manual-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 88px;
  height: 3px;
  background: var(--accent);
  content: "";
}


.manual-breadcrumb span:last-child {
  color: var(--ink);
}

.manual-header h1 {
  max-width: 720px;
  margin: 6px 0 16px;
  color: var(--ink-strong);
  font-family: var(--title-font);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.24;
}

.manual-description {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.manual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 25px;
  color: var(--soft);
  font-size: 12px;
}

.manual-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.manual-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

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

.manual-quicklinks a {
  min-width: 0;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--canvas);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.manual-quicklinks a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.manual-content {
  counter-reset: manual-section;
}

.manual-section {
  position: relative;
  padding: 48px 0 4px;
  scroll-margin-top: 96px;
  counter-increment: manual-section;
  animation: section-in 360ms ease both;
}

.manual-section + .manual-section {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.manual-section-heading {
  position: relative;
  padding-right: 56px;
}

.manual-section-heading::before {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  content: counter(manual-section, decimal-leading-zero);
  font-family: Georgia, serif;
  font-size: 13px;
}

.manual-section h2 {
  margin: 0 0 13px;
  color: var(--ink-strong);
  font-family: var(--title-font);
  font-size: 29px;
  line-height: 1.35;
}

.manual-section h3 {
  margin: 36px 0 12px;
  color: var(--ink-strong);
  font-size: 19px;
  line-height: 1.45;
}

.manual-section h4 {
  margin: 26px 0 9px;
  color: var(--ink-strong);
  font-size: 16px;
}

.section-summary {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 16px;
}

.manual-body p {
  margin: 0 0 18px;
}

.manual-body strong {
  color: var(--ink-strong);
}

.manual-body a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

.manual-body ul,
.manual-body ol {
  margin: 16px 0 24px;
  padding-left: 1.35em;
}

.manual-body li {
  margin: 7px 0;
  padding-left: 4px;
}

.manual-body li::marker {
  color: var(--accent);
}

.anchor-copy {
  position: absolute;
  top: 36px;
  right: 0;
  width: 34px;
  height: 34px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  opacity: 0;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease;
}

.manual-section:hover .anchor-copy,
.anchor-copy:focus-visible {
  opacity: 1;
}

.anchor-copy:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.doc-figure {
  margin: 32px 0;
}

.doc-figure-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e8ebf0;
  cursor: zoom-in;
}

.doc-figure-button img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #f4f5f7;
  transition: transform 260ms ease;
}

.doc-figure-button:hover img {
  transform: scale(1.01);
}

.doc-figure figcaption {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.doc-figure figcaption::before {
  color: var(--accent);
  content: "图";
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
}

.figure-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.figure-gallery .doc-figure {
  min-width: 0;
  margin: 0;
}

.figure-gallery .doc-figure-button {
  height: 100%;
  min-height: 220px;
}

.figure-gallery .doc-figure-button img {
  height: 100%;
  max-height: 420px;
}

.doc-callout {
  position: relative;
  margin: 28px 0;
  padding: 18px 20px 18px 48px;
  border: 1px solid #cddcea;
  border-radius: 5px;
  background: #edf3f8;
}

.doc-callout::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--accent-dark);
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "i";
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.doc-callout strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.doc-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.doc-callout.is-success {
  border-color: #c6d9cc;
  background: #edf4ef;
}

.doc-callout.is-success::before {
  color: var(--teal);
  content: "✓";
  font-family: inherit;
  font-style: normal;
}

.doc-callout.is-warning {
  border-color: #e4c9c2;
  background: var(--danger-soft);
}

.doc-callout.is-warning::before {
  color: var(--danger);
  content: "!";
  font-family: inherit;
  font-style: normal;
}

.step-list {
  display: grid;
  gap: 2px;
  margin: 24px 0 30px !important;
  padding: 0 !important;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 62px;
  margin: 0 !important;
  padding: 10px 10px 14px 54px !important;
  border-bottom: 1px solid var(--line);
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--accent-dark);
  border: 1px solid #9b752e;
  border-radius: 50%;
  content: counter(steps, decimal-leading-zero);
  font-family: Georgia, serif;
  font-size: 12px;
}

.step-list b,
.step-list span {
  display: block;
}

.step-list b {
  margin-bottom: 2px;
  font-size: 15px;
}

.step-list span {
  color: var(--muted);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 30px;
}

.feature-item {
  min-width: 0;
  padding: 16px 17px;
  border-left: 3px solid #9b752e;
  background: var(--paper);
}

.feature-item strong,
.feature-item span {
  display: block;
}

.feature-item strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.feature-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.doc-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.doc-table th,
.doc-table td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.doc-table th {
  color: var(--ink-strong);
  background: var(--paper);
  font-weight: 600;
}

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

.doc-table td:first-child {
  color: var(--ink-strong);
  font-weight: 600;
}

.command-example {
  position: relative;
  margin: 24px 0;
  padding: 18px 20px 18px 48px;
  color: #e8ebf0;
  border-radius: 6px;
  background: #1f252d;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
}

.command-example::before {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #9b752e;
  content: ">";
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 28px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--canvas);
  font-size: 12px;
}

.toc-panel {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: var(--canvas);
}

.toc-sticky {
  position: sticky;
  top: var(--header-height);
  max-height: calc(100vh - var(--header-height));
  padding: 42px 24px 28px;
  overflow-y: auto;
}

.toc-sticky > p {
  margin: 0 0 15px;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 700;
}

#tocList {
  display: grid;
  gap: 1px;
}

.toc-link {
  position: relative;
  display: block;
  padding: 7px 0 7px 14px;
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-link::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  background: var(--line);
  content: "";
}

.toc-link:hover {
  color: var(--ink);
}

.toc-link.is-active {
  color: var(--accent-dark);
  font-weight: 600;
}

.toc-link.is-active::before {
  background: var(--accent);
}

.toc-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 15px;
  color: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.toc-meta strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.manual-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.support-trigger {
  width: fit-content;
  padding: 0;
  color: var(--accent);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.support-trigger:hover { color: var(--ink); }
.support-dialog {
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 32px 24px 28px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}
.support-dialog[open] { display: flex; flex-direction: column; align-items: center; }
.support-dialog::backdrop { background: rgba(30, 36, 48, .45); }
.support-dialog h2 { margin: 0; font-size: 22px; font-weight: 600; }
.support-dialog p { margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.support-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 26px;
  line-height: 1;
}
.support-close:hover { background: var(--paper); }
.support-code { display: block; flex: 0 0 auto; width: 208px; max-width: 100%; height: auto; align-self: center; margin: 0 auto; }

.legal-note {
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 11px;
  text-align: center;
}

.back-to-top {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(30, 36, 48, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.search-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  margin: 8vh auto 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-dialog::backdrop,
.image-dialog::backdrop {
  background: rgba(18, 20, 24, 0.56);
  backdrop-filter: blur(4px);
}

.search-dialog-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.search-dialog-head > div {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: center;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--canvas);
}

.search-dialog-head input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.search-dialog-head > button,
.image-dialog > button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 12px;
}

.search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px 10px;
}

.search-summary h2 {
  margin: 0;
  font-size: 13px;
}

.search-summary span {
  color: var(--soft);
  font-size: 11px;
}

.search-results {
  min-height: 240px;
  max-height: 510px;
  padding: 8px 12px 18px;
  overflow-y: auto;
}

.search-empty {
  display: grid;
  min-height: 250px;
  place-items: center;
  color: var(--soft);
  text-align: center;
}

.search-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.search-result {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px 12px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--paper);
}

.search-result-path {
  color: var(--accent-dark);
  font-size: 10px;
}

.search-result strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.search-result p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-result mark {
  color: inherit;
  background: #dbe7f3;
}

.image-dialog {
  width: min(1280px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 52px 18px 16px;
  overflow: auto;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: #16191f;
}

.image-dialog > button {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #fff;
  border-color: #404650;
  background: #232832;
}

.image-dialog img {
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  object-fit: contain;
}

.image-dialog p {
  margin: 10px auto 0;
  color: #bec3cb;
  font-size: 12px;
  text-align: center;
}

.menu-scrim {
  position: fixed;
  z-index: 79;
  inset: var(--header-height) 0 0;
  background: rgba(18, 20, 24, 0.4);
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .help-shell {
    grid-template-columns: 228px minmax(0, 820px) 190px;
  }

  .manual {
    padding-right: 42px;
    padding-left: 42px;
  }

  .toc-sticky {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 1080px) {
  .help-shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .toc-panel {
    position: fixed;
    z-index: 82;
    top: calc(var(--header-height) + 48px);
    right: 12px;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - var(--header-height) - 64px);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .toc-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .toc-sticky {
    position: static;
    max-height: inherit;
    padding: 22px;
  }

  .mobile-context-bar {
    position: sticky;
    z-index: 90;
    top: var(--header-height);
    display: grid;
    grid-template-columns: auto minmax(104px, 0.65fr) auto minmax(124px, 1fr) auto;
    gap: 8px;
    align-items: center;
    height: 48px;
    padding: 5px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .mobile-context-bar label {
    color: var(--soft);
    font-size: 10px;
  }

  .mobile-context-bar select {
    height: 34px;
    font-size: 12px;
  }

  .mobile-context-bar button {
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--paper);
    font-size: 12px;
  }

  html {
    scroll-padding-top: 132px;
  }

  .product-rail {
    top: calc(var(--header-height) + 48px);
    height: calc(100vh - var(--header-height) - 48px);
  }
}

@media (max-width: 800px) {
  :root {
    --header-height: 64px;
  }

  .topbar {
    height: var(--header-height);
    padding: 0 16px;
  }

  .brand-logo,
  .brand-logo img {
    width: 76px;
    height: 28px;
  }

  .brand-divider {
    margin: 0 11px;
  }

  .help-title {
    font-size: 15px;
  }

  .search-trigger {
    width: 38px;
    padding: 0 10px;
  }

  .search-trigger > span:nth-child(2),
  .search-trigger kbd,
  .site-link {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 10px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
  }

  .mobile-menu-button span {
    display: block;
    width: 16px;
    height: 1px;
    background: var(--ink);
  }

  .mobile-context-bar {
    grid-template-columns: minmax(98px, 0.72fr) minmax(122px, 1fr) auto;
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-context-bar label {
    display: none;
  }

  .help-shell {
    display: block;
  }

  .product-rail {
    position: fixed;
    z-index: 80;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: min(300px, calc(100vw - 48px));
    height: auto;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .product-rail.is-open {
    transform: translateX(0);
  }

  .manual {
    padding: 38px 22px 56px;
  }

  .manual-header {
    min-height: 0;
    padding-bottom: 34px;
  }


  .manual-header h1 {
    font-size: 34px;
  }

  .manual-description {
    font-size: 15px;
  }

  .manual-quicklinks {
    grid-template-columns: 1fr;
  }

  .manual-section {
    padding-top: 50px;
  }

  .manual-section + .manual-section {
    margin-top: 42px;
  }

  .manual-section h2 {
    font-size: 25px;
  }

  .anchor-copy {
    display: none;
  }

  .feature-grid,
  .figure-gallery {
    grid-template-columns: 1fr;
  }

  .figure-gallery .doc-figure-button {
    min-height: 0;
  }

  .manual-footer { padding: 20px 0; }



  .toc-panel {
    top: calc(var(--header-height) + 56px);
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .topbar-actions {
    gap: 8px;
  }

  .brand-divider {
    display: none;
  }

  .help-title {
    margin-left: 8px;
  }

  .manual {
    padding-right: 17px;
    padding-left: 17px;
  }

  .manual-header h1 {
    font-size: 30px;
  }

  .manual-section h2 {
    font-size: 23px;
  }

  .doc-callout {
    padding-right: 16px;
    padding-left: 43px;
  }

  .search-dialog {
    width: 100vw;
    height: 100vh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .search-results {
    max-height: calc(100vh - 150px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .mobile-context-bar,
  .product-rail,
  .toc-panel,
  .back-to-top,
  .anchor-copy,
  .reading-progress {
    display: none !important;
  }

  .help-shell {
    display: block;
  }

  .manual {
    max-width: none;
    padding: 0;
  }

  .manual-section {
    break-inside: avoid;
  }
}

/* Shared brand palette from the corporate website. */
.manual-header h1 { color: var(--ink-strong); }
.manual-section h2 { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.device-button.is-active { color: #fff; background: var(--accent); }
.guide-panel { display: grid; gap: 8px; margin-top: 28px; padding: 24px 8px; border-block: 1px solid var(--line); }
.guide-panel button { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border: 0; background: transparent; text-align: left; font-size: 13px; }
.guide-panel button:hover { color: var(--accent); }
.guide-panel small { color: var(--soft); font-size: 10px; }
.manual-body pre { padding: 20px; overflow-x: auto; background: var(--paper); border-radius: 6px; }
.manual-body blockquote { margin-inline: 0; padding: 12px 24px; border-left: 3px solid var(--accent); background: var(--paper); }
@media (max-width: 800px) { .product-rail { top: calc(var(--header-height) + 48px); } }

.guide-panel button.is-active { color: var(--accent); font-weight: 600; }
.guide-panel button.is-active small { color: var(--accent); }

/* Compact document hierarchy; no blank metadata rows for synced manuals. */
.manual-description:empty, .manual-meta:empty { display: none; }
.manual-source { display: inline-flex; gap: 6px; color: var(--muted); font-size: 13px; text-decoration: none; }
.manual-source:hover { color: var(--accent); text-decoration: underline; }
.document-view-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.document-view-button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--accent); font-size: 13px; cursor: pointer; }
.document-view-button:hover { background: var(--accent-soft); }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; color: var(--muted); font-size: 13px; }
.is-original-view .help-shell { grid-template-columns: 248px minmax(0, 1192px); }
.is-original-view .manual { display: flex; flex-direction: column; padding: 0; height: calc(100dvh - var(--header-height)); }
.is-original-view .manual-header { padding: 0; flex-shrink: 0; }
.is-original-view .manual-header::after { display: none; }
.is-original-view .manual-content { flex: 1; min-height: 0; }
.document-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.is-original-view .toc-panel, .is-original-view .manual-footer, .is-original-view .legal-note, .is-original-view #backToTop, .is-original-view #readingProgress { display: none; }
@media (max-width: 800px) {
  .is-original-view .help-shell { display: block; }
  .is-original-view .manual { height: calc(100dvh - var(--header-height) - 54px); }
  .document-toolbar { padding: 8px 12px; gap: 8px; }
  .document-view-actions { gap: 10px; }
}
.manual-quicklinks { margin-top: 24px; }
.manual-quicklinks a { background: var(--paper); border-color: transparent; line-height: 1.65; }
.manual-quicklinks a:hover { background: var(--accent-soft); border-color: var(--line-strong); }
.guide-panel { gap: 6px; margin-top: 22px; padding: 18px 8px; }
.rail-support { margin-top: 18px; }
.rail-support .support-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.rail-support .support-trigger:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 800px) {
  .manual-header { padding-bottom: 26px; }
  .manual-section { padding-top: 36px; }
  .manual-section + .manual-section { margin-top: 28px; }
}

/* Corporate header and controls, adapted for documentation reading. */
.topbar { padding-inline: max(32px, calc((100vw - 1440px) / 2)); }
.topbar-brand { min-width: 0; }
.brand-logo { flex-shrink: 0; }
.brand-logo img { object-position: left center; }
.help-title { font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand-divider { background: var(--line); margin-inline: 20px; height: 24px; }
.site-link { color: var(--muted); font-size: 14px; }
.site-link:hover { color: var(--accent); }
.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--ink-strong);
  border-radius: 5px;
  color: #fff;
  background: var(--ink-strong);
  font-size: 14px;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.header-contact:hover { color: var(--ink-strong); border-color: var(--gold); background: var(--gold-light); }
.product-button.is-active { color: var(--ink-strong); border-color: var(--line-strong); background: var(--surface); }
.product-button.is-active .product-number { color: var(--accent); }
.device-switch { background: #e9eef7; border-color: var(--line-strong); }
.device-button.is-active { background: var(--ink-strong); }
.manual-header::after { width: 40px; height: 2px; background: var(--gold); }
.manual-quicklinks a { border: 1px solid var(--line); border-radius: 6px; }
.manual-quicklinks a:hover { color: var(--accent); border-color: #bdc9df; }
.toc-link.is-active { color: var(--accent); }
.support-dialog { border-radius: 10px; border-color: #dde3ee; }
.support-dialog::backdrop { background: rgba(6, 11, 39, .48); backdrop-filter: blur(3px); }
.support-dialog h2 { color: var(--ink-strong); font-family: var(--title-font); }
::selection { color: var(--ink-strong); background: #f5e8bf; }
@media (max-width: 800px) {
  .topbar { padding-inline: 16px; }
  .header-contact { display: none; }
  .brand-divider { margin-inline: 12px; height: 20px; }
  .help-title { font-size: 15px; }
}
