/* ==================== FAQ 模块 · geo / seo / sem / ppyx / xmtyy 五页共用 ====================
   「常见问题解答」原来在五个页面的 css 里各复制了一份。本文件把可共用的部分收敛到一处。
   引入位置：每页 <head> 里 style.css 之后、{页面}.css 之前。
   ⚠️ 必须早于页面 css —— 页面 css 里还留着的差异声明要靠「后加载」覆盖本文件的公共声明。

   分两段：
     【公共】五页顶层逐字相同的声明（42 条 / 9 个选择器）。五个页面 css 里已同步删掉这部分。
     【变体 --v2】ppyx 与 xmtyy 的 faq 是另一套设计：.faq-q 为 block、蓝点挂在 .faq-item::before、
       箭头图绝对定位（另三页是 .faq-q flex + 圆点在 ::before / span::before）。这两页彼此又几乎
       逐字相同，故整套收进本段。
       ⚠️ 变体选择器一律带 .faq--v2 —— 不带该类的 geo / seo / sem 完全不受本段影响。
       ⚠️ .faq-title 与 .faq-list 是兄弟节点（不是父子），故两个元素各自带 .faq--v2 类。
   ==================== */

/* ---------------- 公共：五页顶层逐字相同 ---------------- */

.faq-title {
  text-align: center;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1d2129;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(224, 235, 255, .4);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  font-family: "Source Han Sans", Geneva, sans-serif;
  color: #1d2129;
  cursor: pointer;
}

.faq-q img {
  object-fit: contain;
}

/* 答案面板：高度动画由各页 js 按实测高度驱动，所以这里只给「收起」的锚点，
   展开态靠 .faq-item.open .faq-a 抬成 height:auto。
   ⚠️ 别退回 max-height 过渡 —— 答案只有几十 px，收起时 max-height 要先从几百 px 空走到
      真高才开始真的收缩，表现为「卡一下」。 */
.faq-a {
  height: 0;
  overflow: hidden;
}

.faq-a p:empty {
  display: none;
}

.faq-a p {
  font-family: "Source Han Sans", Geneva, sans-serif;
  color: #636e80;
}

.faq-item.open .faq-a {
  height: auto;
}

/* ---------------- 变体 --v2：ppyx / xmtyy ---------------- */

.faq-title.faq--v2 {
  margin-top: 72px;
  line-height: 1.75;
}

.faq-list.faq--v2 {
  margin-top: 67px;
  gap: 20px;
}

/* 条目：设计稿 1400×100（展开 160），radius 20、无描边、阴影 0 5px 10px */
.faq--v2 .faq-item {
  position: relative;
}

/* 问题前的圆点：设计稿 10×10、卡内 (48,46) —— 挂在 .faq-item 上而非 .faq-q 上 */
.faq--v2 .faq-item::before {
  content: "";
  position: absolute;
  left: 48px;
  top: 46px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 200px;
  background: #317af7;
}

.faq--v2 .faq-q {
  position: static;
  display: block;
  padding: 33px 27px 33px 82px;
  font-size: 24px;
  line-height: 34px;
}

/* 箭头：设计稿 32×32、卡内 x1341；展开态比收起态高 8px（设计稿原样） */
.faq--v2 .faq-q img {
  position: absolute;
  right: 27px;
  top: 37px;
  width: 32px;
  height: 32px;
}

.faq--v2 .faq-item.open .faq-q img {
  top: 29px;
}

/* 展开时负 margin 把答案上提到问题下沿 8px 处（设计稿 收起 100 / 展开 160）；
   与公共段的 .faq-item.open .faq-a{height:auto} 分工：那条管高度，这条管上提。 */
.faq--v2 .faq-item.open .faq-a {
  margin-top: -22px;
}

.faq--v2 .faq-a p {
  margin: 0 68px 26px 82px;
  font-size: 18px;
  line-height: 28px;
}

@media (max-width: 1399px) {
  .faq-title.faq--v2 {
    font-size: 32px;
    margin-top: 56px;
  }

  .faq-list.faq--v2 {
    margin-top: 40px;
  }

  .faq--v2 .faq-q {
    padding: 28px 70px 24px 62px;
    font-size: 19px;
    line-height: 1.6;
  }

  .faq--v2 .faq-item::before {
    left: 34px;
    top: 36px;
  }

  .faq--v2 .faq-q img {
    width: 28px;
    height: 28px;
    right: 26px;
    top: 30px;
  }

  .faq--v2 .faq-item.open .faq-q img {
    top: 26px;
  }

  /* 原页面里就有的 margin-top:0，实际被 .faq-item.open .faq-a 的 -22px 盖住、从不生效；
     按「不改行为」原样保留 */
  .faq--v2 .faq-a {
    margin-top: 0;
  }

  .faq--v2 .faq-a p {
    margin: 0 26px 24px 62px;
    font-size: 15px;
    line-height: 24px;
  }
}

@media (max-width: 767px) {
  .faq-title.faq--v2 {
    font-size: 22px;
    margin-top: 44px;
  }

  .faq-list.faq--v2 {
    margin-top: 24px;
    gap: 12px;
  }

  .faq--v2 .faq-q {
    padding: 22px 52px 22px 44px;
    font-size: 16px;
    line-height: 1.5;
  }

  .faq--v2 .faq-item::before {
    left: 18px;
    top: 26px;
    width: 8px;
    height: 8px;
  }

  .faq--v2 .faq-q img {
    width: 22px;
    height: 22px;
    right: 18px;
    top: 22px;
  }

  .faq--v2 .faq-item.open .faq-q img {
    top: 22px;
  }

  .faq--v2 .faq-a p {
    margin: 0 18px 20px 44px;
    font-size: 14px;
    line-height: 22px;
  }
}
