/* ====================================
   师资队伍详情页样式（修改后）
   页面结构：背景层 + 内容层（左侧图片 + 右侧信息）
   严格按照设计图编写，增加响应式适配
   ==================================== */

/* 基础设置 - 使用rem作为主要单位，1rem = 10px */
html {
    font-size: 62.5%; /* 16px * 62.5% = 10px */
}

/* ==================== 页面主体容器 ==================== */
.third-level-page-main {
    min-height: 100vh;
    padding: 6rem 0;
    background-color: #fff;
}

/* 详情容器 - 相对定位，用于承载背景和内容 */
#teacher-detail-container {
    position: relative;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 4rem;
    min-height: 80rem;
}

/* ---- 背景层 ---- */
.teacher-detail-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.teacher-bg-img {
    position: absolute;
    left: 6rem;
    top: 6.5rem;
    width: 22rem;
    height: 29rem;
    max-width: none;
    transform-origin: left top; /* 确保缩放时保持左上角位置 */
}

/* ---- 内容层 ---- */
.teacher-detail-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10rem;
    padding: 2rem 0 0 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

/* ---- 左侧：人物图片区域 ---- */
.teacher-img-section {
    position: relative;
    flex-shrink: 0;
    /* left: 3rem;  */
    /*top: 2.4rem; */
}

.teacher-img-container {
    width: 20.8rem;
    height: 29rem;
    border-radius: 1.2rem; 
    overflow: hidden;
    background: #fff;
    display: inline-block;
}

.teacher-img-photo {
    width:100%;
    height: 30rem;
    object-fit: cover;
    display: block;
}

/* ---- 右侧：信息区域 ---- */
.teacher-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.teacher-title {
    font-size: 3.2rem;
    font-weight: bold;
    color: #2d5492;
    margin-bottom: 0.8rem;
    letter-spacing: 0.4rem; 
}

.teacher-meta {
    font-size: 1.4rem; 
    color: #999;
    margin-bottom: 1.6rem;
}

.teacher-meta span {
    margin-right: 3rem;
}

.teacher-desc {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.6rem;
    line-height: 1.8;
}

/* ---- 链接区域 ---- */
.teacher-link-row {
    align-items: center;
    margin-bottom: 2rem; 
    font-size: 1.4rem;
}

.teacher-link-row .link-icon {
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.8rem;
    color: #2d5492;
}

.teacher-link {
    color: #2d5492;
    text-decoration: none;
    word-break: break-all;
}

.teacher-link:hover {
    text-decoration: underline;
}

/* ---- 分割线 ---- */
.teacher-detail-divider {
    border: none;
    border-top: 0.3rem dashed #c5d3e8;
    margin: 0 0 2rem 0; 
}

/* ---- 分区标题 ---- */
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d5492;
    margin: 2rem 0 1.2rem 0;
    padding-left: 1.2rem; 
    border-left: 0.4rem solid #2d5492;
    line-height: 1.2;
}

/* 分区内容文字 */
.section-content {
    font-size: 1.4rem;
    color: #444;
    line-height: 2;
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* ---- 底部分割线 ---- */
.teacher-detail-divider-bottom {
    border: none;
    border-top: 0.1rem solid #e0e6ef; 
    margin:2rem 0;
}

/* ---- 上一篇/下一篇导航 ---- */
.teacher-detail-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem; /* 10px -> 1rem */
    font-size: 1.4rem;
    color: #333;
    padding-bottom: 4rem; 
}

/* ---- 响应式适配（中等屏幕：900px ~ 1200px） ---- */
@media (max-width: 1200px) {
    html {
        font-size: 56.25%; 
    }

    .teacher-detail-wrapper {
        gap: 12rem; /* 减少间距 */
    }
}

/* ---- 响应式适配（平板：600px ~ 900px） ---- */
@media (max-width: 900px) {
    html {
        font-size: 50%; 
    }
    
.teacher-img-section {
    position: static !important;
    flex-shrink: 0;
    /* left: 3rem;  */
    /*top: 2.4rem; */
}
    .teacher-img-container {
        box-shadow: 0.8rem 0.8rem 1.6rem rgba(0, 0, 0, 0.15); 
    }

    #teacher-detail-container {
        padding: 0 2rem;
    }

    .teacher-detail-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 6rem; /* 进一步减少间距 */
    }

    .teacher-info-section {
        width: 100%;
    }

    /* .teacher-bg-img {
        width: 225px;
        height: 297px;
        max-width: none;
        transform-origin: right;
        margin-left: 268px;
        margin-top: -31px;
        transform: scale(0.8); 
    } */
    .teacher-bg-img {
        display: none;
    }
}

/* ---- 响应式适配（手机：<= 600px） ---- */
@media (max-width: 600px) {
    html {
        font-size: 43.75%; 
    }

    .teacher-img-container {
        box-shadow: 0.8rem 0.8rem 1.6rem rgba(0, 0, 0, 0.15); 
    }

    .teacher-detail-wrapper {
        gap: 4rem;
    }
    
    /* .teacher-bg-img {
        width: clamp(194px, 10vw, 260px);
        height: clamp(255px,10vw,400px);
        max-width: none;
        transform-origin: right;
        margin-left: 84px;
        margin-top: -20px;
        transform: scale(0.8); 
    } */
    .teacher-bg-img {
        display: none;
    }
    
    .teacher-title {
        font-size: 2.8rem;
        letter-spacing: 0.2rem;
    }
}

/* 针对触摸设备的微调 */
.is-touch .teacher-link {
    padding: 0.5rem 0; /* 增加触摸点击区域 */
}