:root {
  --brand: #00a83e;
  --brand-dark: #008633;
  --brand-deep: #006b28;
  --brand-light: #e8f7ee;
  --brand-soft: #f5f9f6;
  --brand-mist: #edf7f0;
  --text: #2c3e35;
  --muted: #6b7f74;
  --line: #dce8e0;
  --card: #ffffff;
  --shadow: 0 10px 32px rgba(44, 62, 53, 0.07);
  --amber: #d97706;
  --amber-light: #fff7ed;
  --blue: #1d4ed8;
  --blue-light: #eff6ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  background: var(--brand-soft);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 40;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(0, 168, 62, 0.12), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(0, 168, 62, 0.08), transparent 50%),
    var(--brand-soft);
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245, 249, 246, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a {
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--brand-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  background: none;
}
.btn:focus-visible,
.nav-links a:focus-visible,
.product-link:focus-visible,
.product-card:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 168, 62, 0.22);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.72;
}

.hero { padding: 72px 0 28px; text-align: center; }
.hero-actions { margin-top: 28px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h1 em {
  font-style: normal;
  color: var(--brand-dark);
}
.lead {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
}

section { padding: 56px 0; }
#top, #access, #products, #yunfood, #deliveryfood { scroll-margin-top: 84px; }
.section-kicker {
  color: var(--brand-dark);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 8px;
}
h2 {
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.section-desc { color: var(--muted); max-width: 640px; }

.entry-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.entry-row:hover {
  transform: translateY(-2px);
  border-color: #b7e0c6;
}
.entry-row.is-here {
  border-color: #b7e0c6;
  background: var(--brand-mist);
}
.entry-row.is-note {
  background: #fff;
  box-shadow: none;
}
.entry-row h3 { font-size: 17px; margin: 4px 0 4px; }
.entry-row p { color: var(--muted); font-size: 13px; }
.entry-row code {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-size: 13px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.lead code,
.page-404 .lead code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-size: 0.92em;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #b7e0c6;
}
.product-card.is-soon {
  background: repeating-linear-gradient(-12deg, #fff, #fff 12px, #f7fbf8 12px, #f7fbf8 24px);
  color: var(--muted);
}
.product-card.is-soon:hover { transform: none; border-color: var(--line); }
.product-card img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 10px;
  background: var(--brand-light);
  color: var(--brand-deep);
}
.tag.soon { background: #eef2f0; color: var(--muted); }
.tag.ready { background: #fff4e5; color: #9a3412; }
.product-card h3 { font-size: 20px; margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: 14px; flex: 1; }
.product-card .card-actions { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.pair article {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.pair h3 { font-size: 18px; margin-bottom: 8px; }
.pair p { color: var(--muted); font-size: 14px; }

.product-page {
  border-top: 1px solid var(--line);
  background: #fff;
}
.product-page.is-delivery {
  background: linear-gradient(180deg, #fffdf9 0%, #fff 180px);
}
.product-page .wrap { padding: 8px 0 24px; }
.product-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.scene p { color: var(--muted); margin-bottom: 12px; }
.scene h3 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.preview {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--brand-mist));
  padding: 22px;
  box-shadow: var(--shadow);
}
.preview.is-delivery {
  background: linear-gradient(180deg, #fff, #fff4e8);
}
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.kpi label { display: block; color: var(--muted); font-size: 12px; }
.kpi strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.kpi.up strong { color: var(--brand-dark); }
.kpi.down strong { color: #c47a12; }
.bars { margin-top: 18px; display: grid; gap: 10px; }
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--brand-light);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
}
.bar-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.flow span {
  flex: 1 1 56px;
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.flow span.done {
  background: var(--brand-light);
  color: var(--brand-deep);
  border-color: #b7e0c6;
}
.flow span.now {
  background: #fff4e5;
  color: #9a3412;
  border-color: #fcd34d;
}
.ticket {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.ticket header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.ticket strong { font-size: 15px; }
.ticket small { color: var(--muted); font-size: 12px; }
.ticket ul {
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 6px;
}
.ticket footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.role {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.role b { display: block; margin-bottom: 4px; }
.role p { color: var(--muted); font-size: 13px; }
.role.merchant { background: var(--amber-light); }
.role.rider { background: var(--blue-light); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--brand-soft);
  min-height: 168px;
}
.icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  font-weight: 700;
}
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 13px; }

.steps { display: grid; gap: 12px; margin-top: 20px; }
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.step p { color: var(--muted); font-size: 14px; }
.num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-light);
  color: var(--brand-deep);
  font-weight: 700;
}

.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.module {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--brand-soft);
}
.module ul { color: var(--muted); padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }

.cta {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--brand-mist);
  margin-top: 36px;
}
.cta p { color: var(--muted); margin: 8px auto 20px; max-width: 520px; }
.cta-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

footer.site-foot {
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 404 */
.page-404 main {
  padding:
    calc(48px + env(safe-area-inset-top, 0px))
    0
    calc(40px + env(safe-area-inset-bottom, 0px));
}
.page-404 .wrap { width: min(720px, calc(100% - 40px)); }
.page-404 header.nav { position: static; }
.panel {
  text-align: center;
  padding: 32px 24px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-404 h1 {
  font-size: clamp(26px, 5vw, 34px);
  margin-bottom: 10px;
}
.page-404 .lead {
  font-size: 15px;
  margin: 0 auto 24px;
  max-width: 480px;
}
.scene-404 {
  width: min(320px, 100%);
  margin: 0 auto 22px;
  aspect-ratio: 320 / 200;
}
.scene-404 svg { width: 100%; height: 100%; display: block; overflow: visible; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.products {
  text-align: left;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.product-list { display: grid; gap: 10px; }
.product-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--brand-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-link:hover {
  border-color: #b7e0c6;
  transform: translateY(-1px);
}
.product-link img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}
.product-link strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.product-link span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.product-link .arrow {
  margin-left: auto;
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1;
}
.page-404 footer.site-foot {
  margin-top: 28px;
  padding-top: 20px;
}

.float-card { animation: float-card 3.2s ease-in-out infinite; }
.float-card--2 { animation-delay: 0.6s; }
.float-card--3 { animation-delay: 1.2s; }
.question { animation: pulse 1.8s ease-in-out infinite; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (max-width: 960px) {
  .product-grid, .cards, .scene, .modules, .kpi-row, .pair, .roles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .product-grid, .cards, .scene, .modules, .kpi-row, .pair, .roles { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .nav-inner { flex-wrap: wrap; min-height: 0; padding: 10px 0; }
  .nav-cta { display: none; }
  .nav-links { width: 100%; justify-content: flex-start; font-size: 13px; gap: 6px 14px; }
  .actions { flex-direction: column; }
  .actions .btn, .card-actions .btn { width: 100%; }
  .entry-row { flex-direction: column; align-items: flex-start; }
  .page-404 main { padding-top: 32px; }
  .page-404 .wrap { width: min(720px, calc(100% - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
