:root {
  color-scheme: light;
  --bg: #f8faf7;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #637064;
  --line: #dce5dd;
  --green: #237a57;
  --green-dark: #14543b;
  --mint: #dcefe5;
  --apricot: #f4b37e;
  --rose: #d98364;
  --shadow: 0 22px 60px rgba(23, 33, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(220, 239, 229, 0.7), rgba(248, 250, 247, 0) 360px),
    var(--bg);
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 6vw, 72px);
  border-bottom: 1px solid rgba(220, 229, 221, 0.75);
  background: rgba(248, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--green-dark);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.76fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 98px) clamp(20px, 6vw, 72px) clamp(44px, 7vw, 88px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.04;
}

h1 span {
  display: inline-block;
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 34px;
}

.download-widget {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(20, 84, 59, 0.22);
}

.primary-button:hover {
  background: #0f432f;
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--green-dark);
}

.version-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.download-popover {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 6;
  width: 196px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(23, 33, 27, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.download-popover::before {
  position: absolute;
  top: -7px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  content: "";
  transform: rotate(45deg);
}

.download-popover img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.download-popover strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  text-align: center;
}

.download-widget:hover .download-popover,
.download-widget:focus-within .download-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.product-panel {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 376px);
  padding: 18px;
  border: 1px solid rgba(220, 229, 221, 0.85);
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff, #f0f6f1);
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 18px;
}

.phone-top img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.phone-top strong,
.phone-top span {
  display: block;
}

.phone-top span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.dose-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.dose-card.active {
  border-color: rgba(35, 122, 87, 0.38);
  background: #edf8f1;
}

.time {
  color: var(--green-dark);
  font-weight: 900;
}

.dose-card strong {
  display: block;
  margin-bottom: 5px;
}

.dose-card p,
.status-line p,
.site-footer {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 6px 4px;
}

.status-line span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose);
}

.feature-band,
.ai-band {
  padding: clamp(48px, 7vw, 86px) clamp(20px, 6vw, 72px);
}

.section-heading {
  max-width: 760px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.features-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.features-grid span {
  display: block;
  margin-bottom: 32px;
  color: var(--rose);
  font-weight: 900;
}

.features-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ai-band {
  background: #fffdf8;
  border-top: 1px solid rgba(220, 229, 221, 0.7);
  border-bottom: 1px solid rgba(220, 229, 221, 0.7);
}

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(300px, 0.9fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 34px;
}

.ai-copy,
.analysis-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.ai-copy {
  padding: 24px;
}

.ai-copy span {
  display: block;
  margin-bottom: 28px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.ai-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.example-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.example-list li {
  padding: 13px 14px;
  border: 1px solid rgba(220, 229, 221, 0.9);
  border-radius: 8px;
  background: #fbfdfb;
}

.example-list strong,
.example-list em {
  display: block;
}

.example-list strong {
  color: var(--ink);
  font-size: 15px;
}

.example-list em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.analysis-panel {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f5f9f4);
  box-shadow: 0 18px 46px rgba(23, 33, 27, 0.09);
}

.analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.analysis-header strong {
  font-size: 18px;
}

.analysis-header span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.analysis-panel dl {
  margin: 0;
}

.analysis-panel div {
  padding: 16px 0;
  border-bottom: 1px solid rgba(220, 229, 221, 0.72);
}

.analysis-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.analysis-panel dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 900;
}

.analysis-panel dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 6vw, 72px) 34px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-panel {
    justify-content: flex-start;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero,
  .feature-band,
  .ai-band {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 16px;
  }

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

  .features-grid article {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (hover: none) {
  .download-popover {
    display: none;
  }
}
