/* 前台 · 系统消息 */
.lx-msg-front {
	--mf-bg: #0b1220;
	--mf-card: rgba(15, 23, 42, 0.78);
	--mf-line: rgba(148, 163, 184, 0.18);
	--mf-text: #e2e8f0;
	--mf-muted: #94a3b8;
	--mf-accent: #38bdf8;
	--mf-ok: #34d399;
	--mf-warn: #fbbf24;
	max-width: 860px;
	margin: 0 auto;
	padding: 28px 18px 64px;
	color: var(--mf-text);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.lx-msg-front * { box-sizing: border-box; }

.lx-msg-front__hero {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	flex-wrap: wrap;
	padding: 26px;
	border-radius: 20px;
	background:
		radial-gradient(700px 220px at 8% -20%, rgba(56, 189, 248, 0.22), transparent 60%),
		radial-gradient(500px 180px at 92% 0%, rgba(129, 140, 248, 0.18), transparent 55%),
		var(--mf-card);
	border: 1px solid var(--mf-line);
	backdrop-filter: blur(10px);
	margin-bottom: 18px;
}
.lx-msg-front__icon {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	font-size: 30px;
	background: linear-gradient(135deg, rgba(56,189,248,.25), rgba(129,140,248,.28));
	border: 1px solid var(--mf-line);
	flex-shrink: 0;
}
.lx-msg-front__kicker {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--mf-accent);
	text-transform: uppercase;
}
.lx-msg-front__title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
}
.lx-msg-front__desc {
	margin: 0;
	color: var(--mf-muted);
	font-size: 14px;
	line-height: 1.6;
}
.lx-msg-front__hero-actions {
	margin-left: auto;
	align-self: center;
}
.lx-msg-front__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 10px;
	border: 0;
	background: linear-gradient(135deg, #38bdf8, #6366f1);
	color: #0f172a;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.lx-msg-front__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
	color: #0f172a;
}
.lx-msg-front__btn--ghost {
	background: transparent;
	color: var(--mf-text);
	border: 1px solid var(--mf-line);
	font-weight: 600;
}
.lx-msg-front__btn--ghost:hover {
	border-color: rgba(56, 189, 248, 0.45);
	color: #bae6fd;
	box-shadow: none;
}
.lx-msg-front__card {
	background: var(--mf-card);
	border: 1px solid var(--mf-line);
	border-radius: 16px;
	padding: 22px;
}
.lx-msg-front__login p {
	margin: 0;
	color: var(--mf-muted);
}
.lx-msg-front__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding: 0 4px;
}
.lx-msg-front__unread-tip {
	font-size: 13px;
	color: var(--mf-muted);
}
.lx-msg-front__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.lx-msg-front__empty {
	padding: 36px 20px;
	text-align: center;
	color: var(--mf-muted);
	background: var(--mf-card);
	border: 1px dashed var(--mf-line);
	border-radius: 14px;
	font-size: 14px;
}
.lx-msg-front__item {
	background: var(--mf-card);
	border: 1px solid var(--mf-line);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lx-msg-front__item.is-unread {
	border-color: rgba(56, 189, 248, 0.4);
	box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
}
.lx-msg-front__item.is-open {
	border-color: rgba(129, 140, 248, 0.45);
}
.lx-msg-front__head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: start;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	font: inherit;
}
.lx-msg-front__head:hover {
	background: rgba(56, 189, 248, 0.05);
}
.lx-msg-front__dot {
	width: 10px;
	height: 10px;
	margin-top: 6px;
	border-radius: 50%;
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.4);
	flex-shrink: 0;
}
.lx-msg-front__item.is-unread .lx-msg-front__dot {
	background: var(--mf-accent);
	box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
}
.lx-msg-front__meta-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}
.lx-msg-front__badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	background: rgba(56, 189, 248, 0.12);
	border: 1px solid rgba(56, 189, 248, 0.28);
	color: #7dd3fc;
}
.lx-msg-front__time {
	font-size: 12px;
	color: var(--mf-muted);
}
.lx-msg-front__item-title {
	margin: 0;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.4;
}
.lx-msg-front__item.is-unread .lx-msg-front__item-title {
	color: #f8fafc;
}
.lx-msg-front__chev {
	color: var(--mf-muted);
	font-size: 12px;
	margin-top: 6px;
	transition: transform 0.2s ease;
}
.lx-msg-front__item.is-open .lx-msg-front__chev {
	transform: rotate(90deg);
	color: var(--mf-accent);
}
.lx-msg-front__body {
	display: none;
	padding: 0 16px 16px 38px;
	border-top: 1px solid transparent;
	color: #cbd5e1;
	font-size: 14px;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
}
.lx-msg-front__item.is-open .lx-msg-front__body {
	display: block;
	border-top-color: var(--mf-line);
	padding-top: 12px;
	margin-top: 0;
}

/* ── 顶栏消息入口 ── */
.lx-header-msg {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative;
	padding: 6px 10px;
	margin-right: 4px;
	border-radius: 8px;
	color: #e2e6ed !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: color 0.2s ease, background 0.2s ease;
	flex-shrink: 0;
}
.lx-header-msg:hover {
	color: #8eb4d4 !important;
	background: rgba(74, 144, 200, 0.12);
}
.lx-header-msg__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.92;
}
.lx-header-msg__text {
	font-size: 14px;
}
.lx-header-msg__badge {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f43f5e, #ef4444);
	color: #fff !important;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-shadow: 0 0 0 2px #1a1f28;
	transform: translate(20%, -15%);
}
.lx-header-msg.has-unread {
	color: #bae6fd !important;
}
.lx-header-msg.has-unread .lx-header-msg__icon {
	color: #38bdf8;
}

@media (max-width: 640px) {
	.lx-header-msg__text { display: none; }
	.lx-msg-front__hero { flex-direction: column; }
	.lx-msg-front__hero-actions { margin-left: 0; width: 100%; }
	.lx-msg-front__hero-actions .lx-msg-front__btn { width: 100%; }
}

body.lx-messages-page,
body.lx-messages-page .wp-site-blocks {
	background: #070b14;
}
body.lx-messages-page .lx-client-page,
body.lx-messages-page .wp-block-post-content {
	background: transparent;
}
