/**
 * faq.css - 常见问题页面样式
 * 简洁大气风格，完整H5适配
 */

/* ===== Banner ===== */
.faq-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92) 0%, rgba(30, 64, 175, 0.95) 100%);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.faq-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.faq-banner-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-banner-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.faq-banner-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ===== 分类标签 ===== */
.faq-tabs-wrap {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 60px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-tabs {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  padding: 14px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
}

.faq-tabs::-webkit-scrollbar {
  display: none;
}

.faq-tab {
  padding: 9px 28px;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  color: #6b7280;
  background: #f5f7fa;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
  text-align: center;
}

.faq-tab:hover {
  color: #2563eb;
  background: #eff6ff;
}

.faq-tab.active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

/* ===== 列表区 ===== */
.faq-list-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

/* 分区 */
.faq-section {
  margin-bottom: 48px;
}

.faq-section-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
}

.faq-section-text {
  flex: 1;
  min-width: 0;
}

.faq-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  padding-left: 18px;
  border-left: 4px solid #2563eb;
  line-height: 1.4;
}

.faq-section-desc {
  font-size: 14px;
  color: #9ca3af;
  padding-left: 18px;
  line-height: 1.5;
}

.faq-section-img {
  flex-shrink: 0;
  width: 200px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f7fa;
}

.faq-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.faq-section-img:hover img {
  transform: scale(1.05);
}

/* 关键词外链 */
.faq-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.faq-link:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.faq-link[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center;
  background-size: 10px 10px;
}

/* FAQ项 */
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: all 0.25s;
}

.faq-item:hover {
  border-color: #e0e7ff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.06);
}

.faq-item.open {
  border-color: #bfdbfe;
  box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}

/* 问题行 */
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-q span {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.6;
}

/* 箭头图标 */
.faq-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s;
}

.faq-arrow::before,
.faq-arrow::after {
  content: '';
  position: absolute;
  background: #9ca3af;
  border-radius: 2px;
  transition: all 0.3s;
}

.faq-arrow::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-arrow::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
}

.faq-item.open .faq-arrow::before,
.faq-item.open .faq-arrow::after {
  background: #2563eb;
}

/* 答案 */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p {
  padding: 0 28px 24px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.9;
}

.faq-a-img {
  padding: 8px 28px 0;
  text-align: center;
}

.faq-a-img img {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.faq-a-img img:hover {
  transform: scale(1.02);
}

/* ===== 底部CTA ===== */
.faq-bottom-cta {
  max-width: 1100px;
  margin: 16px auto 64px;
  padding: 0 24px;
}

.faq-bottom-cta-inner {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
}

.faq-bottom-cta-text {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px !important;
}

.faq-bottom-cta-sub {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px !important;
}

.faq-cta-btn {
  display: inline-block;
  padding: 14px 48px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.faq-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

/* ===== H5适配 ===== */
@media (max-width: 768px) {
  .faq-banner {
    padding: 56px 20px 52px;
  }

  .faq-banner::before {
    width: 400px;
    height: 400px;
    right: -30%;
  }

  .faq-banner-title {
    font-size: 30px;
    letter-spacing: 1px;
  }

  .faq-banner-desc {
    font-size: 15px;
  }

  .faq-tabs {
    padding: 12px 16px;
    gap: 6px;
  }

  .faq-section-header {
    flex-direction: column;
    gap: 16px;
  }

  .faq-section-img {
    width: 100%;
    height: 160px;
    border-radius: 8px;
  }

  .faq-section-title {
    font-size: 18px;
  }

  .faq-tab {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 20px;
    flex: none;
  }

  .faq-list-wrap {
    padding: 28px 16px 0;
  }

  .faq-section {
    margin-bottom: 36px;
  }

  .faq-section-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .faq-section-img {
    width: 100%;
    height: 160px;
    border-radius: 10px;
  }

  .faq-section-title {
    font-size: 18px;
    margin-bottom: 4px;
    padding-left: 14px;
    border-left-width: 3px;
  }

  .faq-section-desc {
    padding-left: 14px;
    font-size: 13px;
  }

  .faq-item {
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .faq-q {
    padding: 18px 20px;
  }

  .faq-q span {
    font-size: 15px;
  }

  .faq-a p {
    padding: 0 20px 20px;
    font-size: 14px;
  }

  .faq-bottom-cta {
    margin: 12px auto 48px;
  }
}

@media (max-width: 480px) {
  .faq-banner {
    padding: 44px 16px 40px;
  }

  .faq-banner-title {
    font-size: 26px;
  }

  .faq-banner-desc {
    font-size: 14px;
  }

  .faq-tab {
    padding: 7px 12px;
    font-size: 12px;
    flex: none;
  }

  .faq-q {
    padding: 16px 16px;
  }

  .faq-q span {
    font-size: 14px;
  }

  .faq-a p {
    font-size: 13px;
    line-height: 1.8;
    padding: 0 16px 16px;
  }

  .faq-section-img {
    height: 120px;
  }

  .faq-a-img {
    padding: 6px 16px 0;
  }

  .faq-a-img img {
    max-width: 100%;
    border-radius: 8px;
  }

  .faq-cta-btn {
    padding: 12px 40px;
    font-size: 15px;
  }
}
