/* ═══════════════════════════════════════════
   龙虾PRO · 全站系统智能客服 · 赛博朋克
   ═══════════════════════════════════════════ */
.lx-sys-cs {
	--scs-cyan: #00f5ff;
	--scs-mag: #ff2bd6;
	--scs-violet: #7c3aed;
	--scs-bg: rgba(4, 8, 20, 0.96);
	--scs-line: rgba(0, 245, 255, 0.4);
	--scs-text: #e8f9ff;
	--scs-muted: #7a9bb8;
	--scs-z: 2147483000;
	position: fixed !important;
	right: 22px !important;
	bottom: 22px !important;
	left: auto !important;
	top: auto !important;
	z-index: var(--scs-z) !important;
	font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
	color: var(--scs-text);
	pointer-events: none;
	width: 0;
	height: 0;
}
.lx-sys-cs * { box-sizing: border-box; }
.lx-sys-cs__fab,
.lx-sys-cs__panel,
.lx-sys-cs__tease {
	pointer-events: auto;
}

/* 环境光 */
.lx-sys-cs__glow {
	position: absolute;
	right: -10px;
	bottom: -10px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 245, 255, 0.28), transparent 70%);
	filter: blur(10px);
	animation: lx-scs-ambient 4s ease-in-out infinite alternate;
	pointer-events: none;
	z-index: 0;
}
@keyframes lx-scs-ambient {
	from { opacity: 0.4; transform: scale(0.85); }
	to { opacity: 1; transform: scale(1.2); }
}

/* ═══ 进页吸引：气泡 + 迷你窗 ═══ */
.lx-sys-cs__tease {
	position: absolute;
	right: 0;
	bottom: 78px;
	width: 220px;
	pointer-events: auto;
	cursor: pointer;
	z-index: 3;
	opacity: 0;
	transform: translateY(12px) scale(0.9);
	transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.lx-sys-cs.is-tease .lx-sys-cs__tease,
.lx-sys-cs.is-tease-bubble .lx-sys-cs__tease {
	opacity: 1;
	transform: none;
}
.lx-sys-cs__tease.is-gone,
.lx-sys-cs.is-open .lx-sys-cs__tease,
.lx-sys-cs.is-max .lx-sys-cs__tease,
.lx-sys-cs.is-min .lx-sys-cs__tease {
	opacity: 0 !important;
	pointer-events: none !important;
	transform: translateY(10px) scale(0.85);
}
.lx-sys-cs__tease-bubble {
	position: relative;
	padding: 12px 14px;
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(8, 16, 36, 0.95), rgba(12, 8, 32, 0.95));
	border: 1px solid rgba(0, 245, 255, 0.45);
	box-shadow: 0 0 24px rgba(0, 245, 255, 0.25), 0 8px 28px rgba(0, 0, 0, 0.4);
	animation: lx-scs-bubble-float 2.4s ease-in-out infinite;
}
@keyframes lx-scs-bubble-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}
.lx-sys-cs__tease-text {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: #d6f7ff;
}
.lx-sys-cs__tease-text strong {
	color: var(--scs-cyan);
	text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}
.lx-sys-cs__tease-arrow {
	position: absolute;
	right: 28px;
	bottom: -7px;
	width: 12px;
	height: 12px;
	background: rgba(8, 16, 36, 0.95);
	border-right: 1px solid rgba(0, 245, 255, 0.45);
	border-bottom: 1px solid rgba(0, 245, 255, 0.45);
	transform: rotate(45deg);
}
.lx-sys-cs__tease-wave {
	position: absolute;
	inset: -2px;
	border-radius: 16px;
	border: 1px solid rgba(0, 245, 255, 0.35);
	animation: lx-scs-ripple 2s ease-out infinite;
	pointer-events: none;
}

/* 迷你聊天预览（从圆胀出的小窗） */
.lx-sys-cs__tease-mini {
	position: absolute;
	right: 0;
	bottom: -4px;
	width: 200px;
	height: 0;
	opacity: 0;
	overflow: hidden;
	border-radius: 14px;
	background: var(--scs-bg);
	border: 1px solid transparent;
	transform: scale(0.4);
	transform-origin: bottom right;
	transition:
		height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.4s ease,
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.3s;
	pointer-events: none;
}
.lx-sys-cs.is-tease-mini .lx-sys-cs__tease-mini {
	height: 118px;
	opacity: 1;
	transform: scale(1);
	border-color: var(--scs-line);
	box-shadow: 0 0 28px rgba(0, 245, 255, 0.3);
	pointer-events: auto;
}
.lx-sys-cs.is-tease-mini .lx-sys-cs__tease-bubble {
	opacity: 0;
	transform: scale(0.9);
	pointer-events: none;
}
.lx-sys-cs__tease-mini-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-bottom: 1px solid rgba(0, 245, 255, 0.2);
	background: linear-gradient(90deg, rgba(0, 245, 255, 0.12), transparent);
}
.lx-sys-cs__tease-mini-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 8px #22c55e;
	animation: lx-scs-blink 1s step-end infinite;
}
.lx-sys-cs__tease-mini-body {
	padding: 12px 10px;
}
.lx-sys-cs__tease-mini-line {
	display: block;
	height: 8px;
	margin-bottom: 8px;
	border-radius: 4px;
	background: linear-gradient(90deg, rgba(0, 245, 255, 0.25), rgba(255, 43, 214, 0.12));
	animation: lx-scs-shimmer 1.4s ease-in-out infinite;
}
.lx-sys-cs__tease-mini-line.is-short {
	width: 62%;
	animation-delay: 0.2s;
}
@keyframes lx-scs-shimmer {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 1; }
}

/* 圆球轻 nudge */
.lx-sys-cs.is-tease-nudge .lx-sys-cs__fab {
	animation: lx-scs-nudge 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lx-scs-nudge {
	0%, 100% { transform: scale(1) rotate(0); }
	25% { transform: scale(1.12) rotate(-6deg); }
	50% { transform: scale(1.08) rotate(5deg); }
	75% { transform: scale(1.14) rotate(-3deg); }
}

/* ═══ 悬浮圆球 FAB ═══ */
.lx-sys-cs__fab {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 72px;
	height: 72px;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	border-radius: 50%;
	z-index: 4;
	transition:
		transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
		opacity 0.4s ease,
		visibility 0.4s;
}
.lx-sys-cs__fab:hover {
	transform: scale(1.1) rotate(-4deg);
}
.lx-sys-cs__fab:active {
	transform: scale(0.92);
}
/* 打开时：圆球缩小并淡出，形态交给聊天窗 */
.lx-sys-cs.is-open .lx-sys-cs__fab,
.lx-sys-cs.is-max .lx-sys-cs__fab {
	opacity: 0;
	visibility: hidden;
	transform: scale(0.35) translateY(16px);
	pointer-events: none;
}
.lx-sys-cs.is-min .lx-sys-cs__fab {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
/* 关闭时圆球弹回 */
.lx-sys-cs.is-closed .lx-sys-cs__fab {
	opacity: 1;
	visibility: visible;
	animation: lx-scs-fab-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lx-scs-fab-pop {
	0% { transform: scale(0.4); opacity: 0.5; }
	100% { transform: scale(1); opacity: 1; }
}
.lx-sys-cs.is-tease .lx-sys-cs__fab {
	animation: lx-scs-fab-attention 2.2s ease-in-out infinite;
}
@keyframes lx-scs-fab-attention {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

.lx-sys-cs__fab-ring {
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 2px solid transparent;
	border-top-color: var(--scs-cyan);
	border-right-color: var(--scs-mag);
	animation: lx-scs-spin 2.6s linear infinite;
}
.lx-sys-cs__fab-ring--2 {
	inset: -12px;
	border-top-color: var(--scs-mag);
	border-left-color: var(--scs-violet);
	animation-duration: 4s;
	animation-direction: reverse;
	opacity: 0.7;
}
@keyframes lx-scs-spin {
	to { transform: rotate(360deg); }
}
.lx-sys-cs__fab-core {
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(145deg, rgba(0, 245, 255, 0.28), rgba(255, 43, 214, 0.22)),
		#0a1024;
	border: 1px solid var(--scs-line);
	box-shadow:
		0 0 22px rgba(0, 245, 255, 0.4),
		0 0 40px rgba(255, 43, 214, 0.18),
		inset 0 0 16px rgba(0, 245, 255, 0.12);
	overflow: hidden;
}
.lx-sys-cs__fab-core::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(0, 245, 255, 0.18) 50%, transparent 60%);
	animation: lx-scs-scan-y 2.2s linear infinite;
}
@keyframes lx-scs-scan-y {
	0% { transform: translateY(-100%); }
	100% { transform: translateY(100%); }
}
.lx-sys-cs__fab-icon {
	font-size: 18px;
	color: var(--scs-cyan);
	text-shadow: 0 0 12px var(--scs-cyan);
	line-height: 1;
	animation: lx-scs-icon-pulse 1.5s ease-in-out infinite;
	z-index: 1;
}
@keyframes lx-scs-icon-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.18); }
}
.lx-sys-cs__fab-label {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #b8f4ff;
	margin-top: 2px;
	text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
	z-index: 1;
}
.lx-sys-cs__fab-pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(0, 245, 255, 0.55);
	animation: lx-scs-ripple 2s ease-out infinite;
}
@keyframes lx-scs-ripple {
	0% { transform: scale(1); opacity: 0.75; }
	100% { transform: scale(1.6); opacity: 0; }
}

/* ═══ 对话面板 · 形态切换 ═══ */
.lx-sys-cs__panel {
	position: absolute;
	right: 0;
	bottom: 0;
	width: min(400px, calc(100vw - 24px));
	height: min(560px, calc(100vh - 48px));
	display: none;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	background: var(--scs-bg);
	border: 1px solid var(--scs-line);
	box-shadow:
		0 0 0 1px rgba(255, 43, 214, 0.12),
		0 0 48px rgba(0, 245, 255, 0.22),
		0 24px 64px rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(16px);
	transform-origin: bottom right;
	z-index: 5;
	opacity: 0;
	transform: scale(0.35) translateY(40px);
}
/* 打开 morph-in */
.lx-sys-cs.is-open .lx-sys-cs__panel,
.lx-sys-cs.is-max .lx-sys-cs__panel,
.lx-sys-cs.is-min .lx-sys-cs__panel {
	display: flex !important;
}
.lx-sys-cs.is-morph-in .lx-sys-cs__panel {
	animation: lx-scs-morph-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.lx-sys-cs.is-open .lx-sys-cs__panel,
.lx-sys-cs.is-max .lx-sys-cs__panel {
	opacity: 1;
	transform: scale(1) translateY(0);
	transition:
		width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		border-radius 0.35s ease,
		opacity 0.35s ease,
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lx-scs-morph-in {
	0% {
		opacity: 0.3;
		transform: scale(0.28) translateY(50px);
		border-radius: 50%;
		filter: brightness(1.4);
	}
	55% {
		border-radius: 22px;
		filter: brightness(1.1);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
		border-radius: 18px;
		filter: none;
	}
}
/* 关闭 morph-out：窗 → 圆 */
.lx-sys-cs.is-morph-out .lx-sys-cs__panel {
	display: flex !important;
	animation: lx-scs-morph-out 0.48s cubic-bezier(0.55, 0.05, 0.8, 0.4) forwards;
}
@keyframes lx-scs-morph-out {
	0% {
		opacity: 1;
		transform: scale(1);
		border-radius: 18px;
	}
	70% {
		opacity: 0.7;
		border-radius: 40%;
	}
	100% {
		opacity: 0;
		transform: scale(0.25) translateY(48px);
		border-radius: 50%;
	}
}

.lx-sys-cs.is-max .lx-sys-cs__panel {
	width: min(720px, calc(100vw - 32px));
	height: min(82vh, 780px);
	border-radius: 12px;
}
.lx-sys-cs.is-min .lx-sys-cs__panel {
	width: 268px;
	height: 58px;
	border-radius: 30px;
	opacity: 1;
	transform: scale(1);
}
.lx-sys-cs.is-min .lx-sys-cs__msgs,
.lx-sys-cs.is-min .lx-sys-cs__foot,
.lx-sys-cs.is-min .lx-sys-cs__scanline,
.lx-sys-cs.is-min .lx-sys-cs__grid {
	display: none !important;
}
/* 隐藏历史 SYS-LINK / 系统提示框 / 解析中 等装饰块 */
.lx-sys-cs__sys,
.lx-sys-cs__typing,
.lx-sys-cs__foot-tip,
.lx-sys-cs__hint {
	display: none !important;
}

.lx-sys-cs__scanline {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--scs-cyan), var(--scs-mag), transparent);
	box-shadow: 0 0 14px var(--scs-cyan);
	animation: lx-scs-scanline 3.2s linear infinite;
	z-index: 2;
	pointer-events: none;
	opacity: 0.75;
}
@keyframes lx-scs-scanline {
	0% { top: 0; opacity: 0; }
	12% { opacity: 0.85; }
	100% { top: 100%; opacity: 0; }
}
.lx-sys-cs__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 245, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 245, 255, 0.035) 1px, transparent 1px);
	background-size: 22px 22px;
	pointer-events: none;
	z-index: 0;
	opacity: 0.55;
}

/* 头栏 */
.lx-sys-cs__head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(0, 245, 255, 0.22);
	background: linear-gradient(90deg, rgba(0, 245, 255, 0.12), rgba(255, 43, 214, 0.07));
	cursor: default;
}
.lx-sys-cs.is-min .lx-sys-cs__head {
	border: 0;
	height: 100%;
	cursor: pointer;
}
.lx-sys-cs__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.lx-sys-cs__avatar {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.04em;
	color: #041018;
	background: linear-gradient(135deg, var(--scs-cyan), #38bdf8 45%, var(--scs-mag));
	box-shadow: 0 0 16px rgba(0, 245, 255, 0.45);
	animation: lx-scs-avatar 3s ease-in-out infinite;
}
@keyframes lx-scs-avatar {
	0%, 100% { box-shadow: 0 0 12px rgba(0, 245, 255, 0.4); }
	50% { box-shadow: 0 0 22px rgba(255, 43, 214, 0.55); }
}
.lx-sys-cs__title {
	display: block;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-shadow: 0 0 12px rgba(0, 245, 255, 0.45);
}
.lx-sys-cs__status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-style: normal;
	font-size: 10px;
	color: var(--scs-muted);
	letter-spacing: 0.08em;
}
.lx-sys-cs__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 8px #22c55e;
	animation: lx-scs-blink 1.2s step-end infinite;
}
@keyframes lx-scs-blink {
	50% { opacity: 0.3; }
}
.lx-sys-cs__head-actions {
	display: flex;
	gap: 4px;
}
.lx-sys-cs__icon-btn {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	border: 1px solid rgba(0, 245, 255, 0.28);
	background: rgba(0, 0, 0, 0.4);
	color: var(--scs-text);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lx-sys-cs__icon-btn:hover {
	border-color: var(--scs-cyan);
	box-shadow: 0 0 12px rgba(0, 245, 255, 0.35);
	transform: translateY(-1px);
}
.lx-sys-cs__icon-btn--close:hover {
	border-color: var(--scs-mag);
	color: #ffb3ec;
	box-shadow: 0 0 12px rgba(255, 43, 214, 0.4);
}

/* 消息 */
.lx-sys-cs__msgs {
	position: relative;
	z-index: 1;
	flex: 1;
	overflow: auto;
	padding: 14px 12px 10px;
	scroll-behavior: smooth;
}
.lx-sys-cs__msg {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
	max-width: 92%;
	animation: lx-scs-msg-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lx-scs-msg-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.94);
		filter: blur(5px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: none;
	}
}
/* 用户发送：弹射 + 霓虹拖影 */
.lx-sys-cs__msg--user.is-sent-burst {
	animation: lx-scs-user-burst 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes lx-scs-user-burst {
	0% {
		opacity: 0;
		transform: translateX(48px) translateY(18px) scale(0.72) skewX(-6deg);
		filter: blur(8px) brightness(2);
	}
	45% {
		opacity: 1;
		transform: translateX(-6px) translateY(0) scale(1.06) skewX(1deg);
		filter: blur(0) brightness(1.35);
		box-shadow: none;
	}
	100% {
		opacity: 1;
		transform: none;
		filter: none;
	}
}
.lx-sys-cs__msg--user.is-sent-burst .lx-sys-cs__msg-body {
	animation: lx-scs-user-body-glow 0.9s ease-out both;
}
@keyframes lx-scs-user-body-glow {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 43, 214, 0.9), 0 0 40px rgba(0, 245, 255, 0.7);
		border-color: #fff;
	}
	100% {
		box-shadow: 0 0 14px rgba(0, 245, 255, 0.14);
	}
}
.lx-sys-cs__msg--bot { margin-right: auto; }
.lx-sys-cs__msg--user {
	margin-left: auto;
	flex-direction: row-reverse;
}
.lx-sys-cs__msg-av {
	position: relative;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 800;
	background: linear-gradient(135deg, var(--scs-cyan), #22d3ee);
	color: #041018;
	box-shadow: 0 0 10px rgba(0, 245, 255, 0.35);
}
.lx-sys-cs__msg--user .lx-sys-cs__msg-av {
	background: linear-gradient(135deg, var(--scs-violet), var(--scs-mag));
	color: #fff;
	box-shadow: 0 0 10px rgba(255, 43, 214, 0.4);
}
.lx-sys-cs__msg-body {
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
	position: relative;
}
.lx-sys-cs__msg--bot .lx-sys-cs__msg-body {
	background: rgba(12, 20, 40, 0.95);
	border: 1px solid rgba(0, 245, 255, 0.22);
	border-top-left-radius: 4px;
	color: #e2f4ff;
}
.lx-sys-cs__msg--user .lx-sys-cs__msg-body {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(14, 165, 233, 0.38));
	border: 1px solid rgba(0, 245, 255, 0.42);
	border-top-right-radius: 4px;
	color: #f0fdff;
	box-shadow: 0 0 14px rgba(0, 245, 255, 0.14);
}
.lx-sys-cs__msg.is-streaming .lx-sys-cs__msg-body:not(.lx-sys-cs__msg-body--wait)::after {
	content: "▋";
	margin-left: 2px;
	color: var(--scs-cyan);
	animation: lx-scs-caret 0.7s step-end infinite;
	text-shadow: 0 0 8px var(--scs-cyan);
}
@keyframes lx-scs-caret {
	50% { opacity: 0; }
}

/* ══════ 等待态：强烈赛博解析 ══════ */
.lx-sys-cs__msg.is-waiting {
	max-width: min(92%, 320px);
	animation: lx-scs-wait-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lx-scs-wait-in {
	from {
		opacity: 0;
		transform: translateX(-20px) scale(0.88);
		filter: hue-rotate(-40deg) blur(6px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: none;
	}
}
.lx-sys-cs__msg.is-waiting .lx-sys-cs__msg-av {
	width: 36px;
	height: 36px;
	overflow: visible;
	background: linear-gradient(135deg, #041018, #0a1a2e);
	border: 1px solid rgba(0, 245, 255, 0.55);
	box-shadow: 0 0 18px rgba(0, 245, 255, 0.55), 0 0 32px rgba(255, 43, 214, 0.35);
	animation: lx-scs-av-breathe 1.2s ease-in-out infinite;
}
@keyframes lx-scs-av-breathe {
	0%, 100% { box-shadow: 0 0 12px rgba(0, 245, 255, 0.45), 0 0 20px rgba(255, 43, 214, 0.25); }
	50% { box-shadow: 0 0 22px rgba(0, 245, 255, 0.85), 0 0 40px rgba(255, 43, 214, 0.55); }
}
.lx-sys-cs__av-core {
	position: relative;
	z-index: 2;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.04em;
	background: linear-gradient(90deg, var(--scs-cyan), var(--scs-mag));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: lx-scs-av-text 1.4s linear infinite;
}
@keyframes lx-scs-av-text {
	0% { filter: hue-rotate(0deg); }
	100% { filter: hue-rotate(360deg); }
}
.lx-sys-cs__av-ring {
	position: absolute;
	inset: -6px;
	border-radius: 12px;
	border: 1.5px solid rgba(0, 245, 255, 0.55);
	animation: lx-scs-av-ring 1.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
	pointer-events: none;
}
.lx-sys-cs__av-ring--2 {
	inset: -12px;
	border-color: rgba(255, 43, 214, 0.4);
	animation-delay: 0.35s;
	animation-duration: 1.8s;
}
@keyframes lx-scs-av-ring {
	0% { transform: scale(0.75); opacity: 0.95; }
	100% { transform: scale(1.35); opacity: 0; }
}
.lx-sys-cs__msg-body--wait {
	min-width: 200px;
	padding: 12px 14px 14px !important;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(0, 20, 40, 0.98), rgba(20, 8, 36, 0.96)) !important;
	border: 1px solid rgba(0, 245, 255, 0.45) !important;
	box-shadow:
		0 0 0 1px rgba(255, 43, 214, 0.15),
		0 0 28px rgba(0, 245, 255, 0.25),
		inset 0 0 40px rgba(0, 245, 255, 0.06) !important;
}
.lx-sys-cs__wait {
	position: relative;
	z-index: 1;
}
.lx-sys-cs__wait-scan {
	position: absolute;
	left: -14px;
	right: -14px;
	top: -12px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--scs-cyan), var(--scs-mag), transparent);
	box-shadow: 0 0 12px var(--scs-cyan);
	animation: lx-scs-wait-scan 1.6s linear infinite;
	pointer-events: none;
}
@keyframes lx-scs-wait-scan {
	0% { top: -12px; opacity: 0; }
	12% { opacity: 1; }
	100% { top: calc(100% + 12px); opacity: 0; }
}
.lx-sys-cs__wait-bars {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 28px;
	margin: 2px 0 10px;
}
.lx-sys-cs__wait-bars i {
	display: block;
	flex: 1;
	height: 30%;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--scs-cyan), rgba(255, 43, 214, 0.65));
	box-shadow: 0 0 8px rgba(0, 245, 255, 0.45);
	animation: lx-scs-eq 0.85s ease-in-out infinite;
}
.lx-sys-cs__wait-bars i:nth-child(1) { animation-delay: 0s; }
.lx-sys-cs__wait-bars i:nth-child(2) { animation-delay: 0.08s; }
.lx-sys-cs__wait-bars i:nth-child(3) { animation-delay: 0.16s; }
.lx-sys-cs__wait-bars i:nth-child(4) { animation-delay: 0.24s; }
.lx-sys-cs__wait-bars i:nth-child(5) { animation-delay: 0.16s; }
.lx-sys-cs__wait-bars i:nth-child(6) { animation-delay: 0.08s; }
.lx-sys-cs__wait-bars i:nth-child(7) { animation-delay: 0.2s; }
@keyframes lx-scs-eq {
	0%, 100% { height: 28%; opacity: 0.55; }
	50% { height: 100%; opacity: 1; }
}
.lx-sys-cs__wait-dots {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
}
.lx-sys-cs__wait-dots span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--scs-cyan);
	box-shadow: 0 0 10px var(--scs-cyan);
	animation: lx-scs-dot-bounce 1.05s ease-in-out infinite;
}
.lx-sys-cs__wait-dots span:nth-child(2) {
	animation-delay: 0.15s;
	background: #a78bfa;
	box-shadow: 0 0 10px #a78bfa;
}
.lx-sys-cs__wait-dots span:nth-child(3) {
	animation-delay: 0.3s;
	background: var(--scs-mag);
	box-shadow: 0 0 10px var(--scs-mag);
}
@keyframes lx-scs-dot-bounce {
	0%, 80%, 100% { transform: translateY(0) scale(0.85); opacity: 0.5; }
	40% { transform: translateY(-7px) scale(1.15); opacity: 1; }
}
.lx-sys-cs__wait-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #e0f7ff;
	text-shadow: 0 0 12px rgba(0, 245, 255, 0.55);
}
.lx-sys-cs__wait-pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #39ff14;
	box-shadow: 0 0 10px #39ff14;
	animation: lx-scs-blink 0.9s step-end infinite;
	flex-shrink: 0;
}
.lx-sys-cs__wait-txt {
	background: linear-gradient(90deg, var(--scs-cyan), #fff, var(--scs-mag), var(--scs-cyan));
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: lx-scs-shimmer-text 2s linear infinite;
}
@keyframes lx-scs-shimmer-text {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}
.lx-sys-cs__wait-sub {
	margin: 6px 0 0;
	font-size: 10.5px;
	color: rgba(148, 210, 255, 0.65);
	letter-spacing: 0.06em;
	animation: lx-scs-sub-fade 2s ease-in-out infinite;
}
@keyframes lx-scs-sub-fade {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 1; }
}

/* 回复揭幕 / 解密感 */
.lx-sys-cs__msg.is-reveal .lx-sys-cs__msg-body {
	animation: lx-scs-decrypt-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lx-scs-decrypt-in {
	0% {
		opacity: 0;
		transform: scale(0.92) translateY(8px);
		filter: blur(8px) brightness(2) hue-rotate(60deg);
		border-color: #fff !important;
		box-shadow: 0 0 40px rgba(0, 245, 255, 0.7), 0 0 60px rgba(255, 43, 214, 0.4);
	}
	100% {
		opacity: 1;
		transform: none;
		filter: none;
	}
}
.lx-sys-cs__msg.is-decrypting .lx-sys-cs__msg-body {
	position: relative;
}
.lx-sys-cs__msg.is-decrypting .lx-sys-cs__msg-body::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 245, 255, 0.04) 2px,
		rgba(0, 245, 255, 0.04) 4px
	);
	pointer-events: none;
	animation: lx-scs-scanlines 0.4s linear infinite;
	opacity: 0.7;
}
@keyframes lx-scs-scanlines {
	to { background-position: 0 8px; }
}
.lx-sys-cs__msg.is-decrypt-done .lx-sys-cs__msg-body,
.lx-sys-cs__msg.is-done-pop .lx-sys-cs__msg-body {
	animation: lx-scs-done-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lx-scs-done-pop {
	0% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.6); }
	40% {
		box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.35), 0 0 28px rgba(255, 43, 214, 0.35);
		border-color: rgba(0, 245, 255, 0.75);
	}
	100% { box-shadow: none; }
}

/* 面板：发送闪扫 / 思考态 */
.lx-sys-cs__panel.is-send-flash::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 20;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent 30%,
		rgba(0, 245, 255, 0.18) 45%,
		rgba(255, 43, 214, 0.22) 50%,
		rgba(0, 245, 255, 0.12) 55%,
		transparent 70%
	);
	animation: lx-scs-panel-flash 0.65s ease-out both;
}
@keyframes lx-scs-panel-flash {
	from { transform: translateX(-40%); opacity: 1; }
	to { transform: translateX(40%); opacity: 0; }
}
.lx-sys-cs__panel.is-thinking {
	box-shadow:
		0 0 0 1px rgba(0, 245, 255, 0.35),
		0 0 40px rgba(0, 245, 255, 0.2),
		0 0 80px rgba(255, 43, 214, 0.12),
		0 20px 50px rgba(0, 0, 0, 0.55) !important;
	animation: lx-scs-panel-think 2s ease-in-out infinite;
}
@keyframes lx-scs-panel-think {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.08); }
}
.lx-sys-cs__panel.is-thinking .lx-sys-cs__scanline {
	opacity: 1;
	animation-duration: 1.4s;
}
.lx-sys-cs__panel.is-thinking .lx-sys-cs__status .lx-sys-cs__dot {
	background: #39ff14;
	box-shadow: 0 0 10px #39ff14;
	animation: lx-scs-blink 0.5s step-end infinite;
}
.lx-sys-cs__input.is-send-pulse {
	animation: lx-scs-input-pulse 0.5s ease-out;
}
@keyframes lx-scs-input-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 43, 214, 0.7), 0 0 24px rgba(0, 245, 255, 0.5); border-color: #fff; }
	100% { box-shadow: none; }
}
.lx-sys-cs__send.is-fire {
	animation: lx-scs-send-fire 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lx-scs-send-fire {
	0% { transform: scale(1); filter: brightness(1); }
	35% { transform: scale(0.88); filter: brightness(1.4); box-shadow: 0 0 40px rgba(0, 245, 255, 0.9); }
	100% { transform: scale(1); filter: brightness(1); }
}
.lx-sys-cs__foot {
	position: relative;
	z-index: 1;
	padding: 10px 12px 12px;
	border-top: 1px solid rgba(0, 245, 255, 0.2);
	background: linear-gradient(180deg, rgba(0, 245, 255, 0.05), transparent);
}
.lx-sys-cs__input-wrap {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}
.lx-sys-cs__input {
	flex: 1;
	resize: none;
	min-height: 42px;
	max-height: 110px;
	padding: 10px 14px 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(0, 245, 255, 0.3);
	background: rgba(2, 6, 18, 0.92);
	color: var(--scs-text);
	font-size: 13.5px;
	line-height: 1.45;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	/* 自定义滚动条（Firefox） */
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 245, 255, 0.55) rgba(4, 16, 32, 0.75);
}
/* 输入框滚动条（Chrome / Edge / Safari） */
.lx-sys-cs__input::-webkit-scrollbar {
	width: 8px;
}
.lx-sys-cs__input::-webkit-scrollbar-track {
	background: linear-gradient(180deg, rgba(0, 30, 50, 0.55), rgba(0, 12, 28, 0.85));
	border-radius: 10px;
	margin: 6px 2px;
	border: 1px solid rgba(0, 245, 255, 0.08);
}
.lx-sys-cs__input::-webkit-scrollbar-thumb {
	background:
		linear-gradient(180deg, rgba(0, 245, 255, 0.85) 0%, rgba(56, 189, 248, 0.65) 45%, rgba(255, 43, 214, 0.55) 100%);
	border-radius: 10px;
	border: 2px solid rgba(2, 8, 20, 0.55);
	box-shadow: 0 0 10px rgba(0, 245, 255, 0.35), inset 0 0 6px rgba(255, 255, 255, 0.12);
	min-height: 28px;
}
.lx-sys-cs__input::-webkit-scrollbar-thumb:hover {
	background:
		linear-gradient(180deg, rgba(0, 255, 255, 0.95) 0%, rgba(56, 189, 248, 0.85) 45%, rgba(255, 80, 220, 0.75) 100%);
	box-shadow: 0 0 14px rgba(0, 245, 255, 0.55);
}
.lx-sys-cs__input::-webkit-scrollbar-thumb:active {
	background: linear-gradient(180deg, #00f5ff, #ff2bd6);
}
.lx-sys-cs__input::-webkit-scrollbar-corner {
	background: transparent;
}
.lx-sys-cs__input:focus {
	border-color: var(--scs-cyan);
	box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.28), 0 0 18px rgba(0, 245, 255, 0.16);
}
/* 消息区滚动条 */
.lx-sys-cs__msgs {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 245, 255, 0.45) rgba(0, 12, 28, 0.35);
}
.lx-sys-cs__msgs::-webkit-scrollbar {
	width: 7px;
}
.lx-sys-cs__msgs::-webkit-scrollbar-track {
	background: rgba(0, 16, 32, 0.35);
	border-radius: 8px;
	margin: 8px 0;
}
.lx-sys-cs__msgs::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(0, 245, 255, 0.55), rgba(124, 58, 237, 0.45), rgba(255, 43, 214, 0.4));
	border-radius: 8px;
	border: 1px solid rgba(0, 245, 255, 0.12);
	box-shadow: 0 0 8px rgba(0, 245, 255, 0.2);
}
.lx-sys-cs__msgs::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(0, 245, 255, 0.85), rgba(255, 43, 214, 0.55));
}
.lx-sys-cs__send {
	position: relative;
	min-width: 72px;
	height: 42px;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 700;
	font-size: 13px;
	color: #041018;
	background: linear-gradient(135deg, var(--scs-cyan), #38bdf8 50%, var(--scs-mag));
	overflow: hidden;
	transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
	box-shadow: 0 0 16px rgba(0, 245, 255, 0.4);
}
.lx-sys-cs__send:hover {
	transform: translateY(-1px) scale(1.04);
	filter: brightness(1.08);
	box-shadow: 0 0 26px rgba(0, 245, 255, 0.55);
}
.lx-sys-cs__send:active { transform: scale(0.96); }
.lx-sys-cs__send:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}
.lx-sys-cs__send-glow {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	transform: translateX(-100%);
	animation: lx-scs-shine 2.4s ease-in-out infinite;
}
@keyframes lx-scs-shine {
	0%, 40% { transform: translateX(-100%); }
	60%, 100% { transform: translateX(100%); }
}
.lx-sys-cs__send-txt { position: relative; z-index: 1; }

@media (max-width: 520px) {
	.lx-sys-cs {
		right: 12px !important;
		bottom: 12px !important;
	}
	.lx-sys-cs.is-open .lx-sys-cs__panel,
	.lx-sys-cs.is-max .lx-sys-cs__panel {
		width: calc(100vw - 16px);
		height: min(78vh, 640px);
	}
	.lx-sys-cs__tease {
		width: 190px;
		right: 0;
	}
	.lx-sys-cs__fab-label { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.lx-sys-cs *,
	.lx-sys-cs *::before,
	.lx-sys-cs *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.12s !important;
	}
}
