:root {
  --brand: #0b9f95;
  --brand-dark: #087d77;
  --brand-deep: #075f5c;
  --accent: #27c7b8;
  --ink: #102038;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f4f8fa;
  --panel: #ffffff;
  --code: #0d1728;
  --shadow: 0 18px 45px rgba(15, 50, 70, .08);
  --radius: 20px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(39,199,184,.09), transparent 25%),
    linear-gradient(#fff, #f7fafc 620px);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
button { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: #fff;
  box-shadow: 0 8px 20px rgba(8,125,119,.14);
  border: 1px solid rgba(11,159,149,.15);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 16px; letter-spacing: .2px; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  color: var(--brand-dark); background: rgba(39,199,184,.1);
  font-size: 13px; font-weight: 700;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #17b26a; box-shadow: 0 0 0 5px rgba(23,178,106,.12); }
.ghost-btn {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: #334155; font-size: 13px; font-weight: 700;
}

.hero {
  position: relative; overflow: hidden;
  min-height: 500px;
  background:
    linear-gradient(120deg, #062f32 0%, #075e5d 45%, #0aa497 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, #000, transparent 85%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(12px); opacity: .45; }
.glow-one { width: 460px; height: 460px; right: -120px; top: -160px; background: #56e6d6; }
.glow-two { width: 320px; height: 320px; left: 35%; bottom: -210px; background: #1cc5e7; }
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; padding: 78px 28px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center;
}
.eyebrow {
  display: inline-flex; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; background: rgba(255,255,255,.08);
  font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
}
.hero h1 { margin: 18px 0 18px; font-size: clamp(38px, 5vw, 64px); line-height: 1.16; letter-spacing: -1.5px; }
.hero h1 span { color: #75f0df; }
.hero-copy > p { max-width: 740px; color: rgba(255,255,255,.8); font-size: 17px; }
.hero-copy code { color: #9cf6e9; }
.hero-buttons { display: flex; gap: 12px; margin: 28px 0 30px; }
.primary-btn, .secondary-btn {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 12px 20px; border-radius: 13px; font-weight: 800; font-size: 14px;
}
.primary-btn { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.secondary-btn { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta span { padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.76); font-size: 12px; }
.hero-meta b { color: #fff; font-size: 15px; margin-right: 3px; }
.hero-card {
  border: 1px solid rgba(255,255,255,.17); border-radius: 22px;
  background: rgba(3,25,31,.58); box-shadow: 0 30px 60px rgba(0,0,0,.22);
  overflow: hidden; backdrop-filter: blur(14px);
}
.hero-card-head, .hero-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.hero-card-head { border-bottom: 1px solid rgba(255,255,255,.09); font-weight: 800; font-size: 13px; }
.hero-card-foot { border-top: 1px solid rgba(255,255,255,.09); justify-content: flex-start; gap: 8px; }
.hero-card-foot span { font-size: 10px; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.hero-card pre { margin: 0; padding: 24px; overflow: auto; color: #d8fffa; line-height: 1.8; font-size: 12px; }
.method { padding: 4px 8px; border-radius: 8px; font-size: 11px; }
.method.get { color: #062e2b; background: #6ce8d9; }

.layout {
  max-width: 1320px; margin: 0 auto; padding: 48px 28px 80px;
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px;
}
.sidebar { align-self: start; position: sticky; top: 102px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a {
  padding: 10px 13px; border-radius: 10px; color: #5b6b7c;
  font-size: 14px; font-weight: 700; transition: .2s ease;
}
.sidebar nav a:hover, .sidebar nav a.active { color: var(--brand-dark); background: rgba(11,159,149,.09); }
.sidebar-help { margin-top: 22px; padding: 16px; border-radius: 16px; background: #eef8f7; border: 1px solid rgba(11,159,149,.12); }
.sidebar-help strong { font-size: 13px; color: var(--brand-deep); }
.sidebar-help p { margin: 6px 0 0; color: #698079; font-size: 12px; line-height: 1.6; }

.content { min-width: 0; }
.section { padding: 22px 0 48px; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.section-index {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--brand-dark); background: rgba(11,159,149,.1); font-size: 12px; font-weight: 900;
}
.section-heading h2 { margin: 1px 0 4px; font-size: 28px; letter-spacing: -.5px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }

.base-url-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px; background: var(--code); color: #e7fff9; border-radius: 17px;
}
.base-url-card > div { min-width: 0; display: grid; gap: 7px; }
.base-url-card .label { color: #9bb1bd; font-size: 12px; }
.base-url-card code { overflow-wrap: anywhere; font-size: 13px; }
.copy-btn {
  flex: 0 0 auto; border: 0; border-radius: 10px; padding: 8px 12px;
  color: #0b625d; background: #c8fff5; font-size: 12px; font-weight: 900; cursor: pointer;
}
.copy-btn:hover { transform: translateY(-1px); }

.notice, .warning {
  margin-top: 16px; padding: 15px 17px; border-radius: 14px; font-size: 13px;
}
.notice { color: #335b59; background: #eef9f8; border: 1px solid #cfefeb; }
.warning { color: #7a4b12; background: #fff8e8; border: 1px solid #fde7b0; }
.notice code, .warning code { font-weight: 800; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.info-card, .mode-card, .rule-card {
  padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.03);
}
.info-card h3, .mode-card h3, .rule-card h3 { margin: 0 0 8px; font-size: 17px; }
.info-card p, .mode-card p, .rule-card p { margin: 0; color: var(--muted); font-size: 13px; }
.card-icon {
  display: inline-grid; place-items: center; min-width: 38px; height: 30px; margin-bottom: 13px;
  border-radius: 9px; background: rgba(11,159,149,.1); color: var(--brand-dark);
  font-size: 10px; font-weight: 900;
}
.mode-card { position: relative; overflow: hidden; }
.mode-card.accent::after { content: ""; position: absolute; width: 140px; height: 140px; right: -60px; bottom: -70px; border-radius: 50%; background: rgba(39,199,184,.16); }
.mode-badge { display: inline-flex; margin-bottom: 14px; padding: 5px 9px; border-radius: 999px; background: #edf5f6; color: var(--brand-dark); font: 800 11px/1 monospace; }
.rule-card { margin-top: 16px; border-color: rgba(11,159,149,.25); background: linear-gradient(135deg,#fff,#f1fbfa); }
.rule-card p + p { margin-top: 8px; }

.code-block {
  border-radius: 17px; overflow: hidden; background: var(--code); color: #dceeff;
  box-shadow: var(--shadow);
}
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #b6c5d6; }
.code-block pre { margin: 0; padding: 22px; overflow: auto; line-height: 1.8; font-size: 12px; }

.steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.steps > div { padding: 15px; border-radius: 15px; border: 1px solid var(--line); background: #fff; }
.steps span { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--brand); font-size: 11px; font-weight: 900; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.steps strong { color: var(--ink); }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 16px; border-bottom: 1px solid #edf2f7; text-align: left; font-size: 13px; vertical-align: top; }
th { color: #475569; background: #f8fafc; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
td code { color: var(--brand-dark); font-weight: 800; }
.tag { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.tag.required { color: #9b2c2c; background: #fff0f0; }
.tag.optional { color: #176b57; background: #eaf9f5; }
.tag.conditional { color: #6941c6; background: #f2edff; }

.field-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.field-cloud code { padding: 7px 10px; border-radius: 10px; color: #1f4861; background: #eef5f8; font-size: 11px; font-weight: 800; }

.tabs { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; }
.tab-list { display: flex; gap: 3px; padding: 9px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; padding: 8px 12px; border-radius: 9px; background: transparent;
  color: #64748b; font-size: 12px; font-weight: 800; cursor: pointer;
}
.tab.active { color: var(--brand-dark); background: #e7f7f5; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tabs .code-block { border-radius: 0; box-shadow: none; }

.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.check-grid div { padding: 13px 15px; border-radius: 12px; background: #f6fafb; border: 1px solid #e7eff2; color: #365269; font-size: 13px; }
.launch-card {
  margin-top: 18px; padding: 20px; border-radius: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg,#073b3c,#0c958b); color: #fff;
}
.launch-card h3 { margin: 0 0 5px; }
.launch-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.launch-card span { white-space: nowrap; padding: 8px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: 1px; }

.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 30px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); }
.footer-brand div { display: grid; }
.footer-brand strong { font-size: 14px; }
.footer-brand small { color: var(--muted); font-size: 11px; }
.footer-links { display: grid; justify-items: end; gap: 3px; color: #6b7b8c; font-size: 11px; }

.toast {
  position: fixed; z-index: 99; left: 50%; bottom: 28px; transform: translate(-50%,20px);
  padding: 10px 16px; border-radius: 12px; background: #102038; color: #fff;
  opacity: 0; pointer-events: none; transition: .2s ease; font-size: 12px; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .topbar { height: 64px; }
  .topbar-inner { padding: 0 16px; }
  .brand-copy small, .ghost-btn { display: none; }
  .hero-inner { padding: 54px 18px; }
  .hero h1 { font-size: 36px; }
  .layout { padding: 28px 16px 58px; }
  .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid.two, .check-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 23px; }
  .base-url-card { align-items: flex-start; flex-direction: column; }
  .footer-inner, .launch-card { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-items: start; }
}
@media print {
  .topbar, .sidebar, .hero-buttons, .copy-btn, .toast { display: none !important; }
  .hero { min-height: auto; background: #fff; color: #000; }
  .hero h1 span, .hero-copy code { color: #000; }
  .hero-card { border: 1px solid #ddd; color: #000; background: #fff; box-shadow: none; }
  .hero-card pre { color: #000; }
  .layout { display: block; max-width: none; }
  .section { break-inside: avoid; }
}
