:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #ecefea;
  --ink: #202321;
  --muted: #626860;
  --line: #d9ddd5;
  --line-dark: #b7bdb2;
  --accent: #d7a316;
  --accent-dark: #9a7410;
  --forest: #2d4a3f;
  --slate: #343935;
  --shadow: 0 18px 50px rgba(30, 35, 31, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 244, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: white;
}

.brand span {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #404640;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
button.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 18px;
  background: var(--slate);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #1f2420;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: #c89410;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--surface-2);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 84px 0 48px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(246,247,244,0) 58%),
    radial-gradient(circle at 84% 10%, rgba(215,163,22,.18), transparent 30%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, .97fr);
  gap: 54px;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: #171a17;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero .lead,
.page-hero .lead {
  margin: 22px 0 0;
  max-width: 700px;
  color: #4d544c;
  font-size: 18px;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.fact {
  border-top: 1px solid var(--line-dark);
  padding-top: 14px;
}

.fact strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
}

.terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfd4cb;
  border-radius: var(--radius);
  background: #202420;
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: #2b302b;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9da49a;
}

.dot:nth-child(1) {
  background: #d76654;
}

.dot:nth-child(2) {
  background: #d8aa31;
}

.dot:nth-child(3) {
  background: #65a36f;
}

.terminal-card pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #dce5d8;
  font: 14px/1.75 Consolas, "SFMono-Regular", Menlo, monospace;
}

.terminal-card code {
  white-space: pre;
}

.terminal-card .cmd {
  color: #f0c95b;
}

.terminal-card .key {
  color: #9ed0a7;
}

.terminal-card .muted {
  color: #9ba69a;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2,
.split h2,
.page-section h2 {
  margin: 0;
  color: #191c19;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

.section-head p,
.split p,
.page-section p {
  margin: 12px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: #f8f4e7;
  color: var(--accent-dark);
}

.icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
}

.scene-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.scene-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  color: #414840;
}

.scene-list b {
  color: var(--ink);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #e8f0e8;
  color: #2d6b38;
  font-weight: 900;
}

.workflow {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.workflow-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.workflow-row:last-child {
  border-bottom: 0;
}

.workflow-row strong {
  color: var(--accent-dark);
}

.workflow-row p {
  margin: 0;
  color: var(--muted);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quote {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 24px;
}

.quote blockquote {
  margin: 0;
  color: #343934;
  font-size: 16px;
}

.quote cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 74px 0 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-section {
  padding: 64px 0;
}

.feature-table,
.download-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-table th,
.feature-table td,
.download-table th,
.download-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.feature-table th,
.download-table th {
  background: #ecefea;
  color: #303630;
  font-size: 14px;
}

.feature-table tr:last-child td,
.download-table tr:last-child td {
  border-bottom: 0;
}

.code-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #202420;
  color: #dce5d8;
  padding: 20px;
  overflow: auto;
}

.code-panel code {
  font: 14px/1.75 Consolas, "SFMono-Regular", Menlo, monospace;
  white-space: pre;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 22px 22px 74px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: #151812;
  font-weight: 900;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
}

.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow);
}

.download-panel h2 {
  margin-top: 0;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  background: #f8f9f6;
  color: #495048;
  font-size: 13px;
  font-weight: 700;
}

.notice {
  border: 1px solid #ead9a3;
  border-radius: var(--radius);
  background: #fff9e8;
  padding: 18px;
  color: #5b4a1e;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.faq-item h2,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.faq-item p {
  margin: 0;
}

.source-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.source-note a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.cta-band {
  padding: 58px 0;
  background: #242923;
  color: #fff;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.cta-band p {
  margin: 10px 0 0;
  color: #cfd8cc;
}

.site-footer {
  padding: 38px 0;
  background: #171a17;
  color: #cfd5cc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.site-footer a {
  color: #999;
}

.site-footer p,
.site-footer li {
  color: #b9c0b6;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 21, 18, .68);
}

.modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 24px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.qr-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.qr-card img {
  width: 168px;
  height: 168px;
  image-rendering: pixelated;
}

.qr-card h3 {
  margin: 12px 0 4px;
  font-size: 18px;
}

.qr-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.modal-foot {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-toggle {
  display: none;
}

@media (max-width: 880px) {
  .nav {
    width: min(100% - 28px, 1180px);
    min-height: 68px;
  }

  .mobile-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font-size: 22px;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 8px;
  }

  .nav-actions .btn {
    display: none;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid,
  .split,
  .grid.three,
  .grid.two,
  .quote-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .workflow-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cta-band .container {
    display: block;
  }

  .cta-band .btn {
    margin-top: 20px;
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }

  .feature-table,
  .download-table {
    display: block;
    overflow-x: auto;
  }
}
