/* 默认PC视图显示，移动端隐藏 */
.mobile-view {
    display: none;
}

.pc-view {
    display: block;
}

/* 小于760px切换显示 */
@media (max-width:760px) {
    .pc-view {
        display: none !important;
    }

    .mobile-view {
        display: block !important;
    }
}

.carousel-wrap {
    position: relative;
}

@media (max-width:760px) {
    .carousel .carousel-item {
        
    }
	   .text-center{
		   height:38px;
	}
	.carousel-indicators{
		margin-bottom:10px;
	}
}

.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.carousel-item .row{
	margin-left:0px;
}
.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(100);
}

.carousel-indicators {
    bottom: -15px;
	z-index: 8;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fbab008c;
    border: none;
}
.text-center{
    height:48px;	
	text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /*! autoprefixer: off */
    -webkit-box-orient: vertical;
    /*! autoprefixer: on */
    overflow: hidden;
    line-height: 1.4; /* 设置行高，控制两行高度 */
}
.carousel-indicators .active {
    background: #FBAB00;
}

.carousel-item {
    padding: 10px 0;
}

.certificate-list.row,
.patent-list.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.certificate-list.row>li,
.patent-list.row>li {
    padding: 0 15px;
    margin-bottom: 24px;
    list-style: none;
}


/* PC、移动端轮播容器 */
.carousel-wrap,
.carousel {
    position: relative;
}

/* 默认箭头 */
.custom-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #FBAB00;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8;
}

.custom-carousel-btn .icon {
    width: 18px;
    height: 18px;
}

/* 左箭头：逆时针旋转90度 */
.prev-icon {
    transform: rotate(-90deg);
}

/* 右箭头：顺时针旋转90度 */
.next-icon {
    transform: rotate(90deg);
}

.custom-carousel-btn:hover {
    background-color: #e69a00;
}

/* 清除bootstrap默认背景渐变 */
.carousel-control-prev,
.carousel-control-next {
    background-image: none !important;
}

/* 控制PC/移动端视图切换 */
@media (min-width:760px) {
    .mobile-view {
        display: none;
    }
}

@media (max-width:760px) {
    .pc-view {
        display: none;
    }
}

/* ==========================================================
   无缝轮播（纯 JS 实现，不再依赖 Bootstrap carousel 的 JS）
   ========================================================== */
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* 高度由 JS 按当前页（图片 + 文字）写入，实现自适应 */
    height: auto;
    transition: height 0.35s ease;
}

/* 轮播轨道：所有页面横向排列，靠 transform 位移 */
.carousel-track {
    display: flex;
    align-items: flex-start;
    width: 100%;
    will-change: transform;
}

.carousel-track.is-animating {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.35, 1);
}

/* 覆盖 Bootstrap 对 .carousel-item 的 display/float/transform 控制 */
.carousel-track>.carousel-item {
    display: block !important;
    float: none !important;
    flex: 0 0 100%;
    width: 100%;
    margin-right: 0 !important;
    position: relative;
    transform: none !important;
    transition: none !important;
    backface-visibility: hidden;
}

.carousel-indicators li {
    cursor: pointer;
}

/* 超出可见窗口（默认 5 个）的指示点隐藏，由 JS 控制 dot-hidden */
.carousel-indicators li.dot-hidden {
    display: none !important;
}

/* 左右箭头常驻显示 */
.carousel .carousel-control-prev.custom-carousel-btn,
.carousel .carousel-control-next.custom-carousel-btn {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 移动端：左右箭头放到轮播图左右两侧外面 */
@media (max-width:760px) {
    .carousel-wrap {
        padding: 0 41px;
    }

    .carousel-control-prev.custom-carousel-btn,
    .carousel-control-next.custom-carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-control-prev.custom-carousel-btn {
        left: -38px;
    }

    .carousel-control-next.custom-carousel-btn {
        right: -38px;
    }
}

/* 只有一页时隐藏指示点与箭头 */
.carousel.is-single .carousel-indicators,
.carousel.is-single .custom-carousel-btn {
    display: none;
}

/* ==========================================================
   分页器：页数 > data-max-dots 时，整条分页器平滑滑动
   ========================================================== */
.carousel-indicators.is-windowed {
    overflow: hidden;
    justify-content: flex-start;
    -webkit-mask-image: linear-gradient(to right,
            transparent 0,
            #000 12px,
            #000 calc(100% - 12px),
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0,
            #000 12px,
            #000 calc(100% - 12px),
            transparent 100%);
}

.carousel-indicators .dots-track {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.35, 1);
    will-change: transform;
}

.carousel-indicators .dots-track>li {
    flex: 0 0 auto;
}