.teachers .teacher-filters { clear:both; padding:20px 0 0; position:relative; z-index:5; color:var(--tp-text-1); font-size:14px; }
.teacher-filter-bar { display:flex; align-items:center; gap:16px; padding:14px 20px; background:#fff; border:1px solid #e9e9e9; border-radius:4px; }
.teacher-filter-menus { display:flex; flex:1; flex-wrap:wrap; gap:8px 22px; min-width:0; }
.teacher-filter { position:static; }
.teacher-filter summary { display:flex; align-items:center; gap:8px; padding:8px 0; cursor:pointer; list-style:none; white-space:nowrap; }
.teacher-filter summary::-webkit-details-marker { display:none; }
.teacher-filter summary:hover,.teacher-filter[open] summary,.teacher-filter.has-selection summary { color:var(--tp-theme-1); }
.teacher-filter-count { font-size:12px; }
.teacher-filter-chevron { width:6px; height:6px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); margin:0 3px 4px; }
.teacher-filter[open] .teacher-filter-chevron { transform:rotate(225deg); margin-top:6px; }
.teacher-filter-panel { position:absolute; top:calc(100% - 30px); left:0; right:0; background:#fff; border:1px solid #e9e9e9; border-top:2px solid var(--tp-theme-1); border-radius:0 0 4px 4px; box-shadow:0 12px 28px rgba(0,0,0,.1); z-index:10; padding:20px 24px; }
.teacher-filter-heading,.teacher-filter-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.teacher-filter-clear,.teacher-filter-reset { color:#888; font-size:13px; white-space:nowrap; }
.teacher-filter-clear { border:0; background:none; padding:0; }
.teacher-filter-options { display:flex; flex-wrap:wrap; gap:10px; max-height:260px; overflow-y:auto; margin:18px 0; }
.teacher-filter-options label { position:relative; margin:0; cursor:pointer; font-weight:normal; }
.teacher-filter-options input { position:absolute; width:1px; height:1px; opacity:0; }
.teacher-filter-options span { display:block; padding:8px 14px; border:1px solid #e9e9e9; border-radius:3px; line-height:1.5; }
.teacher-filter-options input:checked+span { color:var(--tp-theme-1); border-color:var(--tp-theme-1); background:#fafafa; }
.teacher-filter-options input:focus-visible+span,.teacher-filter summary:focus-visible { outline:2px solid var(--tp-theme-1); outline-offset:3px; }
.teacher-filter-options span:hover { border-color:var(--tp-theme-1); }
.teacher-filter-footer { border-top:1px solid #eee; padding-top:14px; color:#999; font-size:13px; }
.teacher-filter-apply,.teacher-filter-search button { background:var(--tp-theme-1); color:#fff; border:0; border-radius:3px; padding:8px 22px; }
.teacher-filter-search { display:flex; width:280px; max-width:100%; border:1px solid #e4e4e4; border-radius:3px; overflow:hidden; }
.teacher-filter-search input { min-width:0; width:100%; border:0; background:#fff; padding:8px 12px; font:inherit; height:38px; }
.teacher-filter-search button { flex-shrink:0; border-radius:0; padding:8px 16px; }
.teacher-filter-meta { height:30px; padding-top:10px; color:#999; font-size:12px; }
.teacher-filter-meta strong { font-weight:normal; color:var(--tp-theme-1); }
.teacher-filter-selection { margin-left:16px; }
@media(max-width:767px) {
 .teachers .teacher-filters { padding:12px 15px 0; }
 .teacher-filter-bar { flex-wrap:wrap; padding:10px 12px; gap:10px; }
 .teacher-filter-menus { flex-basis:100%; gap:6px 18px; }
 .teacher-filter-search { flex:1; width:auto; }
 .teacher-filter-panel { left:15px; right:15px; padding:16px; }
 .teacher-filter-options { max-height:40vh; gap:8px; }
 .teacher-filter-options span { padding:7px 10px; font-size:13px; }
 .teachers .nav-pills { flex-wrap:wrap; }
 .teachers .nav-pills li { flex:0 0 auto; }
 .teachers .nav>li>a { padding:10px 14px; }
}

/* 常驻地区按层级浏览，切换面板保留已选条件。 */
.teacher-filters [hidden] { display:none !important; }
.teacher-region-tabs { display:flex; gap:24px; border-bottom:1px solid #eee; margin-top:16px; }
.teacher-region-tabs button { border:0; border-bottom:2px solid transparent; background:none; color:#777; padding:10px 0; font:inherit; }
.teacher-region-tabs button[aria-selected="true"] { color:var(--tp-theme-1); border-bottom-color:var(--tp-theme-1); }
.teacher-region-province { display:flex; align-items:center; gap:12px; font-weight:normal; margin:16px 0 0; color:#777; }
.teacher-region-province select { border:1px solid #ddd; border-radius:3px; background:#fff; padding:7px 12px; min-width:160px; max-width:70%; font:inherit; color:var(--tp-text-1); }
.teacher-region-selected { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.teacher-region-selected:empty { display:none; }
.teacher-region-selected button { border:1px solid #e7e7e7; border-radius:3px; padding:4px 10px; background:#fafafa; color:var(--tp-theme-1); font-size:12px; }
