/* 轮播容器 */
.testimonial-carousel-container {
    margin: 0 auto;
    background-color: #141414;
    color: #ffffff; 
    box-sizing: border-box;
}

/* 标题样式 */
.testimonial-carousel-title {
    text-align: center;
    font-size: 50px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #ffffff; 
}

/* 轮播包装器 */
.testimonial-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

/* 轮播轨道 */
.testimonial-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 7px;
}

/* 轮播项 - 2行网格布局 */
.testimonial-carousel-item {
 
  width: calc(100% / 8 - 7px); /* 桌面端每行8个 */
  flex-shrink: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
}

/* 评价卡片 */
.testimonial-card {
    background-color: #212121;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 纯文本评价卡片 */
.testimonial-card.text-only {
    padding: 20px;
    justify-content: center;
    text-align: center;
    height: 100%;
}

/* 图片评价卡片 */
.testimonial-card.image-only {
    aspect-ratio: 1 / 1;
}

.testimonial-card.image-only img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 星级评分 */
.testimonial-stars {
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
    color: #444444;
    position: relative;
    display: inline-table;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-stars::before {
    /* content: '★'; */
    position: absolute;
    top: 0;
    left: 0;
    color: #1974F9;
    overflow: hidden;
}

.testimonial-stars[data-rating="1"]::before {   content: '★';}
.testimonial-stars[data-rating="2"]::before {   content: '★★';}
.testimonial-stars[data-rating="3"]::before {   content: '★★★';}
.testimonial-stars[data-rating="4"]::before {   content: '★★★★';}
.testimonial-stars[data-rating="5"]::before {   content: '★★★★★';}

/* 评价内容 */
.testimonial-content {
    font-size: 0.95rem;
    line-height: 1;
    margin-bottom: 16px;
    color: #e0e0e0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

/* 评价信息 */
.testimonial-meta {
    font-size: 0.85rem;
    color: #999999;
}

/* 导航按钮 */
.testimonial-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #141414;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-carousel-nav:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-carousel-nav.prev {
    left: 10px;
}

.testimonial-carousel-nav.next {
    right: 10px;
}

/* 指示器 */
.testimonial-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.testimonial-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #555555;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicator.active {
    background-color: #ffffff;
    width: 24px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .testimonial-carousel-item {
        min-width: calc(100% / 4 - 12px); /* 平板端每行4个 */
    }
    
    .testimonial-carousel-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .testimonial-carousel-item {
      
        min-width: calc(100% / 3 - 5px);
    }
    
    .testimonial-carousel-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .testimonial-carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .testimonial-link{
        height: 100%;
    }
    .testimonial-card.text-only {
        padding: 16px;
    }

    .testimonial-meta{
        font-size: 12px;
    }
    
    .testimonial-content {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }    
    .testimonial-stars{
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    .testimonial-card.image-only{
        aspect-ratio: unset;
    }

    .testimonial-carousel-container {
       margin-top: 0px !important;
       margin-bottom: 0px !important;
       padding-top: 40px !important;
       padding-bottom: 40px !important;
    }
}

 
