/* ========================================
   FAQ常见问题 - 紧凑优化版
   ======================================== */

/* FAQ整体容器优化 */
.faq-section {
  padding: 3rem 0 !important;
}

.faq-section > div {
  max-width: 700px !important;
}

/* FAQ列表容器 - 紧凑设计 */
.faq-list {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  min-height: auto !important;
}

/* 移除搜索框和分类 - 简化界面 */
.faq-search,
.faq-categories {
  display: none !important;
}

/* FAQ项目 - 更紧凑 */
.faq-item {
  border: none !important;
  border-radius: 12px !important;
  margin-bottom: 0.75rem !important;
  background: rgba(248, 250, 252, 0.8) !important;
  transition: all 0.3s ease !important;
  overflow: hidden;
}

.faq-item:hover {
  background: rgba(59, 130, 246, 0.05) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.faq-item[open] {
  background: rgba(59, 130, 246, 0.08) !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

/* FAQ问题标题 - 紧凑布局 */
.faq-item summary {
  padding: 1rem 1.25rem !important;
  cursor: pointer !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  transition: all 0.3s ease !important;
  border-radius: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: #3b82f6 !important;
}

/* FAQ问题文本 */
.faq-question {
  flex: 1;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  margin-right: 1rem;
}

/* 移除分类标签 */
.faq-category-tag {
  display: none !important;
}

/* FAQ图标 - 更小更精致 */
.faq-icon {
  width: 28px !important;
  height: 28px !important;
  background: rgba(59, 130, 246, 0.1) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #3b82f6 !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  background: #3b82f6 !important;
  color: white !important;
  transform: rotate(180deg);
}

/* FAQ答案内容 - 紧凑 */
.faq-answer {
  padding: 0 1.25rem 1rem 1.25rem;
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.9rem;
  animation: fadeInDown 0.3s ease;
}

/* 查看更多按钮 - 优化样式 */
.faq-show-more {
  text-align: center !important;
  margin-top: 1rem !important;
}

.faq-more-btn {
  background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
  color: white !important;
  border: none !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.faq-more-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
}

/* 底部联系提示 - 紧凑 */
.faq-section > div > div:last-child {
  margin-top: 1.5rem !important;
}

.faq-section > div > div:last-child p {
  font-size: 0.875rem !important;
  margin-bottom: 0.5rem !important;
}

.faq-section > div > div:last-child a {
  font-size: 0.875rem !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .faq-section {
    padding: 2rem 0 !important;
  }
  
  .faq-list {
    padding: 1rem !important;
    margin: 0 1rem !important;
  }
  
  .faq-item summary {
    padding: 0.875rem 1rem !important;
  }
  
  .faq-question {
    font-size: 0.875rem !important;
  }
  
  .faq-answer {
    padding: 0 1rem 0.875rem 1rem;
    font-size: 0.825rem;
  }
  
  .faq-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.875rem !important;
  }
  
  .faq-more-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }
}

/* 加载状态优化 */
.faq-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* 无结果提示优化 */
.faq-no-results {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
}

.faq-no-results svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  opacity: 0.5;
}

.faq-no-results p {
  font-size: 0.875rem;
  margin: 0;
}