/* ===== 全局变量 ===== */
:root {
	--primary-color: #004ea2;
	--secondary-color: #1a2b3c;
	--accent-color: #ff7e36;
	--light-bg: #f8f9fa;
	--text-dark: #333;
	--text-medium: #666;
	--border-color: #e0e0e0;
	--gradient-main: linear-gradient(135deg, #004ea2 0%, #2c80ff 100%);
	--hover-shadow: 0 8px 20px rgba(0, 78, 162, 0.2);
	--module-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

body {
	color: var(--text-dark);
	background-color: var(--light-bg);
	line-height: 1.6;
	scroll-behavior: smooth;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

.container {
	width: 1152px;
	margin: 0 auto;
	padding: 0 15px;
}



/* ===== 面包屑导航 ===== */
.breadcrumb {
	padding: 15px 0 30px;
	font-size: 14px;
	color: #666;
}

.breadcrumb a {
	color: var(--primary-color);
	text-decoration: none;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.breadcrumb i {
	font-size: 12px;
	margin: 0 8px;
	color: #999;
}

/* ===== Banner 样式 ===== */
.course-header {
	background: linear-gradient(135deg, #0b2b4f 0%, #133e64 50%, #1b4f7a 100%);
	padding: 70px 0;
	position: relative;
	overflow: hidden;
	border-bottom: 4px solid #ff7e36;
}

.course-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(255, 126, 54, 0.15) 0%, rgba(255, 126, 54, 0) 70%);
	border-radius: 50%;
	z-index: 0;
}

.course-header::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
	border-radius: 50%;
	z-index: 0;
}

.course-header .container {
	position: relative;
	z-index: 2;
}

.course-header-content {
	text-align: center;
	max-width: 1000px;
	margin: 0 auto;
}

.course-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(5px);
	padding: 8px 24px;
	border-radius: 50px;
	color: #fff;
	font-size: 15px;
	margin-bottom: 25px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.course-badge i {
	color: #ff7e36;
	margin-right: 5px;
}

.course-main-title {
	font-size: 52px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 20px;
	text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.course-subtitle {
	font-size: 22px;
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: 35px;
	font-weight: 400;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}

.course-subtitle strong {
	color: #ffb38c;
	font-weight: 700;
}

.course-highlights {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.highlight-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.highlight-icon {
	width: 44px;
	height: 44px;
	background: rgba(255, 126, 54, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 126, 54, 0.4);
}

.highlight-icon i {
	color: #ff7e36;
	font-size: 20px;
}

.highlight-text {
	color: #fff;
	font-weight: 500;
	font-size: 16px;
}

.course-cta {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 40px;
	background: linear-gradient(135deg, #ff7e36 0%, #ff9f5c 100%);
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 700;
	font-size: 18px;
	transition: all 0.3s;
	box-shadow: 0 10px 25px rgba(255, 126, 54, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 30px rgba(255, 126, 54, 0.4);
	background: linear-gradient(135deg, #ff8f45 0%, #ffae70 100%);
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 40px;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 700;
	font-size: 18px;
	transition: all 0.3s;
	border: 2px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(5px);
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: #ff7e36;
	transform: translateY(-3px);
}

/* ===== 博客列表主体 ===== */
.blog-list {
	background-color: var(--light-bg);
	padding: 30px 0;
}

.blog-categories {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 40px;
}

.category-tag {
	padding: 8px 25px;
	border-radius: 30px;
	background: white;
	border: 1px solid var(--border-color);
	color: var(--text-dark);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
}

.category-tag.active,
.category-tag:hover {
	background: var(--gradient-main);
	color: white;
	border-color: transparent;
	box-shadow: var(--hover-shadow);
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* 博客卡片样式 */
.blog-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: var(--module-shadow);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	cursor: pointer;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--hover-shadow);
}

/* 卡片图片 */
.blog-card-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: block;
	transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
	transform: scale(1.02);
}

/* 卡片内容 */
.blog-card-content {
	padding: 25px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* 博客标题 */
.blog-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--secondary-color);
	margin-bottom: 12px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 博客元信息 */
.blog-meta {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
	font-size: 13px;
	color: var(--text-medium);
}

.blog-meta i {
	color: var(--primary-color);
	width: 16px;
	margin-right: 4px;
}

/* 摘要 */
.blog-excerpt {
	font-size: 14px;
	color: var(--text-medium);
	line-height: 1.7;
	margin-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

/* 卡片底部 */
.blog-footer {
	display: flex;
	justify-content: flex-end;
	border-top: 1px solid var(--border-color);
	padding-top: 15px;
	margin-top: auto;
}

/* 阅读更多 */
.blog-readmore {
	color: var(--primary-color);
	font-weight: 600;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: gap 0.3s;
	text-decoration: none;
}

.blog-readmore:hover {
	gap: 8px;
}

.blog-readmore i {
	transition: transform 0.2s;
}

.blog-card:hover .blog-readmore i {
	transform: translateX(4px);
}

/* 分页样式 */
.pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 50px;
}

.page-btn {
	padding: 8px 16px;
	margin: 0 4px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.3s;
}

.page-btn.active {
	background: #004ea2;
	color: #fff;
	border-color: #004ea2;
}

.page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.page-btn:hover:not(:disabled):not(.active) {
	background: #f0f0f0;
	border-color: #004ea2;
}

.loading-tip {
	text-align: center;
	padding: 60px;
	color: #666;
	grid-column: 1/-1;
}

/* ===== CTA区域 ===== */
.cta-optimized-section {
	padding: 60px 0;
	background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
	text-align: center;
}

.section-title {
	font-size: 36px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 15px;
}

.section-subtitle {
	font-size: 18px;
	color: #fff;
	margin-bottom: 40px;
	font-weight: bold;
}

.benefits-list {
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.benefit-item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: white;
	padding: 12px 25px;
	border-radius: 50px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-item i {
	color: #004ea2;
	font-size: 18px;
}

.benefit-item span {
	font-size: 14px;
	font-weight: bold;
	color: #004ea2;
}

.cta-optimized-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.cta-optimized-button {
	padding: 15px 40px;
	border-radius: 50px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s;
}

.cta-optimized-primary {
	background: linear-gradient(135deg, #004ea2 0%, #2c80ff 100%);
	color: white;
}

.cta-optimized-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 78, 162, 0.2);
}

.cta-optimized-secondary {
	background: white;
	color: #004ea2;
}

.cta-optimized-secondary:hover {
	background: #004ea2;
	color: white;
}

.cta-note {
	margin-top: 30px;
	color: #fff;
	font-size: 14px;
}

.cta-note i {
	color: #ffd700;
	margin-right: 5px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
	.container {
		padding: 0 20px;
	}
}

@media (max-width: 992px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.course-main-title {
		font-size: 42px;
	}

	.course-subtitle {
		font-size: 20px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 16px;
	}

	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.course-header {
		padding: 50px 0;
	}

	.course-main-title {
		font-size: 34px;
	}

	.course-subtitle {
		font-size: 18px;
	}

	.highlight-item {
		gap: 8px;
	}

	.highlight-icon {
		width: 36px;
		height: 36px;
	}

	.highlight-icon i {
		font-size: 16px;
	}

	.highlight-text {
		font-size: 14px;
	}

	.btn-primary,
	.btn-outline {
		padding: 14px 30px;
		font-size: 16px;
	}

	.blog-card-image {
		height: 160px;
	}

	.blog-card-content {
		padding: 16px;
	}

	.blog-title {
		font-size: 18px;
	}

	.section-title {
		font-size: 28px;
	}

	.section-subtitle {
		font-size: 16px;
	}
}

@media (max-width: 576px) {
	.container {
		padding: 0 12px;
	}

	.blog-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.course-main-title {
		font-size: 28px;
	}

	.course-subtitle {
		font-size: 16px;
	}

	.course-highlights {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}

	.course-badge {
		font-size: 13px;
		padding: 6px 16px;
	}

	.course-cta {
		flex-direction: column;
		align-items: center;
	}

	.btn-primary,
	.btn-outline {
		width: 100%;
		max-width: 280px;
		justify-content: center;
	}

	.benefits-list {
		gap: 15px;
	}

	.benefit-item {
		padding: 8px 20px;
	}

	.cta-optimized-button {
		padding: 12px 30px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 12px;
	}
}