:root {
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211e;
  background: #f4f7f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f4f7f5;
}

a {
  color: #1f8069;
  text-decoration: none;
}

a:hover {
  color: #125d4d;
}

button,
code,
pre {
  font: inherit;
}

.docs-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #dce3df;
  background: rgba(244, 247, 245, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(100% - 48px, 1240px);
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17211e;
}

.brand:hover {
  color: #17211e;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand span {
  font-size: 17px;
  font-weight: 760;
}

.brand i {
  display: block;
  width: 1px;
  height: 20px;
  margin: 0 2px;
  background: #ccd5d1;
}

.brand b {
  color: #65736e;
  font-size: 14px;
  font-weight: 600;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.header-links > a:first-child {
  color: #586862;
}

.console-link {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  align-items: center;
  border-radius: 6px;
  background: #1b705d;
  color: #fff;
}

.console-link:hover {
  background: #125c4c;
  color: #fff;
}

.docs-hero {
  border-bottom: 1px solid #dce3df;
  background: #eef3f0;
}

.hero-inner {
  display: grid;
  width: min(100% - 48px, 1240px);
  min-height: 340px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.62fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #267c67;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 750;
}

h1 {
  margin: 0;
  color: #10201b;
  font-size: 54px;
  font-weight: 760;
  line-height: 1.14;
}

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: #596963;
  font-size: 17px;
  line-height: 1.8;
}

.endpoint-panel {
  display: grid;
  min-height: 138px;
  padding: 24px;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #cedbd5;
  border-radius: 8px;
  background: #f9fbfa;
  box-shadow: 0 18px 44px rgba(42, 75, 64, 0.08);
}

.endpoint-panel span {
  grid-column: 1 / -1;
  align-self: end;
  color: #72817b;
  font-size: 12px;
  font-weight: 650;
}

.endpoint-panel code {
  overflow: hidden;
  color: #163a31;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-panel button,
.code-title button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #ccd8d3;
  border-radius: 5px;
  background: #fff;
  color: #3e514a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.endpoint-panel button:hover,
.code-title button:hover {
  border-color: #66ad9b;
  color: #176953;
}

.docs-layout {
  display: grid;
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  grid-template-columns: 216px minmax(0, 850px);
  justify-content: space-between;
  gap: 68px;
  padding: 56px 0 96px;
}

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

.toc > p {
  margin: 0 0 14px;
  color: #87958f;
  font-size: 11px;
  font-weight: 750;
}

.toc nav {
  display: flex;
  padding-left: 14px;
  flex-direction: column;
  border-left: 1px solid #d7dfdb;
}

.toc a {
  padding: 6px 0;
  color: #677771;
  font-size: 13px;
  line-height: 1.35;
}

.toc a:hover {
  color: #16715b;
}

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

.notice,
.warning {
  padding: 20px 22px;
  border-left: 3px solid #2d9077;
  background: #e8f1ed;
}

.notice strong,
.warning strong {
  display: block;
  margin-bottom: 6px;
  color: #194d40;
  font-size: 14px;
}

.notice p,
.warning p {
  margin: 0;
  color: #536860;
  font-size: 14px;
  line-height: 1.7;
}

.warning {
  margin-top: 24px;
  border-left-color: #c18536;
  background: #f6f0e7;
}

.warning strong {
  color: #795223;
}

.doc-section {
  padding: 68px 0 0;
}

.section-heading {
  display: flex;
  margin-bottom: 26px;
  align-items: flex-start;
  gap: 16px;
}

.section-heading > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #c7d7d1;
  border-radius: 50%;
  color: #297a66;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 750;
  place-items: center;
}

.section-heading p {
  margin: 0 0 5px;
  color: #85938e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

h2 {
  margin: 0;
  color: #17231f;
  font-size: 30px;
  font-weight: 740;
  line-height: 1.2;
}

.doc-section > h3 {
  margin: 36px 0 10px;
  color: #23312c;
  font-size: 18px;
}

.doc-section > p {
  margin: 0 0 20px;
  color: #52635d;
  font-size: 15px;
  line-height: 1.85;
}

.doc-section code,
.install-line code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.doc-section p code,
.check-list code {
  padding: 2px 5px;
  border: 1px solid #d8e1dd;
  border-radius: 4px;
  background: #edf2ef;
  color: #255245;
  font-size: 0.9em;
}

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1px;
  list-style: none;
  background: #dce4e0;
}

.steps li {
  display: grid;
  padding: 24px;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  background: #f9fbfa;
}

.steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dcece6;
  color: #1f6c58;
  font-size: 13px;
  font-weight: 750;
  place-items: center;
}

.steps h3 {
  margin: 3px 0 7px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: #5d6d67;
  font-size: 14px;
  line-height: 1.7;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d7e0dc;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fafcfb;
  font-size: 14px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid #e1e7e4;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3f0;
  color: #52635d;
  font-size: 12px;
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: #4f605a;
  line-height: 1.55;
}

td code {
  color: #235746;
  white-space: nowrap;
}

.code-block {
  overflow: hidden;
  margin: 18px 0 24px;
  border: 1px solid #203534;
  border-radius: 7px;
  background: #0c1718;
  box-shadow: 0 14px 36px rgba(30, 55, 48, 0.1);
}

.code-title {
  display: flex;
  min-height: 48px;
  padding: 0 14px 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #243536;
}

.code-title span {
  color: #8fa29f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.code-title button {
  min-height: 30px;
  border-color: #334847;
  background: #142324;
  color: #a9bab7;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  color: #d6e3df;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}

.compact pre {
  padding: 17px 22px;
}

.install-line {
  display: inline-flex;
  min-height: 36px;
  margin-top: -12px;
  padding: 0 12px;
  align-items: center;
  border: 1px solid #d4ded9;
  border-radius: 5px;
  background: #edf2ef;
  color: #426058;
  font-size: 12px;
}

.muted {
  color: #7b8984 !important;
  font-size: 13px !important;
}

.subtle {
  margin-top: 26px;
  border-left-color: #789d93;
  background: #eef3f1;
}

.check-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1px;
  background: #dce4e0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 20px 18px 48px;
  background: #f9fbfa;
  color: #53645e;
  font-size: 14px;
  line-height: 1.7;
}

.check-list li::before {
  position: absolute;
  top: 21px;
  left: 21px;
  display: grid;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #d7ebe4;
  color: #176952;
  content: "✓";
  font-size: 11px;
  font-weight: 800;
  place-items: center;
}

.check-list strong {
  color: #263832;
}

.support-box {
  display: flex;
  margin-top: 26px;
  padding: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #13211f;
}

.support-box span {
  color: #e8f0ed;
  font-size: 16px;
  font-weight: 700;
}

.support-box p {
  margin: 7px 0 0;
  color: #9cadA8;
  font-size: 13px;
  line-height: 1.6;
}

.support-box a {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid #49615b;
  border-radius: 5px;
  color: #c6d8d2;
  font-size: 12px;
  font-weight: 650;
}

.sources {
  margin-top: 76px;
  padding-top: 28px;
  border-top: 1px solid #d7dfdb;
}

.sources h2 {
  font-size: 18px;
}

.sources p {
  margin: 10px 0 14px;
  color: #6f7e79;
  font-size: 13px;
  line-height: 1.7;
}

.sources div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.sources a {
  font-size: 12px;
  font-weight: 650;
}

.sources small {
  display: block;
  margin-top: 20px;
  color: #929e99;
  font-size: 11px;
}

.copy-toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  padding: 11px 15px;
  border-radius: 5px;
  background: #143d33;
  box-shadow: 0 12px 32px rgba(14, 47, 38, 0.2);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(42, 145, 119, 0.35);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-inner {
    min-height: auto;
    padding: 58px 0;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .endpoint-panel {
    max-width: 560px;
  }

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

  .toc {
    display: none;
  }

  .docs-content {
    width: min(100%, 850px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero-inner,
  .docs-layout {
    width: min(100% - 32px, 1240px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand i,
  .brand b,
  .header-links > a:first-child {
    display: none;
  }

  .console-link {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero-inner {
    padding: 44px 0;
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .endpoint-panel {
    min-height: 124px;
    padding: 20px;
  }

  .endpoint-panel code {
    max-width: 220px;
    font-size: 12px;
  }

  .docs-layout {
    padding: 38px 0 70px;
  }

  .doc-section {
    padding-top: 54px;
  }

  h2 {
    font-size: 26px;
  }

  .steps li {
    padding: 20px 16px;
  }

  th,
  td {
    min-width: 132px;
    padding: 13px;
  }

  pre {
    padding: 18px;
    font-size: 12px;
  }

  .support-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
