/* ========== Product Banner ========== */
.product-banner {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.product-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.product-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}

.product-banner-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-text h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.banner-text p {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 0.2px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .product-banner {
        height: 50vh;
        min-height: 320px;
    }

    .banner-text h1 {
        font-size: 2.4rem;
    }

    .banner-text p {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .product-banner {
        height: 40vh;
        min-height: 260px;
    }

    .banner-text h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .banner-text p {
        font-size: 0.95rem;
    }
}

/* ========== Product List Page ========== */
.products-section {
    padding: 80px 20px;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 过滤导航 */
.filter-nav {
    text-align: center;
    margin-bottom: 60px;
}

.filter-nav-wrap {
    display: inline-flex;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border-radius: 50px;
}

.filter-nav-wrap h2 {
    font-family: "Fraunces", Sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 60px;
    color: #000000;
}



/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 40px;
    margin-bottom: 60px;
}

/* 产品卡片 - 整体白色背景 */
.product-card {
    position: relative;
    background: #ffffff;
    overflow: visible;
    transition: all 0.3s ease;
    text-align: center;
}

/* 紫色标题 - 在彩色框外面上方 */
.product-card .product-title {
    margin-bottom: 0;
    position: relative;
    z-index: 3;
    padding:10px 0;
}

.product-card .product-title a {
    font-weight: 700;
    color: #9401D9; 
    font-family: "Poppins", Sans-serif;
    font-size: 20px;
    text-transform: capitalize;
    line-height: 30px;
}


/* product-image-wrap - 交替颜色渐变背景框 */
.product-image-wrap {
    position: relative;
    border-radius: 30px;
    margin-top: 50px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
    background-color: transparent;
    background-image: linear-gradient(180deg, #F3B0ED 0%, #BEA5F3 100%);
    transition: all 0.3s ease;
    height: 280px;
    /* 固定高度，比正方形矮一些 */
}

/* 偶数个产品使用另一个渐变色（蓝色系） - CSS自动交替 */
.product-card:nth-child(even) .product-image-wrap {
    background-image: linear-gradient(180deg, #B5D8FE 0%, #93A5F5 100%);
}

/* 图片链接容器 - 图片向上浮出框一部分 */
.product-image-wrap a:first-of-type {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.product-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: transparent;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* 圆形按钮 - 在框底边中间，向下浮出一半 */
.product-button {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 按钮颜色和框背景相反 - 使用CSS自动交替 */
.product-card:nth-child(odd) .product-button {
    background: #93A5F5;
}

.product-card:nth-child(odd) .product-button svg path {
    stroke: #ffffff;
}

.product-card:nth-child(even) .product-button {
    background: #BEA5F3;
}

.product-card:nth-child(even) .product-button svg path {
    stroke: #ffffff;
}

.product-button:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.product-card:hover .product-image-wrap {
    transform: translateY(4px);
}

/* 分页 */
.pagination-wrap {
    text-align: center;
}

.pagination-wrap .pages {
    display: inline-flex;
    gap: 4px;
}

.pagination-wrap a,
.pagination-wrap span {
    padding: 8px 14px;
    font-size: 0.95rem;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination-wrap a:hover {
    background: #f5f5f5;
    color: #883E74;
}

.pagination-wrap span.current {
    background: #883E74;
    color: #ffffff;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {

    .products-section {
        padding: 60px 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }

    .filter-nav-wrap {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 12px;
    }

    .filter-item {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .products-section {
        padding: 40px 15px;
    }

    .filter-nav {
        margin-bottom: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 50px 20px;
    }

    .product-image-wrap {
        padding-bottom: 68%;
        margin-bottom: 18px;
    }

    .product-info {
        padding: 0;
    }

    .product-title {
        font-size: 1.15rem;
    }
}
