html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* 顶部按钮区域样式 */
#topbutton {
  display: flex;
  width: 90%;
  margin: 2% 5%;
  background-color: ;
  overflow: hidden;
}

/* 输入框样式 */
#inputkeyword {
  width: 60%;
  height: 30px;
  padding-left: 20px;
  border-radius: 5px;
  border: 1px solid #66CCFF;
  margin-left: 15px;
  margin-right: 10px;
}

/* 搜索按钮样式 */
#searchBtn {
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  margin: auto 5%;
  font-size: 15px;
  color: #fff;
  width: 40%;
  background-color: #00BBCC;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

/* 搜索按钮悬停效果 */
#searchBtn:active {
  background-color: #00cccc;
}

/* 搜索按钮悬停效果 */
#searchBtn:hover {
  background-color: #00cccc;
}

/* 地图容器样式 */
#mapX {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 300px;
  z-index: 1;
  overflow: hidden;
  border-radius: 10px;
}

/* 地图背景样式 */
#tmapdiv {
  width: 90%;
  margin: 0 5%;
  height: 320px;
  background-image: url(../tab/image/siditubg.jpg);
  background-size: 100%;
  border-radius: 10px;
}

/* 搜索结果列表样式 */
#poilist {
  margin: 10px 5%;
  width: 90%;
  height: auto;
}

/* 搜索部分样式 */
#searchPart {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1001;
}

/* 信息展示样式 */
#information {
  margin: 5px;
}

#infowin {
  word-wrap: break-word;
  width: 200px;
  height: auto;
  margin: 0;
  padding: 0;
}

p {
  white-space: normal;
  width: 200px;
  margin-bottom: 5px;
  /* 允许长单词换行 */
  padding: 0;
  font-size: 16px;
}

/* 街道链接样式 */
#street {
  font-size: 15px;
  outline: none;
  text-decoration: none;
  color: #fff;
  margin-left: 10px;
}

/* 地区显示样式 */
#mydistrict {
  display: inline-block;
  vertical-align: middle;
  outline: none;
  text-align: center;
  margin: auto 8px;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  background-color: #00BBCC;
  border-radius: 5px;
}

/* 附近搜索按钮区域样式 */
#searchnear {
  margin: 0 5% 5% 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* 附近搜索按钮样式 */
#searchnear button {
  font-size: 15px;
  color: #fff;
  width: 20%;
  height: 40px;
  margin: 5px;
  background-color: #00BBCC;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

/* 附近搜索按钮悬停效果 */
#searchnear button:hover {
  background-color: #00bbcc;
}

/* 地址显示样式 */
#myaddress {
  display: inline-block;
  vertical-align: middle;
  outline: none;
  text-align: center;
  margin: auto 8px;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  background-color: #00BBCC;
  border-radius: 5px;
  color: #fff;
}

#footer {
  display: flex;
  width: 100%;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

/* 美化 listItem */
.poi-list-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.poi-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.poi-header {
  padding: 12px 15px;
  background-color: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.poi-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding: 0 10px;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poi-distance {
  font-size: 12px;
  color: #fff;
  padding: 3px 15px;
  font-weight: bold;
  background-color: #00ddcc;
  border-radius: 12px;
}

.poi-info {
  margin-right: 10px;
  padding: 10px 10px;
}

.poi-address,
.poi-tel {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.poi-address i,
.poi-tel i {
  margin-right: 8px;
  color: #999;
  width: 14px;
  text-align: center;
}

.poi-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 15px;
  background-color: #00ddcc;
  border-top: 1px solid #eee;
}

.poi-action-btn {
  font-size: 13px;
  padding: 5px 12px;
  margin-left: 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.poi-detail-btn {
  color: #007bff;
  padding: auto 5px;
  background-color: #e7f5ff;
}

.poi-detail-btn:hover {
  background-color: #d6eaf8;
}

.poi-navigate-btn {
  color: #28a745;
  padding: auto 5px;
  background-color: #e8f5e9;
}

.poi-navigate-btn:hover {
  background-color: #dcedc8;
}

/* 定位提示样式 */
.location-tip {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  z-index: 1000;
  display: none;
  font-size: 15px;
}

/* 加载动画 */
.loader {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 24px;
  height: 24px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 错误提示 */
.error-message {
  color: #dc3545;
  text-align: center;
  padding: 10px;
  background-color: #f8d7da;
  border-radius: 4px;
  margin: 10px 0;
}

/* 分页控件样式 */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination-info {
  margin: 0 15px;
  font-size: 14px;
  color: #666;
}

.pagination-btn {
  padding: 6px 12px;
  margin: 0 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  color: #00ddcc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background-color: #eee;
}

.pagination-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
  background-color: #fff;
}

.pagination-btn.active {
  background-color: #00ddcc;
  color: #fff;
  border-color: #00ddcc;
  cursor: default;
}

.pagination-ellipsis {
  margin: 0 5px;
  color: #00bbcc;
}

/* 定位区域样式 */
#locationContainer {
  z-index: 5;
  text-align: center;
  width: 100%;
  height: 35px;
  line-height: 35px;
  position: relative;
  top: -18px;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
}

/* 定位地址 */
.location-info {
  font-size: 14px;
  margin: 0 0 0 5%;
  padding: 5 10px;
  line-height: 30px;
  text-align: center;
  height: 30px;
  width: 70%;
  opacity: 1;
  border-radius: 0px 0px 0px 5px;
  border: none;
  background-color: #00BBCC;
  color: #FFF;
}

/* 定位按钮样式 */
.location-btn {
  width: 30%;
  margin: 0 5% 0 0;
  padding: 5px 10px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 30px;
  text-align: center;
  float: left;
  outline: none;
  text-decoration: none;
  color: #fff;
  background-color: #0088CC;
  opacity: 1;
  border-radius: 0px 0px 5px 0px;
}

.location-btn:hover {
  background-color: #00BBCC;
}

.location-btn:active {
  background-color: #0077BB;
}