/* Hummtech 香港客户门户：SPA 侧栏滑动高亮与单组折叠。 */
html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav.bnw-hk-nav-ready {
  position: relative;
  isolation: isolate;
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav.bnw-hk-nav-ready > .boss-menu-group {
  position: relative;
  z-index: 1;
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav.bnw-hk-nav-ready .boss-menu-toggle,
html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav.bnw-hk-nav-ready .boss-subnav-link {
  position: relative;
  z-index: 2;
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav.bnw-hk-nav-ready .boss-menu-toggle.active,
html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav.bnw-hk-nav-ready .boss-subnav-link.active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .bnw-hk-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 0;
  height: 0;
  border: 1px solid rgba(75, 143, 235, .54);
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, .98), transparent 42%),
    linear-gradient(135deg, rgba(226, 241, 255, .98), rgba(246, 250, 255, .90));
  box-shadow:
    inset 3px 0 0 #2f7fe3,
    0 10px 26px rgba(44, 96, 175, .14),
    0 1px 0 rgba(255, 255, 255, .96);
  transform: translate3d(0, 0, 0);
  will-change: transform, width, height;
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .bnw-hk-nav-indicator::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -38%;
  width: 36%;
  opacity: .52;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .92), transparent);
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .bnw-hk-nav-indicator.is-visible {
  opacity: 1;
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .bnw-hk-nav-indicator.is-animated {
  transition:
    transform 420ms cubic-bezier(.22, 1.28, .36, 1),
    width 340ms cubic-bezier(.22, 1, .36, 1),
    height 340ms cubic-bezier(.22, 1, .36, 1),
    border-radius 260ms ease,
    opacity 140ms ease;
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .bnw-hk-nav-indicator.is-moving::after {
  animation: bnw-hummtech-nav-sheen 420ms ease-out both;
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .boss-menu-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  font-size: 0;
  transform: rotate(-45deg);
  transition: transform 230ms cubic-bezier(.22, 1, .36, 1);
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .boss-menu-group[data-bnw-expanded="true"] .boss-menu-caret {
  transform: rotate(45deg);
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .boss-subnav {
  box-sizing: border-box;
  overflow: hidden;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(92, 137, 204, .28);
  transform-origin: top;
  transition:
    height 280ms cubic-bezier(.22, 1, .36, 1),
    opacity 190ms ease,
    transform 260ms cubic-bezier(.22, 1, .36, 1);
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .boss-subnav-link::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(75, 143, 235, .62);
  border-radius: 999px;
  background: #f7fbff;
  transform: translateY(-50%);
}

html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .boss-menu-group.bnw-is-opening .boss-subnav-link {
  animation: bnw-hummtech-nav-child-in 260ms cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--bnw-item-index, 0) * 34ms);
}

@keyframes bnw-hummtech-nav-sheen {
  from { transform: translateX(0) skewX(-18deg); }
  to { transform: translateX(430%) skewX(-18deg); }
}

@keyframes bnw-hummtech-nav-child-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .bnw-hk-nav-indicator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .bnw-hk-nav-indicator,
  html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .boss-subnav,
  html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .boss-menu-caret,
  html[data-bnw-motion-brand="hummtech"] .merchant-sidebar-nav .boss-subnav-link {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
}

