:root {
  /* 冷灰 × 靛青：不用绿色 */
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --mist: #e2e8f0;
  --fog: #f1f5f9;
  --sea: #2563eb;
  --sea-deep: #1d4ed8;
  --sea-glow: rgba(37, 99, 235, 0.26);
  --line: rgba(15, 23, 42, 0.1);
  --muted: #64748b;
  --paper: rgba(255, 255, 255, 0.94);
  --ok: #0284c7;
  --danger: #b91c1c;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --nav-h: 76px;
  --nav-inset: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--fog);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 1.75;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.15em;
}

/* ---------- legacy / demo pages (public_demo 共用) ---------- */
body > header:not(.topnav) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
body > header:not(.topnav) nav a {
  margin-left: 16px;
  color: var(--sea-deep);
  font-weight: 600;
  text-decoration: none;
}
body > header:not(.topnav) nav a:hover { text-decoration: underline; }
body > main {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px 64px;
}
body > main h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.panel {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.ok { color: var(--ok); font-size: 1.4rem; font-weight: 700; }
.warn { color: #92400e; font-size: 0.9rem; }
.demo-pay .amount { font-size: 2rem; font-weight: 700; margin: 8px 0; }
.demo-pay .qr {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

/* ---------- floating marketing nav (UptimeRobot-like shell) ---------- */
.topnav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: var(--nav-inset) clamp(12px, 3vw, 24px) 0;
  pointer-events: none;
  background: transparent;
}
.topnav-shell {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
  animation: nav-float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.topnav.is-scrolled .topnav-shell {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 16px 40px rgba(15, 23, 42, 0.12),
    0 4px 14px rgba(37, 99, 235, 0.08);
  transform: translateY(2px);
}
@keyframes nav-float-in {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover {
  color: var(--sea-deep);
  background: rgba(37, 99, 235, 0.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-ghost:hover {
  color: var(--sea-deep);
  border-color: rgba(37, 99, 235, 0.35);
  background: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}
.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--sea);
  color: #fff !important;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px var(--sea-glow);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  background: var(--sea-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px var(--sea-glow);
}
.nav-cta .icon { width: 1em; height: 1em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--sea);
  color: #fff;
  box-shadow: 0 12px 28px var(--sea-glow);
}
.btn-primary:hover { background: var(--sea-deep); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 28px) clamp(16px, 4vw, 40px) 48px;
  background:
    radial-gradient(880px 500px at 84% 10%, rgba(37, 99, 235, 0.18), transparent 58%),
    radial-gradient(640px 420px at 6% 92%, rgba(14, 165, 233, 0.1), transparent 55%),
    linear-gradient(165deg, #dbe7f6 0%, #f1f5f9 46%, #e8eef7 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }
}
.hero-copy { max-width: 560px; }
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  animation: rise 0.7s ease both;
}
.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.hero-brand strong {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
  font-weight: 700;
  animation: rise 0.7s ease 0.08s both;
}
.hero-lead {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
  animation: rise 0.7s ease 0.16s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.7s ease 0.24s both;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  animation: rise 0.85s ease 0.2s both;
}
.scene {
  position: relative;
  height: 100%;
  min-height: 340px;
}
.scene-glow {
  position: absolute;
  inset: 18% 8% 8% 18%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent 70%);
  filter: blur(18px);
  animation: pulse 5.5s ease-in-out infinite;
}
.phone {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(250px, 72%);
  border-radius: 28px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #e2e8f0;
  padding: 18px 16px 22px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.32);
  animation: floaty 6s ease-in-out infinite;
}
.phone-bar {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  margin: 0 auto 16px;
}
.phone-note {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px;
}
.phone-note .kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-bottom: 6px;
}
.phone-note .amt {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: #f8fafc;
}
.phone-note .sub { font-size: 0.82rem; opacity: 0.7; margin-top: 4px; }

.board {
  position: absolute;
  left: 0;
  top: 10%;
  width: min(280px, 78%);
  background: var(--paper);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  animation: floaty 7.5s ease-in-out 0.6s infinite;
}
.board-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.board-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.board-row span:last-child { font-weight: 700; color: var(--sea); }
.pill-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ok);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- sections ---------- */
.section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 72px clamp(16px, 4vw, 40px);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.section-head {
  max-width: 560px;
  margin-bottom: 36px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.features {
  display: grid;
  gap: 28px 32px;
}
@media (min-width: 800px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: start;
}
.feature.is-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.feature.is-reveal.in { opacity: 1; transform: none; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--sea-deep);
}
.feature h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.step.is-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step.is-reveal.in { opacity: 1; transform: none; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #e8f5f1;
  font-family: var(--font-display);
  font-weight: 700;
}
.step h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.12rem;
}
.step p { margin: 0; color: var(--muted); }

.demo-wrap {
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(37, 99, 235, 0.1), transparent 60%),
    linear-gradient(180deg, #e8eef7, #f5f7fb);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.demo-wrap .section { scroll-margin-top: calc(var(--nav-h) + 12px); }
.demo-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}
.demo-form { display: grid; gap: 16px; margin-top: 12px; }
.demo-form .row { display: grid; gap: 8px; }
.demo-form label,
.demo-form .field-label { font-weight: 700; font-size: 0.9rem; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button {
  border: 1px solid var(--line);
  background: #f5f7fb;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
}
.presets button.active {
  background: var(--sea);
  border-color: var(--sea);
  color: #fff;
}
.channel-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 360px;
}
.channel-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.channel-pick .brand-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.channel-pick[data-channel="wechat"].active {
  color: #059669;
  border-color: #07c160;
  background: rgba(7, 193, 96, 0.12);
  box-shadow: 0 0 0 1px rgba(7, 193, 96, 0.28);
}
.channel-pick[data-channel="wechat"].active .brand-icon { color: #07c160; }
.channel-pick[data-channel="alipay"].active {
  color: #1d4ed8;
  border-color: #1677ff;
  background: rgba(22, 119, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.28);
}
.channel-pick[data-channel="alipay"].active .brand-icon { color: #1677ff; }
.channel-pick:not(.active):hover {
  background: #f5f7fb;
}
input[type="number"] {
  width: 100%;
  max-width: 260px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}
.ack {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.ack input { margin-top: 3px; }
.hint { color: var(--ink-soft); font-size: 0.95rem; margin: 10px 0 0; }
.err { color: var(--danger); font-size: 0.9rem; margin: 0; }
.muted { color: var(--muted); }

.faq { display: grid; gap: 10px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-family: var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--sea); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq p {
  margin: 10px 0 4px;
  color: var(--muted);
  max-width: 62ch;
}

.site-footer {
  padding: 40px clamp(16px, 4vw, 40px) 56px;
  border-top: 1px solid var(--line);
  background: #e2e8f0;
}
.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
}
.footer-brand span { color: var(--muted); font-size: 0.88rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--sea-deep); }
.footer-note {
  width: 100%;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-visual,
  .phone,
  .board,
  .scene-glow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .feature.is-reveal,
  .step.is-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-ghost { display: none; }
  .topnav-shell { padding: 8px 10px 8px 12px; border-radius: 14px; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; padding-bottom: 36px; }
  .hero-visual { min-height: 300px; }
  .board { top: 0; }
  .phone { width: min(220px, 68%); }
}
