:root {
  color-scheme: light;
  --bg: #fbfcf7;
  --surface: #ffffff;
  --surface-soft: #f2f6ec;
  --surface-warm: #fff8ea;
  --text: #182117;
  --muted: #61705f;
  --line: #dfe8d7;
  --brand: #388e3c;
  --brand-strong: #1f6f32;
  --accent: #c26b1d;
  --shadow: 0 22px 50px rgba(42, 66, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.68;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 247, 0.93);
  border-bottom: 1px solid rgba(223, 232, 215, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  letter-spacing: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.nav-links a:hover,
.doc-nav-links a:hover,
.footer-links a:hover,
.doc-body a:hover {
  color: var(--brand);
}

.hero {
  min-height: calc(100svh - 64px);
  padding: 48px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 460px);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 760;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(56, 142, 60, 0.13);
}

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

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

.hero-subtitle {
  margin: 22px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

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

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 760;
  white-space: nowrap;
}

.button.primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.button.secondary {
  background: var(--surface);
  color: var(--brand-strong);
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.phone-stage {
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(340px, 86vw);
  border: 12px solid #172218;
  border-radius: 42px;
  background: #f7f8f2;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-top {
  height: 30px;
  background: #172218;
  position: relative;
}

.phone-top::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #354536;
  transform: translateX(-50%);
}

.app-screen {
  min-height: 540px;
  padding: 18px;
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-titlebar strong {
  font-size: 20px;
}

.avatar-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dcefd7;
  border: 3px solid #86c784;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e0e9d8;
  color: #5d7059;
  font-size: 11px;
  font-weight: 680;
}

.menu-card {
  margin-top: 10px;
  padding: 13px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e9dc;
}

.menu-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #5d7059;
  font-size: 12px;
  font-weight: 720;
}

.dish-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #eef2ea;
}

.dish-row:first-of-type {
  border-top: none;
}

.dish-photo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(56, 142, 60, 0.86), rgba(194, 107, 29, 0.72)),
    var(--surface-soft);
}

.dish-row:nth-child(3) .dish-photo {
  background:
    linear-gradient(135deg, rgba(55, 94, 145, 0.82), rgba(56, 142, 60, 0.66)),
    var(--surface-soft);
}

.dish-row:nth-child(4) .dish-photo {
  background:
    linear-gradient(135deg, rgba(194, 107, 29, 0.84), rgba(130, 105, 55, 0.66)),
    var(--surface-soft);
}

.dish-title {
  height: 9px;
  width: 78%;
  border-radius: 999px;
  background: #dfe8d7;
  margin-bottom: 8px;
}

.dish-meta {
  height: 8px;
  width: 48%;
  border-radius: 999px;
  background: #efd9b9;
}

.tabbar {
  margin-top: 18px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e3e9de;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #788374;
  font-size: 10px;
}

.tab::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #dfe7d9;
}

.tab.active {
  color: var(--brand);
  font-weight: 760;
}

.tab.active::before {
  background: var(--brand);
}

section {
  padding: 72px 0;
  border-top: 1px solid rgba(223, 232, 215, 0.9);
}

.section-head {
  max-width: 730px;
  margin-bottom: 30px;
}

.section-head h2,
.download-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.section-head p,
.download-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.feature {
  min-height: 184px;
  padding: 22px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand-strong);
  font-weight: 900;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.step {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: none;
}

.step-number {
  color: var(--brand);
  font-weight: 850;
  font-size: 13px;
}

.step h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: 8px;
  background: #17351c;
  color: #fff;
}

.download-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.download-actions {
  margin-top: 20px;
}

.download-actions .button {
  color: #17351c;
  background: #fff;
  border-color: #fff;
}

.mini-placeholder {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.qr-box {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #17351c;
  font-weight: 820;
  text-align: center;
  padding: 18px;
}

.mini-placeholder p {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

footer {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.doc-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.doc-nav-inner {
  max-width: 860px;
  min-height: 56px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc-nav-title {
  color: var(--text);
  font-weight: 820;
  white-space: nowrap;
}

.doc-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

body.doc-nav-visible .doc-nav {
  display: block;
}

.doc-body {
  background: #fff;
}

.doc-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.doc-main h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.25;
}

.doc-main h2 {
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 22px;
}

.doc-main h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.doc-main p {
  margin: 10px 0;
}

.doc-main ul,
.doc-main ol {
  padding-left: 1.4em;
}

.doc-main li {
  margin: 4px 0;
}

.doc-main a {
  color: var(--brand);
  font-weight: 650;
}

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

.notice,
.support-card {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  background: #f7f9f4;
  border-radius: 6px;
}

.support-card {
  border-left: none;
  padding: 16px 18px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 34px;
  }

  .phone-stage {
    min-height: auto;
  }

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

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

  .step:nth-child(2) {
    border-right: none;
  }

  .step:nth-child(1),
  .step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .download-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav,
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding: 28px 0 36px;
  }

  h1 {
    font-size: 42px;
  }

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

  .button {
    width: 100%;
  }

  .phone {
    width: min(320px, 92vw);
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step:nth-child(2) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: none;
  }

  .download-panel {
    padding: 22px;
  }

  .doc-nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
