/* kenda_comment 组件样式 */
.kenda_comment {
  padding: 124px 0;
  background: #F8FAFC;
}

/* ========== 头部：标题+副标题 / 右上切换按钮 ========== */
.kenda_comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 49px;
}

.kenda_comment-head-main {
  flex: 1;
  min-width: 0;
}

.kenda_comment-title {
  width: fit-content;
  margin: 0;
  color: var(--text-color);
  font-family: var(--second-font-family);
  font-size: 64px;
  font-style: italic;
  font-weight: 900;
  line-height: normal;
  text-transform: capitalize;
}

.kenda_comment-subtitle {
  width: fit-content;
  margin: 38px 0 0;
  color: #475569;
  /* 副标题-大标题 */
  font-family: var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
  /* 160% */
  text-transform: capitalize;
}

/* 切换按钮：与标题首行视觉对齐 */
.kenda_comment-arrows {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  margin-top: 14px;
}

.kenda_comment-arrow {
  display: flex;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  border: 1px solid #F1F5F9;
}

.kenda_comment-arrow svg {
  width: 18px;
  height: 18px;
}

.kenda_comment-arrow:hover {
  background: #247293;
  color: #FFF;
}

.kenda_comment-arrow:active {
  background: #247293;
  color: #333;

}


/* 首尾禁用态：浅底灰箭头 */
.kenda_comment .kenda_comment-arrow.swiper-button-disabled {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  cursor: default;
}

/* ========== 轮播容器：上下留白供卡片 hover 上移 ========== */
.kenda_comment-swiper .swiper-wrapper  {
  padding-top: 65px;
}
/* ========== 评价卡片 ========== */
.kenda_comment-card {
  display: flex;
  height: 100%;
  padding: 69px 35px 69px 34px;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: 20px;
  background: #FFF;
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

/* 星级：默认用主题副色低透明度，避免硬编码浅蓝 */
.kenda_comment-stars {
  display: flex;
  gap: 8px;
  color: var(--color-second);
  opacity: 0.3;
  transition: color 0.4s ease, opacity 0.4s ease;
}

.kenda_comment-star {
  width: 16px;
  height: 16px;
}

.kenda_comment-desc {
  margin: 40px 0 0;
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
  /* 160% */
  text-transform: capitalize;
  transition: color 0.4s ease;
  height: 160px;
  overflow-y: auto;
}

/* 滚动条样式 */
.kenda_comment-desc::-webkit-scrollbar {
  width: 8px;
}

.kenda_comment-desc::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  margin: 10px 0;
}

.kenda_comment-desc::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  transition: background 0.3s;
}

.kenda_comment-desc::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.4);
}

/* 底部：字母圆 + 名称/职位 */
.kenda_comment-user {
  display: flex;
  margin-top: 40px;
  align-items: center;
  gap: 12px;
}

.kenda_comment-letter {
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-second);
  color: #FFF;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.4s ease;
}

.kenda_comment-user-info {
  min-width: 0;
}

.kenda_comment-name {
  margin: 0;
  color: var(--color-second);
  font-family: var(--font-family);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: capitalize;
  transition: color 0.4s ease;
}

.kenda_comment-job {
  margin: 2px 0 0;
  color: #475569;
  font-family: var(--font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
  transition: color 0.4s ease;
}

/* ========== hover：卡片上移 + 副色背景 + 文字转白 ========== */
.kenda_comment-card:hover {
  transform: translateY(-52px);
  background: var(--color-second);
}

.kenda_comment-card:hover .kenda_comment-stars {
  color: #FFF;
  opacity: 1;
}

.kenda_comment-card:hover .kenda_comment-desc,
.kenda_comment-card:hover .kenda_comment-name {
  color: #FFF;
}

.kenda_comment-card:hover .kenda_comment-job {
  color: #D9D9D9;
}

.kenda_comment-card:hover .kenda_comment-letter {
  background: rgba(47, 166, 217, 0.40);
}

/* ========== 响应式：仅布局变化 ========== */
@media screen and (max-width: 768px) {
  .kenda_comment-head {
    flex-direction: column;
    gap: 24px;
  }

  .kenda_comment-subtitle {
    max-width: none;
  }

  .kenda_comment-arrows {
    margin-top: 0;
  }
}