/* Global Locations 页面样式 */
.map-section {
  padding-top: 180px;
  padding-bottom: 40px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  background: white;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.map-container {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
  max-width: 90%;
  padding: 0;
}

.world-map {
  width: 100%;
  height: auto;
  max-height: 85vh;
  min-height: 650px;
  border-radius: 0;
  box-shadow: none;
  display: block;
  position: relative;
  z-index: 1;
  object-fit: contain;
  margin-left: 0;
}

.map-svg {
  width: 100%;
  height: auto;
  max-height: 85vh;
  min-height: 650px;
  display: block;
  position: relative;
  z-index: 2;
  margin-left: 0;
}

/* SVG标记点样式 */
.location-marker {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0.1;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1;
  pointer-events: all;
}

.location-pulse {
  fill: none;
  stroke: #ff6b6b;
  stroke-width: 0.05;
  opacity: 0.6;
  animation: svgPulse 2s infinite;
}

@keyframes svgPulse {
  0% {
    stroke-width: 0.05;
    opacity: 0.6;
  }

  50% {
    stroke-width: 0.15;
    opacity: 0.3;
  }

  100% {
    stroke-width: 0.05;
    opacity: 0.6;
  }
}

.marker-hovered {
  transform-origin: center;
  animation: none !important;
}

/* 确保location-group可以接收鼠标事件 */
.location-group {
  cursor: pointer;
  pointer-events: all;
}

/* 不同办公室的颜色 - 保持透明但可交互 */
.marker-shanghai {
  fill: transparent;
  opacity: 1;
  cursor: pointer;
}

.marker-hangzhou {
  fill: transparent;
  opacity: 1;
  cursor: pointer;
}

.marker-guangzhou {
  fill: transparent;
  opacity: 1;
  cursor: pointer;
}

.marker-hongkong {
  fill: transparent;
  opacity: 1;
  cursor: pointer;
}

.marker-indonesia {
  fill: transparent;
  opacity: 1;
  cursor: pointer;
}

.marker-vietnam {
  fill: transparent;
  opacity: 1;
  cursor: pointer;
}

.marker-singapore {
  fill: transparent;
  opacity: 1;
  cursor: pointer;
}

.marker-thailand {
  fill: transparent;
  opacity: 1;
  cursor: pointer;
}

.marker-malaysia {
  fill: transparent;
  opacity: 1;
  cursor: pointer;
}

.marker-shanghai.location-pulse {
  stroke: transparent;
  opacity: 0;
}

.marker-hangzhou.location-pulse {
  stroke: transparent;
  opacity: 0;
}

.marker-guangzhou.location-pulse {
  stroke: transparent;
  opacity: 0;
}

.marker-hongkong.location-pulse {
  stroke: transparent;
  opacity: 0;
}

.marker-indonesia.location-pulse {
  stroke: transparent;
  opacity: 0;
}

.marker-vietnam.location-pulse {
  stroke: transparent;
  opacity: 0;
}

.marker-singapore.location-pulse {
  stroke: transparent;
  opacity: 0;
}

.marker-thailand.location-pulse {
  stroke: transparent;
  opacity: 0;
}

.marker-malaysia.location-pulse {
  stroke: transparent;
  opacity: 0;
}

.global-icons-section {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  padding: 15px 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.global-icons-container {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.icon-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  position: relative;
}

.icon-item img {
  transition: transform 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  pointer-events: none;
  width: 24px;
  height: 24px;
}

.icon-item:hover img {
  transform: scale(1.1);
}

.icon-label {
  font-size: 1.125rem;
  color: #000;
  font-weight: normal;
  font-family: SuisseBPIntl-Normal-edi, SourceHanSansSC-Regular;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  position: relative;
  top: 8px;
}

.global-expansion-text {
  padding-bottom: 5rem;
  background: white;
  display: flex;
  justify-content: center;
}

.global-expansion-text p {
  width: 64.5rem;
  margin: 0;
  font-size: 1.375rem;
  line-height: 2.375rem;
  color: #000;
  font-family: SuisseBPIntl-Normal-edi, SourceHanSansSC-Regular;
  text-align: left;
}

/* Canvas标记点样式已移至JavaScript中实现 */

.tooltip {
  position: fixed !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  z-index: 999999 !important;
  width: 280px !important;
  max-width: calc(100vw - 40px) !important;
  min-height: 60px !important;
  height: auto !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  word-wrap: break-word !important;
  backdrop-filter: blur(10px) !important;
}

/* 测试用的固定位置tooltip */
.tooltip-test {
  position: fixed;
  top: 100px;
  left: 100px;
  background: red;
  color: white;
  padding: 20px;
  z-index: 99999;
  display: block;
}

/* 强制显示tooltip用于调试 */
.tooltip-debug {
  position: fixed;
  top: 50px;
  left: 50px;
  background: yellow;
  color: black;
  padding: 20px;
  z-index: 99999;
  display: block !important;
  border: 3px solid red;
}

/* 连接线效果已移至Canvas中实现 */

.tooltip h4 {
  margin: 0 0 12px 0;
  font-size: 17px;
  font-weight: 600;
  color: #2c3e50;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

.tooltip p {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: #34495e;
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tooltip strong {
  color: #2c3e50;
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
  margin-right: 4px;
}

/* Address文本样式 - 使用两列布局 */
.tooltip p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0 0;
}

.tooltip strong {
  color: #2c3e50;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  min-width: fit-content;
}

.tooltip .address-text {
  font-size: 13px;
  color: #666;
  font-weight: normal;
  line-height: 1.6;
  flex: 1;
  text-align: left;
}

/* 两列布局不需要特殊的语言处理 */

.offices-section {
  padding: 40px 5% 80px;
  width: 100%;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: 600;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.office-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #667eea;
}

.office-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}



.office-title {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

/* 使用Flexbox布局优化地址对齐 */
.office-info p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.office-info strong {
  color: #333;
  font-weight: 600;
  flex-shrink: 0;
  min-width: fit-content;
}

.office-info .address-content {
  flex: 1;
  line-height: 1.6;
}

/* 响应式设计 */
@media (min-width: 1200px) {
  .map-container {
    max-width: 85%;
    padding: 0;
  }
}

@media (min-width: 1600px) {
  .map-container {
    max-width: 80%;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .global-icons-section {
    bottom: 15px;
    padding: 12px 20px;
  }

  .global-icons-container {
    gap: 30px;
  }

  .icon-item {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .icon-item img {
    width: 20px;
    height: 20px;
  }

  .icon-label {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
  }

  .map-section {
    padding-top: 120px;
    padding-bottom: 30px;
    padding-left: 0;
    padding-right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .map-container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .world-map {
    max-height: 55vh;
    min-height: 350px;
    width: 100%;
    margin-left: 0;
  }

  .map-svg {
    max-height: 55vh;
    min-height: 350px;
    width: 100%;
    margin-left: 0;
  }

  .global-expansion-text {
    padding-bottom: 2.8125rem;
  }

  .global-expansion-text p {
    width: auto;
    margin: 0 2.1875rem;
    font-size: 0.75rem;
    line-height: 1.5rem;
  }

  .tooltip {
    width: 200px !important;
    min-height: 45px;
    padding: 12px 14px !important;
  }

  .tooltip h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .tooltip p {
    font-size: 11px;
    margin: 6px 0;
  }

  .tooltip .address-text {
    font-size: 11px;
  }

  .tooltip strong {
    font-size: 11px;
  }



  .offices-section {
    padding: 30px 4% 60px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .offices-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .office-card {
    padding: 20px;
  }

  .office-title {
    font-size: 1.2rem;
  }

  .office-info p {
    font-size: 0.9rem;
    gap: 6px;
  }
}

@media (min-width: 1400px) {
  .map-section {
    padding-top: 220px;
  }
}

@media (min-width: 1800px) {
  .map-section {
    padding-top: 260px;
  }

  .world-map {
    min-height: 750px;
  }

  .map-svg {
    min-height: 750px;
  }
}

@media (max-width: 480px) {
  .global-icons-section {
    bottom: 10px;
    padding: 10px 15px;
  }

  .global-icons-container {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .icon-item {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .icon-item img {
    width: 18px;
    height: 18px;
  }

  .icon-label {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .office-card {
    padding: 15px;
  }

  .office-title {
    font-size: 1.1rem;
  }
}