/* 常见问题页面 */

.new-jiumao-page-faq main {
  background: #fafafa;
}

.new-jiumao-page-faq .section--filters {
  padding: 52px 0 0;
}

.new-jiumao-page-faq .jiumao-faq-heading {
  text-align: center;
}

.new-jiumao-page-faq .jiumao-faq-heading h2 {
  color: #333;
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}

.new-jiumao-page-faq .jiumao-faq-heading p {
  max-width: 520px;
  margin: 8px auto 0;
  color: #999;
  font-size: 14px;
  line-height: 1.7;
}

.new-jiumao-page-faq .cat-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.new-jiumao-page-faq .cat-bar button {
  display: inline-flex;
  height: 32px;
  min-width: 100px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.new-jiumao-page-faq .cat-bar button:hover {
  border-color: var(--red);
  color: var(--red);
}

.new-jiumao-page-faq .cat-bar .active,
.new-jiumao-page-faq .cat-bar .active:hover,
.new-jiumao-page-faq .cat-bar .active:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.new-jiumao-page-faq .jiumao-faq-questions {
  min-height: 1010px;
  padding: 40px 0 172px;
}

.new-jiumao-page-faq .jiumao-faq-questions__list {
  display: flex;
  max-width: 1280px;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
}

.new-jiumao-page-faq .jiumao-faq-questions__item {
  min-height: 164px;
  margin: 0;
  padding: 31px 44px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
  cursor: default;
  transition: box-shadow 0.2s ease;
}

.new-jiumao-page-faq .jiumao-faq-questions__item:hover {
  transform: none;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.07);
}

.new-jiumao-page-faq .jiumao-faq-questions__question {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0;
}

.new-jiumao-page-faq .jiumao-faq-questions__question span:last-child {
  flex: 1;
}

.new-jiumao-page-faq .jiumao-faq-questions__item .faq-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.new-jiumao-page-faq .faq-item .answer,
.new-jiumao-page-faq .faq-item.open .answer {
  display: block;
  margin: 14px 0 0 34px;
  color: #666;
}

.new-jiumao-page-faq .jiumao-faq-questions__answer p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.new-jiumao-page-faq .jiumao-faq-questions__answer a {
  color: var(--red);
}

.new-jiumao-page-faq .jiumao-faq-questions__item[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .new-jiumao-page-faq .section--filters {
    padding-top: 48px;
  }

  .new-jiumao-page-faq .jiumao-faq-heading h2 {
    font-size: 26px;
  }

  .new-jiumao-page-faq .cat-bar {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .new-jiumao-page-faq .cat-bar::-webkit-scrollbar {
    display: none;
  }

  .new-jiumao-page-faq .cat-bar button {
    flex: 0 0 auto;
  }

  .new-jiumao-page-faq .jiumao-faq-questions {
    min-height: 0;
    padding: 34px 0 88px;
  }

  .new-jiumao-page-faq .jiumao-faq-questions__item {
    min-height: 0;
    padding: 28px 30px 26px;
  }
}

@media (max-width: 767px) {
  .new-jiumao-page-faq .jiumao-faq-questions__question {
    cursor: pointer;
  }

  .new-jiumao-page-faq .jiumao-faq-questions__question:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
    border-radius: 8px;
  }

  .new-jiumao-page-faq .jiumao-faq-questions__answer {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      max-height 0.28s ease,
      opacity 0.28s ease,
      margin-top 0.28s ease;
  }

  .new-jiumao-page-faq .jiumao-faq-questions__item.is-mobile-faq-open .jiumao-faq-questions__answer {
    margin-top: 12px;
    max-height: 240px;
    opacity: 1;
  }
}
