:root {
  color-scheme: light;
  --doc-bg: #fbfcfb;
  --doc-ink: #111816;
  --doc-text: #33413d;
  --doc-muted: #66726f;
  --doc-line: #dfe7e3;
  --doc-panel: #ffffff;
  --doc-soft: #eef7f4;
  --doc-accent: #00a896;
  --doc-accent-dark: #067d72;
  --doc-red: #e84d3d;
  --doc-shadow: 0 18px 55px rgba(17, 24, 22, 0.08);
  --doc-radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.docs-body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(0, 168, 150, 0.055), transparent 360px),
    var(--doc-bg);
  color: var(--doc-ink);
  letter-spacing: 0;
}

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

.docs-body img {
  display: block;
  max-width: 100%;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid rgba(223, 231, 227, 0.92);
  background: rgba(251, 252, 251, 0.92);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 168px;
  height: auto;
}

.docs-topnav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--doc-text);
  font-size: 14px;
  font-weight: 700;
}

.docs-topnav a,
.docs-sidebar a,
.docs-toc a,
.header-action,
.button {
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.docs-topnav a:hover,
.docs-sidebar a:hover,
.docs-toc a:hover {
  color: var(--doc-accent-dark);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.header-action {
  border-color: var(--doc-ink);
  background: var(--doc-ink);
  color: #fff;
}

.contact-label {
  position: relative;
  z-index: 1;
  color: #fff;
}

.header-action:hover,
.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--doc-accent);
  background: var(--doc-accent);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 168, 150, 0.22);
}

.button.secondary {
  background: #fff;
  color: var(--doc-ink);
}

.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px) 190px;
  gap: 38px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 104px;
  align-self: start;
}

.docs-sidebar {
  min-height: calc(100vh - 140px);
  padding-right: 20px;
  border-right: 1px solid var(--doc-line);
}

.docs-sidebar-title {
  margin: 0 0 16px;
  color: var(--doc-ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-sidebar nav {
  display: grid;
  gap: 5px;
}

.docs-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--doc-radius);
  color: #3f4d49;
  font-size: 14px;
  line-height: 1.35;
}

.docs-sidebar a.is-current {
  background: var(--doc-soft);
  color: var(--doc-accent-dark);
  font-weight: 900;
}

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

.docs-hero {
  padding: 54px 0 48px;
  border-bottom: 1px solid var(--doc-line);
}

.docs-kicker {
  margin: 0 0 14px;
  color: var(--doc-accent-dark);
  font-size: 14px;
  font-weight: 950;
}

.docs-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--doc-ink);
  font-size: clamp(54px, 8vw, 92px);
  line-height: 0.96;
  font-weight: 950;
}

.docs-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--doc-text);
  font-size: 19px;
  line-height: 1.72;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 8px;
}

.docs-card-grid article {
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
  background: var(--doc-panel);
  box-shadow: 0 1px 0 rgba(17, 24, 22, 0.02);
}

.docs-card-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.docs-card-grid span {
  display: block;
  color: var(--doc-muted);
  font-size: 14px;
  line-height: 1.56;
}

.docs-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--doc-line);
  scroll-margin-top: 96px;
}

.docs-section h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.06;
  font-weight: 950;
}

.docs-section h3 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.docs-section p,
.docs-section li {
  color: var(--doc-text);
  font-size: 16px;
  line-height: 1.78;
}

.docs-section p {
  margin: 0 0 16px;
}

.docs-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.docs-section p code,
.docs-section li code {
  padding: 0.14em 0.36em;
  border-radius: 5px;
  background: var(--doc-soft);
  color: #0a665e;
  font-size: 0.92em;
}

.docs-section pre {
  margin: 18px 0 22px;
  padding: 22px;
  border: 1px solid rgba(17, 24, 22, 0.1);
  border-radius: 12px;
  background: #101716;
  color: #d9fff8;
  overflow: auto;
  box-shadow: var(--doc-shadow);
}

.docs-section pre code {
  font-size: 14px;
  line-height: 1.7;
  white-space: pre;
}

.docs-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(0, 168, 150, 0.26);
  border-radius: var(--doc-radius);
  background: var(--doc-soft);
}

.docs-callout strong {
  color: var(--doc-accent-dark);
}

.docs-callout p {
  margin: 8px 0 0;
}

.docs-table-wrap {
  overflow-x: auto;
}

.docs-section table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
  background: #fff;
}

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

.docs-section th {
  background: var(--doc-soft);
  color: #23302c;
  font-size: 14px;
}

.docs-section td {
  color: var(--doc-text);
  font-size: 15px;
  line-height: 1.65;
}

.docs-list {
  padding-left: 20px;
}

.docs-toc {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  border-left: 1px solid var(--doc-line);
}

.docs-toc strong {
  margin-bottom: 8px;
  color: var(--doc-ink);
  font-size: 13px;
}

.docs-toc a {
  color: var(--doc-muted);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer.docs-footer {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--doc-line);
  color: var(--doc-muted);
  font-size: 14px;
}

.site-footer.docs-footer a {
  color: var(--doc-accent-dark);
  font-weight: 900;
}

@media (max-width: 1060px) {
  .docs-header {
    grid-template-columns: 190px auto;
  }

  .docs-topnav {
    display: none;
  }

  .docs-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .docs-sidebar,
  .docs-toc {
    position: static;
  }

  .docs-sidebar {
    min-height: 0;
    padding: 0;
    border: 0;
  }

  .docs-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .docs-sidebar a {
    border: 1px solid var(--doc-line);
    background: #fff;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .docs-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 78px;
    padding: 14px;
  }

  .brand img {
    width: 138px;
  }

  .header-action {
    min-height: 40px;
    padding: 0 13px;
  }

  .docs-shell,
  .site-footer.docs-footer {
    width: min(100% - 28px, 1180px);
  }

  .docs-shell {
    padding-top: 24px;
  }

  .docs-hero {
    padding: 42px 0 42px;
  }

  .docs-hero h1 {
    font-size: 48px;
  }

  .docs-hero p {
    font-size: 18px;
  }

  .docs-actions,
  .docs-actions .button {
    width: 100%;
  }

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

  .docs-section pre {
    padding: 16px;
  }
}
