/* .layui-table-view-1 .layui-table-body .layui-table tr .layui-table-cell{
	height: auto;
  	white-space: normal;
    text-overflow: clip;
    max-height:unset!important;
} */
/* .layui-table-fixed-r ,.layui-table-fixed-l{ */
  /* display: none !important; */
/* } */

/* 自动完成列表项高亮样式 */
.auto-complete-item {
  cursor: pointer;
  padding: 8px 12px;
}

.auto-complete-item:hover,
.auto-complete-item.highlight {
  background-color: #f0f0f0;
}

/* 地图模态框样式 */
.map-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 防止地图canvas溢出到页面 */
body:not(.map-modal-open) .amap-layer,
body:not(.map-modal-open) canvas.amap-layer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.map-modal-content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  position: relative;
  z-index: 10001;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#myPageTop{
  margin-top: 48px!important;
  width: 320px!important;
}

.map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid #e8e8e8;
  background: linear-gradient(135deg, #667eea 0%, #7881be 100%);
  color: #fff;
}

.map-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.map-modal-close {
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
  user-select: none;
}

.map-modal-close:hover {
  transform: rotate(90deg);
}

.map-search-panel {
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  background-color: #fafafa;
  flex-shrink: 0;
  z-index: 99999999;
}
.amap-sug-result{
  z-index: 99999999;
}

.map-search-input-wrapper {
  margin-bottom: 15px;
}

.map-search-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.map-search-group {
  display: flex;
  gap: 0;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: visible;
  transition: all 0.3s;
  background: #fff;
  position: relative;
}

.map-search-group:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.map-search-input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 10;
}

.map-search-input {
  width: 100%;
  padding: 6px 12px;
  border: none;
  border-radius: 0;
  font-size: 12px;
  transition: all 0.3s;
  box-sizing: border-box;
  height: 28px;
  line-height: 16px;
  background: transparent;
}

.map-search-input:focus {
  outline: none;
  box-shadow: none;
}

.map-search-input::placeholder {
  color: #999;
  font-size: 12px;
}

.map-search-result-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin-top: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100000000;
  display: none;
  visibility: visible;
  opacity: 1;
  width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}

.map-search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.map-search-result-item:last-child {
  border-bottom: none;
}

.map-search-result-item:hover {
  background-color: #f5f7fa;
}

.map-result-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.map-result-item-address {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

.map-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  height: 28px;
  line-height: 28px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.map-search-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a75a8 100%);
  transform: none;
}

.map-search-btn:active {
  transform: scale(0.98);
}

.map-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.map-search-btn:active {
  transform: translateY(0);
}

.map-search-btn svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  opacity: 0.95;
}

.map-selected-info {
  background-color: #f0f7ff;
  border: 1px solid #b3d9ff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 15px;
  width: 300px;
}

.map-info-item {
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.map-info-item:last-child {
  margin-bottom: 0;
}

.map-info-item strong {
  color: #667eea;
  margin-right: 8px;
}

.map-modal-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.map-btn {
  flex: 1;
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.map-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.map-btn-primary:active {
  transform: translateY(0);
}

.map-btn-secondary {
  background-color: #f5f5f5;
  color: #666;
}

.map-btn-secondary:hover {
  background-color: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.map-btn-secondary:active {
  transform: translateY(0);
}

.map-tip {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid #e8e8e8;
}

.map-container {
  flex: 1;
  width: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden !important;
  isolation: isolate;
  contain: layout style paint;
}

/* 确保地图canvas不会溢出 */
.map-container canvas,
.map-container .amap-layer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  box-sizing: border-box !important;
}

/* 确保地图容器内的所有元素都被限制 */
.map-container > div {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* 确保模态框内容不会溢出 */
.map-modal-content {
  contain: layout style paint;
  will-change: transform;
}

/* 防止地图元素出现在模态框外 */
.map-modal:not([style*="flex"]) .map-container,
.map-modal[style*="none"] .map-container {
  display: none !important;
}

.map-modal:not([style*="flex"]) canvas,
.map-modal[style*="none"] canvas {
  display: none !important;
  visibility: hidden !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .map-modal-content {
    width: 95%;
    height: 90vh;
  }

  .map-modal-header {
    padding: 15px 20px;
  }

  .map-search-panel {
    padding: 15px 20px;
  }

  .map-search-group {
    flex-direction: column;
  }

  .map-search-btn {
    width: 100%;
  }

  .map-search-result-list {
    max-height: 200px;
  }

  .map-modal-buttons {
    flex-direction: column;
  }

  .map-btn {
    width: 100%;
  }
}