:root {
  --green: #2e7d32;
  --green-deep: #2e6b4f;
  --green-soft: #c8e6c9;
  --green-bg: #e8f5e9;
  --orange: #ef6c00;
  --orange-soft: #ffe0b2;
  --red: #e31c23;
  --red-soft: #ffc9c9;
  --text: #171d19;
  --muted: #404942;
  --line: #c0c9c0;
  --bg: #f6fbf4;
  --surface: #ffffff;
  --shadow: 0 18px 48px rgba(23, 29, 25, 0.12);
  --wrap: 1120px;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: var(--green-bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-ghost {
  background: #fff;
  color: var(--green-deep);
  border-color: var(--green-soft);
}

.btn-ghost:hover {
  background: var(--green-bg);
}

.header-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 1;
}

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  color: var(--green);
  font-weight: 650;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 12px;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 28px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.phone {
  width: min(280px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 32px;
  background: #171d19;
  box-shadow: var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 22px;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  max-width: 720px;
  margin: 0 0 28px;
}

.muted {
  color: var(--muted);
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  font-size: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-green { background: var(--green); }
.dot-orange { background: var(--orange); }
.dot-red { background: var(--red); }

.health-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--green-bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-link {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.feature-link:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.band {
  background: var(--green);
  color: #fff;
  border-radius: 24px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.band h2,
.band p {
  color: #fff;
}

.band .btn-primary {
  background: #fff;
  color: var(--green-deep);
}

.band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row.reverse .copy {
  order: 2;
}

.feature-row.reverse .media {
  order: 1;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  min-height: 360px;
}

.download-card .phone {
  margin: 20px auto;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  padding: 8px;
  overflow: hidden;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.placeholder {
  color: var(--orange);
  font-weight: 600;
}

.legal {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 40px 48px;
}

.legal h1 {
  font-size: 32px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 28px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.site-footer {
  margin-top: 24px;
  padding: 36px 0 48px;
  background: #171d19;
  color: #dee4dc;
}

.site-footer a {
  color: #c8e6c9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 4px 0;
  font-size: 14px;
}

.ios-note {
  margin-top: 20px;
  color: var(--muted);
}

@media (max-width: 900px) {
  h1 { font-size: 32px; }
  .hero-grid,
  .feature-row,
  .feature-row.reverse .copy,
  .feature-row.reverse .media,
  .split,
  .metrics,
  .cards,
  .feature-grid,
  .band {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feature-row.reverse .copy,
  .feature-row.reverse .media {
    order: unset;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-cta {
    margin-left: 0;
  }
}
