main>section {
    position: relative
}
/* home banner */
.home-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-swiper {
  width: 100%;
}

.home-banner .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5; /* 添加背景色防止空白 */
}

.home-banner .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: scale-down; /* 自动缩放以适应容器 */
  object-position: center;
}

/* 分页器样式 */
.home-banner .swiper-pagination {
  position: absolute;
  bottom: 20px;
  z-index: 10;
}

/* 分页器样式 */
.home-banner .swiper-pagination-bullet {
  width: 35px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  position: relative;
  margin: 0 4px;
  opacity: 1;
  border-radius: 2px;
  overflow: hidden;
}

.home-banner .swiper-pagination-bullet:after {
    background-color: var(--color);
    border-radius: 999px;
    content: "";
    display: block;
    height: 100%;
    width: 0px
}

.home-banner .swiper-pagination-bullet-active.cur::after {
    transition: width 6s linear;
    width: 100%
}

.home-banner .swiper-pagination-bullet-active {
    background-color: #CCC
}

.home-banner .swiper-pagination-bullet .progress {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color);
  border-radius: 2px;
}

.home-banner .swiper-pagination-bullet-active .progress {
  width: 100%;
  transition: width linear;
  transition-duration: 5000ms;
  animation: progress 5s linear forwards;
}

@keyframes progress {
  from { width: 0; }
  to { width: 100%; }
}

/* 导航按钮样式 */
.home-banner .swiper-button-next,
.home-banner .swiper-button-prev {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.home-banner .swiper-button-next::after,
.home-banner .swiper-button-prev::after {
  font-size: 20px;
  font-weight: bold;
}

.home-banner .swiper-button-next:hover,
.home-banner .swiper-button-prev:hover {
  background: var(--color);
  transform: scale(1.1);
}

.home-banner .swiper-slide.swiper-slide-active img {
    animation: bannerimg 6s forwards
}
@keyframes bannerimg {
    0% {
        transform: scale(1)
    }

    80% {
        transform: scale(1.04)
    }

    100% {
        transform: scale(1.037)
    }
}

/* home choose */
.home-choose {
    padding: 4% 0px 4%;
    z-index: 1;
    position: relative;
}

.home-choose::before {
    content: "";
    position: absolute;
    top: 0px;
    width: 100%;
    height: 350px;
    background: var(--color);
    z-index: -1
}

.home-choose .home-des,
.home-choose .home-title {
    color: #FFFFFF
}

.choose-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px
}

.choose-ul .choose-item {
    width: 23%;
    background: #FFFFFF;
    box-shadow: 0px 5px 12px 0px rgba(19, 20, 21, .08);
    padding: 50px 30px;
    text-align: center;
    transition: all .2s linear
}

.choose-ul .choose-item:hover {
    transform: translateY(-5px)
}

.choose-ul .choose-item:hover .icon {
    transform: rotateY(360deg)
}

.choose-ul .choose-item .title {
    color: var(--fontcolor);
    font-size: var(--fontsize24);
    line-height: 24px;
    margin-bottom: 20px
}

.choose-ul .choose-item img {
    height: 60px;
    transition: all .3s linear
}

.choose-ul .choose-item .icon {
    transition: all .3s linear;
    line-height: 1
}

.choose-ul .choose-item em {
    font-size: 60px;
    color: var(--color)
}

.choose-ul .choose-item .info {
    margin-top: 20px;
    color: var(--introcolor)
}

/* home about */
.home-about {
    padding: 3% 0px 7%;
    position: relative;
}

.home-about .about-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center
}

.home-about .about-wrap>div {
    width: 50%
}

.home-about .about-img {
    position: relative;
    width: 50%;
    padding: 10px 3% 0px 10px
}

.home-about .about-img:hover img {
    transform: translate(-10px, -10px)
}

.home-about .about-img>img {
    width: 100%;
    transition: all .4s linear
}

.home-about .about-img .about-icon {
    position: absolute;
    top: 0px;
    left: 0px;
    background: var(--color);
    color: #FFFFFF;
    width: 220px;
    height: 200px;
    text-align: center;
    transition: all .1s linear
}

.home-about .about-img .about-icon:hover {
    opacity: .96
}

.home-about .about-img .about-icon img {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%)
}

.home-about .about-img .about-icon span {
    display: block;
    font-size: var(--fontsize30);
    font-weight: var(--fontbold5);
    padding-top: 20%
}

.home-about .about-img .about-icon p {
    padding-top: 20%;
    font-size: var(--fontsize18)
}

.home-about .about-info {
    padding-top: 30px
}

.home-about .about-info .home-des,
.home-about .about-info .home-title {
    text-align: left
}

.home-about .about-info .about-content {
    color: var(--introcolor);
    margin-top: 20px
}

.home-about .about-info .about-content p {
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 12;
    overflow: hidden
}

.home-about .color {
    font-weight: var(--fontbold7);
    font-size: var(--fontsize18);
    color: #080808;
    display: flex;
    align-items: center
}

.home-about .color span {
    color: var(--color);
    font-size: var(--fontsize24);
    padding-right: 15px
}

.home-about .about-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 5px 12px 0px rgba(19, 20, 21, .15);
    padding: 2%;
    margin-top: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -70px;
    max-width: 1440px;
    width: 100%;
    z-index: 9;
    background: #FFFFFF
}

.home-about .about-contact p {
    font-weight: var(--fontbold7);
    font-size: var(--fontsize22)
}

/* home project */
.home-project {
    background: #FFFbfa;
    padding: 8% 15px 4%;
}

.home-project .swiper {
    margin-top: 40px;
    padding: 20px 0 60px 0;
    position: relative;
}

.home-project .swiper .swiper-slide {
    overflow: hidden;
    max-height: 308px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}

.home-project .swiper .swiper-slide img {
    transition: all .2s linear;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.home-project .swiper .swiper-slide img:hover {
    transform: scale(1.1)
}

.project-next,
.project-prev {
    width: 40px;
    height: 40px;
    background: var(--color);
    color: white;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-next {
    margin-left: 30px;
}

.project-prev {
    margin-left: -30px;
}

.project-next::after {
    content: "→";
    font-size: 20px;
    font-weight: bold;
}

.project-prev::after {
    content: "←";
    font-size: 20px;
    font-weight: bold;
}

.project-next:hover,
.project-prev:hover {
    opacity: 0.9;
}

/* home product */
.home-product {
    padding: 4% 0px 6%
}

.index-pro {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px
}

.index-pro .pro-item {
    width: 25%;
    border: 1px solid #E5E5E5;
    border-left: none;
    overflow: hidden;
    text-align: center;
    transition: all .1s linear;
    display: flex;
    flex-direction: column;
    position: relative
}

.index-pro .pro-item:nth-child(4n+1) {
    border-left: 1px solid #E5E5E5
}

.index-pro .pro-item:nth-child(n+5) {
    border-top: none
}

.index-pro .pro-item:hover {
    outline-color: var(--color);
    z-index: 9
}

.index-pro .pro-item:hover .pro-img img {
    transform: translate(-50%, -50%) scale(1.05)
}

.index-pro .pro-item:hover .pro-info .pro-title a {
    color: var(--color)
}

.index-pro .pro-item:hover .pro-info .pro-btn em {
    position: static;
    opacity: 1
}

.index-pro .pro-item .pro-img a {
    display: block;
    overflow: hidden;
    position: relative;
    height: 0px;
    padding-bottom: 100%
}

.index-pro .pro-item .pro-img a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all .1s linear
}

.index-pro .pro-item .pro-info {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.index-pro .pro-item .pro-title a {
    font-weight: var(--fontbold7);
    margin-bottom: 10px;
    color: var(--fontcolor);
    line-height: 20px;
    text-transform: capitalize
}

.index-pro .pro-item .pro-btn {
    color: var(--color);
    font-size: var(--fontsize16);
    padding-left: 15px;
    transition: all .1s linear
}

.index-pro .pro-item .pro-btn em {
    font-style: normal;
    opacity: 0;
    transition: all .1s linear
}

/* home activity */
.home-activity {
    z-index: 1
}

.home-activity::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, var(--fontcolor) 0, rgba(0, 0, 0, 0) 100%);
    z-index: -1
}

.home-activity .l-wrap {
    display: flex;
    justify-content: flex-end
}

.activity-wrap {
    width: 50%;
    color: #FFFFFF;
    padding: 6% 0px
}

.activity-wrap .text {
    font-size: var(--fontsize18)
}

.activity-wrap .title {
    font-size: 48px;
    font-weight: var(--fontbold7);
    line-height: 1.1;
    margin: 10px 0px 20px
}

.activity-wrap .content {
    font-size: var(--fontsize16);
    line-height: 24px;
    margin-bottom: 20px
}

.activity-wrap .img {
    display: flex;
    margin-bottom: 30px
}

.activity-wrap .img img {
    height: 200px;
    margin-right: 15px;
    transition: all .2s linear
}

.activity-wrap .img img:hover {
    transform: translateY(-5px)
}

/* home news */
.home-news {
    padding: 4% 0px 4%
}

.news-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px
}

.news-list .news-item {
    background: #FFFFFF;
    width: 23%;
    margin-bottom: 20px;
    transition: all .2s linear;
    box-shadow: 0px 5px 12px 0px rgba(19, 20, 21, .08)
}

.news-list .news-item:nth-child(4n) {
    margin-right: 0px
}

.news-list .news-item:hover {
    box-shadow: 0px 5px 12px 0px rgba(19, 20, 21, .15)
}

.news-list .news-item:hover .news-img img {
    transform: scale(1.02)
}

.news-list .news-item:hover .news-info .news-title a {
    color: var(--color)
}

.news-list .news-item .news-img {
    overflow: hidden;
    position: relative
}

.news-list .news-item .news-img img {
    width: 100%;
    transition: all .2s linear
}

.news-list .news-item .news-img .news-date {
    position: absolute;
    bottom: 0px;
    left: 15px;
    background: var(--color);
    font-size: var(--fontsize14);
    color: #FFFFFF;
    width: 110px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap
}

.news-list .news-item .news-info {
    padding: 15px
}

.news-list .news-item .news-info .news-title a {
    color: var(--fontcolor);
    font-size: var(--fontsize18);
    font-weight: var(--fontbold7);
    line-height: 20px;
    text-transform: capitalize
}

.news-list .news-item .news-info .news-text {
    font-size: var(--fontsize16);
    margin: 10px 0px;
    color: var(--introcolor);
    line-height: 22px
}

.news-list .news-item .news-info .news-btn {
    color: var(--color);
    font-size: var(--fontsize16)
}

@media (max-width:1280px) {
    .choose-ul .choose-item .title {
        font-size: var(--fontsize20)
    }

    .home-activity::before {
        background: linear-gradient(90deg, var(--fontcolor) 0, rgba(0, 0, 0, .45) 100%)
    }

    .home-activity .activity-wrap {
        width: 100%
    }

    .home-activity .activity-wrap .title {
        font-size: var(--fontsize30)
    }

    .news-list .news-item {
        width: 24%
    }
}

@media (max-width:1024px) {
    .choose-ul .choose-item {
        width: 24%
    }

    .home-banner .banner-animote {
        left: 0px;
        width: 100%;
        padding: 0px 10%
    }

    .home-banner .banner-animote .title {
        font-size: var(--fontsize30)
    }

    .home-banner .banner-animote .text {
        font-size: var(--fontsize16)
    }

    .home-about {
        padding-bottom: 0px
    }

    .home-about .about-contact {
        position: static;
        transform: none;
        margin-top: 70px
    }

    .news-list .news-item .news-info {
        padding: 10px
    }
}

@media (max-width:768px) {
    .home-banner .pcimg {
        display: none
    }

    .home-banner .pcimg img {
        display: none
    }

    .home-banner .mobimg {
        display: block
    }

    .home-banner .mobimg img {
        display: block
    }

    .home-banner .banner-button-next,
    .home-banner .banner-button-prev {
        top: 36%;
        display: none
    }

    .home-banner .banner-animote {
        bottom: 32%
    }

    .home-banner .banner-animote .title {
        font-size: var(--fontsize16)
    }

    .home-banner .banner-animote .text {
        font-size: var(--fontsize12)
    }

    .home-about .about-img:hover>img {
        transform: none
    }

    .home-about .about-info .about-content {
        margin-top: 10px
    }

    .choose-ul .choose-item:hover .icon {
        transform: none
    }

    .choose-ul {
        margin-top: 25px
    }

    .choose-ul .choose-item {
        width: 48%;
        margin-bottom: 20px;
        padding: 20px 10px
    }

    .choose-ul .choose-item .title {
        margin-bottom: 10px;
        font-size: var(--fontsize18)
    }

    .choose-ul .choose-item em {
        font-size: 40px
    }

    .choose-ul .choose-item .info {
        margin-top: 15px;
        font-size: var(--fontsize14)
    }

    .home-about .about-wrap>div {
        width: 100%
    }

    .home-about {
        padding-bottom: 3%
    }

    .home-about .about-contact {
        margin-top: 30px;
        display: none
    }

    .home-about .about-contact .home-more {
        margin-top: 20px
    }

    .home-about .about-img .about-icon {
        width: 140px;
        height: 110px
    }

    .home-about .about-img .about-icon span {
        font-size: var(--fontsize18);
        padding-top: 10%
    }

    .home-about .about-img .about-icon p {
        padding-top: 10%
    }

    .home-project .swiper {
        margin-top: 25px
    }

    .home-project .swiper .project-button-next,
    .home-project .swiper .project-button-prev {
        bottom: 20px
    }

    .home-activity .activity-wrap .img {
        justify-content: space-between;
        align-items: flex-start
    }

    .home-activity .activity-wrap .img img {
        margin: 0px;
        height: auto
    }

    .home-activity .activity-wrap .title {
        font-size: var(--fontsize26)
    }

    .home-activity .activity-wrap .title br {
        display: none
    }

    .index-pro {
        margin-top: 25px
    }

    .index-pro .pro-item {
        width: 50%;
        border: 1px solid #E5E5E5 !important
    }

    .index-pro .pro-item:nth-child(2n+1) {
        border-right: none !important
    }

    .index-pro .pro-item:nth-child(n+3) {
        border-top: none !important
    }

    .index-pro .pro-item .pro-info {
        font-weight: var(--fontbold4)
    }

    .news-list {
        margin-top: 25px
    }

    .news-list .news-item {
        width: 48%
    }

    .news-list .news-item .news-img .news-date {
        height: 30px;
        left: 0px;
        font-size: var(--fontsize14);
        width: 100px;
        height: 30px
    }

    .news-list .news-item .news-info .news-title a {
        display: block
    }

    .news-list .news-item .news-info .news-title {
        -webkit-line-clamp: 4
    }

    .news-list .news-item .news-info .news-text {
        font-size: var(--fontsize14);
        line-height: 20px
    }
}

@media(max-width:500px) {
    .home-project .swiper .swiper-slide {
        max-height: 172px
    }
}