/* ========== Vben Admin CSS 变量（精简版，仅用于 header 和 tabbar） ========== */
:root {
  --foreground: 224 71.4% 4.1%;
  --primary: 245 82% 67%;
  --primary-foreground: 210 20% 98%;
  --muted: 220 14.3% 95.9%;
  --muted-foreground: 220 8.9% 46.1%;
  --accent: 220 14.3% 95.9%;
  --accent-hover: 200deg 10% 90%;
  --accent-foreground: 220.9 39.3% 11%;
  --border: 220 13% 91%;
  --header: 0 0% 100%;
  --radius: 0.5rem;
  --gap: 7px;
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', 'Noto Sans', 'Helvetica Neue', Arial, sans-serif !important;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.main-section {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  min-width: 0;
  min-height: 0;
}

/* 侧边栏样式 */
.sidebar {
  flex-shrink: 0;
  width: 60px;
  display: flex;
  height: 100vh;
  overflow: hidden;
  transition: 0.3s;
}

.sidebar-header {
  width: 60px;
  height: 100%;
  background: #0086f1;
  transition: 0.3s;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  cursor: pointer;
}

.logo {
  width: 40px;
  height: 40px;
  background-image: url('/frontend/assets/img/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 8px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

/* 菜单容器样式 */
.menu-container {
  height: calc(100% - 60px);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.menu-scroll {
  flex: 1;
  overflow: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
}

.menu-scroll::-webkit-scrollbar {
  display: none;
}

.menu-list {
  list-style: none;
}

/* 配置菜单固定在底部 */
.menu-settings {
  position: relative;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  z-index: 2;
  padding-top: 2px;
}

/* 配置菜单顶部细线（聚水潭 serviceMenu::before） */
.menu-settings::before {
  content: '';
  display: block;
  width: 70%;
  height: 1px;
  background-color: rgba(0,0,0,0.1);
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
}

/* 渐变遮罩（聚水潭 menuMask） */
.menu-mask {
  position: absolute;
  top: -24px;
  left: 0;
  width: 100%;
  height: 24px;
  background: linear-gradient(180deg, transparent, #000);
  opacity: 0.15;
  pointer-events: none;
}

/* 菜单设置区域（聚水潭 menuSortWrap） */
.menu-sort-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* 分隔线（聚水潭 partingLine） */
.menu-sort-line {
  width: 42px;
  height: 1px;
  background: #0279d8;
}

/* 菜单设置按钮（聚水潭 sortTextWrap） */
.menu-sort-text {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% auto;
  background-image: url('/frontend/assets/img/menu-sort-bg.png');
}

.menu-sort-text:hover {
  background-color: #259cfc;
}

/* 菜单项样式 */
.menu-item {
  width: 60px;
  height: 54px;
  margin-bottom: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  letter-spacing: 0.05em;
  transition: 0.3s;
}

.menu-item:hover {
  background: #409eff;
}

.menu-item.active {
  background: #409eff;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.menu-icon .iconfont,
.submenu-icon .iconfont {
  font-size: 18px;
  color: inherit;
  line-height: 1;
}

.menu-icon svg {
  width: 18px;
  height: 18px;
  color: inherit;
}

.menu-text {
  font-size: 12px;
  margin-top: 2px;
}

/* 主内容区域样式 */
.main-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  transition: margin-left 0.3s;
}

/* 当子菜单显示时，调整主内容区域的左边距 */
body.submenu-open .main-content {
  margin-left: 200px;
}

/* ========== vben 顶部栏样式（原版） ========== */
.vben-header {
  height: 49px;
  background-color: hsl(var(--header));
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  z-index: 90;
  width: 100%;
  flex: 0 0 auto;
}

.vben-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.vben-header-menu {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.vben-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vben-icon-button,
.vben-toggle-sidebar-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
  transition: background-color 0.2s;
  padding: 0;
  margin: 0;
}

.vben-toggle-sidebar-btn {
  margin-right: 4px;
}

.vben-icon-button:hover,
.vben-toggle-sidebar-btn:hover {
  background-color: hsl(var(--accent-hover));
}

/* ========== 全局搜索（vben 原版） ========== */
.vben-global-search {
  margin-right: 8px;
}

.vben-search-trigger {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 30px;
  padding: 0 12px;
  border-radius: 16px;
  background-color: hsl(var(--accent));
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: hsl(var(--muted-foreground));
}

.vben-search-trigger:hover {
  background-color: hsl(var(--accent-hover));
  color: hsl(var(--foreground));
}

.vben-search-trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.vben-search-text {
  font-size: 13px;
  display: none;
}

.vben-search-shortcut {
  display: none;
}

@media (min-width: 768px) {
  .vben-search-text {
    display: block;
  }
  .vben-search-shortcut {
    display: flex;
    align-items: center;
    gap: 2px;
  }
}

.vben-search-shortcut kbd {
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1;
  background-color: hsl(var(--header));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  color: hsl(var(--foreground));
}

/* ========== 面包屑导航样式 ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: hsl(var(--muted-foreground));
  line-height: 1;
  vertical-align: middle;
}

.breadcrumb-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}

.breadcrumb-separator {
  color: hsl(var(--muted-foreground));
  line-height: 1;
  vertical-align: middle;
}


.company-name {
  font-size: 15px;
  color: #000;
  font-weight: 500;
}

/* 用户信息编辑弹窗 */
.user-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.user-edit-modal.show {
  display: flex;
}

.user-edit-dialog {
  background: #ffffff;
  border-radius: 8px;
  width: 480px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.user-edit-header {
  padding: 20px 24px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-edit-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #303133;
}

.user-edit-close {
  cursor: pointer;
  font-size: 24px;
  color: #909399;
  line-height: 1;
  transition: color 0.3s;
}

.user-edit-close:hover {
  color: #409eff;
}

.user-edit-body {
  padding: 24px;
}

.user-edit-form-item {
  margin-bottom: 20px;
}

.user-edit-form-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #606266;
  font-weight: 500;
}

.user-edit-form-item input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  color: #606266;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.user-edit-form-item input:focus {
  outline: none;
  border-color: #409eff;
}

.user-edit-form-item input:disabled {
  background-color: #f5f7fa;
  cursor: not-allowed;
}

.user-edit-footer {
  padding: 12px 24px;
  border-top: 1px solid #ebeef5;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.user-edit-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.user-edit-btn-cancel {
  background: #ffffff;
  border: 1px solid #dcdfe6;
  color: #606266;
}

.user-edit-btn-cancel:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background: #ecf5ff;
}

.user-edit-btn-save {
  background: #409eff;
  color: #ffffff;
}

.user-edit-btn-save:hover {
  background: #66b1ff;
}

.user-edit-btn-save:disabled {
  background: #a0cfff;
  cursor: not-allowed;
}

/* ========== vben 标签栏 (Chrome 风格 - 原版) ========== */
.vben-tabbar {
  height: 36px;
  background-color: hsl(var(--header));
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.vben-tabs-chrome {
  display: flex !important;
  height: 100%;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  --gap: 7px;
  padding-top: 3px;
  align-items: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vben-tabs-chrome::-webkit-scrollbar,
.tab-list::-webkit-scrollbar {
  display: none;
}

/* vben 标签项 */
.vben-tab-item,
.tab-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: -12px;
  cursor: pointer;
  user-select: none;
  z-index: 1;
  transition: z-index 0.15s;
}

.vben-tab-item.active,
.vben-tab-item.is-active,
.tab-item.active {
  z-index: 2;
}

/* 标签分隔线 */
.vben-tab-divider {
  position: absolute;
  left: var(--gap);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 17px;
  background-color: hsl(220 13% 70%);
  z-index: 0;
  transition: opacity 0.15s;
  opacity: 1;
}

.vben-tab-item:first-child .vben-tab-divider,
.tab-item:first-child .vben-tab-divider {
  display: none;
}

.vben-tab-item:hover:not(.active):not(.is-active) + .vben-tab-item .vben-tab-divider,
.vben-tab-item.active + .vben-tab-item .vben-tab-divider,
.vben-tab-item.is-active + .vben-tab-item .vben-tab-divider,
.tab-item:hover:not(.active) + .tab-item .vben-tab-divider,
.tab-item.active + .tab-item .vben-tab-divider {
  opacity: 0 !important;
}

.vben-tab-item.active .vben-tab-divider,
.vben-tab-item.is-active .vben-tab-divider,
.tab-item.active .vben-tab-divider,
.vben-tab-item:hover:not(.active):not(.is-active) .vben-tab-divider,
.tab-item:hover:not(.active) .vben-tab-divider {
  opacity: 0;
}

/* 背景层 */
.vben-tab-background {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  padding: 0 calc(var(--gap) - 1px);
  transition: opacity 0.15s;
}

.vben-tab-background-content {
  height: 100%;
  border-top-left-radius: var(--gap);
  border-top-right-radius: var(--gap);
  transition: all 0.15s;
  background-color: transparent;
}

.vben-tab-item.active .vben-tab-background-content,
.vben-tab-item.is-active .vben-tab-background-content,
.tab-item.active .vben-tab-background-content {
  background-color: hsl(var(--primary) / 15%);
}

.vben-tab-item:hover:not(.active):not(.is-active) .vben-tab-background,
.tab-item:hover:not(.active) .vben-tab-background {
  padding-bottom: 2px;
}

.vben-tab-item:hover:not(.active):not(.is-active) .vben-tab-background-content,
.tab-item:hover:not(.active) .vben-tab-background-content {
  background-color: hsl(var(--accent));
  margin: 0 2px;
  border-radius: calc(var(--radius) - 2px);
  border-top-left-radius: var(--gap);
  border-top-right-radius: var(--gap);
}

/* 下圆角 SVG */
svg.vben-tab-background-before,
svg.vben-tab-background-after {
  position: absolute;
  bottom: 0;
  height: 7px;
  width: 7px;
  fill: transparent;
  transition: all 0.15s;
}

svg.vben-tab-background-before {
  left: -1px;
}

svg.vben-tab-background-after {
  right: -1px;
}

.vben-tab-item.active svg.vben-tab-background-before,
.vben-tab-item.active svg.vben-tab-background-after,
.vben-tab-item.is-active svg.vben-tab-background-before,
.vben-tab-item.is-active svg.vben-tab-background-after,
.tab-item.active svg.vben-tab-background-before,
.tab-item.active svg.vben-tab-background-after {
  fill: hsl(var(--primary) / 15%);
}

/* 标签内容包装 */
.vben-tab-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 1px;
}

.vben-tab-content {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 calc(var(--gap) * 2);
  padding: 0 4px 0 4px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  overflow: hidden;
  z-index: 2;
  position: relative;
  transition: color 0.15s, padding 0.15s;
  color: hsl(var(--foreground));
  gap: 6px;
  line-height: 20px;
}

.vben-tab-item.active .vben-tab-content,
.vben-tab-item.is-active .vben-tab-content,
.tab-item.active .vben-tab-content {
  color: hsl(var(--primary));
  padding-right: 20px;
}

.vben-tab-item:hover .vben-tab-content,
.tab-item:hover .vben-tab-content {
  padding-right: 20px;
}

/* 标签图标 */
.vben-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.vben-tab-icon .iconfont {
  font-size: inherit;
}

/* 标签标题 */
.vben-tab-title,
.tab-title {
  font-weight: 400;
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 标签操作按钮区域 */
.vben-tab-extra {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
}

.vben-tab-item.active .vben-tab-extra,
.vben-tab-item.is-active .vben-tab-extra,
.tab-item.active .vben-tab-extra,
.vben-tab-item:hover .vben-tab-extra,
.tab-item:hover .vben-tab-extra {
  display: flex;
}

/* 关闭按钮 */
.vben-tab-close,
.tab-close {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  color: hsl(var(--foreground) / 80%);
  flex-shrink: 0;
  position: relative;
  font-size: 0;
  line-height: 0;
}

.vben-tab-close::after,
.tab-close::after {
  content: '';  /* 清空内容，改用背景图标 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23666' d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.vben-tab-close:hover,
.tab-close:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}

/* 固定图标（替换关闭按钮）- 从 vben 复制 */
.tab-close.is-pinned {
  color: hsl(var(--foreground) / 80%);
}

.tab-close.is-pinned::after {
  display: none;
}

.tab-close.is-pinned svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.tab-item.active .tab-close.is-pinned {
  color: hsl(var(--foreground));
}

.tab-close.is-pinned:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}

/* 标签栏右侧工具按钮 */
.vben-tabbar-tools {
  display: flex;
  align-items: center;
  height: 100%;
  border-left: 1px solid hsl(var(--border));
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  background-color: hsl(var(--header));
}

.vben-tabbar-tool-more,
.vben-tabbar-tool-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 32px;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
  border-left: 1px solid hsl(var(--border));
  flex-shrink: 0;
  background-color: hsl(var(--header));
}

.vben-tabbar-tool-more {
  border-left: none;
}

.vben-tabbar-tool-more:hover,
.vben-tabbar-tool-screen:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}

.vben-tabbar-tool-more svg,
.vben-tabbar-tool-screen svg {
  width: 16px;
  height: 16px;
}

/* ========== 更多标签页下拉菜单 ========== */
.vben-tab-more-dropdown {
  position: fixed;
  min-width: 180px;
  max-width: 280px;
  max-height: 400px;
  overflow-y: auto;
  background-color: hsl(var(--popover, 0 0% 100%));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 4px 12px hsl(var(--foreground) / 10%);
  z-index: 2000;
  padding: 4px;
}

.vben-tab-more-empty {
  padding: 12px 16px;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  text-align: center;
}

.vben-tab-more-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  font-size: 13px;
  color: hsl(var(--foreground));
  transition: background-color 0.15s;
}

.vben-tab-more-item:hover {
  background-color: hsl(var(--accent));
}

.vben-tab-more-item.active {
  background-color: hsl(var(--primary) / 10%);
  color: hsl(var(--primary));
}

.vben-tab-more-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vben-tab-more-close {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  line-height: 1;
  transition: all 0.15s;
  flex-shrink: 0;
}

.vben-tab-more-close:hover {
  background-color: hsl(var(--destructive) / 15%);
  color: hsl(var(--destructive));
}

/* ========== 标签右键菜单（vben 风格） ========== */
.vben-tab-context-menu {
  position: fixed;
  min-width: 160px;
  max-width: calc(100vw - 16px);
  background-color: hsl(var(--popover, 0 0% 100%));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 4px 12px hsl(var(--foreground) / 10%);
  z-index: 2000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.15s;
  color: hsl(var(--foreground));
  font-size: 13px;
  user-select: none;
}

.context-menu-item:hover:not(.is-disabled) {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.context-menu-item.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.context-menu-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: hsl(var(--foreground));
}

.context-menu-icon svg {
  width: 14px;
  height: 14px;
}

.context-menu-text {
  flex: 1;
}

.context-menu-separator {
  height: 1px;
  background-color: hsl(var(--border));
  margin: 4px 0;
}

/* ========== vben 用户下拉触发器 ========== */
.vben-user-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  color: hsl(var(--foreground));
}

.vben-user-dropdown:hover {
  background-color: hsl(var(--accent-hover));
}

.vben-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  font-size: 14px;
}

/* ========== vben 用户下拉菜单 ========== */
.vben-user-dropdown-menu {
  position: fixed;
  min-width: 240px;
  background-color: hsl(var(--popover, 0 0% 100%));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 8px 24px hsl(var(--foreground) / 20%);
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 8px;
}

.vben-user-dropdown-menu.is-open {
  display: flex !important;
}

.vben-user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.vben-user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.vben-user-info {
  flex: 1;
  min-width: 0;
}

.vben-user-name {
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 4px;
}

.vben-user-desc {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.vben-user-dropdown-separator {
  height: 1px;
  background-color: hsl(var(--border));
  margin: 4px 0;
}

.vben-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.15s;
  font-size: 14px;
  color: hsl(var(--foreground));
  margin: 0 4px;
  border-radius: calc(var(--radius) - 2px);
}

.vben-user-dropdown-item:hover {
  background-color: hsl(var(--accent));
}

.vben-user-dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========== 内容区域最大化 ========== */
.container.is-maximized {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.container.is-maximized .vben-header {
  display: none !important;
}

.container.is-maximized .main-content {
  margin-left: 0 !important;
}

.container.is-maximized .vben-tabbar {
  border-radius: 0;
}

.container.is-maximized .content-body {
  height: calc(100vh - 36px);
}

/* 内容区域样式 */
.content-body {
  flex: 1;
  overflow: hidden;
  background: #f5f7fa;
  position: relative;
}

.tab-content {
  display: none;
  width: 100%;
  height: 100%;
}

.tab-content.active {
  display: block;
}

.page-content {
  padding: 20px;
  height: 100%;
}

/* iframe样式 */
.page-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* 子菜单样式 */
.submenu {
  position: fixed;
  left: 64px;
  top: 0;
  width: 200px;
  max-height: 100vh;
  background: #ffffff;
  border-right: 1px solid #ebeef5;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

.submenu.active {
  display: block;
}

.submenu-content {
  padding: 20px 0;
}

.submenu-list {
  list-style: none;
}

.submenu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  color: #606266;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.submenu-item:hover {
  background: #f5f7fa;
  color: #409eff;
}

.submenu-item.active {
  background: #ecf5ff;
  color: #409eff;
  border-left-color: #409eff;
}

.submenu-icon {
  margin-right: 12px;
  font-size: 16px;
  color: inherit;
  display: flex;
  align-items: center;
  min-width: 16px;
}

.submenu-text {
  font-size: 14px;
  color: inherit;
}

/* 有子菜单的主菜单项样式 */
.menu-item.has-submenu {
  position: relative;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .logo {
    width: 28px;
  }
  
  .submenu {
    left: 60px;
    width: 180px;
  }
  
  .page-content {
    padding: 15px;
  }
}

/* ========== 锁屏界面（vben 风格） ========== */
.vben-lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.vben-lock-screen.is-active {
  display: flex;
}

.vben-lock-screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsl(var(--background));
  opacity: 0.95;
  backdrop-filter: blur(10px);
}

.vben-lock-screen-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px;
  text-align: center;
}

.vben-lock-screen-time {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}

.vben-lock-screen-time-hour,
.vben-lock-screen-time-minute {
  min-width: 80px;
  text-align: right;
}

.vben-lock-screen-time-separator {
  animation: vben-lock-blink 1s infinite;
  opacity: 1;
}

@keyframes vben-lock-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.3;
  }
}

.vben-lock-screen-date {
  font-size: 18px;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

.vben-lock-screen-user {
  font-size: 16px;
  color: hsl(var(--foreground));
  font-weight: 500;
  margin-top: 8px;
}

.vben-lock-screen-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  max-width: 400px;
}

.vben-lock-screen-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--input-background, 0 0% 100%));
  color: hsl(var(--foreground));
  outline: none;
  transition: all 0.2s;
}

.vben-lock-screen-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 20%);
}

.vben-lock-screen-input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* 密码遮罩：用 text 类型输入框模拟密码框，防止浏览器密码管理器弹出 */
.vben-password-mask {
  -webkit-text-security: disc;
  text-security: disc;
}

.vben-lock-screen-button {
  height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: calc(var(--radius) - 2px);
  border: none;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.vben-lock-screen-button:hover {
  background-color: hsl(var(--primary) / 90%);
}

.vben-lock-screen-button svg {
  width: 16px;
  height: 16px;
}

/* ========== 搜索模态框（vben 原版） ========== */
.vben-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.vben-search-modal.is-open {
  display: flex;
}

.vben-search-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--foreground) / 50%);
  backdrop-filter: blur(4px);
}

.vben-search-modal-content {
  position: relative;
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.vben-search-modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.vben-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vben-search-input-wrapper svg {
  width: 16px;
  height: 16px;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.vben-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #1f2937;
  padding: 4px 0;
}

.vben-search-input::placeholder {
  color: #9ca3af;
}

.vben-search-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  min-height: 200px;
  max-height: 400px;
  background-color: #ffffff;
}

.vben-search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #6b7280;
  font-size: 14px;
}

.vben-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 4px;
}

.vben-search-item:hover {
  background-color: hsl(var(--accent));
}

.vben-search-item.is-active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.vben-search-item-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.vben-search-item-path {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.vben-search-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.vben-search-shortcuts {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
}

.vben-search-shortcuts kbd {
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #1f2937;
  margin: 0 2px;
}
