/* 宝妈说 · 邻里互助 官网样式
 * 配色：墨绿 #2f3e46（品牌主色，与小程序一致）+ 米白 #f7f6f2 + 暖杏 #f0b27a
 * 零外部依赖：无外部字体/图片/JS 框架，首屏直出，利于 SEO 与速度 */

:root {
  --ink: #2f3e46;
  --ink-2: #54666f;
  --ink-3: #8a9aa3;
  --bg: #f7f6f2;
  --bg-alt: #f0eee7;
  --card: #ffffff;
  --accent: #f0b27a;
  --accent-deep: #d98d4f;
  --green: #2e7d52;
  --green-soft: #e8f5ee;
  --line: #e7e4db;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(47, 62, 70, .08);
}

* { 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", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 800; color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.logo em { font-style: normal; font-weight: 500; font-size: 14px; color: var(--ink-3); }
.logo-badge {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--ink); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
  transition: transform .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ===== Hero ===== */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-kicker {
  display: inline-block; font-size: 13px; letter-spacing: 1px;
  color: var(--green); background: var(--green-soft);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.25; letter-spacing: 1px; font-weight: 800;
}
.hero h1 mark {
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  color: inherit;
}
.hero-sub {
  margin-top: 22px; font-size: 17px; color: var(--ink-2); max-width: 34em;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 12px 26px rgba(47, 62, 70, .25);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  color: var(--ink); border: 1.5px solid var(--line); background: #fff;
}
.btn-ghost:hover { border-color: var(--ink-3); }
.hero-points {
  list-style: none; display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 30px; font-size: 14px; color: var(--ink-3);
}

/* Hero 手机 mockup（纯 CSS） */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: 290px; background: #fff; border-radius: 36px;
  border: 8px solid var(--ink);
  box-shadow: 0 30px 60px rgba(47, 62, 70, .18);
  overflow: hidden; position: relative; z-index: 2;
}
.phone-notch {
  width: 110px; height: 22px; background: var(--ink);
  border-radius: 0 0 14px 14px; margin: 0 auto;
}
.phone-head {
  background: var(--ink); color: #fff; padding: 14px 18px 16px;
}
.ph-title { font-size: 15px; font-weight: 700; display: block; }
.ph-sub { font-size: 12px; opacity: .65; }
.phone-body { background: var(--bg); padding: 12px 12px 18px; }
.ph-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.ph-chips span {
  background: #fff; border-radius: 999px; font-size: 11px;
  padding: 4px 12px; color: var(--ink-2); box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.ph-card {
  background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(47, 62, 70, .06);
}
.ph-card b { font-size: 13px; }
.ph-card p { font-size: 12px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.ph-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 8px; }
.ph-ann { border-left: 3px solid var(--accent); }
.phone-glow {
  position: absolute; inset: auto 0 -40px; height: 220px;
  background: radial-gradient(closest-side, rgba(240, 178, 122, .35), transparent);
  z-index: 1;
}

/* ===== 数据带 ===== */
.stats { padding: 26px 0 10px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: var(--ink); border-radius: var(--radius);
  padding: 30px 36px; box-shadow: var(--shadow);
}
.stats-grid div { text-align: center; color: #fff; }
.stats-grid b { display: block; font-size: 22px; letter-spacing: 1px; }
.stats-grid span { font-size: 13px; opacity: .7; }

/* ===== 通用 section ===== */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.sec-kicker {
  font-size: 13px; letter-spacing: 2px; color: var(--accent-deep);
  font-weight: 700; margin-bottom: 10px;
}
.section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: 1px; }
.sec-sub { color: var(--ink-3); margin-top: 10px; font-size: 16px; }

/* 功能卡片 */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px;
}
.card {
  background: var(--card); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--green-soft); display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.card:nth-child(2) .card-icon { background: #fdf1e3; }
.card:nth-child(3) .card-icon { background: #eef1f7; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--ink-2); }
.card ul { list-style: none; margin-top: 16px; }
.card li {
  font-size: 14px; color: var(--ink-2); padding: 7px 0 7px 22px; position: relative;
  border-top: 1px dashed var(--line);
}
.card li:first-child { border-top: none; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line); position: relative;
}
.step i {
  font-style: normal; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* 信任 */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.trust {
  background: #fff; border-radius: var(--radius); padding: 26px 28px;
  border: 1px solid var(--line);
}
.trust b { font-size: 17px; }
.trust p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.pledge {
  margin-top: 26px; background: var(--green-soft); border-radius: var(--radius);
  padding: 24px 30px; color: var(--green); font-size: 15px; line-height: 1.9;
}

/* 对比表（GEO 内容块） */
.cmp-wrap { margin-top: 40px; overflow-x: auto; }
.cmp {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  font-size: 15px;
}
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; line-height: 1.7; }
.cmp thead th { background: var(--ink); color: #fff; font-size: 15px; }
.cmp thead th:first-child { width: 18%; }
.cmp tbody td { border-top: 1px solid var(--line); color: var(--ink-2); }
.cmp tbody td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cmp tbody td:nth-child(2) { color: var(--ink-3); }
.cmp tbody td:last-child { color: var(--green); background: #f6fbf8; }
@media (max-width: 760px) {
  .cmp thead { display: none; }
  .cmp tbody tr { display: block; border-bottom: 8px solid var(--bg-alt); }
  .cmp tbody td { display: block; border-top: none; padding: 10px 18px; }
  .cmp tbody td:nth-child(2)::before { content: "微信群："; font-weight: 700; color: var(--ink-3); }
  .cmp tbody td:last-child::before { content: "宝妈说："; font-weight: 700; color: var(--green); }
}

/* ===== 文章系统 ===== */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-meta {
  font-size: 12px; letter-spacing: 1px; color: var(--accent-deep); font-weight: 700;
  margin-bottom: 12px;
}
.post-card h3 { font-size: 18px; line-height: 1.5; margin-bottom: 12px; }
.post-card p { font-size: 14px; color: var(--ink-2); flex: 1; }
.post-more { margin-top: 18px; font-size: 14px; color: var(--green); font-weight: 600; }

.art { background: #fff; }
.art-wrap { max-width: 820px; padding-top: 48px; padding-bottom: 64px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.art h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; letter-spacing: .5px; }
.art-meta { font-size: 13.5px; color: var(--ink-3); margin: 16px 0 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.art h2 { font-size: 22px; margin: 38px 0 14px; }
.art h3 { font-size: 17.5px; margin: 26px 0 10px; }
.art p { font-size: 16px; color: var(--ink-2); line-height: 1.95; margin-top: 14px; }
.art ul { margin-top: 14px; padding-left: 22px; }
.art li { font-size: 15.5px; color: var(--ink-2); line-height: 1.9; margin-top: 6px; }
.art-lead { font-size: 17px !important; color: var(--ink) !important; background: var(--bg-alt); border-radius: 14rpx; border-radius: 14px; padding: 20px 24px; margin-top: 24px !important; }
.art-cta {
  margin-top: 40px; background: var(--green-soft); color: var(--green);
  border-radius: 14px; padding: 20px 24px; font-weight: 600;
}
.art-cta a { color: var(--green); }
.art-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.art-nav a {
  font-size: 14.5px; color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px;
}
.art-nav a:hover { color: var(--ink); border-color: var(--ink-3); }

@media (max-width: 900px) {
  .post-list { grid-template-columns: 1fr; }
  .art-wrap { padding-top: 32px; }
}

/* FAQ */
.faq { margin-top: 36px; max-width: 820px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 26px; margin-bottom: 14px;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none;
  position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--ink-3); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

/* 加入 */
.join { background: var(--ink); color: #fff; padding: 90px 0; }
.join-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.join h2 { font-size: clamp(26px, 3.4vw, 38px); }
.join p { margin-top: 16px; color: rgba(255,255,255,.78); font-size: 16px; }
.join-note { font-size: 13.5px !important; opacity: .55; }
.qr-slot { display: flex; justify-content: center; }
.qr-img {
  width: 230px; height: 230px;
  background: #fff; border-radius: 24px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

/* 页脚 */
.footer { background: #232f35; color: rgba(255,255,255,.72); font-size: 14px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px;
  padding: 56px 24px 44px;
}
.footer .logo { color: #fff; }
.footer-desc { margin-top: 14px; font-size: 13.5px; opacity: .65; max-width: 24em; }
.footer-grid b { display: block; color: #fff; margin-bottom: 14px; font-size: 15px; }
.footer-grid a, .footer-grid span { display: block; color: rgba(255,255,255,.62); text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 12.5px; opacity: .6; }
.footer-bar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bar a.icp { color: inherit; text-decoration: none; }
.footer-bar a.icp:hover { color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 44px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: left; }
  .phone-frame { width: 250px; border-width: 6px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 24px; gap: 22px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; text-align: left; }
  .qr-slot { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar .wrap { justify-content: center; text-align: center; }
}
