/* ═══════════════════════════════════════════════════════════
   食有据 · 官网样式
   色彩体系与小程序 DESIGN_SYSTEM.md v1.0 完全一致，
   禁止引入色板之外的新色值。
   ═══════════════════════════════════════════════════════════ */
:root {
  --deep: #143d31;
  --deep-2: #0f2f26;
  --ink: #24483c;
  --sub: #476b5e;
  --muted: #789189;
  --line: #e0ece7;
  --canvas: #edf6f2;
  --screen: #f7faf8;
  --white: #ffffff;
  --green: #4fbc78;
  --green-deep: #26975d;
  --green-soft: #e3f7e9;
  --lime: #e9f59a;
  --blue: #54acd1;
  --blue-soft: #e2f3fb;
  --orange: #efa642;
  --orange-soft: #fff1d9;
  --shadow-lg: 0 32px 90px rgba(15, 47, 38, .16);
  --shadow-md: 0 14px 40px rgba(15, 47, 38, .10);
  --shadow-sm: 0 8px 22px rgba(15, 47, 38, .08);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: var(--deep); }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
section { position: relative; }

/* ─── 通用文字 ─── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid rgba(38,151,93,.25); border-radius: 999px;
  background: rgba(255,255,255,.7); color: var(--green-deep);
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.h1, .h2 { color: var(--deep); letter-spacing: -.045em; line-height: 1.08; font-weight: 900; }
.h1 { font-size: clamp(40px, 5.6vw, 72px); }
.h2 { font-size: clamp(30px, 3.8vw, 48px); }
.lead { color: #56756b; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.85; }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.sec-head .lead { max-width: 620px; }

/* ─── 品牌 Logo（白底 PNG 只放白色表面：统一白色圆角芯片承载） ─── */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(15,47,38,.08);
}
.logo-chip img { width: 92px; height: auto; }
.logo-name { font-size: 17px; font-weight: 900; color: var(--deep); letter-spacing: .02em; }
.logo-desc { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ─── 导航 ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(237,246,242,.82);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(224,236,231,.9);
  box-shadow: 0 8px 30px rgba(15,47,38,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; gap: 34px; font-size: 14.5px; font-weight: 650; color: var(--sub); }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--deep); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
/* 首页深色 hero 上：未滚动时导航文字翻白，滚动后恢复浅底深字 */
body.dark-hero .nav:not(.scrolled) .logo-name { color: #fff; }
body.dark-hero .nav:not(.scrolled) .logo-desc { color: rgba(255,255,255,.6); }
body.dark-hero .nav:not(.scrolled) .nav-links { color: rgba(255,255,255,.82); }
body.dark-hero .nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,.82); }
body.dark-hero .nav:not(.scrolled) .nav-links a:hover,
body.dark-hero .nav:not(.scrolled) .nav-links a.active { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px; font-weight: 800; letter-spacing: .01em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  min-height: 48px; padding: 0 26px; font-size: 15px;
  color: var(--deep); background: var(--lime);
  box-shadow: 0 10px 24px rgba(142,164,44,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(142,164,44,.36); }
.btn-deep {
  min-height: 48px; padding: 0 26px; font-size: 15px;
  color: #fff; background: var(--deep);
  box-shadow: 0 10px 24px rgba(15,47,38,.25);
}
.btn-deep:hover { transform: translateY(-2px); background: var(--deep-2); }
.btn-ghost {
  min-height: 48px; padding: 0 26px; font-size: 15px;
  color: var(--deep); background: transparent; border: 1.5px solid rgba(20,61,49,.22);
}
.btn-ghost:hover { background: rgba(255,255,255,.7); border-color: rgba(20,61,49,.4); }
.btn-nav { min-height: 42px; padding: 0 22px; font-size: 14px; }

/* ─── Hero（暗化真实照片背景）───
   三层结构：照片层 brightness(.55) 压暗 + 深绿遮罩 + 内容层白字。
   照片源 1920×900（2.13:1），桌面 hero 约 1440×760（1.9:1），
   移动端更窄更高 —— 照片恒比容器更宽，cover 只裁左右，主体不切上下。 */
.hero { padding: 168px 0 96px; overflow: hidden; }
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) brightness(.55) contrast(1.05);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; display: block;
  background:
    radial-gradient(720px 420px at 78% 42%, rgba(79,188,120,.20), transparent 65%),
    linear-gradient(112deg,
      rgba(11, 34, 27, .96) 0%,
      rgba(11, 34, 27, .88) 34%,
      rgba(11, 34, 27, .62) 62%,
      rgba(11, 34, 27, .44) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .h1 { color: #fff; }
.hero-copy .h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero-copy .h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: 6%; height: 14px;
  background: var(--lime); z-index: -1; border-radius: 6px;
}
.hero-copy .lead { color: rgba(255,255,255,.85); }
.hero .kicker { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: var(--lime); }
.hero .kicker::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(233,245,154,.15); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.38); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.hero-meta { display: flex; gap: 28px; margin-top: 10px; color: rgba(255,255,255,.75); font-size: 13.5px; }
.hero-meta b { color: #fff; font-weight: 800; }
.hero-note { color: rgba(255,255,255,.55); font-size: 12.5px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(79,188,120,.28), rgba(79,188,120,0) 65%);
  filter: blur(6px);
}
/* 手机样机 */
.phone {
  position: relative; width: 330px; border: 9px solid var(--deep); border-radius: 44px;
  background: var(--screen); box-shadow: var(--shadow-lg); overflow: hidden;
}
.phone::before { content: ""; position: absolute; z-index: 30; top: 10px; left: 50%; width: 92px; height: 20px; border-radius: 99px; background: var(--deep); transform: translateX(-50%); }
.p-hero { position: relative; padding: 40px 16px 16px; color: #fff; background: var(--green); overflow: hidden; }
.p-hero::after { content: ""; position: absolute; right: -30px; bottom: -58px; width: 150px; height: 150px; border: 18px solid rgba(255,255,255,.12); border-radius: 50%; }
.p-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: rgba(255,255,255,.8); }
.p-title { font-size: 17px; font-weight: 850; margin-top: 2px; }
.p-dates { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 22px; }
.p-date { display: grid; place-items: center; gap: 2px; height: 46px; border-radius: 13px; color: rgba(255,255,255,.8); }
.p-date span:first-child { font-size: 8.5px; font-weight: 700; }
.p-date span:last-child { font-size: 14px; font-weight: 850; }
.p-date.on { color: var(--deep); background: #a8e6b9; box-shadow: 0 6px 14px rgba(24,104,62,.18); }
.p-body { padding: 12px 12px 24px; display: grid; gap: 10px; }
.p-card { border: 1px solid rgba(224,236,231,.9); border-radius: 18px; background: #fff; box-shadow: 0 6px 16px rgba(15,47,38,.06); padding: 12px; }
.p-card-title { font-size: 12px; font-weight: 900; color: var(--deep); letter-spacing: -.02em; }
.p-goal-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; margin-top: 9px; }
.p-goal-name { font-size: 9.5px; color: var(--muted); }
.p-track { height: 5px; border-radius: 99px; background: #edf3f0; overflow: hidden; }
/* .p-fill 与 .p-track 都是 span —— 行内元素的 width / height 不生效，
   不加 display:block 时「蛋白 / 碳水 / 脂肪」的进度条整条不可见
   （空内容的行内盒没有可着色的区域）。 */
.p-fill { display: block; height: 100%; border-radius: 99px; }
.p-fill.c { width: 63%; background: var(--blue); }
.p-fill.p { width: 72%; background: var(--green); }
.p-fill.f { width: 46%; background: var(--orange); }
.p-goal-val { font-size: 9.5px; color: var(--ink); font-weight: 700; }
.p-goal-val em { font-style: normal; color: #9aaca6; }
.p-cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-ring-wrap { display: grid; place-items: center; padding: 6px 0 10px; }
.p-ring { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: conic-gradient(var(--green) 69%, #edf4f0 0); transform: rotate(-40deg); }
.p-ring-in { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #fff; transform: rotate(40deg); }
.p-ring-val { font-size: 19px; font-weight: 900; color: var(--deep); line-height: 1; }
.p-ring-lab { font-size: 8px; color: var(--muted); margin-top: 3px; }
.p-wide { display: flex; align-items: center; gap: 9px; }
.p-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto; }
.p-ic.water { background: var(--blue-soft); color: #2a7c9f; }
.p-ic.meal { background: var(--green-soft); color: #1c5a41; }
.p-ic.ex { background: var(--orange-soft); color: #8a5410; }
.p-wide-t { font-size: 11px; font-weight: 850; color: var(--deep); }
.p-wide-m { font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.p-add { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; background: var(--blue); flex: 0 0 auto; }
.p-add.g { background: var(--green); }
/* 浮动小卡 */
.float-card {
  position: absolute; z-index: 5; display: grid; gap: 3px; padding: 14px 18px;
  border-radius: 18px; background: rgba(255,255,255,.94); border: 1px solid rgba(224,236,231,.9);
  box-shadow: var(--shadow-md); backdrop-filter: blur(8px);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-label { font-size: 11px; color: var(--muted); font-weight: 700; }
.float-card .fc-value { font-size: 21px; font-weight: 900; color: var(--deep); letter-spacing: -.03em; }
.float-card .fc-value small { font-size: 12px; color: var(--green-deep); font-weight: 800; }
.fc-1 { top: 12%; left: -4%; }
.fc-2 { bottom: 16%; right: -2%; animation-delay: 1.6s; }
.fc-badge { top: 45%; right: -6%; animation-delay: 3s; display: flex; align-items: center; gap: 10px; }
.fc-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--lime); color: var(--deep); font-weight: 900; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ─── 数据带 ─── */
.stats-band { padding: 8px 0 84px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(224,236,231,.9); border-radius: var(--radius-xl);
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat { padding: 30px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; color: var(--deep); font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; letter-spacing: -.04em; }
.stat b i { font-style: normal; color: var(--green-deep); }
.stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* ─── Bento 功能区 ─── */
.features { padding: 96px 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.b-card {
  position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius-lg);
  border: 1px solid rgba(224,236,231,.9); background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.b-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.b-3 { grid-column: span 3; }
.b-2 { grid-column: span 2; }
.b-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 23px; margin-bottom: 18px; }
.b-icon.g { background: var(--green-soft); }
.b-icon.l { background: var(--lime); }
.b-icon.b { background: var(--blue-soft); }
.b-icon.o { background: var(--orange-soft); }
.b-title { color: var(--deep); font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.b-copy { margin-top: 8px; color: #56756b; font-size: 14.5px; line-height: 1.75; }
.b-tag { position: absolute; top: 22px; right: 22px; padding: 5px 12px; border-radius: 99px; background: var(--green-soft); color: var(--green-deep); font-size: 11px; font-weight: 800; }

/* 照片缩略图标：替代 emoji 占位图标 */
.b-thumb {
  display: block; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(15,47,38,.16);
}
.b-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── 照片背景卡（三层结构：照片层 / 遮罩层 / 内容层）───
   选图标准：主体明确、明暗对比大；文字沉底，遮罩自上而下加深，
   文字区（底部 40%）遮罩 alpha ≥ .86，白字对比度 ≥ 4.5:1。
   照片源 960×600（1.6:1），卡片在桌面端约 380×250（1.52:1），
   移动端更窄更高 —— 照片恒比卡片更宽，object-fit:cover 只裁左右，不裁上下。 */
.photo-card {
  display: flex; align-items: flex-end; min-height: 252px;
  padding: 0; border-radius: var(--radius-lg);
}
.photo-card__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.72) brightness(.62) contrast(1.06);
}
.photo-card__scrim {
  position: absolute; inset: 0; z-index: 1; display: block;
  background: linear-gradient(180deg,
    rgba(14, 42, 34, .34) 0%,
    rgba(14, 42, 34, .62) 52%,
    rgba(14, 42, 34, .88) 76%,
    rgba(14, 42, 34, .94) 100%);
}
.photo-card__body { position: relative; z-index: 2; padding: 26px 28px 28px; }
.photo-card__title { color: #fff; font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.photo-card__copy { margin-top: 8px; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.72; }
.photo-card__meta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  padding: 6px 12px; border-radius: 99px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.34);
  color: #fff; font-size: 12px; font-weight: 800;
}
.photo-card__meta i { font-style: normal; color: var(--lime); }
.b-visual { margin-top: 22px; border-radius: 16px; background: var(--screen); border: 1px solid var(--line); padding: 16px; }
.bv-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.bv-row:last-child { border-bottom: 0; }
.bv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex: 0 0 auto; }
.bv-dot.o { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.bv-dot.b { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.bv-name { color: var(--ink); font-weight: 700; }
.bv-val { margin-left: auto; color: var(--deep); font-weight: 850; }
.bv-bar { height: 9px; border-radius: 99px; background: #edf3f0; overflow: hidden; margin-top: 12px; }
.bv-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--green-deep)); }

/* ─── 三步闭环 ─── */
.steps { padding: 96px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 34px 30px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid rgba(224,236,231,.9); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; color: rgba(38,151,93,.22); font-size: 54px; font-weight: 900; letter-spacing: -.06em; line-height: 1;
}
.step h3 { margin-top: 12px; color: var(--deep); font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.step p { margin-top: 10px; color: #56756b; font-size: 14.5px; line-height: 1.8; }
.step .step-pill { display: inline-flex; margin-top: 16px; padding: 6px 14px; border-radius: 99px; background: var(--green-soft); color: var(--green-deep); font-size: 12px; font-weight: 800; }

/* ─── 深绿理念区（暗化真实照片背景，同 hero 三层结构）─── */
.dark { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: #fff; padding: 120px 0; overflow: hidden; }
.dark__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) brightness(.6) contrast(1.04);
}
.dark__scrim {
  position: absolute; inset: 0; z-index: 1; display: block;
  background: linear-gradient(100deg,
    rgba(11, 34, 27, .92) 0%,
    rgba(11, 34, 27, .74) 48%,
    rgba(11, 34, 27, .56) 100%);
}
.dark .container { position: relative; z-index: 2; }
.dark .kicker { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--lime); }
.dark .kicker::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(233,245,154,.15); }
.dark-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.dark .h2 { color: #fff; }
.dark .lead { color: rgba(255,255,255,.72); }
.privacy-list { display: grid; gap: 16px; margin-top: 34px; }
.privacy-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.05);
}
.privacy-item i { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(233,245,154,.14); color: var(--lime); font-style: normal; font-weight: 900; }
.privacy-item b { display: block; font-size: 15px; font-weight: 800; }
.privacy-item span { display: block; margin-top: 3px; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.65; }
.privacy-item a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.dark-quote { position: relative; padding: 42px; border-radius: var(--radius-xl); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.dark-quote .mark { color: var(--lime); font-size: 60px; font-weight: 900; line-height: .6; letter-spacing: -.05em; }
.dark-quote p { margin-top: 18px; color: #fff; font-size: clamp(20px, 2vw, 26px); font-weight: 850; line-height: 1.65; letter-spacing: -.02em; }
.dark-quote p em { font-style: normal; color: var(--lime); }
.dark-quote footer { margin-top: 20px; color: rgba(255,255,255,.55); font-size: 13px; }

/* ─── 展示区 ─── */
.showcase { padding: 110px 0 96px; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot {
  padding: 14px; border-radius: 30px; background: var(--white);
  border: 1px solid rgba(224,236,231,.9); box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shot:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.shot-screen { border-radius: 20px; background: var(--screen); overflow: hidden; border: 1px solid var(--line); }
.shot-cap { padding: 16px 8px 8px; text-align: center; }
.shot-cap b { color: var(--deep); font-size: 15px; font-weight: 850; }
.shot-cap span { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.mini-bar { height: 9px; border-radius: 99px; background: #eaf2ee; overflow: hidden; margin: 10px 14px 16px; }
.mini-bar i { display: block; height: 100%; border-radius: 99px; }
.shot-photo {
  display: block; width: 96px; height: 96px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 10px 22px rgba(142,164,44,.24);
}
.shot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── 定价 ─── */
.pricing { padding: 96px 0; }
.price-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 22px; max-width: 900px; margin: 0 auto; align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column;
  padding: 38px 34px; border-radius: var(--radius-xl);
  background: var(--white); border: 1px solid rgba(224,236,231,.9); box-shadow: var(--shadow-sm);
}
.price.hot { border: 2px solid var(--green); box-shadow: var(--shadow-md); }
.price-badge { position: absolute; top: -14px; left: 34px; padding: 6px 14px; border-radius: 99px; background: var(--deep); color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.price h3 { color: var(--deep); font-size: 19px; font-weight: 900; }
.price .amount { margin-top: 14px; color: var(--deep); font-size: 46px; font-weight: 900; letter-spacing: -.04em; }
.price .amount small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
/* 免费卡在套餐切换那条位置给一句说明：解答「要不要选套餐 / 会不会自动续费」 */
.price-subline { margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
/* 两栏等高由 grid 保证，但高度怎么分配得自己定：
   ul 吸收多余高度并让条目顶部对齐 → 说明框与按钮一起贴底。
   否则免费卡会在按钮下方留出一大块空白，看着就是一长一短。 */
.price ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; flex: 1 1 auto; align-content: start; }
.price li { display: flex; gap: 10px; align-items: flex-start; color: var(--sub); font-size: 14px; }
.price li::before { content: "✓"; flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); font-size: 11px; font-weight: 900; }
.price .btn { width: 100%; margin-top: 28px; }
.price-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 13px; }
/* 会员卡内套餐切换 */
.plan-toggle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.plan-chip {
  padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--screen); text-align: center; transition: all .2s var(--ease);
}
.plan-chip b { display: block; font-size: 13px; color: var(--ink); }
.plan-chip span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.plan-chip .plan-badge { display: none; }
.plan-chip.on { border-color: var(--green-deep); background: var(--green-soft); }
.plan-chip.on b { color: var(--deep); }
.member-amount-row { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.member-equal { font-size: 13px; color: var(--muted); font-weight: 700; }
.member-equal em { font-style: normal; color: var(--green-deep); font-weight: 850; }
/* 两栏共用的底部说明框：两侧都有，卡片收口一致，不会一边空一边满 */
.price-note-box { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--screen); border: 1px solid var(--line); color: var(--sub); font-size: 12.5px; line-height: 1.7; }

/* ─── FAQ ─── */
.faq { padding: 40px 0 110px; }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid rgba(224,236,231,.9); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; cursor: pointer; color: var(--deep); font-size: 16px; font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green-deep); font-size: 22px; font-weight: 700; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 26px 24px; color: #56756b; font-size: 14.5px; line-height: 1.85; }

/* ─── 底部 CTA ─── */
.cta {
  padding: 110px 0; text-align: center;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(79,188,120,.16), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, rgba(233,245,154,.22), transparent 60%),
    var(--screen);
}
.cta .h2 { margin-top: 20px; }
.cta .lead { margin: 18px auto 0; max-width: 560px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
/* 小程序码卡片：白底码融入白卡，靠描边 + 软影立住 */
.cta-qr { display: flex; justify-content: center; margin-top: 38px; }
.qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px 22px 16px; border-radius: 24px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.qr-card img { display: block; width: 172px; height: auto; border-radius: 10px; }
.qr-card figcaption { color: var(--sub); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
/* footer 联系栏的小尺寸二维码卡 */
.footer .qr-card { padding: 12px 14px 10px; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.footer .qr-card img { width: 148px; }
.footer .qr-card figcaption { font-size: 11.5px; color: var(--muted); }
.footer-qr { margin-top: 16px; }
/* 联系栏的按钮式链接（外观与 footer 链接一致） */
.footer-link-btn {
  display: block; width: 100%; text-align: left; padding: 6px 0;
  font-size: 13.5px; font-family: inherit; color: inherit;
  background: none; border: 0; cursor: pointer; transition: color .2s;
}
.footer-link-btn:hover { color: var(--lime); }
/* 微信二维码弹窗（点「添加作者」弹出） */
.qr-modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; }
.qr-modal.open { display: grid; }
.qr-modal__mask {
  position: absolute; inset: 0;
  background: rgba(20, 61, 49, .55); backdrop-filter: blur(6px);
}
.qr-modal__panel {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px;
  margin: 24px; padding: 24px 26px 18px; max-width: calc(100vw - 48px);
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: modalPop .34s cubic-bezier(.34, 1.3, .64, 1);
}
@keyframes modalPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qr-modal__close {
  position: absolute; top: 10px; right: 12px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: var(--surface3); color: var(--sub);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.qr-modal__close:hover { background: var(--line); color: var(--deep); }
.qr-modal__panel img { display: block; width: min(260px, 70vw); height: auto; border-radius: 8px; }
.qr-modal__panel figcaption { color: var(--sub); font-size: 13px; font-weight: 800; letter-spacing: .04em; }

/* ─── Footer ─── */
.footer { background: var(--deep-2); color: rgba(255,255,255,.65); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo-chip { box-shadow: none; }
.footer-desc { margin-top: 16px; font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer h4 { color: #fff; font-size: 13.5px; font-weight: 800; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 13.5px; transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--lime); }

/* ─── 条款 / 隐私 文档页 ─── */
.doc { padding: 150px 0 90px; }
.doc-card {
  max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 60px);
  border-radius: var(--radius-xl); background: var(--white);
  border: 1px solid rgba(224,236,231,.9); box-shadow: var(--shadow-sm);
}
.doc-card h1 { color: var(--deep); font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -.03em; }
.doc-meta { margin-top: 10px; color: var(--muted); font-size: 13px; }
.doc-card h2 { margin: 34px 0 12px; color: var(--deep); font-size: 19px; font-weight: 900; letter-spacing: -.01em; }
.doc-card p, .doc-card li { color: #56756b; font-size: 14.5px; line-height: 1.9; }
.doc-card ul, .doc-card ol { padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.doc-card strong { color: var(--ink); }
.doc-toc { margin-top: 22px; padding: 16px 20px; border-radius: 16px; background: var(--screen); border: 1px solid var(--line); }
.doc-toc a { display: inline-block; margin: 3px 14px 3px 0; color: var(--green-deep); font-size: 13px; font-weight: 700; }
.doc-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── 邀请好友（拉新）───
   口径与小程序严格一致（唯一真相源 app/referral.py）：
   每邀 1 位 +3 天；好友注册起 7 天内累计主动打卡满 3 天，再 +15 天。
   ⚠️ 文案纪律：「注册送 3 天」与「14 天内可领」是两个数字，混写成
   「免费试用 14 天」就是虚假宣传（tests/utils/referral_guard.test.js 会拦）。
   ⚠️ 颜色只用本文件顶部色板里的变量，不引入新色值。 */
.invite { padding: 96px 0; }

/* 拉新最大卖点（封顶 365 天）的高亮带：不做成第三张卡，避免与下面两张
   奖励卡抢权重；用整条贯穿的底色把它读成"这一块的总承诺"。 */
.invite-cap {
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 18px; padding: 26px 34px; border-radius: var(--radius-lg);
  background: var(--green-soft); border: 1px solid rgba(38,151,93,.2);
}
.invite-cap-num {
  flex: 0 0 auto; color: var(--green-deep);
  font-size: 60px; font-weight: 900; letter-spacing: -.05em; line-height: 1;
}
.invite-cap-num small { font-size: 18px; font-weight: 800; letter-spacing: 0; }
/* 说明文字是 14px 小字，用 --sub(#476b5e)：--muted 在绿底上偏浅读不清 */
.invite-cap-copy b { display: block; color: var(--deep); font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.invite-cap-copy span { display: block; margin-top: 6px; color: var(--sub); font-size: 14px; line-height: 1.75; }

.invite-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.invite-card {
  position: relative; padding: 34px 32px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid rgba(224,236,231,.9); box-shadow: var(--shadow-sm);
}
.invite-card--hot {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  border-color: transparent; color: #fff;
}
.invite-badge {
  display: inline-flex; padding: 6px 14px; border-radius: 99px;
  background: var(--green-soft); color: var(--green-deep);
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
}
.invite-card--hot .invite-badge { background: rgba(233,245,154,.16); color: var(--lime); }
.invite-days {
  margin-top: 18px; color: var(--green-deep);
  font-size: 56px; font-weight: 900; letter-spacing: -.05em; line-height: 1;
}
.invite-card--hot .invite-days { color: var(--lime); }
.invite-days small { font-size: 18px; font-weight: 800; letter-spacing: 0; }
.invite-card h3 { margin-top: 14px; color: var(--deep); font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.invite-card--hot h3 { color: #fff; }
.invite-card p { margin-top: 10px; color: #56756b; font-size: 14.5px; line-height: 1.8; }
.invite-card--hot p { color: rgba(255,255,255,.78); }
.invite-card--hot p b { color: var(--lime); }

.invite-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.invite-step {
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--screen); border: 1px solid rgba(224,236,231,.9);
}
.invite-step-no {
  display: block; color: rgba(38,151,93,.24);
  font-size: 40px; font-weight: 900; letter-spacing: -.06em; line-height: 1;
}
.invite-step h3 { margin-top: 12px; color: var(--deep); font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.invite-step p { margin-top: 10px; color: #56756b; font-size: 14.5px; line-height: 1.8; }

.invite-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.invite-note {
  padding: 20px 22px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid rgba(224,236,231,.9);
}
.invite-note b { display: block; color: var(--deep); font-size: 14.5px; font-weight: 900; }
.invite-note span { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }

.invite-foot { margin-top: 24px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* ─── 滚动显现 ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── 响应式 ─── */
@media (max-width: 1020px) {
  .hero-grid, .dark-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-top: 10px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-3, .b-2 { grid-column: span 1; }
  .shot-row { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .price-grid { grid-template-columns: 1fr; }
  .invite-grid { grid-template-columns: 1fr; }
  .invite-flow { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .steps-grid, .bento { grid-template-columns: 1fr; }
  .b-3, .b-2 { grid-column: span 1; }
  .float-card { display: none; }
  .hero { padding-top: 128px; }
  .doc { padding-top: 118px; }
  .invite { padding: 72px 0; }
  .invite-notes { grid-template-columns: 1fr; }
  .invite-card, .invite-step { padding: 26px 22px; }
  .invite-days { font-size: 46px; }
  .invite-cap { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; }
  .invite-cap-num { font-size: 48px; }
}
