/* ==========================================================================
   蕉友心动派 · 官网通用样式
   适用页面：首页 / 资质与服务 / 关于我们 / 联系我们
   ========================================================================== */

/* ---------- 1. 变量与基础重置 ---------- */
:root {
  --ink: #29243a;
  --muted: #777386;
  --pink: #e85d83;
  --pink2: #ff8da5;
  --cream: #fff8f7;
  --line: #f0e4e7;
  --purple: #6651a3;
  --white: #fff
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7
}

a {
  color: inherit;
  text-decoration: none
}

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: auto
}

/* ---------- 2. 顶部导航 ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #f5ecee
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .3px
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff9cac, #e65b85);
  display: grid;
  place-items: center;
  color: white;
  font-size: 23px;
  box-shadow: 0 8px 20px #e85d8330
}

img.logo {
  object-fit: contain;
  background: none;
  box-shadow: none;
  flex: none
}

.links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: #625c70
}

.links a:hover {
  color: var(--pink)
}

.links a[aria-current="page"] {
  color: var(--pink);
  font-weight: 700
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--pink);
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 22px #e85d8328
}

.menu {
  display: none
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--pink);
  text-transform: uppercase
}

/* ---------- 3. 首页 Hero ---------- */
.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 20%, #ffe0e7 0, transparent 35%), linear-gradient(120deg, #fff8f6, #fff 58%, #f8f4ff);
  padding: 82px 0 76px;
  position: relative
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 55px
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f4cbd5;
  background: #fff9fa;
  color: #b74668;
  border-radius: 99px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700
}

.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #e85d83;
  border-radius: 50%
}

h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.18;
  letter-spacing: -1.5px;
  margin: 22px 0 18px
}

h1 em {
  font-style: normal;
  color: var(--pink)
}

.lead {
  font-size: 17px;
  color: #716b7d;
  max-width: 560px
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 24px
}

.btn.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none
}

.trustline {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #746d7d
}

.trustline span:before {
  content: "✓";
  color: #3b9d83;
  font-weight: 900;
  margin-right: 6px
}

.hero-art {
  min-height: 370px;
  position: relative;
  display: grid;
  place-items: center
}

.orb {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffc5d1, #f6e1ed 55%, #dcd2fb);
  position: absolute;
  filter: drop-shadow(0 25px 35px #b47b9b22)
}

.heart {
  position: relative;
  font-size: 125px;
  filter: drop-shadow(0 15px 16px #d95e8230);
  z-index: 2
}

.float-card {
  position: absolute;
  background: #ffffffdf;
  backdrop-filter: blur(10px);
  border: 1px solid #fff;
  border-radius: 18px;
  padding: 14px 17px;
  box-shadow: 0 15px 35px #60445c12;
  font-size: 13px;
  z-index: 3
}

.float-card strong {
  display: block;
  font-size: 15px
}

.float-card.one {
  top: 42px;
  left: 0
}

.float-card.two {
  bottom: 42px;
  right: 0
}

.float-card.three {
  top: 50%;
  right: -12px
}

/* 首页 Hero 装饰插画动效 */
@keyframes orb-breathe {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.06)
  }
}

@keyframes heart-float {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg)
  }

  50% {
    transform: translateY(-9px) rotate(2deg)
  }
}

@keyframes card-float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-11px)
  }
}

.orb {
  animation: orb-breathe 9s ease-in-out infinite
}

.heart {
  animation: heart-float 4.2s ease-in-out infinite
}

.float-card {
  animation: card-float 5.4s ease-in-out infinite
}

.float-card.one {
  animation-delay: 0s
}

.float-card.two {
  animation-delay: .9s
}

.float-card.three {
  animation-delay: 1.8s
}

@media (prefers-reduced-motion: reduce) {

  .orb,
  .heart,
  .float-card {
    animation: none
  }
}

/* ---------- 4. 首页通用版块 ---------- */
.stats {
  padding: 25px 0;
  border-bottom: 1px solid var(--line)
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center
}

.stat strong {
  display: block;
  font-size: 18px
}

.stat span {
  font-size: 13px;
  color: var(--muted)
}

section {
  padding: 76px 0
}

.soft {
  background: var(--cream)
}

.section-head {
  text-align: center;
  max-width: 690px;
  margin: 0 auto 38px
}

.section-head h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.25;
  margin: 9px 0 12px
}

.section-head p {
  color: var(--muted);
  margin: 0
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 25px;
  background: white;
  box-shadow: 0 8px 28px #3b233c05
}

.iconbox {
  width: 47px;
  height: 47px;
  border-radius: 15px;
  background: #fff0f3;
  color: var(--pink);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 17px
}

.card h3 {
  font-size: 18px;
  margin: 0 0 8px
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0
}

/* 首页服务流程：div.steps / .step（与内容页的 ol.steps 区分） */
div.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step
}

.step {
  position: relative;
  padding: 22px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line)
}

.step:before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 25px;
  font-weight: 900;
  color: #f1a1b5;
  margin-bottom: 15px
}

.step h3 {
  font-size: 16px;
  margin: 0 0 7px
}

.step p {
  font-size: 13px;
  color: var(--muted);
  margin: 0
}

/* 首页会员见证：分组轮播，每组 3 张（第 1 组牵手成功照片 / 第 2 组文字评价） */
.tst-carousel {
  position: relative
}

.tst-viewport {
  overflow: hidden
}

.tst-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-content: start
}

.tst-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px
}

.tst-controls .carousel-dots {
  margin-top: 0
}

.carousel-btn.inline {
  position: static;
  transform: none
}

.quote {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 23px;
  background: white;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.quote .stars {
  color: #e8a64b;
  letter-spacing: 3px
}

.quote p {
  font-size: 14px;
  color: #625c70;
  flex: 1
}

.quote.photo {
  padding: 0;
  overflow: hidden
}

.quote.photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd9e1, #e4dcff);
  display: grid;
  place-items: center
}

.person strong {
  display: block;
  font-size: 13px
}

.person small {
  color: var(--muted)
}

.disclaimer {
  font-size: 12px;
  color: #928b99;
  margin-top: 18px
}

/* ---------- 4.1 精彩活动轮播（首页） ---------- */
.carousel {
  position: relative;
  max-width: 750px;
  margin: 0 auto
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 45px #3b233c14
}

.carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1)
}

.slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
  background: #f4eef0
}

.slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover
}

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 30px 24px;
  background: linear-gradient(to top, rgba(41, 36, 58, .84), rgba(41, 36, 58, 0));
  color: #fff
}

.slide figcaption h3 {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.4;
  font-weight: 800;
  text-shadow: 0 2px 10px #29243a55
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffffe6;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px #29243a26;
  transition: background .2s, color .2s;
  z-index: 2
}

.carousel-btn:hover {
  background: var(--pink);
  color: #fff
}

.carousel-btn.prev {
  left: 16px
}

.carousel-btn.next {
  right: 16px
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 20px
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e2d5da;
  cursor: pointer;
  transition: width .3s, background .3s
}

.carousel-dots button.active {
  width: 26px;
  background: var(--pink)
}

/* ---------- 4.2 首页常见问题（手风琴） ---------- */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px #3b233c05
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none
}

.faq summary::-webkit-details-marker {
  display: none
}

.faq summary::after {
  content: "＋";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff0f3;
  color: var(--pink);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background .25s, color .25s
}

.faq details[open] summary::after {
  content: "－";
  background: var(--pink);
  color: #fff
}

.faq p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--muted)
}

/* ---------- 5. 内容页（资质与服务 / 关于我们 / 联系我们） ---------- */
.page-hero {
  background: radial-gradient(ellipse at 80% 20%, #ffe0e7 0, transparent 35%), linear-gradient(120deg, #fff8f6, #fff 58%, #f8f4ff);
  padding: 66px 0 54px
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 10px 0 14px
}

.page-hero p {
  color: #716b7d;
  font-size: 16px;
  max-width: 760px;
  margin: 0
}

.article {
  padding: 56px 0 20px
}

.article .wrap {
  max-width: 900px
}

.article h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  margin: 44px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--pink)
}

.article h2:first-child {
  margin-top: 0
}

.article h3 {
  font-size: 18px;
  margin: 26px 0 8px
}

.article p {
  margin: 12px 0;
  color: #45404f
}

.article ul {
  margin: 12px 0;
  padding-left: 20px
}

.article li {
  margin: 7px 0
}

.article li strong {
  color: var(--ink)
}

.facts {
  margin: 18px 0;
  display: grid;
  gap: 12px
}

.facts div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 20px;
  background: #fff
}

.facts dt {
  font-size: 13px;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: .5px
}

.facts dd {
  margin: 3px 0 0;
  font-size: 15px;
  color: #45404f
}

.facts dd a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: none
}

.qr {
  display: block;
  width: 140px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: zoom-in
}

/* 内容页有序步骤：ol.steps */
ol.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 16px 0
}

ol.steps li {
  counter-increment: s;
  position: relative;
  padding: 12px 0 12px 46px;
  border-bottom: 1px dashed var(--line);
  margin: 0
}

ol.steps li:last-child {
  border-bottom: 0
}

ol.steps li:before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 13px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff0f3;
  color: var(--pink);
  font-weight: 900;
  font-size: 14px;
  display: grid;
  place-items: center
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0
}

.grid .card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 8px 28px #3b233c05
}

.grid .card h3 {
  margin: 0 0 6px;
  font-size: 16px
}

.grid .card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted)
}

.slot {
  border: 1px dashed #e8d6dc;
  border-radius: 16px;
  padding: 26px;
  margin: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #a89fb0;
  background: var(--cream)
}

.slot-inline {
  color: var(--muted);
  font-size: 13px
}

section.contact {
  padding: 30px 0 76px
}

/* ---------- 6. 通用行动条 CTA ---------- */
.cta {
  background: linear-gradient(120deg, #e85d83, #a67bd4);
  color: white;
  padding: 44px;
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px
}

.cta h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 8px;
  border: 0;
  padding: 0
}

.cta p {
  margin: 0;
  color: #fff0f5
}

.cta .btn {
  background: white;
  color: #b4466b;
  box-shadow: none;
  white-space: nowrap
}

/* 首页大号 CTA 保持原有尺寸 */
#contact .cta {
  padding: 48px
}

#contact .cta h2 {
  font-size: 30px
}

/* ---------- 7. 页脚 ---------- */
footer {
  padding: 44px 0 28px;
  background: #29243a;
  color: #e9e4ef
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px
}

.footer-brand {
  font-size: 18px;
  font-weight: 800
}

.footer p,
.footer li {
  font-size: 13px;
  color: #c0b8ca
}

.footer h4 {
  margin: 0 0 12px;
  color: white
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer li {
  margin: 5px 0
}

.footer-bottom {
  border-top: 1px solid #51495c;
  padding-top: 18px;
  font-size: 12px;
  color: #aaa1b6;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap
}

/* ---------- 8. 红娘微信弹窗 ---------- */
.wx-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(41, 36, 58, .55)
}

.wx-modal.open {
  display: flex
}

.wx-modal-card {
  position: relative;
  width: min(320px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 25px 60px #29243a44
}

.wx-modal-card h3 {
  margin: 0 0 4px;
  font-size: 18px
}

.wx-modal-card p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted)
}

.wx-modal-card img {
  width: 100%;
  display: block;
  border-radius: 14px
}

.wx-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: #b0a9bb;
  cursor: pointer
}

/* ---------- 9. 响应式 ---------- */
@media(max-width:850px) {
  .links {
    display: none
  }

  .menu {
    display: block
  }

  .hero-grid {
    grid-template-columns: 1fr
  }

  .hero {
    padding: 55px 0 35px
  }

  .hero-art {
    min-height: 310px
  }

  .orb {
    width: 245px;
    height: 245px
  }

  .heart {
    font-size: 100px
  }

  .float-card.one {
    left: 4%
  }

  .float-card.two {
    right: 3%
  }

  .float-card.three {
    right: 0
  }

  .grid3 {
    grid-template-columns: 1fr
  }

  .tst-page {
    grid-template-columns: 1fr
  }

  div.steps {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid {
    grid-template-columns: 1fr
  }

  .footer-top {
    grid-template-columns: 1fr 1fr
  }

  .footer-top>div:first-child {
    grid-column: 1/-1
  }

  .cta {
    padding: 32px;
    align-items: flex-start;
    flex-direction: column
  }

  #contact .cta {
    padding: 32px
  }

  .slide figcaption {
    padding: 50px 20px 18px
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 19px
  }
}

@media(max-width:480px) {
  .wrap {
    width: min(100% - 28px, 1140px)
  }

  .nav {
    height: 66px
  }

  .brand {
    font-size: 16px
  }

  .logo {
    width: 37px;
    height: 37px
  }

  .nav-cta {
    padding: 9px 13px;
    font-size: 12px
  }

  .hero h1 {
    font-size: 37px
  }

  .lead {
    font-size: 15px
  }

  .hero-art {
    min-height: 280px
  }

  .orb {
    width: 220px;
    height: 220px
  }

  .float-card {
    padding: 10px 12px
  }

  .float-card.three {
    top: 44%;
    right: -3px
  }

  .stats-grid {
    gap: 8px
  }

  .stat strong {
    font-size: 15px
  }

  .stat span {
    font-size: 11px
  }

  section {
    padding: 55px 0
  }

  div.steps {
    gap: 10px
  }

  .step {
    padding: 17px 14px
  }

  .article li,
  .article p,
  .facts dd {
    font-size: 15px
  }

  .article h2 {
    font-size: 20px
  }

  .grid .card {
    padding: 18px
  }

  .footer-top {
    grid-template-columns: 1fr
  }

  .footer-top>div:first-child {
    grid-column: auto
  }

  .cta h2 {
    font-size: 25px
  }

  #contact .cta h2 {
    font-size: 25px
  }

  .slide img {
    aspect-ratio: 4 / 3
  }

  .slide figcaption {
    padding: 44px 16px 16px
  }

  .carousel-btn.prev {
    left: 10px
  }

  .carousel-btn.next {
    right: 10px
  }
}
