/* ========================================
   EPLUSEM 产品中心 — 与首页视觉对齐
   ======================================== */

.products-page-hero {
    padding-top: calc(var(--navbar-height) + var(--space-16));
    padding-bottom: var(--space-8);
}

.products-page-hero .section-header {
    margin-bottom: var(--space-10);
}

.section-header-left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 720px;
}

.section-header-left .section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.section-header-left .section-desc {
    font-size: var(--text-base);
}

/* ========== 分类标签 ========== */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.category-tab img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.category-tab:hover {
    color: var(--text-brand);
    border-color: var(--border-brand);
    background: rgba(142, 229, 223, 0.12);
}

.category-tab.active {
    color: var(--text-brand);
    background: rgba(142, 229, 223, 0.28);
    border-color: rgba(106, 196, 190, 0.55);
}

/* ========== 分类区块 ========== */
.products-section {
    position: relative;
}

.products-section + .products-section {
    padding-top: var(--space-12);
}

/* ========== 产品列表：对齐 Group 2085666738.svg 1073×372 ========== */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.product-item {
    --card-h: 372px;
    position: relative;
    display: grid;
    /* 左文案到 x=723，右可视区 350 */
    grid-template-columns: minmax(0, 723fr) minmax(240px, 350fr);
    align-items: stretch;
    height: var(--card-h);
    min-height: var(--card-h);
    /* 原稿：左上 r=33 左下 r=42，右侧底板 r=24 */
    border-radius: 33px 24px 24px 42px;
    overflow: hidden;
    isolation: isolate;
    background: #e8f0f0;
    transition: box-shadow var(--transition-base);
}

/* 右侧底板：x=474 w=599 h=372 rx=24，上下贴齐、无间距 */
.product-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55.8248%;
    border-radius: 0 24px 24px 0;
    background: url('../images/products/layout-layer-1.png') right center / cover no-repeat;
    z-index: 0;
}

.product-item:hover {
    box-shadow: 0 18px 48px rgba(8, 21, 24, 0.10), 0 0 24px rgba(142, 229, 223, 0.14);
}

.product-item-copy,
.product-item-visual {
    position: relative;
    z-index: 1;
}

/* 左侧块：顶左 r=33，底左 r=42，右侧上下 r=29.2 */
.product-item-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    height: 100%;
    padding: 36px 36px 36px 104px;
    overflow: hidden;
    border-radius: 33px 29.2px 29.2px 42px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
        url('../images/products/layout-layer-3.png') left center / cover no-repeat;
}

.product-item-copy .showcase-category {
    margin-bottom: 14px;
}

.product-item-copy h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: var(--weight-bold);
    color: var(--color-depth);
    margin-bottom: 14px;
    line-height: 1.25;
}

.product-item-copy > p {
    font-size: var(--text-sm);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 18px;
    max-width: 460px;
}

/* 产品图：原稿 x=747 y=39 w=304 h=295 */
.product-item-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin: 0;
    padding: 39px 22px 38px 24px;
}

.product-item-visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 304px;
    max-height: 295px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 18px 28px rgba(8, 21, 24, 0.12));
}

.product-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 6px;
}

.product-item-data {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    color: var(--text-brand);
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .product-item {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        border-radius: 33px 33px 24px 24px;
    }

    .product-item-copy {
        padding: 28px 24px 16px;
        border-radius: 33px 33px 0 0;
    }

    .product-item::after {
        top: auto;
        left: 0;
        width: 100%;
        height: 240px;
        border-radius: 0 0 24px 24px;
        background: url('../images/products/layout-layer-1.png') center / cover no-repeat;
    }

    .product-item-visual {
        min-height: 240px;
        padding: 20px 24px 24px;
    }

    .product-item-visual img {
        max-width: 240px;
        max-height: 200px;
    }
}

@media (max-width: 640px) {
    .products-page-hero {
        padding-top: calc(var(--navbar-height) + var(--space-10));
    }

    .category-tabs {
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow: visible;
        gap: 8px;
        max-width: 100%;
        padding-bottom: 0;
    }

    .category-tab {
        flex: 0 1 auto;
        max-width: 100%;
        padding: 8px 14px;
        font-size: 13px;
    }
}
