/* 产品中心专属样式 v2 */
.page-banner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: 1.5px;
}
.page-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-top: 0.5rem;
}

.products-container {
    max-width: 1280px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* 分类导航 */
.category-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.category-nav::-webkit-scrollbar { height: 4px; }
.category-nav::-webkit-scrollbar-track { background: transparent; border-radius: 4px; }
.category-nav::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.cat-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.55rem 1.3rem;
    background: #f8fafc;
    border-radius: 40px;
    text-decoration: none;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.cat-link.active {
    background: #0b4aad;
    color: #fff;
    border-color: #0b4aad;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(11, 74, 173, 0.25);
}

.cat-link:hover:not(.active) {
    background: #fff;
    border-color: #c90026;
    color: #c90026;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f2f6fd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
    border-color: transparent;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover img { transform: scale(1.03); }

.product-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(11, 74, 173, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.3px;
}

.product-content { padding: 0.8rem 0.85rem 1rem; }

.product-card .product-title {
    font-size: 0.9rem !important;
    font-weight: 700;
    margin: 0 0 0.45rem;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.35em * 2);
}

.product-summary {
    color: #64748b;
    line-height: 1.45;
    margin: 0;
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 空状态 */
.no-data {
    text-align: center;
    padding: 4rem 1rem;
    background: #fff;
    border-radius: 24px;
    color: #94a3b8;
    font-size: 0.95rem;
    border: 1px dashed #e2e8f0;
}

.pagination { margin-top: 3rem; }

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    margin: 0 3px;
    background: #f3f7fd;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
}

.pagination a:hover,
.pagination a.active {
    background: #0b4aad;
    color: #fff;
    border-color: #0b4aad;
}

@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 900px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .category-nav { gap: 0.4rem; }
    .cat-link { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
}

@media (max-width: 600px) {
    .products-container { padding: 0 1rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .page-banner h1 { font-size: 1.6rem; }
    .product-content { padding: 0.6rem 0.6rem 0.8rem; }
    .product-card .product-title { font-size: 0.8rem !important; }
}
