/* 产品页面通用样式 */
.product-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./image/banner1.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    margin-bottom: 0;
}

.product-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 64, 128, 0.7), rgba(0, 128, 255, 0.7));
    z-index: 0;
}

.product-header .container {
    position: relative;
    z-index: 1;
}

/* 产品导航样式 */
.product-category-nav {
    background: #fff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1020;
}

.product-nav-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.product-nav-wrapper {
    flex: 1;
    margin-right: 30px;
}

.nav-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px;
}

.nav-pills::-webkit-scrollbar {
    display: none;
}

.nav-pills .nav-link {
    color: #666;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

/* 搜索框样式 */
.search-container {
    flex: 0 0 300px;
}

.search-container .form-control {
    border-radius: 20px;
    padding-right: 40px;
    border: 1px solid #e0e0e0;
}

.search-container .btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0 20px 20px 0;
    padding: 0 15px;
}

/* 产品筛选按钮 */
.filter-container {
    padding: 20px 0;
}

.filter-container .btn {
    border-radius: 20px;
    padding: 8px 20px;
    margin: 5px;
    transition: all 0.3s ease;
}

.filter-container .btn.active {
    background: var(--primary);
    color: #0d6efd;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

/* 产品卡片样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.product-tag {
    background: #f5f5f5;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* 加载更多按钮 */
#loadMoreBtn {
    padding: 10px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .product-nav-search-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .product-nav-wrapper {
        margin-right: 0;
        width: 100%;
    }

    .search-container {
        width: 100%;
        flex: none;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .product-nav-search-container {
        padding: 8px;
    }

    .nav-pills .nav-link {
        padding: 6px 15px;
        font-size: 14px;
    }

    .search-container .form-control {
        height: 36px;
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .product-card {
        margin: 0 auto;
        max-width: 300px;
    }
}
@media (max-width: 576px) {
    .product-header {
        padding: 80px 0 40px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}