﻿/* 卡片式轮播图容器 */
.card-carousel-container {
    position: relative;
    width: 100%;

    max-width: 900px; /* 增加最大宽度 */
    margin: 0 auto;
    padding: 30px 0;
}

/* 轮播图包装器 */
.card-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 30px 0;
}

/* 轮播图轨道 */
.card-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 25px; /* 增加间距 */
    padding: 0 60px; /* 增加左右内边距，为导航按钮留空间 */
    align-items: center;
}

/* 单张卡片 */
.card-slide {
    flex: 0 0 500px; /* 直接设置固定宽度 */
    min-width: 0;
    transition: all 0.4s ease;
    transform: scale(0.85);
    opacity: 0.7;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    position: relative;
}

    /* 中间激活的卡片 */
    .card-slide.active {
        transform: scale(1);
        opacity: 1;
        z-index: 2;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    }

    /* 卡片图片 - 调大尺寸 */
    .card-slide img {
        width: 100%;
        height: 280px; /* 调小高度 */
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .card-slide:hover img {
        transform: scale(1.05);
    }

/* 图片标题 */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-slide.active .slide-caption {
    opacity: 1;
}

/* 导航按钮 - 更显眼 */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; /* 加大按钮 */
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px; /* 加大字体 */
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 100;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-nav-btn:hover {
        background: white;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
        transform: translateY(-50%) scale(1.15);
        color: #007bff;
    }

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 指示器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

    .indicator.active {
        background: #007bff;
        transform: scale(1.3);
    }

    .indicator:hover {
        background: #999;
        transform: scale(1.2);
    }

/* 工厂菜单样式 */
.aboutus_bar_factory_menu {
    display: flex;
    justify-content: center;
    gap: 50px; /* 增加间距 */
    margin-bottom: 40px; /* 增加下边距 */
    position: relative;
    padding-bottom: 15px;
}

.aboutus_bar_factory_item {
    font-size: 18px; /* 加大字体 */
    color: #666;
    cursor: pointer;
    padding: 10px 20px; /* 增加内边距 */
    transition: all 0.3s;
    position: relative;
}

    .aboutus_bar_factory_item.active {
        color: #007bff;
        font-weight: bold;
    }

    .aboutus_bar_factory_item:hover {
        color: #0056b3;
        transform: translateY(-2px);
    }

.line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #007bff;
    transition: left 0.3s ease, width 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .card-carousel-container {
        max-width: 700px;
    }

    .card-slide {
        flex: 0 0 calc(100% / 2 - 20px);
    }

        .card-slide img {
            height: 300px;
        }
}

@media (max-width: 768px) {
    .card-carousel-container {
        max-width: 500px;
    }

    .card-slide {
        flex: 0 0 calc(100% - 30px);
    }

        .card-slide img {
            height: 280px;
        }

    .carousel-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .card-carousel-track {
        padding: 0 50px;
    }
}

@media (max-width: 480px) {
    .card-carousel-container {
        max-width: 100%;
        padding: 20px 10px;
    }

    .card-slide img {
        height: 250px;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .card-carousel-track {
        padding: 0 40px;
        gap: 15px;
    }

    .aboutus_bar_factory_menu {
        gap: 20px;
    }

    .aboutus_bar_factory_item {
        font-size: 16px;
        padding: 8px 15px;
    }
}
