﻿ /*公有部分*/
.h2{ width:100%; border-bottom:solid 2px lime; position:relative; font-size:1rem; height:20px; }


.h2>span,.h2>a{ display:inline-block; position:relative;}
.h2>span:after,.h2>a:after{ width:100%; height:2px; background-color:red; position:absolute;bottom:-2px; left:0px; position:absolute; content:"";}



main,.breadcrumbsWrap{width:1200px; margin:0 auto; 
            
        }
 
 .special-subject,.explain,.course,#commentCarousel,.students-comments>section:first-child,.students-comments>section:last-child,.tutor-FAQ{
  	border-radius:10px;  padding:12px; 
 	box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.1);
    }
 
 
 
.breadcrumbs{ font-size:14px; color:#777777;display: -webkit-flex;display: flex; margin:0; padding:10px 0 0 0;}
.breadcrumbs>li{ position:relative; margin-right:15px;}
.breadcrumbs>li:not(:last-child):after{ position:absolute; content:"/"; padding:0 5px; top:1px;}
 
/*大图展示*/
 


#headerCarousel figure{position:relative; }


#headerCarousel figure figcaption{ position:absolute; 
                                width:100%; height:40px; line-height:40px; padding-bottom:10px; text-indent:20px;
	                         z-index:100;  display:block;
	                         text-align:left; left:0; bottom:0; font-size:16px;  letter-spacing:1px; color:White;    
                                background: -webkit-linear-gradient(bottom,rgba(0,0,0,0),rgba(0,0,0,0.7)); /* Safari 5.1 - 6.0 */
    background: -o-linear-gradient(up, rgba(0,0,0,0),rgba(0,0,0,0.7)); /* Opera 11.1 - 12.0 */
    background: -moz-linear-gradient(up,rgba(0,0,0,0),rgba(0,0,0,0.7)); /* Firefox 3.6 - 15 */
    background: linear-gradient( rgba(0,0,0,0),rgba(0,0,0,0.7)); /* 标准的语法（必须放在最后）   背景色透明且渐变*/ 
  }

    /* 默认分页器样式 */
  #headerCarousel   .carousel-pagination {
     left: calc( 100% - 50px);  
    
    }


 
    #headerCarousel {  height: 280px; width:1200px; }
        #headerCarousel .carousel-item{ height:100%; width:100%; display: flex; justify-content: center; align-items: center;}
    #headerCarousel img {	max-height: 100%;
	/* 确保图像不会超出容器 */
	max-width: 100%;
	width: auto;
	/* 保持图像比例 */
	height: auto;
	/* 保持图像比例 */ }
	
	
	.explain{display: -webkit-flex;display: flex;align-items: flex-start;justify-content:space-between;  flex-wrap:wrap; width:100%; height:240px; gap:1rem; margin-top:1rem;box-sizing: border-box;}

	.explain-img{flex:4; height:100%;display: flex; justify-content: center; align-items: center;}
	.explain-img img{
	               	max-height: 100%;
	/* 确保图像不会超出容器 */
	max-width: 100%;
	width: auto;
	/* 保持图像比例 */
	height: auto;
	}
 .explain-text{flex:6; height:100%;border:solid 1px #E8F1FF; padding:6px; box-sizing: border-box; border-radius:6px;}
 .explain-text>p{ margin:6px auto; letter-spacing:1px; text-indent:2em; line-height:24px;}
	 .explain-text>p>a{ color:Blue; margin:0 4px;}
	
	
	
 /*课程优选与新发布课程*/	
 .course{ width:100%; margin-top:1rem;box-sizing: border-box;}
.course-h2{ position: relative;  
             letter-spacing: 2px;  font-size:24px;
            margin:0 auto;padding: 5px; min-width:50px; max-width: 80%; width:max-content;
            
            
            padding-bottom: 4px;
border-bottom:solid 2px rgb(98, 152, 234);
&::before{content: "";
    position: absolute;    
      width: 100%;
      left:10px;
      border-bottom: solid 2px rgb(102, 224, 102);   
      bottom:-10px;
   }
   &::after{content: "";
    position: absolute;    
      width: 100%;
      right:10px;
      border-bottom: solid 2px rgb(180, 178, 34);   
      bottom:-6px;
   }
    }
     .course>p{ margin:1rem auto; text-align:center;}
   .moreCourse{display: -webkit-flex;display: flex;width:100%;gap:10px;}  
 .moreCourse li{
      flex: 1; 
     box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);border:solid 1px #EDEDED;border-radius:10px 10px 0 0;
    }   
     .moreCourse li div, .moreCourse li figcaption{
     box-sizing: border-box; padding:5px;
    }   
    
    
 .moreCourse figure img{	 
	 width: 100%;
 
	height: 280px;
 
	border-radius:10px 10px 0 0;
	}
.moreCourse figure figcaption{ color:#333333; font-weight:bold;}	
	
.moreCourse figure img{height: 140px;}
    

    .teachers{display: -webkit-flex;display: flex;justify-content:space-around; align-items: center; flex-wrap:wrap;}
    .teachers>p{ width:100%; margin:10px 0; position:relative;
                 
                 &::after{content: "";
    position: absolute;    
      width: 140px;
      height:2px;
      right:10px;
      bottom:-6px;
      top:50%;
      background-color:#ECFCCB;
   }
 }
 .feature p{ margin:5px 0; font-size:0.9rem;}
 .feature span{ color:#FF00FF;}
  .MoreCourseTeacher{ margin:20px 0 10px 0; font-size:16px; letter-spacing:2px;}   
    .MoreCourseTeacher>a{ margin-left:10px; color:Blue;font-size:16px;}    	
	
	
	


/* 评论轮播 */
    #commentCarousel {height: 280px;margin:0 auto;}
    .carousel-list,#commentCarousel .carousel-item { box-sizing: border-box;}
    #commentCarousel .carousel-item { text-align: left;}
    
 #commentCarousel .carousel-list{max-width: 80%;  margin:0 auto;}
    
    .comment-header{display: flex;align-items: center; gap:10px;}
        .comment-header>div:nth-child(1){ background-color:#DCDCDC; border-radius:50%;border:solid 1px #CDCDCD; height:60px; width:45px;display: flex; justify-content: center; align-items: center;}
        .comment-header>div:nth-child(1) img{ 	max-height: 100%;
	/* 确保图像不会超出容器 */
	max-width: 100%;
	width: auto;
	/* 保持图像比例 */
	height: auto;
	/* 保持图像比例 */ border-radius:50%;}
    
    .comment-content { color: #666; font-size: 14px; line-height: 1.4;}
   .comment-content>p{ margin:5px auto;}
    /* 评论图片样式（关键：标记直接加在img上，容器仅做布局） */
    .comment-img-group { display: flex; gap: 8px; flex-wrap: wrap; }
    /* 缩略图img直接加标记，容器仅负责样式 */
    .comment-img { 
      width: 60px; height: 60px; border-radius: 4px; 
      cursor: pointer; object-fit: cover;
    }

    .comment-img:hover {
      transform: scale(1.05);
    }



    /* 图片预览弹窗样式 */
    .preview-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.95);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      padding: 20px;
    }
    .preview-modal.show {
      display: flex;
    }
    .preview-close {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: #fff;
      color: #333;
      font-size: 20px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .preview-close:hover {
      background: #eee;
    }
    #previewCarousel {
      width: 90%;
      max-width: 1200px;
      height: 80vh;
    }
    .preview-carousel-item {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.3s ease;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .preview-carousel-item.preview-active {
      opacity: 1;
      z-index: 1;
    }
    #previewCarousel img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }
    #previewCarousel .carousel-pagination {
      bottom: 20px;
    }
    #previewCarousel .carousel-dot.preview-active {
      background: #fff;
      transform: scale(1.2);
    }

    /* 响应式适配 */
    @media (max-width: 768px) {

      .comment-single-carousel {
        height: 250px;
      }
      .comment-img {
        width: 60px;
        height: 60px;
      }
      #previewCarousel {
        width: 95%;
        height: 70vh;
      }
      #previewCarousel .carousel-pagination {
        bottom: 15px;
      }
      .carousel-nav {
        display: none !important;
      }
    }

    @media (min-width: 769px) {
      .show-nav-on-pc .carousel-nav {
        display: block !important;
      }
    }
    

/*星星开始*/

 .rating-dual 
 {
 	 margin-top:10px;
            position: relative;
            left:100px;
            width: 100px;
            height: 20px;
     line-height: 20px;
        }
        
        .rating-dual::before,.rating-dual::after {
            content: '★★★★★';
            position: absolute;
            left:-105%;
            top: 0;
            width: 100%;
            height: 100%;
            color: #ddd;
            font-size: 20px;
            line-height: 20px;
            letter-spacing: 0;
             font-family:Monospace;
        }
        
        .rating-dual::after {
            
            color: #ffc107;
            overflow: hidden;
           width: calc(100px * var(--rating-percent, 0) / 5);/* 5是总分，如果 --rating-percent 的值是百分比，直接用：width: calc(100px * var(--rating-percent, 0));*/
        }


/*星星结束*/

  /*学员*/  
    
    .students{display: -webkit-flex;display: flex;align-items: center; justify-content:space-between;flex-wrap:wrap; }

.students>li{width:100%; padding-left:5px;  height:42px; line-height:42px;   font-size:14px; position:relative;}
.students>li:not(:last-child){border-bottom:dashed 1px #DCDCDC;}
.students>li:hover{ background-color:#D3FFB3;}

.students>li:before{ top:15px; left:5px; position:absolute; border-left:solid 5px #20C1FF; content:""; border-top:solid 5px transparent;border-bottom:solid 5px transparent; z-index:99;}
 .students>li:hover:before{border-left:solid 5px red; }

 .students>li>a>span{ margin-left:10px;display:inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
 

 .students>li a:hover:before{ border-left:solid 5px red;}

 .students>li>a>span{overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 
  .students>li>a>span:nth-child(1){ width:60px;}

 .students>li>a>span:nth-child(2){ width:70px;}
 
 .students>li>a>span:nth-child(3){ width:60px; text-align:center;}
 
.students>li>a>span:nth-child(4){ width:170px;}


	.students-comments{display: -webkit-flex;display: flex;align-items: flex-start;justify-content:space-between;  flex-wrap:wrap; width:100%; min-height:280px; gap:1rem; margin:1rem auto; padding:0;}

.students-comments>section:first-child{flex:4.5; height:300px;}
.students-comments>section:last-child{flex:5.5;}



