:root {
  color-scheme: light;
  --bg: #f6f8ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --text: #142033;
  --muted: #607089;
  --line: rgba(77, 105, 160, 0.18);
  --blue: #2563eb;
  --blue-strong: #1746c7;
  --purple: #7c3aed;
  --cyan: #06b6d4;
  --soft-blue: #eaf1ff;
  --shadow: 0 18px 45px rgba(36, 60, 110, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.72 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.10) 44%, rgba(6, 182, 212, 0.08)),
    linear-gradient(rgba(58, 92, 170, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 92, 170, 0.08) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px min(6vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.nav,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.footer-links a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--blue);
  background: var(--soft-blue);
}

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: min(6vw, 72px);
  align-items: center;
  padding: 72px min(6vw, 76px) 58px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue-strong);
  font-size: 0.92rem;
  font-weight: 820;
  letter-spacing: 0.04em;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.8vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.subtitle {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  color: #273750;
  font-weight: 720;
}

.intro {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.button.secondary {
  color: var(--blue-strong);
  background: rgba(255, 255, 255, 0.74);
}

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

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(242, 246, 255, 0.84)),
    var(--panel-solid);
  box-shadow: var(--shadow);
  padding: 26px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), transparent 48%, rgba(124, 58, 237, 0.12));
}

.panel-title,
.path-list,
.score-card {
  position: relative;
}

.panel-title {
  color: var(--muted);
  font-weight: 780;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.path-list span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 720;
  font-size: 0.95rem;
}

.score-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.score-card strong,
.score-card span {
  display: block;
}

.score-card strong {
  font-size: 1.12rem;
}

.score-card span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
}

.products {
  padding: 24px min(6vw, 76px) 76px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.14;
  letter-spacing: 0;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 342px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(36, 60, 110, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow);
}

.product-card.featured {
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.10), rgba(124, 58, 237, 0.08)),
    var(--panel-solid);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-weight: 820;
}

.product-card h3 {
  margin: 22px 0 12px;
  font-size: 1.32rem;
}

.product-card p {
  flex: 1;
  color: var(--muted);
}

.card-link {
  width: fit-content;
  color: var(--blue-strong);
  background: #fff;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px min(6vw, 76px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.footer strong {
  display: block;
  margin-bottom: 4px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.wechat-page {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 54px min(6vw, 76px) 76px;
}

.wechat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: min(6vw, 68px);
  align-items: center;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: min(5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.86)),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.wechat-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.qr-panel {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(36, 60, 110, 0.10);
}

.qr-panel img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 8px;
}

.qr-panel figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .wechat-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .footer-links {
    justify-content: flex-start;
  }

  .hero,
  .products {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

  .button,
  .card-link {
    width: 100%;
  }
}
