/* ============================================================
   大厅工作台 · 公共导航样式（侧边栏 / 顶部标签 / 手机底部 Tab）
   ============================================================ */
:root{
  --nav-w: 214px;
  --nav-bg: #ffffff;
  --nav-line: #e6ebf2;
  --nav-text: #46536b;
  --nav-active-bg: #eaf1fd;
  --nav-active: #1657c4;
}

/* ---------- PC：左侧边栏 ---------- */
.dk-side{
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--nav-w);
  background: var(--nav-bg); border-right: 1px solid var(--nav-line);
  display: flex; flex-direction: column; z-index: 60;
}
.dk-side .logo{
  height: 66px; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; border-bottom: 1px solid var(--nav-line);
  text-decoration: none; color: inherit; flex: 0 0 auto;
}
.dk-side .logo i{width: 10px;height: 10px;border-radius: 3px;background: var(--nav-active);display:block}
.dk-side .logo b{font-size: 17px;font-weight: 700;letter-spacing: .5px}

.dk-side .scroll{flex: 1; overflow-y: auto; padding: 14px 10px 10px}
.dk-side .grp{
  font-size: 11.5px; color: #97a3b4; letter-spacing: 1px;
  padding: 14px 10px 8px; font-weight: 600;
}
.dk-side .grp:first-child{padding-top: 4px}

.dk-item{
  display: flex; align-items: center; gap: 11px;
  height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--nav-text); text-decoration: none; font-size: 14px;
  transition: .14s; position: relative; margin-bottom: 2px;
}
.dk-item:hover{background: #f5f8fc; color: #1b2430}
.dk-item svg{width: 18px;height: 18px;flex: 0 0 auto;opacity: .8}
.dk-item.on{background: var(--nav-active-bg); color: var(--nav-active); font-weight: 600}
.dk-item.on svg{opacity: 1}
.dk-item .dot{
  margin-left: auto; font-size: 10.5px; color: #b0bac7;
  background: #f2f5f9; padding: 1px 6px; border-radius: 100px;
}
.dk-item.on .dot{background: #dbe8fb; color: var(--nav-active)}

.dk-side .foot{
  border-top: 1px solid var(--nav-line); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
}
.dk-side .foot .av{
  width: 32px;height: 32px;border-radius: 50%; background: var(--nav-active-bg);
  color: var(--nav-active); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex: 0 0 auto;
}
.dk-side .foot .who{flex: 1; min-width: 0}
.dk-side .foot .who b{display: block; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.dk-side .foot .who span{display: block; font-size: 11.5px; color: #97a3b4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px}
.dk-side .foot .out{
  font-size: 12px; color: #97a3b4; text-decoration: none; cursor: pointer;
}
.dk-side .foot .out:hover{color: #c73434}

/* 有侧边栏时，页面内容右移 */
body.dk-has-side{padding-left: var(--nav-w)}

/* ---------- 顶部标签栏 ---------- */
.dk-tabs{
  display: flex; align-items: center; gap: 6px; overflow-x: auto;
  background: #fff; border-bottom: 1px solid var(--nav-line);
  padding: 7px 20px; scrollbar-width: none;
}
.dk-tabs::-webkit-scrollbar{display: none}
.dk-tab{
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 8px 0 12px; border-radius: 8px;
  font-size: 12.5px; color: #6b7785; background: #f4f7fb;
  text-decoration: none; white-space: nowrap; flex: 0 0 auto;
  border: 1px solid transparent; transition: .14s;
}
.dk-tab:hover{background: #eaf0f8; color: #1b2430}
.dk-tab.on{
  background: #fff; color: var(--nav-active); font-weight: 600;
  border-color: #cfe0fb; box-shadow: 0 1px 3px rgba(22,87,196,.10);
}
.dk-tab .x{
  width: 16px; height: 16px; border-radius: 4px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 14px; line-height: 1;
  color: #a8b2bf; margin-left: 2px;
}
.dk-tab .x:hover{background: #e6ebf2; color: #c73434}
.dk-tab.on .x{color: #9db6dd}

/* ---------- 手机：底部 Tab ---------- */
.dk-tabbar{
  position: fixed; left: 0; right: 0; bottom: 0; height: 58px;
  background: rgba(255,255,255,.98); backdrop-filter: blur(8px);
  border-top: 1px solid var(--nav-line); display: none; z-index: 60;
  padding-bottom: env(safe-area-inset-bottom);
}
.dk-tabbar a{
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; text-decoration: none;
  color: #97a3b4; font-size: 10.5px;
}
.dk-tabbar a svg{width: 21px;height: 21px}
.dk-tabbar a.on{color: var(--nav-active); font-weight: 600}

/* ---------- 响应式 ---------- */
@media (max-width: 900px){
  .dk-side{display: none}
  body.dk-has-side{padding-left: 0; padding-bottom: 66px}
  .dk-tabs{display: none}
  .dk-tabbar{display: flex}
}
@media (min-width: 901px){
  .dk-tabbar{display: none !important}
}

/* PC 上侧边栏已有用户信息，顶部栏右侧隐藏 */
@media (min-width: 901px){
  .dk-has-side .topbar .right{display: none}
  .dk-has-side .topbar{padding-left: 28px}
}
