/* Downloads reference layout. Coordinates are normalized from the 1280px source to a 1920px artboard. */
.bmi-downloads-page {
    min-width: 0;
    background: #ffffff;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}

[dir="rtl"] .bmi-downloads-page .site-header,
[dir="rtl"] .bmi-downloads-page [data-channel="downloads"] {
    direction: ltr;
}

.bmi-downloads-page .downloads-fit-shell {
    --downloads-scale: 1;
    --downloads-wide-scale: 1;
    --downloads-wide-banner-height: 302px;
    --downloads-wide-banner-offset: 0px;
    display: grid;
    width: 100%;
    overflow: clip;
    place-items: start center;
}

.bmi-downloads-page .downloads-fit-box {
    width: calc(1920px * var(--downloads-scale));
    height: calc(2382px * var(--downloads-scale));
    overflow: hidden;
}

.bmi-downloads-page .downloads-artboard {
    --site-footer-position: absolute;
    --site-footer-top: calc(1916px + var(--downloads-wide-banner-offset));
    position: relative;
    width: 1920px;
    height: calc(2382px + var(--downloads-wide-banner-offset));
    overflow: hidden;
    background: #ffffff;
    transform: scale(var(--downloads-scale));
    transform-origin: top left;
}

.bmi-downloads-page .main-content {
    padding: 0;
}

.downloads-hero {
    position: absolute;
    top: 142px;
    left: 0;
    width: 1920px;
    height: 302px;
    overflow: hidden;
    background: #01477f url("../downloads/downloads-hero@2x.png") center / 1920px 302px no-repeat;
}

.downloads-hero__inner {
    position: relative;
    z-index: 1;
    width: 1920px;
    height: 302px;
}

.downloads-hero h1 {
    position: absolute;
    top: 104px;
    left: 160px;
    width: auto;
    height: 92px;
    margin: 0;
    color: #ffffff;
    font-size: 76px;
    font-weight: 700;
    line-height: 92px;
    letter-spacing: 0;
}

.downloads-catalogue {
    position: absolute;
    top: 575px;
    left: 50%;
    width: 1605px;
    transform: translateX(-50%);
}

[data-channel="downloads"] .download-card__date {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

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

.downloads-breadcrumb a {
    color: #282828;
    text-decoration: none;
}

.downloads-breadcrumb a:hover,
.downloads-breadcrumb a:focus-visible {
    color: #175da9;
}

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

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

.downloads-breadcrumb-current {
    color: #175da9;
}

[data-channel="downloads"] .article-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 78px 31px;
    width: 1605px;
    margin: 0;
    padding: 0;
    list-style: none;
}

[data-channel="downloads"] .article-item {
    display: block;
    width: 296px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    transition: transform 0.18s ease;
}

[data-channel="downloads"] .article-item:not(.download-item--unavailable):hover {
    transform: translateY(-4px);
}

[data-channel="downloads"] .download-card {
    display: flex;
    flex-direction: column;
    width: 296px;
    height: 500px;
    color: #1d1d1d;
    text-decoration: none;
}

[data-channel="downloads"] .article-title {
    display: block;
    height: 32px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #1d1d1d;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

[data-channel="downloads"] .download-card__media {
    display: block;
    width: 296px;
    height: 420px;
    overflow: hidden;
    border-radius: 6px;
    background: #157fb7;
}

[data-channel="downloads"] .download-card__image {
    display: block;
    width: 296px;
    height: 420px;
    object-fit: cover;
}

[data-channel="downloads"] .download-card__action,
[data-channel="downloads"] .download-card__unavailable {
    display: inline-flex;
    align-items: center;
    align-self: center;
    min-height: 30px;
    margin-top: 12px;
    color: #075eac;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: underline;
}

[data-channel="downloads"] .download-card__unavailable {
    color: #8d969e;
    text-decoration: none;
}

[data-channel="downloads"] .download-item--unavailable {
    opacity: 0.58;
}

[data-channel="downloads"] .article-item a:focus-visible {
    outline: 3px solid #ffd34f;
    outline-offset: 5px;
}

.downloads-empty {
    grid-column: 1 / -1;
    padding: 180px 0;
    color: #777777;
    font-size: 24px;
    text-align: center;
}

[data-channel="downloads"] .cms-list-pagination {
    min-height: 51px;
    margin-top: 91px;
    text-align: center;
}

[data-channel="downloads"] .pager {
    display: inline-flex;
    gap: 9px;
    margin: 0;
}

[data-channel="downloads"] .pager a,
[data-channel="downloads"] .pager span,
[data-channel="downloads"] .pager li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 51px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    background: #ffffff;
    color: #717171;
    font-size: 18px;
    line-height: 1;
}

[data-channel="downloads"] .pager .active,
[data-channel="downloads"] .pager .active span,
[data-channel="downloads"] .pager li.active a {
    border-color: #075eac;
    background: #075eac;
    color: #ffffff;
}

/* 超过 1920px 时按 Banner 原比例放大，同时让公共 Footer 背景延展到视口边缘。 */
@media (min-width: 1921px) {
    .bmi-downloads-page .downloads-fit-shell,
    .bmi-downloads-page .downloads-fit-box,
    .bmi-downloads-page .downloads-artboard {
        overflow: visible;
    }

    .bmi-downloads-page .downloads-hero {
        isolation: isolate;
        overflow: visible;
        width: 100vw;
        height: var(--downloads-wide-banner-height);
        margin-left: calc((1920px - 100vw) / 2);
        background-size: 100vw auto;
    }

    .bmi-downloads-page .downloads-hero::before {
        position: absolute;
        top: 0;
        left: 50%;
        z-index: 0;
        width: 100vw;
        height: 100%;
        background: url("../downloads/downloads-hero@2x.png") center / 100vw auto no-repeat;
        content: "";
        pointer-events: none;
        transform: translateX(-50%);
    }

    .bmi-downloads-page .downloads-hero__inner {
        z-index: 1;
        transform: scale(var(--downloads-wide-scale));
        transform-origin: top left;
    }

    .bmi-downloads-page .downloads-breadcrumb {
        top: calc(479px + var(--downloads-wide-banner-offset));
    }

    .bmi-downloads-page .downloads-catalogue {
        top: calc(575px + var(--downloads-wide-banner-offset));
    }

    /* Footer 内容继续使用 1920px 画板坐标，背景层扩展到整个浏览器视口。 */
    .bmi-downloads-page .site-footer {
        width: 100vw;
        margin-left: calc((1920px - 100vw) / 2);
    }

    .bmi-downloads-page .site-footer .footer-social,
    .bmi-downloads-page .site-footer .footer-badge {
        left: 50%;
        transform: translateX(-50%);
    }

    .bmi-downloads-page .site-footer .footer-line,
    .bmi-downloads-page .site-footer .footer-privacy {
        width: 100vw;
    }
}
