﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F5F7FA;
    color: #fff;
    font-family: Arial, sans-serif;
    height: 100vh;
    padding: 20px;
    overflow: hidden; /* 隐藏所有滚动条 */
}

.dashboard {
    display: flex;
    height: 89%;
    gap: 10px;
    margin-top: 10px;
}

.left-panel, .right-panel {
    width: 620px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.center-map {
    flex: 1;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 33px;
}

.chart-box {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    height: calc(60% - 10px);
}

#zl {
    overflow: hidden;
    z-index: 9999;
    width: 300px;
    height: 170px;
    margin-top: -13%;
    margin-left: 1%;
}

#zljg {
    overflow: hidden;
    z-index: 9999;
    width: 300px;
    height: 130px;
    margin-top: -11%;
    margin-left: 1%;
}

#zljg1 {
    overflow: hidden;
    z-index: 9999;
    width: 300px;
    height: 70px;
    margin-top: -100px;
    margin-left: 1%;
}

#milk1 {
    overflow: hidden;
    z-index: 9999;
    width: 700px;
    height: 60px;
    margin-top: -10px;
    margin-left: 12%;
}

zl ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

    zl ul li span {
        display: block; /* 使链接块级显示，填满整个菜单项 */
        padding: 10px; /* 添加一些内边距 */
        color: #333; /* 设置文字颜色 */
        font-size: 15px;
        font-weight: bold;
    }

#divtab {
    position: absolute;
    width: 100px;
    margin-top: 200px;
    margin-left: 5px;
    z-index: 99999;
}
#title {
    color: #333;
    font-size: 18px;
    margin-left: 8px;
    font-weight: bold;
}

#datades1 {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

#datanum1 {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

#datades2 {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

#datanum2 {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

#datades3 {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

#datades4 {
    color: black;
    font-size: 14px;
    /*font-weight: bold;*/
}

#datanum3 {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

#datanum4 {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

#datanum5 {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

#bt1 {
    color: black;
    font-size: 18px;
    font-weight: bold;
}

#map {
    width: 100%;
    height: 100%;
}

.chart {
    width: 99%;
    height: 100%;
}
/* 基本样式 */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav1 ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

    nav1 ul li {
        display: grid; /* 使菜单项水平排列 */
        position: relative; /* 为子菜单定位 */
    }

        nav1 ul li a {
            display: block; /* 使链接块级显示，填满整个菜单项 */
            padding: 3px; /* 添加一些内边距 */
            text-decoration: none; /* 去除下划线 */
            color: #333; /* 设置文字颜色 */
            font-size: 15px;
        }

        nav1 ul li .dropdown-content {
            display: none; /* 默认隐藏下拉菜单 */
            position: absolute; /* 相对于父级定位 */
            background-color: #f9f9f9; /* 设置背景色 */
            min-width: 160px; /* 设置最小宽度 */
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* 添加阴影效果 */
            z-index: 1; /* 确保在下拉时显示在最上层 */
        }

nav ul li {
    display: inline-block; /* 使菜单项水平排列 */
    position: relative; /* 为子菜单定位 */
}

    nav ul li a {
        display: block; /* 使链接块级显示，填满整个菜单项 */
        padding: 10px; /* 添加一些内边距 */
        text-decoration: none; /* 去除下划线 */
        color: #333; /* 设置文字颜色 */
        font-size: 18px;
        font-weight: bold;
    }

    /* 下拉菜单样式 */
    nav ul li .dropdown-content {
        display: none; /* 默认隐藏下拉菜单 */
        position: absolute; /* 相对于父级定位 */
        background-color: #f9f9f9; /* 设置背景色 */
        min-width: 160px; /* 设置最小宽度 */
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* 添加阴影效果 */
        z-index: 1; /* 确保在下拉时显示在最上层 */
    }

        nav ul li .dropdown-content a {
            color: black; /* 设置下拉菜单文字颜色 */
            padding: 12px 16px; /* 设置内边距 */
            text-decoration: none; /* 去除下划线 */
            display: block; /* 使链接块级显示 */
        }

    /* 鼠标悬浮时显示下拉菜单 */
    nav ul li:hover .dropdown-content {
        display: block; /* 鼠标悬浮时显示下拉菜单 */
    }

.dropdown a:hover {
    color: #00b4d8; /* 浅蓝色 */
    text-decoration: none; /* 去除下划线 */
}

/* 激活状态 */
.dropdown a.active {
    color: #00b4d8;
    text-decoration: none; /* 去除下划线 */
}

.dropdown-content a:hover {
    color: #00b4d8; /* 浅蓝色 */
    text-decoration: none; /* 去除下划线 */
}

/* 激活状态 */
.dropdown-content a.active {
    color: #00b4d8;
    text-decoration: none; /* 去除下划线 */
}


/* 悬浮按钮样式 */
.floating-buttons {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.floating-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(045deg, #e9724c, #ffd800);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

    .floating-btn:hover {
        transform: translateX(5px) scale(1.0);
        box-shadow: 0 5px 12px rgba(233, 114, 76, 0.4);
    }

    .floating-btn i {
        font-size: 8px;
    }

/* 按钮提示文字 */
.btn-tooltip {
    position: absolute;
    left: 30px;
    white-space: nowrap;
    color: black;
    padding: 2px 5px;
    border-radius: 4px;
   /* opacity: 1;
    transition: opacity 0.3s;
    pointer-events: none;*/
}

.floating-btn:hover .btn-tooltip {
    opacity: 1;
}