/* JazPiper Testimonial Widget - Elementor */

/* 全局重置 */
.jazpiper-testimonial-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.jazpiper-testimonial-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 容器 */
.jazpiper-testimonial-wrapper .container {
    max-width: 100%;
    margin: 0 auto;
}

/* 见证部分 */
.jazpiper-testimonial-wrapper .testimonial-section {
    width: 100%;
}

/* 滑块包装器 */
.jazpiper-testimonial-wrapper .testimonial-slider-wrapper {
    position: relative;
    padding: 0;
}

/* Swiper 容器 */
.jazpiper-testimonial-wrapper .testimonial-swiper {
    width: 100%;
    padding: 20px 0;
}

/* 见证卡片 */
.jazpiper-testimonial-wrapper .testimonial-card {
    background: #f2f4f5;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

/* 引用图标 */
.jazpiper-testimonial-wrapper .quote-icon {
    margin-bottom: 20px;
    height: 48px;
}

.jazpiper-testimonial-wrapper .quote-icon img {
    width: 50px;
    height: 40px;
    object-fit: contain;
}

/* 见证文本 */
.jazpiper-testimonial-wrapper .testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 30px;
    flex-grow: 1;
    overflow: hidden;
}

/* 作者信息 */
.jazpiper-testimonial-wrapper .testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

/* 作者头像 */
.jazpiper-testimonial-wrapper .author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jazpiper-testimonial-wrapper .author-avatar span {
    font-size: 18px;
    font-weight: 500;
    color: #2d3748;
}

/* 作者详情 */
.jazpiper-testimonial-wrapper .author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jazpiper-testimonial-wrapper .author-name {
    font-size: 17px;
    font-weight: 500;
    color: #1a202c;
    margin: 0;
}

.jazpiper-testimonial-wrapper .author-role {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* Swiper 导航箭头 */
.jazpiper-testimonial-wrapper .swiper-button-prev,
.jazpiper-testimonial-wrapper .swiper-button-next {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

.jazpiper-testimonial-wrapper .swiper-button-prev:after,
.jazpiper-testimonial-wrapper .swiper-button-next:after {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.jazpiper-testimonial-wrapper .swiper-button-prev:hover,
.jazpiper-testimonial-wrapper .swiper-button-next:hover {
    background: #2d3748;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.jazpiper-testimonial-wrapper .swiper-button-prev:hover:after,
.jazpiper-testimonial-wrapper .swiper-button-next:hover:after {
    color: #ffffff;
}

.jazpiper-testimonial-wrapper .swiper-button-prev {
    left: 0;
}

.jazpiper-testimonial-wrapper .swiper-button-next {
    right: 0;
}

.jazpiper-testimonial-wrapper .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1200px) {
}

@media (max-width: 768px) {
    .jazpiper-testimonial-wrapper .testimonial-text {
        font-size: 15px;
    }

    .jazpiper-testimonial-wrapper .author-avatar {
        width: 50px;
        height: 50px;
    }

    .jazpiper-testimonial-wrapper .author-avatar span {
        font-size: 16px;
    }

    .jazpiper-testimonial-wrapper .author-name {
        font-size: 16px;
    }

    .jazpiper-testimonial-wrapper .author-role {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .jazpiper-testimonial-wrapper .quote-icon svg {
        width: 40px;
        height: 32px;
    }

    .jazpiper-testimonial-wrapper .testimonial-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .jazpiper-testimonial-wrapper .author-avatar {
        width: 45px;
        height: 45px;
    }

    .jazpiper-testimonial-wrapper .author-avatar span {
        font-size: 15px;
    }

    .jazpiper-testimonial-wrapper .author-name {
        font-size: 15px;
    }

    .jazpiper-testimonial-wrapper .author-role {
        font-size: 12px;
    }
}

/* Elementor 编辑器预览 */
.elementor-editor-active .jazpiper-testimonial-wrapper {
    pointer-events: auto;
}

.elementor-editor-active .jazpiper-testimonial-wrapper .swiper {
    overflow: visible;
}

.elementor-editor-active .jazpiper-testimonial-wrapper .swiper-button-prev,
.elementor-editor-active .jazpiper-testimonial-wrapper .swiper-button-next {
    pointer-events: auto;
}
