.PageBanner {
    background-image: url('../img/banner/product.jpg');
} 

 /* 主容器设置 */
 .double-column-categories {
    display: flex;
    flex-wrap: wrap;
    /* grid-template-columns: repeat(2, 1fr); */
    gap: 25px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 50px 0;
    box-sizing: border-box;
}

/* 大类卡片样式 - 高度调整为400px */
.large-category {
    width: 49%;
    position: relative;
    height: 400px;
    /* 调整为400px高度 */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media screen and (max-width:991px) {
    .large-category {
        height: 460px;
    }
}


/* 分类标题区域 - 紧凑布局 */
.category-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 3;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-header h2 {
    font-size: 24px;
    /* 减小字号 */
    margin: 0 0 8px;
    font-weight: 600;
}

.category-header p {
    font-size: 14px;
    /* 减小字号 */
    margin: 0;
    opacity: 0.9;
}

/* 分类主图 - 紧凑布局 */
.category-image {
    position: relative;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* 子分类网格 - 紧凑布局 */
.subcategories-grid {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    /* 模糊效果 */
    -webkit-backdrop-filter: blur(8px);
    /* 兼容 Safari */
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    z-index: 10;
    transition: bottom 0.4s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
}
.subcategories-grid-text{
   position: absolute;
   bottom: -100%;
   left: 0;
   width: 100%;
   background: rgba(255, 255, 255, 0.7);
   backdrop-filter: blur(8px);
   /* 模糊效果 */
   -webkit-backdrop-filter: blur(8px);
   /* 兼容 Safari */
   padding: 20px; 
   z-index: 10;
   transition: bottom 0.4s ease;
   box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
   border-radius: 0 0 16px 16px;
   
}
/* 子分类卡片 - 紧凑设计 */
.subcategory-card {
    display: flex;
    background-color: white;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.subcategory-card img{
    width: 100%;
    height: 90px;
    /* 减小图片高度 */
    object-fit: contain;
    transition: transform 0.4s ease;

}

.subcategory-info {
    padding: 12px;
    background: white;
}

.subcategory-info h4 {
    font-size: 14px;
    /* 减小字号 */
    margin: 0;
    font-weight: 600;
    text-align: center;
}

/* See More 按钮 - 紧凑设计 */
.PList {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: span 2;
    padding: 12px;
    background: #f8fafc;
    color: #d32f2f;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

/* 悬停效果 */
.large-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.large-category:hover .category-image img {
    transform: scale(1.05);
}

.large-category:hover .subcategories-grid,
.large-category:hover .subcategories-grid-text {
    bottom: 0;
}

.subcategory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.subcategory-card:hover img {
    transform: scale(1.08);
}

.PList:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media screen and (max-width:1400px) {
    .double-column-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }

    .large-category {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .double-column-categories {
        padding: 25px;
    }
}

@media screen and (max-width:991px) {
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subcategory-card {
        background-color: white;
    }

    .PList {
        margin-top: 0;
    }

    .subcategories-grid {
        gap: 10px;
    }

    .subcategory-card img {
        width: 80%;
        height: 90px;
        object-fit: contain;
        transition: transform 0.4s ease;
        margin: 0 auto;
    }
}


@media (max-width: 768px) {
    .double-column-categories {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .large-category {
        height: 400px;
    }

    .subcategories-grid {
        grid-template-columns: repeat(3, 1fr);
    }





}

@media (max-width: 500px) {
    .subcategories-grid {
        bottom: -160%;
    }

    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subcategory-card:nth-child(3),
    .subcategory-card:nth-child(4) {
        /* display: none; */
    }
}

@media (max-width: 480px) {
    .subcategories-grid {
        /* grid-template-columns: 1fr; */
        padding: 15px;
        gap: 12px;
    }

    .PList {
        grid-column: span 2;
        margin-top: 0;
    }

    .subcategory-card img {
        height: 80px;
    }
}

@media screen and (max-width:576px) {
    .subcategory-info {
        padding: 10px;
    }


    .category-image {
        height: auto;
    }

    .category-image img {
        height: auto;
    }

    .large-category {
        height: auto;
    }

    .subcategory-card:nth-child(3),
    .subcategory-card:nth-child(4) {
        display: none;
    }

    .PList {
        padding: 10px;
    }

    .subcategories-grid-text {
        padding: 10px 20px;
    }

}