:root {
  --accent: #3dbe8c;
  --teal: #0f766e;
  --ink: #134e4a;
  --muted: #6b7f76;
  --canvas: #f0fdfa;
  --surface: #ffffff;
  --line: #d7ebe3;
  --gold: #d9a441;
  --danger: #e07a5f;
  --footer-bg: #f3faf7;
  --shadow: 0 10px 30px rgba(15, 118, 110, 0.08);
  --radius: 12px;
  --font: "IBM Plex Sans", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Sarasa Mono SC", monospace;
  --content: 1160px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--accent); }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.wrap {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--teal); }
.brand img, .brand svg {
  width: 32px;
  height: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}
.nav-links a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal);
  background: rgba(61, 190, 140, 0.1);
}
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff !important;
}
.btn-primary:hover { background: #34b07f; }
.btn-secondary {
  background: #fff;
  color: var(--teal) !important;
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent) !important; }
.btn-ghost {
  background: transparent;
  color: var(--teal) !important;
}
.btn-lg { padding: 13px 20px; min-width: 148px; }

main { flex: 1; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 52%;
  width: 520px;
  height: 520px;
  background:
    radial-gradient(circle at 50% 50%, rgba(61, 190, 140, 0.16), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.lead { font-size: 18px; color: var(--ink); margin: 0 0 10px; }
.trust {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 38em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mock-window {
  background: #0f1714;
  color: #e7f2ec;
  border-radius: 14px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(19, 78, 74, 0.12);
  overflow: hidden;
  min-height: 280px;
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #15241e;
  font-size: 13px;
  font-weight: 600;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #3dbe8c; }
.mock-body { display: grid; grid-template-columns: 118px 1fr; min-height: 240px; }
.mock-side {
  padding: 12px 10px;
  background: rgba(12, 22, 18, 0.92);
  color: #9bb5a8;
  font-size: 13px;
}
.mock-side div {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.mock-side .on { background: rgba(61, 190, 140, 0.16); color: #3dbe8c; }
.mock-main { padding: 18px 16px; }
.mock-kicker { color: #9bb5a8; font-size: 12px; margin: 0 0 6px; }
.mock-code {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.mock-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(61, 190, 140, 0.18);
  color: #3dbe8c;
  font-size: 12px;
}
.mock-note {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.section { padding: 80px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.section-desc { color: var(--muted); margin: 0 0 32px; max-width: 42em; }

.cards-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tag-gold {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.16);
  color: #9a7218;
  font-size: 12px;
  font-weight: 600;
}

.dl-grid, .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.dl-card h3 { margin: 0 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.hash {
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
  color: var(--muted);
  background: var(--canvas);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0 0;
}
.warn {
  border: 1px solid rgba(224, 122, 95, 0.35);
  background: rgba(224, 122, 95, 0.08);
  color: #9a4030;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
}
.warn strong { color: var(--danger); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 16px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
.faq details p { margin: 0 0 14px; color: var(--muted); }

.page-hero { padding: 48px 0 12px; }
.page-hero h1 { margin: 0 0 8px; font-size: 36px; }
.prose { max-width: 46em; }
.prose h2 { margin: 32px 0 10px; font-size: 22px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.arch {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
}
.arch pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { font-weight: 700; color: var(--teal); margin: 0 0 4px; }
.footer-tag { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.footer-left nav { display: flex; gap: 16px; }
.footer-left nav a { color: var(--ink); }
.footer-copy { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.beian {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.beian:hover {
  color: #0f766e;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .cards-5 { grid-template-columns: 1fr 1fr; }
  .hero-grid, .dl-grid, .two-col, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 16px;
    margin: 0;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 40px 0 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 56px 0; }
  .cards-5 { grid-template-columns: 1fr; }
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .beian {
    display: block;
    text-align: center;
    padding-top: 8px;
    white-space: normal;
  }
}
