:root {
  color-scheme: light;
  --ink: #13201d;
  --muted: #5c6a66;
  --line: #d9e3df;
  --surface: #ffffff;
  --soft: #f5f8f6;
  --accent: #256c5b;
  --accent-strong: #17493d;
  --gold: #b7771f;
  --code-bg: #101817;
  --code-text: #e8f3ee;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #fbfcfb;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 251, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  width: min(100% - 32px, var(--max));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
}

.topnav a:hover {
  color: var(--accent-strong);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(239, 247, 243, 0.75), rgba(251, 252, 251, 1)),
    radial-gradient(circle at 20% 10%, rgba(183, 119, 31, 0.12), transparent 36%);
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 58px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.button:hover {
  border-color: var(--accent);
}

.visual {
  margin: 0;
}

.visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.layout {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  padding: 42px 0 72px;
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.toc a:hover {
  color: var(--accent-strong);
}

.content {
  min-width: 0;
}

.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section:first-child {
  padding-top: 0;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.section h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.section p,
.section li {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.step {
  min-height: 144px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.code-block {
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #23302d;
  background: var(--code-bg);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  color: #b6c7c0;
  border-bottom: 1px solid #24322f;
  font-size: 13px;
}

.copy {
  min-width: 64px;
  border: 1px solid #3c504a;
  border-radius: 6px;
  padding: 6px 10px;
  color: #e8f3ee;
  background: transparent;
  cursor: pointer;
}

.copy:hover {
  border-color: #7db39f;
}

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

code {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
}

pre code {
  color: var(--code-text);
}

.note {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: #fffaf1;
  color: #5c4a29;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.info h3 {
  margin-top: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.not-found {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-content: center;
}

@media (max-width: 920px) {
  .hero-inner,
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .steps,
  .grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-inner {
    padding-top: 38px;
  }

  h1 {
    font-size: 40px;
  }
}
