.epf-teachers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
}
.epf-teacher {
    width: 25%;
    padding: 15px;
}
.teacher-item-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 12px;
    transition: all ease-in-out 0.2s;
    cursor: pointer;
}
.teacher-item-content:hover {
    box-shadow: 0 0 12px -4px #666;
}
.teacher-item-content:hover .name {
    color: #3560cd;
}
.teacher-item-content:hover .desc {
    color: #3560cd;
}
.teacher-item-content .avatar {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 9.5/12;
    margin-bottom: 5px;
}
.teacher-item-content .avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.teacher-item-content .name {
    font-size: 16px;
    color: #333;
    line-height: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.teacher-item-content .desc {
    font-size: 12px;
    color: #666;
    display: none;
}
.teacher-desc {
    display: none;
}
/* 教师信息弹窗样式 */
.teacher-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.teacher-modal.active {
    display: flex;
    opacity: 1;
}
.teacher-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.teacher-modal-container {
    position: relative;
    width: 86%;
    max-width: 760px;
    margin: auto;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
}
.teacher-modal.active .teacher-modal-container {
    transform: translateY(0);
}
.teacher-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.teacher-modal-title {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 500;
}
.teacher-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.teacher-modal-close:hover {
    background-color: #e9ecef;
    color: #333;
}
.teacher-modal-body {
    display: flex;
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
}
.teacher-modal-photo {
    width: 180px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
}
.teacher-modal-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 9.5/12;
    object-fit: cover;
    border-radius: 5px;
}
.teacher-modal-info {
    flex: 1;
    min-width: 0;
}
.teacher-modal-name {
    font-size: 22px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 14px;
    font-weight: 500;
}
.teacher-modal-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    white-space: pre-line;
    word-break: break-word;
}
@media screen and (max-width: 1200px) {
    .epf-teacher {
        width: 33.3%;
        padding: 10px;
    }
}
@media screen and (max-width: 768px) {
    .epf-teachers {
        gap: 0;
    }
    .epf-teacher {
        width: 50%;
        padding: 5px;
    }
    .teacher-item-content {
        padding: 5px;
    }
    .teacher-item-content .name {
        font-size: 14px;
    }
    .teacher-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    .teacher-modal-body {
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }
    .teacher-modal-photo {
        width: 150px;
        max-width: 55%;
        margin: 0 auto;
    }
    .teacher-modal-name {
        text-align: center;
        font-size: 20px;
        margin-bottom: 10px;
    }
    .teacher-modal-desc {
        font-size: 14px;
        line-height: 1.7;
    }
}
@media screen and (max-width: 480px) {
    .teacher-modal-header {
        padding: 10px 15px;
    }
    .teacher-modal-title {
        font-size: 16px;
    }
    .teacher-modal-body {
        padding: 15px;
    }
    .teacher-modal-photo {
        width: 130px;
    }
}
