.docs-shell {
  --docs-bg: #070a0e;
  --docs-sidebar: #0a0f15;
  --docs-panel: #111820;
  --docs-line: #28333e;
  --docs-line-soft: rgba(40, 51, 62, .68);
  --docs-text: #f4f7fa;
  --docs-body: #c4ced7;
  --docs-muted: #8794a2;
  --docs-blue: #3397fa;
  --docs-blue-light: #58acff;
  min-width: 320px;
  margin: 0;
  background: var(--docs-bg);
  color: var(--docs-text);
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

.docs-shell *,
.docs-shell *::before,
.docs-shell *::after {
  box-sizing: border-box;
}

.docs-shell a {
  color: inherit;
}

.docs-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 864px) 224px;
  width: min(100%, 1488px);
  min-height: calc(100vh - var(--shell-header-height));
  margin: var(--shell-header-height) auto 0;
  background: var(--docs-bg);
}

.docs-navigation {
  position: sticky;
  top: var(--shell-header-height);
  align-self: start;
  height: calc(100vh - var(--shell-header-height));
  padding: 28px 22px 40px;
  overflow-y: auto;
  border-right: 1px solid var(--docs-line-soft);
  background: var(--docs-sidebar);
  scrollbar-width: thin;
  scrollbar-color: var(--docs-line) transparent;
}

.docs-navigation__mobile-head {
  display: none;
}

.docs-nav__group + .docs-nav__group {
  margin-top: 30px;
}

.docs-nav__label {
  margin: 0 0 9px;
  color: #697684;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
}

.docs-nav__link {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: #9aa7b4;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.docs-nav__link::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -22px;
  width: 2px;
  background: transparent;
  content: "";
}

.docs-nav__link i {
  width: 18px;
  color: #71808e;
  font-size: 15px;
  text-align: center;
}

.docs-nav__link span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-nav__link:hover {
  background: rgba(88, 172, 255, .045);
  color: var(--docs-text);
}

.docs-nav__link:hover i,
.docs-nav__link.is-active i {
  color: var(--docs-blue-light);
}

.docs-nav__link.is-active {
  background: rgba(51, 151, 250, .08);
  color: var(--docs-text);
}

.docs-nav__link.is-active::before {
  background: var(--docs-blue);
}

.docs-reading {
  min-width: 0;
  padding: 18px 48px 88px;
}

.docs-search {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  height: 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 0 12px;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  background: #0d131a;
  color: var(--docs-muted);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.docs-search:focus-within {
  border-color: rgba(88, 172, 255, .78);
  background: #0f161e;
}

.docs-search > i {
  font-size: 13px;
}

.docs-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--docs-text);
  font: 13px "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

.docs-search input::placeholder {
  color: #687583;
}

.docs-search kbd {
  padding: 3px 6px;
  border: 1px solid var(--docs-line);
  border-radius: 4px;
  background: #111820;
  color: #748290;
  font: 10px Consolas, monospace;
}

.docs-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  padding: 6px;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: #0d131a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}

.docs-search-results[hidden] {
  display: none;
}

.docs-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 12px;
  color: var(--docs-body);
  text-decoration: none;
}

.docs-search-result:hover,
.docs-search-result:focus-visible {
  outline: 0;
  background: rgba(51, 151, 250, .08);
  color: var(--docs-text);
}

.docs-search-result strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.docs-search-result small,
.docs-search-empty {
  color: var(--docs-muted);
  font-size: 11px;
}

.docs-search-result i {
  align-self: center;
  color: var(--docs-blue);
  font-size: 11px;
}

.docs-search-empty {
  margin: 0;
  padding: 14px 12px;
}

.docs-article-header {
  padding: 6px 0 28px;
  border-bottom: 1px solid var(--docs-line-soft);
}

.docs-breadcrumb {
  margin: 0 0 13px;
  color: #788694;
  font-size: 12px;
}

.docs-article-header h1 {
  margin: 0;
  color: var(--docs-text);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.docs-lede {
  max-width: 660px;
  margin: 12px 0 0;
  color: #a9b5c0;
  font-size: 15px;
  line-height: 1.75;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 0;
  color: #71808e;
  font: 10px Consolas, "Microsoft YaHei UI", monospace;
}

.docs-article {
  counter-reset: docs-section;
  min-height: 420px;
  padding: 4px 0 18px;
  color: var(--docs-body);
  font-size: 14px;
  line-height: 1.78;
}

.docs-article > h2 {
  counter-increment: docs-section;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 22px 0 14px;
  border-top: 1px solid var(--docs-line-soft);
  color: var(--docs-text);
  font-size: 18px;
  font-weight: 680;
  line-height: 1.35;
}

.docs-article > h2:first-child {
  border-top: 0;
}

.docs-article > h2::before {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(88, 172, 255, .72);
  border-radius: 50%;
  background: rgba(51, 151, 250, .1);
  color: var(--docs-blue-light);
  content: counter(docs-section);
  font: 700 11px Consolas, monospace;
}

.docs-article h3 {
  margin: 24px 0 8px 38px;
  color: var(--docs-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.docs-article h4,
.docs-article h5,
.docs-article h6 {
  margin: 20px 0 8px 38px;
  color: #e4eaf0;
  font-size: 14px;
  font-weight: 620;
}

.docs-article p,
.docs-article ul,
.docs-article ol,
.docs-article pre,
.docs-article table,
.docs-article blockquote {
  margin-right: 0;
  margin-left: 38px;
}

.docs-article p {
  margin-top: 7px;
  margin-bottom: 10px;
}

.docs-article ul,
.docs-article ol {
  padding-left: 20px;
}

.docs-article li {
  margin: 5px 0;
  padding-left: 4px;
}

.docs-article li::marker {
  color: var(--docs-blue-light);
}

.docs-article a {
  color: var(--docs-blue-light);
  text-decoration: none;
  text-underline-offset: 3px;
}

.docs-article a:hover {
  text-decoration: underline;
}

.docs-article strong {
  color: #e9eef3;
  font-weight: 650;
}

.docs-article code {
  padding: 2px 5px;
  border: 1px solid rgba(40, 51, 62, .72);
  border-radius: 4px;
  background: #0d131a;
  color: #dce8f2;
  font: 12px Consolas, monospace;
}

.docs-article pre {
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  background: #0a0f15;
}

.docs-article pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.docs-article blockquote {
  padding: 10px 0 10px 15px;
  border-left: 2px solid var(--docs-blue);
  color: #9aa7b4;
}

.docs-article blockquote p {
  margin: 0;
}

.docs-article img {
  display: block;
  width: 100%;
  height: auto;
  margin: 18px 0 8px;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: #0a0f15;
}

.docs-figure {
  margin: 20px 0 26px 38px;
}

.docs-figure img {
  margin: 0;
}

.docs-figure figcaption {
  margin-top: 8px;
  color: var(--docs-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.docs-article table {
  width: calc(100% - 38px);
  border-collapse: collapse;
  font-size: 13px;
}

.docs-article th,
.docs-article td {
  padding: 9px 10px;
  border: 1px solid var(--docs-line-soft);
  text-align: left;
}

.docs-article th {
  background: #0d131a;
  color: var(--docs-text);
}

.docs-article hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--docs-line-soft);
}

.docs-article .heading-anchor {
  margin-left: 8px;
  color: #566473;
  font-size: .72em;
  opacity: 0;
  transition: opacity 150ms ease;
}

.docs-article h2:hover .heading-anchor,
.docs-article h3:hover .heading-anchor {
  opacity: 1;
}

.docs-article[data-page="overview"] > h2::before {
  content: "0" counter(docs-section);
}

.docs-article[data-page="overview"] h3 {
  margin-top: 10px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--docs-line-soft);
}

.docs-loading {
  display: grid;
  gap: 12px;
  padding: 36px 0;
}

.docs-loading__line {
  display: block;
  width: 88%;
  height: 8px;
  border-radius: 4px;
  background: #151d26;
  animation: docs-loading 900ms ease-in-out infinite alternate;
}

.docs-loading__line--short {
  width: 56%;
}

@keyframes docs-loading {
  to {
    opacity: .42;
  }
}

.docs-error {
  padding: 34px 0;
  color: var(--docs-muted);
}

.docs-error strong {
  display: block;
  margin-bottom: 7px;
  color: var(--docs-text);
  font-size: 18px;
}

.docs-error span {
  display: block;
}

.docs-error button {
  min-height: 40px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid var(--docs-blue-light);
  border-radius: 8px;
  background: var(--docs-panel);
  color: var(--docs-blue-light);
  cursor: pointer;
  font: 600 .8125rem "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

.docs-error button:hover,
.docs-error button:focus-visible {
  border-color: var(--docs-blue-light);
  background: #151b23;
  outline: 0;
}

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--docs-line-soft);
}

.docs-pagination__link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--docs-body);
  text-decoration: none;
}

.docs-pagination__link--next {
  align-items: flex-end;
  text-align: right;
}

.docs-pagination__link span {
  color: #6f7c89;
  font-size: 11px;
}

.docs-pagination__link strong {
  font-size: 14px;
  font-weight: 600;
}

.docs-pagination__link:hover strong {
  color: var(--docs-blue-light);
}

.docs-pagination__link[hidden] {
  display: none;
}

.docs-page-outline {
  position: sticky;
  top: var(--shell-header-height);
  align-self: start;
  height: calc(100vh - var(--shell-header-height));
  padding: 72px 22px 40px;
  border-left: 1px solid var(--docs-line-soft);
}

.docs-page-outline__title {
  margin: 0 0 13px;
  color: var(--docs-text);
  font-size: 12px;
  font-weight: 680;
}

.docs-page-outline nav {
  display: grid;
  gap: 1px;
}

.docs-page-outline a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 1px solid var(--docs-line);
  color: #7f8c99;
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.docs-page-outline a[data-level="3"] {
  padding-left: 24px;
  font-size: 10px;
}

.docs-page-outline a:hover,
.docs-page-outline a.is-active {
  border-left-color: var(--docs-blue);
  color: var(--docs-blue-light);
}

.docs-page-outline__progress {
  position: absolute;
  top: 72px;
  bottom: 40px;
  left: -1px;
  width: 1px;
  pointer-events: none;
}

.docs-page-outline__progress span {
  display: block;
  width: 2px;
  height: 0;
  background: var(--docs-blue);
  transition: height 100ms linear;
}

.docs-mobile-trigger,
.docs-drawer-backdrop {
  display: none;
}

.docs-shell .site-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 236px minmax(0, 1fr);
    max-width: 1120px;
  }

  .docs-page-outline {
    display: none;
  }
}

@media (max-width: 860px) {
  .docs-layout {
    display: block;
    min-height: calc(100vh - var(--shell-header-height));
  }

  .docs-navigation {
    position: fixed;
    z-index: 1200;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(310px, calc(100vw - 48px));
    height: 100vh;
    padding-top: 0;
    transform: translateX(-102%);
    transition: transform 220ms ease;
  }

  .docs-navigation.is-open {
    transform: translateX(0);
  }

  .docs-navigation__mobile-head {
    display: flex;
    height: 62px;
    align-items: center;
    justify-content: space-between;
    margin: 0 -22px 22px;
    padding: 0 22px;
    border-bottom: 1px solid var(--docs-line-soft);
    color: var(--docs-text);
    font-size: 14px;
    font-weight: 650;
  }

  .docs-navigation__mobile-head button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--docs-muted);
    cursor: pointer;
  }

  .docs-mobile-trigger {
    position: fixed;
    z-index: 900;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--docs-line);
    border-radius: 7px;
    background: #111820;
    color: var(--docs-text);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .34);
    font-size: 12px;
  }

  .docs-drawer-backdrop {
    position: fixed;
    z-index: 1100;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, .56);
  }

  .docs-drawer-backdrop:not([hidden]) {
    display: block;
  }

  .docs-reading {
    max-width: 820px;
    margin: 0 auto;
    padding: 18px 30px 76px;
  }
}

@media (max-width: 600px) {
  .docs-reading {
    padding: 14px 18px 68px;
  }

  .docs-search {
    margin-bottom: 20px;
  }

  .docs-search kbd {
    display: none;
  }

  .docs-article-header h1 {
    font-size: 31px;
  }

  .docs-lede {
    font-size: 14px;
  }

  .docs-article {
    font-size: 13px;
  }

  .docs-article > h2 {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    font-size: 17px;
  }

  .docs-article p,
  .docs-article ul,
  .docs-article ol,
  .docs-article pre,
  .docs-article table,
  .docs-article blockquote,
  .docs-figure,
  .docs-article h3,
  .docs-article h4,
  .docs-article h5,
  .docs-article h6 {
    margin-left: 34px;
  }

  .docs-figure {
    width: calc(100% + 34px);
    max-width: calc(100% + 34px);
    margin-left: -34px;
  }

  .docs-figure figcaption {
    padding: 0 18px;
  }

  .docs-pagination {
    grid-template-columns: 1fr;
  }

  .docs-pagination__link--next {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-navigation,
  .docs-loading__line,
  .docs-page-outline__progress span {
    animation: none;
    transition: none;
  }
}
