/* Teacher Link Back 样式 */
.teacher-link-back {
    margin-left: -4vw;
    padding-top: 2vw;
}

.teacher-link-back p {
    font-family: 'UnicaOne', sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    color: white;
    margin: 0;
}

.teacher-link-back-name {
    font-family: 'UnicaOne', sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    color: white;
    text-transform: uppercase;
}

.people-link {
    font-family: 'UnicaOne', sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.people-link:hover {
    color: #7FEF35;
    text-decoration: none;
}

/* 教师信息页面样式 */
.teacher-info-container {
    display: flex;
    align-items: flex-start;
    padding-top: 10vh;
    margin: 0 auto;
}

/* Teacher Size 样式 - 增加 padding 减少宽度 */
.teacher-size {
    padding: 0 15vw;
    margin: 0 auto;
}
.photo-section {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.teacher-photo {
    width: 35vw;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

/* 渐变蒙版 */
.photo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to left, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0) 50%, 
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.photo-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0) 70%, 
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* 右侧内容区域 */
.content-section {
    flex: 1;
    z-index: 2;
    position: relative;
    padding-top: 18vw; 
}

/* 标题样式 */
.teacher-title,
.main-content .teacher-title {
    font-family: 'AlibabaPuHuiTiHeavy', sans-serif !important;
    font-size: clamp(1.8rem, 4vw, 4rem);
    color: white;
    margin-left: -5vw;
    line-height: 1;
    width: clamp(70vw, 50vw, 50vw);
}

.teacher-subTitle {
    font-family: 'HYFangDieF', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 2rem);
    color: #7FEF35;
    margin-left: -5vw;
    line-height: 1.4;
}

.teacher-subTitle span {
    font-family: 'HYFangDieF', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 2rem);
    color: #7FEF35;
    line-height: 1.4;
}

/* 使用 ::after 伪元素实现逗号换行 */
.teacher-subTitle.comma-break::after {
    content: '\A';
    white-space: pre;
}

/* 针对包含逗号的文本进行特殊处理 */
.teacher-subTitle.comma-break {
    white-space: pre-line;
}


/* 文本内容样式 */
.teacher-text {
    width: 85%;
    text-align: left;
    flex: 1;
    z-index: 2;
    position: relative;
    margin: -8vw 0 0 auto;
    padding: 0 0vw 5vw 0vw;
}

.teacher-text p {
    font-family: 'AlibabaPuHuiTi', sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.28rem);
    line-height: 1.4;
    color: var(--text);
    margin: 0 0 20px 0;
    text-align: justify;
    
}

.teacher-text p:last-child {
    margin-bottom: 0;
}

.teacher-text a {
    color: #7FEF35 !important;
    text-decoration: none;
    word-wrap: break-word;
}

.teacher-text img {
    width: 100%;
    height: auto;
    text-align: center;
    padding: 0;
}

.teacher-text a:hover {
    color: #7FEF35 !important;
    text-decoration: underline;
}

/* ul 列表右对齐样式 */
.teacher-text ul {
    text-align: left;
    list-style-position: inside;
    padding-left: 0;
}

.teacher-text ul li {
    text-align: left;
    margin-bottom: 10px;
}

/* 响应式设计 */

/* 平板设备 (1024px 及以下) */
@media (max-width: 1024px) {
    .teacher-size {
        padding: 0 14vw;
    }
    
    .teacher-info-container {
        padding-top: 8vh;
    }
    
    .teacher-photo {
        width: 30vw;
    }
    
    .teacher-title {
        font-family: 'AlibabaPuHuiTiHeavy', sans-serif !important;
        font-size: 3.2rem;
        width: clamp(60vw, 45vw, 50vw);
    }
    
    .teacher-subTitle {
        font-size: clamp(1.1rem, 2.2vw, 1.8rem);
    }
    
    .teacher-text {
        width: 85%;
        margin: 2vh auto 0 auto;
    }
    
    .teacher-text p {
        font-size: 1.2rem;
    }
    
    .teacher-text ul {
        text-align: left;
    }
}

/* 平板设备 (768px 及以下) */
@media (max-width: 768px) {
    .teacher-size {
        padding: 0 3vw;
    }
    
    .teacher-link-back {
        margin-left: -2vw;
        padding-top: 1.5vw;
    }
    
    .teacher-link-back p {
        font-size: 1.1rem;
    }
    
    .teacher-info-container {
        flex-direction: column;
        padding-top: 6vh;
        align-items: center;
    }
    
    .content-section {
        padding-top: 0;
        text-align: center;
        margin-top: 2vh;
    }
    
    .photo-section {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        order: 1;
    }
    
    .teacher-photo {
        width: 100%;
        height: 350px;
        margin: 0 auto;
        display: block;
        object-fit: cover;
    }
    
    .teacher-title {
        font-family: 'AlibabaPuHuiTiHeavy', sans-serif !important;
        width: 100%;
        font-size: 2.5rem;
        text-align: center;
        margin-left: 0;
        margin-bottom: 1rem;
    }
    
    .teacher-subTitle {
        width: 100%;
        font-size: clamp(1.1rem, 2.2vw, 1.5rem);
        text-align: center;
        margin-left: 0;
        margin-bottom: 2rem;
        white-space: pre-line;
    }
    
    .teacher-text {
        width: 90%;
        text-align: left;
        margin: 3vh auto 0 auto;
        padding: 0 0 3vw 0;
    }
    
    .teacher-text p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .teacher-text ul {
        text-align: left;
    }
}

/* 手机设备 (480px 及以下) */
@media (max-width: 480px) {
    .teacher-size {
        padding: 0 1vw;
    }
    
    .teacher-link-back {
        margin-left: -1vw;
        padding-top: 1vw;
    }
    
    .teacher-link-back p {
        font-size: 1rem;
    }
    
    .teacher-info-container {
        padding-top: 4vh;
    }
    
    .photo-section {
        max-width: 300px;
    }
    
    .teacher-photo {
        height: 280px;
    }
    
    .teacher-title {
        font-family: 'AlibabaPuHuiTiHeavy', sans-serif !important;
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .teacher-subTitle {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        margin-bottom: 1.5rem;
        white-space: pre-line;
    }
    
    .teacher-text {
        width: 95%;
        margin: 2.5vh auto 0 auto;
        padding: 0 0 2vw 0;
    }
    
    .teacher-text p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .teacher-text ul {
        text-align: left;
    }
}

/* 小屏手机 (360px 及以下) */
@media (max-width: 360px) {
    .teacher-size {
        padding: 0 1vw;
    }
    
    .teacher-link-back p {
        font-size: 0.9rem;
    }
    
    .teacher-info-container {
        padding-top: 3vh;
    }
    
    .photo-section {
        max-width: 250px;
    }
    
    .teacher-photo {
        height: 220px;
    }
    
    .teacher-title {
        font-family: 'AlibabaPuHuiTiHeavy', sans-serif !important;
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .teacher-subTitle {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        margin-bottom: 1.2rem;
        white-space: pre-line;
    }
    
    .teacher-text {
        width: 98%;
        margin: 2vh auto 0 auto;
    }
    
    .teacher-text p {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .teacher-text ul {
        text-align: left;
    }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .teacher-info-container {
        flex-direction: row;
        padding-top: 3vh;
    }
    
    .photo-section {
        max-width: 200px;
        order: 0;
    }
    
    .teacher-photo {
        height: 200px;
    }
    
    .content-section {
        order: 1;
        text-align: left;
        margin-top: 0;
        padding-top: 0;
    }
    
    .teacher-title {
        font-family: 'AlibabaPuHuiTiHeavy', sans-serif !important;
        font-size: 1.8rem;
        text-align: left;
        margin-left: -2vw;
        width: clamp(60vw, 50vw, 50vw);
    }
    
    .teacher-subTitle {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        text-align: left;
        margin-left: -2vw;
    }
    
    .teacher-text {
        width: 85%;
        margin: 2vh auto 0 auto;
    }
    
    .teacher-text p {
        font-size: 0.9rem;
    }
    
    .teacher-text ul {
        text-align: left;
    }
}