html {
  scroll-behavior: smooth;
}

.container {
  width: 75%;
  margin: 0 auto;
}

/* 地图区域 */
.map-section {
  width: 100%;
  margin: 0.5rem 0;
  position: relative;
}

.map-wrapper {
  position: relative;
  width: 100%;
}

.world-map {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.1) saturate(0.8);
}

/* 大洲高亮图片 */
.continent-highlights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.continent-img {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  /* 使用百分比定位，相对于地图容器 */
}

.continent-img.active {
  opacity: 1;
}

/* 大洲图片定位 - 使用百分比确保响应式 */
/* 亚洲：覆盖中国、新加坡所在区域 */
.continent-asia {
    width: 47%;
    height: auto;
    top: 0%;
    left: 16.5%;
}

/* 非洲：覆盖几内亚所在区域 */
.continent-africa {
    width: 27.08%;
    height: auto;
    top: 28%;
    left: -0.2%;
}

/* 南美洲：覆盖秘鲁、巴西所在区域 */
.continent-southamerica {
width: 18.2%;
    height: auto;
    top: 47%;
    left: 82%;
}
/* 地图标记点 */
.map-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.marker-dot {
  width: 0.3rem;
  height: 0.3rem;
  background-color: #c62d27;
  border-radius: 50%;
  border: 0.03rem solid #fff;
  box-shadow: 0 0.02rem 0.08rem rgba(14, 50, 130, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.marker-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.35rem;
  height: 0.35rem;
  background-color: rgba(14, 50, 130, 0.2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.marker-label {
  font-size: 0.24rem;
  color: #0e3282;
  text-align: center;
  margin-top: 0.08rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.map-marker:nth-child(1){
  top: 52%;
    left: 8%;
}
.map-marker:nth-child(2){
    top: 29%;
    left: 48%;
}

.map-marker:nth-child(3){
top: 57%;
    left: 47%;
}
.map-marker:nth-child(4){
    top: 68%;
    left: 86%;
}
.map-marker:nth-child(5){
    top: 61%;
    left: 93%;
}
/* 激活状态的地图标记 */
.map-marker.active .marker-dot {
  background-color: #0e3282;
  box-shadow: 0 0.02rem 0.12rem rgba(14, 50, 130, 0.6);
  transform: scale(1.2);
}

.map-marker.active .marker-label {
  color: #0e3282;
  font-weight: 700;
  font-size: 0.24rem;
}

/* 国家选择按钮 */
.country-tabs {
  display: flex;
  justify-content: space-between;
  gap: 0.2rem;
  margin: 0.4rem 0;
  flex-wrap: wrap;
}

.country-tab {
padding: 0.1rem 0.9rem;
    border: 0.01rem solid #0e3282;
    background: #fff;
    color: #0e3282;
    font-size: 0.21rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    min-width: 1.2rem;
}

.country-tab:hover {
  background: rgba(14, 50, 130, 0.1);
}

.country-tab.active {
  background: #0e3282;
  color: #fff;
}

/* 国家内容区域 */
.country-content {
  margin: 0.5rem 0 1rem 0;
}

.country-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.country-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 国家介绍 */
.country-intro {
  margin-bottom: 0.5rem;
}

.country-title {
font-size: 0.24rem;
    color: #0e3282;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.intro-text {
  font-size: 0.16rem;
  color: #333;
  line-height: 0.4rem;
  margin-bottom: 0.15rem;
  text-align: justify;
  color: #0e3282;
}

/* 城市列表 */
.city-list {
  margin-top: 0.4rem;
}

.list-title {
  font-size: 0.19rem;
  color: #0e3282;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
  border-left: 0.04rem solid #d80c18;
}

.city-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.18rem;
}

.city-table thead {
  background: #e8e8e8;
}

.city-table th {
  padding: 0.12rem 0.1rem;
  text-align: left;
  color: #333;
  font-weight: 600;
  border-bottom: 0.01rem solid #d0d0d0;
}

.city-table td {
  padding: 0.12rem 0.1rem;
  color: #666;
  border-bottom: 0.01rem solid #f0f0f0;
  line-height: 0.5rem;
}

.city-table tbody tr:hover {
  background: #f8f9fa;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .country-tabs {
    gap: 0.1rem;
  }
  
  .country-tab {
    padding: 0.08rem 0.25rem;
    font-size: 0.14rem;
    min-width: 1rem;
  }
  
  .city-table {
    font-size: 0.12rem;
  }
  
  /* 平板端地图标记点微调 */
  .map-marker:nth-child(1) {
    top: 30%;
    left: 47%;
  }
  .map-marker:nth-child(2) {
    top: 56%;
    left: 46%;
  }
  .map-marker:nth-child(3) {
    top: 53%;
    left: 9%;
  }
  .map-marker:nth-child(4) {
    top: 67%;
    left: 85%;
  }
  .map-marker:nth-child(5) {
    top: 62%;
    left: 92%;
  }
  
  /* 平板端大洲图片微调 */
  .continent-asia {
    width: 33%;
    top: 6%;
    left: 44%;
  }
  .continent-africa {
    width: 19%;
    top: 36%;
    left: 6%;
  }
  .continent-southamerica {
    width: 17%;
    top: 51%;
    left: 74%;
  }
}

@media (max-width: 768px) {
  .container {
    width: 90%;
  }
  
  .marker-label {
    font-size: 0.12rem;
  }
  
  .country-tabs {
    gap: 0.08rem;
  }
  
  .country-tab {
    padding: 0.06rem 0.15rem;
    font-size: 0.12rem;
    min-width: 0.8rem;
  }
  
  .country-title {
    font-size: 0.18rem;
  }
  
  .intro-text {
    font-size: 0.13rem;
    line-height: 0.24rem;
  }
  
  .city-table {
    font-size: 0.11rem;
  }
  
  .city-table th,
  .city-table td {
    padding: 0.08rem 0.06rem;
  }
  
  /* 移动端地图标记点微调 */
  .map-marker:nth-child(1) {
    top: 31%;
    left: 46%;
  }
  .map-marker:nth-child(2) {
    top: 55%;
    left: 45%;
  }
  .map-marker:nth-child(3) {
    top: 54%;
    left: 10%;
  }
  .map-marker:nth-child(4) {
    top: 66%;
    left: 84%;
  }
  .map-marker:nth-child(5) {
    top: 63%;
    left: 91%;
  }
  
  /* 移动端大洲图片微调 */
  .continent-asia {
    width: 32%;
    top: 7%;
    left: 43%;
  }
  .continent-africa {
    width: 18%;
    top: 37%;
    left: 7%;
  }
  .continent-southamerica {
    width: 16%;
    top: 52%;
    left: 73%;
  }
  
  /* 移动端标记点缩小 */
  .marker-dot {
    width: 0.2rem;
    height: 0.2rem;
  }
  
  .marker-dot::before {
    width: 0.25rem;
    height: 0.25rem;
  }
}

@media (max-width: 480px) {
  /* 小屏移动端进一步调整 */
  .map-marker:nth-child(1) {
    top: 32%;
    left: 45%;
  }
  .map-marker:nth-child(2) {
    top: 54%;
    left: 44%;
  }
  .map-marker:nth-child(3) {
    top: 55%;
    left: 11%;
  }
  .map-marker:nth-child(4) {
    top: 65%;
    left: 83%;
  }
  .map-marker:nth-child(5) {
    top: 64%;
    left: 90%;
  }
  
  .continent-asia {
    width: 30%;
    top: 8%;
    left: 42%;
  }
  .continent-africa {
    width: 17%;
    top: 38%;
    left: 8%;
  }
  .continent-southamerica {
    width: 15%;
    top: 53%;
    left: 72%;
  }
}