/* ============================================================
   产品详情 — 常见问题（FAQ）手风琴样式 (product-faq.css)
   参考 ccbiotech.com.cn 的 product_faq.css 交互形式：
   问题条 + 展开答案，点击问题行切换 +/-。
   配色沿用 style.css 的 :root 设计令牌，与整站统一。
   作用域：仅作用于 .faq-list，不影响其他页面。
   ============================================================ */

.faq-list {
  margin: 10px 0 30px;
}

.faq-list .faq-item {
  border: 1px solid #e3e9e2;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

/* 问题行 */
.faq-list .faq-q {
  background: #f7f9f6;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-list .faq-q:hover {
  background: #eef3ec;
}

/* 右侧 + / − 指示符 */
.faq-list .faq-q::after {
  content: "+";
  font-size: 20px;
  font-weight: 500;
  color: var(--leaf);
  flex-shrink: 0;
  line-height: 1;
}

/* 答案（默认收起） */
.faq-list .faq-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  line-height: 1.85;
  color: #4a5a50;
}

/* 展开状态 */
.faq-list .faq-item.active .faq-a {
  padding: 16px 18px;
  max-height: 800px;
}

.faq-list .faq-item.active .faq-q::after {
  content: "\2212";   /* − */
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .faq-list .faq-q {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .faq-list .faq-a {
    padding: 0 14px;
  }
  .faq-list .faq-item.active .faq-a {
    padding: 14px;
  }
}
