/**
 * product-faq.css
 * 产品详情页 FAQ 模块样式，展示效果对齐 moonlitpetfriends 的 Common Questions 手风琴
 *
 * @copyright  2024 beikeshop.com - All Rights Reserved
 */

.product-faq-section {
  --pf-color-foreground: 18, 18, 18;
  --pf-border: rgba(var(--pf-color-foreground), 0.08);
  --pf-accent: #c96b55;
  position: relative;
  z-index: 0;
  padding: 27px 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--pf-border);
}

@media screen and (min-width: 750px) {
  .product-faq-section {
    padding: 36px 0;
  }
}

.product-faq__wrapper {
  margin: 0 auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  max-width: 73.4rem;
}

.product-faq__header {
  text-align: center;
  word-break: break-word;
}

.product-faq__heading {
  margin: 0 0 2rem;
  font-weight: 700;
  line-height: 1.2;
  font-size: calc(1.375rem + 1.5vw);
  color: #111;
}

@media screen and (min-width: 750px) {
  .product-faq__heading {
    margin-bottom: 3rem;
    font-size: 2.25rem;
  }
}

/* 手风琴 */
.product-faq__accordion {
  margin: 0;
  border-top: 1px solid var(--pf-border);
  border-bottom: 1px solid var(--pf-border);
}

.product-faq__accordion + .product-faq__accordion {
  margin-top: 0;
  border-top: none;
}

.product-faq__summary {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.2;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}

/* 隐藏浏览器默认三角 */
.product-faq__summary::-webkit-details-marker {
  display: none;
}

.product-faq__summary::marker {
  content: '';
}

.product-faq__summary:hover .product-faq__title {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.product-faq__title {
  display: inline-block;
  max-width: calc(100% - 3rem);
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111;
  word-break: break-word;
}

@media screen and (min-width: 750px) {
  .product-faq__title {
    font-size: 1.25rem;
  }
}

.product-faq__caret {
  flex: 0 0 auto;
  width: 1rem;
  height: 0.6rem;
  color: #111;
  transition: transform 0.2s ease;
}

.product-faq__details[open] .product-faq__caret {
  transform: rotate(180deg);
}

.product-faq__content {
  margin-bottom: 1.5rem;
  padding: 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4a4a4a;
  word-break: break-word;
  overflow-x: auto;
}

.product-faq__content > :last-child {
  margin-bottom: 0;
}

.product-faq__content p {
  margin: 0 0 0.75rem;
}

.product-faq__content ul,
.product-faq__content ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.product-faq__content li {
  margin-bottom: 0.35rem;
}

.product-faq__content strong {
  color: #111;
}

.product-faq__content img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 749px) {
  .product-faq__wrapper {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}
