/* FAQ区域通用样式 */
.faq {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* 现代化的FAQ项样式 */
.faq-item {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  background-color: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  border: 1px solid #eee;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
  border-left: 4px solid var(--primary-color);
}

/* 问题样式 */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  background-color: #fff;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
  color: var(--primary-color);
}

/* 切换图标样式 */
.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-right: 5px;
}

.faq-toggle i {
  color: #333;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.faq-item.active .faq-toggle i {
  transform: rotate(45deg);
}

/* 答案样式 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-light);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
  opacity: 1;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.faq-answer p {
  margin: 0;
  line-height: 1.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .faq-list {
    padding: 0 1rem;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
}