div {
  box-sizing: border-box;
}

#testimonials2-bg {
  z-index: 10;
}

.cfm-testimonials2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cfm-testimonials2.testimonials2-large {
  display: grid;
}

.cfm-testimonials2.testimonials2-small {
  display: none;
}

.t2-column {
  overflow: hidden;
  height: 31.25rem;
  position: relative;
}

/* 底部白色渐变遮罩 */
.t2-column::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 2;
}

.t2-list {
  display: flex;
  flex-direction: column;
}
.t2-list .t2-item {
  background: #eaf3ff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.05);
}
.t2-list .t2-item:hover {
  box-shadow: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.t2-item .header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.t2-item .header .avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}
.t2-item .header .name {
  font-size: 1.875rem;
  color: #000;
  font-family: var(--ff-medium);
}
.t2-item .content {
  font-size: 1.125rem;
  color: #666;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* 三列不同速度 + 错位 */
.t2-column1 .t2-list {
  animation: scroll 16s linear infinite;
}
.t2-column2 .t2-list {
  animation: scroll 20s linear infinite;
}
.t2-column3 .t2-list {
  animation: scroll 16s linear infinite;
}

/* 悬停暂停动画 */
.t2-column:hover .t2-list {
  animation-play-state: paused;
}

/* 小屏幕变成2列 */
@media (max-width: 768px) {
  .cfm-testimonials2 {
    grid-template-columns: 1fr 1fr;
  }

  .cfm-testimonials2.testimonials2-large {
    display: none;
  }

  .cfm-testimonials2.testimonials2-small {
    display: grid;
  }
}
