@charset "utf-8";

/* ==========================================================
   师资详情页 专用样式（新增文件，仅 师资详情.html 引入）
   全部选择器以 .tchr 前缀命名，不覆盖原有页面任何样式
   换主色：只改下面 --tchr-main / --tchr-main-d 两个变量
   ========================================================== */

.tchr {
    --tchr-main: #154BA7;
    --tchr-main-d: #0F3C8A;
    --tchr-band: #f3f5f8;
    --tchr-line: #e3e8f0;
    --tchr-t1: #333333;
    --tchr-t2: #5a6472;
    --tchr-t3: #8a94a3;
    padding-bottom: 30px;
}

/* ---------- 教师基本信息 ---------- */

.tchr-hero {
    display: flex;
    align-items: flex-start;
    gap: 38px;
    margin-top: 40px;
    padding: 34px 36px;
    background: #f3f5f8;
    border-top: 4px solid #154BA7;
}

.tchr-photo {
    flex: 0 0 180px;
    width: 180px;
}

.tchr-photo .ph {
    position: relative;
    padding-top: 133.33%;
    overflow: hidden;
    background: #e9eef6;
    border: 1px solid #dbe3ee;
}

.tchr-photo .ph img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tchr-info {
    flex: 1;
    min-width: 0;
}

.tchr-name {
    font-size: 26px;
    line-height: 1.35;
    font-weight: bold;
    color: #154BA7;
}

.tchr-name span {
    margin-left: 14px;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: #8a94a3;
    vertical-align: baseline;
}

.tchr-post {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.8;
    color: #5a6472;
}

.tchr-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 46px;
    row-gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e3e8f0;
}

.tchr-meta li {
    display: flex;
    align-items: baseline;
    min-width: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #5a6472;
}

.tchr-meta em {
    flex: 0 0 75px;
    font-style: normal;
    color: #8a94a3;
    letter-spacing: 1px;
}

.tchr-meta span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tchr-meta a {
    color: #5a6472;
}

.tchr-meta a:hover {
    color: #154BA7;
}

/* ---------- 分段内容 ---------- */

.tchr-content {
    margin-top: 6px;
}

.tchr-sec {
    margin-top: 30px;
}

.tchr-h3 {
    padding: 0 18px;
    font-size: 18px;
    font-weight: bold;
    line-height: 52px;
    color: #154BA7;
    background: #f3f5f8;
    border-left: 5px solid #154BA7;
}

.tchr-text {
    max-width: 1200px;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.95;
    color: #333333;
}

.tchr-text p + p {
    margin-top: 10px;
}

/* 圆点列表 */

.tchr-list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.95;
}

.tchr-list li + li {
    margin-top: 3px;
}

.tchr-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.82em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b9c4d3;
}

/* 学术成果编号列表 */

.tchr-pubs {
    counter-reset: tchr-pub;
    font-size: 14.5px;
    line-height: 1.9;
    color: #3a4149;
}

.tchr-pubs li {
    position: relative;
    padding-left: 38px;
    counter-increment: tchr-pub;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tchr-pubs li + li {
    margin-top: 9px;
}

.tchr-pubs li::before {
    content: "[" counter(tchr-pub) "]";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 13px;
    color: #9aa5b4;
}

/* 段落式内容（研究领域等）留一点首行缩进更整齐 */

.tchr-para {
    text-indent: 2em;
}

/* ---------- 响应式 ---------- */

@media screen and (max-width: 1400px) {
    .tchr-hero {
        padding: 28px 26px;
        gap: 30px;
    }

    .tchr-photo {
        flex: 0 0 160px;
        width: 160px;
    }

    .tchr-meta {
        column-gap: 30px;
    }
}

@media screen and (max-width: 1024px) {
    .tchr-hero {
        padding: 24px 20px;
        gap: 24px;
    }

    .tchr-photo {
        flex: 0 0 140px;
        width: 140px;
    }

    .tchr-name {
        font-size: 23px;
    }

    .tchr-h3 {
        font-size: 17px;
        line-height: 48px;
    }

    .tchr-text {
        line-height: 1.9;
    }
}

@media screen and (max-width: 900px) and (min-width: 641px) {
    /* 平板宽度：两列不变，但标签改为上一行，避免邮箱等长文本被挤断 */
    .tchr-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 14px;
    }

    .tchr-meta li {
        display: block;
    }

    .tchr-meta em {
        display: block;
        flex: none;
        font-size: 12px;
        line-height: 1.6;
        letter-spacing: 0;
    }

    .tchr-meta span {
        display: block;
    }
}

@media screen and (max-width: 640px) {
    .tchr {
        padding-bottom: 10px;
    }

    .tchr-hero {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin-top: 14px;
        padding: 24px 18px 22px;
        text-align: center;
    }

    .tchr-photo {
        flex: 0 0 auto;
        width: 150px;
    }

    .tchr-info {
        width: 100%;
    }

    .tchr-name {
        font-size: 20px;
    }

    .tchr-name span {
        display: block;
        margin: 6px 0 0;
        font-size: 12px;
    }

    .tchr-post {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.7;
    }

    .tchr-meta {
        grid-template-columns: 1fr;
        row-gap: 6px;
        width: 100%;
        margin: 16px 0 0;
        padding-top: 14px;
        text-align: left;
    }

    .tchr-meta li {
        font-size: 13px;
    }

    .tchr-meta em {
        flex: 0 0 74px;
        font-size: 13px;
        letter-spacing: 0;
    }

    .tchr-sec {
        margin-top: 22px;
    }

    .tchr-h3 {
        padding: 0 12px;
        font-size: 16px;
        line-height: 44px;
        border-left-width: 4px;
    }

    .tchr-text {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.85;
    }

    .tchr-list li {
        padding-left: 14px;
    }

    .tchr-list li::before {
        top: 0.78em;
        left: 1px;
        width: 5px;
        height: 5px;
    }

    .tchr-pubs {
        font-size: 13px;
        line-height: 1.8;
    }

    .tchr-pubs li {
        padding-left: 30px;
    }

    .tchr-pubs li + li {
        margin-top: 10px;
    }

    .tchr-pubs li::before {
        font-size: 12px;
    }
}

@media screen and (max-width: 400px) {
    .tchr-photo {
        width: 128px;
    }

    .tchr-name {
        font-size: 18px;
    }
}
