/* =========================================================
   龙虾军团 · 赛博朋克画布
   ========================================================= */

/* 突破主题内容区 */
body.lx-lobster-team-page .entry-content,
body.lx-lobster-team-page .wp-block-post-content,
body.lx-lobster-team-page .lx-single-body,
body.lx-lobster-team-page main.wp-block-group {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}
body.lx-lobster-team-page .lx-front-lt-wrap {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.lx-lobster-team-page .wp-site-blocks > main,
body.lx-lobster-team-page main {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.lx-lt--v2,
.lx-lt--immersive,
.lx-lt--cyber {
	--lt-bg: #03050c;
	--lt-panel: rgba(6, 12, 26, 0.88);
	--lt-line: rgba(0, 255, 240, 0.28);
	--lt-text: #e8f7ff;
	--lt-muted: #8aa0b8;
	--lt-cyan: #00fff0;
	--lt-pink: #ff2bd6;
	--lt-violet: #8b5cff;
	--lt-blue: #38bdf8;
	--lt-topbar-h: 58px;
	--lt-log-h: 36px;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	min-height: calc(100vh - 72px);
	/* 不锁死 height，便于滚轮滚动整页 */
	height: auto;
	color: var(--lt-text);
	font-family: "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
	background: var(--lt-bg);
	border: none;
	border-top: 1px solid rgba(0, 255, 240, 0.15);
	box-sizing: border-box;
	isolation: isolate;
	overflow: visible;
}

/* 背景 FX */
.lx-lt__fx {
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}
.lx-lt__fx-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 255, 240, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 255, 240, 0.035) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 10%, transparent 75%);
	animation: lx-lt-grid 20s linear infinite;
}
.lx-lt__fx-glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 50% 40% at 10% 0%, rgba(0, 255, 240, 0.12), transparent 55%),
		radial-gradient(ellipse 45% 35% at 95% 10%, rgba(255, 43, 214, 0.1), transparent 50%),
		radial-gradient(ellipse 40% 30% at 50% 100%, rgba(139, 92, 255, 0.08), transparent 55%);
}
@keyframes lx-lt-grid {
	to { background-position: 0 32px, 32px 0; }
}
.lx-lt > *:not(.lx-lt__fx) { position: relative; z-index: 1; }

/* —— 顶栏 HUD —— */
.lx-lt__topbar {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	min-height: var(--lt-topbar-h);
	padding: 10px 14px;
	background:
		linear-gradient(180deg, rgba(8, 16, 32, 0.92), rgba(4, 8, 18, 0.88));
	border-bottom: 1px solid rgba(0, 255, 240, 0.22);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 255, 240, 0.04);
	z-index: 20;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.lx-lt__brand-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}
.lx-lt__brand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
	background: linear-gradient(90deg, #67e8f9, #e0f2fe, #f0abfc);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lx-lt__brand-ic {
	filter: drop-shadow(0 0 8px rgba(0, 255, 240, 0.5));
	-webkit-text-fill-color: initial;
	background: none;
	color: inherit;
}
.lx-lt__fields {
	display: flex;
	flex: 1 1 220px;
	gap: 8px;
	min-width: 0;
}
.lx-lt__fields input,
.lx-lt__topbar input {
	border: 1px solid rgba(0, 255, 240, 0.22);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.4);
	color: var(--lt-text);
	padding: 7px 12px;
	font-size: 13px;
	min-width: 0;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.lx-lt__fields input:focus {
	border-color: rgba(0, 255, 240, 0.55);
	box-shadow: 0 0 0 3px rgba(0, 255, 240, 0.1);
}
#lx-lt-name { flex: 0 1 150px; max-width: 180px; }
#lx-lt-desc { flex: 1 1 160px; }

/* 成本芯片（非大框） */
.lx-lt__costbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}
.lx-lt__chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(0, 255, 240, 0.2);
	background: rgba(0, 255, 240, 0.06);
	font-size: 11px;
	white-space: nowrap;
}
.lx-lt__chip em {
	font-style: normal;
	color: var(--lt-muted);
	letter-spacing: 0.04em;
}
.lx-lt__chip strong {
	color: var(--lt-cyan);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 10px rgba(0, 255, 240, 0.35);
}

.lx-lt__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	flex: 0 1 auto;
	justify-content: flex-end;
	margin-left: auto;
}

.lx-lt-btn {
	border: 1px solid rgba(0, 255, 240, 0.22);
	background: rgba(0, 255, 240, 0.05);
	color: var(--lt-text);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12.5px;
	cursor: pointer;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.lx-lt-btn:hover {
	border-color: rgba(0, 255, 240, 0.5);
	background: rgba(0, 255, 240, 0.12);
	box-shadow: 0 0 14px rgba(0, 255, 240, 0.15);
	transform: translateY(-1px);
}
.lx-lt-btn--cta {
	background: linear-gradient(135deg, #059669 0%, #0e7490 100%);
	border: none;
	color: #fff !important;
	box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
}
.lx-lt-btn--primary {
	background: linear-gradient(135deg, #0369a1 0%, #6d28d9 100%);
	border: none;
	color: #fff !important;
	box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}
.lx-lt-btn--deploy {
	background: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
	border: none;
	color: #fff !important;
}
.lx-lt-btn--icon {
	padding: 6px 10px;
	background: rgba(0, 255, 240, 0.08);
	border-color: rgba(0, 255, 240, 0.3);
}
.lx-lt-btn--icon.is-on {
	background: rgba(0, 255, 240, 0.2);
	border-color: var(--lt-cyan);
	color: var(--lt-cyan);
	box-shadow: 0 0 12px rgba(0, 255, 240, 0.25);
}

/* —— 舞台 —— */
.lx-lt__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: min(720px, calc(100vh - 160px));
	height: min(760px, calc(100vh - 140px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-bottom: 1px solid rgba(0, 255, 240, 0.12);
}
.lx-lt__canvas-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	min-height: 0;
	background:
		radial-gradient(ellipse 70% 55% at 50% 40%, rgba(0, 255, 240, 0.05), transparent 55%),
		radial-gradient(ellipse 40% 35% at 80% 20%, rgba(255, 43, 214, 0.04), transparent 50%),
		radial-gradient(circle at 1px 1px, rgba(0, 255, 240, 0.12) 1px, transparent 0);
	background-size: auto, auto, 28px 28px;
	width: 100%;
	height: 100%;
	cursor: grab;
	/* 允许滚轮冒泡到页面，仅禁用触摸默认平移冲突 */
	touch-action: pan-y;
}
.lx-lt__canvas-wrap.is-panning {
	cursor: grabbing;
	touch-action: none;
}

/* 细滚动条 */
.lx-lt__drawer-body,
.lx-lt__logs {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 255, 240, 0.45) rgba(8, 12, 24, 0.5);
}
.lx-lt__drawer-body::-webkit-scrollbar,
.lx-lt__logs::-webkit-scrollbar {
	width: 6px;
}
.lx-lt__drawer-body::-webkit-scrollbar-thumb,
.lx-lt__logs::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(0, 255, 240, 0.55), rgba(139, 92, 255, 0.45));
	border-radius: 999px;
}

.lx-lt__hint {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 6px 14px;
	font-size: 11.5px;
	color: var(--lt-muted);
	background: rgba(3, 6, 14, 0.75);
	border-bottom: 1px solid rgba(0, 255, 240, 0.12);
	backdrop-filter: blur(8px);
}
.lx-lt__hint strong {
	font-family: Orbitron, ui-monospace, monospace;
	color: var(--lt-cyan);
	font-weight: 800;
	letter-spacing: 0.12em;
	font-size: 10px;
}
.lx-lt__hint kbd {
	border: 1px solid rgba(0, 255, 240, 0.3);
	border-radius: 4px;
	padding: 0 5px;
	font-size: 10.5px;
	background: rgba(0, 255, 240, 0.08);
	color: #a5f3fc;
}

.lx-lt__canvas {
	position: relative;
	width: 2800px;
	height: 1600px;
	min-width: 100%;
	min-height: 100%;
	transform-origin: 0 0;
	will-change: transform;
}
.lx-lt__edges {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

/* 节点 · 赛博 */
.lx-lt__node {
	position: absolute;
	width: 168px;
	border: 1px solid rgba(0, 255, 240, 0.32);
	border-radius: 12px;
	background:
		linear-gradient(155deg, rgba(0, 255, 240, 0.1) 0%, transparent 45%),
		linear-gradient(320deg, rgba(255, 43, 214, 0.06) 0%, transparent 50%),
		rgba(6, 12, 26, 0.9);
	padding: 12px 14px;
	cursor: grab;
	user-select: none;
	box-shadow:
		0 0 0 1px rgba(139, 92, 255, 0.08) inset,
		0 10px 28px rgba(0, 0, 0, 0.45),
		0 0 18px rgba(0, 255, 240, 0.06);
	transition: box-shadow 0.15s, border-color 0.15s, transform 0.12s;
	backdrop-filter: blur(4px);
}
.lx-lt__node:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 43, 214, 0.45);
	box-shadow:
		0 0 0 1px rgba(0, 255, 240, 0.15) inset,
		0 14px 32px rgba(0, 0, 0, 0.5),
		0 0 24px rgba(0, 255, 240, 0.15);
}
.lx-lt__node:active { cursor: grabbing; }
.lx-lt__node.is-selected {
	border-color: var(--lt-cyan);
	box-shadow:
		0 0 0 1px var(--lt-cyan),
		0 0 28px rgba(0, 255, 240, 0.35),
		0 0 40px rgba(255, 43, 214, 0.12);
}
.lx-lt__node.is-ok { box-shadow: 0 0 0 1px #34d399, 0 0 16px rgba(52, 211, 153, 0.3); }
.lx-lt__node.is-run { box-shadow: 0 0 0 1px #fbbf24, 0 0 16px rgba(251, 191, 36, 0.3); }
.lx-lt__node.is-fail { box-shadow: 0 0 0 1px #f87171, 0 0 16px rgba(248, 113, 113, 0.3); }
.lx-lt__node .t { font-size: 11px; margin-bottom: 3px; color: #a5f3fc; }
.lx-lt__node .n { font-weight: 700; font-size: 13.5px; line-height: 1.3; color: #f0fbff; }
.lx-lt__node .st { font-size: 10px; margin-top: 5px; }
.lx-lt__node .st.ok { color: #4ade80; }
.lx-lt__node .st.run { color: #fbbf24; }
.lx-lt__node .st.fail { color: #f87171; }
.lx-lt__node .st.wait { color: #a78bfa; }
.lx-lt__node .port {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--lt-cyan);
	border: 2px solid #0b1220;
	box-shadow: 0 0 10px rgba(0, 255, 240, 0.65);
}
.lx-lt__node .port-in { left: -7px; top: 50%; margin-top: -6px; }
.lx-lt__node .port-out { right: -7px; top: 50%; margin-top: -6px; background: var(--lt-pink); box-shadow: 0 0 10px rgba(255, 43, 214, 0.55); }

/* Agent 库卡片 */
.lx-lt__agent-lib {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.lx-lt__agent-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-align: left;
	padding: 10px;
	border-radius: 12px;
	border: 1px solid rgba(0, 255, 240, 0.16);
	background: rgba(0, 0, 0, 0.28);
	color: inherit;
	cursor: grab;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.lx-lt__agent-card:hover {
	border-color: color-mix(in srgb, var(--ag, var(--lt-cyan)) 55%, transparent);
	box-shadow: 0 0 16px color-mix(in srgb, var(--ag, var(--lt-cyan)) 18%, transparent);
	background: rgba(0, 255, 240, 0.05);
}
.lx-lt__agent-card .ic { font-size: 20px; line-height: 1; }
.lx-lt__agent-card .bd strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
}
.lx-lt__agent-card .bd em {
	display: block;
	font-style: normal;
	font-size: 11px;
	color: var(--lt-muted);
	margin-top: 2px;
}
.lx-lt__agent-card .bd small {
	display: block;
	font-size: 11px;
	color: #7a90a8;
	margin-top: 2px;
	line-height: 1.35;
}

/* 抽屉 */
.lx-lt__drawer {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 15;
	width: min(300px, 88vw);
	background:
		linear-gradient(180deg, rgba(8, 16, 32, 0.95), rgba(4, 8, 18, 0.92));
	border: 1px solid rgba(0, 255, 240, 0.28);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 255, 240, 0.06);
	display: flex;
	flex-direction: column;
	transform: translateX(0);
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
	opacity: 1;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.lx-lt__drawer--left {
	left: 0;
	border-left: none;
	border-radius: 0 14px 14px 0;
}
.lx-lt__drawer--right {
	right: 0;
	border-right: none;
	border-radius: 14px 0 0 14px;
	width: min(320px, 90vw);
}
.lx-lt__drawer[aria-hidden="true"] {
	pointer-events: none;
	opacity: 0;
}
.lx-lt__drawer--left[aria-hidden="true"] { transform: translateX(-105%); }
.lx-lt__drawer--right[aria-hidden="true"] { transform: translateX(105%); }
.lx-lt__drawer-h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(0, 255, 240, 0.15);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-family: Orbitron, ui-monospace, monospace;
	color: #a5f3fc;
	flex: 0 0 auto;
}
.lx-lt__drawer-body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 10px 12px 16px;
	min-height: 0;
}
.lx-lt__side-h {
	font-size: 10.5px;
	color: rgba(0, 255, 240, 0.65);
	margin: 14px 0 8px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-family: Orbitron, ui-monospace, monospace;
	font-weight: 700;
}
.lx-lt__side-h:first-child { margin-top: 0; }
.lx-lt__muted {
	color: var(--lt-muted);
	font-size: 12.5px;
	line-height: 1.55;
}

.lx-lt__tpl-list button,
.lx-lt__mine button {
	display: block;
	width: 100%;
	text-align: left;
	border: 1px solid transparent;
	background: transparent;
	color: var(--lt-text);
	padding: 9px 10px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 12.5px;
	margin-bottom: 4px;
	transition: border-color 0.15s, background 0.15s;
}
.lx-lt__tpl-list button:hover,
.lx-lt__mine button:hover {
	border-color: rgba(0, 255, 240, 0.28);
	background: rgba(0, 255, 240, 0.06);
}
.lx-lt__tpl-d {
	color: var(--lt-muted);
	font-size: 11px;
	line-height: 1.35;
}
.lx-lt__palette--side {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.lx-lt__palette--side button {
	border: 1px solid rgba(0, 255, 240, 0.18);
	background: rgba(0, 0, 0, 0.3);
	color: var(--lt-text);
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 12.5px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.lx-lt__palette--side button:hover {
	border-color: rgba(255, 43, 214, 0.4);
	background: rgba(255, 43, 214, 0.08);
	box-shadow: 0 0 14px rgba(255, 43, 214, 0.12);
}

.lx-lt-field { margin-bottom: 10px; }
.lx-lt-field label {
	display: block;
	font-size: 11.5px;
	color: var(--lt-muted);
	margin-bottom: 4px;
}
.lx-lt-field input,
.lx-lt-field textarea,
.lx-lt-field select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(0, 255, 240, 0.22);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.35);
	color: var(--lt-text);
	padding: 7px 9px;
	font: inherit;
	font-size: 12.5px;
}

/* 日志条 */
.lx-lt__runlog {
	flex: 0 0 auto;
	border-top: 1px solid rgba(0, 255, 240, 0.15);
	background: rgba(0, 0, 0, 0.4);
	z-index: 12;
	max-height: 42vh;
	display: flex;
	flex-direction: column;
	transition: max-height 0.2s ease;
}
.lx-lt__runlog[data-collapsed="1"] { max-height: var(--lt-log-h); }
.lx-lt__runlog[data-collapsed="1"] .lx-lt__logs { display: none; }
.lx-lt__runlog[data-collapsed="1"] .lx-lt__runlog-chev { transform: rotate(180deg); }
.lx-lt__runlog-h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--lt-muted);
	font-size: 12px;
	padding: 8px 14px;
	cursor: pointer;
	text-align: left;
	font-weight: 700;
	letter-spacing: 0.06em;
	font-family: Orbitron, ui-monospace, monospace;
}
.lx-lt__runlog-h:hover { color: var(--lt-cyan); }
.lx-lt__runlog-chev {
	display: inline-block;
	transition: transform 0.2s;
	font-size: 10px;
	opacity: 0.8;
}
.lx-lt__logs {
	padding: 0 14px 12px;
	font-size: 12.5px;
	line-height: 1.55;
	white-space: pre-wrap;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: #c8d8e8;
	overflow: auto;
	max-height: 28vh;
}

.lx-lt__toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(4, 10, 22, 0.95);
	border: 1px solid var(--lt-cyan);
	padding: 8px 16px;
	border-radius: 999px;
	z-index: 10060;
	font-size: 13px;
	color: #a5f3fc;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 255, 240, 0.15);
}
.lx-lt__modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.lx-lt__modal[hidden] { display: none !important; }
.lx-lt__modal-bd {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 12, 0.75);
	backdrop-filter: blur(6px);
}
.lx-lt__modal-card {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	background: linear-gradient(160deg, #0a1220, #120c24);
	border: 1px solid rgba(0, 255, 240, 0.3);
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
	color: var(--lt-text);
}

/* 兼容旧 hero（若缓存） */
.lx-lt__hero { display: none !important; }
.lx-lt__side { display: none; }
.lx-lt__main { display: contents; }
.lx-lt__workspace { display: contents; }
.lx-lt__top { display: none; }

@media (max-width: 960px) {
	.lx-lt__costbar { order: 5; width: 100%; }
	.lx-lt__stage {
		min-height: 58vh;
		height: 62vh;
	}
	.lx-lt__canvas {
		width: 2000px;
		height: 1200px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.lx-lt__fx-grid { animation: none !important; }
}
