  html,body,#container {
               overflow: hidden;
               width: 100%;
               height: 100%;
               margin: 0;
            }
            /* 缩放滑块控件ZoomSlider的样式，放置到缩放按钮之间实现导航条功能*/
            /* #container .ol-zoom .ol-zoom-out {
                margin-top: 204px;
            } */

            #container .ol-zoomslider {
                background-color: transparent;
                top: 2.3em;
            }

            #container .ol-touch .ol-zoom .ol-zoom-out {
                margin-top: 212px;
            }

            #container .ol-touch .ol-zoomslider {
                top: 2.75em;
            }

            /*比例尺设置*/
            #container .ol-scale-line {
                position: absolute; /* 开启绝对定位，脱离文档流 */
                right: 210px; /* 距离右侧边框20px */
                bottom: 10px; /* 距离底部边框20px */
                left: auto; /* 清除默认左偏移（如果有） */
                top: auto; /* 清除默认上偏移（如果有） */
                width: 100px;
            }

            /* 1. 缩放工具栏容器（放大+缩小按钮）：右侧中间定位 */
            #container .ol-zoom {
                position: absolute;
                right: 5px; /* 与右侧边缘间距，所有控件保持一致 */
                top: 60%; /* 垂直居中起点 */
                transform: translateY(-50%); /* 向上偏移自身50%，实现居中 */
                left: auto;
                bottom: auto;
                z-index: 100;
                display: flex;
                flex-direction: column; /* 垂直排列按钮 */
                gap: 5px; /* 按钮间距 */
            }

            /* 2. 缩放滑块（ol-zoomslider）：定位在缩小按钮正下方 */
            #container .ol-zoomslider.ol-unselectable.ol-control {
                position: absolute;
                right: 5px; /* 与缩放按钮水平对齐 */
                z-index: 100;
                /* 关键：定位在缩小按钮下方（通过top值计算，需根据实际按钮高度微调） */
                top: calc(60% + 30px); /* 50%是缩放按钮中点，+70px是按钮总高度+间距 */
                left: auto;
                bottom: auto;
                width: 27px; /* 与放大/缩小按钮宽度一致，确保对齐 */
                height: 60px; /* 滑块长度，可按需调整 */
                margin: 0; /* 清除默认外边距 */
            }

            /* 3. 优化缩放滑块内部样式（与按钮协调） */
            #container .ol-zoomslider .ol-thumb {
                width: 16px;
                height: 16px;
                border: 2px solid #333;
                background: white;
                border-radius: 50%;
                box-shadow: 0 1px 2px rgba(0,0,0,0.2);
                top: 0; /* 清除默认偏移 */
                margin-left: -8px; /* 水平居中滑块 */
            }

            #container .ol-zoomslider .ol-track {
                width: 4px; /* 滑块轨道宽度 */
                background: #ddd;
                border-radius: 2px;
                margin: 0 auto; /* 轨道水平居中 */
            }


            /* 5. 修正按钮tooltip位置（避免遮挡滑块） */
            #container .ol-zoom-in .ol-has-tooltip:focus[role=tooltip],
            #container .ol-zoom-out .ol-has-tooltip:focus[role=tooltip] {
                position: absolute;
                left: -90px; /* 显示在按钮左侧，远离滑块 */
                top: 50%;
                transform: translateY(-50%);
                white-space: nowrap;
                background: rgba(0,0,0,0.7);
                color: white;
                padding: 3px 6px;
                border-radius: 2px;
            }

            #container .ol-zoom-extent {
                top: 280px;
                display: none;
            }
			
			/* 鼠标位置控件层样式设置 */
        #mouse-position {
            position: absolute;
            right: 320px; /* 距离右侧边框20px */
            bottom: 10px;
            width: 380px;
            height: 40px;
            z-index: 2000;
			background-color: rgba(265, 265, 265, 0.5);
			text-align:center;
        }
        /* 鼠标位置信息自定义样式设置 */
        .custom-mouse-position {
            color: rgb(0,0,0);
            font-size: 12px;
            font-family: "微软雅黑";
        }

        		/* 左下角面板样式 */
        #left-bottom-panel {
            position: absolute;
            left: 10px;
            bottom: 35px;
            width: 250px;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 5px;
            padding: 10px;
            z-index: 2000;
            box-shadow: 0 1px 5px rgba(0,0,0,0.65);
        }
        
        #left-bottom-panel .panel-title {
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid #ccc;
        }
        
        #attribute-content {
            max-height: 200px;
            overflow-y: auto;
        }
        
        .attribute-item {
            margin: 5px 0;
            font-size: 14px;
        }
        
        .attribute-name {
            font-weight: bold;
            display: inline-block;
            width: 100px;
        }
        
        /* 属性弹窗样式 */
        #popup {
            position: fixed; /* 相对于视口固定定位，确保在页面右侧 */
            right: 40px; /* 距离右侧边距 */
            top: 50%; /* 垂直居中基准 */
            transform: translateY(-50%); /* 垂直居中调整 */
            background-color: white;
            width: 350px; /* 固定宽度 */
            height: 600px; /* 固定高度 */
            padding: 10px;
            border-radius: 5px;
            box-shadow: 0 1px 5px rgba(0,0,0,0.65);
            z-index: 2001;
            display: none;
            box-sizing: border-box; /* 确保padding不影响整体宽高 */
        }

        #popup-closer {
            position: absolute;
            top: 5px;
            right: 5px;
            cursor: pointer;
            font-size: 16px;
            color: #666;
            background: transparent;
            border: none;
            padding: 0 5px;
        }

        #popup-closer:hover {
            color: #333;
        }
		
		/*=S 自定义鹰眼样式 */
        .ol-custom-overviewmap, .ol-custom-overviewmap.ol-uncollapsible {
            bottom: 0;
            left: auto;
            /* 右侧显示 */
            right: .2em;
            /* 顶部显示 */
            top: auto;
        }
            /* 鹰眼控件展开时控件外框的样式 */
            .ol-custom-overviewmap:not(.ol-collapsed) {
                border: 1px solid black;
            }
            /* 鹰眼控件中地图容器样式 */
            .ol-custom-overviewmap .ol-overviewmap-map {
                border: none;
                width: 200px;
            }
            /* 鹰眼控件中显示当前窗口中主图区域的边框 */
            .ol-custom-overviewmap .ol-overviewmap-box {
                border: 2px solid red;
            }
            /* 鹰眼控件展开时其控件按钮图标的样式 */
            .ol-custom-overviewmap:not(.ol-collapsed) button {
                bottom: auto;
                left: auto;
                right: 1px;
                top: 1px;
            }
        /*=E 自定义鹰眼样式 */
		
		.ol-full-screen {
            right: .2em;
            top: 180px;
         }
		 
		 .ol-attribution {
            right: .2em;
         }
		
        /* 图层控件容器样式 */
        .layerControlContainer {
            position: absolute;
            right: 5px;
            top: 5px;
            z-index: 2001;
        }

        /* 图层控制图标按钮 */
        .layerControlToggle {
            width: 35;
            height: 30px;
            cursor: pointer;
            border: none;
            padding: 0;
            background: transparent;
        }

        .layerControlToggle img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* 图层控制面板样式 */
        .layerControlPanel {
            min-width: 150px;
            color: black;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
            border: 1px solid #000;
            padding: 10px;
            margin-top: 5px;
        }

        .layerControl .title {
            font-weight: bold;
            font-size: 15px;
            margin: 10px;
        }

        /* 图层面板关闭按钮 */
        .layer-panel-close-btn {
            position: absolute;
            top: 8px;          /* 右上角内边距 */
            right: 8px;
            width: 28px;       /* 圆形按钮尺寸 */
            height: 28px;
            border: none;
            border-radius: 50%;/* 圆形和其他按钮风格统一 */
            background: #f5f5f5;/* 浅灰背景，hover变色 */
            color: #333;       /* 关闭图标颜色 */
            font-size: 16px;   /* 关闭图标大小 */
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* 轻微阴影，提升质感 */
            transition: all 0.2s ease; /* hover过渡动画 */
            z-index: 10;       /* 确保在图层树之上 */
        }

        /* 关闭按钮hover/active状态 */
        .layer-panel-close-btn:hover {
            background: #009688; /* 主色调，和界面风格统一 */
            color: #fff;         /* 白色图标 */
            transform: scale(1.05); /* 轻微放大，增强交互 */
        }
        .layer-panel-close-btn:active {
            transform: scale(0.98); /* 点击回弹 */
            box-shadow: 0 1px 2px rgba(0,0,0,0.08);
        }

        /* 调整图层树内边距，避免被关闭按钮遮挡 */
        .layerTree {
            padding: 8px 8px 8px 8px;
            margin-top: 4px; /* 给关闭按钮留出空间 */
            list-style: none;
        }

        .layerTree {
            padding-left: 10px;
        }

        .layerTree li {
            list-style: none;
            margin: 5px 0;
        }

        .layerTree li {
            list-style: none;
            margin: 5px 10px;
        }

      /*以下代码是搜索框的样式*/
      body {
        font-family: "Microsoft YaHei", sans-serif;
        margin: 0;
        padding: 20px;
        background-color: #f5f5f5;
      }

      .land-supermarket {
        max-width: 800px;
        margin: 0 auto;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
      }

      .header {
        margin-bottom: 20px;
      }

      .header h1 {
        font-size: 24px;
        color: #333;
        margin: 0 0 10px 0;
      }

      .tabs {
        display: flex;
        margin-bottom: 10px;
      }

      .tab {
        padding: 8px 15px;
        background-color: #eee;
        border: none;
        border-radius: 4px 4px 0 0;
        cursor: pointer;
        margin-right: 5px;
      }

      .tab.active {
        background-color: #fff;
        border: 1px solid #ddd;
        border-bottom: none;
      }

      .tab-count {
        font-size: 14px;
        color: #666;
      }

      .search-bar {
        display: flex;
        margin-bottom: 20px;
      }

      .search-bar input {
        flex: 1;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px 0 0 4px;
      }

      .search-btn {
        padding: 8px 15px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
      }

      .land-item {
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 15px;
        margin-bottom: 10px;
      }

      .land-item h3 {
        font-size: 16px;
        color: #333;
        margin: 0 0 10px 0;
      }

      .land-item p {
        margin: 5px 0;
        font-size: 14px;
        color: #666;
      }

      .pagination {
        display: flex;
        justify-content: center;
        margin-top: 20px;
      }

      .pagination button {
        padding: 5px 10px;
        margin: 0 5px;
        border: 1px solid #ddd;
        background-color: #fff;
        cursor: pointer;
        border-radius: 4px;
      }

      .pagination button.active {
        background-color: #007bff;
        color: #fff;
        border-color: #007bff;
      }

      /*以下代码是弹出属性框的样式*/
        .attributes-table {
            width: 270px; /* 缩小表格宽度 */
            max-width: 100%;
            border-collapse: collapse;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* 减弱阴影 */
            font-family: "Microsoft YaHei", sans-serif; /* 微软雅黑 */
            font-size: 13px; /* 五号字体对应12px */
            table-layout: fixed; /* 关键：固定表格布局，确保列宽按设置生效 */
        }
        
        .attributes-table thead {
            background-color: #34495e;
            color: white;
        }

        /* 表头第一列固定宽度 */
        .attributes-table thead th:first-child {
            width: 110px; /* 第一列固定宽度（可根据需求调整） */
            text-align: left; /* 可选：统一对齐方式 */
            padding: 8px 10px; /* 可选：调整内边距 */
        }

        /* 表头第二列固定宽度 */
        .attributes-table thead th:nth-child(2) {
            width: 150px; /* 第二列固定宽度（两列总和=表格总宽度400px） */
            text-align: left; /* 可选：统一对齐方式 */
            padding: 8px 10px; /* 可选：调整内边距 */
        }

        .attributes-table th {
            padding: 8px 8px; /* 缩小内边距 */
            font-weight: 600;
            text-align: center;
        }
        
        .attributes-table td {
            padding: 8px 8px; /* 缩小内边距 */
            border-bottom: 1px solid #e0e0e0;
            line-height: 1.4; /* 紧凑行高 */
        }
        
        .attributes-table tbody tr {
            background-color: #ffffff;
            transition: background-color 0.2s ease;
        }
        
        .attributes-table tbody tr:nth-child(even) {
            background-color: #f5f7fa; /* 浅灰底色，保持区分度 */
        }
        
        .attributes-table tbody tr:hover {
            background-color: #eef5ff;
        }
        
        .attribute-name {
            width: 80px; /* 缩小属性名字段宽度 */
            font-weight: 500;
            color: #2c3e50;
            border-right: 1px solid #e0e0e0;
        }
        
        .attribute-value {
            color: #34495e;
            word-wrap: break-word;
        }


    /* 测量按钮样式 */
    .measure-btn {
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        transition: background 0.2s;
    }
    .measure-btn:hover {
        background: #3A5F7F;
    }
    .measure-btn.active {
        background: #e74c3c;
        stroke: white !important; /* 激活时图标变白 */
    }
    .measure-btn.active svg {
        stroke: 3A5F7F;
    }
    /* 测量提示框响应式调整 */
    @media (max-width: 768px) {
        #measureTool {
            right: 10px;
            bottom: 80px; /* 避免遮挡移动端控件 */
        }
    }
                /* 地图提示框样式 */
            .map-tip {
                position: absolute; /* 若地图是fixed定位，可改为fixed */
                top: 20px; /* 可根据地图布局调整位置 */
                left: 50%;
                transform: translateX(-50%);
                padding: 8px 16px;
                background: rgba(0, 0, 0, 0.7); /* 半透明黑底，不遮挡地图 */
                color: #fff;
                font-size: 14px;
                border-radius: 4px;
                z-index: 5; /* 低于测量按钮，避免遮挡操作 */
                pointer-events: none; /* 提示框不捕获事件，不影响地图点击 */
                white-space: nowrap; /* 防止文本换行 */
            }