#l-container {
    margin-bottom:0;
    background:#f5f7fb;
}
infobox {
    background: #fff;
    margin: 0 -1rem;
    padding: 0.5rem;
}
.teacher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 60px 40px;
    margin: 0.5rem 0;
}

.teacher-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    transition: all 0.3s ease; /* 统一过渡：背景、阴影、图片放大同步生效 */
    background: transparent; /* 初始背景（透明或原有颜色） */
}

.teacher-item:hover {
  background-color: #ffffff; /* 背景变为白色 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 立体阴影（水平偏移0，垂直8px，模糊20px，深色半透明） */
  transform: translateY(-3px); /* 可选：轻微上浮，增强立体感 */
  border-radius: 8px; /* 圆角大小，可调整（如8px/12px） */
}

.teacher-item:hover .teacher-photo img {
    transform: scale(1.1); /* 放大1.1倍，可调整放大比例（如1.2） */
}

.teacher-photo {
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;/* 关键：图片放大后超出部分隐藏 */
    position: relative;
}

.teacher-photo img {
    width: 140px;
    height: 180px;
    object-fit: cover;
  transition: transform 0.3s ease; /* 0.3秒平滑过渡，可调整速度 */
  transform-origin: center;/* 以图片中心为原点缩放（默认值，可选） */
}

.teacher-info .name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.teacher-info .name:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 35px;
    height: 2px;
    background: #7e0014;
}


.teacher-info .title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 15px;
    color: #7e0014;
}

.teacher-info .description {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

@media (max-width: 991px) {
    .teacher-grid {
        grid-template-columns: 1fr;
        grid-gap: 40px;
    }
}

@media (max-width: 575px) {
    .teacher-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .teacher-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .teacher-info {
        width: 100%;
    }

    .teacher-info .name:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .teacher-info .description {
        text-align: justify;
    }
} 