/*
 * WGACA Frontend - FAQ Page Styles
 * 常见问题页面样式
 */

.faq-section {
  padding: 60px 0;
}

.faq-intro {
  text-align: center;
  margin-bottom: 50px;
}

.faq-intro h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.faq-intro p {
  font-size: 15px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* FAQ 分类侧边栏 */
.faq-sidebar {
  background: #fafafa;
  padding: 30px 25px;
  border-radius: 12px;
}

.faq-sidebar h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.faq-sidebar ul li {
  margin-bottom: 5px;
}

.faq-sidebar ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  transition: all 0.3s;
}

.faq-sidebar ul li a:hover,
.faq-sidebar ul li a.active {
  background: #000;
  color: #fff;
}

.faq-sidebar ul li a i {
  font-size: 12px;
}

/* FAQ 内容 */
.faq-content {
  background: #fff;
}

.faq-category {
  margin-bottom: 40px;
}

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category h3 {
  font-size: 22px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #000;
}

/* FAQ 列表项 */
.faq-list .faq-item {
  border-bottom: 1px solid #eee;
}

.faq-list .faq-item:last-child {
  border-bottom: none;
}

.faq-list .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-list .faq-question h4 {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  padding-right: 20px;
  color: #333;
}

.faq-list .faq-question .toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
  transition: all 0.3s;
  flex-shrink: 0;
}

.faq-list .faq-item.active .faq-question .toggle {
  background: #000;
  color: #fff;
  transform: rotate(45deg);
}

.faq-list .faq-question:hover h4 {
  color: #000;
}

.faq-list .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-list .faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-list .faq-answer .content {
  padding: 0 0 25px;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.faq-list .faq-answer .content p {
  margin-bottom: 12px;
}

.faq-list .faq-answer .content ul {
  padding-left: 20px;
  margin: 10px 0;
}

.faq-list .faq-answer .content ul li {
  list-style: disc;
  margin-bottom: 5px;
}

/* 联系我们提示 */
.faq-contact-cta {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
  padding: 50px 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 60px;
}

.faq-contact-cta h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.faq-contact-cta p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.faq-contact-cta .btn {
  display: inline-block;
  padding: 12px 40px;
  background: #fff;
  color: #000;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.faq-contact-cta .btn:hover {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

/* 响应式 */
@media (min-width: 992px) {
  .faq-layout {
    grid-template-columns: 280px 1fr;
    gap: 50px;
  }
}
