/* ===== Glenfly global ===== */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ui-scale-factor */
    --rpx-75: clamp(0.75px, calc(0.026042vw + 0.5px), 1px);
    --rpx-67: clamp(0.667px, calc(0.034688vw + 0.334px), 1px);
    --rpx-50: clamp(0.5px, calc(0.052083vw), 1px);

    /* font-size-scale-factor */
    --fpx-87: clamp(0.875px, calc(0.013021vw + 0.75px), 1px);
    --fpx-75: var(--rpx-75);
    --fpx-67: var(--rpx-67);
    --fpx-50: var(--rpx-50);

    --rpx: var(--rpx-67);
    --fpx: var(--fpx-75);

    --wrapper-width: clamp(900px, calc(900px + (100vw - 960px) * 700 / 960), 1600px);
    --header-wrapper-width: clamp(900px, calc(900px + (100vw - 960px) * 860 / 960), 1760px);
    --wrapper-margin: calc((100vw - var(--wrapper-width)) / 2);
    --header-wrapper-margin: calc((100vw - var(--header-wrapper-width)) / 2);

    --sans-serif-font: Poppins, "Segoe UI", Arial, sans-serif;
    --brand-red: #DF0716;
    --text-primary: #333333;
    --text-muted: #777777;
    --text-muted-hover: #555555;
    --page-bg: #F5F6F7;
    --footer-bg: #EFEFEF;
    --header-height: calc(140 * var(--rpx));
    --hero-max-width: calc(1920 * var(--rpx));
    /* 16:9 最小高度：随视口缩放，超宽屏不超过设计稿 1920×1080 */
    --hero-16-9-min-height: min(56.25vw, calc(var(--hero-max-width) * 9 / 16));

    --hover-move-ms: 620ms;
    --hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    font-family: var(--sans-serif-font);
    font-size: calc(16 * var(--fpx));
    background-color: var(--page-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.page {
    overflow-x: clip;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

p {
    margin: 0;
}

.wrapper {
    width: var(--wrapper-width);
    margin-left: auto;
    margin-right: auto;
}

section .wrapper {
    position: relative;
}

/* ===== hero max width（设计稿 1920，超宽屏居中裁切） ===== */
section.hero,
.about-hero,
.about-chronicle,
.about-yanxian,
.about-xiangxun,
.about-yuanzhi,
.ecosystem-hero,
.hardware-hero,
.software-hero,
.solution-hero,
.solution-render-hero,
.amoled-hero,
.soc-hero,
.ip-hero,
.ip-sec2,
.youchao-hero,
.ouye-hero,
.m37m38-hero {
    max-width: var(--hero-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* ===== page breadcrumbs bar ===== */
.page-breadcrumbs {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.page-breadcrumbs .wrapper {
    height: calc(60 * var(--rpx));
    display: flex;
    align-items: center;
}

.page-breadcrumbs .breadcrumbs {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: calc(14 * var(--fpx));
    line-height: calc(21 / 14);
}

.page-breadcrumbs .breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.page-breadcrumbs .breadcrumbs li:not(.current) {
    opacity: 0.5;
}

.page-breadcrumbs .breadcrumbs li.current {
    opacity: 1;
}

.page-breadcrumbs .breadcrumbs a,
.page-breadcrumbs .breadcrumbs .no-link {
    color: inherit;
}

.page-breadcrumbs .breadcrumbs a:hover {
    color: var(--brand-red);
}

.page-breadcrumbs .breadcrumbs .next-level {
    width: calc(4 * var(--rpx));
    height: calc(8 * var(--rpx));
    margin: 0 calc(14 * var(--rpx));
    background: url("../images/icons/icon_angle_right.svg") center/contain no-repeat;
    opacity: 0.8;
}

.page-breadcrumbs .breadcrumbs li.current .next-level {
    display: none;
}

.breadcrumb-current {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
}

.breadcrumb-current__label {
    display: inline-block;
}

.breadcrumb-current__angle {
    flex: 0 0 auto;
    width: calc(12 * var(--rpx));
    height: calc(7 * var(--rpx));
    margin-left: calc(8 * var(--rpx));
    background: url("../images/icons/icon_angle_down.svg?v=2") center/contain no-repeat;
}

.breadcrumb-siblings-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    padding-top: calc(10 * var(--rpx));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.breadcrumb-current.is-open .breadcrumb-siblings-panel {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.breadcrumb-siblings-menu {
    min-width: calc(140 * var(--rpx));
    margin: 0;
    padding: calc(8 * var(--rpx)) 0;
    list-style: none;
    border-radius: calc(8 * var(--rpx));
    background: #FFFFFF;
    box-shadow: 0 calc(5 * var(--rpx)) calc(15 * var(--rpx)) rgba(0, 12, 36, 0.1);
}

.breadcrumb-siblings-menu li {
    display: block;
}

.breadcrumb-siblings-item {
    display: block;
    padding: calc(8 * var(--rpx)) calc(16 * var(--rpx));
    font-size: calc(14 * var(--fpx));
    line-height: calc(21 / 14);
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

a.breadcrumb-siblings-item:hover {
    color: var(--brand-red);
    background: rgba(223, 6, 21, 0.04);
}

.breadcrumb-siblings-item.is-current {
    color: var(--brand-red);
    font-weight: 600;
}

.page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#smooth-wrapper,
#smooth-content {
    width: 100%;
}

body.page-home {
    position: relative;
}

/* ===== site-header ===== */
.site-header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 600;
    color: var(--text-primary);
    background: transparent;
    pointer-events: none;
}

.site-header a,
.site-header button {
    pointer-events: auto;
}

.site-header .nav-bar {
    height: 100%;
    border-bottom: none;
}

.site-header .nav-bar .wrapper {
    width: var(--header-wrapper-width);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    height: calc(60 * var(--rpx));
}

.site-logo img {
    display: block;
    width: calc(264 * var(--rpx));
    height: calc(60 * var(--rpx));
    object-fit: contain;
}

.nav-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: calc(20 * var(--rpx));
    pointer-events: auto;
}

.nav-right-peer {
    transition: none;
}

body.page-home.nav-intro-pending .nav-right-peer,
body.page-home.nav-intro-pending .header-search {
    opacity: 0;
    transition: none;
}

.nav-right.is-search-open .nav-right-peer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-icon {
    width: calc(60 * var(--rpx));
    height: calc(60 * var(--rpx));
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 calc(5 * var(--rpx)) calc(15 * var(--rpx)) rgba(0, 12, 36, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-icon img {
    display: block;
    width: calc(22 * var(--rpx));
    height: calc(22 * var(--rpx));
    object-fit: contain;
}

.btn-menu {
    display: inline-flex;
    width: calc(120 * var(--rpx));
    height: calc(60 * var(--rpx));
    border-radius: calc(300 * var(--rpx));
    background: var(--brand-red);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ===== header search ===== */
.header-search {
    position: relative;
    flex-shrink: 0;
    width: calc(60 * var(--rpx));
    height: calc(60 * var(--rpx));
    z-index: 25;
}

.nav-right.is-search-open .header-search {
    z-index: 40;
}

.header-search-trigger {
    position: relative;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.12s ease;
}

.nav-right.is-search-open .header-search-trigger {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.header-search-panel {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    height: calc(60 * var(--rpx));
    width: var(--search-panel-width-collapsed, calc(60 * var(--rpx)));
    margin: 0;
    padding: 0;
    border: none;
    border-radius: calc(300 * var(--rpx));
    background: #fff;
    box-shadow: 0 calc(5 * var(--rpx)) calc(15 * var(--rpx)) rgba(0, 12, 36, 0.1);
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        visibility 0s linear 0.45s;
}

.nav-right.is-search-open .header-search-panel,
.nav-right.is-search-closing .header-search-panel {
    visibility: visible;
    transition:
        width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        visibility 0s linear 0s;
}

.nav-right.is-search-open .header-search-panel {
    z-index: 2;
    width: var(--search-panel-width, calc(60 * var(--rpx)));
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 calc(8 * var(--rpx)) calc(24 * var(--rpx)) rgba(0, 12, 36, 0.14);
}

.nav-right.is-search-closing .header-search-panel {
    z-index: 2;
    width: var(--search-panel-width-collapsed, calc(60 * var(--rpx)));
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 calc(5 * var(--rpx)) calc(15 * var(--rpx)) rgba(0, 12, 36, 0.1);
}

.nav-right.is-search-closing .header-search {
    z-index: 40;
}

.header-search-submit {
    flex-shrink: 0;
    width: calc(60 * var(--rpx));
    height: calc(60 * var(--rpx));
    border: none;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--brand-red);
}

.header-search-submit img {
    display: block;
    width: calc(22 * var(--rpx));
    height: calc(22 * var(--rpx));
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.header-search-submit:hover {
    background: #c80614;
}

.header-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 calc(16 * var(--rpx));
    padding-right: calc(8 * var(--rpx));
    font-family: inherit;
    font-size: calc(16 * var(--fpx));
    line-height: 1.2;
    color: var(--text-primary);
    outline: none;
    opacity: 0;
    transition: opacity 0s linear;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.nav-right.is-search-open .header-search-input {
    opacity: 1;
    transition: opacity 0.28s ease 0.12s;
}

.nav-right.is-search-closing .header-search-input {
    opacity: 0;
    transition: opacity 0.22s ease;
}

/* ===== header lang dropdown ===== */
.lang-dropdown {
    position: relative;
    flex-shrink: 0;
}

.lang-dropdown .dropdown-current {
    position: relative;
    z-index: 2;
}

.lang-dropdown .dropdown-options {
    position: absolute;
    top: calc(100% + calc(10 * var(--rpx)));
    left: 50%;
    right: auto;
    min-width: calc(108 * var(--rpx));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-radius: calc(12 * var(--rpx));
    box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(0, 0, 0, 0.08);
    background-color: #fff;
    padding: calc(6 * var(--rpx)) 0;
    overflow: visible;
    z-index: 50;
    transform: translateX(-50%) translateY(calc(-6 * var(--rpx))) scale(0.96);
    transform-origin: top center;
    transition:
        opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.24s;
}

.lang-dropdown .dropdown-options::before {
    content: "";
    position: absolute;
    top: calc(-5 * var(--rpx));
    left: 50%;
    width: calc(10 * var(--rpx));
    height: calc(10 * var(--rpx));
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: calc(-2 * var(--rpx)) calc(-2 * var(--rpx)) calc(4 * var(--rpx)) rgba(0, 0, 0, 0.04);
}

.lang-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
    transition:
        opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

.lang-dropdown .dropdown-option {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    color: var(--text-primary);
    font-size: calc(14 * var(--fpx));
    line-height: calc(22 * var(--rpx));
    padding: calc(8 * var(--rpx)) calc(20 * var(--rpx));
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-dropdown .dropdown-option:hover {
    color: var(--brand-red);
    background-color: rgba(0, 0, 0, 0.02);
}

.lang-dropdown .dropdown-option.is-disabled {
    color: rgba(51, 51, 51, 0.35);
    background-color: #f5f5f5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .header-search-panel,
    .header-search-input,
    .header-search-trigger,
    .nav-right-peer,
    .lang-dropdown .dropdown-options {
        transition: none;
    }
}


/* ===== site-footer ===== */
.site-footer {
    position: relative;
    width: 100%;
    color: var(--text-primary);
    z-index: 190;
}

.site-footer .part1,
.site-footer .part2 {
    position: relative;
}

.site-footer .part1 .row1 {
    background: #F7F7F7;
}

.site-footer .part1 .row1 .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(120 * var(--rpx));
    padding-top: calc(36 * var(--rpx));
    padding-bottom: calc(36 * var(--rpx));
}

.site-footer .part1 .row2 {
    background: var(--footer-bg);
}

.footer-share {
    display: flex;
    align-items: center;
    gap: calc(12 * var(--rpx));
    font-size: calc(16 * var(--fpx));
    flex-shrink: 0;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: calc(40 * var(--rpx));
    padding-top: calc(60 * var(--rpx));
    padding-bottom: calc(48 * var(--rpx));
}

.footer-info {
    flex: 0 0 calc(320 * var(--rpx-75));
}

.footer-logo {
    display: block;
    width: calc(200 * var(--rpx));
    height: calc(48 * var(--rpx));
}

.footer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-info .company {
    font-size: calc(18 * var(--fpx));
    line-height: calc(27 / 18);
    margin-bottom: calc(13 * var(--rpx));
}

.footer-info .lines {
    font-size: calc(16 * var(--fpx));
    line-height: calc(30 / 16);
}

.footer-info .line {
    display: flex;
    align-items: flex-start;
    gap: calc(12 * var(--rpx));
    line-height: calc(30 / 16);
}

.footer-info .line + .line {
    margin-top: 0;
}

.footer-info .icon-wrap {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1lh;
}

.footer-info .icon {
    display: block;
    width: calc(17.33 * var(--rpx));
    height: calc(20 * var(--rpx));
    object-fit: contain;
}

.footer-info .line:nth-child(2) .icon {
    width: calc(18 * var(--rpx));
    height: calc(18 * var(--rpx));
}

.footer-info .line:nth-child(3) .icon {
    width: calc(18 * var(--rpx));
    height: calc(13.5 * var(--rpx));
}

.footer-info .line .text {
    flex: 1;
    min-width: 0;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-info .line a.text:hover {
    text-decoration: underline;
}

.footer-info .btn-ctn {
    margin-top: calc(32 * var(--rpx));
}

.footer-info .btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: calc(200 * var(--rpx));
    height: calc(60 * var(--rpx));
    padding: 0 calc(30 * var(--rpx));
    border-radius: calc(300 * var(--rpx));
    background: var(--brand-red);
    color: #fff;
    font-size: calc(16 * var(--fpx));
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: filter 0.2s;
}

.footer-info .btn-more:hover {
    filter: brightness(1.06);
}

.footer-info .btn-more .text {
    flex: 0 0 auto;
}

.footer-info .btn-more .arr {
    flex: 0 0 auto;
    width: calc(19 * var(--rpx));
    height: calc(14 * var(--rpx));
    background: url("../images/icons/icon_arr_right.svg") center/contain no-repeat;
}

.footer-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: calc(24 * var(--rpx));
    padding-left: calc(72 * var(--rpx));
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-width: calc(80 * var(--rpx));
}

.footer-link {
    font-size: calc(18 * var(--fpx));
    line-height: calc(27 / 18);
    margin-bottom: calc(13 * var(--rpx));
}

.footer-link-sub {
    color: var(--text-muted);
    font-size: calc(16 * var(--fpx));
    line-height: calc(30 / 16);
    display: block;
    transition: color 0.2s ease;
}

.footer-link-sub--child {
    padding-left: calc(12 * var(--rpx));
    font-size: calc(15 * var(--fpx));
}

.footer-link-sub:hover {
    color: var(--brand-red);
}

.btn-share {
    width: calc(45 * var(--rpx));
    height: calc(45 * var(--rpx));
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-share img {
    display: block;
    width: calc(45 * var(--rpx));
    height: calc(45 * var(--rpx));
    object-fit: cover;
}

.wechat-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(24 * var(--rpx));
}

.wechat-qr-modal[hidden] {
    display: none;
}

.wechat-qr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.wechat-qr-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, calc(360 * var(--rpx)));
    padding: calc(32 * var(--rpx)) calc(28 * var(--rpx)) calc(28 * var(--rpx));
    border-radius: calc(12 * var(--rpx));
    background: #fff;
    box-shadow: 0 calc(16 * var(--rpx)) calc(48 * var(--rpx)) rgba(0, 0, 0, 0.18);
    text-align: center;
}

.wechat-qr-modal__close {
    position: absolute;
    top: calc(12 * var(--rpx));
    right: calc(12 * var(--rpx));
    width: calc(32 * var(--rpx));
    height: calc(32 * var(--rpx));
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / calc(16 * var(--rpx)) no-repeat;
    cursor: pointer;
}

.wechat-qr-modal__title {
    margin: 0 0 calc(20 * var(--rpx));
    font-size: calc(18 * var(--fpx));
    font-weight: 600;
    color: var(--text-primary, #111);
}

.wechat-qr-modal__img-wrap {
    display: flex;
    justify-content: center;
}

.wechat-qr-modal__img {
    display: block;
    width: min(100%, calc(258 * var(--rpx)));
    height: auto;
    border-radius: calc(8 * var(--rpx));
}

body.wechat-qr-open {
    overflow: hidden;
}

.site-footer .part2 {
    background: var(--footer-bg);
    padding-bottom: calc(36 * var(--rpx));
}

.site-footer .part2 .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: calc(24 * var(--rpx));
    font-size: calc(16 * var(--fpx));
    line-height: calc(28 / 16);
    color: var(--text-muted);
}

.site-footer .part2 a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.site-footer .part2 a:hover {
    color: var(--brand-red);
}

.site-footer .part2 .left {
    flex: 1;
    min-width: 0;
    max-width: calc(960 * var(--rpx));
}

.site-footer .part2 .right {
    flex-shrink: 0;
    text-align: right;
}

/* ===== nav-crumb (inner page header pill) ===== */
.page-home .nav-crumb {
    display: none;
}

.page-inner .btn-crumb {
    display: none;
}

.nav-crumb {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    height: calc(60 * var(--rpx));
    padding: 0;
    border-radius: calc(300 * var(--rpx));
    background: #fff;
    box-shadow: 0 calc(5 * var(--rpx)) calc(15 * var(--rpx)) rgba(0, 12, 36, 0.1);
    white-space: nowrap;
    max-width: calc(440 * var(--rpx));
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-crumb.has-siblings {
    overflow: visible;
}

.nav-crumb.has-siblings.is-menu-open {
    overflow: visible;
}

.nav-crumb::-webkit-scrollbar {
    display: none;
}

.nav-crumb-home {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: calc(30 * var(--rpx));
    padding-right: calc(16 * var(--rpx));
    transition: opacity 0.15s ease;
}

.nav-crumb-home:hover {
    opacity: 0.72;
}

.nav-crumb-home img {
    display: block;
    width: calc(16 * var(--rpx));
    height: calc(18 * var(--rpx));
    object-fit: contain;
}

.nav-crumb > .nav-crumb-item,
.nav-crumb > .nav-crumb-current {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 calc(16 * var(--rpx));
    font-size: calc(16 * var(--fpx));
    line-height: calc(30 / 16);
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-crumb > a.nav-crumb-item:hover {
    color: var(--brand-red);
}

.nav-crumb > .nav-crumb-item.is-current,
.nav-crumb > .nav-crumb-current .nav-crumb-item {
    color: var(--brand-red);
}

.nav-crumb > .nav-crumb-item.is-current,
.nav-crumb > .nav-crumb-current {
    flex: 1 1 auto;
    min-width: 0;
    flex-shrink: 1;
}

.nav-crumb > .nav-crumb-item.is-current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: calc(60 * var(--rpx));
}

.nav-crumb > .nav-crumb-current {
    gap: calc(8 * var(--rpx));
    border-top-right-radius: calc(300 * var(--rpx));
    border-bottom-right-radius: calc(300 * var(--rpx));
}

.nav-crumb > .nav-crumb-current .nav-crumb-item {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    border-left: none;
    padding: 0;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-crumb > .nav-crumb-item:last-child,
.nav-crumb > .nav-crumb-current {
    padding-right: calc(30 * var(--rpx));
}

.nav-crumb-current {
    cursor: default;
}

.nav-crumb-current:hover,
.nav-crumb-current.is-open {
    background: rgba(223, 6, 21, 0.04);
}

.nav-crumb-current__angle {
    flex: 0 0 auto;
    width: calc(12 * var(--rpx));
    height: calc(7 * var(--rpx));
    background: url("../images/icons/icon_angle_down.svg?v=2") center/contain no-repeat;
    transition: transform 0.18s ease;
}

.nav-crumb-current.is-open .nav-crumb-current__angle {
    transform: rotate(180deg);
}

.nav-crumb-menu {
    position: absolute;
    top: 100%;
    left: var(--crumb-menu-left, 0);
    z-index: 650;
    min-width: calc(140 * var(--rpx));
    margin: 0;
    padding: calc(5 * var(--rpx)) 0 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-4 * var(--rpx)));
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-crumb-menu.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-crumb-menu__list {
    margin: 0;
    padding: calc(8 * var(--rpx)) 0;
    list-style: none;
    border-radius: calc(8 * var(--rpx));
    background: #FFFFFF;
    box-shadow: 0 calc(5 * var(--rpx)) calc(15 * var(--rpx)) rgba(0, 12, 36, 0.1);
}

.nav-crumb-menu__list li {
    display: block;
}

.nav-crumb-menu__item {
    display: block;
    padding: calc(8 * var(--rpx)) calc(16 * var(--rpx));
    font-size: calc(14 * var(--fpx));
    line-height: calc(21 / 14);
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

a.nav-crumb-menu__item:hover {
    color: var(--brand-red);
    background: rgba(223, 6, 21, 0.04);
}

.nav-crumb-menu__item.is-current {
    color: var(--brand-red);
    font-weight: 600;
}

.editor-link-mockup {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    display: block;
    height: auto;
    margin: 0;
    padding: 0.15em 0.5em;
    border: 1px solid #99ccff;
    border-radius: 3px;
    background: #fff;
    color: #3399ff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    visibility: hidden;
    box-sizing: border-box;
}

body.wfEditorMode .editor-link-mockup {
    visibility: visible;
}

/* mockup 需定位参照；已是 absolute/fixed/sticky 的容器本身就是 containing block，勿改成 relative */
body.wfEditorMode :has(> .editor-link-mockup):not(
    :is(.solution-links, .solution-hero .hero-title, .solution-hero .hero-desc, .eco-cooperate__bg)
) {
    position: relative;
}

body.wfEditorMode :has(> .editor-link-mockup) > img,
body.wfEditorMode :has(> .editor-link-mockup) > picture,
body.wfEditorMode :has(> .editor-link-mockup) > svg,
body.wfEditorMode :has(> .editor-link-mockup) > video,
body.wfEditorMode :has(> .editor-link-mockup) > canvas {
    z-index: 0;
}

body.wfEditorMode .layout-widget-wrap {
    position: relative;
}

/* ----- year pill filter（tech-docs、m37-m38 news 等） ----- */
.docs-filter,
.news-filter {
    position: relative;
    display: inline-block;
    z-index: 1;
    font-size: calc(16 * var(--fpx));
    line-height: calc(30 / 16);
}

.docs-filter.is-open,
.news-filter.is-open {
    z-index: 20;
}

.docs-filter-toggle,
.news-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4375em;
    min-height: 3.75em;
    padding: 0 2.625em;
    border: 0;
    border-radius: 999em;
    background: #ffffff;
    box-shadow: 0 0.3125em 0.9375em rgba(0, 12, 36, 0.1);
    color: var(--text-primary);
    font: inherit;
    cursor: pointer;
}

.docs-filter-chevron,
.news-filter-chevron {
    display: block;
    width: 0.75em;
    height: 0.4375em;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.docs-filter-toggle[aria-expanded="true"] .docs-filter-chevron,
.news-filter-toggle[aria-expanded="true"] .news-filter-chevron {
    transform: rotate(180deg);
}

.docs-filter-menu,
.news-filter-menu {
    position: absolute;
    top: calc(100% + 0.5em);
    left: 0;
    z-index: 1;
    min-width: 100%;
    margin: 0;
    padding: 0.5em 0;
    list-style: none;
    border-radius: 0.625em;
    background: #ffffff;
    box-shadow: 0 0.3125em 0.9375em rgba(0, 12, 36, 0.1);
}

.docs-filter-option,
.news-filter-option {
    display: block;
    width: 100%;
    padding: 0.625em 1.5em;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.docs-filter-option:hover,
.docs-filter-option:focus-visible,
.news-filter-option:hover,
.news-filter-option:focus-visible {
    background: #fafcfd;
}

.docs-filter-option.is-selected,
.news-filter-option.is-selected {
    color: var(--brand-red);
}

@media (max-width: 828px) {
    .docs-filter,
    .news-filter {
        font-size: calc(17 * var(--fpx));
    }

    .docs-filter-toggle,
    .news-filter-toggle {
        gap: 0.375em;
        min-height: 3.25em;
        padding: 0 2em;
    }

    /*
     * Grid block 手机端：块高随容器宽（cqi）缩放，文字用固定 --type-scale
     * Stat tile：--mobile-tile-flex / --mobile-tile-row-sum 控制并排宽度比
     */
    .youchao-grid,
    .ouye-grid,
    .ip-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .youchao-block,
    .ouye-block,
    .ip-grid > .ip-block {
        flex: 0 0 100%;
        width: 100%;
    }

    .ouye-block--ddr4,
    .ouye-block--bandwidth,
    .ip-block--vpu-decode,
    .ip-block--vpu-encode,
    .ip-block--dpu-hdcp,
    .ip-block--dpu-dsc {
        --mobile-tile-gap: calc(24 * var(--rpx));
        flex: var(--mobile-tile-flex) 0 calc(
            (100% - var(--mobile-tile-gap)) * var(--mobile-tile-flex) / var(--mobile-tile-row-sum)
        );
        width: calc(
            (100% - var(--mobile-tile-gap)) * var(--mobile-tile-flex) / var(--mobile-tile-row-sum)
        );
        max-width: calc(
            (100% - var(--mobile-tile-gap)) * var(--mobile-tile-flex) / var(--mobile-tile-row-sum)
        );
    }

    .youchao-block__scale,
    .ouye-block__scale,
    .ip-block__scale {
        --layout-scale: calc(100cqi / (var(--design-w) * 1px));
        --scale-ratio: var(--layout-scale);
        --type-scale: calc(1.33 * var(--rpx) / 1px);
        height: calc(var(--design-h) * 1px * var(--layout-scale));
        border-radius: calc(12 * var(--rpx));
        overflow: visible;
    }

    .youchao-specs .block-media,
    .ouye-specs .block-media,
    .ip-sec2 .block-media {
        overflow: hidden;
        border-radius: inherit;
    }
}
