* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #eee;
  overflow: hidden;
}

/* 登录面板 */
#auth-panel {
  width: 100vw; height: 100vh;
  display: flex; justify-content: center; align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.auth-box {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  width: 90%; max-width: 400px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.auth-box h1 { font-size: 2em; text-align: center; margin-bottom: 5px; }
.subtitle { text-align: center; color: #a0a0c0; margin-bottom: 25px; font-size: 0.9em; }

.tabs { display: flex; margin-bottom: 20px; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,0.3); }
.tab-btn { flex: 1; border: none; padding: 12px; background: transparent; color: #888; cursor: pointer; transition: 0.3s; }
.tab-btn.active { background: #e94560; color: white; }

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form.hidden { display: none; }
.auth-form input, .auth-form textarea, .side-panel input, .side-panel textarea, .side-panel select {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1em;
  outline: none;
}
.auth-form input:focus, .auth-form textarea:focus { border-color: #e94560; }
.auth-form button, .side-panel button {
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #e94560;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}
.auth-form button:hover, .side-panel button:hover { background: #ff6b81; transform: translateY(-2px); }

/* 主面板 */
#main-panel { width: 100vw; height: 100vh; position: relative; }
.top-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1000;
  height: 50px;
  background: rgba(26,26,46,0.9);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo { font-weight: bold; font-size: 1.2em; color: #e94560; }
.user-info { display: flex; align-items: center; gap: 15px; }
.user-info button {
  background: rgba(255,255,255,0.1);
  border: none; color: #fff; padding: 6px 12px;
  border-radius: 8px; cursor: pointer;
}
.user-info button:hover { background: #e94560; }

#map { width: 100%; height: 100%; }

/* 侧边面板 */
.side-panel {
  position: absolute; top: 60px;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  width: 280px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 999;
}
#settings-panel { right: 20px; }
#online-list { left: 20px; }
.side-panel h3 { margin-bottom: 15px; color: #e94560; font-size: 1.1em; }
.setting-item { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }

/* Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #444; transition: .4s; border-radius: 26px;
}
.slider:before {
  position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: #e94560; }
input:checked + .slider:before { transform: translateX(24px); }

.hint { font-size: 0.85em; color: #a0a0c0; line-height: 1.5; margin: 15px 0; padding: 10px; background: rgba(233,69,96,0.1); border-radius: 8px; }
.hint b { color: #e94560; }

/* 在线列表 */
.user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.user-card:hover { background: rgba(233,69,96,0.2); transform: translateX(5px); }
.user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #533483);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2em; flex-shrink: 0;
}
.user-meta { flex: 1; }
.user-name { font-weight: bold; color: #fff; }
.user-species { font-size: 0.8em; color: #a0a0c0; }

/* 地图Marker */
.furry-marker {
  text-align: center;
  transition: all 0.3s;
}
.furry-marker .avatar-ring {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #533483);
  padding: 3px;
  box-shadow: 0 4px 15px rgba(233,69,96,0.4);
  position: relative;
}
.furry-marker .avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: #1a1a2e;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3em; overflow: hidden;
}
.furry-marker .marker-name {
  margin-top: 4px;
  background: rgba(0,0,0,0.7);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75em;
  white-space: nowrap;
  color: #fff;
}
.furry-marker.accuracy-district .avatar-ring,
.furry-marker.accuracy-city .avatar-ring {
  background: #666;
  opacity: 0.8;
}
.blur-circle {
  position: absolute;
  border: 2px solid rgba(233,69,96,0.5);
  border-radius: 50%;
  background: rgba(233,69,96,0.1);
  pointer-events: none;
}

/* 底部提示 */
.bottom-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.85em;
  color: #ccc;
  z-index: 998;
  pointer-events: none;
  white-space: nowrap;
}

/* 弹窗 */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 2000;
  display: flex; justify-content: center; align-items: center;
}
.modal.hidden { display: none; }
.modal-content {
  background: #1a1a2e;
  padding: 30px;
  border-radius: 20px;
  width: 90%; max-width: 350px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.close { position: absolute; top: 15px; right: 20px; font-size: 1.5em; cursor: pointer; color: #888; }
.close:hover { color: #e94560; }

.hidden { display: none !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #e94560; }

/* 响应式 */
@media (max-width: 768px) {
  .side-panel { width: calc(100% - 40px); max-height: 40vh; }
  #online-list { top: auto; bottom: 60px; left: 20px; }
  .bottom-hint { font-size: 0.75em; bottom: 10px; }
}