/* 玩家标记样式 */
  .player-marker {
  position: relative;
  width: 24px;
  height: 24px;
  /* 创建独立的层叠上下文，防止外部元素干扰 */
  isolation: isolate;
  z-index: 1;
  }

  
  .player-marker-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    z-index: 3;  /* 提高层级，确保在arrow上面 */
  }
  
  .team-id {
    position: relative;
    z-index: 4;
  }
  
  .player-marker-arrow {
    position: absolute;
    top: -8px;
    left: 8px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 10px solid;
    transform-origin: center 20px;
    z-index: 2;  /* 比circle低，比背景高 */
}
  
  .hero-id {
    position: absolute;
    z-index: 1;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    color: #e6e6e6;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 4px;
    padding: 0 3px;
    white-space: nowrap;
  }
  .Height {
    position: absolute;
    z-index: 1;
    bottom: -52px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    color: #e6e6e6;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 4px;
    padding: 0 3px;
    white-space: nowrap;
  }
  .ADDINFOWeapon {
    position: absolute;
    z-index: 1;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    color: #e6e6e6;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 4px;
    padding: 0 3px;
    white-space: nowrap;
  }
  .ADDINFOHealth {
    position: absolute;
    z-index: 1;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    color: #e6e6e6;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 4px;
    padding: 0 3px;
    white-space: nowrap;
  }
  .ADDINFOEquip {
    position: absolute;
    z-index: 1;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    color: #e6e6e6;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 4px;
    padding: 0 3px;
    white-space: nowrap;
  }
  .Heightdead {
      position: absolute;
      z-index: 1;
      bottom: -20px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 10px;
      font-weight: bold;
      text-align: center;
      color: #e6e6e6;
      background: rgba(40, 40, 40, 0.5);
      border-radius: 4px;
      padding: 0 3px;
      white-space: nowrap;
  }
  
  .ADDINFOdead {
      position: absolute;
      z-index: 1;
      bottom: 0px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 10px;
      font-weight: bold;
      text-align: center;
      color: #e6e6e6;
      background: rgba(40, 40, 40, 0.5);
      border-radius: 4px;
      padding: 0 3px;
      white-space: nowrap;
  }
  
  /* 调整弹出框样式 */
  .player-popup {
    font-size: 12px;
    line-height: 1.4;
    min-width: 180px;
  }
  
  .player-popup strong {
    display: inline-block;
    width: 70px;
  }
  
  .player-popup .team-info {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
    margin-left: 5px;
  }
  
  
  /* 信息弹出框样式 */
  .player-popup, .item-popup {
    font-size: 12px;
    line-height: 1.4;
    min-width: 150px;
  }
  
  .item-popup strong {
    display: inline-block;
    width: 60px;
  }
  
  /* 状态指示器 */
  #connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
  }
  
  #connection-status.connected {
    background-color: #2ecc71;
    color: white;
  }
  
  #connection-status.disconnected {
    background-color: #e74c3c;
    color: white;
  }
  
  /* 新右上角样式 */
  #map-info {
    position: fixed;
    top: 20px;    /* 距离顶部20像素 */
    right: 20px;   /* 距离右侧20像素 */
    padding: 8px 12px;
    border-radius: 4px;
    background-color: rgba(52, 73, 94, 0.8); /* 半透明背景 */
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1000; /* 确保显示在最上层 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* 添加阴影 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 细边框 */
  }
  
  /* 玩家跟随控制面板样式 */
  .player-follow-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(52, 73, 94, 0.9);
    border-radius: 8px;
    padding: 12px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: Arial, sans-serif;
    min-width: 120px;
  }
  
  .follow-title {
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
  }
  
  .follow-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .follow-btn {
    background-color: rgba(52, 152, 219, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 24px;
    text-align: center;
  }
  
  .follow-btn:hover {
    background-color: rgba(52, 152, 219, 1);
    transform: translateY(-1px);
  }
  
  .follow-btn.active {
    background-color: rgba(46, 204, 113, 0.9);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
  }
  
  .follow-btn.follow-off {
    background-color: rgba(231, 76, 60, 0.8);
  }
  
  .follow-btn.follow-off:hover {
    background-color: rgba(231, 76, 60, 1);
  }
  
  .follow-btn.follow-off.active {
    background-color: rgba(231, 76, 60, 0.9);
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
  }
  
  /* 大厅状态样式 */
  .lobby-status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4e4e4e, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    font-family: Arial, sans-serif;
  }
  
  .lobby-content {
    text-align: center;
    color: white;
    animation: lobbyPulse 2s ease-in-out infinite alternate;
  }
  
  .lobby-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: lobbyFloat 3s ease-in-out infinite;
  }
  
  .lobby-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .lobby-subtitle {
    font-size: 18px;
    opacity: 0.8;
    animation: lobbyFade 2s ease-in-out infinite alternate;
  }
  
  @keyframes lobbyPulse {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.05);
    }
  }
  
  @keyframes lobbyFloat {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  @keyframes lobbyFade {
    0% {
      opacity: 0.6;
    }
    100% {
      opacity: 1;
    }
  }
  
  #map-info div {
    margin: 4px 0;
    white-space: nowrap; /* 防止文字换行 */
  }
  
  
  /* 完整文本标记样式 */
  .text-marker {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .item-text-container {
    display: flex;
    align-items: baseline; /* 基线对齐 */
    justify-content: center;
    line-height: 1;
    gap: 4px;
    white-space: nowrap;
  }
  
  .item-name {
    font-size: 12px;
    font-weight: bold;
    text-shadow: 
        -1px -1px 1px rgba(0, 0, 0, 0.7),  
        1px -1px 1px rgba(0, 0, 0, 0.7),
        -1px 1px 1px rgba(0, 0, 0, 0.7),
        1px 1px 1px rgba(0, 0, 0, 0.7); /* 更强的黑色描边 */
    letter-spacing: 0.5px;
  }
  
  .item-level {
    font-size: 10px;
    font-weight: bold;
    text-shadow: 
        -1px -1px 1px rgba(0, 0, 0, 0.7),  
        1px -1px 1px rgba(0, 0, 0, 0.7),
        -1px 1px 1px rgba(0, 0, 0, 0.7),
        1px 1px 1px rgba(0, 0, 0, 0.7);
    position: relative;
    top: -1px; /* 微调垂直位置 */
  }
  
  /* 弹出框样式保持不变 */
  .item-popup {
    font-size: 12px;
    line-height: 1.4;
    min-width: 180px;
  }
  
  .item-popup strong {
    display: inline-block;
    width: 50px;
  }
  
  .map-text-marker {
    background: none !important;
    border: none !important;
  }
  
  .map-text {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    text-shadow: 
        -1px -1px 1px rgba(0, 0, 0, 0.7),  
        1px -1px 1px rgba(0, 0, 0, 0.7),
        -1px 1px 1px rgba(0, 0, 0, 0.7),
        1px 1px 1px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1;
  }
  
  .map-text-level {
    font-size: 0.8em;
    margin-left: 4px;
    opacity: 0.9;
  }
  
  /* 投掷物落点标记样式 */
  .throw-marker {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .throw-target {
    position: relative;
    width: 40px;
    height: 40px;
    animation: throwPulse 1.5s ease-in-out infinite;
  }
  
  .throw-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 3px solid #ff4444;
    border-radius: 50%;
    box-shadow: 
      0 0 10px rgba(255, 68, 68, 0.8),
      0 0 20px rgba(255, 68, 68, 0.6),
      inset 0 0 10px rgba(255, 68, 68, 0.3);
    animation: throwRotate 2s linear infinite;
  }
  
  .throw-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #ff4444;
    border-radius: 50%;
    box-shadow: 
      0 0 8px rgba(255, 68, 68, 1),
      0 0 15px rgba(255, 68, 68, 0.8);
    z-index: 2;
  }
  
  .throw-height {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 
      -1px -1px 2px rgba(0, 0, 0, 0.9),
      1px -1px 2px rgba(0, 0, 0, 0.9),
      -1px 1px 2px rgba(0, 0, 0, 0.9),
      1px 1px 2px rgba(0, 0, 0, 0.9),
      0 0 8px rgba(255, 68, 68, 0.8);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 68, 68, 0.5);
  }
  
  @keyframes throwPulse {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.1);
      opacity: 0.9;
    }
  }
  
  @keyframes throwRotate {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }