.zh-testimonial {
    --primary-color: #28a3af;
    --text-color: #333;
    --border-color: #e0e0e0;
    --bg-color: #f8fafc;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
}

.zh-testimonial .section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.zh-testimonial .section-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.zh-testimonial .section-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #9b59b6);
    border-radius: 2px;
}

.zh-testimonial .section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Owl Carousel 封装样式 */
.zh-testimonial .owl-carousel {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.zh-testimonial .testimonial-card {
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    margin: 0 10px;
    height: 460px;
    display: flex;
    flex-direction: column;
}

.zh-testimonial .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.zh-testimonial .product-image {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.zh-testimonial .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zh-testimonial .testimonial-card:hover .product-image img {
    transform: scale(1.03);
}

.zh-testimonial .product-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(40,163,175, 0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.zh-testimonial .testimonial-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.zh-testimonial .quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 10px;
}

/* 关键改进：评价文本区域 */
.zh-testimonial .testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;

    /* 设置固定高度并添加滚动 */
    max-height: 120px;
    height: 120px;
    overflow-y: auto;
    padding-right: 8px;

    /* 视觉优化 */
    background: linear-gradient(to bottom,
    rgba(248, 250, 252, 1) 0%,
    rgba(248, 250, 252, 1) 90%,
    rgba(248, 250, 252, 0.4) 100%
    );

    /* 滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #28a3af #f0f0f0;
}

/* 文本区域底部的"查看更多"渐变效果 */
.zh-testimonial .testimonial-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 8px;
    height: 20px;
    background: linear-gradient(to bottom,
    rgba(248, 250, 252, 0) 0%,
    rgba(248, 250, 252, 0.9) 100%
    );
    pointer-events: none;
}

/* 为滚动提示添加动画效果 */
.zh-testimonial .testimonial-text:hover::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Webkit浏览器滚动条样式 */
.zh-testimonial .testimonial-text::-webkit-scrollbar {
    width: 6px;
}

.zh-testimonial .testimonial-text::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.zh-testimonial .testimonial-text::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

/* 评价者信息 - 固定在底部 */
.zh-testimonial .testimonial-author {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.zh-testimonial .author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.zh-testimonial .author-company {
    font-size: 1rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.zh-testimonial .publish-date {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* 添加滚动提示按钮 */
.zh-testimonial .scroll-hint {
    position: absolute;
    bottom: 8px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    cursor: pointer;
    z-index: 5;
    animation: bounce 1.5s infinite;
}

.zh-testimonial .scroll-hint i {
    font-size: 14px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* 导航按钮样式 */
.zh-testimonial .owl-nav {
    position: absolute;
    top: -60px;
    right: 30px;
    display: flex;
    gap: 15px;
}

.zh-testimonial .owl-prev,
.zh-testimonial .owl-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-size: 20px;
}

.zh-testimonial .owl-prev:hover,
.zh-testimonial .owl-next:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    /*box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);*/
}

.zh-testimonial .owl-nav button span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.zh-testimonial .owl-dots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/*.zh-testimonial .owl-dot {*/
/*    width: 12px;*/
/*    height: 12px;*/
/*    border-radius: 50%;*/
/*    background: #bdc3c7 !important;*/
/*    margin: 0 7px;*/
/*    transition: all 0.3s ease;*/
/*}*/

.zh-testimonial .owl-dot.active {
    background: var(--primary-color) !important;
    transform: scale(1.3);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .zh-testimonial .owl-prev,
    .zh-testimonial .owl-next {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }

    .zh-testimonial .owl-nav button span {
        font-size: 1.8rem;
    }

    .zh-testimonial .testimonial-text {
        max-height: 160px;
    }
}

@media (max-width: 767px) {
    .zh-testimonial .owl-nav {
        display: none;
        /*移动端时隐藏*/
        position: static;
        justify-content: center;
        margin-top: 10px;
        margin-bottom: 25px;
    }

    .zh-testimonial .owl-prev,
    .zh-testimonial .owl-next {
        width: 55px;
        height: 55px;
        font-size: 36px;
    }

    .zh-testimonial .owl-nav button span {
        font-size: 2rem;
    }

    .zh-testimonial .testimonial-text {
        max-height: 200px;
    }
}
