/* 整体容器样式 */
.item-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 0 auto;
    padding: 20px;}

.item-box * {
    box-sizing: border-box;}

/* 教师卡片样式 */
.teachers-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    padding: 25px 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;}

/* 悬停效果 */
.teachers-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: #f9f7f3;}

/* 名称样式 */
.teachers-item>div:nth-child(1) {
    font-size: 0.18rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;}

.teachers-item:hover>div:nth-child(1) {
    color: #0b49bc;}

/* 职位样式 */
.teachers-item>div:nth-child(2) {
    font-size: 0.16rem;
    color: #666;
    line-height: 1.5;
    font-weight: 400;
    padding: 4px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;}

/* 响应式调整 */
@media (max-width: 768px) {
    .item-box {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        padding: 15px;}

    .teachers-item {
        padding: 20px 15px;
        min-height: 110px;}

    .teachers-item>div:nth-child(1) {}

    .teachers-item>div:nth-child(2) {
        
        padding: 3px 10px;}
}

@media (max-width: 480px) {
    .item-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;}

    .teachers-item {
        padding: 18px 12px;
        min-height: 100px;}
}
