/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft Yahei", sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* ===== Banner 预留 ===== */
.banner-wrap {
    width: 100%;
    height: 500px;
    background: #e8edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.banner-wrap span {
    color: #4488bb;
    font-size: 16px;
}
@media (max-width: 768px) {
    .banner-wrap {
        height: 170px;
    }
}

.banner-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 保证图片裁切填充，不变形 */
}

/* ===== 导航 ===== */
.header-nav {
    background: #ffffff;
    padding: 14px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
}
.nav-inner a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
}
.nav-inner a:hover {
    color: #0099dd;
}

/* ===== 容器 ===== */
.container {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== 教师组 ===== */
.teacher-group {
    background: #fff;
    border-radius: 10px;
    padding: 30px 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.group-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 5px solid #00b4e9;
    color: #0077bb;
}

/* ===== 教师卡片网格 ===== */
.teacher-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 26px;
}
.teacher-card {
    border: 1px solid #e6f2f9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.24s;
}
.teacher-card:hover {
    box-shadow: 0 5px 14px rgba(0, 140, 220, 0.14);
    transform: translateY(-4px);
}
.tea-photo {
    width: 100%;
    height: 280px;
    background: #f0f7fc;
    object-fit: cover;
}
.tea-info {
    padding: 16px 14px;
}
.tea-name {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 4px;
}
.tea-post {
    color: #0099dd;
    font-size: 14px;
    margin-bottom: 8px;
}
.tea-short {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
}

/* ===== 弹窗 ===== */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 12px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: #999;
}
.modal-close:hover {
    color: #0099dd;
}
.modal-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.modal-avatar {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f7fc;
}
.modal-title h2 {
    font-size: 22px;
    margin-bottom: 6px;
}
.modal-title .post {
    color: #0099dd;
    font-size: 15px;
    margin-bottom: 8px;
}
.modal-title .school {
    font-size: 14px;
    color: #555;
}
.modal-block h4 {
    color: #0077bb;
    margin: 22px 0 10px;
    font-size: 16px;
}
.modal-block p {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
}

/* ===== 页脚 ===== */
footer {
    text-align: center;
    padding: 36px;
    color: #888;
    font-size: 14px;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .teacher-list {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    }
    .tea-photo {
        height: 170px;
    }
    .modal-header {
        flex-direction: column;
    }
    .modal-avatar {
        width: 120px;
        height: 120px;
    }
}