
::-webkit-scrollbar {
  width:6px;
  height:4px;
}
::-webkit-scrollbar-thumb {
  background-color:#ddd;
}
body {
  opacity:0;
}
body.front {
  opacity:1;
}
body.make {
  opacity:1;
}
.banner_text_effect .swiper-button-next, .banner_text_effect .swiper-button-prev {
  color:#fff;
}
.banner_text_effect .swiper-button-next:after, .banner_text_effect .swiper-button-prev:after {
  color:#fff;
  font-size:20px;
}
.banner_text_effect.no-prev-next .swiper-button-prev {
  display:none !important;
}
.banner_text_effect.no-prev-next .swiper-button-next {
  display:none !important;
}
.banner_text_effect img {
    /* filter: brightness(0.5); */
}
.banner_text_effect span {
  opacity:0;
  display:inline-block;
  min-width:0.5em;
  letter-spacing:0.1em;
  text-transform:uppercase;
}
.banner_text_effect .swiper-slide-active span {
  animation:fadeIn 1.5s 0.3s both;
}
.banner_text_effect.fadeInUp .swiper-slide-active span {
  animation:fadeInUp 1.5s  0.3s both;
}
.banner_text_effect.fadeInDown .swiper-slide-active span {
  animation:fadeInDown 1.5s  0.3s both;
}
.banner_text_effect.fadeInLeft .swiper-slide-active span {
  animation:fadeInLeft 1.5s  0.3s both;
}
.banner_text_effect.fadeInRight .swiper-slide-active span {
  animation:fadeInRight 1.5s  0.3s both;
}


.auto-category {
  background-color:#eee;
}
.auto-category .auto-category-container {
  width:90%;
  max-width:1210px;
  display:flex;
  margin-left:auto;
  margin-right:auto;
}
.auto-category .auto-category-container .category-item {
  flex:1;
}
.auto-category .auto-category-container .category-item a {
  line-height:4;
  font-size:16px;
  color:#333;
  text-align:center;
  border-left:1px solid #ddd;
  display:block;
  position:relative;
  overflow:hidden;
  text-indent:-2222em;
}
.auto-category .auto-category-container .category-item:last-child a {
  border-right:1px solid #ddd;
}

.auto-category .auto-category-container .category-item a:before{
  content:attr(data-text);
  display:block;
  position:absolute;
  top:0;
  color:#333;
  transition:1s;
  width:100%;
  background-color:#eee;
  text-indent:0;
}
.auto-category .auto-category-container .category-item a:after {
  content:attr(data-text);
  display:block;
  position:absolute;
  top:100%;
  color:red;
  transition:1s;
  width:100%;
  background-color:var(--c);
  color:#fff;
  text-indent:0;
}
.auto-category .auto-category-container .category-item a:before {
  transition:1s;
}
.auto-category .auto-category-container .category-item a:after {
  transition:1s;
}
.auto-category .auto-category-container .category-item a:hover:before {
  top:-100%;
}
.auto-category .auto-category-container .category-item a:hover:after {
  top:0;
  transition:1s;
}

.auto-category .auto-category-container .category-item a.category-current:before {
  top:-100%;
  transition:1s 0.1s;
}
.auto-category .auto-category-container .category-item a.category-current:after {
  top:0;
  transition:1s 0.1s;
}
/*首页主题团建CSS开始*/
/* 整体淡入动画 */
.web_1 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 1550px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.con_1 {
    width: 100%;
    overflow: hidden;
}

    .con_1 ul {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -12.5px;
        padding: 0;
        list-style: none;
        width: calc(100% + 25px);
    }

        .con_1 ul li {
            width: 25%;
            height: 260px;
            padding: 0 12.5px 25px;
            margin-bottom: 0;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            box-sizing: border-box;
        }

            .con_1 ul li img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

.con_txt {
    width: calc(100% - 25px);
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    left: 12.5px;
    bottom: 25px;
    color: #fff;
    font-family: "微软雅黑";
    box-sizing: border-box;
    overflow: hidden;
    transition: height 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 确保内容垂直居中 */
}

    .con_txt h3 {
        font-size: 20px;
        font-weight: 100;
        text-align: center;
        margin: 0;
        padding: 0 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
        transition: all 0.4s ease;
    }

    .con_txt p {
        font-size: 14px;
        text-align: center;
        margin: 0;
        padding: 0 10px;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease 0.1s;
        line-height: 1.5;
    }

/* 悬停状态 */
.con_1 ul li:hover .con_txt {
    height: 260px;
    justify-content: flex-start; /* 悬停时从顶部开始 */
    padding-top: 40px; /* 添加顶部内边距，让标题下移 */
}

    .con_1 ul li:hover .con_txt h3 {
        white-space: normal;
        padding-top: 0; /* 移除标题的上内边距 */
        margin-bottom: 15px; /* 标题和描述之间的间距 */
    }

    .con_1 ul li:hover .con_txt p {
        opacity: 1;
        max-height: 150px; /* 足够显示描述 */
    }

/* 平板设备 - 3列布局 */
@media (max-width: 1200px) {
    .con_1 ul li {
        width: 33.333%;
    }

    .web_1 {
        padding: 0 0px;
    }

    .con_1 ul li:hover .con_txt {
        height: 260px;
        padding-top: 40px;
    }
}

/* 平板设备 - 2列布局 */
@media (max-width: 768px) {
    .web_1 {
        max-width: 100%;
    }

    .con_1 ul {
        margin: 0 -6px;
        width: calc(100% + 12px);
    }

        .con_1 ul li {
            width: 50%;
            height: 220px;
            padding: 0 6px 12px;
        }

    .con_txt {
        width: calc(100% - 12px);
        left: 6px;
        bottom: 12px;
        height: 40px;
    }

        .con_txt h3 {
            font-size: 15px;
        }

    /* 移动端悬停效果调整 */
    .con_1 ul li:hover .con_txt {
        height: 220px;
        padding-top: 35px; /* 移动端稍小的顶部内边距 */
    }

        .con_1 ul li:hover .con_txt h3 {
            margin-bottom: 12px;
            font-size: 14px;
        }

        .con_1 ul li:hover .con_txt p {
            font-size: 13px;
        }
}

/*首页主题团建CSS结束*/