:root {
  --green: #1f9a62;
  --green-deep: #15784c;
  --ink: #1b2430;
  --muted: #5d6a78;
  --line: #e6eaee;
  --paper: #f6f7f8;
  --footer: #10241c;
  --sans: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --nav: 84px;
  --dock: 68px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  font-size: 15px;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}
img {
  display: block;
  max-width: 100%;
}
button,
a {
  font-family: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(27, 36, 48, 0.06),
    0 8px 18px rgba(16, 36, 28, 0.08);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
}
.brand > span {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.nav .brand {
  flex: 0 0 auto;
  gap: 14px;
  min-width: auto;
  align-items: center;
}
.nav .brand img {
  width: 48px;
  height: 48px;
}
.brand-name,
.brand-slogan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  width: max-content;
}
.brand-name strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
}
.brand-rule,
.brand-slogan {
  display: none;
}
.brand-rule {
  width: 1px;
  align-self: center;
  height: 36px;
  background: #d7dee6;
  flex: none;
  margin: 0 4px;
}
.brand-slogan strong {
  font-size: 15px;
  font-weight: 600;
  color: #243040;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
}
.brand-slogan em {
  margin-top: 5px;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: #8b96a3;
  letter-spacing: 0;
}
.nav-links,
.nav-actions {
  display: none;
}
.nav-links {
  gap: 28px;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  display: grid;
  place-content: center;
  gap: 5px;
}
.menu-btn i {
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  display: block;
}
.mobile-menu:not([hidden]) {
  display: grid;
  gap: 8px;
  padding: 8px 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  height: auto;
}
.nav-inner {
  min-height: var(--nav);
}
.mobile-menu a,
.mobile-menu button {
  text-align: left;
  background: var(--paper);
  border: 0;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-deep);
}
.btn-ghost {
  color: var(--ink);
  border-color: #d5dbe2;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.hero {
  padding: 56px 0 40px;
}
.hero-copy {
  max-width: 34em;
}
.hero h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero h1::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 18px;
  background: var(--green);
}
.audience {
  margin-top: 28px;
  padding: 14px 16px 14px 18px;
  border-left: 3px solid var(--green);
  background: #f3faf6;
  color: #3c4a57;
  font-size: 15px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-cta .btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}
.device {
  margin: 36px auto 0;
  width: min(300px, 100%);
}
.device figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.phone {
  background: #111;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(16, 36, 28, 0.12);
}
.wechat-index-img {
  border-radius: 32px;
}
.screen {
  position: relative;
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background: #f4f6f8;
  display: flex;
  flex-direction: column;
}
.mp-status,
.mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 0 12px;
  background: #3dce8c;
}
.mp-status {
  height: 26px;
  font-size: 11px;
  font-weight: 600;
}
.mp-head {
  height: 44px;
  font-size: 12px;
  background: linear-gradient(180deg, #3dce8c, #2bb673);
}
.mp-head strong {
  font-size: 15px;
}
.mp-cap {
  width: 58px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.mp-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
}
.mp-side,
.mp-list {
  overflow: auto;
}
.mp-side {
  background: #fff;
  padding-bottom: 78px;
}
.mp-side button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #66727c;
  font-size: 12px;
  line-height: 1.2;
  padding: 12px 4px;
  cursor: pointer;
  white-space: nowrap;
}
.mp-side button[aria-selected='true'] {
  background: #2bb673;
  color: #fff;
  font-weight: 600;
  border-radius: 0 10px 10px 0;
}
.mp-list {
  padding: 8px 8px 86px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.mp-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}
.mp-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}
.mp-card h3 {
  font-size: 12px;
  font-weight: 600;
}
.mp-card p {
  margin-top: 4px;
  color: #e07a2f;
  font-size: 11px;
  font-weight: 600;
}
.mp-banner {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e7f8f1;
  border-radius: 10px;
  padding: 6px 8px;
}
.mp-banner img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}
.mp-banner span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.mp-banner b {
  font-size: 11px;
}
.mp-banner small {
  color: #6d7c74;
  font-size: 9px;
}
.mp-banner em {
  margin-left: auto;
  font-style: normal;
  background: #2bb673;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  padding: 4px 8px;
  white-space: nowrap;
}
.mp-tab {
  height: 40px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  text-align: center;
  font-size: 10px;
  color: #98a2ab;
}
.mp-tab .on {
  color: #15784c;
  font-weight: 600;
}
.band {
  background: var(--paper);
  padding: 64px 0;
}
.plain {
  padding: 64px 0;
}
.sec {
  text-align: center;
  margin-bottom: 28px;
}
.sec.left {
  text-align: left;
}
.sec h2 {
  font-size: 26px;
}
.sec h2::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green);
  margin: 12px auto 0;
}
.sec.left h2::after {
  margin-left: 0;
}
.sec p {
  margin-top: 12px;
  color: var(--muted);
}

.cards {
  list-style: none;
  display: grid;
  gap: 12px;
}
.cards li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 20px;
}
.cards h3 {
  font-size: 16px;
}
.cards p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.cards small {
  display: block;
  margin-top: 10px;
  color: #8b96a1;
  font-size: 13px;
}

.flow {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.flow li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(16, 36, 28, 0.06);
  padding: 36px 16px 22px;
  text-align: center;
}
.flow li > span {
  position: absolute;
  top: -1px;
  left: 16px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px 6px;
  border-radius: 0 0 8px 8px;
}
.flow svg {
  width: 36px;
  height: 36px;
  margin: 8px auto 12px;
  color: var(--green);
  display: block;
}
.flow strong {
  display: block;
  font-size: 16px;
}
.flow p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.entry {
  display: grid;
  gap: 28px;
}
.open {
  margin-top: 18px;
  padding-left: 1.2em;
  color: var(--ink);
}
.open li {
  margin: 8px 0;
}
.entry-note {
  margin-top: 16px;
  max-width: 36em;
  color: var(--muted);
}
.mp-code {
  margin: 0;
  justify-self: start;
  text-align: center;
}
.mp-code img {
  width: 156px;
  height: 156px;
  margin: 0 auto;
  background: #fff;
}
.mp-code figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
.footer p {
  font-size: 14px;
  margin-top: 8px;
}
.footer a {
  color: #fff;
}
.brand.light {
  color: #fff;
  margin-bottom: 10px;
}
.footer-contact p:first-child {
  margin-top: 0;
  color: #fff;
  font-weight: 600;
}
.footer-code {
  text-align: center;
}
.footer-code img {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  background: #fff;
  padding: 6px;
}
.footer-code p {
  margin-top: 8px;
  font-size: 13px;
}
.copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.dock .btn {
  width: 100%;
}

.sheet {
  width: min(420px, calc(100% - 32px));
  border: 0;
  border-radius: 4px;
  padding: 0;
}
.sheet::backdrop {
  background: rgba(16, 24, 20, 0.45);
}
.sheet form {
  padding: 20px;
}
.sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet h2 {
  font-size: 18px;
}
.icon-x {
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--paper);
  cursor: pointer;
  font-size: 20px;
}
.sheet > form > p {
  color: var(--muted);
  margin: 10px 0 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  padding: 12px 14px;
  margin-bottom: 8px;
  color: inherit;
  text-decoration: none;
}
.row span {
  color: var(--muted);
  font-size: 13px;
}
.row strong {
  margin-left: auto;
}
.text-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--green-deep);
}
.hint {
  min-height: 1.2em;
  font-size: 13px;
  color: var(--green-deep);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
  .menu-btn,
  .mobile-menu,
  .dock {
    display: none !important;
  }
  .nav {
    height: var(--nav);
  }
  .nav-links,
  .nav-actions {
    display: flex;
    align-items: center;
  }
  .nav .brand img {
    width: 54px;
    height: 54px;
  }
  .brand-name strong {
    font-size: 20px;
  }
  .brand-rule {
    display: block;
  }
  .brand-slogan {
    display: flex;
  }
  .nav-actions {
    gap: 8px;
  }
  .hero {
    padding: 96px 0 88px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 72px;
    align-items: center;
  }
  .hero h1 {
    font-size: 46px;
  }
  .device {
    margin: 0;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .entry {
    grid-template-columns: 1fr 200px;
    align-items: center;
    gap: 64px;
  }
  .mp-code {
    justify-self: end;
  }
  .footer-grid {
    grid-template-columns: 1fr 1.5fr auto;
    align-items: center;
  }
  .band,
  .plain {
    padding: 88px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
