/* 统一左侧栏固定式设计 */
#admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: linear-gradient(180deg, #1a237e 0%, #283593 100%);
  color: #fff;
  z-index: 99999;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#admin-sidebar .sidebar-logo {
  padding: 18px 16px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
}
#admin-sidebar .sidebar-logo span { color: #ffd54f; }
#admin-sidebar .sidebar-section {
  padding: 8px 12px 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}
#admin-sidebar .sidebar-item {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
#admin-sidebar .sidebar-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-left-color: #ffd54f;
}
#admin-sidebar .sidebar-item.active {
  background: rgba(255,255,255,0.15);
  color: #ffd54f;
  border-left-color: #ffd54f;
}
#admin-sidebar .sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
}
body.sidebar-active {
  margin-left: 220px !important;
}
/* 响应式 */
@media (max-width: 768px) {
  #admin-sidebar { width: 60px; }
  #admin-sidebar .sidebar-item span, #admin-sidebar .sidebar-section, #admin-sidebar .sidebar-footer { display: none; }
  body.sidebar-active { margin-left: 60px !important; }
}

/* v3.1 可折叠菜单样式 */
.sidebar-group-header {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: background 0.2s;
}
.sidebar-group-header:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
}
.sidebar-group-arrow {
  font-size: 9px;
  width: 12px;
}
.sidebar-group-title {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-badge {
  background: #ffd54f;
  color: #1a237e;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: bold;
}
.sidebar-group-items {
  padding-bottom: 4px;
}

/* v3.3 隐藏页面内重复导航，统一用左侧栏 */
body.sidebar-active .top-nav,
body.sidebar-active .header-nav,
body.sidebar-active .main-header,
body.sidebar-active .nav-bar,
body.sidebar-active .navbar {
  display: none !important;
}
body.sidebar-active {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* v3.3.1 针对性隐藏admin-super等页面的重复顶部导航 */
body.sidebar-active .el-header,
body.sidebar-active .ant-header,
body.sidebar-active .topbar,
body.sidebar-active .site-header,
body.sidebar-active .page-header,
body.sidebar-active .app-header,
body.sidebar-active .layout-header,
body.sidebar-active .admin-header,
body.sidebar-active .main-nav,
body.sidebar-active .site-nav,
body.sidebar-active .admin-nav {
  display: none !important;
}

/* v3.3.2 隐藏admin-super等页面的sb导航 */
body.sidebar-active .sb-nav,
body.sidebar-active .sb-header,
body.sidebar-active #main-nav,
body.sidebar-active #quick-nav-panel,
body.sidebar-active .related-nav-section {
  display: none !important;
}
body.sidebar-active .header {
  display: none !important;
}

/* v5.0 子分组样式 */
.sidebar-subgroup { margin-bottom: 8px; }
.sidebar-subgroup-title { padding: 6px 20px 4px; font-size: 11px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid rgba(255,255,255,0.05); margin: 0 12px 4px; }
.sidebar-subgroup .sidebar-item { padding-left: 32px; font-size: 13px; }

/* v5.0.1 修复footer位置 */
#admin-sidebar .sidebar-footer {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 12px 16px !important;
  background: rgba(0,0,0,0.3) !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  font-size: 11px !important;
  color: rgba(255,255,255,0.5) !important;
  line-height: 1.5 !important;
}
#admin-sidebar {
  padding-bottom: 60px !important;
}
