.faq-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 40px;
  text-align: center;
}

.faq-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.faq-header .description {
  font-size: 16px;
  color: #666666;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.faq-header .search-box {
  max-width: 680px;
  margin: 0 auto 32px;
  position: relative;
  display: flex;
  align-items: stretch;
}

.faq-header .search-box input {
  flex: 1;
  padding: 12px 20px;
  padding-left: 50px;
  border: 1px solid #e8e2d9;
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: #333;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.faq-header .search-box input::placeholder {
  color: #999;
}

.faq-header .search-icon {
  position: absolute;
  left: 18px;
  top: 12px;
  /* top: 50%;
  transform: translateY(-50%); */
  color: #999;
  font-size: 18px;
  width: 18px;
  height: 18px;
  z-index: 1;
}

.faq-header .search-btn {
  padding: 12px 32px;
  background: #3d3d3d;
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.faq-header .search-btn:hover {
  background: #4a4a4a;
}

.faq-header .faq-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
}

.faq-header .faq-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e8e2d9;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.faq-header .faq-tab:hover {
  border-color: #c39d66;
  background: #fdf9f2;
}

.faq-header .faq-tab.active {
  background: #fdf9f2;
  border-color: #c39d66;
  box-shadow:
    0 0 0 1px #c39d66,
    0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== Tab 图标 - 纯 CSS 背景图方案 ===== */
/* 重置 .tab-icon-bg：改为背景图容器 */
.faq-header .tab-icon-bg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f3f4f6;
  transition: background-color 0.2s ease;
}

/* 激活时图标背景色变为金色 */
.faq-header .faq-tab.active .tab-icon-bg {
  background-color: #c39d66;
}

/* ===== 常见问答 (data-tab="qa") ===== */
/* 未激活：彩色图标 */
.faq-header .faq-tab[data-tab="qa"] .tab-icon-bg {
  background-image: url("../../../img/QAIcon.png");
}
/* 激活：白色图标 */
.faq-header .faq-tab[data-tab="qa"].active .tab-icon-bg {
  background-image: url("../../../img/QAIconFFF.png");
}

/* ===== 目标词问答 (data-tab="target") ===== */
/* 未激活：彩色图标 */
.faq-header .faq-tab[data-tab="target"] .tab-icon-bg {
  background-image: url("../../../img/TargetIcon.png");
}
/* 激活：白色图标 */
.faq-header .faq-tab[data-tab="target"].active .tab-icon-bg {
  background-image: url("../../../img/TargetIconFFF.png");
}

.faq-header .tab-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-header .tab-content strong {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.faq-header .tab-subtitle {
  font-size: 12px;
  color: #666666;
}

@media (max-width: 768px) {
  .faq-header {
    padding: 40px 16px;
  }

  .faq-header h1 {
    font-size: 20px;
  }

  .faq-header .description {
    font-size: 14px;
  }

  .faq-header .search-box {
    flex-direction: column;
    gap: 8px;
  }

  .faq-header .search-box input {
    border-right: 1px solid #e8e2d9;
    border-radius: 10px;
    padding: 12px 16px;
    padding-left: 44px;
  }

  .faq-header .search-btn {
    border-radius: 10px;
    padding: 12px;
  }

  .faq-header .faq-tabs {
    flex-direction: column;
  }
}
