/* yawei_faq 组件样式 */
.yawei-faq {
  background-color: #fff;
  padding: 0 0 74px;
  font-family: 'Arimo', var(--font-family);
}

.yawei-faq .container {
  padding-left: 15px;
  padding-right: 15px; 
}

@media (min-width: 1900px) {
  .yawei-faq .container {
    max-width: calc(100% - 418px);
    padding-left: 0;
    padding-right: 0;
  }
}



/* 顶部Swiper标题导航 */
.yawei-faq__title-navigator {
  position: relative;
  border-bottom: 1px solid #e4e4e4;
}

.yawei-faq-title-swiper {
  /* overflow: visible; */
  /* padding: 0 48px; */
}

.yawei-faq-title-swiper .swiper-wrapper {
  align-items: stretch;
}

.yawei-faq-title-swiper .swiper-slide {
  width: auto;
  /* flex-shrink: 0; */
  display: flex;
  justify-content: center;
  
}

.yawei-faq-title-swiper .swiper-slide:last-child {
  margin-right: 0;
}

.faq-title-card {
  color: #B1B1B1;
  font-family:  var(--title-font-family);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4em; /* 140.909% */
  letter-spacing: -0.55px;
  cursor: pointer;
  padding: 15px 0 24px;
  display: inline-block;
  text-align: center;
}

.faq-title-card:hover {
  color: #080808;
}

.faq-title-card.active {
  color: #080808;
  border-bottom: 1px solid #1D1D1D;
}

.faq-title-card .title-text {
  font-family: 'Arimo', var(--title-font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #B1B1B1;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.faq-title-card:hover .title-text {
  color: #080808;
}

.faq-title-card.active .title-text {
  color: #080808;
}

/* Swiper导航箭头 */
.yawei-faq-prev,
.yawei-faq-next {
  position: absolute;
  width: 40px;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  background-color: #fff;
  cursor: pointer;
  top: auto;
  bottom: 0px;
}

.yawei-faq-prev::after,
.yawei-faq-next::after {
  color: #a9a9a9;
  font-size: 16px;
  font-weight: bold;
}
.yawei-faq-prev::after{
  left: 0;
}

.yawei-faq-next::after{
  right: 0;
}


.yawei-faq-prev:hover::after,
.yawei-faq-next:hover::after{
  color: #080808;
}



.yawei-faq-prev {
  left: 0;
  justify-content: flex-start;
}

.yawei-faq-next {
  right: 0;
  justify-content: flex-end;
}

/* 当前标题高亮样式 */
.yawei-faq__category-item.in-view .faq-title-card {
  background: #1950A6;
}

.yawei-faq__category-item.in-view .faq-title-card .title-text {
  color: #FFFFFF;
}

/* 第一层：FAQ分类样式 */
.yawei-faq__categories {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.yawei-faq__category-item {
  width: 100%;
  border: none;
}


.yawei-faq__category-header.active .yawei-faq__category-title {
  color: #0A0A0A;
}

.yawei-faq__category-header .yawei-faq__category-arrow {
  color: #0A0A0A;
}

/* 分类头部 */
.yawei-faq__category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 66px 0 25px; 
  cursor: pointer;
  transition: all 0.3s ease;
}

.yawei-faq__category-title {
  font-family:  var(--title-font-family);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.4em;
  letter-spacing: -0.01em;
  margin: 0;
  transition: color 0.3s ease;
  color: #9C9C9C;
}

.yawei-faq__category-arrow {
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #9C9C9C;
}

/* 激活状态的箭头旋转 */
.yawei-faq__category-header.active .yawei-faq__category-arrow {
  transform: rotate(90deg);
}

/* 分类分隔线 */
.yawei-faq__category-divider {
  width: 100%;
  height: 3px;
  margin-bottom: 0;
  background-color: #9C9C9C;
}

/* 激活状态的分隔线 */
.yawei-faq__category-header.active + .yawei-faq__category-divider {
  background-color: #1D1D1D;
}


/* 第二层：问答列表 */
.yawei-faq__questions {
  padding: 48px 0 0 0;
  gap: 0;
}

.yawei-faq__question-item {
  border-bottom: 1px solid #d6d6d6;
  margin-bottom: 0;
}

/* 问题头部 */
.yawei-faq__question-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none ; 
}

.yawei-faq__question-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.yawei-faq__question-title {
  font-family:  var(--title-font-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.38em;
  letter-spacing: -0.18px;
  margin: 0;
  color: #0A0A0A;
}

/* 问答箭头图标 */
.yawei-faq__question-icon-wrapper {
  position: relative;
  width: 18px;
  height: 25px;
  flex-shrink: 0;
  font-size: 18px; /* 控制图标大小 */
}

.yawei-faq__question-arrow {
  position: absolute;
  top: 0;
  left: 0;
  color: #a9a9a9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.yawei-faq__question-arrow.iconfont{
  color: #4E4E4E;
  font-size: 18px;
  font-weight: 700;
  width: 100%;
}
.yawei-faq .yawei-faq__answer{
  padding-right: 92px;

}
.yawei-faq__question-arrow.iconfont-jian {
  opacity: 0;
  /* transform: rotate(-90deg); */
}

/* 激活状态的箭头旋转和显隐 */
.yawei-faq__question-header.active .yawei-faq__question-arrow.iconfont-jia {
  opacity: 0;
  transform: rotate(90deg);
}

.yawei-faq__question-header.active .yawei-faq__question-arrow.iconfont-jian {
  opacity: 1;
  transform: rotate(0deg);
}

/* 答案区域 */
.yawei-faq__answer {
  display: none;
}

.yawei-faq__answer-content {
  padding: 0 0 32px 0;
}

.yawei-faq__answer-content p {
  font-family: 'Arimo', var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em;
  letter-spacing: -0.01em;
  color: #878787;
  margin: 0;
}
.yawei-faq .yawei-faq-title-swiper-wrapper{
  padding: 0 40px;
  position: relative;
}
.yawei-faq .swiper-button-prev.swiper-button-disabled,
.yawei-faq .swiper-button-next.swiper-button-disabled{
  opacity: 1;
  color: #222;
}
/* 响应式设计 */
@media (max-width: 1200px) {
  .yawei-faq {
    /* padding: 60px 0; */
  }
  
  .yawei-faq__title-navigator {
    /* margin-bottom: 50px; */
    /* padding: 0 40px; */
  }
  
  .faq-title-card {
    /* min-width: 180px; */
    height: 56px;
    padding: 14px 0;
    line-height: 22px;
  }
  
  .faq-title-card .title-text {
    font-size: 15px;
  }
  
  .yawei-faq__category-title {
    font-size: 32px;
  }
  
  .yawei-faq__questions {
    padding: 44px 0 0 0;
  }
}

@media (max-width: 991px) {
  .yawei-faq {
    /* padding: 50px 0; */
  }
  
  .yawei-faq__title-navigator {
    /* margin-bottom: 40px; */
    /* padding: 0 35px; */
  }
  
  .faq-title-card {
    /* min-width: 160px; */
    height: 52px;
    padding: 12px 0;
    line-height: 16px;
  }
  
  .faq-title-card .title-text {
    font-size: 14px;
  }
  
  .yawei-faq-prev,
  .yawei-faq-next {
    width: 36px;
  }
  
  .yawei-faq-prev i,
  .yawei-faq-next i {
    font-size: 14px;
  }
  
  .yawei-faq__category-title{
    font-size: 28px;
  }
  
  .yawei-faq__questions {
    padding: 34px 0 0 0;
  }
  
  .yawei-faq__answer-content p {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .yawei-faq {
    padding: 20px 0;
  }
  .yawei-faq .yawei-faq-title-swiper-wrapper{
    padding: 0 20px;
  }
  .yawei-faq__title-navigator {
    /* margin-bottom: 20px; */
    /* padding: 0 25px; */
  }
  
  .yawei-faq-title-swiper .swiper-slide {
    margin-right: 20px;
  }
  
  .faq-title-card {
    /* min-width: 140px; */
    height: 36px;
    padding: 10px 0;
    font-size: 14px;
  }
  
  .faq-title-card .title-text {
    font-size: 13px;
  }
  
  .yawei-faq-prev,
  .yawei-faq-next {
    width: 20px;
  }
  
  .yawei-faq-prev::after,
  .yawei-faq-next::after {
    font-size: 12px;
    color:#222;
  }
  
  .yawei-faq__category-title{
    font-size: 20px;
  }
  
  .yawei-faq__category-header,
  .yawei-faq__question-header {
    padding: 10px 0;
  }
  
  .yawei-faq__questions {
    padding: 14px 0 0 0;
  }
  .yawei-faq__question-title{
    line-height: normal;
  }
  
  .yawei-faq__answer-content {
    padding: 0 0 10px 0;
  }
  
  .yawei-faq__answer-content p {
    font-size: 16px;
  }
  
  .yawei-faq__category-arrow {
    font-size: 16px;
  }
  .yawei-faq__question-arrow {
    font-size: 11px;
  }
  .yawei-faq__question-arrow.iconfont{
    font-size: 14px;
    color: #000;
  }
  .yawei-faq-title-swiper{
    /* padding: 0 20px; */
  }
  .yawei-faq__answer-content p{
    line-height: normal;
  }
  .yawei-faq .yawei-faq__answer{
    padding-right: 30px;
  }
  .yawei-faq__category-divider{
    height: 2px;
  }
  .yawei-faq__question-arrow{
    top: 4px;
  }
  .yawei-faq__category-header .yawei-faq__category-arrow{
    display: none;
  }
}

