:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-warm: #fff8e9;
  --ink: #1f2328;
  --ink-2: #3d444d;
  --muted: #68717d;
  --line: #e6e8eb;
  --accent: #f5a524;
  --accent-2: #ffd166;
  --accent-dark: #b86100;
  --green: #16845f;
  --red: #bf3434;
  --shadow: 0 18px 48px rgba(31, 35, 40, .10);
  --radius: 8px;
  --container: 1180px;
}

* {
  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.65;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.nav-wrap,
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 205px;
}

.brand img {
  width: 42px;
  height: 42px;
}

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

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

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

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #17191c;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(245, 165, 36, .24);
}

.button:hover {
  background: #f0b13d;
  transform: translateY(-1px);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.section {
  padding: 86px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section.warm {
  background: linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.lead {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 233, .92), rgba(255, 255, 255, .7) 42%, rgba(255, 255, 255, 1) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 62px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.source-line a {
  color: var(--accent-dark);
  font-weight: 700;
}

.hero-panel {
  align-self: end;
  border: 1px solid #e0d4bb;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  color: var(--muted);
  font-size: 12px;
}

.dot-row {
  display: flex;
  gap: 6px;
}

.dot-row i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d9dde3;
}

.dot-row i:nth-child(1) {
  background: #f87171;
}

.dot-row i:nth-child(2) {
  background: #fbbf24;
}

.dot-row i:nth-child(3) {
  background: #34d399;
}

.app-preview {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 420px;
}

.tree-pane {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: #fbfbfc;
}

.tree-title,
.preview-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 7px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
}

.tree-item.active {
  background: var(--bg-warm);
  color: var(--accent-dark);
  font-weight: 800;
}

.tree-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.resource-pane {
  padding: 20px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(46px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.app-icon {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(245, 165, 36, .22), rgba(255, 255, 255, .9)),
    #fff;
  display: grid;
  place-items: center;
}

.app-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-dark);
}

.code-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1f2328;
  color: #ffdda0;
  font: 13px/1.7 Consolas, "SFMono-Regular", monospace;
  overflow: hidden;
}

.code-box span {
  display: block;
  color: #d6dee8;
}

.next-strip {
  margin-top: 42px;
  padding: 20px 0;
  border-top: 1px solid rgba(31, 35, 40, .08);
}

.scenario-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.scenario-tile,
.card,
.review-card,
.download-card,
.faq-item,
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scenario-tile {
  min-height: 168px;
  padding: 24px;
  border: 0;
}

.scenario-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.scenario-tile p,
.card p,
.review-card p,
.download-card p,
.faq-item p,
.step-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon-badge {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--bg-warm);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

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

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

.card,
.review-card,
.step-card,
.download-card,
.faq-item {
  padding: 24px;
}

.card:hover,
.download-card:hover {
  border-color: #f1c56d;
  box-shadow: 0 12px 30px rgba(31, 35, 40, .08);
}

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.quote {
  color: var(--ink-2);
  font-size: 16px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #17191c;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

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

.feature-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-row svg {
  width: 22px;
  height: 22px;
  color: var(--accent-dark);
}

.format-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.format-table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
}

.format-table tr:last-child td {
  border-bottom: 0;
}

.page-hero {
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-warm), #fff);
}

.page-hero .lead {
  margin-bottom: 0;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--accent-dark);
  font-weight: 700;
}

.download-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #f0d08b;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--bg-warm);
  color: var(--ink-2);
}

.guide-steps {
  counter-reset: guide;
  display: grid;
  gap: 18px;
}

.step-card {
  position: relative;
  padding-left: 76px;
}

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

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

.faq-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-item h3::before {
  content: "Q";
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.cta-band {
  padding: 46px;
  border: 1px solid #edcf91;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-warm), #fff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: #1f2328;
  color: #dbe1e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
}

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

.footer-list {
  display: grid;
  gap: 8px;
  color: #b6c0cb;
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31, 35, 40, .58);
}

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

.download-modal {
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

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

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

.close-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

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

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

.qr-card img {
  width: min(100%, 180px);
  margin: 0 auto 14px;
  border: 1px solid var(--line);
}

.qr-card strong {
  display: block;
  font-size: 18px;
}

.qr-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

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

.modal-foot a {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-wrap {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

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

  .nav-links a {
    padding: 12px;
  }

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

  .hero-copy {
    padding-bottom: 0;
  }

  .scenario-strip,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-wrap,
  .container {
    width: min(100% - 28px, var(--container));
  }

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

  .section {
    padding: 62px 0;
  }

  .hero {
    padding-top: 46px;
  }

  .app-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tree-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-strip,
  .grid-3,
  .grid-2,
  .qr-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-band {
    padding: 28px;
    display: block;
  }

  .cta-band .button {
    margin-top: 18px;
  }

  .step-card {
    padding-left: 24px;
    padding-top: 74px;
  }

  .brand {
    min-width: 0;
  }
}
