/* ============ 模板七 名师推荐列表 ============ */

.teacher7-wrap {
    background: #f1f3f8;
    padding: 0 0 35px;
    flex: 1;
}

.teacher7-card {
    width: 1200px;
    max-width: 96%;
    margin: -40px auto 0;
    position: relative;
    z-index: 3;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 36px 32px 32px;
    box-sizing: border-box;
}

.teacher7-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 28px;
}

.teacher7-item {
    display: flex;
    gap: 20px;
    align-items: stretch;
    background: #f1f3f8;
    padding: 20px 10px;
    box-sizing: border-box;
    min-height: 168px;
    transition: box-shadow 0.2s;
}

.teacher7-item:hover {
    box-shadow: 5px 5px 5px rgba(170, 170, 170, 0.988235294117647);
}

.teacher7-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.teacher7-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.teacher7-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.teacher7-position {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #7F6335;
    line-height: 1.3;
}

.teacher7-position::before {
    content: '';
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: url('https://sszxapp-1317415100.cos.ap-guangzhou.myqcloud.com/%E6%96%87%E7%AB%A0%E5%9B%BE%E7%89%87/c2dd214a-8b0f-4fce-b383-13de3119bd82.png') center / contain no-repeat;
}

.teacher7-desc {
    flex: 1;
    font-size: 14px;
    color: #555555;
    line-height: 1.75;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    word-break: break-word;
}

.teacher7-avatar {
    width: 214px;
    flex-shrink: 0;
    height: 230px;
    overflow: hidden;
    background: #f0f2f5;
}

.teacher7-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.teacher7-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
    background: linear-gradient(135deg, #e8ebf5, #f5f6fa);
}

.teacher7-empty {
    text-align: center;
    color: #999;
    padding: 60px 0;
    font-size: 14px;
}

.teacher7-card .cate7-pager {
    margin-top: 32px;
}

.teacher7-card .cate7-pager-item {
    cursor: pointer;
}

@media (max-width: 1023px) {
    .teacher7-card {
        margin-top: -40px;
        padding: 16px;
    }

    .teacher7-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .teacher7-name {
        font-size: 18px;
    }

    .teacher7-avatar {
        width: 96px;
        height: 120px;
    }

    .teacher7-desc {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}
