/* FAQ */
.faq-container {
  max-width: 120rem;
  margin: 9.6rem auto;
  background-color: var(--scc-color-white);
}

.faq-container .faq-title {
  text-align: center;
  color: var(--scc-color-text-primary);
  font-family: Exo, sans-serif;
  font-weight: 600;
  margin-bottom: 3.2rem;
}

.faq-container #faq-accordion {
  background-color: #fff; /* 替换 bg-white */
}

.faq-container #faq-accordion .faq-inner-padding {
  padding: 2.5rem; /* 替换 sm:px-10 sm:py-12 */
}

.faq-container #faq-accordion .faq-item {
  border-color: #e5e7eb;
  border-style: solid;
  border-width: 0;
}

.faq-container #faq-accordion .faq-item:first-child {
  border-top-width: 1px;
}

.faq-container #faq-accordion .faq-question-header {
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 0.1rem solid #e5e7eb; /* Gray-200 */
  display: flex; /* 替换 flex */
  justify-content: space-between; /* 替换 justify-between */
  align-items: center; /* 替换 items-center */
  padding: 2.2rem 0; /* 替换 p-6 */
  font-size: 1.9rem; /* 替换 text-lg */
  font-weight: 700; /* 替换 font-semibold */
  font-family: Exo, sans-serif;
  color: var(--scc-color-text-primary); /* 替换 text-gray-800 */
}

.faq-container #faq-accordion .faq-question-header > span {
  flex-grow: 1; /* 替换 flex-1 */
  font-family: Exo, sans-serif;
}

.faq-container #faq-accordion .faq-question-header:hover {
  background-color: #f3f4f6; /* Gray-100 on hover */
}

.faq-container #faq-accordion .faq-icon {
  transition: transform 0.3s ease;
  width: 2rem; /* 替换 w-5 */
  height: 2rem; /* 替换 h-5 */
  flex-shrink: 0;
  color: var(--scc-color-text-primary); /* 替换 text-gray-600 */
}

/* 展开时的图标旋转 180 度 */
.faq-container #faq-accordion .faq-question-header.active .faq-icon {
  transform: rotate(180deg);
  color: var(--scc-color-primary);
}

.faq-container #faq-accordion .faq-answer {
  display: none;
  margin: 2.2rem 0;
  padding: 1.1rem 1.7rem;
  line-height: 2.4rem;
  font-size: var(--scc-font-body-size);
  background-color: #eaeaea;
  border-top: none;
  color: var(--scc-color-text-secondary);
  border-radius: 0.4rem;
}

.faq-container #faq-accordion .faq-item:last-child .faq-question-header {
  border-bottom: none;
}

.faq-container #faq-accordion .faq-answer p {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #323232;
  margin: 0;
}

@media screen and (width <= 768px) {
  /* FAQ  */
  .faq-container {
    width: auto;
    margin: 6.5rem 1.6rem;
  }

  .faq-container #faq-accordion .faq-question-header {
    font-size: 1.7rem;
    font-weight: 400;
  }
}
