/* ==========================================================================
 * b71 · v182  导航分组下拉（配套 js/v155-b71.js）
 * 只作用于被 b71 整理过的导航容器（.b71-nav），不碰其他菜单。
 * ========================================================================== */

.b71-nav { flex-wrap: nowrap; }

.b71-g { position: relative; display: inline-flex; align-items: center; }

/* 分组触发器：与周边链接同字重、同色，不做成"按钮"，避免视觉噪音 */
.b71-g > .b71-t {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
  position: relative;
  transition: background .15s, color .15s;
}
.b71-g > .b71-t:hover { background: rgba(15, 124, 114, .09); color: #0e7c72; }
.b71-g.open > .b71-t { background: rgba(15, 124, 114, .12); color: #0e7c72; }
.b71-g > .b71-t > svg { opacity: .75; flex: none; }
.b71-g > .b71-t > .b71-c {
  font-style: normal;
  font-size: 9px;
  opacity: .55;
  transform: translateY(1px);
  transition: transform .15s;
}
.b71-g.open > .b71-t > .b71-c { transform: rotate(180deg) translateY(-1px); }

/* 当前页所在组的小圆点 */
.b71-g > .b71-t > .b71-dot {
  display: none;
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #0e7c72;
}
.b71-g.has-on > .b71-t > .b71-dot { display: block; }

/* 面板 */
.b71-m {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 208px;
  padding: 6px;
  z-index: 1200;
  background: #fff;
  border: 1px solid #e3e9ef;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 32, 46, .14), 0 2px 6px rgba(15, 32, 46, .06);
}
.b71-g.open > .b71-m { display: block; }

.b71-m > a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.8px;
  color: #24323d;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.35;
}
.b71-m > a:hover { background: #f2f8f7; color: #0e7c72; }
.b71-m > a.on { background: #eaf6f4; color: #0e7c72; font-weight: 600; }
.b71-m > a > svg { flex: none; opacity: .7; }
.b71-m > a.on > svg { opacity: 1; }

/* 窄屏：面板改成贴边全宽，避免超出视口 */
@media (max-width: 760px) {
  .b71-m { position: fixed; left: 8px; right: 8px; top: auto; margin-top: 4px; min-width: 0; }
  .b71-g > .b71-t { padding: 7px 7px; font-size: 12.5px; }
}

/* 暗色 */
html.dark .b71-m { background: #16202a; border-color: #24313d; box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
html.dark .b71-m > a { color: #d6e2ea; }
html.dark .b71-m > a:hover { background: rgba(20, 150, 138, .16); color: #7fd0c6; }
html.dark .b71-m > a.on { background: rgba(20, 150, 138, .2); color: #8fd8cf; }
html.dark .b71-g > .b71-t:hover { background: rgba(20, 150, 138, .16); color: #8fd8cf; }
html.dark .b71-g.open > .b71-t { background: rgba(20, 150, 138, .22); color: #8fd8cf; }
html.dark .b71-g > .b71-t > .b71-dot { background: #4fc3b5; }
