/* 根字体大小设置，适配不同分辨率 */
html {
  font-size: 16px;
}

/* 高分辨率屏幕适配 */
@media (min-width: 1920px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 12px;
  }
}

@media (min-width: 0) and (max-width: 961px) {
  .carousel {
    height: 50vw !important;
    padding-top: 0 !important;
  }
  .carousel-slides {
    height: 50vw !important;
  }
  .home-mould {
    height: auto !important;
    min-height: auto !important;
    padding-top: 80px !important;
  }
  .important_news {
    height: auto !important;
    background-size: cover !important;
    padding-bottom: 32px;
  }
  .important_news .important-news-carousel {
    flex-direction: column !important;
    max-width: 100vw !important;
    gap: 24px;
    overflow: visible !important;
  }
  .news-exhibition-module {
    height: auto !important;
    min-height: 220px !important;
    margin-bottom: 16px;
    height: auto !important;
  }
  .news-carousel-slides {
    height: 40vw !important;
    min-height: 180px !important;
  }
  .news-carousel-slide img {
    border-radius: 12px !important;
  }
  .news-exhibition-info {
    padding: 16px 12px 12px 12px !important;
    font-size: 14px !important;
  }
}
@media (min-width: 0) and (max-width: 431px) {
  .carousel {
    height: 80vw !important;
    padding-top: 0 !important;
  }
  .carousel-slides {
    height: 80vw !important;
  }
  .carousel-pagination {
    display: none !important;
  }
  .module_title_more span {
    padding: 0 !important;
    font-size: 12px !important;
  }
  .module_title_more span::after {
    width: 0 !important;
    right: 0 !important;
  }
  .module_title_more span::before {
    width: 0 !important;
    left: 0 !important;
  }
  .module_title_img img {
    width: 50vw !important;
  }
  .home-mould {
    padding-top: 10vw !important;
  }
}
/* ========== 公共 ========== */
.home-mian {
  z-index: -10;
}
.container-main {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
}
.home-mould {
  width: 100%;
  min-height: 100vh;
  padding-top: 80px;
}
/* ========== 模块标题样式 ========== */

/* 基础模块标题样式 */
.module_title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  width: 100%;
  background: transparent;
  padding-left: 0;
}

/* 模块标题图片样式 */
.module_title_img img {
  max-height: 110px;
  width: auto;
  margin: 0 auto;
}

/* 模块标题更多按钮样式 */
.module_title_more {
  font-size: 24px;
  text-align: right;
  color: #4D4D4D;
  cursor: pointer;
}



/* 模块标题区居中 */
.practice-carousel-module .module_title,
.teaching-show-module .module_title,
.teaching-resource-module .module_title,
.teacher-style-module .module_title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  width: 100%;
  background: transparent;
  padding-left: 0;
}

/* 查看更多按钮底部居中 */
.practice-carousel-module .module_title_more,
.teaching-show-module .module_title_more,
.teaching-resource-module .module_title_more,
.teacher-style-module .module_title_more {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #464646;
  z-index: 10;
}

/* 通用：查看更多按钮悬停效果 */
.module_title_more:hover::after,
.module_title_more span:hover::after {
  transform: translateX(4px);
}

/* 通用：查看更多按钮右侧icon统一样式 */
.module_title_more::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  background: url('/public/image/home/icon_more_a2.png') no-repeat center center;
  background-size: contain;
  margin-left: 6px;
  vertical-align: middle;
}
/* 教学资源模块标题样式 */
.teaching-resource-module .module_title_more span {
  color: #fff;
}
/* 教学资源模块查看更多按钮图标 */
.teaching-resource-module .module_title_more::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  background: url('/public/image/home/icon_more_b2.png') no-repeat center center;
  background-size: contain;
  margin-left: 6px;
  vertical-align: middle;
}

/* ========== 模块标题响应式适配 ========== */

/* 模块标题图片响应式适配 */
@media (max-width: 992px) {
  .module_title_img img {
    width: auto;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .module_title_img img {
    width: auto;
    margin: 0 auto;
  }
}

/* 模块标题响应式适配 */
@media (max-width: 992px) {
  .module_title {
    height: 70px !important;
    margin-bottom: 24px !important;
    align-items: center !important;
  }
  /* 马院要闻模块标题平板端居中 */
  .news-exhibition-module .module_title {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* 模块标题更多按钮平板端适配 */
  .module_title_more {
    font-size: 18px !important;
    margin-right: 8px !important;
  }
  .module_title_more span {
    font-size: 18px !important;
    padding: 0 0.5vw !important;
  }
  .module_title_more::after,
  .module_title_more span::after {
    width: 14px !important;
    height: 14px !important;
    margin-left: 4px !important;
  }
}

@media (max-width: 600px) {
  .module_title {
    align-items: center !important;
  }
  /* 马院要闻模块标题手机端居中 */
  .news-exhibition-module .module_title {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* 模块标题更多按钮手机端适配 */
  .module_title_more {
    font-size: 14px !important;
    margin-right: 4px !important;
  }

  .module_title_more span {
    font-size: 14px !important;
    padding: 0 2px !important;
  }
  .module_title_more::after,
  .module_title_more span::after {
    width: 12px !important;
    height: 12px !important;
    margin-left: 2px !important;
  }
}
/* ========== 轮播 ========== */
.carousel {
  position: relative;
  overflow: hidden;
  padding-top: calc(100vh - 64px);
  transition: padding 0.8s ease;
  width: 100%;
  height: 100%;
}
.carousel-active {
  padding-top: 0;
}
.carousel-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 2s ease;
}
.carousel-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.carousel-pagination {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  z-index: 10;
}
.carousel-pagination li {
  display: inline-block;
  width: 8px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  margin-right: 4px;
  cursor: pointer;
}
.carousel-pagination li.active {
  background: #fff;
  width: 16px;
}

/* ========== 轮播响应式适配 ========== */

/* 大屏幕适配 (≤1280px) */
@media (max-width: 1280px) {
  .carousel {
    padding-top: calc(80vh - 64px);
  }
  .carousel-slides {
    height: calc(80vh - 64px);
  }
}

/* 平板端适配 (≤992px) */
@media (max-width: 992px) {
  .carousel {
    padding-top: calc(70vh - 64px);
  }
  .carousel-slides {
    height: calc(70vh - 64px);
  }
}

/* 中等屏幕适配 (≤768px) */
@media (max-width: 768px) {
  .carousel {
    padding-top: calc(60vh - 64px);
  }
  .carousel-slides {
    height: calc(60vh - 64px);
  }
}

/* 手机端适配 (≤600px) */
@media (max-width: 600px) {
  .carousel {
    padding-top: calc(50vh - 64px);
  }
  .carousel-slides {
    height: calc(50vh - 64px);
  }
}

/* 小屏手机适配 (≤480px) */
@media (max-width: 480px) {
  .carousel {
    padding-top: calc(40vh - 64px);
  }
  .carousel-slides {
    height: calc(40vh - 64px);
  }
}

/* ========== 马院要闻 ========== */
.important_news {
  width: 100%;
  background: url('/public/image/home/index_bg01.jpg') no-repeat center center;
  background-size: 100% 100%;
  padding-bottom: 98px;
}
.news-exhibition-module .module_title {
  height: 110px;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding-left: 0 !important;
}
.important_news .important-news-carousel {
  display: flex;
  overflow: hidden;
  align-items: stretch;
  gap: 40px; 
  padding-top: 68px;
}
.news-exhibition {
  flex: 2;
}
.news-list-module {
  flex: 1;
  margin-left: 0; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* 左侧展示部分 */
.news-exhibition-module {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-exhibition-carousel-module {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 4px 46px 0px rgba(161,156,149,0.14);
  flex: 1;
  margin-top: 45px;
}
.news-exhibition-carousel {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(30,58,138,0.12);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: none;
  position: relative;
  transition: all 0.3s ease;
}
.news-exhibition-carousel:hover {
  box-shadow: 0 12px 40px rgba(30,58,138,0.18);
  transform: translateY(-2px);
}
.news-carousel-slides {
  width: 100%;
  height: 320px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.news-carousel-slide {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
.news-carousel-slide:hover {
  transform: scale(1.02);
}
.news-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 0;
  transition: all 0.3s ease;
}
.news-carousel-pagination {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: auto;
  transform: none;
  list-style: none;
  padding: 8px 16px;
  margin: 0;
  text-align: right;
  z-index: 10;
  display: flex;
  gap: 8px;
  background: rgba(242,242,246, 0.4);
  border-radius: 20px;
}
.news-carousel-pagination li {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.news-carousel-pagination li:hover {
  background: #D1D5DB;
  transform: scale(1.2);
}
.news-carousel-pagination li.active {
  background: #E65044;
}
.news-exhibition-info {
  width: 100%;
  flex: none;
  padding: 28px 28px 24px 28px;
  box-shadow: 0px 4px 46px 0px rgba(161,156,149,0.14);
  background: #FFFFFF;
  border-radius: 0 0 10px 10px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.news-exhibition-info::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: url('../image/home/news_pic_bg.png') no-repeat top left;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
}

.news-info-date-exhibition {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 16px;
  font-size: 20px;
  font-weight: 400;
  color: #1e3a8a;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.news-info-date-day-exhibition {
  font-family: 'Times New Roman', serif;
  font-size: 64px;
  color: #1e293b;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.news-info-date-ym-exhibition {
  font-family: 'Times New Roman', serif;
  font-size: 22px;
  color: #64748b;
  line-height: 1;
  cursor: pointer;
}
.news-info-title-exhibition {
  width: 100%;
  margin-bottom: 12px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 28px;
  color: #1e293b;
  line-height: 1.3;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}
.news-info-content-exhibition {
   width: 100%;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 18px;
  color: #64748b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
/* 右侧列表*/
.news-list-module .news-tabs {
  display: flex;
  justify-content: center;
  align-items: end;
  flex-shrink: 0; /* 防止压缩 */
}
.news-list-module .news-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 45px;
  margin-bottom: 45px;
  padding-left: 0;
  flex-shrink: 0; /* 防止压缩 */
  height: 110px;
}
.news-tabs-title {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 500;
  font-size: 36px;
  color: #6D6D6D;
  margin-right: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.news-tabs-title:hover,
.news-tabs-title.active  {
  color: #1e293b;
}
.news-list-module .news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  flex: 1; /* 占据剩余空间 */
  align-content: flex-start; /* 从顶部开始排 */
  min-height: 0; /* 允许收缩 */
}
.news-list-module .news-list .news-list-item {
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 10px);
  min-width: 0;
  position: relative;
  padding: 2% 32px ;
  border-radius: 16px;
  transition: all 0.3s ease;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #FFFFFF;
  line-height: 30px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  height: 165px; /* 固定高度确保一致 */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.news-list-module .news-list .news-list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.news-list-module .news-list .news-list-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.news-list-module .news-list .news-list-item:hover::before {
  opacity: 1;
}
.news-list-item .news-list-logo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 2;
  transition: all 0.3s ease;
}

/* 马院要闻右侧列表蓝红渐变相间背景 */
.news-list-module .news-list .news-list-item:nth-child(2),
.news-list-module .news-list .news-list-item:nth-child(3),
.news-list-module .news-list .news-list-item:nth-child(6) {
  background: linear-gradient(135deg, #9F2938 0%, #B52E40 50%, #C53030 100%) !important;
}
.news-list-module .news-list .news-list-item:nth-child(1),
.news-list-module .news-list .news-list-item:nth-child(4),
.news-list-module .news-list .news-list-item:nth-child(5) {
  background: linear-gradient(135deg, #2E477F 0%, #2C5097 50%, #4674CF 100%) !important;
}
.news-list-item .news-info-date {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-family: Times New Roman;
  font-weight: 400;
  font-size: 20px;
  color: #FFFFFF;
  line-height: 56px;
}
.news-list-item .news-info-date-day {
  font-family: Times New Roman;
  font-size: 52px;
  color: #FFFFFF;
  line-height: 1;
  margin-right: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.news-info-content > *{
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
/* 动效 */
@keyframes newsCenter {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes newSide {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.newsCenter-cartoon {
  animation: newsCenter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.newsSide-cartoon {
  animation: newSide 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/*********** 马院要闻适配 ***********/
@media (max-width: 992px) {
  .important_news {
    height: auto !important;
    background-size: cover !important;
    padding-bottom: 32px;
  }
  .important_news .important-news-carousel {
    flex-direction: column !important;
    max-width: 100vw !important;
    height: auto !important;
    gap: 24px;
    overflow: visible !important;
    align-items: stretch !important;
  }
  .news-exhibition-carousel-module {
    height: auto !important;
    margin-top: 0;
  }
  .news-exhibition-module {
    height: auto !important;
    min-height: 220px !important;
    margin-bottom: 16px;
  }
  .news-list-module {
    margin-left: 0 !important;
    margin-top: 16px !important;
    min-width: 0 !important;
    height: auto !important; /* 移除固定高度 */
    justify-content: flex-start !important; /* 重置垂直分布 */
  }
  .news-carousel-slides {
    height: 40vw !important;
    min-height: 180px !important;
  }
  .news-carousel-slide img {
    border-radius: 12px !important;
  }
  .news-exhibition-info {
    padding: 16px 12px 12px 12px !important;
    font-size: 14px !important;
  }
  .news-tabs-title {
    font-size: 28px !important;
    margin-right: 20px !important;
  }
  .news-list-module .news-list .news-list-item {
    border-radius: 12px !important;
  }
  .news-info-date-day-exhibition {
    font-size: 48px !important;
  }
  .news-info-title-exhibition {
    font-size: 24px !important;
  }
  .news-info-content-exhibition {
    font-size: 16px !important;
  }
}
@media (max-width: 600px) {
  .important_news .important-news-carousel {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .news-exhibition-module {
    min-height: 180px !important;
  }
  .news-list-module {
    height: auto !important; /* 移除固定高度 */
    justify-content: flex-start !important; /* 重置垂直分布 */
  }
  .news-carousel-slides {
    height: 50vw !important;
    min-height: 160px !important;
  }
  .news-exhibition-info {
    padding: 12px 16px !important;
  }
  .news-info-date-exhibition {
    gap: 12px !important;
    margin-bottom: 8px !important;
  }
  .news-info-date-day-exhibition {
    font-size: 36px !important;
  }
  .news-info-date-ym-exhibition {
    font-size: 16px !important;
  }
  .news-info-title-exhibition {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }
  .news-info-content-exhibition {
    font-size: 14px !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
  }
  .news-tabs-title {
    font-size: 24px !important;
    margin-right: 16px !important;
  }
  .news-list-module .news-list {
    gap: 12px !important;
  }
  .news-list-module .news-list .news-list-item {
    font-size: 16px !important;
  }
  .news-list-item .news-info-date-day {
    font-size: 40px !important;
    margin-right: 12px !important;
  }
  .news-list-item .news-list-logo {
    width: 60px !important;
    height: 60px !important;
    right: 12px !important;
    bottom: 12px !important;
  }
}

/* ========== 马院要闻轮播响应式适配 ========== */
@media (max-width: 992px) {
  .important_news .important-news-carousel {
    gap: 20px !important;
    padding-top: 40px !important;
  }
}

@media (max-width: 600px) {
  .important_news .important-news-carousel {
    gap: 10px !important;
    padding-top: 32px !important;
  }
}

/* ========== 新闻标签行响应式适配 ========== */
@media (max-width: 992px) {
  .news-tabs-row {
    padding-top: 18px !important;
    margin-bottom: 18px !important;
    gap: 8px !important;
    height: auto !important;
  }
   .news-tabs-title {
    font-size: 18px !important;
    margin-right: 10px !important;
  }
}

@media (max-width: 600px) {
  .news-tabs-row {
    padding-top: 8px !important;
    margin-bottom: 8px !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }
  .news-tabs-title {
    font-size: 16px !important;
    margin-right: 4px !important;
  }
}

/* ========== 马院要闻额外视觉效果 ========== */
.news-exhibition-carousel {
  position: relative;
}
.news-exhibition-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s ease;
}
.news-exhibition-carousel:hover::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
}

/* ========== 马院要闻动画效果 ========== */
@keyframes newsItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-list-item {
  animation: newsItemFadeIn 0.6s ease-out forwards;
}
.news-list-item:nth-child(1) { animation-delay: 0.1s; }
.news-list-item:nth-child(2) { animation-delay: 0.2s; }
.news-list-item:nth-child(3) { animation-delay: 0.3s; }
.news-list-item:nth-child(4) { animation-delay: 0.4s; }
.news-list-item:nth-child(5) { animation-delay: 0.5s; }
.news-list-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes tabSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.news-tabs-title {
  animation: tabSlideIn 0.5s ease-out forwards;
}
.news-tabs-title:nth-child(1) { animation-delay: 0.1s; }
.news-tabs-title:nth-child(2) { animation-delay: 0.2s; }
.news-tabs-title:nth-child(3) { animation-delay: 0.3s; }
.news-tabs-title:nth-child(4) { animation-delay: 0.4s; }

@keyframes paginationPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.news-carousel-pagination li.active {
  animation: paginationPulse 2s ease-in-out infinite;
}

/*********** 社会实践和教学展示共用背景模块 ***********/
.shared-background-module {
  position: relative;
  background: url('/public/image/home/index_bg02.jpg') no-repeat center center;
  background-size: cover;
  background-position: center top;
}

.shared-background-module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 527px;
  background: url('/public/image/home/index_bg06.png') no-repeat center center;
  background-size: cover;
  z-index: 1;
}

.shared-background-module > * {
  position: relative;
  z-index: 2;
}

/* ========== 教学展示模块 ========== */

/* 模块容器 */
.teaching-show-module {
  position: relative;
  overflow: hidden;
  padding-bottom: 51px;
}

/* 内容布局 */
.teaching-show-content {
  display: flex;
  flex-direction: row;
  margin-top: 48px;
  margin-bottom: 50px;
}

/* 左侧轮播区域 */
.teaching-show-left {
  flex: 0 0 50%;
  max-width: 50%;
  border-radius: 16px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 686px;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.teaching-show-left.show-animation {
  opacity: 1;
  transform: translateX(0);
}

/* 右侧列表区域 */
.teaching-show-right {
  flex: 1 1 48%;
  max-width: 48%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(30,58,138,0.10);
  min-height: 320px;
  /* max-height: 686px; */
  padding: 24px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 2%;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.teaching-show-right.show-animation {
  opacity: 1;
  transform: translateX(0);
}

/* ========== 教学展示轮播样式 ========== */

/* 轮播显示区域 */
.teaching-show-carousel-display-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 18px;
}

/* 主轮播容器 */
.teaching-show-carousel-main {
  width: 100%;
  height: 522px;
  border-radius: 10px;
  padding: 16px;
  background: #FFFFFF;
  margin-bottom: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 主轮播图片和视频 */
.teaching-show-carousel-main img,
.teaching-show-carousel-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* 缩略图容器 */
.teaching-show-carousel-thumbs {
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 4px;
  scrollbar-width: auto; /* Firefox 显示滚动 */
  -ms-overflow-style: auto; /* IE 10+ 显示滚动 */
  height: 150px;
  background: #A7A7A7;
  box-shadow: 0px 0px 10px 0px rgba(51,51,51,0.1);
  border-radius: 10px;
  width: 100%;
  padding: 0 16px;
}

/* 缩略图滚动条样式 */
.teaching-show-carousel-thumbs::-webkit-scrollbar {
  display: block;
  height: 8px;
  background: #e0e0e0;
}

.teaching-show-carousel-thumbs::-webkit-scrollbar-thumb {
  background: #b0b0b0;
  border-radius: 4px;
}

/* 缩略图基础样式 */
.teaching-show-carousel-thumb {
  flex: 0 0 auto;
  width: 178px;
  height: 107px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 3px solid;
  border-image: linear-gradient(0deg, #C2C2C2, #FFFFFF) 3 3;
  object-fit: cover;
  margin-right: 13px;
  transition: border-image 0.3s;
}

/* 激活状态的缩略图 */
.teaching-show-carousel-thumb.active {
  border-image: linear-gradient(0deg, #A30101, #FFFFFF) 3 3;
}

/* 最后一个缩略图 */
.teaching-show-carousel-thumb:last-child {
  margin-right: 0;
}

/* ========== 教学展示列表样式 ========== */

/* 列表容器 */
.teaching-show-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 列表标题栏 */
.teaching-show-list-titlebar {
  font-family: AlibabaPuHuiTi, sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: #333333;
  margin-bottom: 18px;
}

/* 列表项基础样式 */
.teaching-show-list-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  min-height: 90px;
  position: relative;
  height: auto;
  cursor: pointer;
}

/* 顶部列表项 */
.teaching-show-list-item.top {
  min-height: 110px;
  position: relative;
}

/* 列表项封面图片 */
.teaching-show-list-cover {
  width: 210px;
  height: auto;
  aspect-ratio: 210/127;
  background: #FFFFFF;
  border-radius: 20px;
  border: 3px solid;
  border-image: linear-gradient(0deg, #A30101, #FFFFFF) 3 3;
  border-top: none;
  object-fit: cover;
  margin-right: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  align-self: flex-end;
}

/* 排名标识 */
.teaching-show-list-rank {
  position: absolute;
  left: -10px;
  top: -18px;
  width: 89px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #ff4d4f;
  z-index: 2;
  margin: 0;
  padding: 0;
  background: none;
}

/* 列表信息区域 */
.teaching-show-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
/* 列表标题 */
.teaching-show-list-title {
  font-family: AlibabaPuHuiTi, sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #333333;
  line-height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 列表元信息 */
.teaching-show-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 15px;
  color: #888;
}

/* 元信息行 */
.teaching-show-list-meta .meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.teaching-show-list-meta .meta-row.icons {
  margin-bottom: 2px;
}

.teaching-show-list-meta .meta-row.texts {
  margin-top: 2px;
}

/* 元信息图标 */
.teaching-show-list-meta .icon-loc {
  margin-right: 4px;
}

.teaching-show-list-meta .icon-user {
  margin-right: 4px;
}
.teaching-show-list-meta .local {
  margin-top: 11px;
  margin-bottom: 4px;
}

.teaching-show-list-meta .local,
.teaching-show-list-meta .author{
  line-height: 30px;
  font-size: 20px;
}
/* 简单列表项样式 */
.teaching-show-list-item.simple {
  background: none;
  box-shadow: none;
  border: none;
  padding: 0 0 0 40px;
  min-height: unset;
  align-items: flex-end;
  position: relative;
}

.teaching-show-list-title.simple {
  font-size: 24px;
  color: #222;
}

.teaching-show-list-meta.simple {
  font-size: 20px;
  color: #888;
  gap: 18px;
  margin-left: 18px;
}

/* 简单列表项排名标识 */
.teaching-show-list-rank.simple {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #bfbfbf;
  background: none;
  z-index: 1;
}
/* 本地图标 */
.teaching-show-list-meta .icon_local {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url('/public/image/home/icon_local.png') no-repeat center center;
  background-size: contain;
  margin-right: 4px;
  vertical-align: middle;
}

/* 作者图标 */
.teaching-show-list-meta .icon_author {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url('/public/image/home/icon_author.png') no-repeat center center;
  background-size: contain;
  margin-right: 4px;
  vertical-align: middle;
}

/* 简单列表项标题宽度限制 */
.teaching-show-list-item.simple:nth-child(4) .teaching-show-list-title.simple,
.teaching-show-list-item.simple:nth-child(5) .teaching-show-list-title.simple {
  width: 60%;
  max-width: 60%;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 教学展示响应式适配 ========== */

/* 平板端适配 (≤992px) */
@media (max-width: 992px) {
  /* 内容布局调整 */
  .teaching-show-content {
    flex-direction: column !important;
    gap: 18px !important;
  }
  
  /* 左右区域调整 */
  .teaching-show-left,
  .teaching-show-right {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    min-height: 180px !important;
    height: auto !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  
  /* 右侧区域调整 */
  .teaching-show-right {
    padding: 20px 20px !important;
  }
  
  .teaching-show-right .teaching-show-list-titlebar {
    font-size: 18px !important;
    margin-bottom: 30px !important;
  }
  
  .teaching-show-right .teaching-show-list-item {
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }
  
  .teaching-show-right .teaching-show-list-meta {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }
  
  /* 列表标题调整 */
  .teaching-show-list-title {
    font-size: 18px !important;
  }
  
  .teaching-show-list-item {
    font-size: 17px !important;
  }
  
  .teaching-show-list-meta {
    font-size: 15px !important;
  }
  .teaching-show-list-meta .local,
  .teaching-show-list-meta .author {
    line-height: 20px !important;
    font-size: 15px !important;
  }
  
  /* 列表封面调整 */
  .teaching-show-list-cover {
    width: 40% !important;
    height: auto !important;
    border-radius: 8px !important;
  }
  
  /* 轮播主容器调整 */
  .teaching-show-carousel-main {
    height: 320px !important;
    margin-bottom: 8px !important;
  }
  
  /* 缩略图容器调整 */
  .teaching-show-carousel-thumbs {
    height: 120px !important;
    padding: 0 12px !important;
  }
  
  .teaching-show-carousel-thumb {
    width: 150px !important;
    aspect-ratio: 177 / 107 !important;
    height: calc(150px * 107 / 177) !important;
    margin-right: 10px !important;
  }
}

/* 手机端适配 (≤600px) */
@media (max-width: 600px) {
  /* 右侧区域调整 */
  .teaching-show-right {
    padding: 10px 4px !important;
  }
  
  .teaching-show-right .teaching-show-list-titlebar {
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }
  
  .teaching-show-right .teaching-show-list-item {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }
  
  .teaching-show-right .teaching-show-list-meta {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }
  
  /* 列表标题调整 */
  .teaching-show-list-title {
    font-size: 14px !important;
  }
  
  /* 列表封面调整 */
  .teaching-show-list-cover {
    width: 40% !important;
    height: auto !important;
    border-radius: 6px !important;
  }
  
  /* 轮播主容器调整 */
  .teaching-show-carousel-main {
    padding: 0 !important;
    height: 220px !important;
    margin-bottom: 4px !important;
  }
  
  /* 缩略图容器调整 */
  .teaching-show-carousel-thumbs {
    height: 90px !important;
    padding: 0 8px !important;
  }
  
  .teaching-show-carousel-thumb {
    width: 120px !important;
    aspect-ratio: 177 / 107 !important;
    height: calc(120px * 107 / 177) !important;
    margin-right: 8px !important;
  }
}
/* ========== 教学资源模块 ========== */

/* 教学资源模块主容器 */
.teaching-resource-module {
  position: relative;
  min-height: 80px;
  background: url('/public/image/home/index_bg04.jpg') no-repeat center bottom;
  background-size: cover;
  padding-top: 59px;
  padding-bottom: 67px;
}
.teaching-resource-module::after {
  content: none;
}
.teaching-resource-module > * {
  position: relative;
  z-index: 2;
}
.teaching-resource-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0 32px;
  margin-top: 51px;
}
.teaching-resource-card {
  width: calc((100% - 64px) / 3); /* 3个卡片，2个间距*/
  min-width: 100px;
  max-width: 497px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.teaching-resource-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.teaching-resource-card-cover {
  width: 100%;
  height: 279px;
  object-fit: cover;
  background-color: #eee;
  border: 2px solid;
  border-image: linear-gradient(0deg, #FFC49D, #FDDFB4) 2 2;
  transition: all 0.3s ease;
}

.teaching-resource-card-cover:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.teaching-resource-card-title {
  font-family: 'PingFangSCRegular', '微软雅黑', Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #fff;
  margin-top: 12px;
  text-align: center;
  margin-bottom: 40px;
}

.teaching-resource-card:hover .teaching-resource-card-title {
  color: #FFD700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ========== 教学资源响应式适配 ========== */

/* 平板端适配 */
@media (max-width: 992px) {
  .teaching-resource-card {
    width: calc((100% - 24px) / 2) !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
  }
  
  .teaching-resource-list {
    gap: 0 16px !important;
    justify-content: flex-start !important;
  }
  
  .teaching-resource-card-cover {
    height: 280px !important;
    object-fit: cover !important;
  }
  
  .teaching-resource-card-title {
    font-size: 16px !important;
  }
}

/* 移动端适配 */
@media (max-width: 600px) {
  .teaching-resource-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 12px !important;
  }
  
  .teaching-resource-card-cover {
    height: 200px !important;
    object-fit: cover !important;
  }
  
  .teaching-resource-card-title {
    font-size: 14px !important;
  }
}
/* 名师风采模块已分离到 /module/TeacherStyle/ */