/* ============ 基础变量 ============ */
:root {
  --wx-green: #07C160;
  --wx-green-dark: #06a050;
  --brand: #07C160;
  --brand-2: #1aad19;
  --ink: #1f2329;
  --ink-2: #4e5969;
  --muted: #86909c;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --line: #eaecef;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(7, 193, 96, 0.10);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.10);
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--wx-green-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============ 导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: all .3s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-size: 20px;
}
.brand-name { font-size: 19px; }
.brand-name small { font-size: 11px; color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ============ Hero ============ */
.hero {
  margin-top: 64px; padding: 90px 0 80px;
  background: linear-gradient(135deg, #0b8a4a 0%, #07C160 55%, #1aad19 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.hero-inner { display: flex; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero-text { flex: 1.2; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.18); font-size: 13px; margin-bottom: 18px;
}
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
.hero-sub { margin: 20px 0 30px; font-size: 17px; opacity: .95; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.stat b { display: block; font-size: 30px; font-weight: 800; }
.stat span { font-size: 13px; opacity: .9; }

/* ============ 通用 section ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.kicker {
  color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 1px;
  text-transform: uppercase;
}
.section-head h2 { font-size: 34px; margin: 10px 0 14px; font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 16px; }

/* ============ 卡片网格 ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; color: #fff; margin-bottom: 16px;
}
.card-icon.wx { background: linear-gradient(135deg, #07C160, #1aad19); }
.card-icon.code { background: linear-gradient(135deg, #2b6cff, #1a4fd6); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }
.check { list-style: none; margin-top: 16px; }
.check li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ============ 分栏（小程序） ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-text h3 { font-size: 28px; margin-bottom: 14px; }
.split-text p { color: var(--ink-2); margin-bottom: 22px; }
.feature-list { display: grid; gap: 14px; }
.feature { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 7px; flex: none; }
.feature b { color: var(--ink); }

/* 手机 mock */
.mock {
  background: #fff; border-radius: 30px; border: 8px solid #1f2329;
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 320px; margin: 0 auto;
}
.mock-bar { display: flex; gap: 6px; padding: 12px; background: #1f2329; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.mock-body { padding: 18px; }
.mock-tag {
  background: var(--brand); color: #fff; text-align: center; padding: 10px;
  border-radius: 10px; font-weight: 700; margin-bottom: 14px;
}
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mock-grid div { background: var(--bg-alt); border-radius: 10px; padding: 12px; text-align: center; }
.mock-grid b { display: block; font-size: 20px; color: var(--ink); }
.mock-grid span { font-size: 12px; color: var(--muted); }
.mock-list { display: grid; gap: 8px; }
.mock-item { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* ============ 一物一码流程 ============ */
.flow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; text-align: center; min-width: 130px;
}
.flow-step b {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: linear-gradient(135deg, #2b6cff, #1a4fd6); color: #fff;
  border-radius: 50%; margin-bottom: 8px; font-size: 16px;
}
.flow-step span { display: block; font-weight: 700; }
.flow-step small { color: var(--muted); font-size: 12px; }
.flow-arrow { color: var(--muted); font-size: 22px; }

/* ============ 优势 ============ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .2s;
}
.mini:hover { transform: translateY(-4px); }
.mini b { font-size: 17px; color: var(--brand); display: block; margin-bottom: 8px; }
.mini p { color: var(--ink-2); font-size: 14px; }

/* ============ 步骤 ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.step-no {
  font-size: 30px; font-weight: 800; color: var(--brand);
  opacity: .25; position: absolute; top: 16px; right: 20px;
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14px; }

/* ============ 联系 ============ */
.section-contact { background: linear-gradient(135deg, #0b8a4a, #07C160); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: 32px; margin-bottom: 14px; }
.contact-info p { opacity: .95; margin-bottom: 22px; }
.contact-meta { list-style: none; display: grid; gap: 12px; }
.contact-meta li { font-size: 15px; }
.contact-form {
  background: #fff; border-radius: var(--radius); padding: 30px; color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: inherit; outline: none;
  transition: border .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.form-tip { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ============ 页脚 ============ */
.footer { background: #14181d; color: #c9cdd4; padding: 50px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.footer .brand-name { color: #fff; }
.footer-desc { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #c9cdd4; font-size: 14px; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid #2a2f36; text-align: center; padding: 18px; font-size: 13px; color: var(--muted); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero h1 { font-size: 34px; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 10px 20px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .hero h1 { font-size: 28px; }
}
