/* Global Map Styles */
.global-map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem 0;
}

/* 在Worldwide Service Network标题下方添加与Development History相同的样式和交互效果 */
.global-presence-section {
  position: relative;
  padding-top: 2rem; /* 确保位置正确 */
}

/* 已移除板块顶部的装饰性渐变线条 */

/* 为Worldwide Service Network标题添加悬停显示的线条效果，与Development History板块保持一致 */
.global-presence-section .text-center {
  position: relative;
}

.global-presence-section .text-center span {
  display: block;
  margin-bottom: 0.5rem;
}

.global-presence-section h2 {
  position: relative;
  display: inline-block;
  margin-top: 0;
}

.global-presence-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: #00476B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-presence-section:hover h2::after {
  transform: scaleX(1);
}

.world-map {
  width: 100%;
  height: auto;
  display: block;
}

/* Map Markers */
.map-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  pointer-events: all;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: transform 0.3s ease;
  z-index: 10;
}

.map-marker:hover {
  transform: translate(-50%, -100%) scale(1.2);
}

.map-marker-icon {
  background-color: var(--color-primary);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
}

.map-marker-icon::after {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-top: 0.5rem solid var(--color-primary);
}

/* Map Lines */
.map-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.map-line {
  position: absolute;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.8) 50%, rgba(59, 130, 246, 0) 100%);
  height: 1px;
  transform-origin: 0 0;
  opacity: 0.5;
  z-index: 5;
}

/* Marker Popups */
.marker-popup {
  position: absolute;
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.map-marker:hover .marker-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0.25rem);
}

.marker-popup::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-bottom: 0.5rem solid white;
}

.marker-popup h4 {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.marker-popup p {
  font-size: 0.875rem;
  color: var(--color-dark);
  margin: 0;
}

/* Headquarters Marker */
.marker-headquarters .map-marker-icon {
  background-color: var(--color-accent);
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  animation: pulse 2s infinite;
}

.marker-headquarters .map-marker-icon::after {
  border-top-color: var(--color-accent);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
  }
  100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }
}

/* Data Cards */
.global-data-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.data-card {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.data-icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 2.5rem;
}

.data-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.data-label {
  font-size: 1.125rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  font-weight: 500;
}

.data-description {
  font-size: 1rem;
  color: #64748b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .global-map-container {
    padding: 1rem 0;
  }
  
  .global-data-cards {
    gap: 1rem;
  }
  
  .data-card {
    padding: 1.5rem;
  }
  
  .data-icon {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
  }
  
  .data-value {
    font-size: 1.75rem;
  }
  
  .marker-popup {
    min-width: 150px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .map-marker-icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.875rem;
  }
  
  .marker-headquarters .map-marker-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}