.manual-page {
  --manual-header-height: 64px;
  --manual-sidebar-width: 248px;
  --manual-content-width: 790px;
  --manual-toc-width: 220px;
  min-width: 320px;
  background: #ffffff;
  color: #202522;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.manual-page main {
  overflow: visible;
}

.manual-page code,
.manual-page kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.manual-page code {
  padding: 2px 5px;
  color: #185a72;
  background: #edf5f7;
  border: 1px solid #d9e9ee;
  border-radius: 4px;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.manual-page kbd {
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  color: #343a37;
  background: #f7f7f5;
  border: 1px solid #d7d9d6;
  border-bottom-color: #b9bdb9;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(25, 30, 27, 0.08);
  font-size: 0.82em;
  line-height: 1.35;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.manual-skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 9px 12px;
  color: #ffffff;
  background: #1f627b;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.manual-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  min-height: var(--manual-header-height);
  display: grid;
  grid-template-columns: minmax(245px, 1fr) minmax(280px, 520px) minmax(245px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e3e5e2;
  backdrop-filter: blur(16px);
}

.manual-header-brand,
.manual-header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
}

.manual-header-brand {
  gap: 14px;
}

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

.manual-header-divider {
  width: 1px;
  height: 24px;
  background: #d9ddd9;
}

.manual-product-name {
  color: #3e4642;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.manual-header-actions {
  justify-content: flex-end;
  gap: 18px;
  color: #4c5651;
  font-size: 14px;
}

.manual-header-actions a:hover {
  color: #1f627b;
}

.manual-menu-button,
.manual-sidebar-close {
  border: 0;
  color: #2d3632;
  background: transparent;
  cursor: pointer;
}

.manual-menu-button {
  display: none;
  padding: 7px 0;
  font-weight: 650;
}

.manual-search {
  position: relative;
  width: 100%;
}

.manual-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  color: #202522;
  background: #f5f6f5;
  border: 1px solid #e0e3e0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.manual-search input:focus {
  background: #ffffff;
  border-color: #6b9bae;
  box-shadow: 0 0 0 3px rgba(39, 105, 131, 0.12);
}

.manual-search input::placeholder {
  color: #7a837f;
}

.manual-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(420px, calc(100vh - 96px));
  overflow-y: auto;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #dce1de;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(30, 38, 34, 0.15);
}

.manual-search-result {
  width: 100%;
  display: block;
  padding: 10px 11px;
  border: 0;
  border-radius: 4px;
  color: #27302c;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.manual-search-result:hover,
.manual-search-result.active {
  background: #edf4f6;
}

.manual-search-result strong,
.manual-search-result span {
  display: block;
}

.manual-search-result strong {
  margin-bottom: 2px;
  font-size: 14px;
}

.manual-search-result span {
  overflow: hidden;
  color: #707975;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-search-empty {
  margin: 0;
  padding: 18px 12px;
  color: #707975;
  font-size: 13px;
  text-align: center;
}

.manual-layout {
  width: min(
    100%,
    calc(var(--manual-sidebar-width) + var(--manual-content-width) + var(--manual-toc-width) + 104px)
  );
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--manual-sidebar-width) minmax(0, var(--manual-content-width)) var(--manual-toc-width);
  justify-content: center;
  column-gap: 52px;
  margin: var(--manual-header-height) auto 0;
}

.manual-sidebar {
  min-width: 0;
  border-right: 1px solid #e4e6e3;
}

.manual-sidebar-inner {
  position: sticky;
  top: var(--manual-header-height);
  height: calc(100vh - var(--manual-header-height));
  overflow-y: auto;
  padding: 30px 24px 48px 8px;
  scrollbar-width: thin;
}

.manual-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #252c29;
  font-size: 15px;
  font-weight: 720;
}

.manual-sidebar-close {
  display: none;
  padding: 6px;
  font-size: 13px;
}

.manual-nav-group + .manual-nav-group {
  margin-top: 24px;
}

.manual-nav-group > p {
  margin: 0 0 7px;
  color: #8a918d;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0;
}

.manual-nav-link {
  position: relative;
  display: block;
  padding: 6px 10px;
  color: #505a55;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
  transition: color 140ms ease, background 140ms ease;
}

.manual-nav-link:hover {
  color: #1c586f;
  background: #f2f6f7;
}

.manual-nav-link.active {
  color: #174f65;
  background: #eaf3f6;
  font-weight: 650;
}

.manual-nav-link.active::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: #276983;
  content: "";
}

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

.manual-article {
  min-width: 0;
  color: #343b37;
  font-size: 16px;
  line-height: 1.78;
}

.manual-article h1,
.manual-article h2,
.manual-article h3 {
  color: #1d2420;
  letter-spacing: 0;
}

.manual-article h1 {
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.15;
}

.manual-article h2 {
  scroll-margin-top: calc(var(--manual-header-height) + 24px);
  margin: 0 0 18px;
  font-size: 31px;
  line-height: 1.25;
}

.manual-article h3 {
  scroll-margin-top: calc(var(--manual-header-height) + 24px);
  margin: 30px 0 10px;
  font-size: 20px;
  line-height: 1.42;
}

.manual-article p,
.manual-article ul,
.manual-article ol,
.manual-article dl {
  margin-top: 0;
  margin-bottom: 18px;
}

.manual-article ul,
.manual-article ol {
  padding-left: 24px;
}

.manual-article li + li {
  margin-top: 7px;
}

.manual-article strong {
  color: #252d29;
}

.manual-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  color: #808984;
  font-size: 13px;
}

.manual-breadcrumb a:hover {
  color: #1f627b;
}

.manual-section {
  scroll-margin-top: calc(var(--manual-header-height) + 24px);
  padding: 60px 0;
  border-bottom: 1px solid #e7e8e6;
}

.manual-section.manual-intro {
  padding-top: 0;
}

.manual-kicker {
  margin-bottom: 10px !important;
  color: #276983;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
}

.manual-lead {
  max-width: 720px;
  margin-bottom: 20px !important;
  color: #59635e;
  font-size: 19px;
  line-height: 1.75;
}

.manual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 30px;
  color: #7a837e;
  font-size: 13px;
}

.manual-meta span {
  position: relative;
}

.manual-meta span + span::before {
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  background: #adb4b0;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.manual-callout {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid #39798f;
  border-radius: 0 4px 4px 0;
  background: #f2f8fa;
}

.manual-callout strong {
  display: block;
  margin-bottom: 4px;
  color: #1c586f;
  font-size: 14px;
}

.manual-callout p {
  margin: 0;
  color: #4c5b56;
  font-size: 14px;
}

.manual-callout.warning {
  border-left-color: #b9812f;
  background: #fff8e9;
}

.manual-callout.warning strong {
  color: #835a1e;
}

.manual-callout.important {
  border-left-color: #a34a3d;
  background: #fff3f1;
}

.manual-callout.important strong {
  color: #8d3d32;
}

.manual-callout.tip {
  border-left-color: #3b7a5f;
  background: #f0f8f4;
}

.manual-callout.tip strong {
  color: #2e684f;
}

.manual-steps {
  padding-left: 0 !important;
  list-style: none;
  border-top: 1px solid #e2e5e2;
}

.manual-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #e2e5e2;
}

.manual-steps li + li {
  margin-top: 0;
}

.manual-steps li > span {
  color: #276983;
  font-size: 13px;
  font-weight: 760;
}

.manual-steps h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.manual-steps p {
  margin: 0;
  color: #5b6560;
  font-size: 14px;
}

.manual-figure {
  margin: 28px 0 30px;
}

.manual-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #dfe2df;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(37, 45, 41, 0.1);
}

.manual-figure figcaption {
  margin-top: 9px;
  color: #7b847f;
  font-size: 12px;
  text-align: center;
}

.manual-table-wrap {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-top: 1px solid #dce0dd;
  border-bottom: 1px solid #dce0dd;
}

.manual-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.manual-table-wrap.compact table {
  min-width: 500px;
}

.manual-table-wrap th,
.manual-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid #e7e9e7;
  text-align: left;
  vertical-align: top;
}

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

.manual-table-wrap th {
  color: #39433e;
  background: #f6f7f6;
  font-size: 13px;
  font-weight: 700;
}

.manual-table-wrap td:first-child {
  color: #27302c;
  font-weight: 620;
}

.manual-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 32px;
  border-top: 1px solid #dfe2df;
  border-bottom: 1px solid #dfe2df;
}

.manual-compare > div {
  padding: 22px 26px 18px 0;
}

.manual-compare > div + div {
  padding-right: 0;
  padding-left: 26px;
  border-left: 1px solid #dfe2df;
}

.manual-compare h3 {
  margin-top: 0;
}

.manual-compare ul {
  margin-bottom: 0;
  padding-left: 20px;
  color: #58625d;
  font-size: 14px;
}

.manual-definition-list {
  border-top: 1px solid #e2e5e2;
}

.manual-definition-list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #e2e5e2;
}

.manual-definition-list dt {
  color: #28312d;
  font-weight: 680;
}

.manual-definition-list dd {
  margin: 0;
  color: #59635e;
}

.syntax-examples {
  margin: 24px 0;
  border-top: 1px solid #e1e4e1;
  border-bottom: 1px solid #e1e4e1;
}

.syntax-examples > div {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(0, 1.5fr);
  gap: 20px;
  align-items: start;
  padding: 16px 0;
}

.syntax-examples > div + div {
  border-top: 1px solid #e1e4e1;
}

.syntax-examples code {
  width: fit-content;
  font-size: 14px;
}

.syntax-examples p {
  margin: 0;
  color: #65706a;
  font-size: 14px;
}

.dictionary-group,
.faq-item {
  border-bottom: 1px solid #e0e3e0;
}

.dictionary-group:first-of-type,
.faq-item:first-of-type {
  border-top: 1px solid #e0e3e0;
}

.dictionary-group summary,
.faq-item summary {
  position: relative;
  padding: 16px 34px 16px 0;
  color: #27302c;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}

.dictionary-group summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.dictionary-group summary::after,
.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 6px;
  color: #68746e;
  content: "+";
  font-size: 20px;
  font-weight: 400;
  transform: translateY(-50%);
}

.dictionary-group[open] summary::after,
.faq-item[open] summary::after {
  content: "−";
}

.dictionary-content {
  padding: 0 0 20px;
}

.dictionary-list {
  margin-bottom: 0 !important;
}

.dictionary-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 9px 0;
}

.dictionary-list dt {
  color: #53605a;
  font-size: 13px;
  font-weight: 680;
}

.dictionary-list dd {
  margin: 0;
  color: #303a35;
  font-size: 14px;
}

.dictionary-note {
  margin: 10px 0 0 !important;
  color: #6d7772;
  font-size: 13px;
}

.dictionary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dictionary-chips span {
  padding: 4px 8px;
  color: #39443e;
  background: #f4f6f4;
  border: 1px solid #e2e5e2;
  border-radius: 4px;
  font-size: 13px;
}

.faq-item p {
  margin: -2px 34px 18px 0;
  color: #5b6560;
  font-size: 14px;
}

.glossary-list > div {
  grid-template-columns: 170px minmax(0, 1fr);
}

.manual-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 0;
  color: #66716b;
  font-size: 13px;
}

.manual-article-footer p {
  margin: 0;
}

.manual-article-footer a {
  color: #1f627b;
  font-weight: 650;
  white-space: nowrap;
}

.manual-toc {
  min-width: 0;
}

.manual-toc-inner {
  position: sticky;
  top: calc(var(--manual-header-height) + 36px);
  max-height: calc(100vh - var(--manual-header-height) - 72px);
  overflow-y: auto;
  padding-left: 20px;
  border-left: 1px solid #e2e5e2;
  scrollbar-width: thin;
}

.manual-toc-inner > p {
  margin: 0 0 12px;
  color: #303a35;
  font-size: 13px;
  font-weight: 720;
}

.manual-toc nav {
  display: grid;
  gap: 2px;
}

.manual-toc a {
  display: block;
  padding: 4px 0;
  color: #7a837e;
  font-size: 12px;
  line-height: 1.45;
  transition: color 140ms ease;
}

.manual-toc a[data-level="3"] {
  padding-left: 12px;
}

.manual-toc a:hover,
.manual-toc a.active {
  color: #1d617a;
}

.manual-toc a.active {
  font-weight: 650;
}

.manual-back-top {
  margin-top: 18px;
  padding-top: 12px !important;
  border-top: 1px solid #e4e6e4;
}

.manual-scrim {
  position: fixed;
  inset: var(--manual-header-height) 0 0;
  z-index: 45;
  background: rgba(22, 28, 25, 0.34);
}

@media (max-width: 1260px) {
  .manual-layout {
    width: min(100%, calc(var(--manual-sidebar-width) + var(--manual-content-width) + 64px));
    grid-template-columns: var(--manual-sidebar-width) minmax(0, var(--manual-content-width));
    column-gap: 48px;
  }

  .manual-toc {
    display: none;
  }
}

@media (max-width: 920px) {
  .manual-header {
    grid-template-columns: minmax(210px, auto) minmax(220px, 1fr) auto;
    gap: 16px;
    padding: 0 20px;
  }

  .manual-header-actions a {
    display: none;
  }

  .manual-menu-button {
    display: inline-block;
  }

  .manual-layout {
    width: 100%;
    display: block;
  }

  .manual-sidebar {
    position: fixed;
    top: var(--manual-header-height);
    bottom: 0;
    left: 0;
    z-index: 50;
    width: min(330px, 88vw);
    background: #ffffff;
    border-right: 1px solid #dfe3df;
    box-shadow: 16px 0 40px rgba(26, 34, 30, 0.16);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  .manual-sidebar.open {
    transform: translateX(0);
  }

  .manual-sidebar-inner {
    position: static;
    height: 100%;
    padding: 24px;
  }

  .manual-sidebar-close {
    display: inline-block;
  }

  .manual-main {
    width: min(100% - 48px, 790px);
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .manual-page {
    --manual-header-height: 112px;
  }

  .manual-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 54px 46px;
    gap: 0 14px;
    padding: 0 16px 10px;
  }

  .manual-header-brand {
    min-width: 0;
  }

  .manual-header .brand-logo {
    width: 96px;
  }

  .manual-header-divider {
    height: 20px;
  }

  .manual-product-name {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
  }

  .manual-header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .manual-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .manual-search input {
    height: 40px;
  }

  .manual-main {
    width: calc(100% - 32px);
    padding-top: 28px;
  }

  .manual-breadcrumb {
    margin-bottom: 28px;
  }

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

  .manual-article h1 {
    font-size: 36px;
  }

  .manual-article h2 {
    font-size: 27px;
  }

  .manual-article h3 {
    font-size: 18px;
  }

  .manual-lead {
    font-size: 17px;
  }

  .manual-section {
    padding: 46px 0;
  }

  .manual-meta {
    display: grid;
    gap: 3px;
  }

  .manual-meta span + span::before {
    display: none;
  }

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

  .manual-compare > div,
  .manual-compare > div + div {
    padding: 18px 0;
  }

  .manual-compare > div + div {
    border-top: 1px solid #dfe2df;
    border-left: 0;
  }

  .manual-definition-list > div,
  .glossary-list > div,
  .dictionary-list > div,
  .syntax-examples > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .syntax-examples code {
    max-width: 100%;
  }

  .manual-figure img {
    aspect-ratio: 4 / 3;
  }

  .manual-article-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manual-sidebar,
  .manual-skip-link {
    transition: none;
  }
}
