/* 教师列表页面样式 */

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 20px 0;
    color: #999;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 30px;}

.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;}

.breadcrumb-nav a:hover {
    color: var(--color-secondary);}

.breadcrumb-nav .separator {
    margin: 0 8px;
    color: #ccc;}

.breadcrumb-nav .current {
    color: #333;
    font-weight: 500;}

/* 教师列表容器 */
.teacher-list {
    padding: 0;}

/* 教师瀑布流 */
.teacher-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;}

.teacher-masonry-item {
    min-width: 0;}

.teacher-masonry.is-ready {
    display: block;
    position: relative;}

.teacher-masonry.is-ready .teacher-masonry-item {
    position: absolute;}

/* 教师卡片 */
.teacher-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: auto;}

.teacher-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;}

.teacher-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
    position: relative;
    z-index: 2;}

/* 教师头像区域 */
.teacher-avatar {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;}

.teacher-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;}

.teacher-card:hover .teacher-avatar img {
    transform: scale(1.05);}

/* 教师信息区域 */
.teacher-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;}

.teacher-name {
    margin: 0 0 8px 0;
    color: #333;
    font-weight: 600;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;}

.teacher-title {
    color: #666;
    margin: 0 0 4px 0;
    font-size: 14px;}

.teacher-degree {
    color: #999;
    margin: 0 0 16px 0;
    font-size: 13px;}

/* 联系方式区域 */
.teacher-contact {
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;}

.teacher-contact p {
    margin: 4px 0;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;}

/* 响应式设计 */
@media screen and (max-width: 1199px) {
    .teacher-avatar {
        height: 220px;}
}

@media screen and (max-width: 991px) {
    .teacher-list {
        padding: 5px;}

    .teacher-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));}

    .teacher-avatar {
        height: 200px;}

    .teacher-info {
        padding: 20px;}
}

@media screen and (max-width: 767px) {
    .breadcrumb-nav {
        margin-bottom: 20px;}

    .teacher-list {
        padding: 5px;}

    .teacher-masonry {
        grid-template-columns: 1fr;}

    .teacher-avatar {
        height: 280px;}

    .teacher-info {
        padding: 20px;}

    .teacher-name {
        font-size: 18px;}
}

@media screen and (max-width: 480px) {
    .teacher-masonry {
        gap: 20px;}

    .teacher-avatar {
        height: 260px;}

    .teacher-info {
        padding: 16px;}
}

/* 空状态 */
.teacher-list-empty {
    text-align: center;
    padding: 80px 0;
    color: #999;}

.teacher-list-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;}

.teacher-list-empty p {
    font-size: 16px;}