
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {

  color: #333;

}

.containers {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem;
}


h1 {
  color: #1565c0;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  color: #757575;
  font-size: 0.9rem;
  text-align: center;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .content {
    flex-direction: row;
  }

  .map-container {
    flex: 3;
  }

  .info-container {
    flex: 2;
  }
}

/* ����ͼ������ʽ */
.map-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  overflow: hidden;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.map-image {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

/* ��ͼ��ǵ���ʽ */
.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.marker-dot {
  width: 8px;
  height: 8px;
  background-color: #1976d2;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.marker:hover .marker-dot {
  background-color: #f44336;
  transform: scale(1.5);
}

.marker.active .marker-dot {
  background-color: #f44336;
  transform: scale(1.5);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(244, 67, 54, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
  }
}

.marker-label {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.marker:hover .marker-label {
  opacity: 1;
}

.marker.active .marker-label {
  opacity: 1;
  background-color: #f44336;
  color: white;
}

/* �Ҳ���Ϣչʾ������ʽ */
.info-container {
  min-height: 700px; /* ƥ���ͼ�߶� */
}

.info-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.placeholder-icon {
  color: #bdbdbd;
  margin-bottom: 1rem;
}

.info-placeholder h3 {
  color: #616161;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-placeholder p {
  color: #9e9e9e;
  font-size: 0.9rem;
}

.info-content {
  height: 100%;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-header {
  background-color: #1565c0;
  color: white;
  padding: 1rem 1.5rem;
}

.info-header h2 {
  font-size: 1.5rem;
}

.info-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.info-image {
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.info-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-section h3 {
  color: #1565c0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.25rem;
}

.info-section p {
  color: #616161;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-section ul {
  list-style-position: inside;
  color: #616161;
  font-size: 0.95rem;
}

.info-section li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
/* 移动端适配样式 */
@media screen and (max-width: 768px) {
  .containers {
    padding: 10px;
  }

  .content {
    flex-direction: column;
  }

  .map-container, .info-container {
    width: 100%;
    margin: 0 0 20px 0;
  }

  .map-container {
    height: 300px;
  }

  .info-container {
    height: auto;
    min-height: 300px;
  }

  .image-gallery {
    height: 200px;
  }

  .gallery-prev, .gallery-next {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .gallery-dot {
    width: 8px;
    height: 8px;
  }

  /* 确保地图在移动端正确显示 */
  #baidu-map {
    width: 100% !important;
    height: 100% !important;
  }

  /* 改善移动端触摸体验 */
  .gallery-prev, .gallery-next, .gallery-dot {
    padding: 10px;
  }

}

/* 百度地图容器必须设置宽高 */
#baidu-map {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* 确保地图容器正确显示 */
.map-wrapper {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5 !important;
  position: relative;
}

/* 地图信息窗口样式 */
.map-info-window {
  padding: 10px;
  max-width: 300px;
}

.map-info-window h3 {
  margin-top: 0;
  color: #f77f18;
}

.map-info-window p {
  margin-bottom: 5px;
}

/* 区域多边形高亮样式 */
.highlighted-area {
  stroke-weight: 2;
  stroke-color: #f77f18;
  stroke-opacity: 0.8;
  fill-color: #f77f18;
  fill-opacity: 0.3;
}

/* 标记点样式 */
.marker-label {
  color: #fff;
  background-color: #f77f18;
  border-radius: 50%;
  border: 2px solid #fff;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* 图片轮播样式 */
.image-gallery {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.gallery-container {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.gallery-item {
  min-width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.gallery-dot.active {
  background-color: #f77f18;
}

.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-prev:hover, .gallery-next:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* 高亮动画效果 */
@keyframes pulse-highlight {
  0% { stroke-opacity: 0.8; fill-opacity: 0.3; }
  50% { stroke-opacity: 1; fill-opacity: 0.5; }
  100% { stroke-opacity: 0.8; fill-opacity: 0.3; }
}

.pulse-animation {
  animation: pulse-highlight 2s infinite;
}

