/* ============================================
   友帮帮陪诊 - 品牌官网 v4（扁平 · 清新 · 统一）
   整屏滚动 + 一致设计语言
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  --brand:        #F4845F;
  --brand-deep:   #E8653F;
  --brand-soft:   #FFF1ED;

  --fresh:        #4FB6A8;   /* 清新薄荷绿，辅助色 */
  --fresh-soft:   #E9F6F3;

  --amber:        #FFB454;
  --amber-soft:   #FFF3E0;

  --ink:          #2A2E37;
  --ink-2:        #6A7280;
  --line:         #EBDFCC;            /* 暖米灰描边 */
  --bg:           #FCF4EA;            /* 暖米白主背景 */
  --bg-alt:       #F7EEE0;            /* 暖米浅灰次背景 */

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

/* 统一线性图标（保留，供其他位置使用） */
.ico {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 绘本风扁平插画图标（服务项目 / 服务流程） */
.ico-art {
  width: 30px; height: 30px;
  display: block;
}
.step-ico .ico-art { width: 34px; height: 34px; }

/* ============================================
   导航
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  /* 顶栏始终带暖米白半透明底（与滚动后一致）：透明 navbar 在首屏会露出顶部浏览器默认白画布，
     用统一的暖米白底盖住即可消除白边，且与其他屏视觉一致 */
  background: rgba(252, 244, 234, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.navbar.scrolled {
  background: rgba(252, 244, 234, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  height: 68px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; display: block; border-radius: 4px; }
.logo-text {
  font-size: 18px; font-weight: 800; letter-spacing: .5px; color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; color: var(--ink-2); font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  padding: 9px 20px; border-radius: 999px;
  background: var(--brand); color: #fff !important; font-weight: 600;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--brand-deep); }

/* 汉堡 */
.nav-hamburger {
  display: none; width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .3s ease, opacity .3s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动菜单 */
.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 49;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 12px 28px 20px;
  transform: translateY(-120%);
  transition: transform .35s ease;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a {
  padding: 14px 4px; font-size: 16px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .nav-cta {
  margin-top: 12px; text-align: center; border-bottom: 0;
  color: #fff !important;
}

/* ============================================
   右侧导航点
   ============================================ */
.section-dots {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 45; display: flex; flex-direction: column; gap: 14px;
}
.section-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--brand); background: transparent;
  cursor: pointer; padding: 0; transition: all .25s ease;
}
.section-dots .dot.active {
  background: var(--brand); height: 26px; border-radius: 6px;
}

/* ============================================
   整屏容器
   ============================================ */
.fullpage-wrapper { position: relative; height: 100vh; overflow: hidden; }
.fp-section {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  transition: transform .75s cubic-bezier(.7,0,.2,1);
  overflow: hidden;
}
.fp-section-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px; padding: 90px 28px;
}

/* ---------- 贯穿全站的装饰母题：圆点 + 陪伴水印 ---------- */
.section-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco-dot {
  position: absolute; border-radius: 50%;
}
.deco-dot.d1 { width: 14px; height: 14px; background: var(--brand); opacity: .14; }
.deco-dot.d2 { width: 8px;  height: 8px;  background: var(--fresh); opacity: .22; }
.deco-dot.d3 { width: 5px;  height: 5px;  background: var(--amber); opacity: .30; }
/* 每屏圆点位置统一（左上簇 + 右下簇），保证“相符” */
.hero      .deco-dot.d1 { top: 14%;  left: 6%; }
.hero      .deco-dot.d2 { top: 17%;  left: 8.4%; }
.hero      .deco-dot.d3 { top: 12%;  left: 9.6%; }
.services  .deco-dot.d1 { top: 20%;  right: 7%; }
.services  .deco-dot.d2 { top: 23%;  right: 9%; }
.services  .deco-dot.d3 { top: 18%;  right: 10%; }
.why-us    .deco-dot.d1 { top: 16%;  left: 7%; }
.why-us    .deco-dot.d2 { top: 19%;  left: 9%; }
.why-us    .deco-dot.d3 { top: 14%;  left: 10%; }
.process   .deco-dot.d1 { top: 22%;  right: 8%; }
.process   .deco-dot.d2 { top: 25%;  right: 10%; }
.process   .deco-dot.d3 { top: 19%;  right: 11%; }
.cta       .deco-dot.d1 { top: 18%;  left: 8%; }
.cta       .deco-dot.d2 { top: 21%;  left: 10%; }
.cta       .deco-dot.d3 { top: 15%;  left: 11%; }

/* 柔和色块（扁平、低饱和，清新） */
.deco-blob {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand-soft), transparent 70%);
  opacity: .6;
}
.deco-blob.blob-mint {
  background: radial-gradient(circle at 30% 30%, var(--fresh-soft), transparent 70%);
}
.hero     .deco-blob { top: -120px; right: -120px; }
.services .deco-blob { bottom: -160px; left: -140px; }
.why-us   .deco-blob { top: -140px; left: -120px; }
.process  .deco-blob { bottom: -160px; right: -140px; }
.cta      .deco-blob { top: -120px; right: -120px; }

/* ============================================
   通用：区块标题 / 标签 chip
   ============================================ */
.section-head { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-head h2 {
  font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: .5px;
}
.section-head p {
  margin-top: 14px; font-size: 16px; color: var(--ink-2); font-weight: 400;
}

/* ============================================
   SECTION 0 · HERO
   ============================================ */
.hero-layout {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 48px;
}
.hero-tag {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title {
  font-size: 52px; line-height: 1.18; font-weight: 800; color: var(--ink);
}
.hero-title .accent { color: var(--brand); }
.hero-desc {
  margin-top: 22px; font-size: 17px; line-height: 1.8; color: var(--ink-2);
  max-width: 460px;
}
.hero-btns { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* 首屏右侧陪诊场景插画 */
.hero-visual { display: flex; justify-content: center; }
.hero-scene {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================================
   SECTION 1 · 服务项目
   ============================================ */
.services-grid {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center;
}
.services-main .scene-svg,
.why-visual .scene-svg { width: 100%; height: auto; border-radius: var(--r-lg); }

.services-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .2s ease, transform .2s ease;
}
.svc-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.svc-ico {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.svc-ico .ico { width: 24px; height: 24px; }
.svc-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.svc-body p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* ============================================
   SECTION 2 · 为什么选择我们
   ============================================ */
.why-grid {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center;
}
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; transition: border-color .2s ease, transform .2s ease;
}
.why-card:hover { border-color: var(--fresh); transform: translateY(-3px); }
.why-num {
  font-size: 14px; font-weight: 800; color: var(--brand);
  background: var(--brand-soft); width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.why-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.5; }
.why-card p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* ============================================
   SECTION 3 · 服务流程
   ============================================ */
.process-steps {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px;
}
.step-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 22px; text-align: center; width: 168px;
  transition: border-color .2s ease, transform .2s ease;
}
.step-item:hover { border-color: var(--brand); transform: translateY(-3px); }
.step-ico {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.step-ico .ico { width: 28px; height: 28px; }
.step-item h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.step-item p { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.step-arrow { display: flex; align-items: center; }

/* ============================================
   SECTION 4 · CTA
   ============================================ */
.cta-content { text-align: center; max-width: 620px; margin: 0 auto; }
.cta .section-label { margin-bottom: 16px; }
.cta-content h2 { font-size: 36px; font-weight: 800; color: var(--ink); }
.cta-content > p { margin-top: 14px; font-size: 16px; color: var(--ink-2); }

.cta-qr { margin: 40px 0 30px; display: flex; justify-content: center; }
.qr-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
}
.qr-cap { font-size: 13px; color: var(--ink-2); }

.cta-copyright { margin-top: 14px; font-size: 12px; color: #9aa1ab; }
.cta-baik { color: #9aa1ab; text-decoration: none; transition: color .2s ease; }
.cta-baik:hover { color: var(--brand); }

/* ============================================
   向下滑动提示
   ============================================ */
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; color: var(--brand);
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-layout,
  .services-grid,
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .hero-title { font-size: 38px; }
  .section-head h2 { font-size: 27px; }
  .services-cards,
  .why-cards { grid-template-columns: 1fr; }
  .process-steps { gap: 14px; }
  .step-arrow { display: none; }
  .step-item { width: 100%; max-width: 320px; }
  .section-dots { right: 14px; }
  .fp-section-inner { padding: 100px 22px 80px; }
}
@media (max-width: 560px) {
  .hero-title { font-size: 32px; }
  .cta-content h2 { font-size: 28px; }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .fp-section, .scroll-cue { transition: none; animation: none; }
}
