:root {
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --brand-deep: #0369a1;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(2, 132, 199, 0.12);
  --radius: 16px;
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

code {
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

.text-brand {
  color: var(--brand-deep);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9 55%, #2563eb);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-deep);
}

.logo-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 0.35rem;
}

.topnav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topnav a {
  text-decoration: none;
  color: #334155;
  font-size: 0.92rem;
}

.topnav a:hover {
  color: var(--brand-dark);
}

.topbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #38bdf8, var(--brand));
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--brand-deep);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(56, 189, 248, 0.25), transparent 70%),
    radial-gradient(700px 360px at 85% 10%, rgba(99, 102, 241, 0.12), transparent 65%),
    linear-gradient(180deg, #eef8ff 0%, #f8fafc 55%, #fff 100%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.18;
  margin: 0 0 1rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-tags li {
  font-size: 0.82rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.hero-hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-screen {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.screen-header {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: #f1f5f9;
}

.screen-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.screen-body {
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
  min-height: 220px;
  background: linear-gradient(160deg, #f0f9ff, #fff);
}

.screen-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.screen-card strong {
  font-size: 0.95rem;
}

.screen-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

.screen-card.c1 {
  background: #e0f2fe;
}
.screen-card.c2 {
  background: #dbeafe;
}
.screen-card.c3 {
  background: #dcfce7;
}

.screen-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(14, 165, 233, 0.92);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
  cursor: default;
}

.hero-scenarios {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scenarios-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.scenario-chips span {
  font-size: 0.82rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
}

.trust {
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem 0;
}

.trust-inner p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 3.25rem 0;
}

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

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  text-align: center;
}

.section-desc {
  margin: 0 auto 2rem;
  max-width: 40em;
  text-align: center;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card.highlight {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #f0f9ff, #fff);
}

.product-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--brand-dark);
  background: #e0f2fe;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.product-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-link {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.fi-blue {
  background: #3b82f6;
}
.fi-teal {
  background: #14b8a6;
}
.fi-cyan {
  background: #06b6d4;
}
.fi-green {
  background: #22c55e;
}
.fi-indigo {
  background: #6366f1;
}
.fi-sky {
  background: #0ea5e9;
}

.feature-item h4 {
  margin: 0 0 0.25rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.mobile-links {
  display: grid;
  gap: 0.65rem;
}

.mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--white);
}

.mobile-link span {
  color: var(--brand-dark);
  font-size: 0.88rem;
}

.info-panel {
  background: linear-gradient(180deg, #eff6ff, #fff);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1.25rem;
}

.info-panel h3 {
  margin: 0 0 0.75rem;
}

.info-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.panel-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--brand-deep);
}

.wx-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.wx-search {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px dashed #86efac;
  margin: 1rem 0;
}

.wx-search-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.wx-search-name {
  font-size: 1.65rem;
  font-weight: 700;
  color: #059669;
}

.wx-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.wx-qr {
  margin: 0;
  text-align: center;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.wx-qr figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.dl-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: center;
}

.dl-card h3 {
  margin: 0 0 0.35rem;
}

.dl-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.dl-meta {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: #94a3b8;
  word-break: break-all;
}

.float-dock {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.float-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 56px;
  padding: 0.45rem 0.35rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: var(--text);
  font-size: 0.65rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: #0f172a;
  color: #cbd5e1;
  padding: 2rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer strong {
  color: #fff;
}

.footer p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .topnav,
  .topbar-actions {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .topbar-inner.nav-open .topnav,
  .topbar-inner.nav-open .topbar-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .hero-layout,
  .two-col,
  .wx-layout {
    grid-template-columns: 1fr;
  }
  .section-title,
  .section-desc {
    text-align: left;
  }
}
