/* ============================================================
 * newmb 工业风站点样式 (Bootstrap 5 + CSS3)
 * 主题色：深蓝 #1a3a5c · 金色 #b8860b · 深色 #1a1a1a
 * ============================================================ */
:root {
  --nm-primary: #1a3a5c;
  --nm-primary-2: #244d7a;
  --nm-gold: #b8860b;
  --nm-gold-light: #d4a017;
  --nm-dark: #1a1a1a;
  --nm-gray: #6b7280;
  --nm-gray-light: #eef0f3;
  --nm-bg: #f5f7fa;
  --nm-radius: 8px;
  --nm-shadow-sm: 0 2px 6px rgba(0, 0, 0, .05);
  --nm-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  --nm-shadow-lg: 0 12px 32px rgba(26, 58, 92, .12);
  /* 头部总高度（body padding-top 占位用），随响应式同步调整 */
  --nm-header-h: 168px;
}

@media (max-width: 767.98px) {
  :root {
    --nm-header-h: 140px;
  }
}

@media (max-width: 575.98px) {
  :root {
    --nm-header-h: 124px;
  }
}

html body.newmb-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #3a4654;
  line-height: 1.75;
  font-size: 15px;
  /* 给 fixed 头部预留空间，避免首屏Banner被遮挡；同时让锚点跳转不被遮挡 */
  padding-top: var(--nm-header-h);
}

/* 滚动时内容锚点补偿（避免被 fixed 头部挡住） */
[id] {
  scroll-margin-top: calc(var(--nm-header-h) + 12px);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all .25s ease;
}

a:hover {
  color: var(--nm-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 通用工具类 */
.text-gold {
  color: var(--nm-gold) !important;
}

.bg-nm-primary {
  background: var(--nm-primary) !important;
}

.fs-xs {
  font-size: .75rem;
}

/* ========== 顶栏 + 导航：整体固定在顶部 ========== */
.nmb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  /* 比 Bootstrap modal(1050) 低一点，比 nav-collapse 1030 高 */
  background: #fff;
  border-top: 3px solid var(--nm-gold);
  box-shadow: 0 4px 20px rgba(26, 58, 92, .08);
  transition: box-shadow .25s ease;
}

/* 滚动时头部加更明显的阴影（JS可加，CSS兜底：任何时候都保持轻微阴影即可） */
html body.scrolled .nmb-header,
.nmb-header.nmb-header--scrolled {
  box-shadow: 0 6px 28px rgba(26, 58, 92, .12);
}

.nmb-topbar {
  background: #fff;
  /* 白色背景，不再用深蓝渐变 */
  color: #4b5563;
  font-size: 13px;
  border-bottom: 1px solid var(--nm-gray-light);
}

.nmb-topbar .container {
  max-width: 1440px;
  min-height: 92px;
  /* 桌面端：logo3高44 + logo高72 → 实际撑高容器，这里保底 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .6rem;
  padding-bottom: .6rem;
}

@media (max-width: 767.98px) {
  .nmb-topbar .container {
    min-height: 76px;
    padding-top: .4rem;
    padding-bottom: .4rem;
  }
}

@media (max-width: 575.98px) {
  .nmb-topbar .container {
    min-height: 68px;
  }
}

.nmb-brand .nmb-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
}

/* 长logo模式：横向铺开，高度自适应，不再显示自定义中英文文字 */
.nmb-brand .nmb-logo.nmb-logo-long {
  width: auto;
  height: 72px;
  min-width: 220px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 767.98px) {
  .nmb-brand .nmb-logo.nmb-logo-long {
    height: 56px;
    min-width: 160px;
  }
}

.nmb-lang {
  font-size: 14px;
  color: var(--nm-primary);
}

.nmb-lang-link {
  color: #374151;
  position: relative;
}

.nmb-lang-link:hover,
.nmb-lang-link.active {
  color: var(--nm-gold);
  font-weight: 600;
}

.nmb-lang-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--nm-gold);
  border-radius: 2px;
}

.nmb-lang span.text-gray-500 {
  color: #cbd5e1 !important;
}

/* logo3 图标样式 */
.nmb-logo3 {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.nmb-logo3-nav {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  opacity: .95;
}

/* ========== 主导航 ========== */
.nmb-navbar {
  background: #fff;
  box-shadow: 0 1px 0 var(--nm-gray-light);
  padding: 1rem 0;
  z-index: 1030;
  border-bottom: 1px solid var(--nm-gray-light);
}

.nmb-navbar>.container {
  max-width: 1440px;
}

.nmb-navbar.navbar-light .navbar-toggler {
  border: none;
}

/* 汉堡按钮：白色背景上用深蓝+金色，取消之前的半透明白色 */
.nmb-toggler {
  border: 1px solid var(--nm-gray-light);
  padding: .4rem .6rem;
  background: #fff;
  color: var(--nm-primary);
  border-radius: 8px;
  transition: all .2s ease;
}

.nmb-toggler i {
  color: var(--nm-primary);
}

.nmb-toggler:hover,
.nmb-toggler:focus {
  background: rgba(184, 134, 11, .06);
  border-color: var(--nm-gold);
  color: var(--nm-gold);
  box-shadow: none;
}

.nmb-toggler:hover i,
.nmb-toggler:focus i {
  color: var(--nm-gold);
}

.nmb-nav {
  gap: .25rem;
}

/* nav-item 定位上下文：用于下拉菜单绝对定位（特异性升级，覆盖 Bootstrap .nav-item 默认样式） */
html body .nmb-nav .nmb-nav-item,
.nmb-navbar .navbar-nav .nav-item.nmb-nav-item {
  position: relative !important;
}

.nmb-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937 !important;
  padding: .75rem 1.1rem !important;
  border-radius: 6px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nmb-nav-link:hover,
.nmb-nav-link.active {
  color: var(--nm-gold) !important;
  background: rgba(184, 134, 11, .06);
}

.nmb-nav-link::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 2px;
  height: 2px;
  background: var(--nm-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  border-radius: 2px;
}

.nmb-nav-link:hover::after,
.nmb-nav-link.active::after {
  transform: scaleX(1);
}

/* ========== 桌面端（≥992px）：一级下拉 hover 显示（仅桌面端） ========== */
@media (min-width: 992px) {

  /* 一级下拉：hover 显示（替换 Bootstrap 点击显示），高特异性覆盖 Bootstrap .dropdown-menu 默认样式 */
  html body .nmb-nav .nmb-nav-item:hover>.nmb-dropdown,
  html body .nmb-nav .nmb-nav-item:focus-within>.nmb-dropdown,
  .nmb-navbar .nmb-nav .nav-item.nmb-nav-item:hover>.nmb-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* 下拉菜单（桌面端）：默认隐藏但占位（absolute），用 hover 过渡 */
  html body .nmb-dropdown,
  .nmb-navbar .dropdown-menu.nmb-dropdown {
    display: block !important;
    /* 让我们能用 opacity/visibility 控制过渡 */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    z-index: 1050;
    float: none;
    margin: 2px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    border: none !important;
    border-top: 3px solid var(--nm-gold) !important;
    border-radius: 0 0 8px 8px !important;
    min-width: 210px !important;
    padding: .5rem 0 !important;
    background-color: #fff !important;
    background-clip: padding-box;
    box-shadow: 0 8px 24px rgba(26, 58, 92, .12);
  }
}

/* ========== 全局：.nmb-dropdown 的基础属性（不包含display控制，避免移动端冲突） ========== */
html body .nmb-dropdown::before {
  /* hover 热区衔接：防止鼠标从 nav 移到 dropdown 过程中断 */
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 8px;
  display: block;
}

.nmb-dropdown .dropdown-item {
  padding: .55rem 1.25rem;
  font-size: 14px;
  color: #374151;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nmb-dropdown .dropdown-item:hover,
.nmb-dropdown .dropdown-item:focus {
  background: rgba(26, 58, 92, .04);
  color: var(--nm-gold);
}

/* 二级子菜单容器 */
html body .nmb-dropitem-sub,
.nmb-dropdown .nmb-dropitem-sub {
  position: relative !important;
  display: block !important;
}

/* ========== 桌面端（≥992px）：二级/三级 submenu hover 显示 ========== */
@media (min-width: 992px) {

  /* 二级下拉：hover 显示（高特异性） */
  html body .nmb-dropitem-sub:hover>.submenu,
  html body .nmb-dropitem-sub:focus-within>.submenu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  html body .nmb-dropitem-sub .submenu.submenu,
  .nmb-dropdown .submenu.dropdown-menu.submenu {
    display: block !important;
    position: absolute !important;
    top: -8px !important;
    left: 100% !important;
    right: auto !important;
    z-index: 1060;
    margin-left: 0 !important;
    border: none !important;
    border-left: 3px solid var(--nm-gold) !important;
    border-radius: 0 8px 8px 8px !important;
    min-width: 210px !important;
    padding: .5rem 0 !important;
    background-color: #fff !important;
    box-shadow: 0 8px 24px rgba(26, 58, 92, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
}

/* ========== 全局：nmb-dropitem-sub 下非 hover 时的过渡样式（移动端专用：默认JS控制）无需声明，由 <1200px 媒体查询控制） ========== */

/* 移动端关闭按钮（浮层内右上角） */
.nmb-mobile-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(26, 58, 92, .04);
  border: 1px solid var(--nm-gray-light);
  color: var(--nm-primary);
  font-size: 20px;
  line-height: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.nmb-mobile-close:hover {
  background: rgba(184, 134, 11, .1);
  border-color: var(--nm-gold);
  color: var(--nm-gold);
}

/* 桌面端（≥992px）：navbar-expand-lg 自动展开，横排显示 */
@media (min-width: 992px) {

  /* 强制隐藏移动端 Offcanvas（Bootstrap默认 .offcanvas 有 display:flex，需高优先级覆盖） */
  #nmbMainNav.offcanvas.nmb-offcanvas-xl {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Offcanvas 遮罩也强制隐藏 */
  .offcanvas-backdrop {
    display: none !important;
  }

  .navbar-expand-lg .nmb-nav.navbar-nav {
    flex-direction: row !important;
    align-items: center;
  }

  .navbar-expand-lg .nmb-nav.navbar-nav .nmb-nav-link {
    width: auto !important;
    border-bottom: none !important;
  }

  /* 桌面端：搜索框保持原宽度（非100%） */
  .navbar-expand-lg .nmb-search {
    width: auto !important;
    margin-top: 0 !important;
  }

  .navbar-expand-lg .nmb-search .nmb-search-input {
    width: 200px !important;
  }

  /* 桌面端：下拉菜单 hover 才显示（与 site.js 的 hover 逻辑配合） */
  .navbar-expand-lg .nmb-dropdown,
  .navbar-expand-lg .nmb-dropitem-sub .submenu {
    position: absolute !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .navbar-expand-lg .nmb-nav-item:hover>.nmb-dropdown,
  .navbar-expand-lg .nmb-dropitem-sub:hover>.submenu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* 移动端（<992px）：Offcanvas 内子菜单默认隐藏，JS 的 slideDown 设置 inline display:block 覆盖 */
@media (max-width: 991.98px) {

  /* Offcanvas 内的一级/二级下拉默认隐藏 */
  #nmbMainNav.offcanvas .nmb-dropdown,
  #nmbMainNav.offcanvas .submenu {
    display: none;
  }

  /* 移动端搜索框宽度100% */
  #nmbMainNav.offcanvas .nmb-search-input {
    width: 100% !important;
  }
}

/* 搜索框 */
.nmb-search .nmb-search-input {
  border: 1px solid var(--nm-gray-light);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: .4rem .75rem;
  font-size: 13px;
  width: 180px;
  background: #fafbfc;
}

.nmb-search .nmb-search-input:focus {
  box-shadow: none;
  border-color: var(--nm-gold);
  background: #fff;
}

.nmb-search-btn {
  background: var(--nm-primary);
  border: 1px solid var(--nm-primary);
  border-radius: 0 6px 6px 0;
  color: #fff;
  padding: .4rem .9rem;
}

.nmb-search-btn:hover {
  background: var(--nm-primary-2);
  border-color: var(--nm-primary-2);
  color: #fff;
}

/* ========== 页面通用 Banner（背景图模式）：无蒙版，只留page-title居中 ========== */
.nmb-page-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background-color: var(--nm-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.nmb-page-banner.ban1 {
  background-image: url('../img/ban1.jpg');
}

.nmb-page-banner.ban2 {
  background-image: url('../img/ban2.jpg');
}

.nmb-page-banner.ban3 {
  background-image: url('../img/ban3.jpg');
}

.nmb-page-banner.ban4 {
  background-image: url('../img/ban4.jpg');
}

.nmb-page-banner.ban5 {
  background-image: url('../img/ban5.jpg');
}

.nmb-page-banner.ban6 {
  background-image: url('../img/ban6.jpg');
}

/* 蒙版已删除（用户要求：不要蒙版之类的特效，图片正常显示） */
.nmb-page-banner::before {
  content: none !important;
}

/* banner内只放页面标题：居中 + 深蓝文字阴影衬托在图片上 */
.nmb-page-banner-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.nmb-page-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
  color: #fff;
  /* 给白色标题在图片上的文字阴影，保证清晰度（不用蒙版） */
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35);
}

/* ========== 面包屑：放大、大气、与页面上下协调 ========== */
.nmb-breadcrumb-section {
  background: #fff;
  border-bottom: 1px solid var(--nm-gray-light);
  padding: 1.25rem 0;
}

.nmb-breadcrumb {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .15rem .5rem;
}

.nmb-breadcrumb i.bi-house-door-fill {
  color: var(--nm-gold);
  font-size: 17px;
}

.nmb-breadcrumb a {
  color: var(--nm-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease;
}

.nmb-breadcrumb a:hover {
  color: var(--nm-gold);
}

.nmb-breadcrumb .current,
.nmb-breadcrumb .nmb-crumb-trail > a:last-child {
  color: #1f2937;
  font-weight: 600;
}

/* 分隔符（bd:position separatoricon="bi bi-chevron-right"） */
.nmb-breadcrumb .bi-chevron-right {
  font-size: 12px;
  color: #c4cad3;
  margin: 0 .2rem;
  vertical-align: middle;
}

/* ========== 面包屑同行右侧：分类导航（about / 产品页通用） ========== */
.nmb-cats-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .5rem;
}

.nmb-cat-link {
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--nm-gray-light);
  background: #fff;
  white-space: nowrap;
  transition: all .15s ease;
}

.nmb-cat-link:hover {
  border-color: var(--nm-gold);
  color: var(--nm-gold);
}

.nmb-cat-link.current-cat {
  background: var(--nm-primary);
  border-color: var(--nm-primary);
  color: #fff;
  font-weight: 500;
}

/* ========== 分类导航 ========== */
.nmb-cats-bar {
  background: var(--nm-bg);
  border-bottom: 1px solid var(--nm-gray-light);
}

.nmb-cats-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.nmb-cat-pill {
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--nm-gray-light);
  font-size: 14px;
  color: #4b5563;
}

.nmb-cat-pill:hover {
  border-color: var(--nm-gold);
  color: var(--nm-gold);
}

.nmb-cat-pill.active {
  background: var(--nm-primary);
  border-color: var(--nm-primary);
  color: #fff;
}

.nmb-cat-pill.active:hover {
  color: var(--nm-gold-light);
}

/* ========== 内容区块 ========== */
.nmb-section {
  padding: 4rem 0;
}

.nmb-section.nmb-section-sm {
  padding: 2.5rem 0;
}

.nmb-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.nmb-section-title h2 {
  position: relative;
  display: inline-block;
  font-size: 28px;
  font-weight: 600;
  color: var(--nm-primary);
  padding-bottom: .75rem;
  margin: 0;
}

.nmb-section-title h2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 48px;
  height: 3px;
  background: var(--nm-gold);
  transform: translateX(-50%);
  border-radius: 3px;
}

.nmb-section-title p {
  margin: .75rem 0 0 0;
  color: var(--nm-gray);
  font-size: 14px;
  letter-spacing: 1px;
}

.container.nmb-container {
  max-width: 1440px;
}

/* ========== 首页 Banner 轮播 ========== */
.nmb-hero-carousel .carousel-item {
  height: 520px;
}

.nmb-hero-carousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.nmb-hero-carousel .carousel-caption {
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding-left: 4rem;
  max-width: 640px;
}

.nmb-hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  margin-bottom: 1rem;
}

.nmb-hero-sub {
  font-size: 16px;
  color: #e5e7eb;
  margin-bottom: 1.5rem;
  max-width: 480px;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

.nmb-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.75rem;
  background: var(--nm-gold);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(184, 134, 11, .35);
}

.nmb-hero-btn:hover {
  background: var(--nm-gold-light);
  transform: translateY(-1px);
}

.nmb-hero-carousel .carousel-indicators [data-bs-target] {
  width: 36px;
  height: 3px;
  border: none;
  opacity: .5;
}

.nmb-hero-carousel .carousel-indicators .active {
  opacity: 1;
  background: var(--nm-gold);
}

/* ========== 首页 - 关于我们 & 优势 ========== */
.nmb-about-wrap {
  background: var(--nm-bg);
}

.nmb-about-img img {
  border-radius: var(--nm-radius);
  box-shadow: var(--nm-shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* 视频面板：适度 16:9 比例，视频完整显示不裁切 */
.nmb-about-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0c1a2b;
  border: 3px solid rgba(184, 134, 11, .6);
  box-shadow: 0 20px 45px rgba(12, 26, 43, .28), 0 0 0 4px rgba(184, 134, 11, .12);
}

.nmb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* 完整显示，绝不裁切 */
  object-position: center;
  display: block;
  border-radius: 16px;
  background: radial-gradient(circle at top, #1a3a5c 0%, #0c1a2b 100%);
}

/* 底部控制条：默认隐藏，hover / 键盘 focus 时显示 */
.nmb-video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .9rem;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(0deg, rgba(12, 26, 43, .78) 0%, rgba(12, 26, 43, 0) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.nmb-about-video:hover .nmb-video-controls,
.nmb-about-video:focus-within .nmb-video-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nmb-vctl-play,
.nmb-vctl-mute,
.nmb-vctl-fs {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}

.nmb-vctl-play:hover,
.nmb-vctl-fs:hover {
  background: rgba(255, 255, 255, .32);
}

.nmb-vctl-time {
  flex: 0 0 auto;
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nmb-vctl-progress {
  flex: 1 1 auto;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nmb-vctl-played {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--nm-gold);
  border-radius: 999px;
}

@media (max-width: 991.98px) {
  .nmb-about-video {
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .nmb-about-video {
    border-radius: 12px;
  }

  .nmb-video,
  .nmb-video-title,
  .nmb-video-controls {
    border-radius: 12px 12px 0 0;
  }

  .nmb-video-controls {
    border-radius: 0 0 12px 12px;
  }

  .nmb-vctl-play,
  .nmb-vctl-fs {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  /* 触屏无 hover：默认显示控制条，保证可操作 */
  .nmb-video-controls {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.nmb-about-title {
  font-size: 28px;
  color: var(--nm-primary);
  font-weight: 600;
  margin: 0 0 1rem 0;
  position: relative;
  padding-bottom: .75rem;
}

.nmb-about-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--nm-gold);
  border-radius: 3px;
}

.nmb-about-sub {
  color: var(--nm-gold);
  font-weight: 500;
  margin-bottom: .25rem;
}

.nmb-about-text {
  color: #4b5563;
  line-height: 2;
  margin-bottom: 0;
}

.nmb-advantages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* 整行排列：与上方视频+文字协调 */
.nmb-advantages-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (max-width: 991.98px) {
  .nmb-advantages-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .nmb-advantages-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
}

.nmb-adv-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--nm-radius);
  border: 1px solid var(--nm-gray-light);
}

.nmb-adv-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--nm-primary), var(--nm-primary-2));
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nmb-adv-title {
  font-weight: 600;
  color: var(--nm-primary);
  margin: 0 0 .25rem 0;
  font-size: 15px;
}

.nmb-adv-text {
  color: #6b7280;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* ========== 产品卡片 ========== */
.nmb-products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .nmb-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .nmb-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nmb-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nmb-products-grid {
    grid-template-columns: 1fr;
  }
}

.nmb-product-card {
  background: #fff;
  border: 1px solid var(--nm-gray-light);
  border-radius: var(--nm-radius);
  overflow: hidden;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}

.nmb-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nm-shadow-lg);
  border-color: var(--nm-gold-light);
}

.nmb-product-thumb {
  position: relative;
  width: 100%;
  padding-top: 80%;
  background: #fafbfc;
  overflow: hidden;
}

.nmb-product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.nmb-product-card:hover .nmb-product-thumb img {
  transform: scale(1.08);
}

.nmb-product-body {
  padding: 1rem 1.1rem 1.25rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .6rem;
}

.nmb-product-title {
  font-size: 14.5px;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nmb-product-card:hover .nmb-product-title {
  color: var(--nm-gold);
}

.nmb-product-more {
  display: inline-block;
  color: var(--nm-primary);
  font-size: 13px;
  margin-top: auto;
}

.nmb-product-more i {
  transition: transform .2s ease;
}

.nmb-product-card:hover .nmb-product-more {
  color: var(--nm-gold);
}

.nmb-product-card:hover .nmb-product-more i {
  transform: translateX(4px);
}

/* ========== 首页项目案例 ========== */
.nmb-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .nmb-case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nmb-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nmb-case-card {
  position: relative;
  border-radius: var(--nm-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--nm-shadow-sm);
}

.nmb-case-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.nmb-case-card:hover img {
  transform: scale(1.06);
}

.nmb-case-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1rem .9rem;
  background: linear-gradient(to top, rgba(26, 58, 92, .85) 0%, transparent 100%);
  color: #fff;
}

.nmb-case-mask h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 .25rem 0;
}

.nmb-case-mask p {
  font-size: 12px;
  opacity: .85;
  margin: 0;
}

/* ========== 产品列表 ========== */
.nmb-list-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.nmb-list-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  background: var(--nm-bg);
  border: 1px solid var(--nm-gray-light);
  border-radius: var(--nm-radius);
  margin-bottom: 1.5rem;
  font-size: 13px;
}

.nmb-list-count strong {
  color: var(--nm-gold);
  font-weight: 600;
}

.nmb-list-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.nmb-list-pagination .pagination {
  gap: .35rem;
}

.nmb-list-pagination .page-link {
  border: 1px solid var(--nm-gray-light);
  color: #4b5563;
  padding: .45rem .85rem;
  border-radius: 6px !important;
  font-size: 13px;
}

.nmb-list-pagination .page-item.active .page-link {
  background: var(--nm-primary);
  border-color: var(--nm-primary);
  color: #fff;
}

.nmb-list-pagination .page-link:hover {
  color: var(--nm-gold);
  border-color: var(--nm-gold);
}

/* ========== 产品详情 ========== */
.nmb-detail-wrap {
  padding: 2.5rem 0 4rem;
}

.nmb-detail-main {
  background: #fff;
  border: 1px solid var(--nm-gray-light);
  border-radius: var(--nm-radius);
  padding: 2rem;
  box-shadow: var(--nm-shadow-sm);
}

.nmb-detail-img {
  position: relative;
}

.nmb-detail-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--nm-radius);
  border: 1px solid var(--nm-gray-light);
}

.nmb-detail-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--nm-primary);
  margin: 0 0 .5rem 0;
  line-height: 1.35;
}

.nmb-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: .75rem 0;
  border-top: 1px dashed var(--nm-gray-light);
  border-bottom: 1px dashed var(--nm-gray-light);
  color: var(--nm-gray);
  font-size: 13px;
  margin: 1rem 0;
}

.nmb-detail-meta span i {
  color: var(--nm-gold);
  margin-right: .3rem;
}

.nmb-detail-body {
  padding-top: 1rem;
  /* 防止富文本内容超出屏幕（长单词/连续字符/代码）换行 */
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* 内联元素（长链接、连续数字等）也强制换行 */
.nmb-detail-body a,
.nmb-detail-body span,
.nmb-detail-body strong,
.nmb-detail-body code,
.right-words a,
.right-words span,
.right-words strong,
.right-words code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 富文本 pre/code：允许横向滚动，或软换行 */
.nmb-detail-body pre,
.right-words pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-width: 100%;
  padding: .75rem 1rem;
  background: #f9fafb;
  border: 1px solid var(--nm-gray-light);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.nmb-detail-body code,
.right-words code {
  background: #f9fafb;
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: 13px;
  color: var(--nm-primary);
}

.right-words {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.nmb-detail-body h3,
.nmb-detail-body h4,
.right-words h3,
.right-words h4 {
  color: var(--nm-primary);
  font-weight: 600;
  margin: 1.25rem 0 .75rem;
}

.nmb-detail-body p,
.right-words p {
  color: #3a4654;
  line-height: 1.9;
  font-size: 15px;
  margin: 0 0 1rem 0;
  background: transparent !important;
  border-radius: 0 !important;
  border-left: none !important;
  padding: 0 !important;
  white-space: normal !important;
  word-break: break-word;
}

.nmb-detail-body p b,
.right-words p b {
  display: inline-block;
  color: var(--nm-primary);
  font-size: 16px;
  padding-bottom: .4rem;
  margin-bottom: .35rem;
  border-bottom: 2px solid var(--nm-gold);
}

.nmb-detail-body img,
.right-words img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
  border: 1px solid var(--nm-gray-light);
}

.nmb-detail-body ul,
.right-words ul,
.nmb-detail-body ol,
.right-words ol {
  padding-left: 1.5rem;
  margin: .5rem 0 1rem;
}

.nmb-detail-body li,
.right-words li {
  margin: .35rem 0;
}

/* 详情规格表格 */
.nmb-detail-body table,
.right-words table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid var(--nm-gray-light) !important;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  margin: 15px 0 25px 0;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.nmb-detail-body table th,
.nmb-detail-body table td,
.right-words table th,
.right-words table td {
  border: 1px solid var(--nm-gray-light);
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
}

.nmb-detail-body table tr:first-child th,
.nmb-detail-body table tr:first-child td,
.right-words table tr:first-child th,
.right-words table tr:first-child td {
  background: var(--nm-primary) !important;
  color: #fff !important;
  font-weight: 600;
  border-color: var(--nm-primary);
  font-size: 14.5px;
}

.nmb-detail-body table tr:nth-child(even) td,
.right-words table tr:nth-child(even) td {
  background: #fafbfc;
}


.nmb-detail-pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nm-gray-light);
}

.nmb-detail-pn a {
  display: block;
  padding: .8rem 1rem;
  border: 1px solid var(--nm-gray-light);
  border-radius: 6px;
  background: #fafbfc;
  color: #4b5563;
  font-size: 13px;
}

.nmb-detail-pn a:hover {
  border-color: var(--nm-gold);
  color: var(--nm-gold);
  background: #fff;
}

.nmb-detail-pn .label {
  color: var(--nm-gray);
  font-size: 12px;
  margin-bottom: .15rem;
}

@media (max-width: 768px) {
  .nmb-detail-pn {
    grid-template-columns: 1fr;
  }
}

/* ========== 联系我们表单 ========== */
.nmb-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 2rem;
}

@media (max-width: 992px) {
  .nmb-contact-grid {
    grid-template-columns: 1fr;
  }
}

.nmb-info-card {
  background: #fff;
  border: 1px solid var(--nm-gray-light);
  border-radius: var(--nm-radius);
  padding: 2rem;
  box-shadow: var(--nm-shadow-sm);
}

.nmb-info-card h5 {
  color: var(--nm-primary);
  font-size: 18px;
  font-weight: 600;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--nm-gold);
  display: inline-block;
  margin: 0 0 1.5rem 0;
}

.nmb-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nmb-info-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px dashed var(--nm-gray-light);
  font-size: 14px;
}

.nmb-info-list li:last-child {
  border-bottom: none;
}

.nmb-info-list .icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--nm-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nmb-info-list .label {
  color: var(--nm-gray);
  font-size: 12px;
  margin-bottom: .15rem;
}

.nmb-info-list .value {
  color: #1f2937;
}

.nmb-contact-form .form-control,
.nmb-contact-form .form-select {
  border: 1px solid var(--nm-gray-light);
  border-radius: 6px;
  padding: .65rem .9rem;
  font-size: 14px;
  background: #fafbfc;
}

.nmb-contact-form .form-control:focus,
.nmb-contact-form .form-select:focus {
  box-shadow: 0 0 0 2px rgba(184, 134, 11, .2);
  border-color: var(--nm-gold);
  background: #fff;
}

.nmb-btn-primary {
  background: var(--nm-primary);
  color: #fff;
  border: 1px solid var(--nm-primary);
  border-radius: 6px;
  padding: .65rem 2rem;
  font-weight: 500;
  transition: all .2s ease;
}

.nmb-btn-primary:hover {
  background: var(--nm-primary-2);
  border-color: var(--nm-primary-2);
  color: #fff;
}

.nmb-btn-gold {
  background: var(--nm-gold);
  color: #fff;
  border: 1px solid var(--nm-gold);
  border-radius: 6px;
  padding: .65rem 2rem;
  font-weight: 500;
}

.nmb-btn-gold:hover {
  background: var(--nm-gold-light);
  border-color: var(--nm-gold-light);
  color: #fff;
}

/* ========== 内容页面（关于/优势/品质） ========== */
.nmb-content-wrap {
  padding: 2.5rem 0 4rem;
}

.nmb-content-card {
  background: #fff;
  border: 1px solid var(--nm-gray-light);
  border-radius: var(--nm-radius);
  padding: 2.5rem;
  box-shadow: var(--nm-shadow-sm);
}

.nmb-content-card h3 {
  color: var(--nm-primary);
  font-weight: 600;
  border-left: 4px solid var(--nm-gold);
  padding-left: .85rem;
  margin: 2rem 0 1rem 0;
  font-size: 20px;
}

.nmb-content-card h3:first-child {
  margin-top: 0;
}

.nmb-content-card p {
  line-height: 1.9;
  margin: 0 0 1rem 0;
  color: #3a4654;
}

.nmb-content-card img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
  border: 1px solid var(--nm-gray-light);
}

/* 下载列表 */
.nmb-down-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nmb-down-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--nm-gray-light);
  border-radius: 8px;
  margin-bottom: .75rem;
  background: #fff;
  transition: all .2s ease;
}

.nmb-down-list li:hover {
  border-color: var(--nm-gold-light);
  box-shadow: var(--nm-shadow-sm);
}

.nmb-down-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--nm-primary), var(--nm-primary-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nmb-down-info {
  flex: 1;
  min-width: 0;
}

.nmb-down-name {
  font-weight: 500;
  color: #1f2937;
  margin: 0 0 .15rem 0;
}

.nmb-down-meta {
  color: var(--nm-gray);
  font-size: 12px;
}

.nmb-down-btn {
  flex-shrink: 0;
  padding: .45rem 1rem;
  background: var(--nm-gold);
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
}

.nmb-down-btn:hover {
  background: var(--nm-gold-light);
}

/* ========== 页脚 ========== */
.nmb-footer {
  background: var(--nm-dark);
  color: #cbd5e1;
  margin-top: 2rem;
}

.nmb-footer>.container {
  max-width: 1440px;
}

.nmb-footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 1.25rem !important;
}

.nmb-footer-info {
  font-size: 13.5px;
  line-height: 2;
}

.nmb-footer-info li {
  padding: .2rem 0;
}

.nmb-footer-links li a {
  font-size: 13.5px;
  color: #cbd5e1;
  padding: .2rem 0;
  display: inline-block;
}

.nmb-footer-links li a:hover {
  color: var(--nm-gold-light);
  padding-left: 4px;
}

.nmb-qr-img {
  width: 110px;
  height: 110px;
  border-radius: 6px;
  border: 4px solid #fff;
}

.nmb-footer-copy {
  font-size: 12.5px;
  color: #9aa4b2;
  line-height: 1.7;
}

.nmb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #111;
  color: #9ca3af;
  font-size: 13px;
}

.nmb-footer-bottom>.container {
  max-width: 1440px;
}

/* ========== 回到顶部按钮 ========== */
.nmb-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: var(--nm-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(26, 58, 92, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
  z-index: 1024;
  line-height: 1;
}

.nmb-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nmb-to-top:hover {
  background: var(--nm-gold);
  transform: translateY(-2px);
}

/* ========== 响应式调整 ========== */
@media (max-width: 992px) {
  .nmb-hero-carousel .carousel-item {
    height: 380px;
  }

  .nmb-hero-carousel .carousel-caption {
    padding: 0 1.5rem;
  }

  .nmb-hero-title {
    font-size: 28px;
  }

  .nmb-page-banner {
    height: 200px;
  }

  .nmb-page-title {
    font-size: 24px;
  }

  .nmb-brand-en {
    display: none;
  }

  .nmb-section {
    padding: 2.5rem 0;
  }

  .nmb-nadvantages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nmb-topbar {
    padding: .5rem 0;
  }

  .nmb-brand .nmb-logo {
    width: 56px;
    height: 56px;
  }

  .nmb-brand-cn {
    font-size: 16px;
    letter-spacing: 0;
  }

  .nmb-nav-link {
    padding: .6rem 1rem !important;
  }

  .nmb-hero-carousel .carousel-item {
    height: 300px;
  }

  .nmb-hero-title {
    font-size: 22px;
  }

  .nmb-hero-sub {
    font-size: 14px;
  }

  .nmb-detail-main {
    padding: 1.25rem;
  }

  .nmb-content-card {
    padding: 1.25rem;
  }

  .nmb-nadvantages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .nmb-search .nmb-search-input {
    width: 100%;
  }
}

/* ========== Bootstrap5 Offcanvas 美化（移动端导航） ========== */
.offcanvas.nmb-offcanvas-xl {
  width: min(88vw, 380px);
  max-width: 100vw;
  background: #fff;
  border-left: 3px solid var(--nm-gold);
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  box-shadow: -10px 0 32px rgba(0, 0, 0, .16);
  font-family: inherit;
}

.offcanvas.nmb-offcanvas-xl .offcanvas-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, var(--nm-primary) 0%, #0f2640 100%);
  color: #fff;
  border-top-left-radius: 16px;
  border-bottom: none !important;
}

.offcanvas.nmb-offcanvas-xl .offcanvas-title {
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 1px;
}

.offcanvas.nmb-offcanvas-xl .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: .9;
  background-size: 1em;
  padding: .5rem;
  transition: opacity .15s ease, transform .15s ease;
}

.offcanvas.nmb-offcanvas-xl .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.offcanvas.nmb-offcanvas-xl .offcanvas-body {
  padding: 0;
  background: linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
}

/* Offcanvas 内一级导航项 */
.offcanvas.nmb-offcanvas-xl .nmb-nav .nmb-nav-link {
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  padding: .85rem 1.1rem;
  transition: background .15s ease, color .15s ease;
  border-bottom: none;
}

.offcanvas.nmb-offcanvas-xl .nmb-nav .nmb-nav-link:hover {
  color: var(--nm-primary);
  background: #f9fafb;
}

.offcanvas.nmb-offcanvas-xl .nmb-nav .nmb-nav-link.active {
  color: var(--nm-primary);
  background: linear-gradient(90deg, #fff7e0 0%, #fff 100%);
  border-left: 3px solid var(--nm-gold);
  padding-left: calc(1.1rem - 3px);
  font-weight: 600;
}

.offcanvas.nmb-offcanvas-xl .nmb-nav-item {
  border-bottom: 1px solid #f1f5f9 !important;
}

.offcanvas.nmb-offcanvas-xl .nmb-nav-item:last-child {
  border-bottom: none !important;
}

/* Offcanvas 箭头图标动画 */
.offcanvas.nmb-offcanvas-xl .nmb-submenu-caret,
.offcanvas.nmb-offcanvas-xl .nmb-submenu2-caret {
  transition: transform .2s ease, color .2s ease;
  color: #9ca3af;
}

/* Offcanvas 内展开/收起按钮（独立按钮，不影响链接跳转） */
.offcanvas.nmb-offcanvas-xl .nmb-submenu-toggle {
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: background .15s ease;
  border-radius: 6px;
}

.offcanvas.nmb-offcanvas-xl .nmb-submenu-toggle:hover {
  background: rgba(184, 134, 11, .08);
}

.offcanvas.nmb-offcanvas-xl .nmb-nav-link:hover .nmb-submenu-caret {
  color: var(--nm-gold);
}

/* Offcanvas 内一级下拉默认隐藏 */
.offcanvas.nmb-offcanvas-xl .nmb-dropdown {
  display: none;
}

/* Offcanvas 内二级下拉默认隐藏 */
.offcanvas.nmb-offcanvas-xl .submenu {
  display: none;
}

/* Offcanvas 一级下拉项：hover 金色左侧线 */
.offcanvas.nmb-offcanvas-xl .nmb-dropitem-sub a:hover,
.offcanvas.nmb-offcanvas-xl .nmb-dropitem-sub>a:hover {
  background: #fffbeb !important;
  color: var(--nm-gold) !important;
  border-radius: 6px;
}

.offcanvas.nmb-offcanvas-xl .nmb-dropitem-sub:last-child {
  border-bottom: none !important;
}

/* Offcanvas 底部搜索框背景 */
.offcanvas.nmb-offcanvas-xl .offcanvas-body>div:last-child {
  background: #f9fafb;
}

/* 移动端 offcanvas 内的 nmb-search-input 强制宽度 100% */
.offcanvas.nmb-offcanvas-xl .nmb-search-input {
  width: 100% !important;
}

/* 移动端 offcanvas 背景遮罩默认是 BS 的 .offcanvas-backdrop，不用自定义 */
.offcanvas-backdrop.show {
  opacity: .55;
}

/* ========== 分类条（当前一级+二级）：顶部"当前位置"提示 ========== */
.nmb-cats-current {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .4rem 1.1rem .9rem 1.1rem;
  font-size: 13px;
  color: #6b7280;
}

.nmb-cats-current .nmb-cats-current-l1 {
  color: var(--nm-primary);
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 6px;
  background: #eef2f7;
}

.nmb-cats-current .arrow {
  color: var(--nm-gold);
}

.nmb-cats-current .nmb-cats-current-l2 {
  color: var(--nm-gold);
  font-weight: 600;
}