* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.docs-page {
  margin: 0;
  color: #1f2a44;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

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

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 260px minmax(180px, 300px) minmax(0, 1fr);
  align-items: center;
  height: 60px;
  padding: 0 28px;
  border-bottom: 1px solid #e8edf3;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #182235;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.docs-brand img {
  display: block;
  width: auto;
  max-width: 154px;
  height: 30px;
}

.docs-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #ff7a1a;
  border-radius: 2px;
  color: #ff7a1a;
  font-weight: 800;
  line-height: 1;
}

.docs-search {
  min-width: 0;
}

.docs-search input {
  width: 100%;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  outline: 0;
  color: #334155;
  background: #fff;
  font-size: 14px;
}

.docs-search input:focus {
  border-color: #a9b8d0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.docs-topnav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  gap: 24px;
  color: #2f3c52;
  font-size: 14px;
  white-space: nowrap;
}

.docs-topnav a {
  line-height: 60px;
}

.docs-topnav a:hover,
.docs-topnav a.active {
  color: #f97316;
}

.docs-app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 240px;
  min-height: calc(100vh - 60px);
}

.docs-sidebar {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow: auto;
  padding: 34px 0 36px 54px;
  border-right: 1px solid #e8edf3;
  background: #fbfcfe;
}

.docs-sidebar::-webkit-scrollbar,
.docs-toc::-webkit-scrollbar {
  width: 8px;
}

.docs-sidebar::-webkit-scrollbar-thumb,
.docs-toc::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #c8d1dc;
}

.docs-book-title {
  display: block;
  margin: 0 22px 14px 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.docs-tree {
  display: grid;
  gap: 1px;
  padding-right: 10px;
}

.docs-tree [hidden] {
  display: none !important;
}

.docs-tree a,
.docs-tree span {
  display: block;
  position: relative;
  padding: 5px 14px;
  border-radius: 2px;
  color: #516173;
  font-size: 14px;
  line-height: 1.8;
}

.docs-tree a:hover {
  color: #2563eb;
  background: #eef5ff;
}

.docs-tree a.active {
  color: #1d4ed8;
  background: #eaf2ff;
  font-weight: 700;
}

.docs-tree a.has-children {
  padding-left: 22px;
  color: #243247;
  font-weight: 700;
  cursor: pointer;
}

.docs-tree a.has-children::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-55%) rotate(-45deg);
  transition: transform .16s ease;
}

.docs-tree a.has-children.is-open::before {
  transform: translateY(-70%) rotate(45deg);
}

.docs-tree a.has-children.active {
  color: #243247;
  background: transparent;
}

.docs-tree .depth-1:not(.has-children) {
  padding-left: 42px;
}

.docs-tree .depth-2:not(.has-children) {
  padding-left: 56px;
}

.docs-tree .depth-3:not(.has-children) {
  padding-left: 70px;
}

.docs-article {
  min-width: 0;
  padding: 32px 54px 74px;
}

.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
  color: #8b98ad;
  font-size: 14px;
}

.docs-breadcrumb a:hover {
  color: #2563eb;
}

.docs-article-head {
  padding-bottom: 26px;
  border-bottom: 1px solid #e8edf3;
}

.docs-article-head h1 {
  margin: 0;
  color: #111827;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0;
}

.docs-article-head p {
  max-width: 860px;
  margin: 16px 0 0;
  color: #64748b;
  font-size: 16px;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: #94a3b8;
  font-size: 13px;
}

.docs-content {
  padding-top: 34px;
  color: #263348;
  font-size: 15px;
}

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
  scroll-margin-top: 78px;
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.docs-content h1 {
  margin: 4px 0 22px;
  font-size: 30px;
}

.docs-content h2 {
  margin: 42px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf3;
  font-size: 24px;
}

.docs-content h3 {
  margin: 30px 0 14px;
  font-size: 19px;
}

.docs-content h4 {
  margin: 24px 0 12px;
  font-size: 16px;
}

.docs-content p,
.docs-content ul,
.docs-content ol,
.docs-content blockquote,
.docs-content pre,
.docs-content table {
  margin: 0 0 18px;
}

.docs-content ul,
.docs-content ol {
  padding-left: 24px;
}

.docs-content li + li {
  margin-top: 4px;
}

.docs-content a {
  color: #2563eb;
}

.docs-content a:hover {
  color: #f97316;
}

.docs-content blockquote {
  padding: 11px 15px;
  border-left: 3px solid #c7d2fe;
  color: #526276;
  background: #f8fafc;
}

.docs-content .custom-block {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-left: 3px solid #2563eb;
  border-radius: 2px;
  color: #334155;
  background: #f6f9ff;
}

.docs-content .custom-block-title {
  margin: 0 0 8px;
  color: #111827;
  font-weight: 800;
}

.docs-content .custom-block.info,
.docs-content .custom-block.tip {
  border-left-color: #2563eb;
  background: #f6f9ff;
}

.docs-content .custom-block.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.docs-content .custom-block.danger {
  border-left-color: #ef4444;
  background: #fff1f2;
}

.docs-content .custom-block.success {
  border-left-color: #22c55e;
  background: #f0fdf4;
}

.docs-content code {
  padding: 2px 6px;
  border-radius: 2px;
  color: #4f46e5;
  background: #f1f5ff;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: .92em;
}

.docs-content pre {
  overflow: auto;
  padding: 18px 20px;
  border: 0;
  border-radius: 2px;
  background: #f7f7f8;
}

.docs-content pre code {
  padding: 0;
  color: #203047;
  background: transparent;
  font-size: 14px;
  line-height: 1.85;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dbe3ee;
  background: #fff;
}

.docs-content th,
.docs-content td {
  padding: 12px 14px;
  border: 1px solid #dbe3ee;
  vertical-align: top;
}

.docs-content th {
  color: #111827;
  background: #f8fafc;
  font-weight: 800;
}

.docs-content td:first-child {
  width: 250px;
}

.docs-content img {
  display: block;
  max-width: 100%;
  margin: 20px auto;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
}

.docs-toc {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow: auto;
  padding: 44px 26px 36px 26px;
  border-left: 1px solid #e8edf3;
  background: #fff;
}

.docs-toc strong {
  display: block;
  margin-bottom: 16px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.docs-toc nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid #e4eaf2;
}

.docs-toc a,
.docs-toc span {
  display: block;
  padding: 6px 0 6px 18px;
  border-left: 2px solid transparent;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.docs-toc a:hover {
  color: #f97316;
  border-left-color: #f97316;
  background: #fff8ed;
}

.docs-toc a.is-active {
  color: #f97316;
  border-left-color: #f97316;
  background: #fff8ed;
  font-weight: 700;
}

.docs-toc .level-3 {
  padding-left: 30px;
}

.docs-toc .level-4 {
  padding-left: 42px;
}

.docs-index {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 28px 76px;
}

.docs-index-hero {
  padding: 34px 0 30px;
  border-bottom: 1px solid #e8edf3;
}

.docs-index-hero p {
  margin: 0 0 8px;
  color: #f97316;
  font-weight: 700;
}

.docs-index-hero h1 {
  margin: 0;
  color: #111827;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

.docs-index-hero span {
  display: block;
  max-width: 720px;
  margin-top: 14px;
  color: #64748b;
}

.docs-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 30px;
}

.docs-book-card a {
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 22px;
  border: 1px solid #e8edf3;
  border-radius: 2px;
  background: #fff;
}

.docs-book-card a:hover {
  border-color: #fbbf24;
  background: #fffbf5;
}

.docs-book-card span {
  color: #f97316;
  font-size: 13px;
  font-weight: 800;
}

.docs-book-card h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.docs-book-card p {
  margin: 0;
  color: #64748b;
}

.empty-box {
  padding: 28px;
  border: 1px solid #e8edf3;
  color: #64748b;
  background: #f8fafc;
}

@media (max-width: 1280px) {
  .docs-app {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }

  .docs-sidebar {
    padding-left: 36px;
  }
}

@media (max-width: 900px) {
  .docs-topbar {
    grid-template-columns: 1fr;
    height: auto;
    gap: 12px;
    padding: 14px 18px;
  }

  .docs-search,
  .docs-topnav {
    width: 100%;
  }

  .docs-topnav {
    justify-content: flex-start;
    gap: 16px;
    overflow: auto;
  }

  .docs-topnav a {
    line-height: 1.5;
  }

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

  .docs-sidebar {
    position: static;
    height: auto;
    max-height: 360px;
    padding: 20px 18px;
    border-right: 0;
    border-bottom: 1px solid #e8edf3;
  }

  .docs-article {
    padding: 28px 18px 56px;
  }

  .docs-article-head h1 {
    font-size: 30px;
  }

  .docs-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .docs-content td:first-child {
    width: auto;
  }

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