.swiper-slide img{
    width: 100%;
}
.swiper-button-next, .swiper-button-prev{width: 30px;height: 30px;}
.swiper-button-next:after, .swiper-button-prev:after{font-size: 24px !important;font-weight: bold;}
.progress-bar-container {
    position: absolute;
    bottom: 10px;
    left: 45%;
    width: 10%;
    height: 2px;
    display: flex;
    justify-content: space-between;
    padding: 4px 10px 6px;
    z-index: 12;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}
.progress-bar {
    height: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 1);
    position: relative;
}
.progress-bar-fill {
    width: 0%;
    height: 2px;
    background-color: #007bff;
}

.home-swiper .swiper-slide a{
    display: block;
    text-decoration: none;
    color: #000;
    position: relative;
}
.home-swiper .swiper-slide a .text-content{
    position: absolute;
    width: 1000px;
    left: calc(50% - 500px);
    top: 100px;
    text-align: center;
}
.home-swiper .swiper-slide a .text-content.white{
    color: #fff;
}
.home-swiper .swiper-slide a .text-content h3{
    font-size: 40px;
    padding: 0;
    margin: 0;
}
.home-swiper .swiper-slide a .text-content p{
    font-size: 22px;
    padding: 0;
    margin: 0;
}


.hot-category .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: calc(100% - 20px);
    margin: 10px auto;
}

.hot-category .grid-item {
    position: relative;
    background-color: #f4f4f4;
    text-align: center;
}

.hot-category .grid-item img {
    max-width: 100%;
    height: auto;
}

.hot-category .text-overlay {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-15%, -50%);
    text-align: center;
}

.hot-category .text-overlay h2 {
    margin: 0;
    font-size: 24px;
}

.hot-category .text-overlay a {
    text-decoration: none;
    font-size: 14px;
    margin-top: 5px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hot-category .text-overlay a i{
    font-size: 12px;
    color: #666;
}

.home-industry{
    padding-bottom: 80px;
}
.home-industry .block-title{
    font-size: 26px;
    text-align: center;
    margin: 50px auto 30px;
    font-weight: bold;
}
.home-industry .grid-container {
    display: grid;
    /* 定义了一个更复杂的网格布局 */
    grid-template-columns: repeat(8, 1fr);
    gap: 10px; /* 设置项之间的间隙 */
    width: calc(100% - 20px);
    margin: auto;
}

/* 确保所有图片保持相同的高度 */
.home-industry .grid-item {
    position: relative;
    overflow: hidden;
    /*aspect-ratio: 1 / 1; !* 使用1:1的比例以确保等高 *!*/
}

.home-industry .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 标题样式 */
.home-industry .grid-item h3 {
    position: absolute;
    bottom: 2px;
    left: 20px;
    color: white;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

/* 隐藏层样式 */
.home-industry .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.home-industry .overlay .content {
    text-align: center;
    padding: 40px;
}

.home-industry .overlay h4 {
    margin: 0;
    font-size: 1.2em;
}

.home-industry .overlay p {
    margin-top: 8px;
    font-size: 0.9em;
}


.home-industry .small {
    grid-column: span 2;
}

.home-industry .narrow {
    grid-column: span 2;
}

.home-industry .wide {
    grid-column: span 4;
}

@media (max-width: 1440px) {
    .home-swiper .swiper-slide a .text-content{
        top: 60px;
    }
}