﻿body, html {  
        /* height: 100%;  */
        /* margin: 20px;  */
        /* display: flex;  
        flex-direction: column; /* 使子元素垂直排列   */
        /* background-color: #002d76; /*#0066cc;*/
}

body{
    margin: 10px;
    min-width: 400px;
}

html{
    /* 背景图片路径 */
    background-image: url('../images/bg.jpg');

    /* 背景图片覆盖整个页面 */  
    background-position: center; /* 图片居中 */  
    background-repeat: no-repeat; /* 不重复 */  
    background-size: cover; /* 覆盖整个页面 */  
  
    /* 背景图片固定，滚动时不移动 */  
    background-attachment: fixed; 
}

.top-container{
	display: flex;  
    flex-wrap: wrap;
    justify-content: space-between; /* 子元素之间的空间平均分布 */   
    /* justify-content: center; /* 或者使用 start, center, end 等来调整对齐方式 */  
    /* padding: 10px;   */
    margin-top: 62px; /* 将自己推送到容器的底部 */
}

.body-title{
    white-space: nowrap;
    text-align: center; /* 文本居中 */  
    align-items: center;

    margin-bottom: 20px; /* 下边距 */ 
    letter-spacing: 20px; /* 或者使用其他单位，如em、rem等 */
    font-size: 48px;
    font-weight: bold;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    /* text-shadow: 1px 1px 1px #f9f9f9; */
    color: #FF0000;
}

.total-count-container{
    display: flex;  
    flex-wrap: nowrap; 
    justify-content: center;
    /* margin-left: 100px; */
    margin-bottom: 20px;
    width: 350px;
    font-size: 28px;
    font-weight: bold;
    color: #f9f9f9;

    align-items: center; /* 垂直居中 */ 
}

#department-container {  
    display: flex;  
    flex-wrap: wrap;  
    justify-content: space-between; /* 或者使用 start, center, end 等来调整对齐方式 */  
    padding: 10px;  
    border: 1px solid #ccc;
    border-radius: 15px; 
    /* background-color: #01408f; */
    margin-left: 10px;
    margin-right: 10px;
    gap: 10px;
}  
  
.department-group{
    text-align: center; /* 文本居中 */  
    margin-bottom: 0px; /* 下边距 */ 
    /* margin-right: 10px; */
}

.department-group-title{
    display: flex;  
	justify-content: space-between;

    flex: 0 0 auto; /* 不允许flex项目缩放，保持固定宽度 */  
    width: 156px; /* 设置每个部门项目的固定宽度 */  
    height: 40px; /* 可选，设置固定高度 */  

    padding: 5px;  
    /* border: 1px solid #ccc;  */
    background-color: #01408f;  
    border-radius: 5px;  
    box-sizing: border-box; /* 确保padding和border不会增加元素的总宽度 */  

    font-size: 18px;
    font-weight: bold;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #f9f9f9;
}

.department-group-count{
    color: #fc8452;
    font-size: 18px;
    font-weight: bold;
}

.department-item {  
    display: flex;  
    justify-content: space-between;
    align-items: center;  
    flex: 0 0 auto; /* 不允许flex项目缩放，保持固定宽度 */  
    width: 156px; /* 设置每个部门项目的固定宽度 */  
    height: 40px; /* 可选，设置固定高度 */  
    /* margin-right: 10px; /* 右边距 */  
    margin-bottom: 0px; /* 增加与下一个Flex项目的间距 */ 
    padding: 5px;  
    /* border: 1px solid #ccc;  */
    /* background-color: #298bce;
    /* border-radius: 5px;  */
    font-size: 18px;
    font-weight: bold;
    box-sizing: border-box; /* 确保padding和border不会增加元素的总宽度 */  
    /* box-shadow: 2px 2px 5px #888888; */
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #f9f9f9;
}  


.department-name{
    color: #f9f9f9;
} 

.department-count {  
    color: #52aad0;
}

.bottom-container{
	display: flex;  
    flex-wrap: wrap; 
    justify-content: space-between; /* 子元素之间的空间平均分布 */ 
    align-items: center; /* 垂直居中 */  
    /* justify-content: center; /* 或者使用 start, center, end 等来调整对齐方式 */  
    /* padding: 10px;   */
    margin-top: 47px; /* 将自己推送到容器的底部 */
    /* margin-bottom: 130px; */
    /* height: 100%; */
    /* width: 100%; */
}

#totalCounter{
	display: flex; /* 启用Flexbox */  
    justify-content: center; /* 水平居中 */  
    align-items: center; /* 垂直居中 */      
	width: 40px;
	text-align: center; /* 如果内部内容需要水平居中 */
	font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; /* 设置字体为Arial，如果用户系统中没有Arial，则使用默认的sans-serif字体 */  
    font-weight: bold;
    font-size: 28px; /* 设置字体大小为24像素 */     
    color: #FF0000;
}

.totalCounterText{
    display: flex; /* 启用Flexbox */  
    justify-content: right; /* 水平居中 */  
    align-items: center; /* 垂直居中 */      
	/* width: 280px; */
	text-align: right; /* 如果内部内容需要水平居中 */
	font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; /* 设置字体为Arial，如果用户系统中没有Arial，则使用默认的sans-serif字体 */  
    font-weight: bold;
    font-size: 28px; /* 设置字体大小为24像素 */     
    color: #f9f9f9;
}

#other-infos{
    /* margin-right: 100px; */
    display: flex; /* 启用Flexbox */  
    justify-content: center; /* 水平居中 */  
    align-items: center; /* 垂直居中 */      
    /* margin-right: 50px; */
    margin-bottom: 20px;
	width: 350px;
	text-align: center; /* 如果内部内容需要水平居中 */
	font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; /* 设置字体为Arial，如果用户系统中没有Arial，则使用默认的sans-serif字体 */  
    font-weight: bold;
    font-size: 28px; /* 设置字体大小为24像素 */     
    color: #f9f9f9;
}

#gateway-container {  
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 或者使用 start, center, end 等来调整对齐方式 */  
    /* padding: 10px;    */
    margin-top: auto; /* 将自己推送到容器的底部 */  
    gap: 10px; 
}  

.person{
    display: flex;  
	justify-content: space-between;

    flex: 0 0 auto; /* 不允许flex项目缩放，保持固定宽度 */  
    width: 280px; /* 设置每个部门项目的固定宽度 */  
    height: 70px; /* 可选，设置固定高度 */  

    padding: 5px;  
    /* border: 1px solid #ccc;  */
    /* background-color: #f9f9f9;  */
    border-radius: 5px;  
    box-sizing: border-box; /* 确保padding和border不会增加元素的总宽度 */ 

    font-size: 24px;
    color: #f9f9f9; 
}

.gateway-pannel{
    display: flex;  

    /* padding: 10px;  */
    border: 1px solid #ccc;  
    /* background-color: #01408f; */
    border-radius: 5px;  
    box-sizing: border-box; /* 确保padding和border不会增加元素的总宽度 */  
    /* box-shadow: 2px 2px 5px #888888; */
    /* margin-right: 20px; /* 右边距 */ 
    flex-direction: column; /* 使子元素垂直排列 */ 
}

.gateway-title{
    text-align: center; /* 文本居中 */  
    margin-bottom: 10px; /* 下边距 */ 
    /* background-color: #01408f; */

    height: 60px;

    font-size: 28px;
    font-weight: bold;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #f9f9f9;
}

#chart-pie-depts{
    height: 300px; 
    width: 320px;
    /* margin-top: auto; /* 将自己推送到容器的底部 */
    margin-left: 10px;
}

#chart-meter-count{
    height: 300px; 
    width: 320px;
    /* margin-top: auto; /* 将自己推送到容器的底部 */
    margin-right: 10px;
}

#stacked-area-chart{	
    height: 100%;
    width: 100%;
}

/* 当屏幕宽度小于600px时应用的样式 */  
@media (max-width: 800px) {  
    .body-title {  
        letter-spacing: 0px; /* 或者使用其他单位，如em、rem等 */
        font-size: 24px;  
    }  

    .total-count-container{
        margin-left: 0px;
        font-size: 24px;
    
        text-align: center;
    }
}

@media (max-width: 1900px) {
    .bottom-container{
        justify-content: center;
    }
}