/* ===== 基础变量与重置 ===== */
:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-deep: #14532d;
  --orange: #f97316;
  --orange-light: #fff7ed;
  --bg: #f7faf5;
  --bg-tint: #eef7ee;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-mute: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 83, 45, 0.08);
  --shadow-hover: 0 18px 40px rgba(20, 83, 45, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ===== 通用按钮 ===== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(22,163,74,.3); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(249,115,22,.35); }
.btn-accent:hover { background: #ea670c; }

/* ===== 顶部导航 ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; }
.logo-icon { font-size: 26px; }
.logo-text em { font-style: normal; color: var(--green); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 15px; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--green); transition: width .25s;
}
.nav-links a:hover { color: var(--green-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== 首屏 Hero ===== */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(22,163,74,.14), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(249,115,22,.10), transparent 60%),
    var(--bg);
  padding: 70px 0 80px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--orange-light); color: var(--orange);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.text-gradient {
  background: linear-gradient(90deg, var(--green), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { margin: 22px 0 30px; color: var(--ink-soft); font-size: 17px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; margin-top: 26px; color: var(--ink-mute); font-size: 14px; flex-wrap: wrap; }

/* 货柜插画 */
.hero-visual { position: relative; }
.locker {
  background: linear-gradient(160deg, #ffffff, #f0f8f1);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-hover);
}
.locker-top { display: flex; align-items: center; gap: 7px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; }
.dot:first-child { background: #f87171; } .dot:nth-child(2) { background: #fbbf24; } .dot:nth-child(3) { background: #34d399; }
.locker-title { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--green-dark); }
.locker-screen {
  margin: 14px 0; text-align: center; padding: 12px;
  background: var(--green-deep); color: #bbf7d0;
  border-radius: 10px; font-size: 14px; letter-spacing: 1px; font-weight: 600;
}
.locker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cell {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  font-size: 30px; transition: transform .2s, box-shadow .2s;
}
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cell small { font-size: 11px; color: var(--ink-mute); }
.locker-foot {
  display: flex; justify-content: space-between; margin-top: 14px;
  font-size: 12.5px; color: var(--ink-mute);
}
.float-tag {
  position: absolute; background: #fff; border-radius: 12px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow); animation: floaty 3.2s ease-in-out infinite;
}
.tag-1 { top: 8%; left: -26px; color: var(--green-dark); }
.tag-2 { bottom: 6%; right: -18px; color: var(--orange); animation-delay: 1.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== 数据条 ===== */
.stats { background: var(--green-deep); padding: 42px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 38px; font-weight: 800; color: #fff; }
.stat span { color: #bbf7d0; font-size: 14px; }

/* ===== 区块通用 ===== */
.section { padding: 84px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 800;
  letter-spacing: 3px; color: var(--green); margin-bottom: 12px;
}
.eyebrow.light { color: #fbbf24; }
.section-head h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 800; }
.section-head p { color: var(--ink-mute); margin-top: 12px; }
.card-grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 优势卡 */
.feature-card, .scene-card {
  background: #fff; border-radius: var(--radius); padding: 30px 24px;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover, .scene-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon, .scene-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3, .scene-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p, .scene-card p { font-size: 14px; color: var(--ink-mute); }

/* 水果商品卡 */
.fruit-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.fruit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.fruit-img {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.bg-1 { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.bg-2 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.bg-3 { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
.bg-4 { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.bg-5 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.bg-6 { background: linear-gradient(135deg, #fef9c3, #fde68a); }
.bg-7 { background: linear-gradient(135deg, #ccfbf1, #99f6e4); }
.bg-8 { background: linear-gradient(135deg, #ffe4e6, #fbcfe8); }
.fruit-body { padding: 18px; }
.fruit-body h3 { font-size: 16.5px; }
.spec { font-size: 12.5px; color: var(--ink-mute); margin: 6px 0 14px; min-height: 38px; }
.fruit-foot { display: flex; align-items: center; justify-content: space-between; }
.price { color: #dc2626; font-size: 22px; font-weight: 800; }
.price em { font-style: normal; font-size: 13px; margin-right: 1px; }
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag-hot { background: #fee2e2; color: #dc2626; }
.tag-new { background: #dcfce7; color: #15803d; }
.tag-sale { background: #ffedd5; color: #ea580c; }
.grid-note { text-align: center; color: var(--ink-mute); font-size: 13px; margin-top: 30px; }

/* 购物流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 36px 24px 28px; text-align: center;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.step-no {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(22,163,74,.35);
}
.step-icon { font-size: 42px; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-mute); }

/* 加盟区 */
.join { background: linear-gradient(135deg, var(--green-dark), var(--green-deep)); padding: 88px 0; color: #fff; }
.join-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.join h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 14px 0 18px; line-height: 1.35; }
.join-copy > p { color: #d1fae5; }
.join-points { margin: 26px 0 32px; display: grid; gap: 12px; font-weight: 600; }
.qrcode-card {
  background: #fff; border-radius: 20px; padding: 30px 26px;
  text-align: center; color: var(--ink);
  box-shadow: 0 24px 50px rgba(0,0,0,.25);
}
.qrcode-img {
  display: block;
  width: 168px; height: 168px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 18px;
}
.qr-title { font-weight: 800; font-size: 16px; }

/* 页脚 */
.footer { background: #0f2e1d; color: #cbd5e1; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.footer-brand p { color: #94a3b8; font-size: 13.5px; margin-top: 14px; }
.footer .logo { color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: #94a3b8; margin-bottom: 10px; }
.footer-col a:hover { color: #86efac; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; font-size: 12.5px; color: #64748b; text-align: center;
}

/* ===== 滚动入场动画 ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .join-inner { grid-template-columns: 1fr; gap: 44px; }
  .qrcode-card { max-width: 340px; margin: 0 auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { height: 64px; gap: 12px; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 6%;
    transform: translateY(-130%); transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid #f3f4f6; width: 100%; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-cta { display: none; }
  .hero { padding: 48px 0 60px; }
  .br-pc { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .stat strong { font-size: 30px; }
  .section { padding: 60px 0; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .float-tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-points { gap: 12px; }
}
