/* BBN 手机端导航抽屉（≤767px）—— v2 2026-09-17
   v2：mega 面板规则加特异性（.bbn-nav + :is(.bbn-fabric-mega,.bbn-industry-mega)）
   以压过 body 内联 parity CSS 的同名 !important 规则。≥768px 零影响。 */

@media (max-width: 767px) {

  /* ---- 抽屉列表容器 ---- */
  html body .bbn-global-header .bbn-nav .bbn-nav-list {
    padding: 2px 14px 20px;
  }

  /* ---- 顶层项：分隔线 + 50px 点击目标 ---- */
  html body .bbn-global-header .bbn-nav .bbn-nav-list > .bbn-nav-item {
    border-bottom: 1px solid #e8edf2;
  }
  html body .bbn-global-header .bbn-nav .bbn-nav-list > .bbn-nav-item:last-child {
    border-bottom: 0;
  }
  html body .bbn-global-header .bbn-nav .bbn-nav-list > .bbn-nav-item > .bbn-nav-link-row {
    min-height: 50px;
    padding: 0 4px;
  }
  html body .bbn-global-header .bbn-nav .bbn-nav-list > .bbn-nav-item > .bbn-nav-link-row > a {
    flex: 1 1 auto;
    font-size: 16.5px;
    font-weight: 650;
    color: #0b1d30;
    text-decoration: none;
    padding: 13px 0;
  }

  /* ---- 展开箭头：44px 命中区保底 ---- */
  html body .bbn-global-header .bbn-nav .bbn-sub-toggle {
    min-width: 44px;
    min-height: 44px;
    color: #5a6c80;
  }

  /* ---- 普通子菜单（ul.bbn-submenu-depth-1）：浅底圆角卡 + 46px 子行 ---- */
  html body .bbn-global-header .bbn-nav ul.bbn-submenu {
    background: #f7fafc;
    border-radius: 12px;
    margin: 8px 0 12px;
    padding: 6px 12px 10px;
  }
  html body .bbn-global-header .bbn-nav ul.bbn-submenu li > .bbn-nav-link-row {
    min-height: 46px;
    border-bottom: 1px solid #edf1f5;
  }
  html body .bbn-global-header .bbn-nav ul.bbn-submenu li:last-child > .bbn-nav-link-row {
    border-bottom: 0;
  }
  html body .bbn-global-header .bbn-nav ul.bbn-submenu a {
    font-size: 15px;
    color: #33455c;
    text-decoration: none;
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  /* ==== mega 面板（Fabric / Industry）====
     特异性 (0,5,2)+!important，压过内联 parity 的 (0,4,2)+!important fixed 面板规则 */
  html body .bbn-global-header .bbn-nav .bbn-nav-item > .bbn-submenu:is(.bbn-fabric-mega, .bbn-industry-mega) {
    background: #f7fafc !important;
    border-radius: 12px !important;
    margin: 8px 0 12px !important;
    padding: 6px 12px 10px !important;
  }

  /* mega 分组标题：保留 parity 的 14px/700/uppercase，只调间距 */
  html body .bbn-global-header .bbn-nav .bbn-submenu:is(.bbn-fabric-mega, .bbn-industry-mega) section > h3 {
    margin: 12px 0 0 !important;
  }
  html body .bbn-global-header .bbn-nav .bbn-submenu:is(.bbn-fabric-mega, .bbn-industry-mega) section:first-child > h3 {
    margin-top: 6px !important;
  }

  /* mega 链接行：44px 点击目标 + 分隔线 */
  html body .bbn-global-header .bbn-nav .bbn-submenu:is(.bbn-fabric-mega, .bbn-industry-mega) section > a {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    font-size: 14.5px !important;
    color: #2e4157 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    text-decoration: none !important;
  }
  html body .bbn-global-header .bbn-nav .bbn-submenu:is(.bbn-fabric-mega, .bbn-industry-mega) section > a:last-of-type {
    border-bottom: 0 !important;
  }

  /* 认证徽章墙：手机抽屉收起（覆盖 parity 的 display:flex!important） */
  html body .bbn-global-header .bbn-nav .bbn-submenu:is(.bbn-fabric-mega, .bbn-industry-mega) .bbn-menu-marks {
    display: none !important;
  }
  html body .bbn-global-header .bbn-nav .bbn-submenu:is(.bbn-fabric-mega, .bbn-industry-mega) .bbn-menu-mark {
    display: none !important;
  }
}
