:root {
  --bg: #f4f5ef;
  --paper: #fbfcf7;
  --ink: #1e2b22;
  --muted: #738078;
  --line: #dfe5dc;
  --accent: #5f7750;
  --accent-soft: #eaf0df;
  --code: #223128;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
body {
  margin: 0;
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 10px 16px;
}
.skip-link:focus {
  transform: none;
}
.cli-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 74px;
  border-bottom: 1px solid rgba(223, 229, 220, 0.9);
  background: rgba(244, 245, 239, 0.92);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1180px, calc(100% - 64px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.brand img {
  border-radius: 8px;
}
.cli-header nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.cli-header nav a:hover,
.cli-header nav a.active {
  color: var(--ink);
}
.cli-header nav a.active {
  font-weight: 650;
}
.header-button {
  padding: 10px 17px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
}
.cli-hero {
  background: #1e2b22;
  color: #eef3e7;
  padding: 82px 32px 88px;
}
.hero-inner {
  width: min(980px, 100%);
  margin: auto;
}
.eyebrow,
.section-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #89a47b;
}
.cli-hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  font-weight: 520;
}
.cli-hero h1 span {
  color: #cbdca8;
}
.cli-hero p {
  color: #b8c2b8;
  font-size: 18px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.primary-button,
.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 14px;
}
.primary-button {
  color: #1e2b22;
  background: #dbe7b6;
}
.quiet-button {
  border: 1px solid #7d9277;
  color: #e6efdc;
}
.doc-layout {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 780px);
  gap: 92px;
  padding: 64px 0 100px;
}
.toc {
  position: sticky;
  top: 105px;
  align-self: start;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.toc-label {
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #a2aca1;
}
.toc a {
  padding: 7px 0;
  border-left: 2px solid transparent;
  padding-left: 13px;
}
.toc a:hover,
.toc a.active {
  color: var(--accent);
  border-color: #9db77b;
}
.docs {
  min-width: 0;
}
.doc-section {
  padding: 9px 0 76px;
}
.doc-section + .doc-section {
  border-top: 1px solid var(--line);
  padding-top: 70px;
}
.doc-section h2 {
  margin: 15px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 560;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.steps {
  display: grid;
  gap: 36px;
  margin-top: 40px;
}
.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.step h3,
.info-card h3 {
  margin: 2px 0 9px;
  font-size: 18px;
  font-weight: 650;
}
.step p,
.info-card p,
.doc-note {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}
.code-block {
  position: relative;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--code);
  color: #e7f2df;
}
.code-label {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #91a68c;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.code-block pre {
  margin: 0;
  padding: 17px 18px;
  overflow-x: auto;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.copy-button {
  position: absolute;
  top: 7px;
  right: 8px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #bdd0b5;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}
.copy-button:hover {
  background: rgba(255, 255, 255, 0.17);
}
.tinted {
  margin-inline: -22px;
  padding-inline: 22px;
  border-radius: 10px;
  background: #edf2e8;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.info-card {
  min-height: 185px;
  padding: 20px;
  border: 1px solid #dbe5d5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}
.card-icon {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 21px;
  font-weight: 700;
}
.callout {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid #91aa73;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.callout strong {
  color: var(--ink);
}
code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #e7ede2;
  color: #526b45;
  font:
    0.92em ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.code-block code {
  padding: 0;
  background: none;
  color: inherit;
}
.command-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.command-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.command-name {
  color: var(--accent);
  font:
    13px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-weight: 650;
}
.command-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 9px;
}
.command-row pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #e9eee5;
  color: #314b36;
  overflow-x: auto;
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.plain-steps {
  display: grid;
  gap: 12px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}
.plain-steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #50605a;
  font-size: 14px;
}
.plain-steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dce9cc;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.rule-list {
  display: grid;
  gap: 0;
  margin-top: 34px;
}
.rule-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 17px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rule-list span {
  color: #9bad9b;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.rule-list p {
  color: #53615a;
  font-size: 14px;
  line-height: 1.8;
}
.faq-section details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.faq-section summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.faq-section details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.cli-footer {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
  padding: 30px 0 45px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}
.cli-footer > a:last-child {
  margin-left: auto;
  color: var(--accent);
}
@media (max-width: 800px) {
  .header-inner,
  .doc-layout,
  .cli-footer {
    width: min(100% - 36px, 680px);
  }
  .cli-header {
    height: 64px;
  }
  .cli-header nav {
    gap: 14px;
    font-size: 12px;
  }
  .header-button {
    display: none;
  }
  .cli-hero {
    padding: 58px 18px 64px;
  }
  .cli-hero h1 {
    font-size: 43px;
  }
  .cli-hero p {
    font-size: 15px;
  }
  .doc-layout {
    display: block;
    padding-top: 32px;
  }
  .toc {
    position: relative;
    top: auto;
    display: flex;
    gap: 3px;
    overflow-x: auto;
    margin-bottom: 42px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }
  .toc-label {
    display: none;
  }
  .toc a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 8px 10px;
  }
  .toc a.active {
    border-color: #9db77b;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .command-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tinted {
    margin-inline: -10px;
    padding-inline: 10px;
  }
  .cli-footer {
    flex-wrap: wrap;
  }
  .cli-footer > a:last-child {
    margin-left: 0;
  }
}
