/* 合菜菜 · 站点样式
   骨架参考常规落地页：吸顶导航 / 大标题 hero / 两栏说明 / 深色引导带 / 页脚
   配色与质感为暖色版本：奶油纸底 + 菜叶绿 + 柿子红 */

:root {
  --page: #f7f2e8;
  --page-deep: #f1e9db;
  --surface: #fffdf8;
  --ink: #221f1a;
  --muted: #6f6659;
  --line: rgba(34, 31, 26, 0.12);
  --line-soft: rgba(34, 31, 26, 0.07);
  --leaf: #24573f;
  --leaf-dark: #17392a;
  --leaf-soft: rgba(36, 87, 63, 0.1);
  --chili: #c9451f;
  --chili-dark: #a8371a;
  --butter: #e8b64c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(74, 52, 26, 0.09);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

a,
button { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1,
h2,
h3 { text-wrap: balance; }

p,
li { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(247, 242, 232, 0.82);
  backdrop-filter: saturate(160%) blur(20px);
}

.nav,
.container,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(36, 87, 63, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(34, 31, 26, 0.72);
  font-size: 14px;
}

.nav-links a { transition: color 0.18s ease; }

.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a[href*="download"] {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--leaf);
  box-shadow: 0 8px 18px rgba(36, 87, 63, 0.22);
  font-weight: 700;
  font-size: 13px;
}

.nav-links a[href*="download"][aria-current="page"] {
  color: #ffffff;
  background: var(--leaf-dark);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 46px;
  background:
    radial-gradient(46% 52% at 18% 6%, rgba(217, 80, 47, 0.1), transparent 70%),
    radial-gradient(44% 50% at 84% 2%, rgba(36, 87, 63, 0.12), transparent 72%),
    linear-gradient(180deg, #fbf7ef 0%, var(--page) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44px;
  width: min(760px, 88vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(36, 87, 63, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(36, 87, 63, 0.03),
    0 0 0 96px rgba(217, 80, 47, 0.025);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 88%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(36, 87, 63, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
}

.hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chili);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(56px, 8.6vw, 104px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 700px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.br-mobile { display: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.button.primary {
  color: #ffffff;
  background: var(--leaf);
  box-shadow: 0 12px 26px rgba(36, 87, 63, 0.24);
  font-weight: 800;
}

.button.secondary {
  color: var(--leaf);
  border-color: rgba(36, 87, 63, 0.26);
  background: rgba(255, 253, 248, 0.66);
}

/* ---------- 通用板块 ---------- */

.section { padding: 78px 0; }

.simple-layout {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 20px;
  align-items: stretch;
}

.info-panel,
.step-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.info-panel {
  position: relative;
  overflow: hidden;
  padding: 38px;
}

.info-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 182, 76, 0.18), transparent 68%);
  pointer-events: none;
}

.info-panel .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--chili);
  box-shadow: 0 10px 22px rgba(217, 80, 47, 0.22);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.info-panel h2,
.download-band h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.info-panel h2 { margin-top: 22px; }

/* 长标题只在指定位置断行，避免把“二维码”“方便”这类词拆开 */
.title-keep { word-break: keep-all; }

.info-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.step-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.step-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  min-height: 96px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fbf7ef;
  transition: background 0.18s ease, transform 0.18s ease;
}

.step-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--leaf);
  background: rgba(232, 182, 76, 0.28);
  font-size: 15px;
  font-weight: 900;
}

.step-row strong {
  display: block;
  font-size: 17px;
  line-height: 1.4;
}

.step-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 深色引导带 ---------- */

.download-band {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  color: #f7f2e8;
  background:
    radial-gradient(60% 120% at 88% 10%, rgba(232, 182, 76, 0.18), transparent 62%),
    radial-gradient(50% 100% at 8% 90%, rgba(217, 80, 47, 0.18), transparent 60%),
    var(--leaf-dark);
}

.download-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247, 242, 232, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}

.download-band .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.download-band p {
  max-width: 600px;
  margin: 16px 0 0;
  color: rgba(247, 242, 232, 0.74);
  font-size: 17px;
}

.download-band .button.primary {
  color: #ffffff;
  background: var(--chili);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
}

/* ---------- 内页 ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 44px;
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(217, 80, 47, 0.1), transparent 70%),
    linear-gradient(180deg, #fbf7ef 0%, var(--page) 100%);
}

.page-hero .eyebrow { color: var(--chili); }

.page-hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
}

.page-hero .lead { margin-top: 18px; }

/* 加微信页：一张名片卡，只留二维码和一句操作说明 */

.wx-page { padding: 26px 0 84px; }

.wx-card {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(74, 52, 26, 0.07);
}

.wx-head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.wx-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(36, 87, 63, 0.18);
}

.wx-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wx-name strong {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.wx-name span {
  color: var(--muted);
  font-size: 12.5px;
}

.wx-qr {
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 20px auto 0;
  border: 1px dashed rgba(34, 31, 26, 0.2);
  border-radius: 14px;
  background: #fbf7ef;
  overflow: hidden;
}

.wx-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wx-hint {
  margin: 18px auto 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner a { color: var(--leaf); font-weight: 700; }

/* ---------- 移动端悬浮主按钮（仅首页） ---------- */

.mobile-cta { display: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .nav,
  .container,
  .footer-inner { width: min(100% - 28px, 1120px); }

  .simple-layout,
  .download-band .container { grid-template-columns: 1fr; }

  .download-band .button { justify-self: start; }

  .footer-inner { flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
  .nav { min-height: 56px; }
  .brand { min-height: 44px; font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; }

  .nav-links { gap: 4px; font-size: 14px; }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
  }
  .nav-links a[href*="download"] {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero { padding: 54px 0 34px; }
  .page-hero { padding: 44px 0 26px; }
  .hero::after { top: 16px; width: 94vw; }
  .hero h1 { font-size: clamp(54px, 19vw, 76px); }
  .page-hero h1 { font-size: clamp(38px, 11.5vw, 54px); }

  .lead { font-size: 16.5px; }
  .br-mobile { display: inline; }

  .actions { gap: 10px; margin-top: 26px; }

  .button {
    min-height: 50px;
    padding: 0 20px;
    font-size: 15.5px;
  }

  .section { padding: 46px 0; }

  .info-panel { padding: 22px; }

  .info-panel .eyebrow {
    min-height: 36px;
    padding: 0 15px;
    font-size: 17px;
  }
  .info-panel h2 { margin-top: 18px; }

  .step-row { padding: 16px 14px; gap: 12px; }
  .step-row strong { font-size: 16px; }

  .download-band { padding: 48px 0; }
  .download-band .button { width: 100%; }

  .wx-card { padding: 20px; }
  .wx-qr { margin-top: 16px; }

  .site-footer { padding: 26px 0; font-size: 12.5px; }
  .footer-inner a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  body.has-mobile-cta { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: block;
    padding: 20px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(
      180deg,
      rgba(247, 242, 232, 0) 0%,
      rgba(247, 242, 232, 0.86) 34%,
      var(--page) 72%
    );
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-cta-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--leaf);
    box-shadow: 0 12px 30px rgba(23, 57, 42, 0.26);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .mobile-cta-btn:active { background: var(--leaf-dark); }

  .mobile-cta.is-hidden {
    opacity: 0;
    transform: translateY(16px);
  }
  .mobile-cta.is-hidden .mobile-cta-btn { pointer-events: none; }
}

@media (hover: hover) {
  .nav-links a:hover { color: var(--ink); }
  .nav-links a[href*="download"]:hover {
    color: #ffffff;
    background: var(--leaf-dark);
  }
  .button:hover { transform: translateY(-1px); }
  .button.primary:hover {
    background: var(--leaf-dark);
    box-shadow: 0 14px 30px rgba(36, 87, 63, 0.28);
  }
  .button.secondary:hover {
    border-color: rgba(36, 87, 63, 0.46);
    background: #fffdf8;
  }
  .step-row:hover {
    background: #fffdf8;
    transform: translateY(-1px);
  }
  .download-band .button.primary:hover { background: var(--chili-dark); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
