:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-strong: #111827;
  --ink: #111827;
  --muted: #5f6673;
  --line: #dfe3ea;
  --blue: #1769e0;
  --blue-soft: #eaf2ff;
  --green: #0f9f6e;
  --amber: #c88412;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: #edf1f6;
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: #fff;
}

.section,
.section-band,
.pricing-band,
.checkout-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.section-band {
  margin-top: 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 36px;
  align-items: center;
  padding: 76px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(40px, 4.7vw, 68px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.16;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.hero-lead,
.section-heading p,
.feature-card p,
.summary-desc,
.timeline span,
.matrix-row p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-lead {
  max-width: 690px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fff;
}

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

.button-full {
  width: 100%;
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid #243244;
  border-radius: 8px;
  background: #101720;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #243244;
  color: #9ba7b8;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e45d5d;
}

.terminal-bar span:nth-child(2) {
  background: #e1a941;
}

.terminal-bar span:nth-child(3) {
  background: #38b77a;
}

.terminal-bar strong {
  margin-left: 8px;
  font-size: 13px;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #d9e2ee;
  font-size: 15px;
  line-height: 1.75;
}

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

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

.feature-card,
.checkout-summary,
.checkout-form-panel,
.pricing-band,
.model-matrix {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.04);
}

.feature-card {
  padding: 24px;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 30px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1160px) / 2));
  padding-left: max(24px, calc((100vw - 1160px) / 2));
  background: #eef2f7;
}

.section-split {
  padding-top: 42px;
}

.detail-grid,
.scenario-grid,
.operations-grid {
  display: grid;
  gap: 18px;
}

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

.scenario-grid,
.operations-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.detail-panel,
.scenario-grid article,
.operations-card,
.checkout-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.04);
}

.detail-panel,
.operations-card {
  padding: 24px;
}

.detail-panel ul,
.operations-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.scenario-grid article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
}

.scenario-grid strong {
  font-size: 18px;
}

.scenario-grid span,
.operations-card p,
.checkout-note p {
  color: var(--muted);
  line-height: 1.72;
}

.operations-card p:last-child,
.checkout-note p:last-child {
  margin-bottom: 0;
}

.contact-line {
  font-weight: 800;
}

.model-matrix {
  overflow: hidden;
}

.matrix-head,
.matrix-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr 1.8fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
}

.matrix-head {
  background: #161d28;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.matrix-row {
  border-top: 1px solid var(--line);
}

.matrix-row strong {
  font-size: 17px;
}

.matrix-row p {
  margin-bottom: 0;
}

.rating {
  --value: 0%;
  position: relative;
  display: block;
  width: 112px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf0;
}

.rating::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: var(--green);
  content: "";
}

.rating-4 {
  --value: 80%;
}

.rating-5 {
  --value: 100%;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 150px;
  padding: 22px;
  border-top: 4px solid var(--ink);
  background: #fff;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  margin-bottom: 10px;
  font-size: 19px;
}

.pricing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 72px;
  padding: 30px;
}

.pricing-band p {
  margin-bottom: 0;
  color: var(--muted);
}

.price-box {
  display: flex;
  align-items: center;
  gap: 22px;
}

.price-box strong {
  font-size: 44px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  padding: 48px 0 72px;
}

.checkout-summary,
.checkout-form-panel {
  padding: 28px;
}

.checkout-summary {
  align-self: start;
}

.checkout-note {
  margin-top: 24px;
  padding: 20px;
}

.checkout-note h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.summary-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.summary-list.compact {
  gap: 10px;
  margin-top: 18px;
}

.summary-list.compact div {
  padding-top: 10px;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.checkout-form {
  display: grid;
  gap: 20px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 120px;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}

.pay-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid #f1d69e;
  border-radius: 8px;
  background: #fff7e6;
  color: var(--amber);
  font-weight: 900;
}

.pay-total strong {
  color: var(--ink);
  font-size: 28px;
}

.payment-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.payment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.payment-title h2 {
  margin-bottom: 0;
}

.payment-title strong {
  font-size: 32px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin: 22px 0;
  border: 1px dashed #aeb8c5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    #fff;
  background-size: 18px 18px;
  text-align: center;
}

.qr-placeholder span,
.qr-placeholder strong,
.qr-placeholder small {
  display: block;
}

.qr-placeholder span {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.qr-placeholder strong {
  margin: 8px 0;
  font-size: 38px;
}

.qr-placeholder small {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .hero,
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .timeline,
  .detail-grid,
  .scenario-grid,
  .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section,
  .section-band,
  .pricing-band,
  .checkout-shell {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .feature-grid,
  .timeline,
  .detail-grid,
  .scenario-grid,
  .operations-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .matrix-head {
    display: none;
  }

  .matrix-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .matrix-row::before {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    content: "接入参考";
  }

  .pricing-band,
  .price-box,
  .payment-title {
    align-items: stretch;
    flex-direction: column;
  }

  .price-box .button {
    width: 100%;
  }

  .summary-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
