/**
 * 量衡光学 · 页眉「产品中心」悬浮下拉菜单
 * 面板 HTML 由插件 wp_footer 输出（内容实时读取产品库），
 * 由脚本挂到页眉「产品中心」链接下，页眉粘贴代码无需改动。
 */

.mpx-nvd-host{position:relative;display:inline-flex;align-items:center;}
.mpx-nvd-host > a{position:relative;}
.mpx-nvd-host > a::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;background:transparent;transition:background .15s;}
.mpx-nvd-host:hover > a::after{background:currentColor;}

.mpx-nvd{
  position:absolute;top:100%;left:50%;transform:translateX(-50%);
  display:none;gap:30px;padding:20px 28px 22px;
  background:#fff;border:1px solid #E0EAEB;border-radius:8px;
  box-shadow:0 14px 36px rgba(26,31,46,.15);
  z-index:9999;min-width:540px;
}
/* 悬停桥：消除链接与面板之间的缝隙，防止移过去时面板消失 */
.mpx-nvd::before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px;}
.mpx-nvd-host:hover .mpx-nvd,
.mpx-nvd-host:focus-within .mpx-nvd{display:flex;}

.mpx-nvd-col{display:flex;flex-direction:column;min-width:120px;}
.mpx-nvd-series{
  font-size:14px;font-weight:700;color:#1A1F2E;text-decoration:none;
  padding-bottom:8px;margin-bottom:6px;white-space:nowrap;
  border-bottom:2px solid #187491;
}
.mpx-nvd-series:hover{color:#187491;}
.mpx-nvd-item{
  font-size:13.5px;color:#54686D;text-decoration:none;
  padding:6px 0;white-space:nowrap;line-height:1.5;
}
.mpx-nvd-item:hover{color:#187491;}

@media (max-width:860px){
  .mpx-nvd{display:none !important;} /* 移动端折叠菜单里不启用悬浮面板 */
}
