﻿
        /* 全局配色 */
        :root {
            --main-blue: #2d85e0;
            --sub-orange: #ff7d00;
            --light-bg: #f5f9ff;
            --dark-text: #333;
            --gray-text: #666;
        }

 

        /* 头部 */
        .header {
            background: var(--main-blue);
            color: white;
            padding: 18px 20px;
            text-align: center;
        }

        .header h1 {
            font-size: 22px;
            margin-bottom: 6px;
 color: white;
        }

        .header p {
            font-size: 14px;
            opacity: 0.95;
 color: white;
        }

        
        /* 通用容器 */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 25px 15px;
        }

        .section-title {
            color: var(--main-blue);
            font-size: 20px;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--sub-orange);
        }

        /* 卡片布局 */
        .card-box {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 15px;
        }

        .card {
            background: var(--light-bg);
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid var(--sub-orange);
        }

        .card h3 {
            color: var(--main-blue);
            margin-bottom: 8px;
            font-size: 16px;
        }

        /* 表格样式 */
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
            font-size: 14px;
        }

        table th, table td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: center;
        }

        table th {
            background: var(--main-blue);
            color: white;
        }

        table tr:nth-child(even) {
            background: var(--light-bg);
        }

        /* FAQ 折叠 */
        details {
            background: var(--light-bg);
            margin: 10px 0;
            border-radius: 6px;
            padding: 12px;
            cursor: pointer;
        }

        summary {
            font-weight: bold;
            color: var(--main-blue);
            list-style: none;
            position: relative;
        }

        summary::after {
            content: "+";
            position: absolute;
            right: 0;
        }

        details[open] summary::after {
            content: "-";
        }

        .faq-content {
            margin-top: 10px;
            color: var(--gray-text);
            line-height: 1.7;
        }
 

        /* 响应式优化 */
        @media (max-width: 768px) {
          
            .section-title {
                font-size: 18px;
            }
            table {
                font-size: 12px;
            }
        }


        /*课程优选*/	
.moreCourse{display: -webkit-flex;display: flex;width:100%;gap:10px;justify-content:space-around; align-items: center; flex-wrap:wrap;}  
.moreCourse li:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

.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: auto;
	border-radius:10px 10px 0 0;
	}
 
.tags,.course-teachers{display: -webkit-flex;display: flex;justify-content:space-around; align-items: center; flex-wrap:wrap;}
.course-teachers>p{ width:100%; margin:10px 0; position:relative;
                 &::after{content: "";
    position: absolute;    
      width: 180px;
      height:2px;
      right:10px;
      bottom:-6px;
      top:50%;
      background-color:#ECFCCB;  
   }
                 }
.tags>span{ color:#2ABEEE;}
.tags>span:nth-child(2){ color:#008890;}
.tags>span:nth-child(3){ color:#999936;}
 

.newCourse{ margin-top:30px;}
time{ display:inline-block;}

 
 /*老师*/

 
.teachers-list{justify-content: space-around;list-style: none; display: flex; flex-wrap:wrap;  width: 100%; padding: 0; margin: 0 auto;}
.teachers-list li{ width: 24%; max-width:260px; margin: 5px auto; background-color: white; padding: 8px; box-sizing: border-box; border-radius: 8px; 
   box-shadow: 0 0 3px #8a8ed6;
}
 
.teachers-list li>a>figure{width:100%;padding:2px;  
  display: flex; flex-wrap:wrap; 
	justify-content: center;
	/* 水平居中 */
	align-items: center;
  height:auto;
  
}
.teachers-list li>a>figure figcaption{width: 100%; text-align:center;}
 .teachers-list li>a>figure figcaption h3{margin: 15px auto;}
.teachers-list li>a>figure img {

	 height: 200px;
	/* 确保图像不会超出容器 */
	max-width: 100%;
	width: auto;
	/* 保持图像比例 */
 
 border-radius:50%;
}
  
 
 
 
 .teacher-feature{ display: flex; flex-wrap:wrap;  
	justify-content: center;
	/* 水平居中 */
	align-items: center;
  height:100px;}
 
 
 
   .teacher-tags{justify-content: space-around;list-style: none; display: flex; flex-wrap:wrap; min-height:50px; gap:10px 40px;}
 .teacher-tags span{ text-align:center;text-indent:0; }
 
 
  .teacher-feature span{ text-align:left; width:100%; text-indent:0; font-size:0.9rem; color:#8D8D95;}
 
 


/* 评论轮播 */
    #commentCarousel { height: 260px;  }
    .carousel-list,#commentCarousel .carousel-item { box-sizing: border-box;}
    #commentCarousel .carousel-item { padding: 10px; 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-item a{ font-size:1.6rem;}
.comment-item a span{ margin-right:50px;}

/* 评论图片预览弹窗（自定义类名） */
  /* 图片预览弹窗样式 */
    .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: 60px;
      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));*/
        }


/*星星结束*/