.business-showcase-section {
    padding: 100px 0;
    background-image: url(../images/co_bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    touch-action: manipulation;
}

/* 业务标签导航 */
.business-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 15px;
    flex-wrap: nowrap;
}

.tab-item {
    flex: 1;
    padding: 17px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tab-item:hover {
    background: #e8e8e8;
    color: #333;
}

.tab-item.active {
    background: #197dd0;
    border: none;
    color: #fff;
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tab-item.active:hover::before {
    left: 100%;
}

/* 业务内容区域 */
.business-content {
    position: relative;
    width: 100%;
}

.business-item {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.business-item.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 业务图片区域 */
.business-image-area {
    position: relative;
    height: 390px;
    border-radius: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.main-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.business-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1); */
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* .business-image-area:hover .business-main-img {
    transform: scale(1.05);
} */

/* 业务内容区域 */
.business-content-area {
    padding-left: 40px;
}

.business-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
}

.business-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ccc;
    border-radius: 2px;
}

/* 文本滑动器 */
.business-text-slider {
    position: relative;
    height: 220px;
    margin-bottom: 30px;
    touch-action: pan-y;
    /* 只允许垂直滑动，防止与页面水平滑动冲突 */
    overflow-y: auto;
    /* 垂直方向超出时显示滚动条 */
    overflow-x: hidden;
    /* 水平方向隐藏滚动条 */
    padding-right: 10px;
    /* 为滚动条留出空间 */
}

.text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 10px);
    /* 减去滚动条宽度 */
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    /* 防止非激活状态的滑块接收触摸事件 */
    will-change: transform, opacity;
    /* 优化动画性能 */
    filter: blur(1px);
}

.text-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    /* 只有激活的滑块可以接收触摸事件 */
    filter: blur(0);
}

/* 淡出动画 */
.text-slide.fade-out {
    opacity: 0;
    transform: translateY(-15px) scale(1.02);
    transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.text-slide p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0;
    text-align: justify;
    word-break: break-word;
    /* 确保长单词能够换行 */
    overflow-wrap: break-word;
    /* 防止文字溢出 */
}

/* 滑动控制按钮 */
.slide-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.next-slide-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.next-slide-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(25, 125, 208, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.next-slide-btn:hover {
    color: #197dd0;
    transform: translateX(3px) scale(1.05);
}

.next-slide-btn:hover::before {
    width: 100%;
    height: 100%;
}

.next-slide-btn:active {
    transform: translateX(2px) scale(0.98);
}

/* 按钮点击时的涟漪效果 */
.next-slide-btn.clicked {
    animation: buttonRipple 0.6s ease-out;
}

@keyframes buttonRipple {
    0% {
        transform: translateX(3px) scale(1.05);
    }
    50% {
        transform: translateX(5px) scale(1.1);
    }
    100% {
        transform: translateX(3px) scale(1.05);
    }
}

/* 响应式设计 */
@media (max-width: 991px) {
    .business-content-area {
        padding-left: 0;
        margin-top: 40px;
    }

    .business-title {
        font-size: 24px;
        text-align: center;
    }

    .business-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .business-image-area {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .business-showcase-section {
        padding: 60px 0;
    }

    .business-tabs {
        margin-bottom: 40px;
        gap: 10px;
    }

    .tab-item {
        padding: 12px 20px;
        font-size: 14px;
    }

    .business-title {
        font-size: 20px;
    }

    .business-image-area {
        height: 250px;
    }

    .text-slide p {
        font-size: 14px;
        line-height: 1.7;
        padding: 0 5px;
    }

    .business-text-slider {
        height: 180px;
        margin-bottom: 25px;
    }

    .business-content-area {
        padding: 0 15px;
    }
}

@media (max-width: 575px) {
    .business-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .tab-item {
        width: 90%;
        max-width: 280px;
        text-align: center;
        flex: none;
    }

    .business-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .business-image-area {
        height: 200px;
    }

    .text-slide p {
        font-size: 13px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .business-text-slider {
        height: 160px;
        margin-bottom: 20px;
    }

    .business-content-area {
        padding: 0 10px;
    }
}

@media (max-width: 400px) {
    .business-tabs {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .tab-item {
        width: 85%;
        max-width: 250px;
        font-size: 12px;
        margin: 0 auto;
        flex: none;
    }

    .business-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .business-image-area {
        height: 180px;
    }

    .text-slide p {
        font-size: 12px;
        line-height: 1.5;
        padding: 0 8px;
    }

    .business-text-slider {
        height: 140px;
        margin-bottom: 15px;
    }

    .business-content-area {
        padding: 0 8px;
    }

    .slide-controls {
        margin-top: 15px;
    }
}

/* 移动端通用修复 */
@media (max-width: 768px) {
    .business-showcase-container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .business-tabs {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .tab-item {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 移动端文本滑动器优化 */
    .business-text-slider {
        touch-action: pan-y pinch-zoom;
        /* 允许垂直滑动和缩放，禁止水平滑动 */
        -webkit-touch-callout: none;
        /* 禁用长按菜单 */
        -webkit-user-select: none;
        /* 禁用文本选择 */
        user-select: none;
        overflow-y: auto;
        /* 垂直方向超出时显示滚动条 */
        overflow-x: hidden;
        /* 水平方向隐藏滚动条 */
    }

    .text-slide {
        -webkit-transform: translateY(20px) scale(0.98);
        /* 兼容性 */
        transform: translateY(20px) scale(0.98);
        -webkit-transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        -webkit-filter: blur(1px);
        filter: blur(1px);
    }

    .text-slide.active {
        -webkit-transform: translateY(0) scale(1);
        transform: translateY(0) scale(1);
        -webkit-filter: blur(0);
        filter: blur(0);
    }

    .text-slide.fade-out {
        -webkit-transform: translateY(-15px) scale(1.02);
        transform: translateY(-15px) scale(1.02);
        -webkit-transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
        transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文字切换动画关键帧 */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideOutToTop {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(1.05);
        filter: blur(1px);
    }
}

/* 备选动画方案 - 左右滑动 */
.text-slide.slide-animation {
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.text-slide.slide-animation.active {
    transform: translateX(0);
}

.text-slide.slide-animation.fade-out {
    transform: translateX(-50px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* 备选动画方案 - 旋转淡入 */
.text-slide.rotate-animation {
    transform: rotateX(15deg) translateY(20px);
    transform-origin: center top;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-slide.rotate-animation.active {
    transform: rotateX(0deg) translateY(0);
}

.text-slide.rotate-animation.fade-out {
    transform: rotateX(-10deg) translateY(-15px);
    transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.business-item.active {
    animation: fadeInUp 0.6s ease;
}

/* 加载动画 */
.business-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

.business-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 自定义滚动条样式 */
.business-text-slider::-webkit-scrollbar {
    width: 6px;
}

.business-text-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.business-text-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.business-text-slider::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Firefox 滚动条样式 */
.business-text-slider {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}