.product-container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.product-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product_banner {
    width: 100%;
    overflow: hidden;
    padding: 0;
}

.product_banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============ 分类区域 ============ */
.product_category {
    padding: 4rem 0;
    background-color: #ffffff;
}

.product_category .product_category-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.product_category .product_category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background-color: transparent;
    border: 1px solid #e8e8e8;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.product_category .product_category-item:hover {
    border-color: #008F63;
}

.product_category .product_category-item.product_category-active {
    border-color: #D8D8D8;
}

.product_category .product_category-item img {
    width: 100px;
    height: 64px;
}

/* 分类名称 - 默认样式（图四） */
.product_category .product_category-item .product_category-name {
    font-family: "DM Sans", DM Sans, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #000000;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* 分类名称 - 选中样式（图五） */
.product_category .product_category-item.product_category-active .product_category-name {
    font-family: "DM Sans", DM Sans, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #009946;
    line-height: 40px;
    text-align: center;
}

.product_category .product_category-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #008F63;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2px;
}

.product_category .product_category-item.product_category-active::after {
    opacity: 1;
}

/* ============ 产品列表区域 ============ */
.product_list {
    padding: 2rem 0 4rem;
    background-color: #ffffff;
}

/* 一行4个的grid布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* 产品卡片 */
.product-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
}

.product-item > a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-item img {
    width: 100%;
    height: 200px;
    flex: 1;
    object-fit: contain;
    padding: 1rem;
    box-sizing: border-box;
}

/* 产品标题（图三） */
.product-item h3 {
    font-family: "DM Sans", DM Sans, sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #333333;
    line-height: 30px;
    text-align: center;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* fade-in动画 */
.product-item.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ 分页导航 ============ */
.product_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.product_pagination .pagination_prev,
.product_pagination .pagination_next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333333;
}

.product_pagination .pagination_prev:hover,
.product_pagination .pagination_next:hover {
    border-color: #009946;
    color: #009946;
}

.product_pagination .pagination_numbers {
    display: flex;
    gap: 0.5rem;
}

.product_pagination .pagination_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-family: "DM Sans", DM Sans, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product_pagination .pagination_item:hover {
    border-color: #009946;
    color: #009946;
}

.product_pagination .pagination_item.pagination_current {
    background-color: #009946;
    border-color: #009946;
    color: #ffffff;
    cursor: default;
}

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
    .product-container {
        width: 92%;
        padding: 0 0.75rem;
    }

    .product_category {
        padding: 3rem 0;
    }

    .product-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-container {
        width: 95%;
        padding: 0 0.5rem;
    }

    .product_category {
        padding: 2rem 0;
    }

    .product_category .product_category-list {
        gap: 1rem;
    }

    .product_category .product_category-item {
        padding: 1rem 1rem;
    }

    .product_category .product_category-item img {
        width: 50px;
        height: 50px;
    }

    .product_category .product_category-item .product_category-name,
    .product_category .product_category-item.product_category-active .product_category-name {
        font-size: 14px;
        line-height: 32px;
    }

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

    .product-item h3 {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 480px) {
    .product_category .product_category-list {
        gap: 0.75rem;
    }

    .product_category .product_category-item {
        padding: 0.75rem 0.75rem;
    }

    .product_category .product_category-item img {
        width: 40px;
        height: 40px;
    }

    .product_category .product_category-item .product_category-name,
    .product_category .product_category-item.product_category-active .product_category-name {
        font-size: 12px;
        line-height: 28px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-item h3 {
        font-size: 14px;
        line-height: 20px;
    }
}
