:root {
  color-scheme: light;
  --bg: #f5f9fe;
  --panel: #ffffff;
  --line: rgba(0, 133, 208, 0.16);
  --text: #18304b;
  --muted: #647b94;
  --blue: #0085d0;
  --cyan: #16a6c9;
  --orange: #e98b24;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #ffffff; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 133, 208, 0.11), transparent 34rem),
    radial-gradient(circle at 92% 15%, rgba(22, 166, 201, 0.08), transparent 30rem),
    var(--bg);
}

a { color: #0079be; text-decoration: none; }
a:hover { color: #005f96; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--text); }
.brand:hover { color: var(--text); }
.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(0, 133, 208, 0.22);
}
.brand small, .brand strong { display: block; }
.brand small { color: #67809a; font-size: 10px; letter-spacing: .18em; margin-bottom: 2px; }
.brand strong { font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.button, .copy-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
}
.button { padding: 10px 15px; }
.button:hover, .copy-button:hover { border-color: rgba(0,133,208,.55); background: rgba(0,133,208,.06); }
.health { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.health i { width: 8px; height: 8px; border-radius: 50%; background: #8da0b2; }
.health-ready i { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.health-waiting i { background: var(--orange); box-shadow: 0 0 12px rgba(255,184,107,.55); }
.health-error i { background: #dc4e5d; }

.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 70px;
  padding: 66px 0 54px;
}
.eyebrow { margin: 0 0 12px; color: #0085d0; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.08; letter-spacing: -.045em; }
.lead { max-width: 680px; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.lead code { color: #006ca9; font-size: .9em; }
.origin-card {
  padding: 24px;
  border: 1px solid rgba(0,133,208,.2);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f1f8fd);
  box-shadow: 0 20px 55px rgba(32, 86, 123, .12);
}
.origin-card > span { color: var(--muted); font-size: 12px; }
.origin-card > code { display: block; overflow-wrap: anywhere; margin: 14px 0 21px; color: var(--blue); font-size: 15px; }
.origin-card > div { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 17px; border-top: 1px solid var(--line); color: #607993; font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article, .panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(35, 83, 116, .09);
}
.steps article { padding: 25px; }
.steps article > span { color: var(--blue); font: 700 12px/1 monospace; }
.steps h2 { margin: 15px 0 9px; font-size: 18px; }
.steps p, .hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px; margin-top: 16px; }
.panel { min-width: 0; padding: 25px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 21px; }
.copy-button { padding: 7px 12px; font-size: 12px; }
pre { margin: 0; padding: 19px; overflow-x: auto; border: 1px solid #dbeaf4; border-radius: 12px; color: #24445f; background: #f4f8fc; line-height: 1.65; }
.hint { margin-top: 16px; }
.endpoint { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 7px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.endpoint:last-child { border-bottom: 0; }
.endpoint b { color: var(--cyan); font: 700 11px/1.5 monospace; }
.endpoint b.post { color: var(--orange); }
.endpoint code { overflow-wrap: anywhere; color: #274d69; font-size: 12px; }
.endpoint span { grid-column: 2; color: var(--muted); font-size: 12px; }
.endpoint.admin b { color: var(--blue); }
.query-panel { margin-top: 16px; }
.security-note { display: flex; gap: 18px; margin: 16px 0 0; padding: 18px 22px; border: 1px solid rgba(255,184,107,.2); border-radius: 14px; color: var(--muted); background: rgba(255,184,107,.05); font-size: 13px; line-height: 1.6; }
.security-note strong { flex: 0 0 auto; color: var(--orange); }
footer { display: flex; gap: 20px; padding: 28px 0 36px; color: #71879c; font-size: 12px; }
footer span { margin-right: auto; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 35px; }
  .steps, .content-grid { grid-template-columns: 1fr; }
  .health { display: none; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .brand small { display: none; }
  .brand strong { font-size: 14px; }
  .button { padding: 9px 11px; font-size: 12px; }
  .hero { min-height: auto; padding: 48px 0 38px; }
  h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .panel, .steps article { padding: 20px; }
  .security-note { display: block; }
  .security-note strong { display: block; margin-bottom: 6px; }
}
