/* ========================================
   俊骅FAQ组件样式
======================================== */

.junhua-faq-section {
  width: 100%;
  /* background-color: var(--bg-color-white); */
  padding-bottom: var(--spacing-9xl);
}

.junhua-faq-container {
  width: 100%;
}

/* ========================================
   标题区域
======================================== */
.junhua-faq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4xl);
  margin-bottom: var(--spacing-7xl);
}

.junhua-faq-title {
  font-family: var(--font-family);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-subtitle);
  color: var(--text-color-strong);
  text-align: center;
  margin: 0;
}

.junhua-faq-title-highlight {
  color: var(--primary-color);
}

.junhua-faq-subtitle {
  font-family: var(--font-family);
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-subtitle);
  color: var(--text-color-strong);
  text-align: center;
  margin: 0;
}

/* ========================================
   FAQ内容区域
======================================== */
.junhua-faq-content {
  width: 100%;
}

.junhua-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

/* ========================================
   FAQ项目
======================================== */
.junhua-faq-item {
  width: 100%;
}

.junhua-faq-item-wrapper {
  background-color: var(--bg-color-white);
  border: var(--border-width-thin) solid var(--border-color-lightest);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.junhua-faq-question-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-3xl) var(--spacing-4xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.junhua-faq-question {
  font-family: var(--font-family);
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-subtitle);
  color: var(--text-color-strong);
  margin: 0;
  flex: 1;
  transition: color var(--transition-base);
}

.junhua-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--spacing-2xl);
  transition: transform var(--transition-base);
}

.junhua-faq-icon svg {
  width: 100%;
  height: 100%;
  color: var(--text-color-strong);
  transition: color var(--transition-base);
}

.junhua-faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) ease-out,
    padding var(--transition-base) ease-out;
}

.junhua-faq-answer {
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-subtitle);
  color: var(--text-color-gray-600);
  margin: 0;
  padding: 0 var(--spacing-4xl) var(--spacing-3xl);
}

/* ========================================
   激活状态
======================================== */
.junhua-faq-item.is-active .junhua-faq-question {
  color: var(--primary-color);
}

.junhua-faq-item.is-active .junhua-faq-icon {
  transform: rotate(180deg);
}

.junhua-faq-item.is-active .junhua-faq-icon svg {
  color: var(--primary-color);
}

.junhua-faq-item.is-active .junhua-faq-answer-wrapper {
  max-height: 500px;
}

@media screen and (max-width: 576px) {
  .junhua-faq-grid {
    grid-template-columns: 1fr;
  }
}
