/* Products listing page reconstructed on the 1920 x 3333 source artboard (product.png). */
:root {
    --products-board-width: 1920;
    --products-board-height: 3404;
    --board-scale: 1;
    --products-blue: #175da9;
    --products-ink: #222222;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #ffffff;
}

.bmi-products-page,
.bmi-products-page button {
    font-family: "Lato", Arial, Helvetica, sans-serif;
}

.bmi-products-page * {
    box-sizing: border-box;
}

.bmi-products-page .fit-shell {
    display: grid;
    width: 100%;
    place-items: start center;
    overflow: hidden;
    background: #ffffff;
}

.bmi-products-page .fit-box {
    position: relative;
    width: 1920px;
    height: 3404px;
    overflow: hidden;
}

.bmi-products-page .artboard {
    --site-footer-position: absolute;
    --site-footer-top: 2940px;
    position: relative;
    width: 1920px;
    height: 3404px;
    overflow: hidden;
    transform: scale(var(--board-scale));
    transform-origin: top left;
    background: #f6f6f6;
}

/* Active nav item: PRODUCTS is the 3rd link; header background stays identical to the homepage. */
.bmi-products-page .nav-list > li:nth-child(3) > a {
    color: #ffffff;
}

/* 原图页脚比共享页脚高 4px(464 vs 460)，底部与社交图标按原图对齐。 */
.bmi-products-page .site-footer {
    height: 464px;
}

.bmi-products-page .site-footer .footer-social {
    top: 60px;
}

/* ============== Hero: y 144-444 ============== */
.products-hero {
    position: absolute;
    top: 144px;
    left: 0;
    width: 1920px;
    height: 300px;
    overflow: hidden;
}

.products-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1920px;
    height: 300px;
    max-width: none;
}

.products-hero-title {
    position: absolute;
    top: 121px;
    left: 160px;
    width: 500px;
    height: 70px;
    margin: 0;
    color: #ffffff;
    font-size: 70px;
    font-weight: 700;
    line-height: 70px;
    letter-spacing: 0;
}

.products-breadcrumb {
    position: absolute;
    z-index: 2;
    top: 479px;
    left: 160px;
    display: flex;
    align-items: center;
    height: 24px;
    color: var(--products-ink);
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    white-space: nowrap;
}

.products-breadcrumb a {
    color: var(--products-ink);
    text-decoration: none;
}

.products-breadcrumb a:hover,
.products-breadcrumb a:focus-visible {
    color: var(--products-blue);
}

.products-breadcrumb a:focus-visible {
    outline: 2px solid rgba(23, 93, 169, 0.45);
    outline-offset: 3px;
}

.products-breadcrumb-sep {
    margin: 0 3px;
}

.products-breadcrumb-current {
    color: var(--products-blue);
}

/* ============== 简介 + 卡片灰底区: y 444-2049 ============== */
.products-intro {
    position: absolute;
    top: 515px;
    left: 0;
    width: 1920px;
    height: 1605px;
    background: #f6f6f6;
}

.products-intro-heading {
    position: absolute;
    top: 101px;
    left: 460px;
    width: 1000px;
    margin: 0;
    color: var(--products-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: 0;
    text-align: center;
}

.products-intro-paragraph {
    position: absolute;
    top: 235px;
    left: 508px;
    width: 905px;
    margin: 0;
    color: var(--products-ink);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0;
    text-align: center;
}

/* ============== 产品卡片: 370x545, 列 x=160/570/980/1390 ============== */
.products-card {
    position: absolute;
    width: 370px;
    height: 545px;
    background: url("../products/images/tile-card-white@2x.png") 0 0 / 370px 545px no-repeat;
}

.products-card-1 { top: 899px; left: 160px; }
.products-card-2 { top: 899px; left: 570px; }
.products-card-3 { top: 899px; left: 980px; }
.products-card-4 { top: 899px; left: 1390px; }
.products-card-5 { top: 1484px; left: 160px; }
.products-card-6 { top: 1484px; left: 570px; }
.products-card-7 { top: 1484px; left: 980px; }

.products-card-image-link {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    display: block;
    width: 370px;
    height: 370px;
    overflow: hidden;
}

.products-card-image-link:focus-visible {
    outline: 3px solid #175da9;
    outline-offset: -3px;
}

.products-card-image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 370px;
    height: 370px;
    max-width: none;
    border-radius: 8px 8px 0 0;
    transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .products-card-image-link:hover .products-card-image {
        transform: scale(1.06);
    }
}

.products-card-title {
    position: absolute;
    top: 400px;
    left: 30px;
    margin: 0;
    color: var(--products-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.products-card-tagline {
    position: absolute;
    top: 437px;
    left: 30px;
    margin: 0;
    color: #888888;
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    line-height: 20px;
    letter-spacing: 0;
    white-space: nowrap;
}

.products-card-button {
    position: absolute;
    top: 480px;
    left: 15px;
    display: flex;
    width: 340px;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: url("../products/images/btn-details-blue@2x.png") 0 0 / 340px 50px no-repeat;
    text-decoration: none;
    transition: opacity 0.2s;
}

.products-card-button:hover {
    opacity: 0.85;
}

.products-card-button-label {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0;
    white-space: nowrap;
}

.products-card-button-arrow-icon {
    display: block;
    width: 19px;
    height: 13px;
}

/* ============== 产品总览: y 2120-2940 ============== */
.products-overview {
    position: absolute;
    top: 2120px;
    left: 0;
    width: 1920px;
    height: 820px;
    overflow: hidden;
}

.products-overview-bg {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1920px;
    height: 820px;
    max-width: none;
}

.products-overview-title {
    position: absolute;
    top: 92px;
    left: 160px;
    margin: 0;
    color: #ffffff;
    font-size: 46px;
    font-weight: 700;
    line-height: 50px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.products-overview-tile {
    position: absolute;
    top: 188px;
    width: 370px;
    height: 370px;
}

.products-overview-tile-1 { left: 160px; }
.products-overview-tile-2 { left: 570px; }
.products-overview-tile-3 { left: 980px; }
.products-overview-tile-4 { left: 1390px; }

.products-overview-tile img {
    display: block;
    width: 370px;
    height: 370px;
    max-width: none;
    border-radius: 8px;
}

.products-overview-label {
    position: absolute;
    top: 589px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.products-overview-label-1 { left: 160px; }
.products-overview-label-2 { left: 570px; }
.products-overview-label-3 { left: 980px; }
.products-overview-label-4 { left: 1390px; }

.products-pager-button {
    position: absolute;
    top: 654px;
    width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.products-pager-prev { left: 889px; }
.products-pager-next { left: 970px; }

.products-pager-button img {
    display: block;
    width: 60px;
    height: 60px;
    max-width: none;
}

/* prev 切图本身即白描边圆+朝左箭头，无需变换。 */
.products-pager-button:hover img {
    opacity: 0.85;
}

@media (max-width: 1279px) {
    .bmi-products-page {
        overflow-x: visible;
    }

    .bmi-products-page .fit-shell,
    .bmi-products-page .fit-box,
    .bmi-products-page .artboard {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .bmi-products-page .artboard {
        --site-footer-position: relative;
        --site-footer-top: auto;
        padding-top: 0;
        transform: none;
    }

    .products-hero {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 200px;
    }

    .products-hero-bg {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

    .products-hero-title {
        top: auto;
        bottom: 28px;
        left: 20px;
        width: calc(100% - 40px);
        height: auto;
        font-size: 40px;
        line-height: 48px;
        overflow-wrap: anywhere;
    }

    .products-breadcrumb {
        position: relative;
        top: auto;
        left: auto;
        z-index: auto;
        height: 56px;
        padding: 0 32px;
        font-size: 18px;
        line-height: 24px;
    }

    .products-intro {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding: 36px 20px 28px;
    }

    .products-intro-heading,
    .products-intro-paragraph {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        text-align: start;
    }

    .products-intro-heading {
        font-size: 24px;
        line-height: 34px;
    }

    .products-intro-paragraph {
        margin-top: 18px;
        font-size: 16px;
        line-height: 25px;
    }

    .products-grid {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 0 16px 32px;
        background: #f6f6f6;
    }

    .products-card,
    .products-card-1,
    .products-card-2,
    .products-card-3,
    .products-card-4,
    .products-card-5,
    .products-card-6,
    .products-card-7 {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
        border: 1px solid #e2e2e2;
        border-radius: 6px;
        background: #ffffff;
    }

    .products-card-image-link {
        position: relative;
        top: auto;
        left: auto;
        display: block;
        width: 100%;
        height: auto;
    }

    .products-card-image {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        max-width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
    }

    .products-card-title,
    .products-card-tagline,
    .products-card-button {
        position: relative;
        top: auto;
        left: auto;
    }

    .products-card-title {
        margin: 18px 16px 0;
        font-size: 18px;
        line-height: 25px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .products-card-tagline {
        margin: 8px 16px 0;
        font-size: 16px;
        line-height: 23px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .products-card-button {
        width: calc(100% - 32px);
        min-height: 48px;
        height: 48px;
        margin: 18px 16px 16px;
        background-color: var(--products-blue);
        background-size: 100% 100%;
    }

    .products-overview {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 32px 16px;
        background: #175da9;
    }

    .products-overview-title,
    .products-overview-title.section-title {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin: 0 0 20px;
        font-size: 28px;
        line-height: 34px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .products-overview .products-carousel,
    .products-overview .product-viewport {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        overflow-x: auto;
    }

    .products-overview .product-grid {
        display: flex;
        width: max-content;
        gap: 16px;
        transform: none !important;
    }

    .products-overview .product-item {
        flex: 0 0 min(76vw, 280px);
        width: min(76vw, 280px);
    }

    .products-overview .product-card {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .products-overview .product-name {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .products-overview .products-controls {
        display: none;
    }

    .bmi-products-page .site-footer {
        position: relative;
        top: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 28px 16px;
    }

    .bmi-products-page .site-footer .footer-social,
    .bmi-products-page .site-footer .footer-line,
    .bmi-products-page .site-footer .footer-privacy,
    .bmi-products-page .site-footer .footer-badge {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 0 0 14px;
        transform: none;
    }

    .bmi-products-page .site-footer .footer-social {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
}

/* 超宽桌面端：产品页横幅保持 1920x300 原始比例，避免 100vw + cover 导致图片放大裁切。 */
@media (min-width: 1921px) {
    body.bmi-products-page {
        background: #f6f6f6;
    }

    body.bmi-products-page .fit-shell {
        background: #f6f6f6;
    }

    body.bmi-products-page .products-hero {
        z-index: 1;
        overflow: visible;
    }

    body.bmi-products-page .products-hero::before {
        position: absolute;
        top: 0;
        left: 50%;
        z-index: 0;
        width: 100vw;
        height: 300px;
        content: "";
        background: #06258d;
        transform: translateX(-50%);
    }

    body.bmi-products-page .products-hero > img.products-hero-bg {
        position: relative;
        z-index: 1;
        width: 1920px;
        height: 300px;
        max-width: none;
        margin-left: 0;
        object-fit: contain;
    }

    /* 固定 1920px 画板在超宽屏居中时，补齐产品总览两侧的原有蓝色底。 */
    body.bmi-products-page .products-overview {
        z-index: 1;
        overflow: visible;
    }

    body.bmi-products-page .products-overview::before {
        position: absolute;
        top: 0;
        left: 50%;
        z-index: -1;
        width: 100vw;
        height: 100%;
        content: "";
        background: #00437a;
        transform: translateX(-50%);
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-inline: 24px;
    }

    .products-overview {
        padding-inline: 24px;
    }
}

@media (max-width: 1024px) {
    /* This page retains the fixed-artboard body class for its desktop baseline. */
    .bmi-products-page .site-header .nav-toggle {
        display: flex;
    }
}

@media (max-width: 680px) and (max-width: 1279px) {
    .products-breadcrumb {
        height: 48px;
        padding: 0 20px;
        font-size: 16px;
    }

    .products-hero {
        height: auto;
        aspect-ratio: 1920 / 300;
    }

    .products-hero-bg {
        object-fit: contain;
    }

    .products-hero-title {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        transform: none;
    }
}
