/* ============ 首页产品展示模块（独立文件，index.html 专用） ============ */
/* ============ 首页产品展示模块（index.html .products section） ============ */
.products {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f8fd 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px 70px;
    position: relative;
    overflow: hidden;
}

.products::before {
    content: 'PRODUCTS';
    position: absolute;
    right: -30px;
    bottom: -60px;
    font-size: 130px;
    font-weight: 800;
    letter-spacing: 10px;
    color: rgba(26, 86, 219, 0.05);
    pointer-events: none;
    z-index: 0;
}

.products-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.products-head-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.products-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--color1);
}

.products-line {
    width: 46px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color1), rgba(26, 86, 219, 0.1));
}

.products-title {
    font-size: 36px;
    font-weight: 800;
    color: #17233e;
    letter-spacing: 2px;
    line-height: 1.2;
}

.products-title span {
    color: var(--color1);
}

.products-desc {
    font-size: 14px;
    color: #8a94a8;
    line-height: 1.9;
    max-width: 420px;
    text-align: right;
}

.products-body {
    display: flex;
    gap: 36px;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 分类胶囊 */
.product-categories {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(26, 86, 219, 0.12);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.3s;
    box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.1);
}

.cat-btn:hover {
    border-color: rgba(26, 86, 219, 0.35);
    transform: translateX(4px);
}

.cat-btn.active {
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    border-color: var(--color1);
    box-shadow: 0 12px 26px -10px rgba(26, 86, 219, 0.5);
}

.cat-num {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    color: rgba(26, 86, 219, 0.45);
    transition: color 0.3s;
}

.cat-btn.active .cat-num {
    color: rgba(255, 255, 255, 0.75);
}

.cat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cat-name {
    font-size: 15px;
    font-weight: 600;
    color: #2a3752;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.cat-btn.active .cat-name {
    color: #fff;
}

.cat-en {
    font-size: 10px;
    letter-spacing: 2px;
    color: #a3adc0;
    text-transform: uppercase;
    transition: color 0.3s;
}

.cat-btn.active .cat-en {
    color: rgba(255, 255, 255, 0.7);
}

.cat-count {
    font-size: 12px;
    font-weight: 600;
    color: #8a94a8;
    background: rgba(26, 86, 219, 0.08);
    border-radius: 999px;
    padding: 3px 12px;
    transition: all 0.3s;
}

.cat-btn.active .cat-count {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

/* 产品卡 */
.product-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-list {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    height: 820px;
    overflow: hidden;
}

.product-item {
    height: 400px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.16);
    transition: all 0.35s;
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -18px rgba(26, 86, 219, 0.3);
    border-color: rgba(26, 86, 219, 0.16);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.product-item:hover img {
    transform: scale(1.06);
}

.item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-desc {
    flex: 1;
    font-size: 13px;
    line-height: 1.8;
    color: #7a8699;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.product-tags span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color1);
    background: rgba(26, 86, 219, 0.08);
    padding: 4px 12px;
    border-radius: 999px;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color1);
    text-decoration: none;
    transition: all 0.3s;
}

.product-btn:hover {
    color: #0d3fa8;
    gap: 8px;
}

@media (max-width: 900px) {
    .products {
        padding: 50px 20px 60px;
    }

    .products-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 30px;
    }

    .products-title {
        font-size: 28px;
    }

    .products-desc {
        text-align: left;
        max-width: 100%;
    }

    .products-body {
        flex-direction: column;
        gap: 24px;
    }

    .product-categories {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cat-btn {
        padding: 10px 14px;
        gap: 8px;
    }

    .cat-num {
        display: none;
    }

    .cat-en {
        display: none;
    }

    .cat-count {
        display: none;
    }

    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        height: auto;
        overflow: visible;
    }

    .product-item img {
        height: 160px;
    }

    .product-item {
        height: auto;
    }
}

@media (max-width: 560px) {
    .product-list {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
}

/* 首页产品分页 */
.product-pager {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.pager-btn {
    padding: 10px 26px;
    border: 1px solid rgba(26, 86, 219, 0.3);
    border-radius: 999px;
    background: #fff;
    color: var(--color1);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.pager-btn:hover:not(:disabled) {
    background: var(--color1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(26, 86, 219, 0.55);
}

.pager-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pager-info {
    font-size: 13px;
    color: #8a94a8;
    letter-spacing: 1px;
    min-width: 70px;
    text-align: center;
}
