/* 智能托管控制中心 */
.lx-hc {
	--hc-cyan: #22d3ee;
	--hc-violet: #a78bfa;
	--hc-pink: #f472b6;
	--hc-green: #4ade80;
	--hc-amber: #fbbf24;
	--hc-red: #f87171;
	--hc-text: #e2e8f0;
	--hc-muted: #94a3b8;
	--hc-panel: rgba(12, 18, 36, 0.94);
	--hc-line: rgba(34, 211, 238, 0.22);
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 12px 36px;
	color: var(--hc-text);
	font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lx-hc--gate {
	min-height: 60vh;
	display: grid;
	place-items: center;
}
.lx-hc-gate {
	max-width: 460px;
	text-align: center;
	padding: 32px 24px;
	border-radius: 18px;
	border: 1px solid var(--hc-line);
	background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.55));
}
.lx-hc-gate__orb {
	width: 72px;
	height: 72px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	font-size: 32px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #67e8f9, #6366f1);
	box-shadow: 0 0 40px rgba(34, 211, 238, 0.35);
}
.lx-hc-gate h1 { margin: 0 0 10px; }
.lx-hc-gate p { color: var(--hc-muted); line-height: 1.6; margin: 0 0 18px; }

/* Hero */
.lx-hc__hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 18px 16px;
	border-radius: 16px;
	border: 1px solid var(--hc-line);
	background:
		radial-gradient(ellipse 50% 80% at 0% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
		radial-gradient(ellipse 40% 60% at 100% 0%, rgba(167, 139, 250, 0.14), transparent 50%),
		linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.5));
	margin-bottom: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.lx-hc__kicker {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: #c4b5fd;
}
.lx-hc__title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 900;
	background: linear-gradient(90deg, #67e8f9, #e9d5ff 50%, #f9a8d4);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lx-hc__sub { margin: 0; font-size: 13.5px; color: var(--hc-muted); }
.lx-hc__hero-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Buttons */
.lx-hc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	color: var(--hc-text);
	background: rgba(30, 41, 59, 0.85);
	transition: transform 0.15s;
}
.lx-hc-btn:hover { transform: translateY(-1px); }
.lx-hc-btn--primary {
	background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(99, 102, 241, 0.4));
	border-color: rgba(34, 211, 238, 0.45);
	color: #a5f3fc;
}
.lx-hc-btn--cta {
	background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 52%, #6d28d9 100%); color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border: none; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.35); box-shadow: 0 4px 16px rgba(29,78,216,.42);
}
.lx-hc-btn--ghost {
	background: transparent;
	border-color: rgba(148, 163, 184, 0.3);
	color: var(--hc-muted);
}
.lx-hc-btn--sm { padding: 5px 10px; font-size: 12px; }
.lx-hc-btn--danger { border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }

/* Metrics */
.lx-hc__metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 12px;
}
.lx-hc-metric {
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--hc-line);
	background: var(--hc-panel);
}
.lx-hc-metric__val {
	font-size: 22px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: var(--hc-cyan);
	text-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}
.lx-hc-metric__lbl { font-size: 12px; color: var(--hc-muted); margin-top: 2px; }
.lx-hc-metric.is-warn .lx-hc-metric__val { color: var(--hc-amber); }
.lx-hc-metric.is-err .lx-hc-metric__val { color: var(--hc-red); }
.lx-hc-metric.is-ok .lx-hc-metric__val { color: var(--hc-green); }

/* Tabs */
.lx-hc__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.lx-hc__tab {
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.25);
	background: rgba(15, 23, 42, 0.65);
	color: var(--hc-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.lx-hc__tab.is-on,
.lx-hc__tab:hover {
	border-color: rgba(34, 211, 238, 0.45);
	color: #a5f3fc;
	background: rgba(34, 211, 238, 0.1);
}

/* Body cards */
.lx-hc__body { min-height: 320px; }
.lx-hc__loading { text-align: center; color: var(--hc-muted); padding: 40px; }

.lx-hc-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 12px;
}
.lx-hc-card {
	grid-column: span 12;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--hc-line);
	background: var(--hc-panel);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.lx-hc-card--4 { grid-column: span 4; }
.lx-hc-card--6 { grid-column: span 6; }
.lx-hc-card--8 { grid-column: span 8; }
.lx-hc-card__h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}
.lx-hc-card__h h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #a5f3fc;
}

/* Health score ring */
.lx-hc-score {
	display: flex;
	align-items: center;
	gap: 16px;
}
.lx-hc-score__ring {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 28px;
	font-weight: 900;
	border: 4px solid var(--hc-green);
	color: var(--hc-green);
	box-shadow: 0 0 24px rgba(74, 222, 128, 0.25);
}
.lx-hc-score__ring.is-mid { border-color: var(--hc-amber); color: var(--hc-amber); }
.lx-hc-score__ring.is-low { border-color: var(--hc-red); color: var(--hc-red); }

.lx-hc-check {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.12);
	font-size: 13px;
}
.lx-hc-check:last-child { border-bottom: none; }
.lx-hc-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-top: 4px;
	flex-shrink: 0;
	box-shadow: 0 0 8px currentColor;
}
.lx-hc-dot--ok { background: var(--hc-green); color: var(--hc-green); }
.lx-hc-dot--warn { background: var(--hc-amber); color: var(--hc-amber); }
.lx-hc-dot--error { background: var(--hc-red); color: var(--hc-red); }
.lx-hc-check strong { display: block; margin-bottom: 2px; }
.lx-hc-check span { color: var(--hc-muted); font-size: 12.5px; }

/* Bars */
.lx-hc-bars { display: flex; flex-direction: column; gap: 8px; }
.lx-hc-bar-row {
	display: grid;
	grid-template-columns: 100px 1fr 56px;
	gap: 8px;
	align-items: center;
	font-size: 12px;
}
.lx-hc-bar-track {
	height: 8px;
	border-radius: 99px;
	background: rgba(148, 163, 184, 0.15);
	overflow: hidden;
}
.lx-hc-bar-fill {
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--hc-cyan), var(--hc-violet));
}

/* Form */
.lx-hc-form { display: grid; gap: 10px; max-width: 420px; }
.lx-hc-field label { display: block; font-size: 12px; color: var(--hc-muted); margin-bottom: 4px; }
.lx-hc-field input,
.lx-hc-field select {
	width: 100%;
	padding: 9px 12px;
	border-radius: 10px;
	border: 1px solid rgba(34, 211, 238, 0.25);
	background: rgba(15, 23, 42, 0.9);
	color: var(--hc-text);
	font: inherit;
	font-size: 13.5px;
}

/* Route */
.lx-hc-route-mode {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.lx-hc-route-mode button {
	padding: 8px 14px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.3);
	background: transparent;
	color: var(--hc-muted);
	cursor: pointer;
	font-weight: 700;
	font-size: 13px;
}
.lx-hc-route-mode button.is-on {
	border-color: rgba(34, 211, 238, 0.5);
	color: #a5f3fc;
	background: rgba(34, 211, 238, 0.12);
}
.lx-hc-rule {
	padding: 8px 0;
	border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
	font-size: 13px;
}
.lx-hc-rule b { color: #a5f3fc; }

/* Trace list */
.lx-hc-trace {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.12);
	cursor: pointer;
}
.lx-hc-trace:hover { background: rgba(34, 211, 238, 0.04); }
.lx-hc-trace__title { font-weight: 700; font-size: 13.5px; }
.lx-hc-trace__meta { font-size: 12px; color: var(--hc-muted); margin-top: 2px; }
.lx-hc-badge {
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid transparent;
}
.lx-hc-badge--ok { color: var(--hc-green); border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.lx-hc-badge--fail { color: var(--hc-red); border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }

/* Timeline steps */
.lx-hc-steps { position: relative; padding-left: 18px; }
.lx-hc-steps::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: linear-gradient(180deg, var(--hc-cyan), var(--hc-violet));
	opacity: 0.5;
}
.lx-hc-step {
	position: relative;
	padding: 8px 0 8px 14px;
	font-size: 13px;
}
.lx-hc-step::before {
	content: "";
	position: absolute;
	left: -16px;
	top: 12px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--hc-cyan);
	box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
	border: 2px solid #0f172a;
}
.lx-hc-step.is-error::before { background: var(--hc-red); box-shadow: 0 0 10px rgba(248, 113, 113, 0.5); }
.lx-hc-step.is-tool::before { background: var(--hc-violet); }
.lx-hc-step strong { display: block; margin-bottom: 2px; }
.lx-hc-step span { color: var(--hc-muted); font-size: 12.5px; line-height: 1.45; }
.lx-hc-step-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
	font-size: 11px;
	color: #64748b;
}

/* Sandbox */
.lx-hc-sandbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}
.lx-hc-sandbox-item {
	padding: 12px;
	border-radius: 12px;
	border: 1px solid rgba(34, 211, 238, 0.18);
	background: rgba(8, 12, 24, 0.55);
	font-size: 13px;
}
.lx-hc-sandbox-item h4 { margin: 0 0 6px; font-size: 13px; color: #a5f3fc; }
.lx-hc-sandbox-item ul { margin: 0; padding-left: 1.1em; color: var(--hc-muted); line-height: 1.55; }

/* Plan cards */
.lx-hc-plans {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}
.lx-hc-plan {
	padding: 14px;
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.25);
	background: rgba(8, 12, 24, 0.55);
}
.lx-hc-plan.is-current {
	border-color: rgba(34, 211, 238, 0.5);
	box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}
.lx-hc-plan h4 { margin: 0 0 6px; }
.lx-hc-plan p { margin: 0; font-size: 12.5px; color: var(--hc-muted); line-height: 1.5; }

/* Alerts */
.lx-hc-alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 8px 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.1);
	font-size: 13px;
}
.lx-hc-alert--warn { color: #fde68a; }
.lx-hc-alert--error { color: #fca5a5; }

.lx-hc-note {
	font-size: 11.5px;
	color: #64748b;
	margin: 10px 0 0;
	line-height: 1.45;
}

/* Toast / drawer */
.lx-hc__toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 100020;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.95);
	border: 1px solid rgba(34, 211, 238, 0.4);
	color: #a5f3fc;
	font-size: 13px;
}
.lx-hc__drawer {
	position: fixed;
	inset: 0;
	z-index: 100021;
}
.lx-hc__drawer[hidden] { display: none !important; }
.lx-hc__drawer-bd {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.65);
}
.lx-hc__drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(480px, 96vw);
	background: linear-gradient(180deg, #0f172a, #111827);
	border-left: 1px solid rgba(34, 211, 238, 0.3);
	box-shadow: -12px 0 48px rgba(0, 0, 0, 0.5);
	overflow: auto;
	padding: 20px 18px 32px;
}
.lx-hc__drawer-x {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	color: var(--hc-muted);
	font-size: 22px;
	cursor: pointer;
}

@media (max-width: 900px) {
	.lx-hc__metrics { grid-template-columns: 1fr 1fr; }
	.lx-hc-card--4,
	.lx-hc-card--6,
	.lx-hc-card--8 { grid-column: span 12; }
}
@media (max-width: 560px) {
	.lx-hc__metrics { grid-template-columns: 1fr; }
	.lx-hc-bar-row { grid-template-columns: 70px 1fr 48px; }
}
