:root {
  color-scheme: dark;
  --bg: #0b0f15;
  --panel: #131922;
  --panel-2: #18202b;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #95a0af;
  --accent: #52d9e8;
  --gold: #e8bd70;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 72% 0%, rgba(82, 217, 232, 0.13), transparent 34%), var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.docs-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 250px minmax(0, 1fr);
}

.docs-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(11, 15, 21, 0.82);
  padding: 24px 18px;
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #151b24, #050608);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.brand strong {
  font-size: 17px;
}

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

.docs-nav nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 12px;
  text-decoration: none;
}

.docs-nav nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.docs-content {
  width: min(1040px, calc(100vw - 250px));
  padding: 48px 56px 72px;
}

.hero {
  margin-bottom: 22px;
  padding: 28px 0 18px;
}

.hero p,
.hero h1,
.card h2,
.card h3,
.card p {
  margin: 0;
}

.hero p {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 10px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions code,
.hero-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 11px 13px;
  text-decoration: none;
}

.hero-actions a {
  background: var(--accent);
  color: #061015;
  font-weight: 800;
}

.card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(19, 25, 34, 0.86);
  padding: 22px;
}

.card h2 {
  margin-bottom: 12px;
  font-size: 23px;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.card p {
  color: var(--muted);
  line-height: 1.72;
}

pre {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #080b10;
  padding: 14px;
}

code {
  color: #d8ecff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
}

td {
  color: #dce3ee;
  font-size: 14px;
  line-height: 1.55;
}

td b {
  color: var(--gold);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 14px;
}

@media (max-width: 840px) {
  .docs-shell {
    display: block;
  }

  .docs-nav {
    position: static;
    height: auto;
  }

  .docs-content {
    width: 100%;
    padding: 28px 18px 48px;
  }

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