:root {
  --bg: #f6f3ec;
  --ink: #111827;
  --muted: #667085;
  --line: #ddd7cc;
  --panel: #fffdf8;
  --panel-2: #f0eadf;
  --brand: #176b5b;
  --brand-dark: #0d453b;
  --accent: #d49b38;
  --soft-green: #dff3e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(23, 107, 91, .12), transparent 28%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 48%, #ece6da 100%);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.wrap { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.home-main { padding-bottom: 56px; }
.section { padding: 34px 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 241, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 215, 204, .85);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0a2d28);
  font-size: 13px;
}

.logo em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

nav { display: flex; align-items: center; gap: 8px; }
nav a {
  color: #344054;
  text-decoration: none;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 8px;
}
nav a:hover { background: #efe8dc; color: var(--brand-dark); }

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 42px;
  padding: 48px 0 42px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  color: var(--brand-dark);
  background: var(--soft-green);
  border: 1px solid #b9dec9;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: #475467;
  font-size: 19px;
  line-height: 1.8;
  margin: 18px 0 0;
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand-dark); border: 1px solid #afc6bd; }
.btn-ghost:hover { background: #e8f2ed; }

.product-visual {
  border: 1px solid #cfc7b9;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 28px 60px rgba(17, 24, 39, .2);
  overflow: hidden;
}

.visual-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  color: #d1d5db;
  border-bottom: 1px solid #243041;
}

.visual-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d49b38;
}
.visual-top span:nth-child(2) { background: #78d4ac; }
.visual-top span:nth-child(3) { background: #8aa7ff; }
.visual-top strong { margin-left: auto; font-size: 12px; }

.visual-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  min-height: 300px;
}

.metric, .model-node {
  border: 1px solid #2f3b4c;
  background: #182230;
  color: #eef4ff;
  border-radius: 8px;
  padding: 14px;
}

.metric small { display: block; color: #98a2b3; margin-bottom: 6px; }
.metric b { font-size: 25px; }

.flow-line {
  grid-column: 1 / -1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), #78d4ac, transparent);
  margin: 8px 0;
}

.model-node { text-align: center; font-weight: 800; }
.model-node.primary { background: #dff3e8; color: var(--brand-dark); border-color: #92cbb2; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div { padding: 18px 20px; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { display: block; margin-bottom: 5px; }
.trust-strip span { color: var(--muted); font-size: 13px; }

h1, h2, h3 { letter-spacing: 0; }
h2 { margin: 0 0 16px; font-size: 28px; }

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

.story-card, .flow-card, .card, .tools, .pay-box, .qr-side, .modal-card, .model-matrix {
  background: rgba(255, 253, 248, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(61, 50, 34, .08);
}

.story-card, .flow-card, .card, .tools, .pay-box, .qr-side, .modal-card { padding: 22px; }
.story-card p, .flow-card p, .card p, .pay-box p { color: var(--muted); line-height: 1.75; margin: 0; }
.story-card h3, .flow-card h3, .card h3 { margin: 0 0 10px; }
.story-card strong { color: var(--ink); }

.slogan {
  margin-top: 16px;
  padding: 26px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: linear-gradient(90deg, #dff3e8, #fbf3df);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.model-matrix { overflow: hidden; }
.matrix-row {
  display: grid;
  grid-template-columns: 150px 1fr 80px;
  gap: 14px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, .75);
}
.matrix-row:first-child { border-top: 0; }
.matrix-row.head { background: #ece5d9; font-weight: 800; }
.ok { color: var(--brand); font-weight: 900; }

.vendor-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: #111827;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .14);
}

.vendor-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid #2f3b4c;
  border-radius: 8px;
  color: #f9fafb;
  background: #182230;
}

.vendor-logo img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.vendor-logo span {
  font-size: 14px;
  font-weight: 900;
}

.flow-card span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.products-head {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}
.products-head h1 { font-size: 44px; margin: 0 0 10px; }
.products-head p { color: var(--muted); margin: 0; line-height: 1.7; }
.head-note {
  background: #111827;
  color: #fff;
  border-radius: 8px;
  padding: 18px;
}
.head-note strong { display: block; color: #f7c86b; margin-bottom: 8px; }
.head-note span { color: #d0d5dd; }

.tools { margin-bottom: 16px; }
.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfc7b9;
  border-radius: 8px;
  padding: 11px 13px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.card { position: relative; display: flex; min-height: 330px; flex-direction: column; }
.card.recommended { border-color: #a47d2f; box-shadow: 0 18px 44px rgba(164, 125, 47, .17); }
.recommend-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #533d05;
  background: #f8dc89;
  font-size: 12px;
  font-weight: 900;
}
.price { margin: 14px 0 14px; color: var(--brand-dark); font-size: 36px; font-weight: 900; }
.usage-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #e3dccf;
  border-radius: 8px;
  background: #f7f2e8;
}
.usage-box span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 13px;
}
.usage-box b { color: var(--ink); font-size: 14px; }
.vendor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 64px;
  margin-bottom: 12px;
}
.vendor-list span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--brand-dark);
  background: var(--soft-green);
  font-size: 12px;
  font-weight: 800;
}
.feature-list { list-style: none; padding: 0; margin: 0 0 22px; color: #475467; line-height: 1.9; }
.feature-list li::before { content: "✓"; color: var(--brand); font-weight: 900; margin-right: 8px; }
.card .btn { margin-top: auto; }

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, .55);
}
.modal-card { width: min(460px, 100%); }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.hidden { display: none; }
.error { min-height: 20px; color: #b42318; }

.checkout-page { padding: 34px 0 54px; }
.checkout-title { margin-bottom: 18px; }
.checkout-title h1 { margin: 0 0 8px; font-size: 38px; }
.merchant-line { margin: 0; color: var(--muted); font-weight: 800; }
.checkout-card, .buyer-card, .pay-summary {
  background: rgba(255, 253, 248, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(61, 50, 34, .08);
}
.checkout-card { margin-bottom: 18px; overflow: hidden; }
.merchant-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbf6eb;
}
.merchant-box span { color: var(--brand-dark); font-weight: 900; }
.checkout-table-head, .checkout-product {
  display: grid;
  grid-template-columns: 1.5fr .7fr 130px 140px;
  gap: 16px;
  align-items: center;
}
.checkout-table-head {
  padding: 14px 22px;
  color: #667085;
  background: #f2ecdf;
  font-size: 13px;
  font-weight: 900;
}
.checkout-product { padding: 20px 22px; }
.product-main { display: flex; gap: 14px; align-items: flex-start; }
.product-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #111827);
  font-weight: 900;
}
.product-main strong { display: block; margin-bottom: 8px; font-size: 18px; }
.product-main p { margin: 4px 0; color: var(--muted); line-height: 1.55; }
.quantity-control { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.quantity-control button { width: 34px; height: 34px; border: 0; background: #f8f2e7; color: var(--ink); font-weight: 900; }
.quantity-control span { min-width: 36px; text-align: center; font-weight: 900; }
.product-price { color: #d35400; font-size: 20px; font-weight: 900; text-align: right; }
.buyer-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px;
  margin-bottom: 18px;
}
.buyer-card label { display: block; margin-bottom: 8px; font-weight: 900; }
.textarea { min-height: 84px; resize: vertical; }
.form-tip { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.pay-summary {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: end;
  padding: 22px;
}
.summary-list { max-width: 420px; }
.summary-list p { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); }
.summary-list strong { color: var(--brand-dark); }
.submit-panel { display: grid; gap: 10px; justify-items: stretch; }
.submit-order-btn {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #ff6a00;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
.submit-order-btn:disabled { background: #98a2b3; cursor: default; }
.text-btn { border: 0; background: transparent; color: var(--brand-dark); font-weight: 900; cursor: pointer; }
.status { color: var(--brand); font-weight: 900; }
.qr {
  width: 220px;
  height: 220px;
  margin: 12px auto;
  border: 1px solid #cfc7b9;
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, #111827 10%, transparent 10%),
    linear-gradient(#111827 10%, transparent 10%);
  background-color: #fffdf8;
  background-size: 22px 22px;
}
.hint { text-align: center; color: var(--muted); }

.footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: rgba(251, 248, 241, .78);
}

.footer-grid {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.footer strong { display: block; margin-bottom: 5px; }
.footer p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer p a { color: inherit; text-decoration: none; }
.footer p a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-meta {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.footer-links { display: flex; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--brand-dark); text-decoration: none; font-weight: 800; }
.footer-links a:hover { text-decoration: underline; }

.legal-page { padding: 38px 0 20px; }
.legal-card, .support-card {
  background: rgba(255, 253, 248, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(61, 50, 34, .08);
}

.legal-card {
  padding: 28px;
  max-width: 900px;
}

.legal-card h1 { margin: 0 0 10px; font-size: 42px; }
.legal-card h2 { margin: 28px 0 10px; font-size: 21px; }
.legal-card p { color: #475467; line-height: 1.85; }

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

.support-card { padding: 22px; }
.support-card h2 { margin: 0 0 12px; font-size: 22px; }
.support-card p { color: var(--muted); line-height: 1.75; margin: 8px 0; }

@media (max-width: 980px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  nav { flex-wrap: wrap; }
  nav a { padding-left: 0; }
  .hero, .products-head, .story-grid, .flow-grid, .grid, .pay-shell, .buyer-card, .pay-summary { grid-template-columns: 1fr; }
  .checkout-table-head { display: none; }
  .checkout-product { grid-template-columns: 1fr; }
  .product-price { text-align: left; }
  .support-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 32px; }
  .hero h1 { font-size: 42px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .vendor-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip div:nth-child(2) { border-right: 0; }
  .matrix-row { grid-template-columns: 110px 1fr 58px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .logo { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hero h1 { font-size: 34px; }
  .hero-copy { font-size: 16px; }
  .product-visual { display: none; }
  .trust-strip { grid-template-columns: 1fr; }
  .vendor-panel { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .matrix-row { grid-template-columns: 1fr; }
  .slogan { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; align-items: flex-start; padding: 20px 0; }
  .footer-meta { padding-left: 0; border-left: 0; }
  .footer-links { justify-content: flex-start; }
  .legal-card { padding: 20px; }
}
