/* =========================================================
   OpenClaw Academy · 赛博朋克学习中心
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

.lx-ac {
	--ac-bg: #05060d;
	--ac-panel: rgba(8, 12, 24, 0.78);
	--ac-line: rgba(0, 255, 240, 0.28);
	--ac-cyan: #00fff0;
	--ac-pink: #ff2bd6;
	--ac-purple: #8b5cff;
	--ac-green: #34d399;
	--ac-text: #e8f7ff;
	--ac-muted: #8aa0b8;
	--ac-glow: 0 0 24px rgba(0, 255, 240, 0.28);
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 16px 64px;
	color: var(--ac-text);
	font-family: "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
	isolation: isolate;
}

/* 氛围光晕 */
.lx-ac::before {
	content: "";
	pointer-events: none;
	position: absolute;
	inset: -20px -10px 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 55% 40% at 8% 0%, rgba(0, 255, 240, 0.14), transparent 55%),
		radial-gradient(ellipse 45% 35% at 96% 8%, rgba(255, 43, 214, 0.12), transparent 50%),
		radial-gradient(ellipse 40% 30% at 50% 100%, rgba(139, 92, 255, 0.1), transparent 55%);
}
.lx-ac > * {
	position: relative;
	z-index: 1;
}

/* 网格底纹 */
.lx-ac__grid-bg {
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.22;
	background-image:
		linear-gradient(rgba(0, 255, 240, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 255, 240, 0.06) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* —— Hero —— */
.lx-ac__hero {
	position: relative;
	overflow: hidden;
	padding: 28px 22px 24px;
	border: 1px solid var(--ac-line);
	border-radius: 18px;
	background:
		linear-gradient(145deg, rgba(0, 255, 240, 0.08) 0%, transparent 42%),
		linear-gradient(320deg, rgba(255, 43, 214, 0.07) 0%, transparent 48%),
		var(--ac-panel);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 0 0 1px rgba(139, 92, 255, 0.08) inset,
		0 18px 48px rgba(0, 0, 0, 0.4),
		var(--ac-glow);
	margin-bottom: 16px;
	text-align: center;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.lx-ac__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		transparent 40%,
		rgba(0, 255, 240, 0.08) 48%,
		rgba(255, 43, 214, 0.06) 52%,
		transparent 60%
	);
	background-size: 220% 100%;
	animation: lx-ac-scan 5s linear infinite;
	pointer-events: none;
}
.lx-ac__hero::after {
	content: "";
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: 0;
	height: 2px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--ac-cyan),
		var(--ac-pink),
		var(--ac-purple),
		transparent
	);
	box-shadow: 0 0 12px rgba(0, 255, 240, 0.45);
	opacity: 0.85;
}
@keyframes lx-ac-scan {
	0% { background-position: 120% 0; }
	100% { background-position: -120% 0; }
}

.lx-ac__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: Orbitron, monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: #041016;
	background: linear-gradient(90deg, var(--ac-cyan), #9af8ff);
	border: 1px solid rgba(0, 255, 240, 0.5);
	padding: 4px 12px;
	border-radius: 999px;
	box-shadow: 0 0 16px rgba(0, 255, 240, 0.35);
	position: relative;
	z-index: 1;
}
.lx-ac__badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #059669;
	box-shadow: 0 0 8px #34d399;
	animation: lx-ac-pulse 1.6s ease-in-out infinite;
}
@keyframes lx-ac-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.55; transform: scale(0.85); }
}

.lx-ac__hero h1 {
	margin: 14px 0 10px;
	font-size: clamp(1.25rem, 2.8vw, 1.25rem);
	font-weight: 900;
	letter-spacing: 0.02em;
	background: linear-gradient(90deg, #e8f7ff 0%, var(--ac-cyan) 45%, var(--ac-pink) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none;
	position: relative;
	z-index: 1;
}
.lx-ac__hero p {
	margin: 0 auto;
	max-width: 520px;
	color: var(--ac-muted);
	font-size: 14px;
	line-height: 1.65;
	position: relative;
	z-index: 1;
}

.lx-ac__progress-bar {
	height: 10px;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(0, 255, 240, 0.2);
	border-radius: 999px;
	margin: 18px auto 8px;
	max-width: 380px;
	overflow: hidden;
	position: relative;
	z-index: 1;
	box-shadow: 0 0 12px rgba(0, 255, 240, 0.12) inset;
}
.lx-ac__progress-bar i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ac-cyan), var(--ac-purple), var(--ac-pink));
	background-size: 200% 100%;
	animation: lx-ac-bar 2.4s linear infinite;
	box-shadow: 0 0 14px rgba(0, 255, 240, 0.55);
	transition: width 0.45s ease;
}
@keyframes lx-ac-bar {
	0% { background-position: 0% 0; }
	100% { background-position: 200% 0; }
}
.lx-ac__overall-txt {
	font-size: 12.5px;
	color: var(--ac-muted);
	font-family: Orbitron, monospace;
	letter-spacing: 0.06em;
	position: relative;
	z-index: 1;
}

/* —— 路径卡 —— */
.lx-ac__paths {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 18px;
}
@media (max-width: 720px) {
	.lx-ac__paths { grid-template-columns: 1fr; }
}
.lx-ac__path-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--ac-line);
	border-radius: 14px;
	padding: 14px 14px 14px 16px;
	background:
		linear-gradient(160deg, rgba(0, 255, 240, 0.06), transparent 50%),
		var(--ac-panel);
	font-size: 13px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lx-ac__path-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(180deg, var(--ac-cyan), var(--ac-purple));
	box-shadow: 0 0 10px rgba(0, 255, 240, 0.4);
}
.lx-ac__path-card:hover {
	border-color: rgba(0, 255, 240, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 0 24px rgba(0, 255, 240, 0.12), 0 14px 32px rgba(0, 0, 0, 0.35);
}
.lx-ac__path-card strong {
	display: block;
	margin-bottom: 6px;
	font-weight: 800;
	color: #f0fbff;
	letter-spacing: 0.02em;
}
.lx-ac__path-card span {
	color: var(--ac-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

/* —— 课程网格 —— */
.lx-ac__grid {
	display: grid;
	gap: 14px;
	margin-bottom: 20px;
}
.lx-ac__course {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--ac-line);
	border-radius: 16px;
	background:
		linear-gradient(145deg, rgba(0, 255, 240, 0.05) 0%, transparent 40%),
		linear-gradient(320deg, rgba(139, 92, 255, 0.06) 0%, transparent 45%),
		var(--ac-panel);
	padding: 16px 16px 12px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.05) inset,
		0 14px 36px rgba(0, 0, 0, 0.35);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.lx-ac__course:hover {
	border-color: rgba(0, 255, 240, 0.45);
	box-shadow:
		0 0 0 1px rgba(0, 255, 240, 0.12) inset,
		0 0 28px rgba(0, 255, 240, 0.1),
		0 16px 40px rgba(0, 0, 0, 0.4);
}
.lx-ac__course::after {
	content: "";
	position: absolute;
	top: 10px;
	right: 12px;
	width: 10px;
	height: 10px;
	border-top: 2px solid rgba(0, 255, 240, 0.45);
	border-right: 2px solid rgba(0, 255, 240, 0.45);
	opacity: 0.7;
	pointer-events: none;
}

.lx-ac__course-h {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0, 255, 240, 0.12);
}
.lx-ac__course-h .ico {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.55rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(0, 255, 240, 0.28);
	box-shadow: 0 0 16px rgba(0, 255, 240, 0.15);
}
.lx-ac__track {
	font-size: 11px;
	font-family: Orbitron, monospace;
	letter-spacing: 0.08em;
	color: var(--ac-cyan);
	text-shadow: 0 0 10px rgba(0, 255, 240, 0.35);
	margin-bottom: 4px;
}
.lx-ac__course-h strong {
	font-size: 1.08rem;
	font-weight: 800;
	color: #f0fbff;
	line-height: 1.35;
}

/* 课时行 */
.lx-ac__lesson {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 8px;
	margin: 0 -4px;
	border-top: 1px solid rgba(148, 163, 184, 0.08);
	font-size: 13.5px;
	border-radius: 10px;
	transition: background 0.15s;
}
.lx-ac__lesson:first-of-type {
	border-top: none;
}
.lx-ac__lesson:hover {
	background: rgba(0, 255, 240, 0.04);
}
.lx-ac__lesson.done {
	opacity: 0.72;
}
.lx-ac__lesson.done span {
	color: var(--ac-green);
}
.lx-ac__lesson span {
	flex: 1;
	min-width: 0;
	line-height: 1.45;
	color: var(--ac-text);
}
.lx-ac__lesson button {
	margin-left: auto;
	flex-shrink: 0;
}

/* 按钮 · 赛博 */
.lx-ac-btn {
	border: 1px solid var(--ac-line);
	background: rgba(0, 0, 0, 0.28);
	color: var(--ac-text);
	border-radius: 10px;
	padding: 7px 12px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.lx-ac-btn:hover {
	border-color: rgba(0, 255, 240, 0.55);
	background: rgba(0, 255, 240, 0.08);
	box-shadow: 0 0 14px rgba(0, 255, 240, 0.15);
	transform: translateY(-1px);
}
.lx-ac-btn--primary {
	background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 52%, #6d28d9 100%);
	border: none;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-weight: 800;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	box-shadow: 0 4px 16px rgba(29, 78, 216, 0.4);
}
.lx-ac-btn--primary:hover {
	filter: brightness(1.08);
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	box-shadow: 0 0 20px rgba(0, 255, 240, 0.25), 0 6px 18px rgba(29, 78, 216, 0.45);
}

/* 证书区 */
.lx-ac__cert {
	position: relative;
	overflow: hidden;
	padding: 18px 18px 16px;
	border-radius: 16px;
	border: 1px solid rgba(255, 43, 214, 0.25);
	background:
		linear-gradient(145deg, rgba(255, 43, 214, 0.06) 0%, transparent 45%),
		linear-gradient(320deg, rgba(139, 92, 255, 0.08) 0%, transparent 50%),
		var(--ac-panel);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}
.lx-ac__cert h2 {
	margin: 0 0 12px;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	background: linear-gradient(90deg, #f0fbff, var(--ac-pink));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lx-ac__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.lx-ac__badge-item {
	border: 1px solid rgba(0, 255, 240, 0.28);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.35);
	box-shadow: 0 0 14px rgba(0, 255, 240, 0.08);
	color: var(--ac-text);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.lx-ac__badge-item:hover {
	border-color: rgba(255, 43, 214, 0.45);
	box-shadow: 0 0 18px rgba(255, 43, 214, 0.15);
}

.lx-ac__toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(8, 12, 24, 0.95);
	border: 1px solid var(--ac-cyan);
	color: var(--ac-text);
	padding: 10px 18px;
	border-radius: 999px;
	z-index: 10050;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 0 24px rgba(0, 255, 240, 0.25), 0 10px 28px rgba(0, 0, 0, 0.45);
}

.lx-ac__quiz {
	margin-top: 10px;
	padding: 12px 14px;
	border: 1px solid var(--ac-line);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.28);
}
.lx-ac__quiz label {
	display: block;
	margin: 6px 0;
	font-size: 13px;
	cursor: pointer;
	color: var(--ac-muted);
}

/* 页面级赛博基底强化 */
body.lx-academy-page.lx-cyber-site .lx-front-ac-wrap,
body.lx-academy-page .lx-front-ac-wrap {
	position: relative;
	z-index: 1;
	padding: 8px 0 40px;
}
body.lx-academy-page.lx-cyber-site .entry-content,
body.lx-academy-page.lx-cyber-site .wp-block-post-content {
	background: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
	.lx-ac__hero::before,
	.lx-ac__progress-bar i,
	.lx-ac__badge::before {
		animation: none !important;
	}
}
