/* ===== 移动端导航抽屉(AI企业管家 2026-09-04) =====
   ≤860px: 侧栏收纳为抽屉(点左上角 ☰ 展开), 图标+文字完整显示, 点菜单项自动收起
   覆盖 style.css 900px 断点的"纯图标窄栏"表现 */
.menu-btn {
  display: none;
  flex: none;
  width: 34px; height: 34px;
  margin-right: 6px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border, #dcded9); border-radius: 8px;
  color: var(--text, #333); font-size: 17px; line-height: 1; cursor: pointer;
}
.menu-btn:hover { background: var(--surface-2, #f0f2f5); }
@media (max-width: 860px) {
  .layout { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 250px; max-width: 82vw;
    z-index: 200; transform: translateX(-104%);
    transition: transform .22s ease, box-shadow .22s ease;
    box-shadow: none; overflow-y: auto;
  }
  body.m-nav .sidebar { transform: translateX(0); box-shadow: 0 0 26px rgba(0, 0, 0, .30); }
  .main { width: 100%; min-width: 0; min-height: 100vh; }
  .topbar { padding-left: 8px; }
  .topbar .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu-btn { display: inline-flex; }
  .m-backdrop { position: fixed; inset: 0; background: rgba(10, 16, 29, .42); z-index: 190; }
  .content { padding: 12px; }
  /* 抽屉内恢复完整文字(覆盖 ≤900px 图标窄栏) */
  .sidebar .logo { display: flex; align-items: center; gap: 9px; padding: 16px 14px 12px; font-size: 15px; text-align: left; }
  .sidebar .brand-logo { width: 30px; height: 30px; }
  .sidebar .logo small { display: inline; }
  .sidebar .nav { flex: 1; overflow-y: auto; padding-bottom: 10px; }
  .nav-group { display: block !important; padding: 12px 16px 3px; font-size: 11px; letter-spacing: .06em; }
  .nav-item { justify-content: flex-start; padding: 10px 16px; font-size: 14px; gap: 11px; border-radius: 0; }
  .nav-item .ico { width: 20px; font-size: 16px; text-align: center; flex: none; }
  .nav-item .ico svg { width: 18px; height: 18px; }
  .side-foot { font-size: 12px; padding: 12px 16px; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .side-foot .uname { font-size: 12px; }
  .side-foot .btn { white-space: nowrap; }
}
