/* 名师列表页面样式 */

/* 教师网格布局 */
.teacher-list-section {
    padding: 40px 0 60px;
    background: #fff;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 教师卡片 */
.teacher-card {
    background: #caecf1;
    overflow: hidden;
    width: 370px;
    height: 700px;
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 教师图片 */
.teacher-image {
    overflow: hidden;
}

.teacher-image img {
    width: 325px;
    height: 400px;
    margin: 20px;
    object-fit: cover;
}

/* 教师信息 */
.teacher-info {
    padding: 0 20px;
    text-align: center;
}

.teacher-name {
    font-size: 26px !important;
    color: #000 !important;
    margin: 0 0 15px 0 !important;
    
}

.teacher-position {
    font-size: 16px;
    color: #000;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teacher-desc {
    font-size: 12px;
    color: #000;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

/* 按钮 */
.teacher-btn {
    display: inline-block;
    padding: 5px 25px;
    background: #931d22;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.teacher-btn:hover {
    background: #7a181d;
}

/* 响应式 */
@media (max-width: 1200px) {
    .teacher-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .teacher-grid {
        grid-template-columns: 1fr;
    }
}

/* 1600px 以下适配 */
@media (max-width: 1600px) {
    body{
        min-width: 1600px;
    }

    .about-page .container {
        width: 1400px !important;
        margin: 0 auto;
    }
    .teacher-card {
        background: #caecf1;
        overflow: hidden;
        width: 320px;
        height: 700px;
        transition: transform 0.3s ease;
    }
    .teacher-image img {
        width: 275px;
        /* height: 400px; */
        margin: 20px;
        object-fit: cover;
    }

}

/* 1440px 以下适配 */
@media (max-width: 1440px) {
    body {
        min-width: 1440px;
    }
    .main-content{
        width: 1440px;
    }
    .about-page .container {
        width: 1280px !important;
        margin: 0 auto;
    }
    .teacher-card {
        background: #caecf1;
        overflow: hidden;
        width: 300px;
        height: 700px;
        transition: transform 0.3s ease;
    }
    .teacher-image img {
        width: 255px;
        /* height: 400px; */
        margin: 20px;
        object-fit: cover;
    }
}
