/* 教师内页独立样式，不加载首页整屏和轮播规则。 */
.teacher-page{margin:0;background:#f6f8fb;color:#243852;font:16px/1.7 "Microsoft YaHei",sans-serif}.teacher-page *{box-sizing:border-box}.teacher-page a{color:inherit;text-decoration:none}.teacher-main{max-width:1440px;margin:0 auto;padding:calc(var(--home-nav-height,100px) + 30px) 5% 64px;min-height:80vh}.teacher-breadcrumb{font-size:13px;color:#73839b;margin-bottom:24px}.teacher-breadcrumb a:hover{color:#345baa}.teacher-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;align-items:start}.teacher-sidebar{background:#fff;border:1px solid #e4eaf3;border-radius:8px;overflow:hidden}.teacher-sidebar h2{margin:0;padding:22px;background:#345baa;color:#fff;font-size:23px}.teacher-sidebar nav{display:flex;flex-direction:column;padding:12px}.teacher-sidebar a{display:block;padding:12px 16px;border-radius:5px}.teacher-sidebar a:hover,.teacher-sidebar a[aria-current]{background:#eaf0fb;color:#2858a4}.teacher-sidebar .teacher-subcategory{padding-left:32px;font-size:14px}.teacher-content{min-width:0;background:#fff;padding:32px;border:1px solid #e4eaf3;border-radius:8px;box-shadow:0 8px 25px #20365c06}.teacher-content>h1{margin:0 0 28px;padding-bottom:20px;border-bottom:1px solid #e5eaf2;font-size:28px}.teacher-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.teacher-directory-card{display:flex;gap:20px;padding:20px;background:#f8fafd;border:1px solid #e5eaf3;border-radius:6px;min-width:0;transition:box-shadow .2s,transform .2s}.teacher-directory-card:hover{box-shadow:0 8px 22px #20365c16;transform:translateY(-3px)}.teacher-directory-card img{width:100px;height:140px;object-fit:cover;object-position:top;background:#eaf0f8;flex:none}.teacher-directory-card>div{min-width:0}.teacher-directory-card h2{font-size:20px;margin:0 0 6px}.teacher-position{color:#617b9b;margin:0;font-size:15px;overflow-wrap:anywhere}.teacher-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;color:#7a8799;margin:12px 0}.teacher-open{display:block;margin-top:14px;color:#345baa;font-size:13px}.teacher-pagination{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center;margin-top:32px;font-size:13px}.teacher-pagination a{padding:6px 12px;background:#eaf0fb;border-radius:4px;color:#345baa}.teacher-profile-header{display:flex;align-items:center;gap:32px;padding-bottom:28px;border-bottom:1px solid #e4eaf3;margin-bottom:30px}.teacher-profile-header>img{width:150px;height:200px;object-fit:cover;object-position:top;background:#eaf0f8}.teacher-profile-header h1{font-size:32px;margin:8px 0 10px}.teacher-profile-label{font-size:13px;color:#7a8ba3;margin:0}.teacher-body{line-height:1.9;color:#344054;overflow-wrap:anywhere;display:flow-root}.teacher-body img,.teacher-body video{max-width:100%;height:auto}.teacher-body table{max-width:100%;display:block;overflow-x:auto}.teacher-attachments{margin-top:30px;padding-top:20px;border-top:1px solid #e4eaf3}.teacher-attachments h2{font-size:18px}.teacher-attachments a{color:#345baa}.teacher-back{display:inline-block;margin-top:32px;color:#345baa!important}.teacher-page a:focus-visible{outline:2px solid #345baa;outline-offset:3px}
@media(max-width:1100px){.teacher-directory{grid-template-columns:1fr}.teacher-layout{grid-template-columns:190px minmax(0,1fr);gap:20px}}
@media(max-width:760px){.teacher-main{padding-left:5%;padding-right:5%}.teacher-layout{grid-template-columns:1fr}.teacher-sidebar nav{flex-direction:row;flex-wrap:wrap;gap:4px}.teacher-sidebar h2{font-size:20px;padding:16px}.teacher-sidebar a{padding:8px 12px;font-size:14px}.teacher-content{padding:20px}.teacher-directory-card{padding:14px;gap:16px}.teacher-profile-header{gap:20px}.teacher-profile-header>img{width:110px;height:150px}.teacher-profile-header h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){.teacher-directory-card{transition:none}.teacher-directory-card:hover{transform:none}}

.teacher-pagination a[aria-current="page"]{background:#345baa;color:#fff}
.teacher-directory-card-static:hover{transform:none;box-shadow:none}
/* 栏目封面与右侧面包屑。 */
.teacher-cover{width:100%;height:clamp(200px,23vw,360px);margin-top:var(--home-nav-height,100px);overflow:hidden;background:#e6edf6}
.teacher-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.teacher-main{padding-top:36px}
.teacher-content-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-bottom:18px;margin-bottom:28px;border-bottom:1px solid #e2e8f1}
.teacher-content-heading>h2{flex:none;margin:0;font-size:26px;font-weight:600;position:relative}
.teacher-content-heading>h2::after{content:"";position:absolute;left:0;bottom:-19px;width:48px;height:3px;background:#345baa}
.teacher-content-heading .teacher-breadcrumb{margin:0;min-width:0;text-align:right;font-size:13px;line-height:1.8}
.teacher-page a,.teacher-page a:visited{color:inherit;text-decoration:none}
.teacher-page .teacher-position{color:#617b9b}
.teacher-page .teacher-open,.teacher-page .teacher-back{color:#345baa}
@media(max-width:760px){.teacher-cover{height:180px}.teacher-main{padding-top:24px}.teacher-content-heading{flex-wrap:wrap;gap:10px}.teacher-content-heading .teacher-breadcrumb{width:100%;text-align:left}.teacher-content-heading>h2::after{display:none}}
/* 教师名片：统一照片尺度，弱化边框，建立信息层次。 */
.teacher-directory{gap:24px}
.teacher-directory .teacher-directory-card{
 display:grid;grid-template-columns:120px minmax(0,1fr);align-items:stretch;gap:24px;
 min-height:208px;padding:22px;margin:0;background:#fff;border:1px solid #e7ecf3;
 border-radius:10px;box-shadow:0 4px 18px rgba(30,58,100,.045);
 color:#243852!important;text-decoration:none!important;
 transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.teacher-directory .teacher-directory-card:visited{color:#243852!important}
.teacher-directory .teacher-directory-card img{width:120px;height:164px;object-fit:cover;object-position:center top;border-radius:5px;background:#edf2f8}
.teacher-directory .teacher-directory-card>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:2px 0}
.teacher-directory .teacher-directory-card h2{margin:0 0 8px;font-size:23px;line-height:1.4;letter-spacing:1px;font-weight:600;color:#233650;text-decoration:none}
.teacher-directory .teacher-directory-card .teacher-position{display:inline-block;padding:3px 10px;border-radius:4px;background:#eef3fb;color:#426491;font-size:13px;line-height:1.5;margin:0}
.teacher-directory .teacher-directory-card .teacher-summary{font-size:14px;line-height:1.8;color:#7a8799;margin:12px 0;max-height:3.6em;text-decoration:none}
.teacher-directory .teacher-directory-card .teacher-open{margin-top:auto;padding-top:10px;font-size:13px;line-height:1.5;color:#345baa;text-decoration:none}
.teacher-directory .teacher-directory-card:hover{transform:translateY(-3px);border-color:#c9d8ed;box-shadow:0 10px 28px rgba(30,58,100,.11)}
.teacher-directory .teacher-directory-card-static:hover{transform:none;box-shadow:0 4px 18px rgba(30,58,100,.045)}
.teacher-sidebar a,.teacher-breadcrumb a,.teacher-directory-card,.teacher-directory-card *{text-decoration:none!important}
.teacher-sidebar a,.teacher-sidebar a:visited{color:#425671}
.teacher-sidebar a[aria-current],.teacher-sidebar a:hover{color:#2858a4}
.teacher-breadcrumb a,.teacher-breadcrumb a:visited{color:#73839b}
@media(max-width:1300px){.teacher-directory .teacher-directory-card{grid-template-columns:100px minmax(0,1fr);gap:18px;padding:18px;min-height:184px}.teacher-directory .teacher-directory-card img{width:100px;height:148px}.teacher-directory .teacher-directory-card h2{font-size:21px}}
@media(max-width:600px){.teacher-directory{gap:16px}.teacher-directory .teacher-directory-card{grid-template-columns:88px minmax(0,1fr);gap:16px;padding:16px;min-height:164px}.teacher-directory .teacher-directory-card img{width:88px;height:128px}.teacher-directory .teacher-directory-card h2{font-size:19px}.teacher-directory .teacher-directory-card .teacher-summary{font-size:12px;margin:8px 0}}
@media(prefers-reduced-motion:reduce){.teacher-directory .teacher-directory-card{transition:none}.teacher-directory .teacher-directory-card:hover{transform:none}}
/* 分类侧栏独立于 body 类名，兼容 CMS 预览对页面外层的处理。 */
.teacher-sidebar{background:#fff;border:1px solid #e3e9f2;border-radius:6px;box-shadow:0 6px 22px #20365c08;overflow:hidden}
.teacher-sidebar>h2{margin:0;padding:26px 24px;background:linear-gradient(120deg,#345baa,#294c92);color:#fff;font-family:"Microsoft YaHei",sans-serif;font-size:24px;font-weight:600;line-height:1.4;letter-spacing:2px}
.teacher-sidebar>nav{display:flex;flex-direction:column;padding:10px 16px}
.teacher-sidebar>nav>a,
.teacher-sidebar>nav>a:link,
.teacher-sidebar>nav>a:visited{
 position:relative;display:flex;align-items:center;justify-content:space-between;
 gap:12px;min-height:56px;margin:0;padding:14px 12px;
 border:0;border-bottom:1px solid #edf0f5;border-radius:0;
 color:#43536b!important;text-decoration:none!important;
 font-family:"Microsoft YaHei",sans-serif;font-size:16px;line-height:1.6;font-weight:400;
 transition:background-color .2s,color .2s,padding .2s;
}
.teacher-sidebar>nav>a::after{content:"›";flex:none;font-size:21px;line-height:1;color:#a6b2c4}
.teacher-sidebar>nav>a:last-child{border-bottom:0}
.teacher-sidebar>nav>a[aria-current="page"],
.teacher-sidebar>nav>a[aria-current="page"]:visited{
 background:#edf3fc;color:#2b58a0!important;font-weight:600;
 box-shadow:inset 3px 0 #345baa;border-bottom-color:transparent;
}
.teacher-sidebar>nav>a[aria-current="page"]::after{color:#345baa}
.teacher-sidebar>nav>a:hover{background:#f3f6fb;color:#2b58a0!important;padding-left:16px}
.teacher-sidebar>nav>a:focus-visible{outline:2px solid #345baa;outline-offset:-2px}
.teacher-sidebar>nav>a.teacher-subcategory{padding-left:26px;font-size:14px}
@media(max-width:760px){
 .teacher-sidebar>h2{font-size:21px;padding:18px 20px}
 .teacher-sidebar>nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px}
 .teacher-sidebar>nav>a,.teacher-sidebar>nav>a:link,.teacher-sidebar>nav>a:visited{justify-content:center;text-align:center;min-height:42px;padding:8px 6px;font-size:14px;border:1px solid #e7ecf4;border-radius:4px}
 .teacher-sidebar>nav>a::after{display:none}
 .teacher-sidebar>nav>a[aria-current="page"]{box-shadow:none;border-color:#c6d7ef}
 .teacher-sidebar>nav>a:hover{padding-left:6px}
}
@media(prefers-reduced-motion:reduce){.teacher-sidebar>nav>a{transition:none}}
/* 栏目封面悬停微缩放，容器裁切，保持页面高度稳定。 */
.teacher-cover img{transform:scale(1);transition:transform 1.1s cubic-bezier(.2,.65,.3,1);transform-origin:center}
@media(hover:hover) and (pointer:fine){.teacher-cover:hover img{transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){.teacher-cover img{transition:none}.teacher-cover:hover img{transform:none}}
