/* 全站公共样式 */

/* 颜色变量 */

:root {
  --primary: #225EA5;
  --primary-100: #F2F6FF;
  --primary-200: #DBEBFF;
  --primary-300: #B5D8FF;
  --primary-400: #557FB1;
  --primary-500: #225EA5;
  --primary-600: #114e96;
  --black: #000000;
  --gray: #666666;
  --gray-700: #333333;
  --gray-500: #999999;
  --gray-300: #dcdcdc;
  --gray-100: #f4f4f4;
}

/* 基础样式 */

body {
  /* font-family: 'San Francisco', PingFang, 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; */
  /* font-family: 'Microsoft YaHei', '微软雅黑', Arial, "SF Mono", "Menlo", "Courier New", Courier, monospace; */
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;

  color: #000000;
  background: url('/szcdc/assets/img_top2.png') repeat-x;
  background-color: #f4f4f4;

  /* -webkit-animation-duration: 0s;
  animation-duration: 0s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both; */

  /* -webkit-animation-delay: 1s;
  animation-delay: 1s; */

  /* -webkit-animation-name: fadeIn;
  animation-name: fadeIn */
}

@keyframes fadeIn {
  0% {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

a {
  -webkit-text-decoration: none;
  text-decoration: none;
  color: #000000;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

a:hover {
  color: #225EA5;
}

.ie-flex-4 { /* IE10 */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;  /* gap-x/2 * -1 */
  margin-right: -10px;
}

.ie-flex-4 > * {
  flex: 0 0 50%;
  padding: 10px;
}

.line-clamp-4 {
  position: relative;
  overflow: hidden;
  line-height: 42px;
  max-height: calc(42px * 4);
}

.line-clamp-4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,0)), to(#fff));
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

@media (min-width: 1024px) {
  
  .lg\:line-clamp-7 {
    position: relative;
    overflow: hidden;
    line-height: 42px;
    max-height: calc(42px * 7);
  }

  .lg\:line-clamp-7::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,0)), to(#fff));
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  }
}

/* 地图容器样式 */

.map-container {
  position: relative;
  flex: 1;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafe 0%, #e8f4ff 100%);
}

.amap-container {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* 地图加载动画 */

.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.map-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e8f4ff;
  border-top: 4px solid #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

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

.map-loading .loading-text {
  color: #4a90e2;
  font-size: 14px;
  font-weight: 500;
}

/* 左下角点位列表浮层样式 */

.map-points-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1;
  width: 320px;
  max-height: 180px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.map-points-overlay.expanded {
  max-height: 420px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.map-overlay-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
  position: relative;
  cursor: pointer;
}

.map-overlay-header:hover {
  background: #F2F6FF;
}

.map-overlay-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
}

.expand-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: #B5D8FF;
  z-index: 1;
}

.map-overlay-header:hover .expand-btn {
  background: #225EA5;
  transform: scale(1.1);
}

.expand-btn img {
  width: 18px;
  height: 18px;
  transition: transform 0.4s ease;
  filter: brightness(0) invert(1);
  transform: rotate(90deg);
}

.map-points-overlay.expanded .expand-btn {
  transform: rotate(180deg);
}

.overlay-title {
  font-size: 15px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.map-overlay-header:hover .overlay-title {
  color: #225EA5;
}

.overlay-content {
  max-height: 120px;
  overflow-y: auto;
  background: white;
}

.map-points-overlay.expanded .overlay-content {
  max-height: 240px;
}

.overlay-content::-webkit-scrollbar {
  width: 4px;
}

.overlay-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.overlay-content::-webkit-scrollbar-thumb {
  background-color: #f4f4f4;
  border-radius: 2px;
}

.overlay-content::-webkit-scrollbar-thumb:hover {
  background-color: #dcdcdc;
}

.points-list {
  padding: 0;
  margin: 0;
}

.point-item {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.point-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.point-item:last-child {
  border-bottom: none;
}

.point-item:hover {
  background: linear-gradient(135deg, #f8fafe 0%, #e8f4ff 100%);
  padding-left: 22px;
}

.point-item:hover::before {
  transform: scaleX(1);
}

.point-item.active {
  background: linear-gradient(135deg, #e8f4ff 0%, #d0e7ff 100%);
  padding-left: 22px;
  box-shadow: inset 0 2px 4px rgba(74, 144, 226, 0.1);
}

.point-item.active::before {
  transform: scaleX(1);
}

.point-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.point-item:hover .point-name,
.point-item.active .point-name {
  color: #4a90e2;
}

.point-address {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.point-item:hover .point-address,
.point-item.active .point-address {
  color: #5a5a5a;
}

.no-data {
  padding: 30px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
  background: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.no-data::before {
  content: '📍';
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.map-category-item:hover,
.map-category-item.active {
  background-color: #225EA5;
  color: white;
}

.map-category-item:nth-child(1) .map-category-icon {
  background-image: url('/szcdc/assets/icon_map1.png');
}

.map-category-item:nth-child(1):hover .map-category-icon,
.map-category-item:nth-child(1).active .map-category-icon {
  background-image: url('/szcdc/assets/icon_map5.png');
}

.map-category-item:nth-child(2) .map-category-icon {
  background-image: url('/szcdc/assets/icon_map2.png');
}

.map-category-item:nth-child(2):hover .map-category-icon,
.map-category-item:nth-child(2).active .map-category-icon {
  background-image: url('/szcdc/assets/icon_map6.png');
}

.map-category-item:nth-child(3) .map-category-icon {
  background-image: url('/szcdc/assets/icon_map3.png');
}

.map-category-item:nth-child(3):hover .map-category-icon,
.map-category-item:nth-child(3).active .map-category-icon {
  background-image: url('/szcdc/assets/icon_map7.png');
}

.map-category-item:nth-child(4) .map-category-icon {
  background-image: url('/szcdc/assets/icon_map4.png');
}

.map-category-item:nth-child(4):hover .map-category-icon,
.map-category-item:nth-child(4).active .map-category-icon {
  background-image: url('/szcdc/assets/icon_map8.png');
}

.map-region-item::before {
  /* content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  transform: scaleX(0);
  transition: transform 0.2s ease; */
}

.map-region-item:hover {
  background: linear-gradient(135deg, #f8fafe 0%, #e8f4ff 100%);
  /* padding-left: 16px; */
}

.map-region-item:hover::before {
  /* transform: scaleX(1); */
}


