/* ============================================
   Product List Page CSS
   Cangzhou Xinghui Pipeline Equipment Co., Ltd.
   ============================================ */

/* ============================================
   Page Banner Section
   ============================================ */
.xinghui-page-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.xinghui-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.xinghui-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    animation: xinghui-fadeIn 0.8s ease-out;
}

.xinghui-banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.xinghui-banner-content p {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.xinghui-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.xinghui-breadcrumb a {
    color: #fff;
    transition: all 0.3s ease;
}

.xinghui-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.xinghui-breadcrumb i {
    font-size: 12px;
    opacity: 0.8;
}

.xinghui-breadcrumb span {
    opacity: 0.9;
}

/* ============================================
   Product Filter Section
   ============================================ */
.xinghui-product-filter {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.xinghui-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.xinghui-filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1e3c72;
}

.xinghui-filter-title i {
    font-size: 20px;
}

.xinghui-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.xinghui-filter-item {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.xinghui-filter-item:hover {
    border-color: #2a5298;
    color: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.15);
}

.xinghui-filter-item.xinghui-active {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

/* ============================================
   Products Grid Section
   ============================================ */
.xinghui-products-section {
    padding: 80px 0;
    background: #fff;
}

.xinghui-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.xinghui-product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: xinghui-fadeIn 0.6s ease-out backwards;
}

.xinghui-product-item:nth-child(1) { animation-delay: 0.1s; }
.xinghui-product-item:nth-child(2) { animation-delay: 0.15s; }
.xinghui-product-item:nth-child(3) { animation-delay: 0.2s; }
.xinghui-product-item:nth-child(4) { animation-delay: 0.25s; }
.xinghui-product-item:nth-child(5) { animation-delay: 0.3s; }
.xinghui-product-item:nth-child(6) { animation-delay: 0.35s; }
.xinghui-product-item:nth-child(7) { animation-delay: 0.4s; }
.xinghui-product-item:nth-child(8) { animation-delay: 0.45s; }
.xinghui-product-item:nth-child(9) { animation-delay: 0.5s; }

.xinghui-product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.15);
}

.xinghui-product-thumb {
    position: relative;
    height: 280px;
    overflow: hidden;
    margin: 0;
}

.xinghui-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.xinghui-product-item:hover .xinghui-product-thumb img {
    transform: scale(1.1);
}

.xinghui-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 114, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.xinghui-product-item:hover .xinghui-product-overlay {
    opacity: 1;
    visibility: visible;
}

.xinghui-view-btn,
.xinghui-inquiry-btn {
    padding: 12px 30px;
    background: #fff;
    color: #1e3c72;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.xinghui-product-item:hover .xinghui-view-btn,
.xinghui-product-item:hover .xinghui-inquiry-btn {
    transform: translateY(0);
}

.xinghui-view-btn:hover,
.xinghui-inquiry-btn:hover {
    background: #1e3c72;
    color: #fff;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.xinghui-product-details {
    padding: 25px;
}

.xinghui-product-details h3 {
    font-size: 20px;
    color: #1e3c72;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.xinghui-product-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.xinghui-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.xinghui-product-tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.xinghui-product-standard {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   Pagination
   ============================================ */
.xinghui-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.xinghui-pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.xinghui-pagination-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.xinghui-pagination-item a:hover {
    border-color: #2a5298;
    color: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.15);
}

.xinghui-pagination-item.xinghui-active a {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.xinghui-pagination-item.xinghui-disabled a {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .xinghui-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .xinghui-banner-content h1 {
        font-size: 40px;
    }
    
    .xinghui-banner-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .xinghui-page-banner {
        height: 300px;
    }
    
    .xinghui-banner-content h1 {
        font-size: 32px;
    }
    
    .xinghui-banner-content p {
        font-size: 16px;
    }
    
    .xinghui-breadcrumb {
        font-size: 14px;
    }
    
    .xinghui-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .xinghui-filter-list {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .xinghui-filter-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .xinghui-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .xinghui-products-section {
        padding: 50px 0;
    }
    
    .xinghui-product-thumb {
        height: 240px;
    }
    
    .xinghui-product-details {
        padding: 20px;
    }
    
    .xinghui-product-details h3 {
        font-size: 18px;
    }
    
    .xinghui-product-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .xinghui-page-banner {
        height: 250px;
    }
    
    .xinghui-banner-content h1 {
        font-size: 26px;
    }
    
    .xinghui-banner-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .xinghui-filter-title {
        font-size: 16px;
    }
    
    .xinghui-filter-item {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .xinghui-product-thumb {
        height: 200px;
    }
    
    .xinghui-view-btn,
    .xinghui-inquiry-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    .xinghui-product-details {
        padding: 15px;
    }
    
    .xinghui-product-details h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .xinghui-product-desc {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .xinghui-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .xinghui-product-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .xinghui-product-standard {
        font-size: 12px;
    }
    
    .xinghui-pagination-item a {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

