/* NEWS detail reconstructed from news详情.png on a fixed 1920 x 2873 artboard. */
:root {
    --news-detail-board-width: 1920;
    --news-detail-board-height: 2873;
    --news-detail-scale: 1;
    --news-detail-blue: #175da9;
    --news-detail-ink: #282828;
}

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

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

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

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

.bmi-news-detail-page .fit-box {
    position: relative;
    width: 1920px;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.bmi-news-detail-page .artboard {
    --site-footer-position: relative;
    --site-footer-top: auto;
    display: flow-root;
    position: relative;
    width: 1920px;
    height: auto;
    min-height: 0;
    overflow: visible;
    transform: scale(var(--news-detail-scale));
    transform-origin: top left;
    background: #ffffff;
}

/* Shared header markup is locked to the source-image coordinates. */
.bmi-news-detail-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 144px;
    min-width: 0;
}

.bmi-news-detail-page .site-header .topbar {
    position: relative;
    height: 44px;
    padding: 0 160px;
    background: #222222;
}

.bmi-news-detail-page .site-header .topbar-list {
    width: auto;
    height: 44px;
    margin: 0 0 0 auto;
    gap: 31px;
}

.bmi-news-detail-page .site-header .topbar-list a {
    gap: 7px;
    color: #888888;
    font-size: 16px;
    line-height: 18px;
}

.bmi-news-detail-page .site-header .topbar-icon {
    width: 14px;
    max-height: 16px;
    object-fit: contain;
}

.bmi-news-detail-page .site-header .topbar-search {
    width: 240px;
    height: 30px;
    padding: 0 7px 0 14px;
    border-color: #707070;
    border-radius: 15px;
}

.bmi-news-detail-page .site-header .topbar-search input {
    font-size: 14px;
}

.bmi-news-detail-page .site-header .topbar-search button,
.bmi-news-detail-page .site-header .topbar-search button img {
    width: 16px;
    height: 16px;
}

.bmi-news-detail-page .site-header .header-main {
    height: 100px;
    padding: 0 160px;
    background: #01477f;
}

.bmi-news-detail-page .site-header .header-logo {
    top: 0;
    left: 160px;
    width: 200px;
    height: 110px;
    padding: 0;
    overflow: visible;
    border-radius: 0 0 20px 20px;
    background: var(--news-detail-blue);
}

.bmi-news-detail-page .site-header .header-logo img {
    display: none;
}

.bmi-news-detail-page .site-header .header-logo::after {
    position: absolute;
    top: 26px;
    left: 30px;
    width: 140px;
    height: 58px;
    background: url("../news-detail/illustrations/illustration-header-bmi-logo-mark-01.png") center / 140px 58px no-repeat;
    content: "";
}

.bmi-news-detail-page .site-header .header-nav {
    flex: 0 0 auto;
}

.bmi-news-detail-page .site-header .nav-list {
    gap: 50px;
}

.bmi-news-detail-page .site-header .nav-list > li > a {
    color: #dee7ee;
    font-size: 19px;
    line-height: 24px;
    letter-spacing: 0;
}

.bmi-news-detail-page .site-header .nav-list > li:nth-child(5) > a {
    color: #ffffff;
}

.bmi-news-detail-page .news-detail-hero {
    position: absolute;
    top: 144px;
    left: 0;
    width: 1920px;
    height: 300px;
    overflow: hidden;
}

.bmi-news-detail-page .news-detail-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1920px;
    height: 300px;
    max-width: none;
}

.bmi-news-detail-page .news-detail-hero h1 {
    position: absolute;
    top: 118px;
    left: 155px;
    width: 184px;
    height: 66px;
    margin: 0;
    color: #ffffff;
    font-size: 75px;
    font-weight: 700;
    line-height: 66px;
    letter-spacing: 0;
}

.bmi-news-detail-page .news-detail-article {
    position: relative;
    top: auto;
    left: 0;
    width: 1920px;
    min-height: 1969px;
    margin-top: 444px;
    padding: 89px 260px 60px;
    background: #ffffff;
}

.bmi-news-detail-page .news-detail-title {
    position: static;
    width: 1400px;
    height: auto;
    margin: 0 0 32px;
    color: var(--news-detail-ink);
    font-size: 39px;
    font-weight: 700;
    line-height: 54px;
    letter-spacing: 0;
    text-align: center;
}

.bmi-news-detail-page .news-detail-date {
    position: static;
    display: flex;
    align-items: center;
    width: 220px;
    height: 28px;
    color: #999999;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.bmi-news-detail-page .news-detail-date img {
    display: block;
    flex: 0 0 26px;
    width: 26px;
    height: 28px;
    max-width: none;
}

.bmi-news-detail-page .news-detail-date time {
    display: block;
    margin-left: 6px;
    white-space: nowrap;
}

.bmi-news-detail-page .news-detail-divider {
    position: static;
    width: 1400px;
    height: 1px;
    margin: 0 0 56px;
    background: #dddddd;
}

.bmi-news-detail-page .news-detail-body {
    position: static;
    width: 1400px;
    color: #4b4b4b;
    font-size: 18px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 0;
}

.bmi-news-detail-page .news-detail-date {
    margin: 0 0 14px;
}

.bmi-news-detail-page .news-detail-article--without-date .news-detail-title {
    margin-bottom: 36px;
}

.bmi-news-detail-page .site-footer {
    position: relative;
    top: auto;
}

.bmi-news-detail-page .news-detail-body p {
    margin: 0 0 28px;
    padding: 0;
}

/* CMS product articles use the first paragraph as an in-body heading. */
.bmi-news-detail-page .news-detail-article--without-date .news-detail-body > p:first-child {
    margin-bottom: 12px;
}

.bmi-news-detail-page .news-detail-article--without-date .news-detail-body > p:first-child + table {
    margin-top: 0;
    border-collapse: collapse;
}

.bmi-news-detail-page .news-detail-article--without-date .news-detail-body > p:first-child + table td {
    padding-top: 0;
    vertical-align: top;
}

.bmi-news-detail-page .news-detail-body img,
.bmi-news-detail-page .news-detail-body video,
.bmi-news-detail-page .news-detail-body table {
    max-width: 1400px;
}

/* System Products articles use a two-column CMS table; keep copy aligned to its top. */
.bmi-system-products-detail-page .news-detail-hero h1 {
    width: auto;
    white-space: nowrap;
}

.bmi-brake-disc-detail-page .news-detail-hero h1 {
    width: auto;
    white-space: nowrap;
}

/* BRAKE DISC 详情按 CMS 正文实际高度结束，避免固定画板产生底部留白。 */
.bmi-brake-disc-detail-page .news-detail-article {
    min-height: 0;
}

.bmi-product-details-detail-page .news-detail-hero h1 {
    width: auto;
    white-space: nowrap;
}

.bmi-system-products-detail-page .news-detail-body {
    font-size: 24px;
    line-height: 1.5;
    /* 正文默认纯黑。仅作用于容器，由继承生效；
       文章内自带颜色的文字（内联 style / font color）优先级高于继承值，会保持自身颜色。 */
    color: #000000;
    overflow-wrap: break-word;
    word-break: normal;
}

/* CMS 编辑器会在正文元素上内联 word-break: break-all，其优先级高于上面的继承规则，
   必须连同子元素一起压回「按单词断行」，否则英文单词仍会被从中间劈开。 */
.bmi-system-products-detail-page .news-detail-body,
.bmi-system-products-detail-page .news-detail-body * {
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.bmi-system-products-detail-page .news-detail-body > p:first-child {
    margin-bottom: 8px;
}

.bmi-system-products-detail-page .news-detail-body > p:first-child + table {
    margin-top: 0;
    border-collapse: collapse;
}

.bmi-system-products-detail-page .news-detail-body > p:first-child + table td {
    padding-top: 0;
    vertical-align: middle;
}

/* CMS 图文表格的图片与相邻长文案在同一行内垂直居中。 */
.bmi-system-products-detail-page .news-detail-body table td {
    vertical-align: middle;
}

/* UEditor 会在图片后输出仅含 br 的占位段落，不能参与单元格的垂直居中计算。 */
.bmi-system-products-detail-page .news-detail-body table td > p:has(> br:only-child) {
    display: none;
}

.bmi-system-products-detail-page .news-detail-body table td > p:has(> img:only-child) {
    margin: 0;
}

.bmi-system-products-detail-page .news-detail-body table td > p > img:only-child {
    display: block;
}

/* Prevent CMS table images from expanding the editor-defined column widths. */
.bmi-system-products-detail-page .news-detail-body table td img {
    max-width: 100%;
    height: auto;
}

.bmi-system-products-detail-page .news-detail-title {
    margin-bottom: 16px;
}

.bmi-system-products-detail-page .news-detail-divider {
    margin-bottom: 20px;
}

/* Narrow viewports scale the locked artboard as a single unit. */
@media (max-width: 1919px) {
    .bmi-news-detail-page .site-header .nav-toggle {
        display: none;
    }
}

@media (max-width: 1279px) {
    .bmi-news-detail-page .fit-shell {
        display: block;
        overflow: visible;
    }

    .bmi-news-detail-page .fit-box {
        width: 100% !important;
        height: auto !important;
        overflow: visible;
    }

    .bmi-news-detail-page .artboard {
        --site-footer-position: relative;
        --site-footer-top: auto;
        width: 100%;
        height: auto;
        overflow: visible;
        transform: none !important;
    }

    .bmi-news-detail-page .news-detail-hero {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 300px;
    }

    .bmi-news-detail-page .news-detail-hero-image {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

    .bmi-news-detail-page .news-detail-hero h1 {
        top: 50%;
        left: 0;
        width: auto;
        height: auto;
        padding: 0 32px;
        font-size: 48px;
        line-height: 1.1;
        transform: translateY(-50%);
    }

    .bmi-news-detail-page .news-detail-article {
        position: static;
        width: 100%;
        height: auto;
        min-height: 0;
        margin-top: 0;
        padding: 56px max(32px, env(safe-area-inset-right)) 72px max(32px, env(safe-area-inset-left));
    }

    .bmi-news-detail-page .news-detail-title,
    .bmi-news-detail-page .news-detail-date,
    .bmi-news-detail-page .news-detail-divider,
    .bmi-news-detail-page .news-detail-body {
        position: static;
        width: auto;
        height: auto;
    }

    .bmi-news-detail-page .news-detail-title {
        margin: 0 0 20px;
        font-size: 34px;
        line-height: 1.25;
        text-align: start;
    }

    .bmi-news-detail-page .news-detail-date {
        margin: 0 0 18px;
    }

    .bmi-news-detail-page .news-detail-divider {
        margin: 0 0 32px;
    }

    .bmi-news-detail-page .news-detail-body {
        max-width: none;
        font-size: 19px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    .bmi-system-products-detail-page .news-detail-body {
        font-size: 24px;
        line-height: 1.5;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .bmi-news-detail-page .news-detail-body img,
    .bmi-news-detail-page .news-detail-body video,
    .bmi-news-detail-page .news-detail-body table {
        width: auto;
        max-width: 100%;
        height: auto;
    }

    .bmi-news-detail-page .news-detail-body table {
        display: block;
        overflow-x: auto;
    }

    .bmi-news-detail-page .site-footer {
        position: relative;
        top: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 44px 24px;
    }

    .bmi-news-detail-page .site-footer .footer-social,
    .bmi-news-detail-page .site-footer .footer-line,
    .bmi-news-detail-page .site-footer .footer-privacy,
    .bmi-news-detail-page .site-footer .footer-badge {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        transform: none;
    }

    .bmi-news-detail-page .site-footer .footer-line {
        white-space: normal;
        line-height: 1.55;
    }
}

@media (max-width: 680px) and (max-width: 1279px) {
    .bmi-news-detail-page .news-detail-hero {
        height: auto;
        aspect-ratio: 1920 / 300;
    }

    .bmi-news-detail-page .news-detail-hero-image {
        object-fit: contain;
    }

    .bmi-news-detail-page .news-detail-hero h1 {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        transform: none;
        font-size: 38px;
    }

    .bmi-news-detail-page .news-detail-article {
        padding: 40px max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left));
    }

    .bmi-news-detail-page .news-detail-title {
        font-size: 28px;
    }

}
