* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif; }
#map { position: absolute; inset: 0; z-index: 1; background: #eef2f5; }

/* 进入面板 */
.overlay-panel {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(0, 0, 0, 0.4);
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.panel-card {
	background: #fff; border-radius: 16px; padding: 30px 24px 24px;
	width: 100%; max-width: 360px; text-align: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.panel-card h1 { color: #30a8f7; font-size: 1.9rem; margin-bottom: 4px; letter-spacing: 1px; }
.subtitle { color: #888; font-size: 0.9rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-size: 0.85rem; color: #555; margin-bottom: 8px; font-weight: 500; }
.form-group input {
	width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px;
	font-size: 1rem; outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: #30a8f7; box-shadow: 0 0 0 3px rgba(48, 168, 247, 0.1); }
.gender-options { display: flex; gap: 8px; }
.gender-btn {
	flex: 1; padding: 11px; border: 1px solid #ddd; border-radius: 10px;
	background: #fff; font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
}
.gender-btn.active { background: #30a8f7; color: #fff; border-color: #30a8f7; }
.enter-btn {
	width: 100%; padding: 14px; background: #30a8f7; color: #fff;
	border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 500;
	cursor: pointer; margin-top: 6px; transition: background 0.2s;
}
.enter-btn:hover:not(:disabled) { background: #2196e3; }
.enter-btn:disabled { background: #b0d8f5; cursor: not-allowed; }
.hint { color: #aaa; font-size: 0.74rem; margin-top: 14px; line-height: 1.4; }

/* 顶部状态栏 */
.status-bar {
	position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
	z-index: 500; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
	border-radius: 20px; padding: 8px 16px; font-size: 0.85rem; color: #333;
	display: flex; gap: 8px; align-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	white-space: nowrap;
}
.status-bar .sep { color: #ccc; }
.status-bar #nearby-count { font-weight: 600; color: #30a8f7; }

/* 定位按钮 */
.locate-btn {
	position: fixed; right: 14px; bottom: 74px; z-index: 500;
	width: 44px; height: 44px; border-radius: 50%;
	background: #fff; border: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	font-size: 20px; cursor: pointer; line-height: 1;
}

/* 底部聊天输入 */
.chat-bar {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
	background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
	padding: 10px 12px; display: flex; gap: 8px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}
.chat-bar input {
	flex: 1; padding: 12px 16px; border: 1px solid #ddd; border-radius: 22px;
	font-size: 1rem; outline: none;
}
.chat-bar input:focus { border-color: #30a8f7; }
.chat-bar button {
	padding: 0 22px; background: #30a8f7; color: #fff; border: none;
	border-radius: 22px; font-size: 0.95rem; font-weight: 500; cursor: pointer;
}

.hidden { display: none !important; }

/* 地图人物标记 */
.user-marker { background: transparent !important; border: none !important; }
.user-avatar {
	width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 19px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.user-avatar.male { background: #30a8f7; }
.user-avatar.female { background: #f7569e; }
.user-avatar.other { background: #4caf50; }
.user-avatar.me { border-color: #ffd700; width: 40px; height: 40px; font-size: 21px; }

/* 消息气泡（在 marker DOM 上动态添加） */
.chat-bubble {
	position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
	background: #fff; color: #333; font-size: 0.78rem;
	padding: 6px 11px; border-radius: 14px; white-space: nowrap;
	max-width: 200px; overflow: hidden; text-overflow: ellipsis;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
	animation: bubbleIn 0.2s ease;
}
.chat-bubble .b-name { font-weight: 600; color: #30a8f7; margin-right: 4px; }
@keyframes bubbleIn { from { transform: translateX(-50%) scale(0.7); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
