/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.js {
    width: 100%;
    min-height: 800px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

/* 筛选区域样式 */
.teacher_sel {
    border-bottom: 1px #dddddd dashed;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.teacher_sel dl {
    font-size: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    margin-top: 15px;
}

.teacher_sel dl dt {
    float: left;
    width: 100px;
    text-align: center;
    font-weight: bold;
    background: #5a4398;
    color: #FFFFFF;
    padding: 5px 15px;
    border-radius: 5px;
    margin-right: 10px;
}

.teacher_sel dl dd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-left: 0;
}

.teacher_sel dl dd .filter-option {
    flex: 0 0 auto;
}

.teacher_sel dl dd .filter-items {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.teacher_sel dl dd .filter-items a {
    flex: 0 0 auto;
}

.teacher_sel dl dd a {
    padding: 5px 15px;
    color: #333333;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    white-space: nowrap;
}

.teacher_sel dl dd a.active {
    background: #5a4398c7;
    color: #FFFFFF;
    border-color: #5a4398c7;
}

/* 教师列表样式 */
.teacher_list {
    width: 90%;
    max-width: 1400px;
    margin: 20px auto;
}

.jsul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 0;
    list-style: none;
}

.jsul li {
    background-color: #6d5fa2d7;
    width: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.jsk {
    display: flex;
    align-items: center;
    background-color: #6d5fa2d7;
    height: 150px;
    padding: 10px;
}

.jsk img {
    display: block;
    width: 90px;
    height: auto;
    max-width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.jsxm {
    margin-top: 10px;
    margin-left: 10px;
    color: #fff;
}

.jsxm p:nth-child(1) {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.jsxm p:nth-child(2) {
    padding-top: 10px;
}

/* 去掉链接下划线 */
.teacher_list a {
    text-decoration: none;
    color: #fff;
}

/* 返回顶部按钮样式 */
.back-to-top {
    display: inline-flex;
    position: fixed;
    bottom: 256px;
    right: 20px;
    z-index: 999;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    background: none;
}

.back-to-top img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.back-to-top:hover img {
    transform: scale(1.2);
}

/* 响应式设计 */
@media only screen and (max-width: 600px) {
    .teacher_sel dl {
        display: flex;
        flex-direction: column;
    }

    .teacher_sel dl dt {
        width: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .teacher_sel dl dd {
        width: 100%;
    }

    .jsul {
        justify-content: flex-start;
    }

    .jsk {
        height: auto;
    }

    .jsxm p {
        margin: 0;
    }

    .jsk img {
        object-fit: cover;
    }

    .jsul li {
        width: 100%;
        margin-bottom: 20px;
    }

    .teacher_sel dl dd .filter-option,
    .teacher_sel dl dd .filter-items {
        flex: 100% auto;
    }
}