/* 顶栏与全局布局（固定文件名，避免仅更新 js 时样式丢失） */
body {
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
}

#app {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  min-height: 100vh;
}

.app-header {
  background-color: #bf0001 !important;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  min-height: 56px;
  height: auto !important;
  line-height: 56px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  z-index: 100;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.brand {
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  margin-right: 24px;
  flex-shrink: 0;
}

.nav-tabs {
  border: none !important;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  overflow: visible;
}

.nav-tabs.el-menu--horizontal {
  flex-wrap: wrap;
  overflow: visible;
}

.nav-tabs.el-menu--horizontal > .el-menu-item {
  border-bottom: none !important;
  height: 56px;
  line-height: 56px;
  font-weight: bold;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.nav-tabs.el-menu--horizontal > .el-menu-item.is-active {
  border-bottom: 3px solid #fff !important;
  color: #fff !important;
}

.app-header .nav-tabs.el-menu--horizontal,
.app-header .nav-tabs.el-menu--horizontal .el-menu-item {
  background-color: transparent !important;
}

.app-header .nav-tabs.el-menu--horizontal .el-menu-item {
  color: rgba(255, 255, 255, 0.92) !important;
}

.app-header .nav-tabs.el-menu--horizontal .el-menu-item:hover,
.app-header .nav-tabs.el-menu--horizontal .el-menu-item:focus {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

.app-header .nav-tabs.el-menu--horizontal .el-menu-item.is-active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.welcome {
  color: white;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.logout-btn {
  color: white !important;
  font-weight: bold;
}

.app-header.el-header {
  height: auto !important;
  min-height: 56px;
  line-height: normal;
  align-items: center;
}

.el-main {
  padding: 0 !important;
  min-height: calc(100vh - 60px);
}

.no-padding {
  padding: 0 !important;
}
