/* ==================== 教师分类展示样式 ==================== */

/* 教师分类区块容器 */
.teacher-sections {
    width: 100%;
    padding: 20px 0;
}

/* 单个分类区块 */
.teacher-section {
    margin-bottom: 30px;
}

/* 分类标题栏 */
.section-title-bar {
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    position: relative;
}

.section-title-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffc107;
    border-radius: 4px 0 0 4px;
}

/* 教师网格布局 */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 0 10px;
}

/* 教师卡片 */
.teacher-card {
    text-align: center;
    transition: all 0.3s ease;
}

.teacher-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.teacher-card a:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 头像 */
.teacher-card .avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, #3584e4 0%, #1a5fb4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(53, 132, 228, 0.3);
}

/* 姓名 */
.teacher-card .name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .teacher-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .teacher-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .teacher-card .avatar {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .teacher-card .name {
        font-size: 12px;
    }

    .section-title-bar {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .teacher-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .teacher-card .avatar {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}
