/* ============================================
   FAQ SECTION - Frequently Asked Questions
   专属样式，避免与其它区域共享
   基于 Figma 节点 309:8741
   ============================================ */

.faq-section {
  padding: 100px var(--page-padding);
  background: var(--color-white);
}

.faq-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.faq-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.2;
  color: var(--color-black);
  text-align: center;
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.faq-item {
  background: transparent;
  border: 2px solid var(--color-yellow);
  border-radius: 12px;
  padding: 24px 40px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  background: rgba(255, 240, 191, 0.3);
}

.faq-item.active {
  background: var(--color-yellow-light);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 36px;
}

.faq-question-text {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.36;
  color: var(--color-black);
}

.faq-toggle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-yellow);
  stroke-width: 6;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-black);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-top: 24px;
  padding-bottom: 8px;
  opacity: 1;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
  .faq-container {
    gap: 60px;
  }

  .faq-title {
    font-size: 36px;
  }

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

  .faq-question {
    gap: 24px;
  }

  .faq-question-text {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .faq-section {
    padding: 60px 24px;
  }

  .faq-container {
    gap: 40px;
  }

  .faq-title {
    font-size: 28px;
  }

  .faq-item {
    padding: 16px 20px;
  }

  .faq-question {
    gap: 16px;
  }

  .faq-question-text {
    font-size: 18px;
  }

  .faq-toggle {
    width: 40px;
    height: 40px;
  }

  .faq-answer {
    font-size: 16px;
  }
}

