/* 师资团队页面专用样式 */

/* Banner轮播 */
.custom-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 254px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 指示点 */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 20px;
    height: 5px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 主内容区域 */
.main-content {
    padding-bottom: 50px;
}

/* 左侧Tab菜单 */
.tab-menu {
    /* border-right: 1px solid #e0e0e0; */
    padding-right: 15px;
}

.tab-item {
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
}

.tab-item:last-child {
    border-bottom: none;
}

.tab-item:hover {
    color: #1e6db5;
}

.tab-item.active {
    color: #1e6db5;
    border-right: 1px solid #1e6db5;
    font-weight: bold;
}

/* 右侧内容区域 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 教师列表 */
.teacher-list {
    padding-left: 20px;
}

/* 教师卡片 */
.teacher-card {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.teacher-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 教师头像 */
.teacher-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 200px;
    overflow: hidden;
    /* border-radius: 4px; */
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 教师信息 */
.teacher-info {
    flex: 1;
}

.teacher-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.teacher-position {
    /* font-size: 14px; */
    /* color: #666; */
    font-weight: bold;
    margin-bottom: 5px;
}

.teacher-edu {
    font-size: 13px;
    /* color: #999; */
    margin-bottom: 12px;
}

.teacher-desc {
    font-size: 13px;
    /* color: #666; */
    line-height: 1.8;
    text-align: justify;
}

/* 教学组切换 */
.subject-group-selector {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    /* border-bottom: 1px solid #f0f0f0; */
    flex-wrap: wrap;
}

.subject-group-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.subject-group-icon {
    width: 36px;
    /* height: 32px; */
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subject-group-item span {
    font-size: 15px;
    color: #666;
    transition: all 0.3s ease;
}

.subject-group-item:hover span {
    color: #f5a623;
}

.subject-group-item.active span {
    color: #f5a623;
}

.subject-group-item.active .subject-group-icon {
    opacity: 1;
}

.subject-group-item.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #f5a623;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .tab-menu {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 20px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 40px;
    }
    
    .tab-item {
        border-bottom: none;
        border-right: none;
        padding: 10px 0;
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .tab-item.active {
        border-right: none;
        border-bottom: 2px solid #1e6db5;
    }
    
    .teacher-list {
        padding-left: 0;
    }
    
    .subject-group-selector {
        gap: 15px;
        justify-content: flex-start;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .subject-group-item {
         
    }
    
    .subject-group-item span {
        font-size: 14px;
    }
    
    .subject-group-icon {
        width: 28px;
        
        margin-bottom: 4px;
    }
    
    .subject-group-item.active::after {
        bottom: -15px;
        width:50px;
    }
}

@media (max-width: 767px) {
    .tab-menu {
        gap: 30px;
    }
    
    .tab-item {
        font-size: 15px;
    }
    
    .subject-group-selector {
        gap: 12px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .subject-group-item span {
        font-size: 13px;
    }
    
    .subject-group-icon {
        width: 24px;
         
    }
    
    .teacher-card {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .teacher-avatar {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        /* margin: 0 auto; */
    }
    
    .teacher-info {
        width: 100%;
    }
    
    .teacher-name {
        font-size: 16px;
         
        margin-bottom: 5px;
    }
    
    .teacher-position {
        
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .teacher-edu {
        
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .teacher-desc {
        text-align: left;
        font-size: 13px;
        line-height: 1.8;
    }
}
