/* 基础配置 */
/* 图标主色 #007bff */


/* ---------------------------------- 页面基础布局 --------------------------------- */
/* 教师页面主体框架 */
.tch-classroom-container {
	background-color: white;
	padding: 20px;
	border-radius: 10px;
}

.tch-page {
	max-width: 1200px;
	height: 100%;
	margin-top: 80px;
	background: linear-gradient(120deg, var(--primary-color)/5, var(--bg-color));
	background-color: #EEF2FF;
	border: 2px solid var(--primary-color);
	box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
	padding: 20px 18px;
	border-radius: 8px;
	z-index: 10;
	position: relative;
	margin-bottom: 15px;
}

.bottomLine {
	margin-top: 50px;
}


/* ---------------------------------- 在线课堂 ---------------------------------- */
/* 在线课堂样式突出 */
.module__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.module__title h2 {
	font-weight: bold;
	color: #4F46E5;
	margin: 0;
	font-size: 26px;
}

.module__title img {
	margin-top: 3px;
	width: 24px;
	height: 24px;
}

/* 选择课堂&加入课堂容器 */
.tch-main {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
}

/* 原始select元素（选课下拉列表），隐藏但保持功能 */
.tch-class-select,
.tch-book-select {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: -1;
	pointer-events: none;
}

/* ---------------------------------- 加入/创建课堂按钮 ---------------------------------- */
.tch-join-class {
	font-size: 20px;
	width: 150px;
	height: 40px;
	background-color: #4F46E5;
	color: white;
	text-align: center;
	vertical-align: middle;
	line-height: 40px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.btn-create-class {
	font-size: 20px;
	width: 200px;
	height: 56px;
	background-color: #4F46E5;
	color: white;
	text-align: center;
	vertical-align: middle;
	line-height: 40px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.btn-add-group {
    font-size: 24px;      /* 调整大小 */
    color: #4F46E5;       /* 改变颜色 */
}
.btn-add-group:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}
.btn-remove-group:hover {
    color: #c82333 !important;
}

/* ------------------------------------ 通用基础组件 ------------------------------------ */
/* 子标题通用样式 */
.sub-title {
	font-size: 20px;
	color: #616161;
	margin-top: 20px;
}

/* 书籍封面通用样式 */
.book-cover {
	padding: 10px;
	width: 95%;
	border-radius: 5px;
	position: relative;
	display: flex;
	justify-content: center;
}

.book-cover img {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	object-fit: scale-down;
}

/* ------------------------- 课堂信息样式 ------------------------- */
.classroom-info-card {
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 153, 255, 0.08);
    border: 1px solid rgba(0, 153, 255, 0.15);
    overflow: hidden;
}

/* 未选择课堂提示样式 */
.class-info-empty {
    text-align: center;
    padding: 48px 24px;
    color: #6c757d;
}
.class-info-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.class-info-empty p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
}
.class-info-empty span {
    font-size: 14px;
    color: #adb5bd;
}

/* 顶部信息栏三列布局 */
.info-header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: #ffffff;
    padding: 20px 28px;
    border-bottom: 1px solid #eef2f6;
}
.info-header-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 160px;
}
.info-icon {
    font-size: 28px;
    background: #EEF2FF;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #4F46E5;
}
.info-detail {
    flex: 1;
}
.info-label {
    font-size: 13px;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.info-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e2a3a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.invite-code {
    font-family: monospace;
    letter-spacing: 1px;
}
.copy-code-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
    color: #6c757d;
}
.copy-code-btn:hover {
    background: #e9ecef;
    color: #4F46E5;
}

/* 分组区域样式 */
.groups-section {
    padding: 0 28px 28px 28px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e2a3a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.title-icon {
    font-size: 20px;
}
.btn-add-group-section {
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-add-group-section:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
}

/* 分组网格布局 */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.group-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #0099ff30;
}
.group-header {
    background: #f8fafc;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.group-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e2a3a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.group-name-icon {
    font-size: 18px;
}
.group-actions {
    display: flex;
    gap: 8px;
}
.group-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 6px;
    color: #6c757d;
    transition: all 0.2s;
}
.group-action-btn:hover {
    background: #e9ecef;
    color: #4F46E5;
}
.group-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.group-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.group-info-label {
    width: 60px;
    color: #6c757d;
}
.group-info-value {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.group-invite-code {
    font-family: monospace;
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 13px;
}
.group-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 20px;
    color: #adb5bd;
    font-size: 14px;
}


/* ------------------------- 考试管理模块展示信息样式 ------------------------- */
.tch-stats {
	width: 120px;
	display: flex;
	align-items: center;
	color: #616161;
	font-size: 16px;
	padding: 20px;
}

.tch-stats strong {
	color: #4F46E5;
}

/* 区块标题样式 */
.section-title h2 {
	/* font-weight: bold; */
	color: #4F46E5;
	margin: 0;
	font-size: 24px;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}


/* ---------------------------------- 功能区块样式 ---------------------------------- */

.tch-common-functions-main .tch-discussion-btn {
	justify-content: center;
	background-color: #d0ffed;
	text-align: center;
	border-radius: 5px;
	transition: all 0.3s;
	height: 200px;
	width: 200px;
}

.tch-common-functions-main img {
	margin: 10px auto;
	width: 65%;
}

.tch-common-functions-main span {
	font-size: 18px;
	color: #000000;
}

/* 我的班级板块 */
.tch-class-container .tch-class-main {
	display: flex;
	flex-direction: row;
	gap: 20px;
	margin-bottom: 20px;
}

.tch-class-main .tch-rollcall-btn {
	justify-content: center;
	background-color: #ffdada;
	text-align: center;
	border-radius: 5px;
	transition: all 0.3s;
	height: 200px;
	width: 200px;
}

.tch-class-main .tch-score-btn {
	justify-content: center;
	background-color: #daf1ff;
	text-align: center;
	border-radius: 5px;
	transition: all 0.3s;
	height: 200px;
	width: 200px;
	margin-bottom: 15px;
}

.tch-class-main img {
	margin: 10px auto;
	width: 65%;
}

.tch-class-main span {
	font-size: 18px;
	color: #000000;
}

/* 通用功能卡片 */
.feature-card {
	background-color: white;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
	padding: 20px;
	margin-bottom: 25px;
	transition: all 0.3s ease;
}

.feature-card:hover {
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
}


/* --------------------------------- 弹窗组件 --------------------------------- */
/* 基础弹窗样式 */


/* 最外层弹窗遮罩层样式 */
.modal-overlay {
	overflow: hidden;
	/* 避免模态框整体滚动影响背景 */
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

/* active 状态的弹窗 */
.modal-overlay.active {
	opacity: 1;
	visibility: visible;
	display: flex !important;
}

.modal {
	background-color: white;
	border-radius: 10px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transform: translateY(-20px);
	transition: all 0.3s ease;
	max-height: 90vh;
	overflow: hidden;
}

/* ---------- 发起考试弹窗样式 ---------- */
.exam-modal {
	background-color: white;
	border-radius: 10px;
	width: 90%;
	max-width: 900px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transform: translateY(-20px);
	transition: all 0.3s ease;
	max-height: 90vh;
	overflow: hidden;
}

.exam-body-modal {
	display: flex;
	/* gap: 20px; */
	/* padding: 20px; */
	max-height: 600px;

	overflow-x: hidden;
}

/* 左侧已选区域 */
.exam-modal-body-left {
	flex: 1;
	padding: 20px;
	border-right: 1px solid #eee;
	overflow-y: auto;
}

/* 删除试题按钮 */
.exam-modal .operation-btn {
	background-color: #007bff;
	color: white;
	padding: 4px 10px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-size: 14px;


	justify-content: flex-end;
}

/* 右侧可选区域 */
.exam-modal-body-right {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
}

/* 添加试题按钮 */
.exam-modal .add-btn {
	background-color: #007bff;
	color: white;
}

/* ---------- 发起考试弹窗样式结束 ---------- */

.modal-overlay.active .modal {
	transform: translateY(0);
}

.modal-header {
	padding: 15px 20px;
	border-bottom: 1px solid #e9ecef;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #EEF2FF;
	border-radius: 10px 10px 0 0;
}

.modal-title {
	font-size: 18px;
	color: #4F46E5;
	font-weight: 600;
}

.close-modal {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #666;
}

.modal-body {
	padding: 20px;
	max-height: 60vh;
	overflow-y: auto;
}

.modal-footer {
	padding: 15px 20px;
	border-top: 1px solid #e9ecef;
	text-align: right;
}

/* 关联教材弹窗样式 */
.modal-gl {
	background-color: white;
	border-radius: 10px;
	width: 90%;
	max-width: 900px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transform: translateY(-20px);
	transition: all 0.3s ease;
}


/* 6. 表单组件 */
/* 表单组样式 */
.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	color: #495057;
	font-weight: 500;
}

/* 输入框样式 */
.form-control {
	width: 100%;
	padding: 10px;
	border: 1px solid #ced4da;
	border-radius: 5px;
	font-size: 16px;
	transition: border-color 0.2s;
}

.form-control:focus {
	outline: none;
	border-color: #4F46E5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}


/* 7. 按钮组件 */
/* 基础按钮样式 */
.btn {
	padding: 8px 16px;
	border-radius: 5px;
	border: none;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-secondary {
	background-color: #6c757d;
	color: white;
	margin-right: 10px;
}

.btn-secondary:hover {
	background-color: #5a6268;
}

.btn-primary {
	background-color: #4F46E5;
	color: white;
}

.btn-primary:hover {
	background-color: #4338CA;
}

/* 小按钮样式 */
.btn-sm {
	padding: 3px 8px;
	border: none;
	border-radius: 3px;
	background-color: #4F46E5;
	color: white;
	cursor: pointer;
	transition: background-color 0.2s ease;
}


/* 考试相关样式 */
/* 发起考试弹窗样式 */

.type-checkboxes {
	display: flex;
	gap: 15px;
	/* 复选框之间的间距 */
	flex-wrap: wrap;
	/* 超出宽度时自动换行 */
	margin: 10px 0;
}

.type-checkboxes label {
	display: flex;
	align-items: center;
	gap: 5px;
}

.checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 8px;
}

.question-selection {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 460px;
	overflow-y: auto;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.question-selection-left {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-y: auto;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.question-selection label {
	cursor: pointer;
	padding: 5px;
	border-radius: 3px;
}

.question-selection label:hover {
	background-color: #f5f5f5;
}





/* ------------------------------发起考试分值设置（样式合并）------------------------------- */
/* -------------------------------------------------------------------------------------- */
.classSet {
	margin-bottom: 20px;
	/*    padding: 10px; */
	background-color: #f8f9fa;
	border-radius: 5px;
}

.classSet h4 {
	margin-top: 0;
	color: #333;
	display: flex;
	align-items: center;
	gap: 8px;
}

.numSet {
	display: flex;
	flex-wrap: wrap;
	margin-top: 10px;
}

.numSet>div {
	flex: 1;
	min-width: 150px;
}

.numSet label {
	display: block;
	margin-bottom: 5px;
	color: #666;
	font-weight: normal;
}

.scoreHint {
	display: flex;
	align-items: center;
	gap: 10px;
}

.shortNoScore {
	display: flex;
	align-items: center;
	padding: 10px;
	color: #666;
}

.title-2 {
	padding: 5px;
	position: relative;
	margin: 15px 0;
}

.title-2 h3 {
	margin: 0;
	color: #4F46E5;
	border-bottom: 2px solid #4F46E5;
	padding-bottom: 5px;
}

.font-semibold {
	font-weight: 600;
}

.font-bold {
	font-weight: bold;
	color: #4F46E5;
}

.hidden {
	display: none !important;
}





/* ---------------------------------------------表格组件 -------------------------------- */
/* ------------------------------------------------------------------------------------- */
/* 资源管理表格样式 */
.resource-table-container {
	width: 100%;
	overflow-x: auto;
}

.resource-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
}

.resource-table th,
.resource-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #e9ecef;
}

.resource-table th {
	background-color: #f8f9fa;
	font-weight: bold;
	color: #333;
}

.resource-table tr:hover {
	background-color: #f8f9fa;
}

.resource-count {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.resource-count span {
	padding: 3px 8px;
	background-color: #e9f5ff;
	border-radius: 4px;
	font-size: 14px;
	color: #007bff;
}


/* 10. 标签页组件 */
.tabs-container {
	display: flex;
	margin-top: 10px;
}

.tab-btn {
	padding: 10px 20px;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: all 0.3s;
}

.tab-btn.active {
	border-bottom-color: #4F46E5;
	color: #4F46E5;
	font-weight: bold;
}

.tab-btn:hover {
	background-color: #f8f9fa;
}

/* 讨论区书籍封面容器 */
.book-list {
	display: grid;
	border-radius: 10px;
	/* background-color: #ffffff; */
	padding: 20px;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* 单个书籍容器 */
.book-item {
	background-color: rgb(255, 255, 255);
	text-align: center;
	padding: 10px;
	padding-left: 0;
	border-radius: 10px;
	transition: all 0.2s;
	color: #666;
}

/* 11. 讨论管理样式 */
.enter-discussion {
	margin-top: 10px;
	padding: 5px 10px;
	background-color: #4F46E5;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.2s ease;
}

.discussion-management {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.discussion-book-item {
	display: flex;
	align-items: center;
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 8px;
	justify-content: space-between;
}

.book-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* 讨论区书籍名称 */
.book-name {
	text-align: center;
	text-align: left;
	color: #000;
	line-height: 2;
	/* height: 20px; */
	width: 90%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 16px;
	/* border: 1px solid #ddd; */
	padding: 0 20px;
}

.manage-book-cover {
	width: 80px;
	height: 110px;
	object-fit: cover;
	border-radius: 4px;
}

.book-details {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.book-title {
	font-weight: bold;
	font-size: 16px;
}

.discussion-stats {
	color: #666;
	font-size: 14px;
}

.discussion-controls {
	display: flex;
	align-items: center;
	gap: 15px;
}


/* 12. 开关组件 */
.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 24px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

input:checked+.slider {
	background-color: #4F46E5;
}

input:checked+.slider:before {
	transform: translateX(26px);
}

.status-text {
	font-size: 14px;
	color: #333;
}

/* 进入讨论按钮样式 */
.enter-btn {
	padding: 5px 10px;
	background-color: #4F46E5;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.enter-btn:hover {
	background-color: #4338CA;
}


/* 13. 登录相关样式 */
/* #teacherContent {
	display: none;
} */

.login-tchprompt {
	display: none;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - 80px);
	padding: 50px;
	box-sizing: border-box;
}

.login-card {
	background-color: white;
	padding: 40px 30px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	text-align: center;
	width: 100%;
	max-width: 400px;
}

.login-card h2 {
	margin-bottom: 15px;
	color: #333;
	font-size: 24px;
}

.login-card p {
	margin-bottom: 30px;
	color: #666;
	font-size: 16px;
}

.login-btn-sj {
	background-color: #4F46E5;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	width: 100%;
	max-width: 200px;
	height: 45px;
	transition: background-color 0.2s ease;
}

.login-btn-sj:hover {
	background-color: #4338CA;
}



/* ========================================================================================================
   讨论区样式
   ======================================================================================================== */



/* 讨论区模态框样式 */
.discussion-modal-content {
	width: 800px;
	max-width: 90vw;
	height: 600px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.discussion-modal-header {
	padding: 20px;
	border-bottom: 1px solid #e9ecef;
	background: #4F46E5;
	color: white;
	position: relative;
}

.discussion-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.discussion-title .discussionCourseName {
	background: rgba(255, 255, 255, 0.2);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
}

.discussion-modal-header .close-btn {
	color: white;
	font-size: 28px;
	top: 18px;
	right: 20px;
	opacity: 0.8;
	background: transparent;
	border: none;
	cursor: pointer;
	position: absolute;
}

.discussion-modal-header .close-btn:hover {
	opacity: 1;
	color: white;
}

/* 讨论主区域 */
.discussion-main {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	background: #f8f9fa;
}

.discussion-list-container {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

/* 讨论列表 */
.discussion-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.discussion-post-item {
	background: white;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid #e9ecef;
	transition: all 0.3s ease;
}

/* 讨论项顶部信息 */
.discussion-post-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.discussion-author-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.discussion-author-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #007bff 0%, #00bfff 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 16px;
	flex-shrink: 0;
}

.discussion-author-details {
	flex: 1;
}

.discussion-author-name {
	font-weight: 600;
	color: #212529;
	font-size: 16px;
	margin-bottom: 4px;
}

.discussion-post-time {
	color: #6c757d;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.discussion-post-time i {
	font-size: 12px;
}

/* 讨论主题 */
.discussion-post-topic {
	font-size: 18px;
	font-weight: 600;
	color: #212529;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

/* 讨论内容 */
.discussion-post-content {
	color: #495057;
	line-height: 1.6;
	font-size: 15px;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 3px solid #007bff;
}

/* 加载状态 */
.discussion-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e9ecef;
	border-top-color: #007bff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 16px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.discussion-loading p {
	color: #6c757d;
	font-size: 16px;
}

/* 空状态 */
.discussion-empty {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	text-align: center;
	background: #f8f9fa;
	z-index: 5;
}

.empty-icon {
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.empty-title {
	font-size: 18px;
	font-weight: 600;
	color: #212529;
}

/* 响应式调整 */
@media (max-width: 768px) {
	.discussion-modal-content {
		width: 95vw;
		height: 80vh;
	}

	.discussion-post-header {
		flex-direction: column;
		gap: 8px;
	}
}

/* 美化滚动条 */
.discussion-list-container::-webkit-scrollbar {
	width: 6px;
}

.discussion-list-container::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.discussion-list-container::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

.discussion-list-container::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}










/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
/* 添加模块展开/折叠相关样式 */
.module-header {
	cursor: pointer;
	transition: all 0.3s ease;
}

.module-header:hover {
	color: #0056b3;
}

.module-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease;
}

.module-content.active {
	max-height: 2000px;
	/* 设置一个足够大的值 */
}

/* 为展开/折叠添加箭头指示 */
.module-header:after {
	content: "+";
	font-size: 20px;
	color: #007bff;
	float: right;
	margin-left: 5px;
	transition: transform 0.3s ease;
}

.feature-card.active .module-header:after {
	/* transform: rotate(45deg); */
	content: "-";
	transform: none;
}

/* 在线课堂模块样式调整 */
#onlineClassModule .module-content {
	margin-top: 15px;
}


/* 模态框内容容器样式 */
/* 用于下拉框最外层样式 */
.modal-content {
	background: white;
	padding: 20px;
	border-radius: 8px;
	max-width: 800px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

















/* -------------------------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------------------------- */
/* 弹窗基础样式 */




/* 关闭按钮 */
.close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
}

.close-btn:hover {
	color: #333;
}



/* -------------------------------------------------------------------------------------------- */
/* 自定义下拉框容器样式（用于教材和课堂下拉框最外层） */
.custom-select-container {
	position: relative;
	width: 100%;
	cursor: pointer;
	z-index: 100;
}

/* 下拉框头部（按钮样式） */
/* 选择教材和课堂按钮样式 */
.custom-select-header {
	background-color: white;
	color: #212529;
	border: 1px solid #dee2e6;
	padding: 12px 15px;
	border-radius: 8px;
	display: flex;
	justify-content: flex-content;
	align-items: center;
	transition: background-color 0.3s, border-color 0.3s;
	font-size: 16px;
	font-weight: 500;
	min-height: 30px;
}

.custom-select-header:hover {
	background-color: #f8f9fa;
	border-color: #adb5bd;
}

.select-placeholder {
	font-weight: 500;
	flex: 1;
	/* 占据剩余空间 */
	text-align: center;

	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* 固定提示样式（左侧） */
.select-first {
	flex: 0 0 16%;
	white-space: nowrap;
	/* 防止换行 */
	flex-shrink: 0;
	margin-right: 8px;
	color: #6c757d;
	/* 灰色提示 */
	font-weight: 400;
	font-size: 14px;
	white-space: nowrap;
}

/* 竖向分隔线 */
.vertical-divider {
	width: 1px;
	height: 20px;
	background-color: #ccc;
	margin: 0 8px;
}

.select-arrow {
	color: #495057;
	font-size: 12px;
	transition: transform 0.3s;
}



/* 下拉菜单 */
.custom-select-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #dee2e6;
	border-radius: 5px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	display: none;
	z-index: 100;
	max-height: 300px;
	overflow-y: auto;
	margin-top: 5px;
}

/* 下拉菜单选项 */
.dropdown-item {
	padding: 10px 15px;
	cursor: pointer;
	transition: background-color 0.2s;
	border-bottom: 1px solid #f5f5f5;
	/* 用于处理选项文本过长时的省略显示 */
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 100%;
}

.dropdown-item:last-child {
	border-bottom: none;
}

.dropdown-item:hover {
	background-color: #f8f9fa;
}

/* 创建课堂选项特殊样式 */
.dropdown-add {
	display: flex;
	align-items: center;
	color: #007bff;
	font-weight: 500;
}

.add-icon {
	margin-right: 8px;
	font-weight: bold;
	font-size: 16px;
}

/* 分隔线 */
.dropdown-divider {
	height: 1px;
	background-color: #e0e0e0;
	margin: 5px 0;
}

/* 无数据提示 */
.dropdown-item.no-data {
	color: #999;
	text-align: center;
	font-style: italic;
}

/* 选中状态 */
.dropdown-item.selected {
	background-color: #e8f4ff;
	color: #007bff;
}

/* 展开状态 */
.custom-select-container.open .custom-select-dropdown {
	display: block;
}

.custom-select-container.open .select-arrow {
	transform: rotate(180deg);
}

/* 书籍选择区域 */
.book-select-section .custom-select-header {
	background-color: #28a745;
	/* 绿色背景 */
}
	
.book-select-section .custom-select-header:hover {
	background-color: #218838;
}

/* 在线课堂控制区域 */
.classroom-controls {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: nowrap;
	/* 禁止换行 */
	margin-bottom: 20px;
	align-items: center;
	/* 垂直居中 */
}

.control-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 60px;
	/* 统一高度 */
}

.control-group:first-child {
	flex: 2;
	/* 教材选择占2份 */
	min-width: 200px;
}

.control-group:nth-child(2) {
	flex: 2;
	/* 课堂选择占2份 */
	min-width: 200px;
}

.info-group {
	flex: 3;
	/* 详细信息占3份 */
	min-width: 300px;
	max-width: 500px;
}

.left-group {
	flex: 3;
	min-width: 300px;
}

.right-group {
	flex: 2;
	min-width: 250px;
	align-items: flex-end;
}

/* 当前选中书籍展示区域 */
.selected-book-display {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 20px;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
	position: relative;
	transition: all 0.3s ease;
}

/* 课堂信息展示区域 */
.classroom-info-display {
	background-color: #ffffff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 12px 15px;
	height: 30px;
	/* 与选择按钮高度一致 */
	display: flex;
	align-items: center;
	position: relative;
	transition: all 0.3s ease;
	overflow: hidden;
}

.classroom-info-display:hover {
	background-color: #f1f3f5;
	border-color: #adb5bd;
}

/* 编辑按钮样式 */
.edit-classroom-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	color: #007bff;
	cursor: pointer;
	font-size: 16px;
	padding: 5px;
}

.edit-classroom-btn:hover {
	color: #0056b3;
}

.classroom-info-item {
	margin-bottom: 10px;
	display: flex;
	align-items: flex-start;
}

.no-classroom-selected {
	text-align: center;
	color: #6c757d;
	font-style: italic;
	padding: 20px;
}

.selected-book-display:hover {
	background-color: #f1f3f5;
	border-color: #adb5bd;
}

.book-info {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.book-name {
	font-weight: 600;
	font-size: 14px;
	color: #212529;
	margin-bottom: 4px;
	text-align: center;
}

.book-author {
	font-size: 12px;
	color: #6c757d;
	font-style: italic;
}

.no-book-selected {
	color: #adb5bd;
	font-size: 14px;
	width: 100%;
	text-align: center;
}

/* 课堂选择按钮样式 */
.classroom-select-header,
.book-select-header {
	background-color: #ffffff;
}

.classroom-select-header:hover,
.book-select-header:hover {
	background-color: #cccccc;
}

/* 下拉菜单调整 */
.book-dropdown {
	z-index: 101;
}

.classroom-dropdown {
	z-index: 100;
}

.info-item-container {
	display: flex;
	flex-direction: row;
	/* 横向排列 */
	gap: 20px;
	width: 100%;
	align-items: center;
}

.info-item {
	display: flex;
	align-items: center;
	flex: 1;
	/* 平均分配宽度 */
	min-width: 0;
	/* 允许内容溢出时截断 */
}

.info-label {
	font-weight: 600;
	min-width: 80px;
	color: #495057;
	font-size: 16px;
	white-space: nowrap;
	margin-right: 8px;
}

.info-value {
	color: #212529;
	font-size: 16px;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* 课堂简介的特殊样式 */
#classroom-description {
	position: relative;
	cursor: pointer;
}

.truncated-text {
	display: inline-block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}

.expand-toggle {
	color: #007bff;
	font-size: 14px;
	margin-left: 8px;
	white-space: nowrap;
	cursor: pointer;
	display: none;
	/* 默认隐藏，当内容被截断时显示 */
}

.expand-toggle:hover {
	color: #0056b3;
	text-decoration: underline;
}

/* 未选择课堂时的提示 */
.no-class-selected {
	text-align: center;
	color: #6c757d;
	font-style: italic;
	width: 100%;
	padding: 10px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
	.classroom-controls {
		flex-wrap: wrap;
		/* 在小屏幕上允许换行 */
	}

	.control-group {
		flex: 1 1 100%;
		margin-bottom: 10px;
	}

	.info-group {
		order: 3;
		/* 详细信息放在最后 */
	}
}

@media (max-width: 768px) {
	.info-item-container {
		flex-direction: column;
		/* 在小屏幕上垂直排列 */
		gap: 10px;
		align-items: flex-start;
	}

	.info-item {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.custom-select-header {
		padding: 10px 12px;
		font-size: 14px;
	}
}



/* 响应式调整 */
@media (max-width: 768px) {
	.classroom-controls {
		flex-direction: column;
	}

	.control-group {
		width: 100%;
	}



	.right-group {
		align-items: stretch;
	}
}