/* 顶部导航信息架构 v4：产品功能面板扩为 4 组 4 列（2026-10 对齐客户端 25 项一级导航），
   新增 core-13~17 线性图标（源自客户端 Icons.tsx 的 16px/1.5 描边规范）与「能力来源」图例；
   资源面板仍为 3 组 3 列 */
@media (min-width: 1024px) {
  header .func-list-box {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: calc(100% - 80px);
    max-width: 1160px;
    gap: 0 24px;
  }
  header .resources-list-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 80px);
    max-width: 948px;
    gap: 0 24px;
  }
  header .func-category-items,
  header .resources-category-items {
    gap: 4px;
  }
  header .func-category-items .list-item,
  header .resources-category-items .list-item {
    min-height: 64px;
  }
}

/* 顶层导航 6 项：中等宽度下收紧外边距与内边距，避免与 logo / 登录区相撞 */
@media (min-width: 1024px) and (max-width: 1199px) {
  header .header-nav > li {
    margin: 0 4px;
  }
  header .header-nav > li > a {
    padding: 0 6px;
    font-size: 15px;
  }
}

/* core-12 原先只在首页内联引用，这里补成通用类 */
header .core-12 {
  background-image: url("https://browser-cdn.unb.ink/images/header/core/core-12.webp");
}

/* 2026-10 新增图标：AI Agent、扩展商店、身份体检、账户中心、运营看板 */
header .core-13 {
  background-image: url("https://browser-cdn.unb.ink/images/header/core/core-13.svg");
}
header .core-14 {
  background-image: url("https://browser-cdn.unb.ink/images/header/core/core-14.svg");
}
header .core-15 {
  background-image: url("https://browser-cdn.unb.ink/images/header/core/core-15.svg");
}
header .core-16 {
  background-image: url("https://browser-cdn.unb.ink/images/header/core/core-16.svg");
}
header .core-17 {
  background-image: url("https://browser-cdn.unb.ink/images/header/core/core-17.svg");
}

/* 产品功能面板底部「能力来源」图例：说明文档页逐项标注了 本地 / 云端 / 私有化 */
header .func-source-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed #e4eaf5;
  font-size: 12px;
  line-height: 18px;
  color: #75859f;
}
header .func-source-legend > b {
  font-weight: 500;
  color: #1b2c50;
}
header .func-source-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
header .func-source-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
}
header .func-source-legend .d-local {
  background: #17a06a;
}
header .func-source-legend .d-cloud {
  background: #2254f5;
}
header .func-source-legend .d-deploy {
  background: #d08a12;
}
header .func-source-legend > em {
  font-style: normal;
  color: #9aa8bf;
}

/* 移动端三级分组：header.css 的 display:none 特异性高于 dropdown-unb2 的 .is-open 规则，
需提权覆盖 */
header .mobile-header-nav .mobile-nav-item .mobile-nav-sub > li.mobile-nav-group.is-open > .mobile-nav-group-items {
  display: block;
}
