/* 产品FAQ样式 */
.products-faq-section {
  padding: 60px 0 80px 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-label {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.faq-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.faq-header p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
  align-items: start;
}

.faq-category {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-category:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.category-icon {
  width: 32px;
  height: 32px;
  color: #3b82f6;
}

.faq-category-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.faq-question:hover {
  background: #f3f4f6;
}

.faq-item.active .faq-question {
  background: #eff6ff;
  border-radius: 8px 8px 0 0;
}

.faq-question h4 {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 300;
  color: #3b82f6;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background: #3b82f6;
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

.faq-answer p {
  padding: 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 0 0 8px 8px;
}

.faq-cta {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 16px;
}

.faq-cta p {
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  margin: 0 0 20px 0;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.faq-cta-btn:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.faq-cta-btn:active,
.faq-cta-btn:focus {
  color: #fff !important;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.faq-cta-btn:visited {
  color: #fff !important;
}

.faq-cta-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .products-faq-section {
    padding: 0;
  }

  .faq-header {
    margin-bottom: 40px;
  }

  .faq-header h2 {
    font-size: 28px;
  }

  .faq-category {
    padding: 24px;
  }

  .faq-category-header h3 {
    font-size: 18px;
  }

  .faq-question h4 {
    font-size: 14px;
  }

  .faq-answer p {
    font-size: 13px;
  }

  .faq-cta {
    padding: 32px 20px;
  }

  .faq-cta p {
    font-size: 16px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .products-faq-section {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  }

  .faq-header h2 {
    color: #f9fafb;
  }

  .faq-header p {
    color: #9ca3af;
  }

  .faq-category {
    background: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .faq-category-header {
    border-bottom-color: #374151;
  }

  .faq-category-header h3 {
    color: #f9fafb;
  }

  .faq-question {
    background: #374151;
  }

  .faq-question:hover {
    background: #4b5563;
  }

  .faq-item.active .faq-question {
    background: #1e3a8a;
  }

  .faq-question h4 {
    color: #e5e7eb;
  }

  .faq-toggle {
    background: #4b5563;
  }

  .faq-answer p {
    background: #374151;
    color: #9ca3af;
  }

  .faq-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  }

  .faq-cta p {
    color: #f9fafb;
  }
}
