/* ============================================================================
 *  PCFaq.css —— 常见问题（FAQ）页面专属样式
 * ----------------------------------------------------------------------------
 *  设计规范：
 *    1. 对标企业级问答中心设计规范（1200px 通栏居中）；
 *    2. 顶部深邃科技 Banner，包含 4 大实力保障卡片；
 *    3. 交互式问题搜索栏，支持即时动态筛选与无结果提示；
 *    4. 优雅的手风琴折叠交互（Accordion），高亮展开项淡蓝背景 + 平滑过渡动效。
 * ========================================================================== */

/* ── 页面外壳 ───────────────────────────────────────────────────────────── */
.faq-page {
  background-color: #ffffff;
  min-height: 800px;
}

/* ── 核心内容主体（1200px 居中） ────────────────────────────────────────── */
.faq-container {
  width: 1200px;
  margin: 30px auto 0;
}

.faq-main-col {
  width: 1200px;
  padding: 0 0 60px;
}

/* ── 问答头部标题与搜索框 ───────────────────────────────────────────────── */
.faq-header-section {
  text-align: left;
  padding-bottom: 28px;
  padding-top: 30px;
  background-color: #f9f9f9;
}

.faq-header-container {
  width: 1200px;
  margin: 0 auto;
}

.faq-section-title {
  font-size: 26px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}

.faq-section-desc {
  font-size: 14px;
  color: #999999;
  margin: 0 0 24px 0;
}

.faq-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  /* gap: 12px; */
}

.faq-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 38px 0 42px;
  font-size: 14px;
  color: #334155;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.faq-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.faq-search-input::placeholder {
  color: #94a3b8;
}

.faq-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.faq-search-clear:hover {
  color: #334155;
}

.faq-search-btn {
  height: 44px;
  padding: 0 28px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.faq-search-btn:hover {
  background: #1d4ed8;
}

.faq-search-btn:active {
  transform: scale(0.98);
}

/* ── 列表分组头部 ───────────────────────────────────────────────────────── */
.faq-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.faq-list-title {
  font-size: 26px;
  font-weight: 700;
  color: #333333;
  margin: 0;
  position: relative;
}

/* .faq-list-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: #2563eb;
  border-radius: 2px;
} */

.faq-match-count {
  font-size: 13px;
  color: #999999;
}

/* ── 手风琴问答列表 (Accordion) ─────────────────────────────────────────── */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  transition: all 0.25s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

/* 展开激活态 */
.faq-item.active {
  background: #f0f7ff;
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

/* 问题点击区域 */
.faq-question {
  padding: 16px 20px 12px 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.faq-number {
  font-size: 15px;
  font-weight: 700;
  color: #999999;
  min-width: 22px;
  transition: color 0.2s;
}

.faq-item.active .faq-number {
  color: #2563eb;
}

.faq-q-title {
  flex: 1;
  font-size: 16px;
  /* font-weight: 600; */
  color: #1e293b;
  margin: 0;
  line-height: 1.5;
  transition: color 0.2s;
}

.faq-item.active .faq-q-title {
  color: #000000;
  font-weight: 600;
}

/* 右侧折叠箭头 */
.faq-arrow-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
  margin-right: 4px;
}

.faq-item.active .faq-arrow-icon {
  transform: rotate(-135deg);
  border-color: #2563eb;
}

/* 答案容器 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 20px 18px 54px;
  font-size: 14px;
  color: #6d7a9a;
  line-height: 1.75;
}

.faq-answer-inner p {
  margin: 0;
}

.faq-answer-inner strong {
  color: #0f172a;
  font-weight: 600;
  padding-left: 2px;
}

/* 关键词搜索高亮 */
.faq-highlight {
  background-color: #fef08a;
  color: #854d0e;
  padding: 1px 3px;
  border-radius: 2px;
}

/* ── 搜索空状态 ─────────────────────────────────────────────────────────── */
.faq-empty-box {
  padding: 50px 20px;
  text-align: center;
}

.faq-empty-icon {
  margin-bottom: 12px;
}

.faq-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 6px 0;
}

.faq-empty-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 16px 0;
}

.faq-empty-reset-btn {
  padding: 6px 18px;
  font-size: 13px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-empty-reset-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ── 底部咨询提示卡片 ───────────────────────────────────────────────────── */
.faq-contact-card {
  margin-top: 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-contact-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.faq-contact-desc {
  font-size: 13px;
  color: #999999;
  margin: 0;
}

.faq-contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e60012;
  text-decoration: none;
  padding: 9px 18px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 4px;
  transition: all 0.2s;
}

.faq-btn-tel:hover {
  background: #e60012;
  color: #ffffff;
  border-color: #e60012;
}

.faq-btn-chat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #2563eb;
  border: none;
  border-radius: 4px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-btn-chat:hover {
  background: #1d4ed8;
}