:root{
    --indexImgGap: .5rem;
    --indexImgHeight: 125px;
}
.header{
    opacity: 0;
}
.header:hover{
    animation: fadeIn 0.5s ease-in-out both;
    background-color: #f5f5f5;
}
@media sceen and (min-height:1150px){
    :root{
        --indexImgHeight:180px;
    }
}
@media screen and (min-height:1000px){
    :root{
        --indexImgHeight:160px;
    }
}
@media screen and (min-height:800px) and (max-height:999px){
    :root{
        --indexImgHeight:125px;
    }
}
@media screen and (max-width: 768px) {
        :root{
            --indexImgHeight:85px;
        }
}

.indexBanner{
    width: 100%;
    height: 100vh;
    padding-bottom: 0;
    position: sticky;
    top: 0;
    z-index: -1;
}

.indexMain{
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}
.indexBannerContent{
    position: absolute;
    bottom: 5%;
    z-index: 1;
    width: 100%;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 160px;
}
@media screen and (max-width: 768px) {
    .indexBannerContent{
        bottom: 5%;
        flex-direction: column;
    }
}
.indexSwiper .swiper-slide img{
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: -1;
}

.indexSwiper{
    height: 100vh;
}
.indexBannerSwiperPre,.indexBannerSwiperNext{
    width: 24px;
    height: 24px;
    transform: rotate(90deg);
}
.brandSwiper{
    flex:6;
    width: 100%;
    overflow: hidden;
}
@media screen and (max-width: 768px) {
    .brandSwiper{
        flex: 12;
    }
}
.brandSwiper .swiper-wrapper {
    -webkit-transition-timing-function:linear!important;
    -o-transition-timing-function:linear!important;
    transition-timing-function:linear!important;
    transition: transform 0.5s ease; /* 添加平滑过渡效果 */
}
.brandSwiper .swiper-slide {
    cursor: pointer;
}
.brandSwiper .swiper-slide img{
    width: 100%;
    height: 100%;
    max-width:12.375rem;
    object-fit: cover;
}
.indexBannerSwiper{
    height:100vh;
    position: relative;
    z-index: 0;
    pointer-events: auto;
}
.indexBannerSwiper .imgBox a{
    height:100vh;
    cursor:auto;
}

 .indexBannerSwiper .imgBox img{
     max-width:unset !important;
     height:100%;
     object-fit:cover;
     scale:1;

 }
 @media screen and (max-width: 768px) {
    .indexBannerSwiper .imgBox a{
        height:100vh;
    }
    .indexBannerSwiper .imgBox img{
        width: 100% !important;
        height: 100%;
        object-fit: cover;
        scale: 1;
        padding: 0;
    }
 }
.indexBannerSwiperPage{
    flex:1;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 5%;
    right: 3%;
    gap: .3125rem;
    font-size:1rem;
    color:#fff;
}
.indexBannerSwiper .swiper-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.indexContentContainer{
    padding: 0;
    position: relative;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - (var(--headerHeight) + var(--footerHeight)));
}
@media screen and (max-width:1280px) {
    .indexContentContainer{
        height: auto;
    }
}
.indexBannerBrandList {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 2.5rem;
    row-gap: 1rem;
    padding: 0 8%;
}
.indexBannerBrandList img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.indexContentBrandList {
    width: 80rem;
    display: flex;
    flex-direction: column;
    gap: 3.25rem;
    position: relative;
    margin: 0 auto;
    height: 100%;
    justify-content: center;
}
@media screen and (max-width: 1440px) {
    .indexContentBrandList {
        width: 100%;
        padding: 10px 3%;
    }
}
.indexContentBrandList>.indexContentBrandListItem {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.25rem;
}
.indexContentBrandList>.indexContentBrandListItem img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.indexContentBrandList>.indexContentBrandListItem:nth-child(1) {
    display: grid;
    grid-template-columns: repeat(5, 0.5fr);
    gap: 2.5rem;
    /* 高度自适应 */
}
.indexContentBrandList>.indexContentBrandListItem:nth-child(1) .indexContentBrandListItemImg {
    width:100%;
    margin: 0 auto;
}
@media screen and (max-width: 768px) {
    .indexContentBrandList>.indexContentBrandListItem:nth-child(1) .indexContentBrandListItemImg{
        flex: 0 1 calc(50% - .625rem);
    }
}
.indexContentBrandList>.indexContentBrandListItem:nth-child(2){
    padding: 0 1%;
}
@media screen and (max-width: 768px) {
    .indexContentBrandList>.indexContentBrandListItem {
        display: flex;
        /* 一行4个 */
        flex-wrap: wrap;
        justify-content: center;
        gap: .625rem;
    }

    .indexContentBrandList>.indexContentBrandListItem .img {
        flex: 0 1 calc(25% - .625rem);
    }

    .indexContentBrandList>.indexContentBrandListItem:nth-child(1) {
        display: flex;
        /* 一行4个 */
        flex-wrap: wrap;
        justify-content: center;
        gap: .625rem;
    }

    .indexContentBrandList>.indexContentBrandListItem:nth-child(1) .img {
        flex: 0 1 calc(30% - .625rem);
    }
}
.indexContentBrandListItem .indexContentBrandListItemImg {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    justify-content: center;
    align-items: center;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}
.indexContentBrandListItemImg.visible {
    opacity: 1;
    /* 变为可见 */
    transform: translateY(0);
    /* 回到原位 */
}
.indexContentBrandListItem .indexContentBrandListItemImg:hover {
    scale: 1.08;
}
.indexContentBrandListItemImg>.title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    display: none;
}
.indexContentBrandListItem .indexContentBrandListItemImg .img {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    position: relative;
    width: 100%;
    height:100%;
    height: auto;
    margin: 0 auto;
    transition: all 0.2s ease;
    cursor: auto;
}
.indexContentBrandListItemImg .img a{
    cursor: auto;
    /*pointer-events: none; !* 禁用点击事件 *!*/
}
.indexContentBrandListItemImg .img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 12rem;
}
.indexContentBrandListItem:nth-child(2) .indexContentBrandListItemImg{
    width: 75%;
    margin: 0 auto;
}
@media screen and (max-width: 768px) {
    .indexContentBrandListItem:nth-child(2) .indexContentBrandListItemImg{
        flex: 0 1 calc(25% - .625rem);
        width: 100%;
    }
}
.indexBannerSwiper .swiper-slide img {
    object-position: calc(50% + 0px) 40%;
}
.indexImgContainer{
    width: 100%;
    max-width: 93.75rem;
    display:flex;
    margin:0 auto;
    flex-direction: column;
    gap: var(--indexImgGap);
    overflow: hidden;
    /* 添加上边框阴影 */
}
@media screen and (max-width: 968px) {
    .indexImgContainer {
        height: auto;
    }
}
.indexImgContainer>.indexImgContainerItem{
    overflow: hidden;
    position: relative;
}
.indexImgContainer>.indexImgContainerItem .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.indexImgContainerItem>div{
    position: relative;
    display:block;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateY(-10px);
    width: 100%;
    overflow: hidden;
    /* height: var(--indexImgHeight); */
}
.indexImgContainerItem>div>a{
    width: 100%;
    height: 100%;
    cursor:pointer;
}
@media screen and (max-width: 968px) {
    .indexImgContainerItem>div>a{
        height:auto;
    }
}
.indexImgContainerItem>div.visible {
    opacity: 1;
    /* 变为可见 */
    transform: translateY(0);
    /* 回到原位 */
}
.indexImgContainer>.indexImgContainerItem>div>a .info {
    position: absolute;
    bottom: 0;
    /* 初始位置在视图外 */
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease-in-out;
    background-color: #a47864c2;
}

@media screen and (max-width: 768px) {
    .indexImgContainer>.indexImgContainerItem>div>a .info {
        padding: 5px;
    }
}

.indexImgContainer>.indexImgContainerItem>div>a:hover .info {
    opacity: 1;
}
.indexImgContainer>.indexImgContainerItem>div>a:hover img{
    scale: 1.1;
}
.indexImgContainer>.indexImgContainerItem>div>a .info>h3 {
    font-size: 1.25rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.indexImgContainer>.indexImgContainerItem:nth-child(1)>div>a .info>h3,
.indexImgContainer>.indexImgContainerItem:nth-child(2)>div>a .info>h3
{
    font-size: 1.5rem;
}
.indexImgContainer>.indexImgContainerItem>div>a .info>p {
    font-size: .8125rem;
    font-weight: 400;
    color: #f8f8f8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 768px) {
    .indexImgContainer>.indexImgContainerItem>div>a .info>h3 {
        font-size: 1rem !important;
    }

    .indexImgContainer>.indexImgContainerItem>div>a .info>p {
        font-size: .75rem;
        -webkit-line-clamp: 2;
    }
}
.indexImgContainer>.indexImgContainerItem>div img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.indexImgContainerItem>div{
    width: 100%;
    overflow: hidden;
    border-radius: .3125rem;
}
.indexImgContainerItem img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 100%;
    border-radius: 5px;
    transition: all 0.5s ease-in-out;
}
/* 鼠标悬停时放大图片 */
.indexImgContainerItem>div:hover{
       box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* 添加轻微阴影以增强立体感 */
}
.indexImgContainer>.indexImgContainerItem:nth-child(1){
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
}

.indexImgContainer>.indexImgContainerItem:nth-child(1)>a {
    width: 100%;
}
.indexImgContainer>.indexImgContainerItem:nth-child(2){
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--indexImgGap);
    justify-content: space-between;
}
@media screen and (max-width: 768px) {
    .indexImgContainer>.indexImgContainerItem:nth-child(1),
    .indexImgContainer>.indexImgContainerItem:nth-child(2)
    {
       /* height:5.125rem; */
    }
}
.indexImgContainer>.indexImgContainerItem:nth-child(3){
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--indexImgGap);
    justify-content: space-between;
}
.indexImgContainer>.indexImgContainerItem:nth-child(4) {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--indexImgGap);
    justify-content: space-between;
}
/* 5以及5以后的indexImgContainerItem项 */
.indexImgContainer>.indexImgContainerItem:nth-child(n + 5){
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--indexImgGap);
    justify-content: space-between;
}
.indexImgContainer>.indexImgContainerItem:nth-child(4)>div:first-child{
        /* 排在盒子的最后面并且占到整个列的1/6 */
        grid-column: 6 / 6;
        grid-row: 1 / 3;
        /* height: calc(var(--indexImgHeight) * 2 + var(--indexImgGap)); */
    /* grid-row: 1 / 3;
    height: calc(var(--indexImgHeight) * 2 + var(--indexImgGap)); */
}
.indexImgContainer>.indexImgContainerItem:nth-child(4)>div:last-child img {
    max-height: unset;
}
@media screen and (max-width: 968px) {
    .indexImgContainer>.indexImgContainerItem:nth-child(n + 5),
    .indexImgContainer>.indexImgContainerItem:nth-child(4),
    .indexImgContainer>.indexImgContainerItem:nth-child(3) {
        grid-template-columns: repeat(3, 1fr);
    }

    .indexImgContainer>.indexImgContainerItem:nth-child(4)>div:first-child{
        /* grid-column: 1 / 2;
        grid-row: 1 / 3; */
        /* 排在最后面 */
        grid-column: 3 / 3;
        grid-row: 5 / 7;
    }
}
.mask{
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.indexContentContainerMask{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}
.indexContentContainerMask>img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-horizontal>.swiper-scrollbar, .swiper-scrollbar.swiper-scrollbar-horizontal{
    bottom: var(--swiper-scrollbar-bottom, 10%);
    width: calc(35% - 2* var(--swiper-scrollbar-sides-offset, 1%));
    left: 50%;
    transform: translateX(-50%);
}
.swiper-scrollbar-drag{
    background: #e05424;
}
.indexBrandeListContainer {
    position: fixed;
    width: 100%;
    bottom: 5%;
    max-height: 30vh;
    overflow: hidden;
}
@media screen and (max-width: 768px) {
    .indexBrandeListContainer {
        height: auto;
        max-height: unset;
        pointer-events: none;
        bottom:8%;
    }
}
.indexContentIntroduce{
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    padding: 40px 0;
    flex: 1;
}
.indexImgContainer,.indexContentIntroduce {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
}
@media screen and (max-width: 1440px) {
    .indexImgContainer,.indexContentIntroduce{
        width: 100%;
        padding:20px 5%;
    }
}
@media screen and (max-width: 768px) {
    .indexContentIntroduce {
        padding:10px 5%;
        gap: 20px;
    }
}
.indexContentIntroduceInfo{
    display: flex;
    justify-content:center;
    align-items: center;
}
.indexContentIntroduceInfo .title{
    font-size: 32px;
    text-align: center;
    letter-spacing: 5px;
    color: var(--themeColor2);
}
@media screen and (max-width: 768px) {
    .indexContentIntroduceInfo .title{
        font-size: 24px;
    }
}
.indexContentIntroduceInfo .title:hover{
    color: var(--themeColor);
}
.indexContentIntroduceFuc{
    display: grid;
    grid-template-columns: repeat(8,1fr);
    justify-content: center;
    align-items: center;
    gap: 3%;
}
.indexContentIntroduceFucItem{
    display: flex;
    flex-direction: column;
    gap: .625rem;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    border-radius: 5px;
}
@media screen and (max-width: 968px) {
    .indexContentIntroduceFuc{
       display: flex;
       flex-wrap: wrap;
       justify-content: center;
       align-items: flex-start;
    }
    .indexContentIntroduceFuc>a{
        /* 一排3个 */
        flex: 0 1 calc(33.333% - 5%);
    }
    .indexContentIntroduceFucItem{
        padding: 10px;
    }
}
.indexContentIntroduceFucItem::after{
    content:'';
    opacity: 0;
    transition: all .2s;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 5px;
    box-shadow: 6px 5px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #f0f0e4, #a4776482, var(--themeColor));
}
.indexContentIntroduceFucItem:hover::after{
    opacity: 1;
}
.indexContentIntroduceFucItem img{
    width: 3rem;
    /* height: 3rem; */
    position: relative;
    z-index: 1;
}
@media screen and (max-width:768px) {
    .indexContentIntroduceFucItem img{
        width: 2rem;
        /* height: 2rem; */
    }
}
.indexContentIntroduceFucItem span{
    font-size: 16px;
    color: var(--themeColor);
    position: relative;
    z-index: 1;
    transition: color .2s;
    text-align: center;
}
@media screen and (max-width:768px) {
    .indexContentIntroduceFucItem span{
        font-size: 14px;
    }
}
.indexContentIntroduceFucItem:hover span{
    color:#fff;
}
.pointer {
    display:none;
    position: absolute;
    --l: 15px; /*四角线框长度 */
    --t: 3px; /*四角线框粗细 */
    --g: 8px; /*线框与图片的间隙 */
    --s: 0px; /*尺寸 */
    --h: 0px; /*图片高度 */
    --x: -10px; /*图片左上角横坐标 */
    --y: 0px; /*图片左上角纵坐标 */
    width: calc(var(--s) + var(--g) * 2);
    height: calc(var(--h) + var(--g) * 2);
    border: var(--t) solid var(--themeColor2);
    left: calc(var(--x) - var(--g));
    top: calc(var(--y) - var(--g));
    transition: 0.2s;
    mask: conic-gradient(at var(--l) var(--l), transparent 75%, blue 75% 100%) 0
        0 / calc(100% - var(--l)) calc(100% - var(--l)) repeat;
        /*mask去除 conic-gradient锥形渐变*/
}
@media screen and (max-width: 768px) {
    .pointer{
        width: calc(var(--s)+var(--g)*1.5);
        height: calc(var(--h)+var(--g)*1.5);
    }
}
.imgBox{
    margin-bottom:0;
}
@media screen and (max-width:700px){
    .indexImgContainerItem .imgBox img{
        width:100% !important;
        height:auto !important;
        padding:0;
        object-fit:contain !important;
    }
}
