#home {height:200px;}
.white-text{
	text-align: left;
}
.lesson-btn{
width: 100%;
text-align: left;
margin: 2px 0 !important;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

	/* 更新全局颜色变量 */
	:root {
	  --primary-blue: #2196F3;    /* 主要蓝色 */
	  --light-blue: #64B5F6;      /* 浅蓝色 */
	  --dark-blue: #1976D2;       /* 深蓝色 */
	  --accent-blue: #E3F2FD;     /* 强调蓝色 */
	  --text-primary: #FFFFFF;    /* 主要文本色 */
	  --text-secondary: rgba(255, 255, 255, 0.85); /* 次要文本色 */
	}

	/* 清除之前所有的 #home123 相关样式 */
	.course-header {
	  position: relative;
	  padding: 40px 0;
	  background: #f0f7ff;  /* 明亮的背景色 */
	  overflow: hidden;
	}

	.course-header::before {
	  content: '';
	  position: absolute;
	  top: 0;
	  left: 0;
	  right: 0;
	  bottom: 0;
	  background: linear-gradient(120deg, 
	    rgba(72, 198, 239, 0.2),   /* 浅蓝 */
	    rgba(111, 134, 214, 0.2)   /* 浅紫 */
	  );
	}

	.course-header-content {
	  position: relative;
	  max-width: 1200px;
	  margin: 0 auto;
	  padding: 20px;
	  display: grid;
	  grid-template-columns: 1fr auto;
	  gap: 40px;
	  align-items: center;
	}

	.course-info-card {
	  background: white;
	  border-radius: 16px;
	  padding: 30px;
	  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	}

	.course-title {
	  font-size: 2.4rem;
	  font-weight: 600;
	  color: #2c3e50;
	  margin-bottom: 1rem;
	  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
	}

	.course-description {
	  font-size: 1.1rem;
	  line-height: 1.6;
	  color: #5d6d7e;
	  max-width: 600px;
	}

	.course-cover-container {
	  position: relative;
	}

	.course-cover {
	  width: 280px;
	  height: 180px;
	  border-radius: 12px;
	  object-fit: cover;
	  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	  transition: transform 0.3s ease;
	}

	.course-cover:hover {
	  transform: translateY(-5px);
	}

	/* 装饰元素 */
	.decoration-dots {
	  position: absolute;
	  width: 100px;
	  height: 100px;
	  background-image: radial-gradient(#e0e0e0 2px, transparent 2px);
	  background-size: 10px 10px;
	  opacity: 0.5;
	}

	.decoration-dots-1 {
	  top: 20px;
	  right: 20px;
	}

	.decoration-dots-2 {
	  bottom: 20px;
	  left: 20px;
	}

	@media (max-width: 768px) {
	  .course-header-content {
	    grid-template-columns: 1fr;
	    text-align: center;
	  }
	  
	  .course-cover {
	    width: 240px;
	    height: 160px;
	    margin: 0 auto;
	  }
	  
	  .course-title {
	    font-size: 2rem;
	  }
	}

	/* 更新课程信息区域样式 */
	.course-info {
	  flex: 1;
	  padding: 30px;
	  background: rgba(255, 255, 255, 0.15);
	  border-radius: 20px;
	  backdrop-filter: blur(10px);
	  border: 1px solid rgba(255, 255, 255, 0.2);
	  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	}

	/* 更新课程标题样式 */
	.course-title {
	  font-size: 2.5rem;
	  font-weight: 600;
	  margin-bottom: 1.5rem;
	  color: #ffffff;
	  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
	  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
	}

	/* 更新课程描述样式 */
	.course-description {
	  font-size: 1.2rem;
	  line-height: 1.6;
	  color: rgba(255, 255, 255, 0.95);
	  max-width: 600px;
	  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
	}

	/* 更新课程封面样式 */
	.course-cover {
	  width: 280px;
	  height: 180px;
	  border-radius: 20px;
	  box-shadow: 
	    0 15px 35px rgba(0,0,0,0.1),
	    0 0 0 1px rgba(255,255,255,0.2);
	  transition: transform 0.3s ease;
	  object-fit: cover;
	}

	.course-cover:hover {
	  transform: translateY(-5px);
	  box-shadow: 
	    0 20px 40px rgba(0,0,0,0.15),
	    0 0 0 2px rgba(255,255,255,0.3);
	}

	/* 更新装元素样式 */
	.header-decoration {
	  position: absolute;
	  bottom: -2px;
	  left: 0;
	  right: 0;
	  height: 60px;
	  background: linear-gradient(to bottom right, 
	    transparent 49.5%, 
	    #ffffff 50%
	  );
	}

	.border {
		border: 3px solid #6798e7;
		border-radius: 8px;
	}

	.row-border {
		border: 4px solid rgba(79, 172, 254, 0.7);
		border-radius: 12px;
		background: white;
		margin-bottom: 20px;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
	}

	.keJian {
		position: absolute;
		top: 0;
		bottom: 0;
		padding-left: 10px;
		padding-right: 10px;
		z-index: 2;
	}

	.quBianCheng-base {
		border-radius: 8px;
		height: 30px;
		background: none;
		display: flex;
		align-items: center;
		border-radius: 20px;
	}

	.quBianCheng-button {
		color: #ffa600;
		border: 3px solid #6798e7;
	}

	.row-0 {
		padding: 0;
		margin: 0;
	}

	/* 调整整体颜色主题 */
:root {
  --primary-color: #FF7722; /* 主题色调整为更明亮的颜色 */
  --text-color: #333333; /* 文本颜色保持深色以保持可读性 */
}

/* 所有标题使用更大的字体大小 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Comic Sans MS', 'Arial', sans-serif; /* 更友好的字体类型 */
  color: var(--primary-color);
}



/* 主要按钮和链接的样式 */
.btn, .navbar-nav > li > a {
  font-size: 16px; /* 增加字体大小 */
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 12px; /* 增加填充以适应小手指 */
  
}

/* 悬停在按钮和链接上时的效果 */
.btn:hover, .navbar-nav > li > a:hover {
  background-color: darken(var(--primary-color), 10%);
  color: #ec4646;
}

/* 图标样式调整 */
.fa {
  font-size: 24px; /* 图标更大 */
  color: var(--primary-color);
}

/* 图标按钮 */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
}
li.has-dropdown{
  padding: 5px 5px;
}

/* 为了小学生的易用性，调整导航栏高度 */
.navbar {
  padding: 10px 0;
}

/* 针对小屏幕的响应式导航菜单按钮样式 */
.navbar-toggler {
  font-size: 16px;
  padding: 10px 15px;
}
/* 响应式布局下导航栏的处理 */
@media (max-width: 992px) {
  .navbar-nav > li > a {
    padding: 5px 10px; /* 移动设备上进一步减少内边距 */
  }
  /* 对折叠导航按钮的调整 */
  .navbar-toggler {
    padding: 5px 10px; /* 折叠按钮的内边距 */
  }
}

/* 简单的动画来吸引小学生的注意力 */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 使用动画的类 */
.bounce {
  animation: bounce 1s infinite;
}

/* 对具有动画的元素轻轻地悬跳跃 */
.bounce:hover {
  animation-play-state: paused;
}

.lesson-btn {
  width: 100%; /* 确定按钮宽度 */
  overflow: hidden; /* 隐藏溢出的文本 */
  text-overflow: ellipsis; /* 显示省略符号表示文字被截断 */
  white-space: nowrap; /* 不允许文本换行 */
  
}

.lesson-btn:hover {
  overflow: visible; /* 鼠标悬停时允许文本溢出 */
  white-space: normal; /* 允许文本换行 */
  background-color: #FFb800; /* 可选：鼠标悬停时的背景颜色变化 */
  /* 鼠标悬停时可能需要调整按钮高度以适应全部文本 */
  height: auto; /* 或者设定一个足够大的固定高度 */
  position: relative; /* 使溢出的文本显示在内容流之上 */
  z-index: 1000; /* 确保文本显示在最上层 */
  line-height: 1.2; /* 鼠标悬停时减少行高 */
  padding-top: 5px; /* 减少上内边距 */
  padding-bottom: 5px; /* 减少下内边距 */
}

/* 可选：使用伪元素显示提示信息 */
.lesson-btn::after {
  content: attr(data-tooltip); /* 使用自定 */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}

.lesson-btn:hover::after {
  visibility: visible;
  opacity: 1;
}

/* 设定整个头部区域的背景色 */
#home123 {
  position: relative;
  min-height: 300px;
  padding: 60px 0;
  background: linear-gradient(135deg,
    #36D1DC 0%,    /* 明亮天蓝色 */
    #5B86E5 50%,   /* 中亮度的蓝色 */
    #4FACFE 100%   /* 活力蓝 */
  );
  color: #ffffff;
  overflow: hidden;
}

/* 添加一个柔和的网格背景 */
#home123::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* 更新背景图片样式，降低不透明度 */
.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.08;  /* 降低背景图片的不透明度 */
  background-size: cover;
  background-position: center;
}

/* 内容包装器 */
.header-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* 课程信息区域 */
.course-info {
  flex: 1;
}

.course-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.course-description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
}

/* 课程封面图片 */
.course-cover {
  width: 280px;
  height: 180px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.course-cover:hover {
  transform: translateY(-5px);
}

/* 添加一些装饰元素 */
.header-decoration {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom right, transparent 49%, #fff 50%);
}

/* 包裹内容的div的样式 */
.content-wrapper {
  display: flex; /* 使用flex布局 */
  flex-direction: column; /* 子元素垂直排列 */
  justify-content: center; /* 垂直居中 */
  align-items: flex-start; /* 水平靠左 */
  padding: 20px 20px 50px 120px; /* 或者任何需要的内边距 */
  width: calc(100% - 320px); /* 根据需要调整宽度 */
  float: left; /* 如不需要特定的布局，可移除float属性 */
}

/* 文本样式调整 */
.white-text {
  color: #ffffff; /* 文本颜色 */
  margin: 0; /* 移除默认的上下外边距 */
}

/* 标题H2的样式 */
.white-text.h2 {
  font-size: 3rem; /* 大标题的字体大小 */
  margin-bottom: 1.5rem; /* 如果需要在标题下面添加一点间隔 */
}

/* 副标题H3的样式 */
.white-text.h3 {
  font-size: 2rem; /* 副标题的字体大小 */
  margin-bottom: 1.5rem;
}

/* 课程元信息样式 */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

.meta-item i {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* 技能标签样式 */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.skill-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #ffffff;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
}

/* 不同颜色的标签 */
.tag-blue {
  background: rgba(33, 150, 243, 0.8);
}

.tag-purple {
  background: rgba(156, 39, 176, 0.8);
}

.tag-orange {
  background: rgba(255, 152, 0, 0.8);
}

.tag-green {
  background: rgba(76, 175, 80, 0.8);
}

/* 学习标样式 */
.learning-goals {
  margin-top: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.learning-goals h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.learning-goals ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.learning-goals li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.learning-goals i {
  color: #4CAF50;
}

/* 课程特色标签样式 */
.course-badges {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-new {
  background: #FF4081;
  color: white;
}

.badge-hot {
  background: #FF9800;
  color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .course-meta {
    gap: 15px;
  }
  
  .meta-item {
    font-size: 0.9rem;
  }
  
  .learning-goals {
    padding: 15px;
  }
}

/* 课程导航区域样式 */
.course-navigation {
  position: sticky;
  top: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

/* 导航头部样式 */
.nav-header {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.nav-title {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-title i {
  color: #4FACFE;
}

/* 进度条样式 */
.progress-info {
  margin-top: 10px;
}

.progress {
  height: 6px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  background: linear-gradient(90deg, #4FACFE 0%, #00f2fe 100%);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: #6c757d;
}

/* 课程列表容器 */
.lessons-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

/* 自定义滚动条 */
.lessons-container::-webkit-scrollbar {
  width: 6px;
}

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

.lessons-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.lessons-container::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* 课程按钮样式优化 */
.lesson-btn {
  width: 100%;
  padding: 15px 20px;
  margin: 8px 0;
  border: none;
  background: #f8f9fa;
  color: #2c3e50;
  text-align: left;
  font-size: 16px;
  transition: background-color 0.2s ease; /* 只保留背景色过渡 */
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 60px; /* 设置小高度 */
}

/* 课程编号样式 */
.lesson-number {
  min-width: 28px;
  height: 28px;
  background: #e9ecef;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #2c3e50;
  font-weight: 600;
  flex-shrink: 0; /* 防止数字被压缩 */
}

/* 课程标题样式优化 */
.lesson-title {
  flex: 1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 显示两行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  position: relative;
}

/* 添加标题提示框 */
.lesson-title:hover::after {
  content: attr(data-title);
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  width: max-content;
  max-width: 300px;
  font-size: 14px;
  margin-top: 5px;
  white-space: normal;
  color: #333;
  line-height: 1.4;
}

/* 激活状态样式 */
.lesson-btn.layui-btn-warm {
  background: #4FACFE;
  color: white;
}

.lesson-btn.layui-btn-warm .lesson-number {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* 禁用状态样式 */
.lesson-btn.layui-btn-disabled {
  background: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
  opacity: 0.8;
}

/* 悬停效果 - 移除transform */
.lesson-btn:not(.layui-btn-disabled):hover {
  background: #edf2ff;
}

/* 导航头部样式优化 */
.nav-header {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.nav-title {
  font-size: 18px;    /* 加大标题字号 */
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;   /* 加粗标题 */
}

/* 进度条样式优化 */
.progress {
  height: 8px;        /* 加粗进度条 */
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-text {
  font-size: 15px;    /* 加大进度文字 */
  color: #2c3e50;
  text-align: right;
  font-weight: 500;   /* 加粗进度文字 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .course-navigation {
    height: 400px;
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }
}

/* 在header后添加新的两栏布局结构 */
.course-container {
  display: flex;
  flex-direction: row;
  height: 100%;
}

/* 左侧课程目录 */
.course-sidebar {
  width: 20%;
  background-color: #f8f9fa;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 右侧主内容区 */
.course-main {
  flex: 1;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  min-height: calc(100vh - 40px);
}

/* 主要内容容器 */
.main-content {
  position: relative;
  width: 100%;
}

/* 课程内容和课程详情共同样式 */
.course-txt,
.lesson-res {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* 编程区域样式 */
#programmingSection {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
}

/* 视频和作业区域样式 */
.video-section,
#submit_homework_all {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
}

/* 资源按钮 */
.resource-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #fff;
  border: none;
  cursor: pointer;
  width: 100%;
}

/* 主要内容区 */
.course-content {
  /* 原有的课程内容 */
  <div class="course-txt row row-border row-0">
    <!-- 原有内容 -->
  </div>
  <div class="lesson-res hidden">
    <!-- 原有内容 -->
  </div>
}

/* 可收起的资源侧边栏 */
.resource-sidebar {
  width: 20%;
  background-color: #f8f9fa;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 资源头部样式 */
.resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

/* 关闭资源按钮 */
.close-resource {
  background: none;
  border: none;
  cursor: pointer;
}

/* 资源内容样式 */
.resource-content {
  /* 原有的资源内容 */
  <div class="resource-section">
    <h4>课程资料</h4>
    <div class="resource-buttons">
      <a id="lesson_PPT" class="resource-btn" target="_blank">
        <i class="fa fa-file-powerpoint-o"></i>
        <span>PPT课件</span>
      </a>
      <a id="lesson_PDF" class="resource-btn" target="_blank">
        <i class="fa fa-file-pdf-o"></i>
        <span>PDF教案</span>
      </a>
      <a id="lesson_video" class="resource-btn" target="_blank">
        <i class="fa fa-file-video-o"></i>
        <span>教学视频</span>
      </a>
      <a id="lesson_file" class="resource-btn" target="_blank">
        <i class="fa fa-file-o"></i>
        <span>附件资料</span>
      </a>
    </div>
  </div>
}

/* 两栏式布局容器 */
.course-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
  min-height: calc(100vh - 400px);
}

/* 左侧课程目录 */
.course-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* 右侧主内容区 */
.course-main {
  flex: 1;
  position: relative;
}

/* 资源切换按钮 */
.resource-toggle-btn {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 30px;
  background: #4FACFE;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.resource-toggle-btn:hover {
  background: #2196F3;
  transform: translateY(-50%) scale(1.05);
}

/* 资源侧边栏 */
.resource-sidebar {
  position: fixed;
  right: -350px;
  top: 0;
  width: 350px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1001;
}

.resource-sidebar.active {
  right: 0;
}

/* 资源侧边栏头部 */
.resource-header {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resource-header h3 {
  margin: 0;
  color: #2c3e50;
}

.close-resource {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 1.2rem;
}

/* 资源内容区 */
.resource-content {
  padding: 20px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

/* 资源按钮样式 */
.resource-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.resource-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.2s ease;
}

.resource-btn:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.resource-btn i {
  font-size: 1.2rem;
  color: #4FACFE;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .course-container {
    flex-direction: column;
  }
  
  .course-sidebar {
    width: 100%;
    height: auto;
  }
  
  .course-navigation {
    height: 400px;
  }
}

/* 更新两栏式布局容器样式 */
.course-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

/* 左侧课程目录样式 */
.course-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* 右侧主内容区样式 */
.course-main {
  flex: 1;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  min-height: calc(100vh - 40px);
}

/* 主要内容容器 */
.main-content {
  position: relative;
  width: 100%;
}

/* 课程内容和课程详情共同样式 */
.course-txt,
.lesson-res {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* 编程区域样式 */
#programmingSection {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
}

/* 视频和作业区域样式 */
.video-section,
#submit_homework_all {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
}

/* 修改资源按钮样式 */
.resource-toggle-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 8px 12px;
  border-radius: 20px;
  background: #4FACFE;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  width: auto;
}

.resource-toggle-btn:hover {
  background: #2196F3;
  transform: translateY(-2px);
}

.resource-toggle-btn i {
  font-size: 16px;
}

/* 资源侧边栏样式调整 */
.resource-sidebar {
  position: fixed;
  right: -300px;
  top: 20px;
  width: 300px;
  height: calc(100vh - 40px);
  background: white;
  border-radius: 16px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1001;
}

.resource-sidebar.active {
  right: 20px;
}

/* 资源侧边栏头部样式 */
.resource-header {
  padding: 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 资源按钮网格布局 */
.resource-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
}

.resource-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.2s ease;
}

.resource-btn:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

/* 课程详情区域样式优化 */
.lesson-res {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  margin-top: 20px;
}

/* 课程标题样式 */
#lesson_title {
  font-size: 24px;
  color: #2c3e50;
  font-weight: 600;
  padding: 0 0 20px 0;
  margin: 0 0 20px 0;
  border-bottom: 1px solid #eef2f7;
  height: auto !important;
}

/* 课程内容区域布局 */
.lesson-content {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

/* 课程封面图片样式优化 */
#lesson_cover {
  width: 100%;
  max-width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 课程信息文本样式 */
.lesson-info p {
  margin: 10px 0;
  line-height: 1.6;
}

/* 按钮基础样式优化 */
.quBianCheng-base {
  height: 45px;
  padding: 0 20px;
  background: #f5f7fa;
  color: #2c3e50;
  border-radius: 8px;
  font-size: 15px;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.quBianCheng-base:not(.layui-btn-disabled):hover {
  background: #edf2f7;
  transform: translateY(-2px);
}

/* 禁用按钮样式优化 */
.layui-btn-disabled {
  background: #f5f5f5 !important;
  color: #bbb !important;
  cursor: not-allowed !important;
  pointer-events: none;
  position: relative;
}

/* 禁用按钮添加禁用标识 */
.layui-btn-disabled::after {
  content: '不可用';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #999;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}

.layui-btn-disabled:hover::after {
  opacity: 1;
}

/* 视频和作业区域样式优化 */
.video-section, 
#submit_homework_all {
  background: #fff;
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 区域标题样式 */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

/* 视频播放按钮样式 */
.video-play {
  width: 60px !important;
  height: 45px !important;
  background: #4FACFE !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.video-play:not(.layui-btn-disabled):hover {
  background: #2196F3 !important;
  transform: translateY(-2px);
}

.video-play i {
  font-size: 24px !important;
  padding: 0 !important;
  color: white;
}

/* 作业提交按钮样式 */
#submit_homework {
  padding: 10px 24px;
  height: 45px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#submit_homework:not(.layui-btn-disabled):hover {
  background: #43A047;
  transform: translateY(-2px);
}

/* 课程介绍页面样式优化 */
.course-txt {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

/* 课程封面容器样式 */
.course-txt .img-responsive {
  max-width: 100%;
  height: auto;
  max-height: 240px; /* 限制最大高度 */
  object-fit: contain; /* 保持图片比例 */
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

/* 课程须知样式 */
.course-txt .col-md-6 {
  padding: 15px;
}

/* 课程须知文本样式 */
.course-txt p {
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.course-txt p:first-child {
  font-size: 18px;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 15px;
}

.course-txt p:last-child {
  font-size: 14px;
  color: #5d6d7e;
}

/* 课程内容区域样式优化 */
.lesson-res .row-border {
  padding: 25px;
  margin-bottom: 20px;
}

/* 主讲内容和知识点样式优化 */
.lesson-content-section {
  padding: 0 10px;
}

.content-label {
  font-size: 18px;
  color: #2c3e50;
  font-weight: 600;
  margin: 0 0 12px 0;
}

#lesson_about,
#lesson_knows {
  font-size: 15px !important;
  color: #5d6d7e;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 视频区域样式优化 */
.video-section {
  height: auto !important;
  padding: 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

/* 视频标题样式 */
.video-section div:first-child {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

/* 视频播放按钮样式优化 */
.video-play {
  width: 60px !important;
  height: 45px !important;
  background: #4FACFE !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.video-play:not(.layui-btn-disabled):hover {
  background: #2196F3 !important;
  transform: translateY(-2px);
}

.video-play i {
  font-size: 24px !important;
  padding: 0 !important;
  color: white;
}

/* 作业区域样式优化 */
#submit_homework_all {
  height: auto !important;
  padding: 20px !important;
}

#submit_homework1 div {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

/* 提交作业按钮样式 */
#submit_homework {
  padding: 10px 24px;
  height: 45px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#submit_homework:not(.layui-btn-disabled):hover {
  background: #43A047;
  transform: translateY(-2px);
}

/* 编程区域样式优化 */
#programmingSection {
    padding: 20px 25px;
    margin: 20px 0;
    min-height: 80px;
}

.programming-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.programming-title {
    font-size: 22px;
    font-weight: bold;
    color: #666666;
}

.programming-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 编程钮基础样式 */
.quBianCheng-base {
    height: 36px !important;
    padding: 0 20px !important;
    background: #e8f4ff !important;
    color: #4FACFE !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    margin: 0 !important;
}

.quBianCheng-base:hover {
    background: #d1e9ff !important;
    transform: translateY(-2px);
}

/* 新增课后练习按钮样式 */
.quBianCheng-base.exercise {
    background: #ffe8e8 !important;  /* 淡红色背景 */
    color: #FE4F4F !important;      /* 红色文字 */
}

.quBianCheng-base.exercise:hover {
    background: #ffd1d1 !important;  /* 深一点的淡红色 */
}

/* 提交作业按钮样式修复 */
#submit_homework {
    width: auto !important;
    min-width: 120px !important;
    height: 36px !important;
    padding: 0 20px !important;
    background: #4CAF50 !important;
    color: white !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

#submit_homework:hover {
    background: #43A047 !important;
    transform: translateY(-2px);
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .programming-buttons-container {
        gap: 8px;
    }
    
    .quBianCheng-base {
        padding: 0 15px !important;
        font-size: 13px !important;
    }
}

/* 视频和作业区域样式统一 */
.video-section, 
#submit_homework_all {
    height: 80px !important; /* 统一高度 */
    display: flex;
    align-items: center;
    padding: 0 25px !important;
    background: white;
    border: 4px solid rgba(79, 172, 254, 0.7);
    border-radius: 12px;
    margin: 15px 0;
}

/* 移除视频播放器的圆角 */
.layui-layer.layui-layer-iframe,
.layui-layer.layui-layer-video {
    border-radius: 0 !important;
}

/* 视频播放器内容区域样式重置 */
.layui-layer-content,
.layui-layer-wrap,
.layui-layer-iframe .layui-layer-content,
.layui-layer-video .layui-layer-content {
    border-radius: 0 !important;
    overflow: hidden !important;
}

/* 确保iframe本身也没有圆角 */
.layui-layer-content iframe {
    border-radius: 0 !important;
}

/* 移除视频播放器所有可能的圆角 */
.layui-layer * {
    border-radius: 0 !important;
}

/* 确保视频播放器容器没有圆角 */
#videoContainer,
.video-container,
.video-wrapper {
    border-radius: 0 !important;
    overflow: hidden !important;
}

/* 修复时间戳显示方向 */
.video-js .vjs-time-tooltip,
.video-js .vjs-progress-control .vjs-mouse-display .vjs-time-tooltip,
.video-js .vjs-progress-control:hover .vjs-mouse-display .vjs-time-tooltip,
.video-js .vjs-progress-holder .vjs-play-progress .vjs-time-tooltip,
.video-js .vjs-slider-bar .vjs-time-tooltip,
.video-js .vjs-progress-bar .vjs-time-tooltip {
    position: absolute !important;
    width: auto !important;
    min-width: 40px !important;
    height: 20px !important;
    transform: translate(-50%, -25px) !important; /* 向上偏移并水平居中 */
    background: rgba(28, 28, 28, 0.9) !important;
    border-radius: 4px !important;
    color: white !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    line-height: 16px !important;
    text-align: center !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

/* 进度条播放进度 */
.video-js .vjs-progress-holder .vjs-play-progress {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    background: #4FACFE !important; /* 进度条颜色 */
}

/* 进度条缓冲进度 */
.video-js .vjs-progress-holder .vjs-load-progress {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* 进条交互区域 */
.video-js .vjs-progress-control .vjs-progress-holder {
    position: relative !important;
    height: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

/* 确保鼠标指示器正确显示 */
.video-js .vjs-mouse-display {
    background: none !important;
    width: 1px !important;
    height: 100% !important;
}

/* 移除所有可能影响布局的变换 */
.video-js .vjs-progress-control .vjs-mouse-display,
.video-js .vjs-progress-control:hover .vjs-mouse-display,
.video-js .vjs-time-tooltip {
    transform: translate(-50%, -25px) !important;
    rotate: none !important;
    scale: none !important;
}

/* 视频播放器时间戳提示样式 */
.vjs-time-tooltip,
.video-js .vjs-progress-control .vjs-mouse-display .vjs-time-tooltip,
.video-js .vjs-progress-holder .vjs-play-progress .vjs-time-tooltip {
    position: absolute !important;
    width: auto !important;
    min-width: 40px !important;
    height: 20px !important;
    transform: translate(-50%, -25px) !important;
    background-color: rgba(28, 28, 28, 0.9) !important;
    border-radius: 4px !important;
    color: white !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    line-height: 16px !important;
    text-align: center !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
}

/* 确保时间戳显示在正确的位置 */
.video-js .vjs-progress-control .vjs-mouse-display {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 100% !important;
    background: none !important;
    border: none !important;
}

/* 修复时间戳容器位置 */
.video-js .vjs-progress-control {
    position: relative !important;
    height: 20px !important; /* 增加高度以容纳tooltip */
    margin-top: -8px !important; /* 向上偏移以对齐进度条 */
}

/* 确保进度条可以正常显示和交互 */
.video-js .vjs-progress-holder {
    height: 4px !important;
    margin: 0 !important;
    position: absolute !important;
    bottom: 0 !important;
}

/* 视频播放器时间戳提示样式 */
.br-video-container .br-video-controls .br-progress-bar .br-progress-preview.br-not-select.br-no-touch {
    position: absolute !important;
    width: auto !important;
    min-width: 40px !important;
    height: 20px !important; /* 固定高度 */
    transform: translate(-50%, -25px) !important; /* 向上偏移并水平居中 */
    background: rgba(28, 28, 28, 0.9) !important;
    border-radius: 4px !important;
    color: white !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    line-height: 16px !important;
    text-align: center !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
}

/* 进度条悬停时显示预览 */
.br-video-container .br-video-controls .br-progress-bar:hover .br-progress-preview {
    display: block !important;
}

/* 进度条播放进度 */
.br-video-container .br-video-controls .br-progress-bar .br-progress {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    background: #4FACFE !important; /* 进度条颜色 */
}

/* 进度条缓冲进度 */
.br-video-container .br-video-controls .br-progress-bar .br-progress-cache {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* 进度条交互区域 */
.br-video-container .br-video-controls .br-progress-bar .br-progress-hover {
    position: absolute !important;
    top: -8px !important; /* 扩大可点击区域 */
    height: 20px !important;
    width: 100% !important;
    cursor: pointer !important;
}

/* 修复时间戳显示 */
.br-video-container .br-video-controls .br-progress-bar {
    position: relative !important;
    height: 4px !important;
    margin: 10px 0 !important;
    background: rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
}

/* 视频播放器控制按钮样式修复 */
.br-video-controls .br-control-right {
    display: flex !important;
    align-items: center !important; /* 垂直居中 */
    height: 100% !important;
    gap: 8px; /* 按钮之间的间距 */
}

/* 专门针对播放速度、声音和全屏按钮的样式 */
.br-video-controls .br-speed-select,
.br-video-controls .br-voice-bar,
.br-video-controls .br-browser-fullscreen,
.br-video-controls .br-window-fullscreen {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 0 8px !important;
}

/* 按钮内的图标样式 */
.br-video-controls .br-control-right .iconfont-br {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 4px !important;
}

/* 确保音量控制条正确显示 */
.br-video-controls .br-voice-bar .br-tip-text {
    bottom: 64px !important; /* 调整音量控制条的位置 */
}

/* 确保播放速度选择菜单正确显示 */
.br-video-controls .br-speed-select .br-tip-text {
    bottom: 64px !important; /* 调整播放速度菜单的位置 */
}

/* 视频播放器控制栏按钮样式修复 */
.br-video-container .br-video-controls {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
}

/* 右侧控制按钮组样式 */
.br-video-container .br-video-controls .br-control-right {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding-right: 10px !important;
}

/* 播放速度按钮样式 */
.br-video-container .br-video-controls .br-speed-select {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* 声音按钮样式 */
.br-video-container .br-video-controls .br-voice-bar {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* 全屏按钮样式 */
.br-video-container .br-video-controls .br-browser-fullscreen,
.br-video-container .br-video-controls .br-window-fullscreen {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* 所有控制按钮图标样式 */
.br-video-container .br-video-controls .br-control-right .iconfont-br {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 0 8px !important;
    margin: 0 !important;
}

/* 确保控制栏内所有元素垂直居中 */
.br-video-container .br-video-controls > * {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* 进度条容器样式保持不变 */
.br-video-container .br-progress-bar {
    position: absolute !important;
    top: -4px !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    width: 100% !important;
}

/* 视频播放器控制栏样式修复 */
.br-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

/* 控制栏容器样式 */
.br-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    display: flex !important;
    align-items: center !important;
    z-index: 2;
}

/* 进度条容器样式 */
.br-video-controls .br-progress-bar {
    position: absolute !important;
    top: -4px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: rgba(255,255,255,0.2) !important;
    cursor: pointer !important;
    z-index: 3 !important;
}

/* 进度条播放进度样式 */
.br-video-controls .br-progress-bar .br-progress-current {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    background: #FFA500 !important;
    transition: width 0.25s linear !important;
}

/* 进度条拖动点样式 */
.br-video-controls .br-progress-bar .br-progress-play-drag {
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #FFA500 !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0;
    transition: opacity 0.2s !important;
}

/* 鼠标悬停时显示拖动点 */
.br-video-controls .br-progress-bar:hover .br-progress-play-drag {
    opacity: 1 !important;
}

/* 确保进度条预览窗口正确显示 */
.br-video-controls .br-progress-bar .br-progress-preview {
    position: absolute !important;
    bottom: 100% !important;
    transform: translateX(-50%) !important;
    background: rgba(0,0,0,0.8) !important;
    border-radius: 4px !important;
    padding: 4px !important;
    z-index: 4 !important;
}