/* FAQs 页 */

.home-wrap {
  max-width: var(--container-width, 1400px);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 576px) {
  .home-wrap {
    padding: 0 16px;
  }
}

.faq-page {
  padding: 56px 0 0;
  background: var(--color-bg, #fff);
}

.faq-page__title {
  margin: 0 0 48px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--color-heading, #1e2a38);
}

.faq-section + .faq-section {
  margin-top: 56px;
}

.faq-section__title {
  margin: 0 0 28px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading, #1e2a38);
}

.faq-section__title--center {
  text-align: center;
}

.faq-section__list {
  max-width: 960px;
  margin: 0 auto;
}

/* 与产品详情 FAQ 一致的手风琴 */
.faq-section .product-detail-faq__item {
  border: 1px solid var(--color-border, #e8ecf0);
}

.faq-section .product-detail-faq__item + .product-detail-faq__item {
  margin-top: -1px;
}

.faq-section .product-detail-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 18px 22px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text, #2d3a4a);
  background: #fff;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.faq-section .product-detail-faq__trigger:hover {
  color: var(--color-heading, #1e2a38);
  background: var(--color-bg-muted, #f5f6f8);
}

.faq-section .product-detail-faq__question {
  flex: 1;
  min-width: 0;
}

.faq-section .product-detail-faq__arrow {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid var(--color-heading, #1e2a38);
  border-bottom: 2px solid var(--color-heading, #1e2a38);
  transform: rotate(45deg);
  transition: transform 0.35s ease, margin 0.35s ease;
}

.faq-section .product-detail-faq__item.is-open .product-detail-faq__arrow {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.faq-section .product-detail-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.faq-section .product-detail-faq__item.is-open .product-detail-faq__panel {
  grid-template-rows: 1fr;
}

.faq-section .product-detail-faq__panel-inner {
  overflow: hidden;
}

.faq-section .product-detail-faq__panel-inner p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary, #5a6a7a);
}

.faq-cta {
  padding: 56px 0 72px;
  background: var(--color-bg-muted, #f5f6f8);
}

.faq-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.faq-cta__title {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading, #1e2a38);
}

.faq-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-button, 4px);
  transition: background 0.2s ease;
}

.faq-cta__btn:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .faq-section .product-detail-faq__panel,
  .faq-section .product-detail-faq__arrow {
    transition: none;
  }
}

@media (max-width: 576px) {
  .faq-page {
    padding-top: 40px;
  }

  .faq-page__title {
    margin-bottom: 36px;
  }

  .faq-section + .faq-section {
    margin-top: 40px;
  }

  .faq-section .product-detail-faq__trigger {
    padding: 16px 18px;
    font-size: 15px;
  }
}
