/* 基础样式 */
body {
	margin: 0;
	font-family: Arial, sans-serif;
	background-image: url(./img/bg_页面_1.png);
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

/* 容器布局 */
.container {
	display: flex;
	border-radius: 30px;
	overflow: hidden;
	width: 1200px;
	height: 800px;
}

/* 菜单样式 */
.menu {
	background-color: #ffcc66;
	padding: 20px;
	display: flex;
	flex-direction: column;
	width: 250px;
	min-width: 250px;
	border-top-left-radius: 30px;
	border-bottom-left-radius: 30px;
	overflow: auto;
	position: relative;
}

.menu-item {
	padding: 15px;
	margin: 10px 0;
	text-align: center;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.3s;
	font-weight: bold;
	font-size: 24px;
}

.menu-item:hover {
	background-color: #ffe680;
}

.menu-item.active {
	background-color: #fff;
	color: #00bfa5;
	border-left: 5px solid #b22222;
}

/* 子菜单 */
.submenu {
	display: none;
	flex-direction: column;
	margin-top: 10px;
	margin-left: 20px;
}

.submenu-item {
	padding: 10px;
	margin: 5px 0;
	text-align: left;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	font-weight: bold;
	font-size: 20px;
}

.submenu-item:hover {
	background-color: #ffe680;
}

.submenu-item.active {
	background-color: #fff;
	color: #00bfa5;
	border-left: 5px solid #b22222;
}

/* 内容区域 */
.content {
	flex-grow: 1;
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
	backdrop-filter: blur(10px); /* 毛玻璃效果 */
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	border-radius: 15px; /* 圆角效果 */
}

.content.has-content {
	overflow: auto;
}

/* 课程介绍新布局 */
.course-container {
	margin-top: 20px;
	background: #fff;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
	border-radius: 15px;
	overflow: hidden;
	width: 100%;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
}

.course-container img.clickable-image {
	width: 100%;
	height: auto;
	margin-bottom: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: transform 0.3s ease;
}

.course-container img.clickable-image:hover {
	transform: scale(1.02);
}

.course-container img.clickable-image:last-child {
	margin-bottom: 0;
}

.image-row {
	display: flex;
	gap: 10px;
	padding: 10px;
	height: 300px;
}

.image-row img {
	width: 50%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

.text-container {
	padding: 25px;
	background: #f8f8f8;
}

/* 文字样式 */
.kctext {
	font-size: 20px;
	line-height: 1.8;
	text-indent: 2em;
	width: 100%;
	color: #000;
	font-weight: 600;
}

/* 标题样式 */
.title-overlay {
	position: absolute;
	top: 20px;
	left: 50px;
	z-index: 2;
	/* 提升层级确保覆盖 */
}

.title-overlay h1 {
	font-size: 32px;
	color: #000;
	margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.container {
		width: 95%;
		height: auto;
		flex-direction: column;
	}

	.menu {
		width: 100%;
		border-radius: 30px 30px 0 0;
	}

	.content {
		border-radius: 0 0 30px 30px;
	}

	.image-row {
		flex-direction: column;
		height: auto;
	}

	.image-row img {
		width: 100%;
		height: 200px;
	}

	.title-overlay {
		left: 20px;
		top: 15px;
	}

	.title-overlay h1 {
		font-size: 28px;
	}

	.image-with-title {
		margin-bottom: 30px;  /* 移动端缩小间距 */
	}

	.image-with-title img {
		height: auto;  /* 确保图片在移动端显示完整 */
	}

	.menu-item {
		font-size: 20px;  /* 调整菜单项字体大小 */
	}

	.submenu-item {
		font-size: 18px;  /* 调整子菜单项字体大小 */
	}

	.teacher-card {
		max-width: 100%;  /* 确保卡片在移动端显示完整 */
		margin: 10px;  /* 调整卡片间距 */
	}

	.teacher-cards {
		flex-direction: column;  /* 垂直排列卡片 */
		align-items: center;
	}

	.course-container {
		padding: 15px;
	}
	
	.course-container img.clickable-image {
		margin-bottom: 15px;
	}
}

/* 画廊样式 */
.gallery-container {
	width: 100%;
	display: flex;
	justify-content: center;
	overflow-y: auto;
	height: calc(100% - 40px);
	padding: 10px;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: left; /* 修改为居中对齐 */
	align-items: flex-start;
	width: 100%;
}

.gallery img, .gallery video {
	box-sizing: border-box;
	margin: 10px;
	width: calc(33.33% - 20px);
	height: auto;
	cursor: pointer;
	transition: transform 0.3s ease;
	transform-origin: center;
	text-align: left; /* 新增：图片左对齐 */
}

/* 模态框样式 */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s;
}

.modal.active {
	opacity: 1;
}

.modal-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	transition: transform 0.3s;
}

.modal-content img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 8px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
	position: absolute;
	top: -40px;
	right: -40px;
	color: white;
	font-size: 40px;
	cursor: pointer;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
	color: #ffcc66;
}

/* 其他辅助样式 */
.hidden-content {
	display: none;
}

#content>img.logo-init {
	width: 300px;
	height: 300px;
	margin: auto;
	opacity: 1;
	transform: none;
	transition: none;
}

#content>* {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

#content>*.active-content {
	opacity: 1;
	transform: translateY(0);
}

/* 新增：课程介绍卡片样式 */
.teacher-card {
	background: #f8f8f8;
	border-radius: 10px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* 加深阴影效果 */
	width: 100%;
	max-width: 300px; /* 调整卡片宽度 */
	overflow: hidden;
	position: relative;
	margin: 20px auto;
	text-align: left; /* 新增：文字左对齐 */
	height: 450px; /* 增加卡片高度 */
}

.teacher-card .image-container {
	width: 100%;
	height: 160px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.teacher-card .image-container img {
	width: 100%;
	height: 100%; /* 确保图片高度填满容器 */
	object-fit: cover;
	object-position: top; /* 调整图片显示位置 */
	border-radius: 10px;
}

.teacher-card .content {
	padding: 15px;
	color: #333;
	background: #f8f8f8;
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
	user-select: none;
	text-align: left; /* 新增：文字左对齐 */
	overflow-y: auto; /* 添加滚动条 */
	max-height: 250px; /* 设置最大高度 */
}

.teacher-card .content h3 {
	margin: 0;
	font-weight: 600;
}

.teacher-card .content ul {
	list-style-type: none;
	/* padding-left: 30px; */
	margin: 10px 0 0;
}

.teacher-card .content ul li {
	position: relative;
	margin-bottom: 5px;
}

.teacher-card .content ul li::before {
	content: '';
	position: absolute;
	left: -25px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	background-image: url('./img/勋章.png'); /* 使用图片替换小黑点 */
	background-size: cover;
}

/* 新增：内容区域容器定位 */
.content-section {
	position: relative;
	width: 100%;
	padding-top: 40px;
	/* 为标题留出空间 */
}

/* 标题定位修正 */
.title-overlay {
	position: absolute;
	top: 20px;
	/* 标题距离顶部的距离 */
	left: 50px;
	/* 标题距离左侧的距离 */
	z-index: 2;
}

/* 卡片间距调整 */
.teacher-card {
	margin-top: 60px;
	/* 卡片距离标题的间距 */
	width: 100%;
	max-width: 300px;
	/* 其他样式保持不变 */
}

/* 新增样式 */
.teacher-cards {
	display: flex;
	gap: 20px;
	justify-content: center;
	align-items: flex-start;
}

.teacher-card {
	flex: 1;
	background: #f8f8f8;
	border-radius: 10px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* 加深阴影效果 */
	padding: 20px;
	text-align: center;
}

.teacher-card img {
	width: 100%;
	height: auto;
}

.teacher-card .kctext {
	margin-top: 15px;
}

.teacher-card h3, .teacher-card ul {
	text-align: left !important;  /* 强制覆盖可能的继承样式 */
	width: 100%;  /* 确保容器宽度撑满 */
	padding-left: 30px;  /* 增加左侧内边距 */
}
.teacher-card ul {
	padding-left: 25px;  /* 调整列表缩进对齐 */
}
.fengche{
	position: absolute;
	width: 100px;
	height: 150px;
	margin:  0 auto;
	text-align: bottom;
	left: 30%;
	bottom: 0;
}
.image-with-title {
	position: relative;
	margin-bottom: 20px;  /* 控制不同图片区块的间距 */
	overflow: hidden;  /* 确保图片显示完整 */
}
.image-with-title img {
	width: 100%;
	height: auto;
}

/* 以下为从幼小衔接.html迁移的样式 */
.teacher-card .image-container {
	height: 200px;
	overflow: hidden;
}
.teacher-card .image-container img {
	width: auto;
	height: 100%;
	object-fit: contain;
	object-position: top;
}
.teacher-cards-vertical {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin-top: 60px;
}
.teacher-row {
	display: flex;
	align-items: flex-start;
	background: #fffbe6;
	border-radius: 15px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
	padding: 5px 5px;
	width: 100%;
	max-width: 100%;
	gap: 24px;
	align-items: center;
	overflow: hidden;
}
.teacher-photo {
	flex: 0 0 140px;
	display: flex;
	justify-content: center;
}
.teacher-photo img {
	width: 250px;
	height: 250px;
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
	box-shadow: 8px 12px 24px 0 rgba(0,0,0,0.25);
}
.teacher-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-left: 20px;
}
.teacher-info h2, .teacher-info h3 {
	font-size: 24px;
}
.teacher-info>div {
	display: flex;
	gap: 30px;
}
.teacher-info ul {
  width: 100%;
  margin: 0 auto 8px auto;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}
.teacher-info ul li {
  display: block;
  max-width: none;
  word-break: break-all;
  white-space: normal;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  list-style: decimal inside;
}
.teacher-info ul li:last-child {
  margin-bottom: 0;
}
.teacher-info ol {
  width: 100%;
  margin: 0 auto 8px auto;
  padding-left: 1.8em;
  padding-right: 0;
  text-align: left;
  list-style: decimal inside;
}
.teacher-info ol li {
  display: list-item;
  word-break: break-all;
  white-space: normal;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  vertical-align: top;
}
.teacher-info ol li:last-child {
  margin-bottom: 0;
}
@media (max-width: 1000px) {
	.teacher-row {
		flex-direction: column;
		align-items: center;
		padding: 20px 10px;
	}
	.teacher-info {
		margin-left: 0;
		margin-top: 20px;
	}
	.teacher-info>div {
		flex-direction: column;
		gap: 10px;
	}
}
/* 迁移结束 */
.teacher-block.green {
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px 0;
  font-size: 18px;
  line-height: 1.7;
}
.teacher-block.green li {
  background: #43a047;
  color: #fff;
  font-weight: bold;
  border-radius: 10px;
  padding: 10px 0;
  margin-bottom: 10px;
  text-align: center;
  font-size: 18px;
  list-style: none;
  word-break: break-all;
  white-space: normal;
  display: block;
}
.teacher-block.green li:last-child {
  margin-bottom: 0;
}
.teacher-info h2 {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  font-size: 32px;
}
.teacher-info {
  margin-left: 0;
  padding-left: 0;
}
.teacher-info h2 {
  text-align: left;
  margin-left: 0;
  padding-left: 0;
}
.teacher-info ol,
.teacher-info ul {
  margin-left: 0;
  padding-left: 0;
}
.teacher-info ol li,
.teacher-info ul li {
  font-size: 20px;
  margin-bottom: 14px;
}
.teacher-info ol li:last-child,
.teacher-info ul li:last-child {
  margin-bottom: 0;
}

/* 思维课程-教学大纲横向按钮样式 */
.artwork-menu.grade-tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 204, 102, 0.95);
    border-radius: 10px;
    padding: 15px 0;
    margin-bottom: 30px;
    margin-top: 10px;
}
.artwork-menu-item.grade-tab {
    padding: 8px 16px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    font-size: 15px;
    font-weight: 600;
    color: #333;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.artwork-menu-item.grade-tab:hover {
    background: #ffe680;
    transform: translateY(-2px) scale(1.05);
}
.artwork-menu-item.grade-tab.active {
    background: #ffe680;
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
/* 切换动画 */
.grade-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0; right: 0;
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), visibility 0.4s;
    z-index: 0;
}
.grade-content.active {
    opacity: 1;
    visibility: visible;
    position: static;
    z-index: 1;
    animation: fadeInUp 0.4s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}