.person-item {
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  position: absolute;
  /* left: 0;
  top: 0; */
  z-index: 2000;
}

/* ===== ä¸»å®¹å™¨ï¼ˆå›ºå®šåœ¨å³ä¾§ï¼‰ ===== */
/* =========================
   å®¹å™¨å…œåº•ï¼ˆä¸åžç‚¹å‡»ï¼‰
========================= */
#main-container {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999999;
  pointer-events: auto; /* ðŸ”¥ å…³é”® */
}

/* =========================
   æŠ½å±‰ä¸»ä½“
========================= */
#input-container {
  width: 320px;
  max-height: 90vh;
  background: #1B2238;
  border-radius: 14px 0 0 14px;
  box-shadow: -10px 0 30px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  overflow: visible; /* ðŸ”¥ ä¸è£å‰ª */
  transition: transform .3s ease;
}

/* æ”¶èµ·ï¼šåªéœ² 40px */
#input-container.container-collapsed {
  transform: translateX(220px);
}

/* =========================
   é¡¶éƒ¨ Headerï¼ˆå¯ç‚¹å‡»ï¼‰
========================= */
.modern-panel-header {
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #232C4A;
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  user-select: none;
}

.modern-panel-icon {
  width: 80px;
  height: 30px;
  border-radius: 8px;
  background: #6B7CFF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.modern-panel-title {
  color: #E6ECFF;
  font-size: 14px;
  font-weight: 600;
}

/* =========================
   å†…å®¹åŒºï¼ˆå¯æ»šåŠ¨ï¼‰
========================= */
#menuContent {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* =========================
   é¡¶éƒ¨ Tabs
========================= */
.modern-tabs {
  display: flex;
  background: #232C4A;
  flex-shrink: 0;
  margin-bottom:5px;
  border-radius: 8px;
}

.modern-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: #9AA7FF;
  cursor: pointer;
  position: relative;
}

.modern-tab.active {
  color: #E6ECFF;
}

.modern-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: #6B7CFF;
}

/* =========================
   Tab å†…å®¹
========================= */
.modern-tab-content {
  display: none;
}

.modern-tab-content.active {
  display: block;
}

/* =========================
   æ¨¡å—å¡ç‰‡
========================= */
.modern-section {
  background: #2A3560;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.modern-section-title {
  font-size: 18px;
  color: #9AA7FF;
  margin-bottom: 8px;
}


/* =========================
   è¾“å…¥æ¡†ï¼ˆåµŒå…¥å¼ï¼‰
========================= */
.modern-section input[type="text"] {
  width: 100%;
  height: 32px;
  background: #1B2238;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  color: #E6ECFF;
  padding: 0 10px;
  outline: none;
  box-sizing: border-box;
}

.modern-section input::placeholder {
  color: rgba(255,255,255,.35);
}

/* =========================
   æŒ‰é’®ï¼ˆä¿è¯å¯ç‚¹ï¼‰
========================= */
.modern-section button {
  width: 100%;
  height: 34px;
  margin-top: 8px;
  background: #6B7CFF;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.modern-section button.secondary {
  background: rgba(255,255,255,.15);
}

/* =========================
   è¿žæŽ¥çŠ¶æ€
========================= */
.connection-status {
  margin-top: 6px;
  font-size: 12px;
  color: #FF8A8A;
}

.connection-status.connected {
  color: #4FD1C5;
}

/* =========================
   Switchï¼ˆæ˜¾ç¤ºç±»å¼€å…³ï¼‰
========================= */
.modern-switch {
  width: 40px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,.25);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.modern-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
}

.modern-switch.active {
  background: #4FD1C5;
}

.modern-switch.active::after {
  left: 22px;
}

/* =========================
   è¡Œå¸ƒå±€ï¼ˆçŽ©å®¶ / ç‰©èµ„ï¼‰
========================= */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #E6ECFF;
  font-size: 13px;
}

/* æ¯ä¸€è¡Œè®¾ç½®é¡¹ */
.modern-control-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.modern-control-label {
  font-size: 14px;
  color: #9AA7FF;
  margin-bottom: 8px;
}

.modern-control-item .modern-switch {
  flex-shrink: 0;
}

.modern-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.modern-section-header span {
  font-size: 14px;
}

.modern-section-header .modern-section-title {
  margin: 0;
}

.modern-status-text {
  font-size: 14px;
  color: #ff0000;
  margin-bottom: 8px;
}

/* ç»˜åˆ¶å›¾æ ‡  */
.person-icon {
  position: relative;
  transform-origin: 50% 50%;
}

.person-icon img {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: translateZ(0);
}

/*.person-label {*/
/*  position: absolute;*/
/*  bottom: -14px;*/
/*  left: 50%;*/
/*  transform: translateX(-50%);*/
/*  font-size: 12px;*/
/*  color: #fff;*/
/*  font-weight: bold;*/
/*  text-shadow: 0 0 4px #000;*/
/*  pointer-events: none;*/
/*}*/

.person-label {
  margin-top: 2px;         /* å›¾ç‰‡å’Œæ–‡å­—é—´è· */
  font-size: 10px;
  color: #76ff81;
  font-weight: bold;
  text-shadow: 0 0 2px #000;
  pointer-events: none;
  white-space: nowrap;
}

.weapon-text, .handle-text {
  margin-top: 2px;         /* å›¾ç‰‡å’Œæ–‡å­—é—´è· */
  font-size: 10px;
  color: #76ff81;
  font-weight: bold;
  text-shadow: 0 0 2px #000;
  pointer-events: none;
  white-space: nowrap;
}

/* äººç‰©tipæ ·å¼ */
.person-tooltip {
  background-color: rgba(0, 0, 0, 0.8);
  color: #76ff81;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 2px #000;
  border: none;
  pointer-events: none;
}
