/* ========= 页面容器 ========= */
.sz-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #efefef url(../images/nrback-list1.png) no-repeat bottom center;
}

/* ========= 顶部当前位置条 ========= */
.sz-dqwz {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    height: 50px;
    background-color: #f5f5f5;
}
.sz-dqwz-111 {
    width: 100%;
    max-width: 1350px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}
.sz-sz-h1 { padding-left: 1%; border-left: 4px solid #0641bf; }
.sz-sz-h1 h1 { font-size: 1.3rem; font-weight: 600; }
.sz-sz-wzright { padding-right: 1%; font-size: 0.9rem; display: flex; align-items: center; }
.sz-sz-wzright img { margin-right: 3px; }

/* ========= 主体 ========= */
.js {
    width: 100%;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

/* ========= 筛选区域 ========= */
.teacher_sel {
    border-bottom: 1px #dddddd dashed;
    width: 90%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px 0;
}
.teacher_sel dl { font-size: 14px; margin: 15px 0 20px; overflow: hidden; }
.teacher_sel dl dt {
    float: left;
    width: 125px;
    text-align: center;
    font-weight: bold;
    background: #0641bf;
    color: #fff;
    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: #2f2f2f;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    white-space: nowrap;
    font-weight: 500;
    transition: all .2s ease;
}
.teacher_sel dl dd a:hover {
    border-color: #358cfb;
    color: #358cfb;
}
.teacher_sel dl dd a.active {
    background: #358cfb;
    color: #fff;
    border-color: #358cfb;
}

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

/* 三列网格；窄屏降级为 2/1 列 */
.jsul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}
@media (max-width: 1200px){
    .jsul { grid-template-columns: repeat(2, 1fr); }
    .sz-dqwz-111{
        width: 90%;
    }
}
@media (max-width: 860px){
    .jsul { grid-template-columns: 1fr; }
}

.jsul li {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform .3s ease, box-shadow .3s ease;
    border-radius: 8px;
}
.jsul li:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

/* 卡片主体 */
.jsk {
    display: flex;
    align-items: center;
    height: 180px;
    padding: 20px;
}

/* 头像：圆形 + 上对齐裁剪 */
.jsk img {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    flex: 0 0 auto;
    transition: transform .25s ease;
}
.jsul li:hover .jsk img{ transform: scale(1.03); }

/* 文本 */
.jsxm { margin-left: 30px; color: #434343; display: flex; flex-direction: column;justify-content: flex-start; }
.jsxm p:nth-child(1) { font-size: 1.3rem; font-weight: bold;  color:#222; margin: 0;}
.jsxm p:nth-child(2) { color:#666; margin: 0;font-size: 1rem; }
.jsxm p:nth-child(3) {
    color: #555;
    margin: 0;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 链接样式：颜色继承、无下划线 */
.teacher_list a {
    text-decoration: none;
    color: inherit; /* 修复原来强制白色的问题 */
    display: block;
}

/* ========= 返回顶部 ========= */
.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%; }
    .jsk { height: auto; }
    .jsxm p { margin: 0; }
    .jsul li { width: 100%; }
    .teacher_sel dl dd .filter-option, .teacher_sel dl dd .filter-items { flex: 100% auto; }
}

/* ——下方为详情页/Tab 样式，保持不变，仅清理小处—— */
.teacher-content { width: 100%; background-color: #8e83b7; display: flex; justify-content: center; padding: 20px 0; }
.teacher-content-img { padding-left: 4%; margin-top: 15px; text-align: center; margin-bottom: 20px; }
.teacher-content-img img { width: 90px; height: 130px; border-radius: 5px; }
.teacher-content-name { margin-top: 10px; line-height: 150%; }
.teacher-content-name h1 { font-size: 18px; color: #fff; margin: 0; }
.teacher-content-name p { font-size: 14px; color: #fff; margin: 5px 0; }
.teacher-content-left, .teacher-content-right { width: 38%; padding-left: 20px; padding-top: 5px; line-height: 40px; margin-bottom: 25px; }
.teacher-content-left-1 { display: flex; flex-direction: row; align-items: center; margin-top: 15px; }
.teacher-content-left-1 p:nth-child(1) { white-space: nowrap; font-weight: 800; color: #fff; margin: 0; }
.teacher-content-left-1 p:nth-child(2) { padding-left: 10px; color: #fff; margin: 0; }
.teacher-content-right a { color: #fff; text-decoration: none; }
.teacher-content-right a:hover { text-decoration: underline; }

.teacther-introduction { width: 100%; display: flex; justify-content: center; flex-direction: column; align-items: center; margin-top: 20px; }
.teacther-introduction-zise { width: 85%; background-color: #8e83b7; margin-top: 40px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,.1); }
.teacher-tabs { display: flex; justify-content: space-around; align-items: center; height: 50px; list-style: none; padding: 0; margin: 0; }
.teacher-tabs li { cursor: pointer; font-weight: 800; height: 100%; line-height: 50px; padding: 0 20px; transition: all .3s ease; color: #fff; position: relative; border-radius: 8px; }
.teacher-tabs li:hover { background-color: rgba(255,255,255,0.2); }
.teacher-tabs li.active { background-color: #cecae0; color: #8e83b7; font-weight: 800; }
.teacher-tabs li.active::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 80%; height: 3px; background-color: #8e83b7; transform: translateX(-50%); border-radius: 2px; }
.tab-content { display: none; width: 83%; margin-top: 30px; margin-bottom: 40px; }
.tab-content.active { display: block; }

@media only screen and (max-width: 730px) {
    .teacher-content { flex-direction: column; align-items: center; }
    .teacher-content-left, .teacher-content-right { width: 90%; }
    .teacther-introduction-zise { width: 100%; }
}
@media only screen and (max-width: 600px) {
    .teacther-introduction-zise { height: auto; margin-top: 0; }
    .teacher-tabs { flex-direction: column; height: auto; margin: 15px 0; }
    .teacher-tabs li { width: 100%; text-align: center; margin: 5px 0; }
    .teacher-tabs li.active::after { display: none; }
    .tab-content.active { width: 95%; }
}