* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

/* 左侧菜单样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: #333333;
    color: #f7f7f7d0;
    display: flex;
    flex-direction: column;
    transition: left .2s linear;
    z-index: 9999 !important;
}

.sidebar.collapsed {
    left: -240px;
}

/* Logo区域 */
.logo-area {
    height: 63px;
    /* padding: 15px 20px; */
    border-bottom: 1px solid #333333;
    background: #333333;
    cursor: pointer;
}

.logo {
    height: 63px;
    width: 179px;
    margin-left: 12px;
    margin-top: 5px;
}

/* 菜单滚动区域 */
.menu-scroll {
    flex: 1;
    /* overflow-y: auto; */
    padding: 15px 0;
}

.menu-item {
    position: relative;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item:hover {
    background: #48494a;
}

.menu-item-active {
    background: #48494a;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.submenu {
    display: none;
    position: absolute;
    left: 101%;
    top: 0;
    width: 420px;
    background: #333333;
    list-style: none;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 99999999 !important;
}

.chart-center {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.chart-main-item{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chart-item-wrapper {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
}
.chart-child-item {
    font-size: 14px;
}
.chart-child-item:hover {
    color: yellow;
}

.has-submenu:hover .submenu {
    display: block;
}

/* 右侧内容区域 */
.main-content {
    margin-left: 240px;
    padding-top: 90px;
    transition: margin-left .2s linear;
}

.main-content.expanded {
    margin-left: 0;
}

/* 顶部导航栏 */
.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 240px;
    height: 60px; /* 原高度80px */
    padding: 0 25px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding-left: 20px; /* 增加左侧内边距 */
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left .2s linear;
}

.secondbar {
    position: fixed;
    top: 60px;
    right: 0;
    left: 240px;
    height: 30px; /* 原高度80px */
    background: #ffffff;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left .2s linear;
}

.thirdbar {
    position: fixed;
    top: 90px;
    right: 0;
    left: 240px;
    height: 30px; /* 原高度80px */
    background: #c3e0ef;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left .2s linear;
    border: 1px solid #a9e3e9;
}

.second-menu-item {
    height: 100%;
    padding: 0 20px;
    text-align: center;
    align-items: center;
    align-content: center;
    border-right: 1px solid #c7c1c1;
    font-size: 14px;
    cursor: pointer;
}
.third-menu-item {
    height: 100%;
    padding: 0 20px;
    text-align: center;
    align-items: center;
    align-content: center;
    font-size: 14px;
    cursor: pointer;
    margin-left: 5px;
    background-color: #29b3d3;
    color: #fff;
}

.second-menu-item-active {
    color: #3d8fd1;
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 10px 20px;
    padding-left: 40px; /* 增加左侧间距 */
    border-radius: 8px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
}

.user-info {
    display: block;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
    font-size: 14px;
    float: right;
}

.top-right-menu {
    position: absolute;
    right: 20px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    font-size: 14px;
    border-radius: 50%;
    background: #3d8fd1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* 内容区域样式 */
.content {
    padding: 20px 10px;
    min-height: 100vh;
    background: #eef1f1;
}
.menu-arrow {
    margin-left: auto;
    font-size: 0.9em;
    opacity: 0.7;
    transition: transform 0.3s;
}

.has-submenu:hover .menu-arrow {
    opacity: 1;
    transform: translateX(3px);
}
.collapse-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.collapse-btn:hover {
    background: #e9ecef;
}
.collapse-btn i {
    font-size: 18px;
    color: #495057;
}

.dashboard-columns {
    display: flex;
    gap: 20px;
  }
  
  .dashboard-column {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    padding-bottom: 10px;
    font-size: 14px;
  }

  .left-area {
    flex: 7;
    flex-direction: column;
    gap: 10px;
  }

  .right-area {
    flex: 3;
    display: block;
    flex-direction: column;
    gap: 10px;
  }
  
  .todo-column {
    flex: 10;
  }
  
  .notice-column {
    flex: 10;
  }
  
  .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
  }
  
  .more-btn {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
  }
  
  .more-btn:hover {
    color: #3eb489;
  }
  
  /* 待办列表样式 */
  .todo-list {
    list-style: none;
  }
  
  .todo-item {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #e3e0e0;
  }
  
  .todo-item:last-child {
    border-bottom: none;
  }
  
  .handle-btn {
    background: #3eb489;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: opacity 0.3s;
  }
  
  .handle-btn:hover {
    opacity: 0.9;
  }
  
  /* 通知公告样式 */
  .notice-list {
    list-style: none;
  }
  
  .notice-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 8px;
  }
  
  .urgency {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
  }
  
  .urgency.high {
    background: #ff4757;
    color: white;
  }
  
  .urgency.medium {
    background: #ffa502;
    color: white;
  }
  
  .urgency.low {
    background: #2ed573;
    color: white;
  }

  .notice-mark {
    color: #3d8fd1;
  }
  
  .notice-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .notice-date {
    color: #666;
    font-size: 12px;
    margin-left: auto;
  }

  .main-recent-menu {
    flex: 10;
  }
  
  .main-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px;
  }
  
  .main-menu-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    background: #f8f9fa;
  }
  
  .main-menu-item:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(62, 180, 137, 0.1);
  }
  
  .main-menu-item i {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
    color: #3eb489;
  }
  
  .main-menu-item span {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-area {
    display: flex;
    flex-direction: column;
  }

  .news-content {
    height: 120px;
    text-align: center;
    align-items: center;
    align-content: center;
  }

  .news-control {
    height: 20px;
    text-align: center;
    align-items: center;
    align-content: center;
  }

  .value-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .value-sum {
    display: block;
    padding: 10px 20px;
    background: #eef1f1;
  }
  .value-sum-item {
    display: inline-block;
  }
  .sum-number{
    color: #f14a4a;
    font-size: 18px;
  }
  .sum-desc {
    margin-top: 10px;
  }

  #navChart {
    position: relative;
    z-index: 50; /* 设置合理的层级，根据实际情况调整 */
    isolation: isolate;
  }

  #navChart canvas {
    position: relative;
    z-index: 50 !important;
  }
  
  
  /* 响应式适配 */
  @media (max-width: 1200px) {
    .dashboard-columns {
      flex-direction: column;
    }
    
    .todo-column,
    .notice-column {
      flex: none;
      width: 100%;
    }
  }
