/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
}

/* 应用容器 */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* 顶部区域 */
.header {
  height: 60px;
  background-color: #0b3277;
  border-bottom: 1px solid #eaecef;
  /* display: flex; */
  align-items: center;
  justify-content: space-between;
  padding: 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.logo {
  /* display: flex; */
  /* align-items: center; */
    width: 300px;
    height: 59px;
    /* background-color: #1890ff; */
    margin-left: 17%;
    float: left;
}

.logo img {
  margin: 10px 0 0 15px;
  float: left;
  width: 45%;
}
.logo .fgx {
  width: 1px;
  height: 39px;
  background-color: #576fa1;
  float: left;
  margin: 10px;
}

.logo h5 {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  float: left;
  margin: 14px 0 0 0;
}

.header-links {
  float: left;
  width: 400px;
  height: 60px;
  /* background-color: #f5a; */
  display: flex;
  justify-content: space-between;
  width: 25%;
  margin-left: 50px;
}

.header-link {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.2s;
  text-align: center;
  line-height: 60px;
}

.header-link:hover {
  color: #1890ff;
}


/* 主内容区域 */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* 侧边栏 */
.sidebar {
  width: 240px;
  /* background-color: #fff; */
  background-color: #0b3277;
  border-right: 1px solid #eaecef;
  overflow-y: auto;
  height: calc(100vh - 60px);
  transition: width 0.3s;
}

.sidebar-nav {
  padding: 20px 0;
}

.nav-tree {
  list-style: none;
}

.nav-item {
  margin-bottom: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  /* color: #333; */
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
}

/* 不同层级导航缩进 */
.level-1 .nav-link {
  padding-left: 20px;
  font-weight: 500;
}

.level-2 .nav-link {
  padding-left: 35px;
}

.level-3 .nav-link {
  padding-left: 50px;
}

.level-4 .nav-link {
  padding-left: 65px;
  color: #fff;
}

/* 导航图标样式 */
.nav-icon {
  margin-right: 8px;
  font-size: 12px;
  transition: transform 0.2s;
}

/*  hover效果 */
.nav-link:hover {
  background-color: #477edc;
  /* color: #1890ff; */
}

/* 四级导航特殊hover效果 */
.level-4 .nav-link:hover {
  /* background-color: #f5fafe;
  color: #1890ff; */
}

.nav-item.level-4.active{
  background-color: #2b64c6;
}
.nav-item.level-4.active .nav-link {
    color: white !important; /* 白色文字 */
}

.nav-item.level-4.active .nav-link .nav-icon {
    color: white !important; /* 确保图标也是白色 */
}




/* 子菜单样式 */
.nav-sub {
  list-style: none;
}

.hidden {
  display: none;
}

/* 右侧内容区 */
.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f5f7fa;
}

.default-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 18px;
  color: #999;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  min-height: calc(100% - 40px);
}

.content-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaecef;
}

.content-body {
  min-height: 300px;
  /* 预留内容区域 */
}

/* 响应式适配 */
@media (max-width: 768px) {
  .sidebar {
    width: 0;
    overflow: hidden;
  }
  
  .sidebar.open {
    width: 240px;
  }
}
/* 新增内容专用样式 */
.form-select, .form-control {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 14px;
  margin-left: 10px;
}

.param-group {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.param-group h4 {
  margin-bottom: 15px;
  color: #2d3748;
  font-size: 16px;
}

.param-item {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.param-item label {
  width: 120px;
  text-align: right;
  color: #4a5568;
}

.btn-save, .btn-import, .btn-export {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-save {
  background-color: #4299e1;
  color: #fff;
}

.btn-save:hover {
  background-color: #3182ce;
}

.btn-import {
  background-color: #48bb78;
  color: #fff;
  margin-right: 10px;
}

.btn-import:hover {
  background-color: #38a169;
}

.btn-export {
  background-color: #9f7aea;
  color: #fff;
}

.btn-export:hover {
  background-color: #805ad5;
}

.info-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  max-width: 600px;
}

.info-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.avatar {
  border-radius: 50%;
  margin-right: 20px;
}

.info-header-right h3 {
  font-size: 18px;
  color: #2d3748;
  margin-bottom: 5px;
}

.info-header-right p {
  color: #718096;
  font-size: 14px;
}

.info-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-group {
  display: flex;
  align-items: center;
}

.info-group label {
  width: 100px;
  text-align: right;
  color: #4a5568;
  margin-right: 20px;
}

.info-group span {
  color: #2d3748;
}

.month-select {
  width: 120px;
}

.config-item {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.config-item label {
  width: 100px;
  text-align: right;
  color: #4a5568;
  margin-right: 15px;
}

.btn-handle {
  background-color: #38b2ac;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-handle:hover {
  background-color: #319795;
}

.btn-permission {
  background-color: #ed8936;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-permission:hover {
  background-color: #dd6b20;
}



/* 确保内容区不被隐藏，层级正常 */
#nav-content {
    opacity: 1 !important;
    z-index: 1 !important;
}

#nav-content.hidden {
    display: none !important;
}

#content-body {
    min-height: 300px;
    padding: 10px;
}

/* 测试按钮样式（可选） */
.test-btn {
    padding: 8px 16px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}





/* 强制内容区显示，覆盖所有冲突样式 */
#nav-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 500px !important;
}

#content-body {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 400px !important;
    padding: 20px !important;
}
/* 面包屑导航样式（只作用于右侧内容区的标题） */
.content-title {
  /* 移除可能存在的箭头图标影响 */
  background: none !important;
  padding-left: 0 !important;
}

/* 面包屑中的大于号样式（可自定义） */
.content-title span.separator {
  margin: 0 8px; /* 大于号两侧间距 */
  color: #999; /* 大于号颜色（比文字浅一点） */
  font-size: 14px;
}

/* 面包屑中的文字样式 */
.content-title span.item {
  color: #333; /* 文字颜色 */
}

/* 最后一个节点（当前页面）样式可特殊处理 */
.content-title span.item:last-child {
  color: #1890ff; /* 高亮当前页面 */
  font-weight: 500;
}