/* 优洗学堂样式 - 匹配网站整体neo-section背景 */
/* 确保CSS变量可用 */
:root {
	--neo-bg-from: #0a0f1e;
	--neo-bg-to: #0b1b33;
	--neo-cyan: #00ffff;
	--neo-blue: #1e90ff;
	--neo-silver: #c7d2e0;
	--neo-white: #ffffff;
	--neo-card-bg: rgba(255, 255, 255, 0.06);
	--neo-card-border: rgba(255, 255, 255, 0.18);
	--neo-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.academy.neo-section {
	background: linear-gradient(135deg, var(--neo-bg-from) 0%, var(--neo-bg-to) 100%);
	position: relative;
	overflow: hidden;
}

.academy.neo-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		linear-gradient(rgba(0, 255, 255, 0.10) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 255, 255, 0.10) 1px, transparent 1px);
	background-size: 48px 48px;
	opacity: 0.15;
	animation: neoGrid 28s linear infinite;
}

@keyframes neoGrid {
	0% { transform: translate(0, 0); }
	100% { transform: translate(48px, 48px); }
}

.academy.neo-section .container {
	position: relative;
	z-index: 2;
}

.academy.neo-section .section-title {
	color: var(--neo-white);
	text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.academy.neo-section .section-subtitle {
	color: var(--neo-silver);
}

/* 分类标签样式 - neo主题风格 */
.academy.neo-section .academy-tabs {
	margin: 3rem 0;
	display: flex;
	justify-content: center;
}

.academy.neo-section .tab-buttons {
	display: flex;
	background: var(--neo-card-bg);
	border-radius: 50px;
	padding: 8px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--neo-card-border);
	box-shadow: var(--neo-shadow);
}

.academy.neo-section .tab-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: transparent;
	border: none;
	border-radius: 40px;
	color: var(--neo-silver);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.academy.neo-section .tab-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.academy.neo-section .tab-btn:hover::before {
	left: 100%;
}

.academy.neo-section .tab-btn:hover {
	color: var(--neo-white);
	transform: translateY(-2px);
}

.academy.neo-section .tab-btn.active {
	background: linear-gradient(45deg, var(--neo-cyan), var(--neo-blue));
	color: #001018;
	box-shadow: 
		0 0 20px rgba(0, 255, 255, 0.4),
		0 4px 15px rgba(0, 0, 0, 0.3);
}

.academy.neo-section .tab-btn i {
	font-size: 18px;
}

/* 视频内容区域 */
.academy-content {
	margin-top: 2rem;
}

.video-category {
	display: none;
}

.video-category.active {
	display: block;
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

/* 视频卡片样式 - neo主题风格 */
.academy.neo-section .video-card {
	background: var(--neo-card-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--neo-shadow);
	transition: all 0.3s ease;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--neo-card-border);
}

.academy.neo-section .video-card:hover {
	transform: translateY(-8px);
	box-shadow: 
		0 16px 48px rgba(0, 0, 0, 0.4),
		0 0 20px rgba(0, 255, 255, 0.15);
	border-color: rgba(0, 255, 255, 0.3);
}

.video-thumbnail {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #000;
}

.video-thumbnail video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail video {
	transform: scale(1.05);
}

.academy.neo-section .play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: var(--neo-card-bg);
	border: 1px solid var(--neo-card-border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.academy.neo-section .play-button:hover {
	background: rgba(0, 255, 255, 0.1);
	border-color: var(--neo-cyan);
	transform: translate(-50%, -50%) scale(1.1);
	box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.academy.neo-section .play-button i {
	font-size: 20px;
	color: var(--neo-cyan);
	margin-left: 3px;
	text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.video-duration {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0,0,0,0.8);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

/* 视频信息样式 - neo主题风格 */
.academy.neo-section .video-info {
	padding: 1.5rem;
}

.academy.neo-section .video-info h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--neo-white);
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.academy.neo-section .video-info p {
	color: var(--neo-silver);
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 1rem;
}

.academy.neo-section .video-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: var(--neo-cyan);
}

.academy.neo-section .video-meta .views {
	display: flex;
	align-items: center;
	gap: 4px;
}

.academy.neo-section .video-meta .views i {
	font-size: 12px;
}

.academy.neo-section .video-meta .date {
	color: var(--neo-silver);
}

/* 响应式设计 */
@media (max-width: 768px) {
	.academy-tabs .tab-buttons {
		flex-direction: column;
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}
	
	.academy-tabs .tab-btn {
		justify-content: center;
		margin-bottom: 4px;
	}
	
	.video-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.video-card {
		margin: 0 1rem;
	}
	
	.video-thumbnail {
		height: 180px;
	}
	
	.play-button {
		width: 50px;
		height: 50px;
	}
	
	.play-button i {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.academy-tabs .tab-btn {
		padding: 10px 16px;
		font-size: 14px;
	}
	
	.academy-tabs .tab-btn i {
		font-size: 16px;
	}
	
	.video-info {
		padding: 1rem;
	}
	
	.video-info h3 {
		font-size: 1.1rem;
	}
	
	.video-info p {
		font-size: 0.85rem;
	}
}

/* 视频播放状态 */
.video-card.playing .play-button {
	opacity: 0;
	pointer-events: none;
}

.video-card.playing .video-thumbnail video {
	transform: scale(1);
}

/* 加载动画 */
.video-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255,255,255,0.3);
	border-top: 3px solid #fff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	display: none;
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.video-card.loading .video-loading {
	display: block;
}

.video-card.loading .play-button {
	display: none;
}