/* === Font Awesome solid subset: current site glyphs only === */
:host,:root{--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}.fa,.fa-solid,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display,inline-block);font-family:"Font Awesome 6 Free";font-style:normal;font-variant:normal;font-weight:900;line-height:1;text-rendering:auto}.fa-fw{text-align:center;width:1.25em}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-duration:var(--fa-animation-duration,2s);animation-duration:var(--fa-animation-duration,2s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}@media (prefers-reduced-motion:reduce){.fa-spin{-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../vendor/font-awesome/webfonts/fa-solid-900.woff2) format("woff2")}
.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-up-right-from-square:before,.fa-external-link:before{content:"\f08e"}.fa-bars:before,.fa-navicon:before{content:"\f0c9"}.fa-bullhorn:before{content:"\f0a1"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-circle-notch:before{content:"\f1ce"}.fa-clipboard-check:before{content:"\f46c"}.fa-clock:before{content:"\f017"}.fa-code:before{content:"\f121"}.fa-comments:before{content:"\f086"}.fa-crosshairs:before{content:"\f05b"}.fa-desktop:before{content:"\f390"}.fa-envelope:before{content:"\f0e0"}.fa-expand:before{content:"\f065"}.fa-file-lines:before{content:"\f15c"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-globe:before{content:"\f0ac"}.fa-hand-pointer:before{content:"\f25a"}.fa-headphones:before{content:"\f025"}.fa-house:before{content:"\f015"}.fa-layer-group:before{content:"\f5fd"}.fa-magnifying-glass:before{content:"\f002"}.fa-microchip:before{content:"\f2db"}.fa-microphone-lines:before{content:"\f3c9"}.fa-mobile-alt:before,.fa-mobile-screen-button:before{content:"\f3cd"}.fa-plug:before{content:"\f1e6"}.fa-podcast:before{content:"\f2ce"}.fa-satellite-dish:before{content:"\f7c0"}.fa-shield-alt:before,.fa-shield-halved:before{content:"\f3ed"}.fa-shield-halved:before{content:"\f3ed"}.fa-shuffle:before{content:"\f074"}.fa-sliders:before{content:"\f1de"}.fa-table-cells-large:before,.fa-th-large:before{content:"\f009"}.fa-user-cog:before,.fa-user-gear:before{content:"\f4fe"}.fa-users:before{content:"\f0c0"}.fa-users-viewfinder:before{content:"\e595"}.fa-video:before{content:"\f03d"}.fa-volume-high:before,.fa-volume-up:before{content:"\f028"}.fa-magic-wand-sparkles:before,.fa-wand-magic-sparkles:before{content:"\e2ca"}.fa-wifi:before{content:"\f1eb"}


/* === assets/css/nav.css === */
/* 顶栏、主菜单、搜索（全局层；最终锁定见 nav-global-lock.css，由 loader 末位注入） */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--md-nav-width);
    min-width: 0;
    height: var(--md-nav-height);
    z-index: 2000;
    background: var(--nav-bg);
    border-bottom: 1px solid #ebebeb;
    transition: var(--anim-fast);
    padding-top: var(--safe-top);
}

/* 桌面端首页（非 md-mobile-layout）：深色半透明毛玻璃顶栏，无底部分割线 */
html:not(.md-mobile-layout) .home-page .glass-nav {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: none;
}

html:not(.md-mobile-layout) .home-page .nav-link {
    color: #ffffff;
    opacity: 0.95;
}

html:not(.md-mobile-layout) .home-page .nav-link:hover {
    opacity: 1;
    color: var(--md-cyan);
}

html:not(.md-mobile-layout) .home-page .icon-btn {
    color: #ffffff;
    opacity: 0.6;
}

html:not(.md-mobile-layout) .home-page .icon-btn:is(:hover, :focus, :focus-visible, :active) {
    color: var(--md-cyan);
    opacity: 1;
}

html:not(.md-mobile-layout) .home-page #lang-toggle-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.817);
    opacity: 0.6;
}

.nav-container {
    --nav-inner-pad-bottom: 8px;
    --nav-tools-cluster-w: 44px;
    width: 100%;
    max-width: var(--md-nav-max);
    margin-inline: auto;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 0 var(--nav-inner-pad-bottom) 0;
    position: relative;
    box-sizing: border-box;
}

/* 舞台 inset 由 .nav-container 承担；横向滚动时 logo 贴内容区左缘 */
.brand-lock-group {
    position: sticky;
    left: 0;
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    transition: var(--anim-fast);
}

.brand-lock-group>a {
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    line-height: 0;
}

.brand-lock-img--nav-home-full,
.brand-lock-img--wordmark,
.brand-lock-img--compact {
    display: none;
    flex-shrink: 0;
    object-fit: contain;
}

/* 桌面语标：以图中英文/细线下缘为基准，与一级 nav-link 字底对齐（main-menu 有 translateY(-3px)） */
html:not(.md-mobile-layout) {
    --nav-wordmark-h: 34px;
    --nav-wordmark-shift-y: -2px;
    --md-search-icon-stroke: 1.8;
    /* 桌面 nav 字号：全站固定，不随视口 vw 变化（见 nav-global-lock.css） */
    --md-nav-font-size-base: 18px;
    /* 菜单项之间（更大） */
    --md-nav-menu-gap-base: clamp(34px, 2.6vw, 48px);
    --md-nav-menu-gap-en-base: clamp(22px, 2vw, 36px);
    /* space-between 下略收 Logo↔菜单、菜单↔工具条 弹性空档 */
    --md-nav-group-tighten-base: clamp(8px, 0.75vw, 16px);
    --md-nav-font-size: var(--md-nav-font-size-base);
    --md-nav-menu-gap: var(--md-nav-menu-gap-base);
    --md-nav-menu-gap-en: var(--md-nav-menu-gap-en-base);
    --md-nav-group-tighten: var(--md-nav-group-tighten-base);
}

html:not(.md-mobile-layout) .brand-lock-img--wordmark {
    height: var(--nav-wordmark-h);
    width: auto;
    max-height: var(--nav-wordmark-h);
    max-width: calc(var(--nav-wordmark-h) * 295 / 80);
    object-fit: contain;
    object-position: left bottom;
    transform: translateY(var(--nav-wordmark-shift-y));
}

.brand-lock-group a:hover .brand-lock-img {
    transition: none;
}

html:not(.md-mobile-layout) .brand-lock-group a:hover .brand-lock-img--wordmark {
    transform: translateY(var(--nav-wordmark-shift-y)) !important;
}

/* 桌面紧凑标（仅图标）：与菜单同高节奏 */
html:not(.md-mobile-layout) .brand-lock-img--compact {
    height: 32px;
    width: auto;
    max-height: 32px;
    max-width: calc(32px * 196 / 154);
    object-position: left center;
    transform: translateY(-3px);
}

html:not(.md-mobile-layout) .brand-lock-group a:hover .brand-lock-img--compact {
    transform: translateY(-3px) !important;
}

/* 桌面宽屏：首页 MD-logo-W，内页 MD-logo-B */
html:not(.md-mobile-layout) .brand-lock-img--wordmark-inner {
    display: block;
}

html:not(.md-mobile-layout) .home-page .brand-lock-img--wordmark-inner {
    display: none;
}

html:not(.md-mobile-layout) .home-page .brand-lock-img--wordmark-home {
    display: block;
}

/* 桌面收窄：语标放不下时回退紧凑标 Logo_B */
@media (max-width: 1100px) {
    html:not(.md-mobile-layout) .brand-lock-img--wordmark {
        display: none !important;
    }

    html:not(.md-mobile-layout) .brand-lock-img--compact {
        display: block !important;
    }
}

.main-menu {
    margin-left: clamp(48px, calc(4.4vw + 20px), 128px);
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(8px, 2.5vw, 52px);
    flex: 0 0 auto;
    transform: translateY(-9px);
    transition: margin-left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                gap 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html.en-mode .main-menu {
    gap: clamp(6px, 1.7vw, 38px);
}

.nav-link {
    color: #333333;
    font-size: var(--md-nav-font-size, clamp(12px, 0.95vw, 14px));
    font-weight: 500;
    opacity: 0.85; /* Changed opacity for dark text */
    transition: color 0.25s ease, opacity 0.25s ease;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 1;
    color: var(--md-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--md-cyan);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* 桌面：1080 shell 内两端分散（Logo 左 / 工具条右 / 菜单居中） */
html:not(.md-mobile-layout) .nav-container {
    justify-content: space-between;
}

html:not(.md-mobile-layout) .brand-lock-group {
    flex: 0 0 auto;
}

html:not(.md-mobile-layout) .main-menu {
    flex: 0 0 auto;
    margin-left: calc(-80px - var(--md-nav-group-tighten));
    margin-right: calc(-1 * var(--md-nav-group-tighten));
    gap: var(--md-nav-menu-gap);
}

html:not(.md-mobile-layout).en-mode .main-menu {
    gap: var(--md-nav-menu-gap-en);
}

html:not(.md-mobile-layout) .right-tools {
    flex: 0 0 auto;
    margin-left: 0;
}

/* 搜索：在 nav-container 内相对 right-tools 定位（gutter 已由 margin 承担） */
html:not(.md-mobile-layout) .nav-link {
    font-size: var(--md-nav-font-size);
}

/* 顶栏一级菜单：全站统一字号，避免页面级 Tailwind / base 全局 a 规则覆盖 */
html:not(.md-mobile-layout) .glass-nav .main-menu > .nav-link,
html:not(.md-mobile-layout) .glass-nav .main-menu .nav-item-dropdown > .nav-link {
    font-size: var(--md-nav-font-size) !important;
    font-weight: 500 !important;
    line-height: 24px !important;
}

.has-submenu,
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.submenu,
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    transform: translateY(6px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 100%;
    width: max-content;
    max-width: min(100vw - 24px, 360px);
    box-sizing: border-box;
    max-height: min(70vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 0;
    border: none;
    border-top: none;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    /* 仅保留下方投影，不用 0.5px 描边（顶边会出现横线） */
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
    z-index: 2500;
}

/* Bridge zone to prevent hover gap */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-item-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*
 * 桌面：仅悬停一级后出现的 .dropdown-content 抽屉统一宽度（不改一级项宽度、不改 main-menu gap）
 */
html:not(.md-mobile-layout) .main-menu .nav-item-dropdown > .nav-link {
    text-align: center;
}

html:not(.md-mobile-layout) .main-menu .nav-item-dropdown > .dropdown-content {
    --nav-dropdown-width: 120px;
    left: 50%;
    margin-top: 0;
    padding: 6px 0;
    min-width: var(--nav-dropdown-width);
    width: var(--nav-dropdown-width);
    max-width: var(--nav-dropdown-width);
    box-sizing: border-box;
    --nav-drop-overlap: 2px;
    --nav-drop-open-y: calc(var(--nav-inner-pad-bottom) - var(--nav-drop-overlap));
    transform: translateX(-50%) translateY(calc(var(--nav-drop-open-y) + 6px));
    text-align: center;
}

html:not(.md-mobile-layout).en-mode .main-menu .nav-item-dropdown > .dropdown-content {
    --nav-dropdown-width: 180px;
}

html:not(.md-mobile-layout) .main-menu .nav-item-dropdown--core > .dropdown-content,
html:not(.md-mobile-layout).en-mode .main-menu .nav-item-dropdown--core > .dropdown-content {
    --nav-dropdown-width: 160px;
}

html:not(.md-mobile-layout) .main-menu .nav-item-dropdown:hover > .dropdown-content {
    transform: translateX(-50%) translateY(var(--nav-drop-open-y));
}

html:not(.md-mobile-layout) .main-menu .dropdown-content a {
    display: block;
    padding: 8px 16px;
    text-align: center;
}

/* 首页桌面端：下拉深色底 + 浅色字（非纯黑纯白） */
html:not(.md-mobile-layout) .home-page .main-menu .dropdown-content {
    background: rgba(28, 38, 58, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: none;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(8, 16, 32, 0.35);
}

html:not(.md-mobile-layout) .home-page .main-menu .dropdown-content a {
    color: rgba(226, 234, 246, 0.92);
}

html:not(.md-mobile-layout) .home-page .main-menu .dropdown-content a:hover {
    color: #f4f8ff;
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-content a {
    display: block;
    padding: 7px 14px 7px 10px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.dropdown-content a:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.03);
}

/* 下拉项：悬停时在右侧浮出说明（桌面端） */
.nav-dropdown-item {
    position: relative;
    display: block;
}

.nav-dropdown-item__label {
    display: block;
}

.nav-dropdown-item__hint {
    display: none;
}

html:not(.md-mobile-layout) .dropdown-content--with-hints {
    overflow: visible;
}

html:not(.md-mobile-layout) .main-menu .dropdown-content--with-hints {
    --nav-dropdown-width: 236px;
}

html:not(.md-mobile-layout).en-mode .main-menu .dropdown-content--with-hints {
    --nav-dropdown-width: 268px;
}

html:not(.md-mobile-layout) .main-menu .dropdown-content--with-hints .nav-dropdown-item {
    text-align: center;
}

html:not(.md-mobile-layout) .nav-dropdown-item__hint {
    display: none;
}

.nav-dropdown-cursor-hint {
    position: fixed;
    z-index: 3000;
    width: max-content;
    max-width: 228px;
    padding: 8px 11px;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: normal;
    color: #444;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.nav-dropdown-cursor-hint.is-visible {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-cursor-hint--dark {
    color: rgba(226, 234, 246, 0.92);
    background: rgba(28, 38, 58, 0.97);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(8, 16, 32, 0.35);
}

.search-area {
    position: fixed !important;
    top: calc(var(--safe-top, 0px) + var(--md-nav-height, 60px)) !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-12px) !important;
    transform-origin: center top !important;
    height: 64px !important;
    width: auto !important;
    max-width: none !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: none !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 max(24px, calc((100% - var(--md-nav-max)) / 2)) !important;
    box-sizing: border-box !important;
    z-index: 1990 !important;
    overflow: visible !important;
    opacity: 0 !important;
    pointer-events: none !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1) !important;
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.2s ease,
        box-shadow 0.2s ease !important;
}

.search-area.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

#search-input-box {
    background: transparent;
    border: none;
    color: #172033;
    width: min(720px, calc(100% - 100px));
    height: 44px;
    font-size: 15px;
    outline: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.16);
}

#search-input-box::placeholder {
    color: #8b95a7;
}

.right-tools {
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
    padding-right: 0;
    transform: translateY(-11px);
}

.icon-btn {
    color: #555555;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.icon-btn:is(:hover, :focus, :focus-visible, :active) {
    opacity: 1;
    color: var(--md-cyan);
    transform: scale(1.1);
}

.icon-btn--md {
    width: 24px;
    height: 24px;
    font-size: 20px;
}

.nav-search-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: var(--md-search-icon-stroke);
}

.nav-search-icon:is(:focus, :focus-visible, :active),
.search-action:is(:focus, :focus-visible, :active) {
    outline: none;
    box-shadow: none;
}

.search-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
    padding: 0;
    color: #8b95a7;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.search-action:hover {
    color: var(--md-cyan);
    background: rgba(15, 23, 42, 0.04);
}

.search-submit {
    color: #172033;
    background: rgba(15, 23, 42, 0.06);
}

.search-submit:hover {
    color: #ffffff;
    background: var(--md-cyan);
    transform: translateY(-1px);
}

html:not(.md-mobile-layout) .home-page .search-area {
    background: rgba(16, 24, 39, 0.92) !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24) !important;
}

html:not(.md-mobile-layout) .home-page #search-input-box {
    color: #f8fbff;
    border-bottom-color: rgba(255, 255, 255, 0.28);
}

html:not(.md-mobile-layout) .home-page #search-input-box::placeholder {
    color: rgba(226, 234, 246, 0.62);
}

html:not(.md-mobile-layout) .home-page .search-action {
    color: rgba(226, 234, 246, 0.72);
}

html:not(.md-mobile-layout) .home-page .search-action:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

html:not(.md-mobile-layout) .home-page .search-submit {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

html:not(.md-mobile-layout) .home-page .search-submit:hover {
    background: var(--md-cyan);
}

#lang-toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: 0.3s;
    width: 40px;
    height: 22px;
    font-size: 11px;
    font-weight: bold;
    color: #333333;
    padding: 2px 8px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    background: transparent;
    opacity: 0.8;
}

html[data-md-lang-switch="off"] #lang-toggle-btn,
#lang-toggle-btn[hidden] {
    display: none !important;
}

#lang-toggle-btn:hover {
    opacity: 1;
    background-color: white;
    color: rgba(23, 23, 23, 0.971);
    transform: scale(1.1);
}


/* core technology dropdown width fix */
html:not(.md-mobile-layout) #master-nav.glass-nav .main-menu .dropdown-content.dropdown-content--with-hints {
    --nav-dropdown-width: 160px;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

html:not(.md-mobile-layout).en-mode #master-nav.glass-nav .main-menu .dropdown-content.dropdown-content--with-hints {
    --nav-dropdown-width: 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

/* === assets/css/topbar-breadcrumb.css === */
    .page-topbar {
        width: 100%;
        height: 60px;
        position: fixed;
        top: 60px;
        left: 0;
        z-index: 1500;
        background: #ffffff;
        border-bottom: 1px solid #ffffff;
        box-shadow: none;
        transition: border-color 0.3s ease;
        font-family: var(--md-font-site), var(--md-font-puhui), var(--md-font-fallback-apple),
            var(--md-font-fallback-win);
        font-variant-numeric: var(--md-font-numeric);
        font-feature-settings: "tnum" 1, "lnum" 1;
    }

    .page-topbar::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 24px;
        background: linear-gradient(to bottom,
                #ffffff 0%,
                rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
    }

    /* Breadcrumb / 内容主体层：宽度与 --md-content-track-w 对齐（桌面在 content-layout 覆写） */
    .topbar-container {
        width: 100%;
        max-width: var(--md-breadcrumb-max);
        margin: 0 auto;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        box-sizing: border-box;
        gap: 16px;
        position: relative;
    }

    .breadcrumb {
        font-family: inherit;
        font-size: 15px;
        line-height: var(--spx-type-caption-line, 1.5);
        color: #666;
        font-weight: 400;
        letter-spacing: 0;
        display: flex;
        align-items: center;
        min-width: 0;
        flex: 0 1 auto;
        white-space: nowrap;
        overflow: hidden;
    }

    /* 当前页：使用 Logo 天蓝（取自 Logo 弧形，明快而不刺眼） */
    .breadcrumb>span:last-child {
        color: #0099D6;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .breadcrumb a {
        color: #888;
        font-family: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
        flex: 0 0 auto;
    }

    .breadcrumb > span {
        font-family: inherit;
        flex: 0 0 auto;
    }

    .breadcrumb a:hover {
        color: var(--md-cyan);
    }

    .breadcrumb .separator {
        margin: 0 10px;
        color: #bbb;
        /* 清晰可辨但不抢眼 */
        font-weight: 400;
        flex: 0 0 auto;
    }

    .topbar-tools {
        position: static;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    button.lead-gen-btn,
    .lead-gen-btn {
        background: #e31e24 !important;
        color: #ffffff !important;
        padding: 6px 36px;
        border: 1px solid #e31e24 !important;
        border-radius: 4px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        letter-spacing: 0;
        box-shadow: none;
        white-space: nowrap;
        -webkit-appearance: none;
        appearance: none;
    }

    button.lead-gen-btn:hover,
    .lead-gen-btn:hover {
        background: #ffffff !important;
        color: #e31e24 !important;
        border-color: #e31e24 !important;
        box-shadow: none;
    }

    /* 弹层打开时的选中态；默认/未打开保持红底白字 */
    button.lead-gen-btn.active,
    .lead-gen-btn.active {
        background: #ffffff !important;
        color: #e31e24 !important;
        border-color: #e31e24 !important;
        box-shadow: none;
    }

@media (max-width: 900px) {
    html.md-mobile-layout .topbar-container,
    body.has-mobile-shell .topbar-container {
        padding-left: var(--md-breadcrumb-inset-x) !important;
        padding-right: var(--md-breadcrumb-inset-x) !important;
    }
}

    /* 移动端顶栏隐藏；联系我们（公众号二维码 + 邮件）浮层 */

/* === assets/css/mobile-shell.css === */
/* Mobile shell (P2-1): dock, menu, contact sheet, md-mobile-layout nav */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
        .page-topbar {
            display: none !important;
        }

        .mobile-contact-sheet {
            position: fixed;
            inset: 0;
            z-index: var(--mobile-z-contact);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            background: rgba(0, 0, 0, 0.4);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        .mobile-contact-sheet.is-open {
            opacity: 1;
            pointer-events: auto;
        }

        .mobile-contact-sheet-panel {
            position: relative;
            max-width: 260px;
            width: 100%;
            padding: 8px 8px 0;
            border-radius: 12px;
            background: #ffffff;
            /* 整卡外圈白边（不是 QR 上的 border） */
            box-shadow:
                0 0 0 px #ffffff,
                0 18px 48px rgba(0, 0, 0, 0.22);
            text-align: center;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-sizing: border-box;
        }

        .mobile-contact-sheet-qr-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0px;
            width: 100%;
            margin: 0;
            box-sizing: border-box;
        }

        .mobile-contact-sheet-hint {
            margin: 0 !important;
            padding: 0;
            width: 100%;
            max-width: 100%;
            font-size: 13px;
            font-weight: 500;
            color: #555;
            line-height: 0.9;
            text-align: center;
        }

        .mobile-contact-sheet-qr-block .mobile-contact-sheet-qr {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            margin: 0;
            border-radius: 6px;
            -webkit-touch-callout: default;
        }

    }

    html.md-mobile-layout .mobile-contact-sheet {
        position: fixed;
        inset: 0;
        z-index: var(--mobile-z-contact);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    html.md-mobile-layout .mobile-contact-sheet.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    html.md-mobile-layout .mobile-contact-sheet-panel,
    body.has-mobile-shell .mobile-contact-sheet-panel {
        position: relative;
        max-width: 260px;
        width: 100%;
        padding: 8px 8px 0;
        border-radius: 12px;
        background: #ffffff;
        box-shadow:
            0 0 0 8px #ffffff,
            0 18px 48px rgba(0, 0, 0, 0.22);
        text-align: center;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    html.md-mobile-layout .mobile-contact-sheet-qr-block,
    body.has-mobile-shell .mobile-contact-sheet-qr-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        width: 100%;
        margin: 0 0 10px;
        box-sizing: border-box;
    }

    html.md-mobile-layout .mobile-contact-sheet-hint,
    body.has-mobile-shell .mobile-contact-sheet-hint {
        margin: 0 !important;
        padding: 0;
        width: 100%;
        max-width: 100%;
        font-size: 13px;
        font-weight: 500;
        color: #555;
        line-height: 1.2;
        text-align: center;
    }

    html.md-mobile-layout .mobile-contact-sheet-qr-block .mobile-contact-sheet-qr,
    body.has-mobile-shell .mobile-contact-sheet-qr-block .mobile-contact-sheet-qr {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        border-radius: 6px;
        -webkit-touch-callout: default;
    }

    /* 汉堡菜单：底部分区（联系我们 / 留资） */
    .mobile-menu-sheet .mobile-menu-actions {
        position: relative;
        flex-shrink: 0;
        margin-top: auto;
        padding: 10px 0 0 6px;
        border-top: none;
        display: flex;
        flex-direction: column;
        gap: 2px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 分割线：左实右渐隐（面包屑底 / 功能按钮顶 / 合规区顶） */
    .mobile-menu-sheet .mobile-menu-breadcrumb {
        position: relative;
        border-bottom: none;
    }

    .mobile-menu-sheet .mobile-menu-breadcrumb::after,
    .mobile-menu-sheet .mobile-menu-actions::before,
    .mobile-menu-sheet .mobile-menu-compliance::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
        pointer-events: none;
    }

    .mobile-menu-sheet .mobile-menu-breadcrumb::after {
        bottom: 0;
    }

    .mobile-menu-sheet .mobile-menu-actions::before,
    .mobile-menu-sheet .mobile-menu-compliance::before {
        top: 0;
    }

    .mobile-menu-sheet .mobile-menu-action {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 8px 10px 8px 4px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #2f323a;
        font-family: var(--md-font-site), var(--md-font-puhui), "PingFang SC", "Hiragino Sans GB",
            "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.35;
        text-align: left;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.15s ease;
        text-decoration: none;
        box-sizing: border-box;
    }

    .mobile-menu-sheet .mobile-menu-action--link {
        appearance: none;
        -webkit-appearance: none;
    }

    .mobile-menu-sheet .mobile-menu-action:active {
        background: rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-sheet .mobile-menu-action-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        color: #9ca3af;
        opacity: 0.78;
    }

    .mobile-menu-sheet .mobile-menu-action-icon.md-icon-wechat {
        fill: currentColor;
        stroke: none;
    }

    .mobile-menu-sheet .mobile-menu-action-label {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.35;
        font-family: inherit;
    }

    /* 汉堡菜单底部：合规与备案 */
    .mobile-menu-sheet .mobile-menu-compliance {
        position: relative;
        flex-shrink: 0;
        margin-top: 8px;
        padding: 8px 0 0 2px;
        border-top: none;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-menu-sheet .mobile-menu-compliance-links {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 6px;
        align-items: center;
        justify-content: flex-start;
        font-size: 9px !important;
        line-height: 1.35 !important;
        min-width: 0;
    }

    .mobile-menu-sheet .mobile-menu-compliance-links a {
        color: #6f6f6f;
        text-decoration: none;
        font-weight: 500;
        font-size: 9px !important;
        line-height: 1.35 !important;
    }

    .mobile-menu-sheet .mobile-menu-compliance-dot {
        color: #c4c4c4;
        user-select: none;
        font-size: 9px !important;
        line-height: 1.35 !important;
    }

    .mobile-menu-sheet .mobile-menu-compliance-copy {
        margin: 6px 0 0;
        font-size: 8px !important;
        color: #9a9a9a;
        line-height: 1.35 !important;
        overflow-wrap: break-word;
    }

/* 由 breadcrumb 注入，仅移动端内页在 glass-nav 内展示 */
.mobile-nav-strip {
    display: none !important;
}

@media (max-width: 1024px) {
    .main-menu {
        display: flex;
    }
}

/* forceMobile / 与 isMobileMode 同步：html.md-mobile-layout 顶栏与汉堡（勿包进上方 touch media，真机判定与 DevTools 不一致） */

    html.md-mobile-layout,
    body.has-mobile-shell {
        --mobile-nav-bar-h: 52px;
        --mobile-nav-tool-size: 36px;
        --mobile-nav-icon-size: 20px;
        --mobile-nav-burger-size: 20px;
        --mobile-nav-toolbar-gap: 10px;
        --mobile-nav-h: calc(var(--mobile-nav-bar-h) + env(safe-area-inset-top));
        /* 移动浮层层级：菜单 < 联系 < 搜索 < 顶栏（顶栏始终可点） */
        --mobile-z-menu: 3000;
        --mobile-z-contact: 3100;
        --mobile-z-search-backdrop: 3150;
        --mobile-z-search: 3160;
        --mobile-z-nav: 4000;
    }

    html.md-mobile-layout .glass-nav,
    body.has-mobile-shell .glass-nav {
        top: 0;
        min-width: 100%;
        height: var(--mobile-nav-h);
        padding-top: env(safe-area-inset-top);
        z-index: var(--mobile-z-nav) !important;
        pointer-events: auto;
        isolation: isolate;
        border: none;
        border-bottom: none;
        /* 移动端常驻顶栏不用 backdrop-filter：固定元素上的实时模糊会逐帧重算，
           导致滚动与点按明显卡顿。改用近不透明实色底，观感接近、性能恢复。 */
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    }

    /* 首页顶栏：实色浅底，深色图标与品牌字（同样不用 backdrop-filter） */
    html.md-mobile-layout .home-page .glass-nav,
    body.has-mobile-shell.home-page .glass-nav {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
        height: var(--mobile-nav-h);
        z-index: var(--mobile-z-nav) !important;
    }

    .brand-lock-img--nav-home-full {
        display: none;
    }

    html.md-mobile-layout .home-page .brand-lock-group,
    body.has-mobile-shell.home-page .brand-lock-group {
        width: auto;
        max-width: min(58vw, 240px);
        justify-content: flex-start;
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    html.md-mobile-layout .home-page .brand-lock-img--nav-home-full,
    body.has-mobile-shell.home-page .brand-lock-img--nav-home-full {
        display: block !important;
        height: 28px !important;
        width: auto;
        max-width: min(62vw, 260px);
        object-fit: contain;
        filter: none;
        opacity: 1;
    }

    html.md-mobile-layout .home-page .brand-lock-img--wordmark,
    html.md-mobile-layout .home-page .brand-lock-img--compact,
    body.has-mobile-shell.home-page .brand-lock-img--wordmark,
    body.has-mobile-shell.home-page .brand-lock-img--compact {
        display: none !important;
    }

    html.md-mobile-layout .home-page .brand-lock-group > a,
    body.has-mobile-shell.home-page .brand-lock-group > a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        flex-shrink: 0;
    }

    html.md-mobile-layout .nav-container,
    body.has-mobile-shell .nav-container {
        height: var(--mobile-nav-h);
        min-height: var(--mobile-nav-h);
        padding: env(safe-area-inset-top) var(--md-nav-inset-x) 0 var(--md-nav-inset-x);
        overflow-x: visible;
        overflow-y: hidden;
        align-items: center;
        box-sizing: border-box;
    }

    html.md-mobile-layout .home-page .nav-container,
    body.has-mobile-shell.home-page .nav-container {
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: env(safe-area-inset-top) var(--md-nav-inset-x) 0 var(--md-nav-inset-x);
        height: var(--mobile-nav-h);
        min-height: var(--mobile-nav-h);
        box-sizing: border-box;
    }

    html.md-mobile-layout .brand-lock-group,
    html.md-mobile-layout .main-menu,
    html.md-mobile-layout .right-tools {
        display: none !important;
    }

    html.md-mobile-layout .home-page .brand-lock-group,
    body.has-mobile-shell.home-page .brand-lock-group {
        display: flex !important;
        align-items: center;
        height: var(--mobile-nav-tool-size);
        min-height: var(--mobile-nav-tool-size);
        position: relative;
        left: auto;
        top: auto;
        z-index: 3210;
        transform: none;
    }

    /* 内页：Logo + 路径 + 顶栏工具 */
    html.md-mobile-layout body:not(.home-page) .glass-nav .nav-container,
    body.has-mobile-shell:not(.home-page) .glass-nav .nav-container {
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: env(safe-area-inset-top) var(--md-nav-inset-x) 0 var(--md-nav-inset-x);
    }

    html.md-mobile-layout body:not(.home-page) .glass-nav .mobile-nav-strip {
        display: flex !important;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        gap: 0;
        height: var(--mobile-nav-tool-size);
        min-height: var(--mobile-nav-tool-size);
    }

    html.md-mobile-layout .mobile-nav-strip-home {
        box-sizing: border-box;
        width: auto;
        max-width: 72px;
        min-width: 0;
        height: var(--mobile-nav-tool-size);
        min-height: var(--mobile-nav-tool-size);
        padding: 2px 4px 2px 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #242424;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        text-decoration: none;
        transition: opacity 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    html.md-mobile-layout .mobile-nav-strip-home-img {
        height: 18px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

    html.md-mobile-layout .mobile-nav-strip-home:active {
        opacity: 0.72;
    }

    html.md-mobile-layout .mobile-nav-strip-path {
        flex: 1 1 auto;
        align-self: center;
        min-width: 0;
        margin-left: 8px;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: var(--mobile-nav-tool-size) !important;
        height: var(--mobile-nav-tool-size);
        letter-spacing: -0.01em;
        color: #374151;
        font-family: var(--md-font-site), var(--md-font-puhui), "PingFang SC", "Hiragino Sans GB",
            "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        padding: 0;
    }

    html.md-mobile-layout .mobile-nav-toolbar,
    body.has-mobile-shell .mobile-nav-toolbar {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        flex-shrink: 0;
        margin-left: 4px;
        height: var(--mobile-nav-tool-size);
        min-height: var(--mobile-nav-tool-size);
        position: relative;
        z-index: 2;
        pointer-events: auto;
        --md-mobile-nav-tool-fg: #1f2937;
    }

    html.md-mobile-layout .mobile-nav-toolbar > .mobile-nav-tool-btn + .mobile-nav-tool-btn,
    body.has-mobile-shell .mobile-nav-toolbar > .mobile-nav-tool-btn + .mobile-nav-tool-btn {
        margin-left: var(--mobile-nav-toolbar-gap, 10px);
    }

    html.md-mobile-layout .mobile-nav-tool-btn,
    body.has-mobile-shell .mobile-nav-tool-btn {
        box-sizing: border-box;
        width: var(--mobile-nav-tool-size);
        height: var(--mobile-nav-tool-size);
        min-width: var(--mobile-nav-tool-size);
        min-height: var(--mobile-nav-tool-size);
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--md-mobile-nav-tool-fg, #1f2937);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        transition: background-color 0.1s ease, opacity 0.1s ease;
    }

    html.md-mobile-layout .mobile-nav-toolbar [data-md-mobile-action="search"],
    html.md-mobile-layout .mobile-nav-toolbar [data-md-mobile-action="menu"],
    body.has-mobile-shell .mobile-nav-toolbar [data-md-mobile-action="search"],
    body.has-mobile-shell .mobile-nav-toolbar [data-md-mobile-action="menu"] {
        color: var(--md-mobile-nav-tool-fg, #1f2937);
    }

    html.md-mobile-layout .mobile-nav-tool-btn:active,
    body.has-mobile-shell .mobile-nav-tool-btn:active {
        background: rgba(0, 0, 0, 0.06);
    }

    html.md-mobile-layout .mobile-nav-tool-icon:not(.mobile-nav-burger),
    body.has-mobile-shell .mobile-nav-tool-icon:not(.mobile-nav-burger) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--mobile-nav-icon-size, 21px);
        height: var(--mobile-nav-icon-size, 21px);
    }

    html.md-mobile-layout .mobile-nav-tool-btn--lang,
    body.has-mobile-shell .mobile-nav-tool-btn--lang {
        width: auto;
        min-width: 32px;
        padding: 0 5px;
        color: var(--md-mobile-nav-tool-fg, #374151);
        border-radius: 0;
        font-family: var(--md-font-latin), var(--md-font-site), sans-serif;
    }

    html.md-mobile-layout .mobile-nav-tool-btn--lang svg,
    html.md-mobile-layout .mobile-nav-lang-globe,
    html.md-mobile-layout .mobile-nav-lang-stack,
    body.has-mobile-shell .mobile-nav-tool-btn--lang svg,
    body.has-mobile-shell .mobile-nav-lang-globe,
    body.has-mobile-shell .mobile-nav-lang-stack {
        display: none !important;
    }

    html.md-mobile-layout .mobile-nav-tool-btn--lang:active,
    body.has-mobile-shell .mobile-nav-tool-btn--lang:active {
        background: transparent;
        opacity: 0.72;
    }

    html.md-mobile-layout .mobile-nav-lang-label,
    body.has-mobile-shell .mobile-nav-lang-label {
        display: block;
        font-size: 12px !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em;
        line-height: 1 !important;
        white-space: nowrap;
    }

    html.md-mobile-layout .mobile-nav-lang-label--wide,
    body.has-mobile-shell .mobile-nav-lang-label--wide {
        font-size: 11px !important;
        letter-spacing: 0;
    }

    html.md-mobile-layout span.mobile-nav-burger,
    body.has-mobile-shell span.mobile-nav-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 5px;
        width: 16px;
        height: 15px;
        flex-shrink: 0;
    }

    html.md-mobile-layout .mobile-nav-toolbar [data-md-mobile-action="menu"] .mobile-nav-burger,
    body.has-mobile-shell .mobile-nav-toolbar [data-md-mobile-action="menu"] .mobile-nav-burger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: var(--mobile-nav-burger-size, 20px) !important;
        height: var(--mobile-nav-burger-size, 20px) !important;
        min-width: var(--mobile-nav-burger-size, 20px) !important;
        min-height: var(--mobile-nav-burger-size, 20px) !important;
        flex-shrink: 0;
        color: inherit;
        overflow: visible;
    }

    html.md-mobile-layout .mobile-nav-burger,
    body.has-mobile-shell .mobile-nav-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--mobile-nav-burger-size, 20px);
        height: var(--mobile-nav-burger-size, 20px);
        min-width: var(--mobile-nav-burger-size, 20px);
        min-height: var(--mobile-nav-burger-size, 20px);
        flex-shrink: 0;
        color: inherit;
        overflow: visible;
    }

    html.md-mobile-layout span.mobile-nav-burger > span,
    body.has-mobile-shell span.mobile-nav-burger > span {
        display: block;
        width: 100%;
        height: 1.25px;
        min-height: 1.25px;
        border-radius: 1px;
        background-color: var(--md-mobile-nav-tool-fg, #1f2937);
        flex-shrink: 0;
    }

    html.md-mobile-layout span.mobile-nav-burger > span:nth-child(2),
    body.has-mobile-shell span.mobile-nav-burger > span:nth-child(2) {
        height: 0.85px;
        min-height: 0.85px;
    }

    html.md-mobile-layout.home-page .mobile-nav-tool-btn,
    body.has-mobile-shell.home-page .mobile-nav-tool-btn {
        color: var(--md-mobile-nav-tool-fg, #1f2937);
    }

    html.md-mobile-layout .search-area,
    body.has-mobile-shell .search-area {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: var(--mobile-nav-h) !important;
        bottom: auto !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 48px !important;
        padding: 0 14px !important;
        z-index: var(--mobile-z-search) !important;
        background: #ffffff !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none !important;
        border-bottom: none !important;
        border-radius: 0 !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        transform: translate3d(0, -100%, 0) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease !important;
    }

    html.md-mobile-layout .search-area::after,
    body.has-mobile-shell .search-area::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: var(--md-divider-fade-light);
        pointer-events: none;
    }

    html.md-mobile-layout .search-area.active,
    body.has-mobile-shell .search-area.active {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
    }

    html.md-mobile-layout .search-area #search-input-box,
    body.has-mobile-shell .search-area #search-input-box {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    html.md-mobile-layout .search-area #search-input-box::placeholder,
    body.has-mobile-shell .search-area #search-input-box::placeholder {
        font-size: 13px !important;
        color: #9ca3af;
    }

    html.md-mobile-layout .glass-nav.searching-mode::after,
    body.has-mobile-shell .glass-nav.searching-mode::after {
        opacity: 0;
    }

    html.md-mobile-layout .mobile-dock,
    body.has-mobile-shell .mobile-dock {
        display: none !important;
    }

    html.md-mobile-layout .mobile-dock-rail,
    body.has-mobile-shell .mobile-dock-rail {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        justify-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        column-gap: 2px;
        padding: 0 2px;
        min-height: 32px;
        box-sizing: border-box;
    }

    html.md-mobile-layout .mobile-dock-rail > a,
    html.md-mobile-layout .mobile-dock-rail > button {
        max-width: 100%;
        min-width: 0;
    }

    html.md-mobile-layout .mobile-dock-icon-btn {
        box-sizing: border-box;
        width: 100%;
        max-width: 48px;
        height: 32px;
        padding: 0;
        border: 1px solid #e5e5e5;
        border-radius: 9px;
        background: #ffffff;
        color: #2c2c2c;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        cursor: pointer;
        flex-shrink: 1;
        font-size: 0 !important;
        line-height: 0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
        -webkit-tap-highlight-color: transparent;
    }

    html.md-mobile-layout .mobile-dock-icon-btn:active {
        background: #f3f5f6;
        border-color: #dcdcdc;
        transform: scale(0.96);
    }

    /* 紧贴中间胶囊一侧：径向遮罩形成反弧，与椭圆轮廓衔接 */
    html.md-mobile-layout .mobile-dock-icon-btn.mobile-dock-icon-btn--hinge-left {
        position: relative;
        z-index: 1;
        margin-right: -2px;
        border-radius: 9px 6px 6px 9px;
        -webkit-mask-image: radial-gradient(
            circle 18px at calc(100% + 6px) 50%,
            transparent 14px,
            #000 15px
        );
        mask-image: radial-gradient(
            circle 18px at calc(100% + 6px) 50%,
            transparent 14px,
            #000 15px
        );
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    html.md-mobile-layout .mobile-dock-icon-btn.mobile-dock-icon-btn--hinge-right {
        position: relative;
        z-index: 1;
        margin-left: -2px;
        border-radius: 6px 9px 9px 6px;
        -webkit-mask-image: radial-gradient(
            circle 18px at -6px 50%,
            transparent 14px,
            #000 15px
        );
        mask-image: radial-gradient(
            circle 18px at -6px 50%,
            transparent 14px,
            #000 15px
        );
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    html.md-mobile-layout .mobile-dock-svg {
        width: 17px;
        height: 17px;
        display: block;
    }

    html.md-mobile-layout .mobile-dock-menu-fab {
        position: relative;
        z-index: 2;
        flex-shrink: 1;
        width: min(100%, 82px);
        max-width: 100%;
        height: 36px;
        padding: 0;
        margin: -8px -12px 0 -12px;
        align-self: end;
        border: 1px solid #dedede;
        border-radius: 999px;
        background: linear-gradient(180deg, #ffffff 0%, #f4f5f6 100%);
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    html.md-mobile-layout .mobile-dock-menu-fab:active {
        transform: scale(0.96);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    }

    html.md-mobile-layout .mobile-dock-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 4px;
        width: 24px;
        height: 16px;
    }

    html.md-mobile-layout .mobile-dock-burger > span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: #1a1a1a;
    }

    html.md-mobile-layout .mobile-dock-lang {
        box-sizing: border-box;
        width: 100%;
        max-width: 56px;
        min-width: 0;
        height: 32px;
        padding: 0 5px;
        border: 1px solid #e5e5e5;
        border-radius: 9px;
        background: #ffffff;
        color: #333333;
        font-size: 12px !important;
        font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1.1;
        cursor: pointer;
        flex-shrink: 1;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        transition: background-color 0.15s ease, transform 0.12s ease;
        -webkit-tap-highlight-color: transparent;
    }

    html.md-mobile-layout .mobile-dock-lang:active {
        background: #f3f5f6;
        transform: scale(0.96);
    }

    html.md-mobile-layout .mobile-menu-sheet,
    body.has-mobile-shell .mobile-menu-sheet {
        position: fixed;
        inset: 0;
        z-index: var(--mobile-z-menu);
        background: rgba(15, 23, 42, 0.32);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

    html.md-mobile-layout .mobile-menu-sheet.is-open,
    body.has-mobile-shell .mobile-menu-sheet.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    html.md-mobile-layout .mobile-menu-shell,
    body.has-mobile-shell .mobile-menu-shell {
        position: fixed;
        left: auto;
        right: 0;
        top: var(--mobile-nav-h);
        bottom: env(safe-area-inset-bottom, 0px);
        width: min(72vw, 280px);
        max-width: 100%;
        height: auto;
        border-radius: 16px 0 0 16px;
        border: none;
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: -10px 0 36px rgba(15, 23, 42, 0.12);
        overflow: hidden;
        transform: translate3d(100%, 0, 0);
        transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    /* 抽屉左缘羽化，弱化与遮罩交界 */
    html.md-mobile-layout .mobile-menu-shell::after,
    body.has-mobile-shell .mobile-menu-shell::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 36px;
        border-radius: 16px 0 0 16px;
        pointer-events: none;
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.45) 55%,
            rgba(255, 255, 255, 0) 100%
        );
        z-index: 4;
    }

    html.md-mobile-layout .mobile-menu-sheet.is-open .mobile-menu-shell,
    body.has-mobile-shell .mobile-menu-sheet.is-open .mobile-menu-shell {
        transform: translate3d(0, 0, 0);
    }

    html.md-mobile-layout .mobile-menu-track,
    body.has-mobile-shell .mobile-menu-track {
        position: relative;
        width: 100%;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    html.md-mobile-layout .mobile-menu-panel,
    body.has-mobile-shell .mobile-menu-panel {
        position: absolute;
        inset: 0;
        padding: 16px 12px 18px 22px;
        display: flex;
        flex-direction: column;
        min-height: 0;
        transform: translate3d(0, 0, 0);
        transition: transform 0.24s ease;
    }

    html.md-mobile-layout .mobile-menu-panel-head,
    body.has-mobile-shell .mobile-menu-panel-head {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 8px;
        padding-bottom: 10px;
        border-bottom: none;
    }

    html.md-mobile-layout .mobile-menu-panel-root-title,
    body.has-mobile-shell .mobile-menu-panel-root-title {
        font-size: 14px;
        font-weight: 700;
        color: #3a3d46;
        text-align: left;
    }

    html.md-mobile-layout .mobile-menu-item-leading,
    body.has-mobile-shell .mobile-menu-item-leading {
        display: inline-flex;
        align-items: flex-end;
        justify-content: center;
        flex-shrink: 0;
        margin-right: 8px;
        color: #6b7280;
        opacity: 0.9;
        line-height: 1.2;
    }

    html.md-mobile-layout .mobile-menu-item-home-icon,
    body.has-mobile-shell .mobile-menu-item-home-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.125em;
        height: 1em;
        font-size: 16px;
        line-height: 1;
        transform: translate(-3px, -0.08em);
    }

    html.md-mobile-layout .mobile-menu-breadcrumb,
    body.has-mobile-shell .mobile-menu-breadcrumb {
        position: relative;
        margin: 0 8px 10px 11px;
        padding: 0 0 12px;
        border-bottom: none;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.45;
        color: #a3a3a3;
        font-family: var(--md-font-site), var(--md-font-puhui), "PingFang SC", "Hiragino Sans GB",
            "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
        user-select: none;
    }

    html.md-mobile-layout .mobile-menu-breadcrumb::after,
    body.has-mobile-shell .mobile-menu-breadcrumb::after,
    html.md-mobile-layout .mobile-menu-actions::before,
    body.has-mobile-shell .mobile-menu-actions::before,
    html.md-mobile-layout .mobile-menu-compliance::before,
    body.has-mobile-shell .mobile-menu-compliance::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
        pointer-events: none;
    }

    html.md-mobile-layout .mobile-menu-breadcrumb::after,
    body.has-mobile-shell .mobile-menu-breadcrumb::after {
        bottom: 0;
    }

    html.md-mobile-layout .mobile-menu-actions::before,
    body.has-mobile-shell .mobile-menu-actions::before,
    html.md-mobile-layout .mobile-menu-compliance::before,
    body.has-mobile-shell .mobile-menu-compliance::before {
        top: 0;
    }

    html.md-mobile-layout .mobile-menu-actions,
    body.has-mobile-shell .mobile-menu-actions,
    html.md-mobile-layout .mobile-menu-compliance,
    body.has-mobile-shell .mobile-menu-compliance {
        position: relative;
        border-top: none;
    }

    /* 二级：上级分区名黑灰字；前导 < 略大、Logo 活泼蓝 */
    html.md-mobile-layout .mobile-menu-panel-parent-tap,
    body.has-mobile-shell .mobile-menu-panel-parent-tap {
        width: 100%;
        margin: 0;
        margin-top: 10px;
        padding: 16px 4px 12px 2px;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-family: inherit;
        font-size: 18px !important;
        font-weight: 700;
        line-height: 1.35;
        color: #2f323a;
        text-align: left;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    html.md-mobile-layout .mobile-menu-panel-parent-tap::before,
    body.has-mobile-shell .mobile-menu-panel-parent-tap::before {
        content: '<';
        display: inline-block;
        margin-right: 10px;
        font-size: 16px;
        font-weight: 600;
        color: #0099d6;
        line-height: 1;
        flex-shrink: 0;
        transform: translateY(-1.75px);
        letter-spacing: 0;
    }

    html.md-mobile-layout .mobile-menu-panel-parent-tap:active,
    body.has-mobile-shell .mobile-menu-panel-parent-tap:active {
        opacity: 0.88;
    }

    html.md-mobile-layout .mobile-menu-panel-current,
    body.has-mobile-shell .mobile-menu-panel-current {
        font-size: 14px;
        font-weight: 600;
        color: #0099d6;
        text-align: left;
        line-height: 1.35;
    }

    /* 纵向列表，不用网格；仅每行 flex + 右侧指向箭头 */
    html.md-mobile-layout .mobile-menu-list,
    body.has-mobile-shell .mobile-menu-list {
        display: block;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
        z-index: 1;
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent,
            #000 18px,
            #000 calc(100% - 20px),
            transparent
        );
        mask-image: linear-gradient(
            to bottom,
            transparent,
            #000 18px,
            #000 calc(100% - 20px),
            transparent
        );
    }

    html.md-mobile-layout .mobile-menu-list::-webkit-scrollbar,
    body.has-mobile-shell .mobile-menu-list::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    html.md-mobile-layout .mobile-menu-item,
    body.has-mobile-shell .mobile-menu-item {
        width: 100%;
        border: 0;
        border-bottom: none;
        background: transparent;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 15px 8px;
        min-height: 50px;
        cursor: pointer;
    }

    html.md-mobile-layout .mobile-menu-item:has(.mobile-menu-item-leading),
    body.has-mobile-shell .mobile-menu-item:has(.mobile-menu-item-leading) {
        justify-content: flex-start;
        gap: 0;
    }

    html.md-mobile-layout .mobile-menu-item:has(.mobile-menu-item-leading) .mobile-menu-item-arrow,
    body.has-mobile-shell .mobile-menu-item:has(.mobile-menu-item-leading) .mobile-menu-item-arrow {
        margin-left: auto;
    }

    html.md-mobile-layout .mobile-menu-item-label,
    body.has-mobile-shell .mobile-menu-item-label {
        font-size: 16px;
        color: #383a42;
        margin-left: 0;
        margin-right: 0;
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
        line-height: 1.25;
        align-self: center;
    }

    html.md-mobile-layout .mobile-menu-item--with-hint,
    body.has-mobile-shell .mobile-menu-item--with-hint {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    html.md-mobile-layout .mobile-menu-item--with-hint .mobile-menu-item-label,
    body.has-mobile-shell .mobile-menu-item--with-hint .mobile-menu-item-label {
        flex: 0 0 auto;
        align-self: flex-start;
    }

    html.md-mobile-layout .mobile-menu-item-hint,
    body.has-mobile-shell .mobile-menu-item-hint {
        display: block;
        font-size: 12px;
        line-height: 1.45;
        color: #8b8f98;
        font-weight: 400;
        text-align: left;
    }

    html.md-mobile-layout .mobile-menu-item-arrow,
    body.has-mobile-shell .mobile-menu-item-arrow {
        color: #b9bcc6;
        font-size: 18px;
        line-height: 1;
        margin-left: auto;
        flex-shrink: 0;
        font-weight: 500;
        align-self: center;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 1.25em;
    }

    /* 一级有子：左链主区、右展开二级（汉堡内最多二级） */
    html.md-mobile-layout .mobile-menu-item--split,
    body.has-mobile-shell .mobile-menu-item--split {
        padding: 0;
        cursor: default;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    html.md-mobile-layout .mobile-menu-item-hub-link,
    body.has-mobile-shell .mobile-menu-item-hub-link {
        flex: 0 1 auto;
        width: max-content;
        max-width: min(72%, 200px);
        align-self: center;
        padding: 15px 8px 15px 8px;
        text-decoration: none;
        color: #383a42;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
        border-radius: 10px;
    }

    html.md-mobile-layout .mobile-menu-item-hub-link .mobile-menu-item-leading,
    body.has-mobile-shell .mobile-menu-item-hub-link .mobile-menu-item-leading {
        margin-right: 8px;
    }

    html.md-mobile-layout .mobile-menu-item-hub-link:active,
    body.has-mobile-shell .mobile-menu-item-hub-link:active {
        background: rgba(0, 153, 214, 0.08);
    }

    html.md-mobile-layout .mobile-menu-item-hub-link:active .mobile-menu-item-label,
    body.has-mobile-shell .mobile-menu-item-hub-link:active .mobile-menu-item-label {
        color: #0099d6;
    }

    html.md-mobile-layout .mobile-menu-item--split .mobile-menu-item-hub-link .mobile-menu-item-label,
    body.has-mobile-shell .mobile-menu-item--split .mobile-menu-item-hub-link .mobile-menu-item-label {
        font-size: 16px;
        font-weight: 500;
        color: #2f323a;
    }

    html.md-mobile-layout .mobile-menu-panel:not(.mobile-menu-panel--depth-sub) .mobile-menu-item-label,
    body.has-mobile-shell .mobile-menu-panel:not(.mobile-menu-panel--depth-sub) .mobile-menu-item-label {
        font-weight: 500;
    }

    html.md-mobile-layout .mobile-menu-item-more,
    body.has-mobile-shell .mobile-menu-item-more {
        flex: 1 1 auto;
        min-width: 48px;
        width: auto;
        align-self: center;
        min-height: 50px;
        border: 0;
        border-left: none;
        background: transparent;
        font-size: 20px;
        line-height: 1;
        color: #b9bcc6;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 10px;
        padding-left: 8px;
        -webkit-tap-highlight-color: transparent;
    }

    html.md-mobile-layout .mobile-menu-item-more:active,
    body.has-mobile-shell .mobile-menu-item-more:active {
        background: transparent;
    }

    html.md-mobile-layout .mobile-menu-item--split:has(.mobile-menu-item-more:active),
    body.has-mobile-shell .mobile-menu-item--split:has(.mobile-menu-item-more:active) {
        background: rgba(0, 153, 214, 0.14);
        border-radius: 12px;
    }

    /* 二级列表：相对含「<」的上级行多缩进一档 */
    html.md-mobile-layout .mobile-menu-panel--depth-sub .mobile-menu-item:not(.mobile-menu-item--split),
    body.has-mobile-shell .mobile-menu-panel--depth-sub .mobile-menu-item:not(.mobile-menu-item--split) {
        padding-left: 26px;
        padding-right: 8px;
    }

    html.md-mobile-layout .mobile-menu-panel--depth-sub .mobile-menu-item-label,
    body.has-mobile-shell .mobile-menu-panel--depth-sub .mobile-menu-item-label {
        font-size: 15px;
        font-weight: 500;
        color: #3a3d46;
        line-height: 1.25;
        align-self: center;
    }

/* 系统暗黑模式：仅适配移动端顶栏；正文由浏览器自行适配。Logo 浅色资源就绪后再切换。 */
@media (prefers-color-scheme: dark) {
    html.md-mobile-layout .glass-nav,
    html.md-os-dark.md-mobile-layout .glass-nav,
    body.has-mobile-shell .glass-nav,
    html.md-os-dark body.has-mobile-shell .glass-nav {
        background: #ffffff !important;
        color-scheme: light;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    }

    html.md-mobile-layout .home-page .glass-nav,
    html.md-os-dark.md-mobile-layout .home-page .glass-nav,
    body.has-mobile-shell.home-page .glass-nav,
    html.md-os-dark body.has-mobile-shell.home-page .glass-nav {
        background: #ffffff !important;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    }

    html.md-mobile-layout .mobile-nav-toolbar,
    html.md-os-dark.md-mobile-layout .mobile-nav-toolbar,
    body.has-mobile-shell .mobile-nav-toolbar,
    html.md-os-dark body.has-mobile-shell .mobile-nav-toolbar {
        --md-mobile-nav-tool-fg: #1f2937;
    }

    html.md-mobile-layout .mobile-nav-toolbar .mobile-nav-tool-btn,
    html.md-os-dark.md-mobile-layout .mobile-nav-toolbar .mobile-nav-tool-btn,
    body.has-mobile-shell .mobile-nav-toolbar .mobile-nav-tool-btn,
    html.md-os-dark body.has-mobile-shell .mobile-nav-toolbar .mobile-nav-tool-btn {
        color: var(--md-mobile-nav-tool-fg) !important;
    }

    html.md-mobile-layout .mobile-nav-toolbar [data-md-mobile-action="search"],
    html.md-mobile-layout .mobile-nav-toolbar [data-md-mobile-action="menu"],
    html.md-os-dark.md-mobile-layout .mobile-nav-toolbar [data-md-mobile-action="search"],
    html.md-os-dark.md-mobile-layout .mobile-nav-toolbar [data-md-mobile-action="menu"],
    body.has-mobile-shell .mobile-nav-toolbar [data-md-mobile-action="search"],
    body.has-mobile-shell .mobile-nav-toolbar [data-md-mobile-action="menu"],
    html.md-os-dark body.has-mobile-shell .mobile-nav-toolbar [data-md-mobile-action="search"],
    html.md-os-dark body.has-mobile-shell .mobile-nav-toolbar [data-md-mobile-action="menu"] {
        color: var(--md-mobile-nav-tool-fg) !important;
    }

    html.md-mobile-layout .mobile-nav-toolbar .mobile-nav-tool-icon,
    html.md-os-dark.md-mobile-layout .mobile-nav-toolbar .mobile-nav-tool-icon,
    body.has-mobile-shell .mobile-nav-toolbar .mobile-nav-tool-icon,
    html.md-os-dark body.has-mobile-shell .mobile-nav-toolbar .mobile-nav-tool-icon,
    html.md-mobile-layout .mobile-nav-toolbar .mobile-nav-burger,
    html.md-os-dark.md-mobile-layout .mobile-nav-toolbar .mobile-nav-burger,
    body.has-mobile-shell .mobile-nav-toolbar .mobile-nav-burger,
    html.md-os-dark body.has-mobile-shell .mobile-nav-toolbar .mobile-nav-burger {
        color: inherit;
    }

    html.md-mobile-layout .mobile-nav-toolbar .mobile-nav-burger > span,
    html.md-os-dark.md-mobile-layout .mobile-nav-toolbar .mobile-nav-burger > span,
    body.has-mobile-shell .mobile-nav-toolbar .mobile-nav-burger > span,
    html.md-os-dark body.has-mobile-shell .mobile-nav-toolbar .mobile-nav-burger > span {
        background-color: var(--md-mobile-nav-tool-fg) !important;
    }

    html.md-mobile-layout .mobile-nav-tool-btn:active,
    html.md-os-dark.md-mobile-layout .mobile-nav-tool-btn:active,
    body.has-mobile-shell .mobile-nav-tool-btn:active,
    html.md-os-dark body.has-mobile-shell .mobile-nav-tool-btn:active {
        background: rgba(0, 0, 0, 0.06);
    }

    html.md-mobile-layout .mobile-nav-strip-path,
    html.md-os-dark.md-mobile-layout .mobile-nav-strip-path,
    body.has-mobile-shell .mobile-nav-strip-path,
    html.md-os-dark body.has-mobile-shell .mobile-nav-strip-path {
        color: #374151 !important;
    }
}

/* === assets/css/footer.css === */
footer {
    position: relative;
    background: #fdfdfd;
    padding: 35px 0 35px 0;
    /* Further compressed vertical padding */
    border-top: 1px solid #f2f2f2;
    color: #666;
    font-size: 11px;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.footer-container {
    width: 100%;
    max-width: var(--md-footer-max);
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
}

/* Clustered 6-Column Centered Sitemap (Extra Tight) */
.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    /* Relaxed 6-column gap */
    max-width: 785px;
    /* Forced clustering */
    margin: 0 auto 36px auto;
    text-align: center;
    align-items: stretch;
}

.sitemap-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.sm-sub-items {
    display: grid;
    grid-auto-rows: 19px;
    justify-items: center;
    row-gap: 3px;
    /* Reduced to 3px */
    margin-top: 7px;
}

.sm-sub-items a {
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 19px;
    font-size: 13px;
    line-height: 19px;
    font-weight: 400;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    /* Prevents wrapping in tight layout */
}

.sm-sub-items a:hover {
    color: var(--md-cyan);
    transform: translateY(-1px);
}

.sm-top-link {
    color: #454545;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 21px;
    font-size: 15px;
    line-height: 21px;
    /* Slightly refined size for better clustering */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: 0.3s;
}

.sm-top-link:hover {
    color: var(--md-cyan);
}

.sm-space {
    flex-grow: 1;
}

/* Refined Balanced Separator：中间 320px 实线，两侧向外渐隐 */
.footer-divider {
    position: relative;
    width: 320px;
    height: 1px;
    background: #e5e5e5;
    margin: 0 auto 36px auto;
}

.footer-divider::before,
.footer-divider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 48px;
    height: 1px;
    pointer-events: none;
}

.footer-divider::before {
    right: 100%;
    background: linear-gradient(to left, #e5e5e5 0%, rgba(229, 229, 229, 0) 100%);
}

.footer-divider::after {
    left: 100%;
    background: linear-gradient(to right, #e5e5e5 0%, rgba(229, 229, 229, 0) 100%);
}

/* 页脚底栏：与 breadcrumb / 内容轨同宽 */
.footer-bottom {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px 28px;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    color: #888;
    font-size: 13px;
    overflow: visible;
    position: relative;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.brand-name {
    display: inline-block;
    font-weight: 700;
    color: #444;
    font-size: 13px;
    line-height: 1.2;
    transform: translateY(-1px);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    line-height: 1.2;
}

.footer-social {
    display: flex;
    gap: 18px;
    color: #666;
    align-items: center;
    line-height: 1;
    position: relative;
    z-index: 20;
    overflow: visible;
    flex: 0 0 auto;
    margin-left: auto;
}

.footer-social-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font: inherit;
    transition: color 0.2s ease;
}

.footer-social-link:hover {
    color: var(--md-cyan);
}

.footer-social-icon {
    display: block;
    width: 24px;
    height: 24px;
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    color: #666;
    stroke: #666;
}

.footer-social-icon.md-icon-wechat {
    fill: #666;
    stroke: none;
}

.footer-social-icon.md-icon-envelope {
    stroke: #666;
}

.wechat-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 30;
    overflow: visible;
}

.wechat-qr-popup {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 208px;
    padding: 12px 12px 12px;
    gap: 0px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 5000;
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    pointer-events: none;
}

.wechat-qr-popup__img {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

.wechat-qr-popup__hint {
    margin: 0;
    padding: 0 4px 2px;
    font-size: 13px;
    line-height: 1.45;
    color: #555;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.wechat-qr-popup__arrow {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

@media (hover: hover) and (pointer: fine) {
    .wechat-wrapper:hover .wechat-qr-popup {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-5px);
        pointer-events: auto;
    }
}

.wechat-qr-popup.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: auto;
}

/* 桌面（非移动壳）：始终展示页脚社交区（避免触屏笔记本命中 coarse pointer 被误隐藏） */
@media (min-width: 769px) {
    html:not(.md-mobile-layout) body:not(.has-mobile-shell) footer .footer-social {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    footer {
        min-width: 0;
        width: 100%;
        padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
        border-top: none;
        background: #fafafa;
    }

    .footer-sitemap,
    .footer-divider {
        display: none !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 9px;
        color: #777;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
    }

    .footer-info .brand-name {
        display: none;
    }

    .footer-links {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        font-size: 9px;
        white-space: normal;
    }

    .footer-social {
        display: none !important;
    }

    .copyright {
        font-size: 9px !important;
        line-height: 1.35;
        color: #888;
    }
}

/* 与 breadcrumb 注入的 Dock 一致：forceMobile / 宽视口触控等场景下 @media 可能不匹配，仍用极简页脚 */
body.has-mobile-shell footer {
    min-width: 0;
    width: 100%;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: none;
    background: #fafafa;
}

body.has-mobile-shell footer .footer-sitemap,
body.has-mobile-shell footer .footer-divider {
    display: none !important;
}

body.has-mobile-shell footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 9px;
    color: #777;
}

body.has-mobile-shell footer .footer-info {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

body.has-mobile-shell footer .footer-info .brand-name {
    display: none;
}

body.has-mobile-shell footer .footer-links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 9px;
    white-space: normal;
}

html.md-mobile-layout footer .footer-links {
    display: flex !important;
}

body.has-mobile-shell footer .footer-social {
    display: none !important;
}

body.has-mobile-shell footer .copyright {
    font-size: 9px !important;
    line-height: 1.35;
    color: #888;
}
