/* 豆匠拼豆图纸 · 官网样式：纯静态，不依赖任何外部字体/脚本/图片库 */
:root {
  --teal: #2b6e5e;
  --teal-dark: #1f5145;
  --teal-tint: #e4f0ec;
  --coral: #e85d4c;
  --ink: #1c1c1c;
  --sub: #6b6b64;
  --line: #e4e4dc;
  --bg: #fafaf8;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(28, 28, 28, 0.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 0.5px; }
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 16px; border-radius: 999px; color: var(--sub); font-size: 15px; font-weight: 600;
}
.nav a:hover { color: var(--teal-dark); background: var(--teal-tint); text-decoration: none; }
.nav a.active { color: #fff; background: var(--teal); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #327a68 0%, var(--teal) 45%, var(--teal-dark) 100%);
}
.hero::before { /* 豆子点阵底纹 */
  content: ""; position: absolute; right: -60px; top: -40px; width: 620px; height: 420px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 7px, transparent 8px);
  background-size: 44px 44px; opacity: 0.8;
  -webkit-mask-image: linear-gradient(225deg, #000 20%, transparent 75%);
  mask-image: linear-gradient(225deg, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 84px 0 96px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(32px, 5vw, 50px); line-height: 1.25; letter-spacing: 1px; }
.hero p { margin: 0 0 28px; font-size: 18px; color: rgba(255, 255, 255, 0.86); max-width: 560px; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: #fff; color: var(--teal-dark); border: 2px solid #fff;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); margin-left: 12px; }
.btn.solid { background: var(--teal); color: #fff; border-color: var(--teal); }

/* 首屏右侧：用 CSS 拼出的"拼豆板 + 爱心" */
.hero-art { display: flex; justify-content: center; }
.board {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; padding: 22px;
  width: min(360px, 100%); aspect-ratio: 1; background: rgba(255, 255, 255, 0.12); border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.25);
}
.board i { border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.board i.r { background: var(--coral); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.board i.y { background: #ffc857; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }

/* ---------- 通用区块 ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { margin: 0 0 10px; font-size: 32px; }
.section-head p { margin: 0 auto; max-width: 640px; color: var(--sub); font-size: 17px; }
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h3 { margin: 14px 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--sub); }
.ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-dark); font-size: 26px; font-weight: 700;
}
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* 步骤 */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: var(--bg); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--sub); font-size: 15px; }

/* ---------- 内页 ---------- */
.page-hero { background: var(--teal-tint); padding: 54px 0; border-bottom: 1px solid var(--teal-tint-border, #c6e1d9); }
.page-hero h1 { margin: 0 0 8px; font-size: 36px; }
.page-hero p { margin: 0; color: var(--sub); font-size: 17px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 40px 0 10px; font-size: 24px; }
.prose h3 { margin: 26px 0 6px; font-size: 19px; }
.prose p, .prose li { color: #3b3b36; font-size: 16px; }
.prose ul { padding-left: 22px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.kv dt { color: var(--sub); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }
.qr { width: 180px; height: 180px; border-radius: 16px; border: 1px solid var(--line); background: #fff; padding: 8px; }

/* ---------- 页尾 ---------- */
.site-footer { background: #1e2a27; color: #c9d6d1; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 36px; padding: 52px 0 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.footer-brand img { border-radius: 8px; }
.footer-about { margin: 0; font-size: 14px; color: #a9bab4; }
.footer-col h4 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.footer-col a, .footer-col p { display: block; margin: 0 0 6px; color: #a9bab4; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: 13px; color: #8fa39c; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer-bottom a { color: #8fa39c; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 32px; }
  .hero-art { order: -1; }
  .board { width: 240px; padding: 14px; gap: 4px; border-radius: 20px; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
  .nav-burger { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
  }
  .nav-burger span::before { position: absolute; top: -6px; }
  .nav-burger span::after { position: absolute; top: 6px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 14px; display: none;
  }
  .nav a { border-radius: 12px; padding: 12px 14px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .btn.ghost { margin: 12px 0 0; }
  .kv { grid-template-columns: 1fr; gap: 4px 0; }
  .kv dt { margin-top: 10px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
