/* 右下角跨系统浮动胶囊
   ---------------------------------------------------------------
   早先是页面底部一整块「其他系统入口」卡片网格，7~8 个卡片铺满一行、
   高 60 多像素，滚到页面底部就挡内容。现在改成右下角一颗胶囊：
   一排小图标 + 折叠按钮，默认只占 40px 高，随时可收。
   未部署的系统灰显不可点，点一下给一句说明，不再是死链。 */

.bugu-dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;  /* 必须在弹窗(100)/抽屉(220)之下，否则会压在确认框和抽屉底部按钮上 */
  display: flex; align-items: center; gap: 2px;
  padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border: 1px solid rgba(15, 33, 70, .08);
  box-shadow: 0 6px 20px rgba(15, 33, 70, .14);
  transition: box-shadow .18s, transform .18s;
}
.bugu-dock:hover { box-shadow: 0 10px 28px rgba(15, 33, 70, .2); }
.bugu-dock * { box-sizing: border-box; }

.bd-i {
  display: flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #334155;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: none; background: none; font-family: inherit;
  transition: background .14s, color .14s;
}
.bd-i:hover { background: rgba(37, 99, 235, .08); color: var(--primary); }
.bd-i .bd-ic { font-size: 14px; line-height: 1; }
.bd-i .lb { line-height: 1; }

/* 当前所在系统：深色药丸，点了不再跳转 */
.bd-i.on { background: #12213f; color: #fff; cursor: default; }
.bd-i.on:hover { background: #12213f; color: #fff; }

/* 未部署 / 不可直达：灰显，不跳转 */
.bd-i.off { color: #c2c9d6; cursor: not-allowed; }
.bd-i.off:hover { background: rgba(15, 33, 70, .04); color: #aab3c2; }

.bd-sep { width: 1px; height: 16px; background: rgba(15, 33, 70, .1); margin: 0 3px; }

.bd-fold { width: 26px; padding: 0; justify-content: center; color: #64748b; font-size: 13px; }
.bd-fold:hover { background: rgba(15, 33, 70, .06); }

/* 折叠态：只留图标 */
.bugu-dock.fold .bd-i:not(.bd-fold) { padding: 0 8px; }
.bugu-dock.fold .bd-i .lb { display: none; }
.bugu-dock.fold .bd-sep { display: none; }

@media (max-width: 820px) {
  .bugu-dock { right: 10px; bottom: 10px; }
  .bd-i .lb { display: none; }
  .bd-i { padding: 0 8px; }
}

/* 手机端：侧栏展开时（z-index 50）胶囊必须沉到侧栏之下，
   否则它正好压在左下角的账号区（头像 / 姓名 / 角色）上，把身份信息挡住 */
@media (max-width: 720px) {
  .bugu-dock { z-index: 40; }
}
