/*
 * 顶部导航下拉面板（产品中心 / 行业方案）—— 2026-09-29 起正式版，页头有新面板时由头部模板加载（小语种页不加载）。
 * 设计来源：Claude Design 顶部导航交接包 handoff-nav（mega-menu.html §CSS、README §4），≥1200px 逐值照搬；
 * <1200px 只补左右 24px 边距（同应用领域页 .vhap-wrap 做法），不改列宽 / 字号。
 * 所有面板内选择器都以 .vhnp 开头（比设计稿同名规则统一多一个类，相互之间的覆盖关系与设计稿一致，
 * 同时压过站点的 a{color:#333} / a{color:inherit} 等全局规则）；变量加 --vhnp- 前缀（首页 :root 已占用 --red / --line）。
 * 页头本身（Logo、搜索、一级导航、九宫格、手机菜单）与页脚不在这里改动。
 */

/* ---------------------------------------------------------------- 英文站字体
   站点字体 Poppins 在内页只有 Regular（nc.css），面板的 700 / 800 粗体会变成浏览器伪粗体。这里用本站已有的
   Poppins woff2（fonts/google/poppins/，与应用领域页同一套文件）另起一个族名、只给面板用：
   不加载 poppins-google.css，也不给站点的 "Poppins" 族追加字重，页头（如语言切换的粗体）渲染与现在完全一致。 */
@font-face {
    font-family: "VHNP Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/google/poppins/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "VHNP Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/google/poppins/pxiEyp8kv8JHgFVrJJfecg.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "VHNP Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/google/poppins/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "VHNP Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/google/poppins/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "VHNP Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/google/poppins/pxiByp8kv8JHgFVrLDD4Z1JlFc-K.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "VHNP Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/google/poppins/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- 面板宿主：内页 common/header.html / header_no_nhnavs.html */
/* 现有 .nav-item：position:fixed; top:130px; 背景 #F7F7F7; padding 50px 0; 0.3s 淡入。新面板按设计稿改为白底、无内边距、瞬时开合。
   #header 起头压过 global-modern-mega-menus.css 的 (0,5,1) 宿主规则，不依赖文件顺序。 */
#header .inner nav .nav-item.vhnp-host {
    display: none;
    width: auto;
    padding: 0;
    background: #fff;
    border-top: 1px solid #E4E4E4;
    box-shadow: 0 16px 32px rgba(26, 26, 26, .10);
    color: #1A1A1A;
    font-size: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    transition: none;
}
#header .inner nav .nav1 .nav-item.vhnp-host.nav-item-act {
    display: block;
}

/* ---------------------------------------------------------------- 面板宿主：首页 home_cn_exact_v80 / home_en_exact_v80 */
/* 桌面（≥991，首页显示横向一级导航的宽度）：新面板替换旧内容；手机（≤990）首页汉堡菜单的「产品中心 / 行业方案」快捷入口仍显示旧内容。 */
@media (min-width: 991px) {
    .site-header-wrap .site-mega-menu.vhnp-host {
        display: none;
        background: #fff;
        border-top-color: #E4E4E4;
        box-shadow: 0 16px 32px rgba(26, 26, 26, .10);
        color: #1A1A1A;
        font-size: 16px;
        transform: none;
        transition: none;
    }
    .site-header-wrap .site-mega-menu.vhnp-host.is-open {
        display: block;
    }
    .site-header-wrap .site-mega-menu.vhnp-host > .mega-menu-inner {
        display: none;
    }
}
@media (max-width: 990px) {
    .site-header-wrap .site-mega-menu.vhnp-host > .vhnp {
        display: none;
    }
}

/* ---------------------------------------------------------------- 设计变量 / 基础 */
.vhnp {
    --vhnp-red: #C30D23;
    --vhnp-red-dk: #8A0A18;
    --vhnp-ink: #1A1A1A;
    --vhnp-mute: #8C8C8C;
    --vhnp-mute2: #A8A8A8;
    --vhnp-arrow: #C9C9C9;
    --vhnp-line: #E4E4E4;
    --vhnp-soft: #F4F4F4;
    --vhnp-r: 10px;
    --vhnp-r-s: 6px;
    display: block;
    color: var(--vhnp-ink);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    white-space: normal;
}
.vhnp *,
.vhnp *::before,
.vhnp *::after {
    box-sizing: border-box;
}
/* 英文站（含 /de/ /fr/ 等语言页）：站点字体 Poppins，粗体用上面的面板专用族；中文站由 cn-typography.css 统一为 Noto Sans SC */
html:not([lang|="zh"]) .vhnp {
    font-family: "VHNP Poppins", "Poppins", sans-serif;
}
.vhnp a {
    color: var(--vhnp-red);
    text-decoration: none;
}
.vhnp a:hover {
    color: var(--vhnp-red-dk);
}
.vhnp img {
    max-width: none;
    vertical-align: middle;
}
/* 设计稿写 monospace 的地方（系列数、REF 角标）：压过中文站 cn-typography.css（0,2,2 + !important）。
   generic monospace 之前先列等宽西文与中文黑体（同应用领域页 .vhap-mono），避免 lang="zh" 下落到宋体。 */
.vhnp.vhnp .vhnp-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", "Droid Sans Mono", "Roboto Mono", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", monospace !important;
}
/* 内容 1200 居中；可用宽度不足 1200 时给 24px 边距（百分比相对面板宽度） */
.vhnp .vhnp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(0px, (1200px - 100%) * 1000, 24px);
    padding-right: clamp(0px, (1200px - 100%) * 1000, 24px);
}
.vhnp .vhnp-cap {
    display: block;
    font-size: 12px;
    color: var(--vhnp-mute);
    padding: 0 12px 8px;
}

/* ---------------------------------------------------------------- 产品中心（大类 › 小类 › 系列） */
.vhnp .vhnp-prod {
    display: grid;
    grid-template-columns: 204px 264px minmax(0, 1fr);
    min-height: 384px;
}
.vhnp .vhnp-col1 {
    padding: 24px 16px 24px 0;
    border-right: 1px solid var(--vhnp-line);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vhnp .vhnp-cats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vhnp .vhnp-col2 {
    padding: 24px 16px;
    border-right: 1px solid var(--vhnp-line);
}
.vhnp .vhnp-subs {
    display: none;
    flex-direction: column;
    gap: 2px;
}
.vhnp .vhnp-subs.is-on {
    display: flex;
}
.vhnp .vhnp-col3 {
    padding: 24px 0 24px 32px;
    min-width: 0;
}
.vhnp .vhnp-ser {
    display: none;
    flex-direction: column;
    gap: 16px;
}
.vhnp .vhnp-ser.is-on {
    display: flex;
}
/* 大类 / 小类：设计稿固定行高 40 / 36；站点 CMS 名称比设计稿长时（英文站「Ethernet Interface Chip」等）允许折行撑高，不截字 */
.vhnp .vhnp-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--vhnp-r-s);
    font-size: 16px;
    color: var(--vhnp-ink);
}
.vhnp .vhnp-cat::after {
    content: "\203A";
    flex: none;
    font-size: 14px;
    color: var(--vhnp-arrow);
}
.vhnp .vhnp-cat.is-on {
    background: var(--vhnp-soft);
    color: var(--vhnp-red);
    font-weight: 700;
}
.vhnp .vhnp-cat.is-on::after {
    color: var(--vhnp-red);
}
.vhnp .vhnp-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: var(--vhnp-r-s);
    font-size: 14px;
    color: var(--vhnp-ink);
}
.vhnp .vhnp-cat > span,
.vhnp .vhnp-sub > span {
    min-width: 0;
    padding: 4px 0;
    line-height: 1.3;
}
.vhnp .vhnp-sub em {
    flex: none;
    font-style: normal;
    font-size: 11px;
    color: var(--vhnp-mute2);
}
.vhnp .vhnp-sub.is-on {
    color: var(--vhnp-red);
    font-weight: 700;
}
.vhnp .vhnp-sub.is-on em {
    color: var(--vhnp-red);
}
.vhnp .vhnp-overview {
    margin-top: auto;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
}
.vhnp .vhnp-ser-h {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}
.vhnp .vhnp-ser-h b {
    min-width: 0;
    font-size: 20px;
    font-weight: 800;
}
.vhnp .vhnp-ser-h a {
    flex: none;
    font-size: 14px;
    font-weight: 700;
}
.vhnp .vhnp-series {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.vhnp .vhnp-series a {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--vhnp-line);
    border-radius: var(--vhnp-r-s);
    font-size: 14px;
    color: var(--vhnp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vhnp .vhnp-series a:hover {
    border-color: var(--vhnp-red);
    color: var(--vhnp-red);
}

/* ---------------------------------------------------------------- 行业方案（上：应用领域 / 下：八大解决方案，上下分区） */
.vhnp .vhnp-sol {
    padding-top: 24px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
}
.vhnp .vhnp-sec-h {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 12px;
}
.vhnp .vhnp-sec-h > span {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}
.vhnp .vhnp-sec-h b {
    flex: none;
    font-size: 16px;
    font-weight: 800;
}
.vhnp .vhnp-sec-h small {
    font-size: 12px;
    color: var(--vhnp-mute);
}
.vhnp .vhnp-sec-h a {
    flex: none;
    font-size: 14px;
    font-weight: 700;
}
.vhnp .vhnp-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.vhnp .vhnp-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 0 12px;
    border: 1px solid var(--vhnp-line);
    border-radius: var(--vhnp-r);
    background: #fff;
    color: var(--vhnp-ink);
    min-width: 0;
    transition: all .15s ease;
}
.vhnp .vhnp-card:hover {
    border-color: var(--vhnp-red);
    color: var(--vhnp-red);
    box-shadow: 0 6px 16px rgba(26, 26, 26, .08);
}
.vhnp .vhnp-card.is-on {
    border-color: var(--vhnp-red);
    color: var(--vhnp-red);
    box-shadow: 0 0 0 3px rgba(195, 13, 35, .10), 0 6px 16px rgba(26, 26, 26, .06);
}
.vhnp .vhnp-card.is-on b {
    font-weight: 700;
}
.vhnp .vhnp-card img {
    flex: none;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 3px 2px rgba(26, 26, 26, .16));
}
.vhnp .vhnp-card > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vhnp .vhnp-card b {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vhnp .vhnp-card small {
    font-size: 12px;
    color: var(--vhnp-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vhnp .vhnp-ref {
    position: absolute;
    right: -1px;
    top: -1px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: var(--vhnp-red);
    border-radius: 0 10px 0 6px;
    padding: 3px 6px;
}
.vhnp .vhnp-hr {
    height: 1px;
    background: var(--vhnp-line);
    margin: 24px 0;
}
