:root {
  --vp-c-bg: #f6f8fc;
  --vp-c-bg-soft: rgba(255, 255, 255, 0.78);
  --vp-c-bg-code: #111827;
  --vp-c-text-1: #1f2937;
  --vp-c-text-2: #475569;
  --vp-c-text-3: #64748b;
  --vp-c-border: rgba(15, 23, 42, 0.08);
  --vp-c-divider: rgba(15, 23, 42, 0.08);
  --vp-c-brand-1: #3157c8;
  --vp-c-brand-2: #4b72e2;
  --vp-c-brand-3: #eff4ff;
  --vp-c-tip-1: #0f766e;
  --vp-c-tip-2: #ecfeff;
  --vp-c-warning-1: #b45309;
  --vp-c-warning-2: #fff7ed;
  --vp-c-info-1: #1d4ed8;
  --vp-c-info-2: #eff6ff;
  --vp-shadow-1: 0 24px 70px rgba(15, 23, 42, 0.08);
  --vp-radius: 20px;
  --vp-sidebar-width: 280px;
  --vp-content-width: 880px;
  --vp-font-sans: "Avenir Next", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --vp-font-mono: "SFMono-Regular", "JetBrains Mono", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--vp-font-sans);
  color: var(--vp-c-text-1);
  background:
    radial-gradient(circle at top left, rgba(75, 114, 226, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, #f4f7fb 100%);
}

a {
  color: var(--vp-c-brand-1);
  text-decoration: none;
}

a:hover {
  color: var(--vp-c-brand-2);
}

code,
pre {
  font-family: var(--vp-font-mono);
}

code {
  font-size: 0.92em;
}

.page-shell {
  min-height: 100vh;
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--vp-c-divider);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--vp-c-text-1);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--vp-c-brand-1), #22a1f0);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 30px rgba(49, 87, 200, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 0.16rem;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span:last-child {
  font-size: 0.84rem;
  color: var(--vp-c-text-3);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--vp-c-border);
  background: #fff;
  color: var(--vp-c-text-1);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font: inherit;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.topnav a {
  color: var(--vp-c-text-2);
  font-size: 0.95rem;
}

.topnav a:hover {
  color: var(--vp-c-brand-1);
}

.topnav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--vp-c-brand-1);
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(49, 87, 200, 0.2);
}

.hero-glow {
  position: absolute;
  inset: 3rem auto auto 50%;
  transform: translateX(-50%);
  width: min(1050px, 92vw);
  height: 300px;
  background:
    radial-gradient(circle at 20% 25%, rgba(59, 130, 246, 0.14), transparent 32%),
    radial-gradient(circle at 75% 10%, rgba(14, 165, 233, 0.12), transparent 24%);
  pointer-events: none;
  filter: blur(10px);
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, var(--vp-sidebar-width)) minmax(0, var(--vp-content-width));
  gap: 2rem;
  padding: 2rem 1.5rem 4rem;
}

.sidebar {
  position: sticky;
  top: 5.6rem;
  align-self: start;
  display: grid;
  gap: 1rem;
}

.sidebar-card,
.sidebar-note,
.hero,
.doc-section,
.info-card,
.code-panel,
.faq-item {
  border: 1px solid var(--vp-c-border);
  background: var(--vp-c-bg-soft);
  backdrop-filter: blur(14px);
  box-shadow: var(--vp-shadow-1);
}

.sidebar-card,
.sidebar-note,
.hero,
.doc-section {
  border-radius: var(--vp-radius);
}

.sidebar-card {
  padding: 1.35rem;
}

.sidebar-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vp-c-brand-1);
  font-weight: 700;
}

.sidebar-card h1 {
  margin: 0;
  font-size: 1.35rem;
}

.sidebar-card p {
  margin: 0.75rem 0 0;
  color: var(--vp-c-text-2);
  line-height: 1.72;
}

.sidebar-nav {
  display: grid;
  gap: 0.28rem;
  border-radius: 1.15rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--vp-c-border);
}

.sidebar-nav a {
  color: var(--vp-c-text-2);
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  transition: 0.18s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--vp-c-brand-1);
  background: rgba(49, 87, 200, 0.08);
}

.sidebar-note {
  padding: 1rem 1.1rem;
}

.sidebar-note span {
  display: block;
  font-size: 0.8rem;
  color: var(--vp-c-text-3);
  margin-bottom: 0.35rem;
}

.content {
  display: grid;
  gap: 1.5rem;
}

.hero {
  padding: 2rem;
}

.hero-kicker {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(49, 87, 200, 0.1);
  color: var(--vp-c-brand-1);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero h2 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-summary {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--vp-c-text-2);
  max-width: 54rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.hero-badges span {
  border: 1px solid rgba(49, 87, 200, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--vp-c-text-2);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, var(--vp-c-brand-1), #2550d2);
  color: #fff;
  box-shadow: 0 16px 28px rgba(49, 87, 200, 0.22);
}

.button-primary:hover {
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--vp-c-text-1);
  border: 1px solid var(--vp-c-border);
}

.doc-section {
  padding: 1.55rem;
}

.section-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.section-index {
  min-width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(49, 87, 200, 0.09);
  color: var(--vp-c-brand-1);
  font-weight: 700;
}

.section-heading h3 {
  margin: 0;
  font-size: 1.45rem;
}

.section-heading p {
  margin: 0.35rem 0 0;
  color: var(--vp-c-text-3);
  line-height: 1.7;
}

.callout {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0 0;
  border: 1px solid transparent;
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
}

.callout p {
  margin: 0;
  line-height: 1.8;
}

.callout code {
  background: rgba(255, 255, 255, 0.7);
  padding: 0.12rem 0.35rem;
  border-radius: 0.45rem;
}

.callout-info {
  background: var(--vp-c-info-2);
  color: #1744a8;
  border-color: rgba(29, 78, 216, 0.16);
}

.callout-tip {
  background: var(--vp-c-tip-2);
  color: #155e75;
  border-color: rgba(15, 118, 110, 0.16);
}

.callout-warning {
  background: var(--vp-c-warning-2);
  color: #9a3412;
  border-color: rgba(180, 83, 9, 0.16);
}

.steps,
.plain-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.steps li,
.plain-list li {
  margin: 0.55rem 0;
  color: var(--vp-c-text-2);
  line-height: 1.75;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  border-radius: 1.15rem;
  padding: 1.2rem;
}

.info-card h4 {
  margin: 0;
  font-size: 1.02rem;
}

.info-card p {
  margin: 0.65rem 0 0.8rem;
  color: var(--vp-c-text-2);
  line-height: 1.72;
}

.info-card code {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(49, 87, 200, 0.08);
  color: var(--vp-c-brand-1);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--vp-c-border);
  background: rgba(255, 255, 255, 0.72);
}

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

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 1rem;
  border-bottom: 1px solid var(--vp-c-divider);
  line-height: 1.7;
}

th {
  color: var(--vp-c-text-1);
  font-size: 0.92rem;
  background: rgba(248, 250, 252, 0.92);
}

td {
  color: var(--vp-c-text-2);
}

tr:last-child td {
  border-bottom: none;
}

td code,
th code {
  background: rgba(49, 87, 200, 0.08);
  padding: 0.14rem 0.35rem;
  border-radius: 0.4rem;
}

.code-panel {
  margin-top: 1rem;
  border-radius: 1.15rem;
  overflow: hidden;
}

.code-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f172a;
  color: #e2e8f0;
}

.code-panel h4 {
  margin: 0;
  font-size: 0.96rem;
}

.copy-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.copy-button.is-copied {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.3);
}

.code-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem 1.05rem 1.15rem;
  background: var(--vp-c-bg-code);
  color: #dbeafe;
  font-size: 0.92rem;
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 0.8rem;
}

.faq-item {
  border-radius: 1.15rem;
  padding: 1.2rem;
}

.faq-item h4 {
  margin: 0;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--vp-c-text-2);
  line-height: 1.76;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: 1;
  }

  .content {
    order: 0;
  }
}

@media (max-width: 860px) {
  .topnav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .sidebar {
    display: none;
  }

  body.sidebar-open .sidebar {
    display: grid;
    position: fixed;
    inset: 4.7rem 1rem 1rem;
    z-index: 40;
    overflow: auto;
    background: transparent;
  }

  .layout {
    padding-top: 1.25rem;
  }

  .hero,
  .doc-section {
    padding: 1.2rem;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: center;
  }
}

@media (max-width: 540px) {
  .topbar-inner,
  .layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-copy span:last-child {
    display: none;
  }

  .hero-summary,
  .steps li,
  .plain-list li,
  .faq-item p,
  .info-card p {
    font-size: 0.96rem;
  }
}
