:root {
  --bg: #f2f8f6;
  --paper: rgba(255, 255, 255, 0.72);
  --ink: #132036;
  --muted: #43536a;
  --soft: #758197;
  --line: rgba(30, 49, 74, 0.08);
  --mint: #23d8b2;
  --mint-soft: #dffaf3;
  --terminal: #202b3c;
  --terminal-head: #0f1728;
  --terminal-text: #f3f6fb;
  --shadow: 0 22px 55px rgba(48, 72, 91, 0.12);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(43, 216, 178, 0.14), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(112, 144, 225, 0.13), transparent 29%),
    radial-gradient(circle at 74% 84%, rgba(248, 210, 108, 0.12), transparent 34%),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: radial-gradient(rgba(30, 49, 74, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 72%, transparent 100%);
}

a {
  color: #0bb898;
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
code {
  font: inherit;
}

.doc-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.hero {
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #10a889;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  color: #101b2e;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: 0;
}

.intro {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.steps {
  display: grid;
  gap: 52px;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 18px;
}

.step-marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 3px;
  border: 1px solid rgba(35, 216, 178, 0.68);
  border-radius: 8px;
  color: #05ae91;
  background: rgba(222, 252, 244, 0.86);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.step-content {
  min-width: 0;
}

h2 {
  margin-bottom: 22px;
  color: #121b2f;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  position: relative;
  margin: 28px 0 16px;
  padding-left: 13px;
  color: #172238;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

h3::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: var(--mint);
}

.step p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.step strong {
  color: #172238;
}

ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

li::marker {
  color: #324760;
}

.inline-code {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 1px 9px 2px;
  border: 1px solid rgba(35, 216, 178, 0.55);
  border-radius: 5px;
  color: #04b799;
  background: rgba(227, 255, 248, 0.94);
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 700;
}

.slash {
  margin: 0 5px;
  color: var(--soft);
}

.terminal {
  overflow: hidden;
  margin: 18px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  background: var(--terminal);
  box-shadow: var(--shadow);
}

.terminal-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 45px;
  padding: 0 14px;
  background: var(--terminal-head);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red {
  background: #ff665c;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #2fd34f;
}

.terminal-title {
  justify-self: center;
  color: rgba(235, 240, 250, 0.5);
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.copy-button {
  justify-self: end;
  min-width: 48px;
  min-height: 28px;
  border: 1px solid rgba(228, 236, 248, 0.18);
  border-radius: 7px;
  color: rgba(232, 237, 246, 0.7);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
}

.copy-button:hover {
  color: #ffffff;
  border-color: rgba(35, 216, 178, 0.48);
  background: rgba(35, 216, 178, 0.14);
}

.copy-button.copied {
  color: #88ffe4;
  border-color: rgba(35, 216, 178, 0.55);
}

pre {
  margin: 0;
  padding: 22px 20px;
  overflow-x: auto;
}

pre code {
  color: var(--terminal-text);
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
  white-space: pre;
}

.note {
  padding: 13px 16px;
  border-left: 2px solid var(--mint);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.52);
}

.step.muted {
  padding-bottom: 8px;
}

.resource-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 18px;
}

.resource-panel > div {
  min-height: 82px;
  padding: 15px 16px;
  border: 1px solid rgba(35, 216, 178, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(48, 72, 91, 0.07);
}

.resource-label {
  display: block;
  margin-bottom: 8px;
  color: #05a88c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-panel a {
  display: inline-flex;
  line-height: 1.5;
}

.resource-panel p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}

.action-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 18px;
}

.action-card {
  min-height: 142px;
  padding: 16px;
  border: 1px solid rgba(35, 216, 178, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 30px rgba(48, 72, 91, 0.08);
}

.action-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #079f86;
  background: var(--mint-soft);
  font-size: 12px;
  font-weight: 800;
}

.action-card h3 {
  margin: 0 0 9px;
  padding-left: 0;
  color: #172238;
  font-size: 16px;
}

.action-card h3::before {
  display: none;
}

.action-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

@media (max-width: 720px) {
  .doc-shell {
    width: min(100% - 28px, 920px);
    padding: 36px 0 60px;
  }

  .step {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .terminal {
    border-radius: 10px;
  }

  .terminal-bar {
    min-height: 42px;
    padding: 0 10px;
  }

  pre {
    padding: 18px 16px;
  }

  pre code {
    font-size: 13px;
  }

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

@media (max-width: 440px) {
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-marker {
    margin-top: 0;
  }

  .terminal-bar {
    grid-template-columns: auto 1fr auto;
  }

  .terminal-title {
    justify-self: center;
  }

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

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