/* 客户评价区块完整样式 - 文案左对齐 + 统一卡片高度 */
:root {
  /* 你的项目主色，已按你提供的数值设置 */
  --color-primary: #374c83;    
  --title-text-color: #333333;
}

.testimonial-section {
  padding: 60px 0;
}

.testimonial-section .section-title .section-main-title h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 42px;
  text-align: center; /* 大标题保持居中 */
}

.testimonial-section .section-sub-title {
  position: relative;
  display: inline-block;
}

.testimonial-section .section-sub-title h4 {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 7px;
  position: relative;
  padding: 0 50px 0;
  text-align: center; /* 副标题保持居中 */
}

.testimonial-section .section-sub-title::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  left: 0;
  top: 9px;
}

.testimonial-section .section-sub-title::after {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  left: -12px;
  top: 17px;
}

.testimonial-section .section-sub-title h4::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  right: 0;
  top: 9px;
}

.testimonial-section .section-sub-title h4::after {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  right: -12px;
  top: 17px;
}

/* 核心1：统一卡片高度 + Flex内部布局 + 文案左对齐 */
.testi-itmes-box {
  background: #f2f2f2;
  padding: 50px 35px 26px;
  position: relative;
  border-radius: 3px;
  z-index: 1;
  margin: 20px;
  height: 460px; /* 统一高度，可根据内容调整 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left; /* 卡片内所有文本默认左对齐 */
}

.testi-itmes-box::before {
  position: absolute;
  content: "";
  height: 35px;
  width: 40px; 
  background: #f2f2f2; 
  bottom: -20px;
  left: 40px;
  clip-path: polygon(82% 41%, 106% 40%, 50% 100%, 0% 42%); 
  z-index: -1;
  transition: .5s;
}

.testi-itmes-box:hover:before{
  background: var(--color-primary);
} 

.testi-itmes-box::after{
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background:var(--color-primary);
  clip-path: polygon(50% 0,50% 0,50% 50%,50% 100%,50% 100%,50% 50%);
  border-radius: 3px;
  z-index: -1;
  transition: .5s;
}

.testi-itmes-box:hover::after{
  clip-path: polygon(25% -70%,75% -70%,120% 50%,75% 170%,25% 170%,-20% 50%);
}

/* 核心2：评价文本左对齐（取消两端对齐） */
.testi-content {
  flex: 1;
  overflow-y: auto; /* 内容过多时滚动，不想滚动可改hidden */
  margin-bottom: 25px;
}

.testi-content p {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 25px;
  transition: .5s;
  text-align: left; /* 强制左对齐，取消两端对齐 */
  text-align-last: left; /* 最后一行也左对齐 */
}

.testi-itmes-box:hover .testi-content p{
  color: #ffffff;
}

.testi-thumb {
  float: left;
  margin-right: 24px;
  margin-top: -16px;
  border-radius: 50%;
  padding: 4px;
  border: 2px dashed color-mix(in srgb, var(--color-primary) 60%, transparent) ;
}

/* 标题区域固定在底部，左对齐 */
.testi-title {
  margin-top: auto;
}

.testi-title h4 {
  font-size: 20px;
  line-height: 28px;
  color: var(--title-text-color);
  font-weight: 500;
  transition: .5s;
  text-align: left; /* 标题左对齐 */
}

.testi-itmes-box:hover .testi-title h4{
  color: #ffffff;
}

.testi-title span {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  transition: .5s;
  text-align: left; /* 副标题左对齐 */
}

.testi-itmes-box:hover .testi-title span{
  color: #d8d8d8;
}

.testi-icon {
  position: absolute;
  right: 30px;
  bottom: -6px;
  font-size: 64px;
  font-family: monospace;
  color: color-mix(in srgb, var(--color-primary) 50%, transparent) ;
  opacity: 0.400;
  transition: .5s;
}

.testi-itmes-box:hover .testi-icon i{
  color: #f2f2f2;
}

/* owl carousel */
.testimonial-section .owl-carousel .owl-dots.disabled, .owl-carousel .owl-nav.disabled {
  display: none;
}

/* 移动端适配 */
@media only screen and (min-width: 320px) and (max-width: 479px) {
  .testimonial-section .testi-thumb {
    display: none;
  }

  .testimonial-section .section-sub-title h4 {
		font-size: 22px;
	}

	.testimonial-section .section-title .section-main-title h2 {
    font-size: 28px;
    line-height: 28px;
	}	
  /* 移动端统一高度 */
  .testi-itmes-box {
    height: 500px; /* 移动端适当调高 */
  }
  /* 移动端文本保持左对齐 */
  .testi-content p {
    text-align: left;
  }
}