:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #141a24;
  --muted: #5b6475;
  --line: #e3e7ef;
  --brand: #0f766e;
  --brand-2: #0ea5a4;
  --brand-soft: #e6f7f5;
  --code-bg: #0f172a;
  --code-ink: #e5eefb;
  --warn-bg: #fff7e6;
  --warn-line: #f3d19e;
  --note-bg: #eef6ff;
  --note-line: #bfdbfe;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 26, 36, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 28px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: .2px;
  text-decoration: none;
}
.brand strong { color: var(--brand); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(14,165,164,.25);
}
.topnav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--ink); text-decoration: none; }
.topnav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink) !important;
  color: #fff !important;
}

.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 28px 80px;
  gap: 46px;
}

.sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sidebar-title {
  padding: 0 10px 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a93a6;
}
.sidebar a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.sidebar a:hover,
.sidebar a.active {
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
}

.content { min-width: 0; }

.hero {
  padding: 42px 40px 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(650px 260px at 100% 0%, rgba(14,165,164,.14), transparent 60%),
    radial-gradient(500px 240px at 0% 100%, rgba(15,118,110,.10), transparent 60%),
    var(--panel);
  box-shadow: var(--shadow);
}
.hero-kicker {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.14;
  letter-spacing: -.03em;
}
.hero-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.base-url {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 12px 14px;
  border: 1px dashed #b9c2d4;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
}
.base-url span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a93a6;
}
.base-url code { font-size: 14px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: #c9d2e2; }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(14,165,164,.24);
}

.section {
  margin-top: 46px;
  scroll-margin-top: 88px;
}
.section h2 {
  margin: 0 0 10px;
  font-size: 27px;
  letter-spacing: -.02em;
}
.section h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}
.section p { color: #333b4b; }
.section ul { padding-left: 22px; }
.section li { margin: 6px 0; }

.steps { display: grid; gap: 18px; margin-top: 22px; }
.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.step h3 { margin-top: 0; }

pre {
  position: relative;
  margin: 12px 0;
  padding: 16px 72px 16px 18px;
  overflow: auto;
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-size: 13px;
  line-height: 1.65;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: #dbe7f7;
  font-size: 11px;
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s ease, background .15s ease;
}
pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: rgba(255,255,255,.16); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
p code, li code, td code, th code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef1f6;
  color: #1f2937;
  font-size: .92em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th { background: #f1f4f9; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody th { width: 180px; background: #f8fafc; }

.note, .warn {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--note-line);
  border-radius: 10px;
  background: var(--note-bg);
  color: #24324a;
  font-size: 14px;
}
.warn {
  border-left-color: var(--warn-line);
  background: var(--warn-bg);
  color: #4b3a1d;
}
.note strong, .warn strong { display: block; margin-bottom: 2px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-links { display: flex; gap: 16px; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding: 24px 18px 60px; gap: 24px; }
  .sidebar {
    position: relative;
    top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 6px;
  }
  .sidebar-title { width: 100%; padding-bottom: 2px; }
  .sidebar a { padding: 6px 9px; font-size: 13px; }
  .hero { padding: 30px 22px; }
  .topnav { display: none; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 16px; }
  .step { grid-template-columns: 1fr; }
  .step-num { width: 26px; height: 26px; }
  th, td { padding: 9px 10px; font-size: 13px; }
  tbody th { width: auto; }
}
