/* 入职通 · 平台统一外壳样式（与 shell.js 配套）
 * 只负责顶部统一导航条的观感与各页布局补偿，不侵入页面内部样式。 */
#rtShellBar {
  position: fixed; top: 0; left: 0; right: 0; height: 42px; z-index: 9999;
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
  background: #fff; border-bottom: 1px solid #e8ebf0;
  box-shadow: 0 1px 4px rgba(31, 39, 51, .06);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 13px; color: #1f2733;
}
#rtShellBar .rt-logo {
  font-weight: 800; font-size: 16px; color: #e34d4d; text-decoration: none;
  display: flex; align-items: baseline; gap: 5px; flex: none;
}
#rtShellBar .rt-logo span {
  font-size: 9px; letter-spacing: 1.5px; color: #6b7686; font-weight: 600;
}
#rtShellBar .rt-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#rtShellBar .rt-sp { flex: 1; }
#rtShellBar a.rt-nav {
  color: #6b7686; text-decoration: none; padding: 5px 11px; border-radius: 6px;
  white-space: nowrap; transition: background .15s, color .15s; font-size: 13px;
}
#rtShellBar a.rt-nav:hover { background: #f4f6f9; color: #1f2733; }
#rtShellBar a.rt-nav.on { background: rgba(227, 77, 77, .1); color: #e34d4d; font-weight: 600; }
/* 主按钮态导航（游客的「企业登录」）：与页面主色一致的实心按钮 */
#rtShellBar a.rt-nav-p {
  background: #e34d4d; color: #fff; font-weight: 600;
  padding: 5px 13px; border-radius: 6px;
}
#rtShellBar a.rt-nav-p:hover { background: #d13c3c; color: #fff; }
#rtShellBar .rt-user {
  color: #6b7686; font-size: 12px; margin-right: 4px; white-space: nowrap;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}
/* ===== 合并第二步：收敛各页自带的重复顶部导航 =====
 * 声明了 data-rt-shell="hide-own-header" 的页面（/app、/campus），
 * 其自带 header 与统一外壳功能完全重复（logo + 导航 + 登录/设置/退出），
 * 全部交由外壳提供，这里直接隐藏，杜绝「两套导航 + 两个退出按钮」。
 * 注意：只隐藏 body 直接子级的 header，不影响页面内部其它 header 结构。 */
body[data-rt-shell~="hide-own-header"] > header:not(#rtShellBar) { display: none !important; }

/* 窄屏：隐藏「首页」与非当前项之外的文字，保留图标入口 */
@media (max-width: 620px) {
  #rtShellBar { padding: 0 10px; gap: 6px; }
  #rtShellBar .rt-logo span { display: none; }
  #rtShellBar a.rt-nav { padding: 5px 7px; font-size: 12px; }
  #rtShellBar .rt-user { max-width: 96px; font-size: 11px; }
}
