/* ==========================================================
   深圳市显科科技有限公司
   官网 V2.0
   Product Category Shared Styles
   城市交通 / 小间距LED / 智慧杆 共用
========================================================== */

.product-category-page{

    background: #fff;

}


/* =====================================
   Hero Banner
===================================== */

.product-category__hero{

    height: 420px;

    margin-top: 68px;

    display: flex;

    align-items: center;

    background-size: cover;

    background-position: center;

}


.product-category__hero-content{

    text-align: left;

    color: #fff;

}


.product-category__hero-content h1{

    font-size: clamp(36px, 3.5vw, 52px);

    font-weight: 700;

    margin-bottom: 14px;

}


.product-category__hero-content p{

    font-size: 18px;

    color: rgba(255,255,255,.85);

    letter-spacing: 2px;

}


/* =====================================
   Category Nav Tabs
===================================== */

.product-category-nav{

    border-bottom: 1px solid #eef1f5;

    background: #fff;

    position: sticky;

    top: 80px;

    z-index: 100;

}


.product-category-nav__list{

    display: flex;

    gap: 0;

    max-width: 800px;

    margin: 0 auto;

    padding: 0;

    list-style: none;

}


.product-category-nav__list li{

    flex: 1;

}


.product-category-nav__list a{

    display: flex;

    align-items: center;

    justify-content: center;

    height: 56px;

    font-size: 17px;

    font-weight: 600;

    color: var(--text-secondary);

    border-bottom: 3px solid transparent;

    transition: .25s;

}


.product-category-nav__list a:hover{

    color: var(--primary);

}


.product-category-nav__list li.active a{

    color: var(--primary);

    border-bottom-color: var(--primary);

}


/* =====================================
   Sub Filter
===================================== */

.product-category-filter{

    padding: 30px 0 10px;

}


.product-category-filter__list{

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    justify-content: center;

    padding: 0;

    list-style: none;

}


.product-category-filter__list li{

    height: 38px;

    padding: 0 20px;

    border-radius: 999px;

    font-size: 14px;

    font-weight: 500;

    color: var(--text-secondary);

    background: #f4f6f8;

    cursor: pointer;

    transition: .25s;

}


.product-category-filter__list li:hover{

    background: rgba(26,58,92,.10);

    color: var(--primary);

}


.product-category-filter__list li.active{

    background: var(--primary);

    color: #fff;

    font-weight: 600;

}


/* =====================================
   Product Grid
===================================== */

.product-category-products{

    padding: 80px 0 100px;

}


.product-category-grid{

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

}


/* =====================================
   Product Card
===================================== */

.product-category-card{

    position: relative;

    background: #fff;

    overflow: hidden;

    box-shadow: var(--shadow-sm);

    transition: .35s ease;

    cursor: pointer;

}


.product-category-card:hover{

    transform: translateY(-10px);

    box-shadow: var(--shadow-lg);

}


.product-category-card__image{

    position: relative;

    height: 260px;

    overflow: hidden;

}


.product-category-card__image img{

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;

}


.product-category-card:hover .product-category-card__image img{

    transform: scale(1.08);

}


.product-category-card__image::after{

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,.35),
        transparent 50%
    );

}


.product-category-card__content{

    padding: 22px 24px;

    text-align: center;

}


.product-category-card__content h3{

    font-size: 18px;

    font-weight: 700;

    color: var(--text-primary);

}


/* Featured card */

.product-category-card--featured{

    border: 2px solid rgba(26,58,92,.20);

}


.product-category-card--featured::before{

    content: "推荐";

    position: absolute;

    top: 16px;

    right: 16px;

    z-index: 2;

    padding: 4px 14px;

    border-radius: 999px;

    background: linear-gradient(135deg, #1a3a5c, #2d6a9e);

    color: #fff;

    font-size: 12px;

    font-weight: 600;

}


/* =====================================
   Responsive
===================================== */

@media (max-width: 1200px){

    .product-category-grid{

        grid-template-columns: repeat(3, 1fr);

    }

}


@media (max-width: 768px){

    .product-category__hero{

        height: 300px;

    }


    .product-category__hero-content h1{

        font-size: 32px;

    }


    .product-category__hero-content p{

        font-size: 14px;

    }


    .product-category-nav__list a{

        height: 48px;

        font-size: 13px;

    }


    .product-category-filter__list li{

        height: 32px;

        padding: 0 14px;

        font-size: 12px;

    }


    .product-category-grid{

        grid-template-columns: repeat(2, 1fr);

        gap: 20px;

    }


    .product-category-card__image{

        height: 220px;

    }


}