:root {
	--primary-color: #3498db;
	--secondary-color: #2980b9;
	--accent-color: #e74c3c;
	--light-bg: #f8f9fa;
	--dark-text: #2c3e50;
	--light-text: #7f8c8d;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: #f5f7fa;
	color: var(--dark-text);
}

.header {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 2rem 0;
	margin-bottom: 2rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-card {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	margin-bottom: 1.5rem;
	border: none;
}

.course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.course-cover {
	position: relative;
	overflow: hidden;
	height: 180px;
}

.course-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.course-card:hover .course-cover img {
	transform: scale(1.05);
}

.course-status {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 500;
}

.course-info {
	padding: 1.5rem;
}

.course-title {
	font-weight: 600;
	margin-bottom: 0.8rem;
	color: var(--dark-text);
	font-size: 1.2rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.course-teacher,
.course-school {
	color: var(--light-text);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.course-date {
	font-size: 0.85rem;
	color: var(--light-text);
	margin-top: 1rem;
	padding-top: 0.8rem;
	border-top: 1px solid #eee;
}

.badge-active {
	background-color: #2ecc71;
}

.badge-ended {
	background-color: #95a5a6;
}

.badge-upcoming {
	background-color: #f39c12;
}

.empty-state {
	text-align: center;
	padding: 4rem 0;
	color: var(--light-text);
}

.empty-state i {
	font-size: 4rem;
	margin-bottom: 1rem;
	color: #bdc3c7;
}

.tab-content {
	padding: 2rem 0;
}

.nav-tabs .nav-link.active {
	font-weight: 600;
	color: var(--primary-color);
	border-bottom: 3px solid var(--primary-color);
}

.nav-tabs .nav-link {
	color: var(--light-text);
	border: none;
	padding: 0.8rem 1.5rem;
}

/* 进度条样式 */
.progress-container {
	margin-top: 0.8rem;
	margin-bottom: 0.5rem;
}

.progress {
	height: 8px;
	border-radius: 4px;
	background-color: #e9ecef;
}

.progress-bar {
	background-color: var(--primary-color);
	transition: width 0.6s ease;
}

.progress-text {
	font-size: 0.8rem;
	color: var(--light-text);
	text-align: right;
	margin-top: 0.2rem;
}

.progress-details {
	font-size: 0.75rem;
	color: var(--light-text);
	margin-top: 0.2rem;
}