* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background-color: #f5f7fa;
    height: 100vh;
    overflow: hidden;
}

/* 顶部菜单栏 */
.top-menu-container {
    height: 35px;
    background-color: #304156;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-menu {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 40px;
}

.logo-icon {
    color: #409eff;
    font-size: 24px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.first-level-menu {
    display: flex;
    height: 100%;
    flex: 1;
}

.first-level-item {
    position: relative;
    height: 100%;
}

.first-level-btn {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bfcbd9;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: none;
    font-size: 14px;
}

.first-level-btn:hover {
    background-color: #263445;
    color: white;
}

.first-level-item.active .first-level-btn {
    background-color: #409eff;
    color: white;
}

.first-level-item:hover .second-level-menu{
    display: block;
}

/* 二级菜单 */
.second-level-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 80   px;
    background-color: white;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}


.second-level-item {
    padding: 0;
}

.second-level-btn {
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    color: #606266;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.second-level-btn:hover {
    background-color: #f5f7fa;
    color: #409eff;
}

.second-level-btn.active {
    background-color: #ecf5ff;
    color: #409eff;
    border-left: 3px solid #409eff;
}

/* 用户区域 */
.user-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification {
    position: relative;
    cursor: pointer;
    color: #bfcbd9;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f56c6c;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #bfcbd9;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #409eff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 工具栏 */
.toolbar-container {
    height: 40px;
    background-color: white;
    border-bottom: 1px solid #e4e7ed;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 999;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 50px;
}


.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #606266;
    font-size: 14px;
}

.breadcrumb-separator {
    color: #c0c4cc;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
}

/* 主内容区域 - 精确五分之一宽度布局 */
.main-content-area {
    height: calc(100vh - 110px); /* 60px菜单 + 50px工具栏 */
    padding: 20px;
    display: flex;
    gap: 20px;
}

/* 左侧图表区域 - 精确五分之一宽度 */
.left-charts-panel {
    width: 25%; /* 精确五分之一宽度 */
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.top-left-chart,
.bottom-left-chart {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(50% - 10px); /* 每个图表占一半高度 */
}

.top-left-chart {
    min-height: 0;
}

.bottom-left-chart {
    min-height: 350px;
}

/* 右侧主图表区域 - 剩余宽度 */
.right-main-panel {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-chart-container {
    flex: 1;
    background-color: white;
    border-radius: 2px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    min-height: 0; /* 防止内容溢出 */
}

.chart-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title {
    font-size: 10px;
    color: #93969b;
}

.chart-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}



#mainChart,
#mainChart2,
#mainChart3,
#mainChart4,
#mainChart5,
#leftTopChart,
#leftBottomChart {
    width: 100%;
    height: 100%;
}

/* 指标面板 */
.metrics-panel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.metric-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-name {
    font-size: 12px;
    color: #909399;
    font-weight: 500;
}

.metric-value {
    font-size: 20px;
    font-weight: bold;
    color: #303133;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.trend-up {
    color: #67c23a;
}

.trend-down {
    color: #f56c6c;
}

/* 左侧图表内部样式 */
.left-chart-header {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-chart-title {
    font-size: 14px;
    font-weight: bold;
    color: #303133;
}

.left-chart-controls {
    display: flex;
    gap: 5px;
}

.chart-tabs {
    display: flex;
    border-bottom: 1px solid #e4e7ed;
    margin-bottom: 10px;
}

.chart-tab {
    padding: 8px 12px;
    cursor: pointer;
    color: #606266;
    font-size: 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.chart-tab:hover {
    color: #409eff;
}

.chart-tab.active {
    color: #409eff;
    border-bottom-color: #409eff;
    font-weight: 500;
}



/* 响应式设计 */
@media (max-width: 1600px) {
    .left-charts-panel {
        width: 20%;
        min-width: 250px;
    }
    
    .metrics-panel {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* .form-grid {
        grid-template-columns: 1fr;
    } */
}

@media (max-width: 1200px) {
    .left-charts-panel {
        width: 25%;
        min-width: 220px;
    }
    
    .metrics-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .main-content-area {
        flex-direction: column;
    }
    
    .left-charts-panel {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        height: 300px;
    }
    
    .top-left-chart,
    .bottom-left-chart {
        flex: 1;
        height: 100%;
    }
    
    .metrics-panel {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .first-level-btn span {
        display: none;
    }
    
    .logo-text {
        display: none;
    }
    
    .user-info span {
        display: none;
    }
    
    .toolbar-container {
        padding: 0 10px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .left-charts-panel {
        flex-direction: column;
        height: auto;
    }
    
    .top-left-chart,
    .bottom-left-chart {
        height: 250px;
    }
    
    .metrics-panel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .metrics-panel {
        grid-template-columns: 1fr;
    }
    
    .toolbar-actions {
        flex-wrap: wrap;
    }
}


/* left top css */
.left-top-single-line {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
}

.left-top-inline-label {
  font-size: 14px;
  color: #606266;
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
}

.left-top-inline-input {
  flex: 1;
  min-width: 120px;
}

.left-top-inline-input .el-input__wrapper {
  padding: 0 8px !important;
  height: 28px !important;
  background: #f5f7fa !important;
  border:  #e4e7ed !important;
  border-radius: 3px !important;
}

.left-top-inline-input .el-input__inner {
  font-size: 12px !important;
  cursor: default !important;
}


/* 确保图表容器有明确的尺寸 */
#mainChart,
#mainChart2, 
#mainChart3,
#mainChart4,
#mainChart5,
#fuChart {
  width: 100% !important;
  height: 100% !important;
  min-height: 200px; /* 添加最小高度 */
}


.chart-wrapper {
  width: 100%;
  height: 200px; /* 明确设置高度 */
  position: relative;
}


/* 添加间距类 */
.mr-2 {
    margin-right: 2px !important;
}

.ml-2 {
    margin-left: 2px !important;
}

/* 对话框底部样式 */
.dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: px;  /* 这是关键：设置按钮之间的间距 */
    flex-wrap: wrap;
}



/* 最简状态栏样式 */
.simple-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background-color: #f5f7fa;
    border-top: 1px solid #dcdfe6;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #606266;
    font-size: 12px;
    z-index: 1000;
}

.status-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 暗色主题适配 */
body.dark-theme .simple-status-bar {
    background-color: #1f1f1f;
    border-top-color: #434343;
    color: #ccc;
}




