/* Wenmeng Contact Buttons v2 — 客服头像入口 + 团队面板（深色，配站点黑金） */

.wmcb {
	position: fixed;
	bottom: 26px;
	z-index: 99998;
	display: flex;
	/* 反向排列：头像贴底，面板从头像上方展开 */
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.wmcb.wmcb-right { right: 26px; }
.wmcb.wmcb-left  { left: 26px; align-items: flex-start; }

/* ---------- 头像入口 ---------- */
.wmcb-launcher {
	position: relative;
	display: block;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: #262626;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	transition: transform .18s ease, box-shadow .18s ease;
	-webkit-tap-highlight-color: transparent;
	overflow: visible;
}
.wmcb-launcher:hover,
.wmcb-launcher:focus-visible {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.wmcb-launcher:focus-visible { outline: 2px solid #d97706; outline-offset: 3px; }

.wmcb-launcher-av {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: #35302b;
}
.wmcb-launcher-av img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.wmcb-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #d97706;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .02em;
}

/* 在线小点 */
.wmcb-dot {
	position: absolute;
	right: 1px;
	bottom: 1px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid #ffffff;
	box-sizing: content-box;
}

/* ---------- 面板 ---------- */
/* 360px：Blake 那一行有 4 个图标（聊天/WhatsApp/Telegram/邮件），320px 会把 meta 列压到
   80px 左右，职位（General Manager）被折成两行。加宽后 meta 约 120px，单行放得下。 */
.wmcb-panel {
	width: 360px;
	max-width: calc(100vw - 32px);
	background: #1c1917;
	border: 1px solid #3f3f46;
	border-radius: 14px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
	overflow: hidden;
	color: #f5f5f4;
}
.wmcb-panel[hidden] { display: none; }

.wmcb-head {
	position: relative;
	padding: 14px 44px 12px 16px;
	border-bottom: 1px solid #302b27;
	background: #211d1a;
}
.wmcb-head-t {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #fafaf9;
	letter-spacing: .01em;
}
.wmcb-head-s {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	color: #a8a29e;
}
.wmcb-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	line-height: 1;
	font-size: 20px;
	color: #a8a29e;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
}
.wmcb-close:hover,
.wmcb-close:focus-visible { color: #fafaf9; background: #302b27; }

.wmcb-list {
	margin: 0;
	padding: 6px;
	list-style: none;
	max-height: 60vh;
	overflow-y: auto;
}

.wmcb-person {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 8px;
	border-radius: 10px;
	transition: background .15s ease;
}
.wmcb-person + .wmcb-person { margin-top: 2px; }
.wmcb-person:hover { background: #262220; }
.wmcb-person.is-current {
	background: #2a2118;
	box-shadow: inset 3px 0 0 #d97706;
}

.wmcb-av {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: #35302b;
	border: 1px solid #44403c;
}
.wmcb-av img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}
.wmcb-av .wmcb-initial { font-size: 18px; }

.wmcb-meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.wmcb-name {
	font-size: 14px;
	font-weight: 600;
	color: #fafaf9;
	line-height: 1.3;
}
.wmcb-title {
	font-size: 11.5px;
	color: #a8a29e;
	line-height: 1.3;
}
.wmcb-tag {
	margin-top: 3px;
	font-size: 10.5px;
	line-height: 1.5;
	color: #fbbf24;
	background: rgba(217, 119, 6, .16);
	border: 1px solid rgba(217, 119, 6, .38);
	border-radius: 5px;
	padding: 0 5px;
	align-self: flex-start;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wmcb-links {
	flex: 0 0 auto;
	display: flex;
	gap: 6px;
}
.wmcb-l {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #ffffff !important;
	text-decoration: none !important;
	transition: transform .15s ease, filter .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.wmcb-l:hover,
.wmcb-l:focus-visible { transform: scale(1.08); filter: brightness(1.1); }
.wmcb-l:focus-visible { outline: 2px solid #d97706; outline-offset: 2px; }
.wmcb-l svg { display: block; }

.wmcb-l-wa { background: #25d366; }
.wmcb-l-tg { background: #229ed9; }
.wmcb-l-em { background: #52525b; }
/* 面板里的在线聊天入口：铜色，跟站点黑金一致，也与三个品牌色区分开 */
.wmcb-l-chat {
	background: #d97706;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.wmcb-l-chat:hover,
.wmcb-l-chat:focus-visible { filter: brightness(1.12); }
.wmcb-l-none {
	background: transparent;
	color: #71717a !important;
	font-size: 14px;
}

/* ---------- 手机：底部抽屉 ---------- */
@media (max-width: 782px) {
	.wmcb-hide-mobile { display: none !important; }
	.wmcb {
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		left: 0;
		right: 0;
		align-items: flex-end;
		padding: 0 16px;
		gap: 0;
	}
	.wmcb.wmcb-right { right: 0; }
	.wmcb.wmcb-left  { left: 0; align-items: flex-start; }

	.wmcb-launcher { width: 54px; height: 54px; }

	.wmcb-panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: none;
		border-radius: 16px 16px 0 0;
		border-bottom: 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		animation: wmcb-up .22s ease;
	}
	.wmcb-list { max-height: 56vh; padding: 6px 8px 16px; }
	.wmcb-person { padding: 10px 8px; }
	.wmcb-l { width: 34px; height: 34px; }
}
@media (min-width: 783px) {
	.wmcb-hide-desktop { display: none !important; }
}

@keyframes wmcb-up {
	from { transform: translateY(16px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.wmcb-launcher, .wmcb-l, .wmcb-person { transition: none; }
	.wmcb-launcher:hover, .wmcb-launcher:focus-visible,
	.wmcb-l:hover, .wmcb-l:focus-visible { transform: none; }
	.wmcb-panel { animation: none; }
}
