/* ========== 基地名师页面 ========== */

.page-header {
    text-align: center;
    padding: 30px 20px 10px;
}
.page-header h1 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.page-icon { font-size: 32px; }
.page-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 筛选区 */
.teacher-filter {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.filter-search {
    display: flex;
}
.filter-input {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}
.filter-input:focus {
    border-color: var(--primary);
    background: #fff;
}
.filter-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-chip {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    background: #f5f5f5;
    color: var(--text-light);
    transition: all 0.2s;
    border: 1px solid transparent;
    user-select: none;
}
.cat-chip:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.cat-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.filter-count {
    font-size: 13px;
    color: var(--text-lighter);
    text-align: right;
}
.filter-count strong {
    color: var(--primary);
    font-size: 16px;
    margin: 0 2px;
}

/* 名师列表 */
.teacher-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.teacher-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.teacher-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.teacher-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c41e2a, #e74c3c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0;
}
.teacher-info { flex: 1; min-width: 0; }
.teacher-name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.teacher-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.teacher-title {
    font-size: 12px;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 500;
}
.teacher-unit {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
}
.teacher-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.teacher-cat {
    font-size: 11px;
    padding: 2px 8px;
    background: #f0f5ff;
    color: #1a56db;
    border-radius: 4px;
}

.teacher-contact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-light);
}
.contact-item a {
    color: #1a56db;
    text-decoration: none;
}
.contact-item a:hover { text-decoration: underline; }

.teacher-courses {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.courses-label {
    font-size: 12px;
    color: var(--text-lighter);
    margin-bottom: 8px;
    font-weight: 500;
}
.courses-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.course-tag {
    font-size: 12px;
    padding: 3px 10px;
    background: #fff0f0;
    color: var(--primary);
    border-radius: 12px;
    cursor: default;
    transition: background 0.2s;
}
.course-tag:hover {
    background: var(--primary);
    color: #fff;
}

/* 响应式 */
@media (max-width: 700px) {
    .teacher-list {
        grid-template-columns: 1fr;
    }
    .page-header h1 { font-size: 22px; }
}
