/* 全站导航 — 精简 B2B 企业页头 */

.site-header {
    /* 导航优先系统 UI 字体，同字重下更轻盈；Noto 作回退 */
    --nav-font: "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
    position: relative;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 1px 0 var(--dp-line, rgba(28, 43, 58, 0.08)), 0 4px 20px rgba(21, 31, 42, 0.04);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
    box-shadow: 0 1px 0 rgba(8, 32, 62, 0.08), 0 8px 28px rgba(8, 32, 62, 0.08);
}
.site-header.is-scrolled .header-main {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.site-header.is-scrolled .header-logo-graphic,
.site-header.is-scrolled .header-logo-img {
    transform: scale(0.94);
}

/* ---------- 顶栏公告 ---------- */
.site-header .announce-bar {
    background: var(--dp-dark, #151f2b);
    border-bottom: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8125rem;
}
.site-header .announce-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    gap: 1rem;
}
.site-header .announce-bar-text {
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
}
.site-header .announce-bar-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.site-header .announce-bar-marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: announce-bar-marquee 22s linear infinite;
    will-change: transform;
}
.site-header .announce-bar-marquee__text {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
}
@keyframes announce-bar-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 1.25rem)); }
}
@media (prefers-reduced-motion: reduce) {
    .site-header .announce-bar-marquee__track {
        animation: none;
    }
}
.site-header .lang-switch--topbar {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 2px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
.site-header .lang-switch--topbar a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.15s, background 0.15s;
}
.site-header .lang-switch--topbar .lang-flag {
    display: block;
    width: 18px;
    height: 12px;
    border: none;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.9;
}
.site-header .lang-switch--topbar a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.site-header .lang-switch--topbar a.active {
    color: var(--dp-dark, #0c2340);
    font-weight: 700;
    background: #fff;
}

/* ---------- 品牌主区 ---------- */
.site-header .header-main {
    background: #fff;
    border-bottom: 1px solid rgba(8, 32, 62, 0.06);
    padding: 0.75rem 0;
    transition: padding 0.25s ease;
}
.site-header .header-main-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-header .header-brand {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}
.site-header .header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}
.site-header .header-brand-desc {
    flex: 1;
    min-width: 0;
    padding-left: 1.25rem;
    margin-left: 1.25rem;
    border-left: 1px solid rgba(8, 32, 62, 0.1);
}
.site-header .header-brand-desc-top {
    margin: 0 0 0.25rem;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--dp-text, #1a3348);
    line-height: 1.45;
    letter-spacing: 0.01em;
}
.site-header .header-brand-desc-sub {
    margin: 0;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    font-weight: 400;
    color: var(--dp-muted, #5c6d7e);
    line-height: 1.45;
}
.site-header .header-logo-img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.25s ease;
}
.site-header .header-logo-graphic {
    flex-shrink: 0;
    line-height: 0;
    width: 76px;
    height: 76px;
    transform-origin: center center;
    transition: transform 0.25s ease;
}
.site-header .header-logo-graphic svg {
    display: block;
    width: 76px;
    height: 76px;
}
.site-header .header-logo-name {
    font-family: var(--dp-font-display, "Noto Serif SC", "Songti SC", "STSong", Georgia, serif);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    color: var(--dp-primary-dark, #08203e);
    letter-spacing: 0.06em;
    white-space: nowrap;
    line-height: 1.2;
}
.site-header .header-logo-accent {
    color: var(--dp-highlight, #c9a962);
    font-weight: 700;
}
html:lang(en) .site-header .header-logo-name {
    letter-spacing: 0.03em;
}
@media (min-width: 768px) {
    .site-header .header-logo-name {
        max-width: 12em;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (min-width: 1200px) {
    .site-header .header-logo-name {
        max-width: none;
    }
}

.site-header .header-hotline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0;
    color: inherit;
}
.site-header .header-hotline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(28, 43, 58, 0.04), rgba(28, 43, 58, 0.08));
    color: var(--dp-primary-dark, #111a24);
    border: 1.5px solid rgba(201, 169, 98, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(17, 26, 36, 0.06);
}
.site-header .header-hotline-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    gap: 0.05rem;
}
.site-header .header-hotline-text small {
    font-size: 0.8125rem;
    color: var(--dp-muted, #6e7681);
    font-weight: 400;
    letter-spacing: 0.02em;
}
.site-header .header-hotline-text strong {
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    font-weight: 600;
    color: var(--dp-text, #2a323c);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.site-header .header-mobile-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}
.site-header .header-hotline-mini {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(28, 43, 58, 0.04), rgba(28, 43, 58, 0.08));
    color: var(--dp-primary-dark, #111a24);
    border: 1.5px solid rgba(201, 169, 98, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(17, 26, 36, 0.06);
    position: relative;
}
.site-header .header-hotline-mini:hover {
    background: linear-gradient(135deg, rgba(28, 43, 58, 0.08), rgba(201, 169, 98, 0.12));
    border-color: rgba(201, 169, 98, 0.45);
    box-shadow: 0 4px 18px rgba(201, 169, 98, 0.15), 0 2px 8px rgba(17, 26, 36, 0.08);
    transform: scale(1.06);
    color: var(--dp-primary-dark, #111a24);
}
.site-header .header-nav-toggler {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(8, 32, 62, 0.12);
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}
.site-header .header-nav-toggler span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--dp-dark, #0c2340);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
.site-header .header-nav-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header .header-nav-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.site-header .header-nav-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 深色导航条 ---------- */
.site-header .header-nav {
    position: relative;
    background: var(--dp-nav-bar, #151f2b);
    padding: 0;
    font-family: inherit;
    min-height: 48px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.12);
}
.site-header .header-nav::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.14) 18%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.14) 82%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}
@media (min-width: 1200px) {
    .site-header .header-nav {
        min-height: 50px;
    }
}
.site-header .header-nav .navbar-nav {
    font-family: inherit;
}
.site-header .header-nav-container {
    padding-left: 0;
    padding-right: 0;
}
@media (min-width: 992px) {
    .site-header .header-nav-container {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }
}
.site-header .header-nav-menu {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 0;
}
.site-header .header-nav-menu .nav-item {
    flex: 0 0 auto;
    text-align: center;
}
.site-header .header-nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.86) !important;
    font-family: var(--nav-font);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.4;
    padding: 14px 20px !important;
    border-radius: 0;
    white-space: nowrap;
    letter-spacing: 0.04em;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    transition: background 0.2s, color 0.2s;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1200px) {
    .site-header .header-nav-menu .nav-link {
        font-size: 0.96875rem;
        padding: 15px 22px !important;
        letter-spacing: 0.045em;
    }
}
.site-header .header-nav-menu .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--dp-highlight, #c9a962);
    transform: translateX(-50%);
    transition: width 0.2s ease;
}
.site-header .header-nav-menu .nav-link:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: rgba(255, 255, 255, 0.96) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-header .header-nav-menu .nav-link:hover::after {
    width: calc(100% - 2rem);
}
.site-header .header-nav-menu .nav-link.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-header .header-nav-menu .nav-link.active::after {
    width: calc(100% - 2rem);
}

/* 产品中心 — 子分类下拉 */
.site-header .header-nav-dropdown {
    position: relative;
}
.site-header .header-nav-dropdown-inner {
    display: flex;
    align-items: stretch;
}
.site-header .header-nav-dropdown-link {
    padding-right: 0.35rem !important;
}
.site-header .header-nav-dropdown-link::after {
    display: none;
}
.site-header .header-nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem 0 0.15rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    transition: color 0.2s, background 0.2s;
}
.site-header .header-nav-dropdown:hover .header-nav-dropdown-toggle,
.site-header .header-nav-dropdown-toggle:hover,
.site-header .header-nav-dropdown-toggle[aria-expanded="true"] {
    color: #fff;
}
.site-header .header-nav-dropdown-menu {
    margin-top: 0;
    border: 1px solid rgba(28, 43, 58, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(17, 26, 36, 0.18);
    padding: 0.4rem;
    min-width: 11rem;
    max-height: 70vh;
    overflow-y: auto;
}
.site-header .header-nav-dropdown-menu .dropdown-item {
    border-radius: 6px;
    font-size: 0.875rem;
    padding: 0.45rem 0.75rem;
    color: var(--dp-primary-dark, #111a24);
}
.site-header .header-nav-dropdown-menu .dropdown-item:hover,
.site-header .header-nav-dropdown-menu .dropdown-item:focus {
    background: rgba(var(--dp-brand-rgb, 74, 122, 181), 0.1);
    color: var(--dp-primary-dark, #111a24);
}
.site-header .header-nav-dropdown-menu .dropdown-item.active {
    background: rgba(201, 169, 98, 0.16);
    color: #7a5a18;
    font-weight: 600;
}
@media (min-width: 992px) {
    .site-header .header-nav-dropdown:hover .header-nav-dropdown-menu {
        display: block;
    }
    .site-header .header-nav-dropdown .header-nav-dropdown-menu {
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 992px) and (max-width: 1400px) {
    .site-header .header-nav-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .site-header .header-nav-menu::-webkit-scrollbar {
        display: none;
    }
    .site-header .header-nav-menu .nav-link {
        font-size: 0.9375rem;
        padding: 13px 14px !important;
    }
}

.site-header .header-nav-mobile-extra {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}
.site-header .lang-switch--dark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.site-header .lang-switch--dark a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
}
.site-header .lang-switch--dark a.active {
    color: var(--dp-highlight, #c9a962);
    font-weight: 700;
}
.site-header .btn-header-cta {
    background: var(--dp-highlight, #c9a962);
    color: var(--dp-dark, #0c2340);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1rem;
}

/* ---------- 移动端 ---------- */
@media (max-width: 991.98px) {
    .site-header .header-main-inner {
        position: relative;
        justify-content: flex-start;
        gap: 0.65rem;
        padding-right: 4.75rem;
    }
    .site-header .header-brand {
        flex: 0 1 auto;
        justify-content: flex-start;
    }
    .site-header .header-logo {
        justify-content: flex-start;
    }
    .site-header .header-mobile-tools {
        position: absolute;
        right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
    .site-header .header-nav {
        min-height: 0;
        box-shadow: none;
    }
    .site-header .header-nav:not(:has(.navbar-collapse.show)) {
        background: transparent;
    }
    .site-header .header-nav:not(:has(.navbar-collapse.show))::before {
        display: none;
    }
    .site-header .header-nav:has(.navbar-collapse.show) {
        background: var(--dp-nav-bar, #151f2b);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.12);
    }
    .site-header .header-nav-container {
        padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    }
    .site-header .header-logo-img,
    .site-header .header-logo-graphic {
        width: 60px;
        height: 60px;
    }
    .site-header .header-logo-graphic svg {
        width: 60px;
        height: 60px;
    }
    .site-header .header-logo-name {
        font-size: 1.0625rem;
    }
    .site-header .header-nav .navbar-collapse.show,
    .site-header .header-nav .navbar-collapse.collapsing {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .site-header .header-nav .navbar-collapse {
        background: var(--dp-nav-bar, #08203e);
    }
    .site-header .header-nav-menu {
        flex-direction: column !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .site-header .header-nav-menu .nav-item {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .site-header .header-nav-menu .nav-link {
        font-size: 0.9375rem;
        font-weight: 500;
        padding: 0.85rem 1rem !important;
        display: block;
        width: 100%;
        text-align: center;
        letter-spacing: 0.04em;
    }
    .site-header .header-nav-menu .nav-link.active {
        font-weight: 600;
    }
    .site-header .header-nav-menu .nav-link::after {
        display: none;
    }
    .site-header .header-nav-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .site-header .header-nav-dropdown-inner {
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    .site-header .header-nav-dropdown-link {
        flex: 0 1 auto;
        text-align: center;
    }
    .site-header .header-nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        margin: 0;
        border: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.12);
        box-shadow: none;
        padding: 0.25rem 0 0.5rem;
        text-align: center;
    }
    .site-header .header-nav-dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
    }
    .site-header .header-nav-dropdown-menu .dropdown-item:hover,
    .site-header .header-nav-dropdown-menu .dropdown-item.active {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
    .site-header .header-nav-mobile-extra {
        text-align: center;
        width: 100%;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }
    .site-header .lang-switch--dark {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .site-header .announce-bar-inner {
        justify-content: center;
    }
    .site-header .announce-bar-text {
        font-size: 0.6875rem;
        text-align: center;
        white-space: nowrap;
    }
    .site-header .header-logo-name {
        font-size: 0.9375rem;
        max-width: none;
        overflow: visible;
        text-overflow: unset;
    }
}

/* 兼容 */
.hotline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--dp-primary);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
}
.hotline-badge:hover {
    color: #fff;
    opacity: 0.92;
}
