/* 轮播样式 */
.hero {
	position: relative;
	overflow: hidden;
	height: 500px; /* 固定高度 */
}

.hero-slider {
	position: relative;
	width: 100%;
	height: 100%;
}

.slider-container {
	width: 100%;
	height: 100%;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.slide.active {
	opacity: 1;
	z-index: 1;
}

.slide-content {
	position: relative;
	z-index: 2;
	color: white;
	padding: 100px 0;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 控制按钮样式 */
.slider-control {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.3);
	color: white;
	border: none;
	width: 50px;
	height: 50px;
	font-size: 24px;
	cursor: pointer;
	z-index: 10;
	transition: background 0.3s;
}

.slider-control:hover {
	background: rgba(0,0,0,0.5);
}

.slider-control.prev {
	left: 20px;
}

.slider-control.next {
	right: 20px;
}

/* 指示器样式 */
.slider-indicators {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 10;
}

.indicator {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255,255,255,0.5);
	border: none;
	margin: 0 5px;
	cursor: pointer;
	transition: background 0.3s;
}

.indicator.active {
	background: white;
}


/* 平台概况 */
.overview {
	padding: 60px 0;
	background-color: white;
}
.section-title {
	text-align: center;
	margin-bottom: 40px;
	font-size: 32px;
	color: #2c3e50;
}
.overview-content {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
.overview-item {
	flex: 1;
	min-width: 300px;
	background-color: #f8f9fa;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.overview-item h3 {
	color: #3498db;
	margin-bottom: 15px;
	font-size: 20px;
}

/* 课程展示 */
.courses {
	padding: 60px 0;
	background-color: #f5f7fa;
}
.course-tabs {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
	flex-wrap: wrap;
	gap: 10px;
}
.tab-btn {
	background-color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: bold;
}
.tab-btn.active {
	background-color: #3498db;
	color: white;
}
.course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}
.course-card {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	transition: transform 0.3s;
}
.course-card:hover {
	transform: translateY(-5px);
}
.course-img {
	height: 180px;
	overflow: hidden;
	background-color: #3498db;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 20px;
	font-weight: bold;
}
.course-info {
	padding: 20px;
}
.course-info h3 {
	margin-bottom: 10px;
	font-size: 18px;
}
.course-meta {
	display: flex;
	justify-content: space-between;
	color: #7f8c8d;
	margin-bottom: 15px;
	font-size: 14px;
}
.course-price {
	color: #e74c3c;
	font-weight: bold;
	font-size: 18px;
}

/* 附加内容 */
.articles {
	padding: 60px 0;
	background-color: white;
}
.article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}
.article-card {
	background-color: #f8f9fa;
	border-radius: 10px;
	padding: 25px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.article-card h3 {
	margin-bottom: 15px;
	color: #2c3e50;
}
.article-card p {
	color: #7f8c8d;
	margin-bottom: 20px;
}
.article-link {
	color: #3498db;
	text-decoration: none;
	font-weight: bold;
}

/* 新闻列表 */
.news-list {
	flex: 3;
}
.news-item {
	background-color: white;
	border-radius: 10px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	display: flex;
	gap: 30px;
	transition: transform 0.3s;
}
.news-item:hover {
	transform: translateY(-5px);
}
.news-img {
	flex: 0 0 200px;
	height: 140px;
	background-color: #3498db;
	border-radius: 5px;
	overflow: hidden;
	position: relative;
}
.news-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}
.news-item:hover .news-img img {
	transform: scale(1.05);
}
.news-content {
	flex: 1;
}
.news-title {
	font-size: 20px;
	margin-bottom: 15px;
	color: #2c3e50;
}
.news-title a {
	color: #2c3e50;
	text-decoration: none;
	transition: color 0.3s;
}
.news-title a:hover {
	color: #3498db;
}
.news-excerpt {
	color: #7f8c8d;
	margin-bottom: 20px;
	line-height: 1.7;
}
.news-meta {
	display: flex;
	color: #bdc3c7;
	font-size: 14px;
}
.news-meta span {
	display: flex;
	align-items: center;
	margin-right: 20px;
}
.news-meta i {
	margin-right: 5px;
}


/* 合作伙伴 */
.section-heading {
	text-align: center;
	margin-bottom: 50px;
}
.partners {
	background-color: #f8fafc;
	padding: 60px 0;
}
.partners-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	align-items: center;
	justify-items: center;
}
.partner-logo {
	max-width: 180px;
	opacity: 0.7;
	transition: opacity 0.3s, transform 0.3s;
}
.partner-logo:hover {
	opacity: 1;
	transform: scale(1.05);
}

/* 页脚 */
footer {
	background-color: #2c3e50;
	color: white;
	padding: 40px 0 20px;
}
.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
}
.footer-col {
	flex: 1;
	min-width: 200px;
}
.footer-col h3 {
	margin-bottom: 20px;
	font-size: 18px;
	color: #3498db;
}
.footer-col ul {
	list-style: none;
}
.footer-col ul li {
	margin-bottom: 10px;
}
.footer-col ul li a {
	color: #bdc3c7;
	text-decoration: none;
	transition: color 0.3s;
}
.footer-col ul li a:hover {
	color: white;
}
.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #34495e;
	color: #bdc3c7;
	font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		gap: 20px;
	}
	nav ul {
		flex-wrap: wrap;
		justify-content: center;
	}
	nav ul li {
		margin: 0 10px;
	}
	.hero h1 {
		font-size: 32px;
	}

	.news-container {
		flex-direction: column;
	}
	.news-item {
		flex-direction: column;
		padding: 20px;
	}
	.news-img {
		flex: 0 0 180px;
		width: 100%;
	}

	.partners-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
