/* ============================================================
   faq.html 常见问题解答页 独立样式文件
   存放位置：css 文件夹
   说明：本文件仅包含常见问题解答页主体内容样式
   ============================================================ */
/* ---------- 常见问题列表 ---------- */
.faq_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq_item_box {
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition:
    box-shadow 0.25s,
    border-color 0.25s;
}
.faq_item_box:hover {
  border-color: #cfe0ef;
  box-shadow: 0 8px 24px rgba(47, 127, 192, 0.08);
}
.faq_item_box.open {
  border-color: #b9d6ec;
  box-shadow: 0 10px 28px rgba(47, 127, 192, 0.12);
}
.faq_item_question {
  display: flex;
  align-items: center;
  padding: 25px 25px;
  cursor: pointer;
}
.faq_item_info {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  color: #333;
  line-height: 1.5;
  font-weight: 600;
}
.faq_item_cat {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 14px;
  border: 1px solid #1053a0;
  background: #ffffff;
  color: #1053a0;
  font-size: 12px;
  white-space: nowrap;
}
.faq_item_toggle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-left: 12px;
  border: 0px solid #cfe0ef;
  border-radius: 50%;
  background: #fff;
  color: #565759;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s,
    background 0.2s,
    color 0.2s;
}
/* .faq_item_toggle:hover {
  border:1px solid  #565759; 
} */
.faq_item_box.open .faq_item_toggle {
  transform: rotate(180deg);
  color: #0b3d91;
}
.faq_item_box.open .faq_item_info {
  color: #0b3d91;
}

/* ---------- 答案（下拉展开） ---------- */
.faq_item_answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease;
}
.faq_item_box.open .faq_item_answer {
  max-height: 400px;
  opacity: 1;
}
.faq_a {
  padding: 10px 20px 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  border-top: 1px dashed #e8eef4;
  background: #f4f4f4;
  margin: 0 20px 10px;
  border-radius: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .faq_item_question {
    padding: 16px;
    flex-wrap: wrap;
  }
  .faq_item_info {
    width: 100%;
  }
  .faq_item_cat {
    margin-left: 0;
    margin-top: 10px;
  }
  .faq_item_toggle {
    margin-left: auto;
    margin-top: 10px;
  }
  .faq_a {
    padding: 0 16px 18px;
  }
}
