/*首页样式*/
@import 'common.css';
    ul{
        list-style:none;
        padding: 0;
        margin: 0;
    }
    li{
        list-style-type:none;
        padding: 0;
        margin: 0;
    }

button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

button:focus {
    outline: none !important;
    box-shadow: none !important;
}
a:focus{
    outline: none !important;
    box-shadow: none !important;
}

/* 教师详情页面样式 */
.teacher-detail-container {
    display: flex;
    flex-direction: row; /* 默认横向排列 */
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    min-height: 600px;
}

/* 左侧信息栏 */
.teacher-profile-sidebar {
    width: 280px;
    background: linear-gradient(135deg, #8E3637 0%, #8E3639 100%);
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.teacher-avatar {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}
.teacher-avatar::after{
    content: ' ';
    position: absolute;
    left: -8px;
    top: -8px;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.2);
    z-index: 0;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 10;
}

.teacher-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #fff;
}

.teacher-title {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 5px;
    border: 1px solid rgba(255,255,255,0.2);
}

.teacher-contact {
    color: #e8f4fd;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin-top: 15px;
}

.teacher-research-area {
    width: 90%;
    text-align: center;
    margin-top: 20px;
}

.research-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    font-size: 15px;
    margin-bottom: 5px;
    color: #fff;
    font-weight: bold;
    /*border-bottom: 1px solid rgba(255,255,255,0.2);*/
}

.research-list {
    color: #e8f4fd;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.research-list p {
    margin-bottom: 4px;
    position: relative;
}

/* 右侧内容区域 */
.teacher-content-area {
    flex: 1;
    max-width: calc(100% - 280px);
    background: #fff;
    padding: 0;
}

/* 导航标签 */
.teacher-nav-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.nav-tab {
    flex: 1;
    max-width: calc( 100% / 4);
    padding: 15px 20px;
    text-align: center;
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.nav-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.nav-tab.active {
    background: #8E3637;
    color: #fff;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #DEBA88;
}

/* 内容区域 */
.teacher-content {
    padding: 30px;
    overflow-y: auto;
    width: 100%;
}

.content-section {
    display: none;
    width: 100%;
}

.content-section p {
    width: 100%;
}

.content-section p span {
    display: inline-block;
    width: 100%;
    text-wrap-mode: wrap !important;
    word-wrap: break-word;
    word-break: break-all;
}

.content-section.active {
    display: block;
}

.education-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #8E3637;
}

.education-year {
    font-weight: 600;
    color: #8E3637;
    min-width: 120px;
    margin-right: 20px;
}

.education-details {
    flex: 1;
}

.education-institution {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.education-degree {
    color: #6c757d;
    font-size: 14px;
}


@media (max-width: 480px) {
    .nav-tab {
        flex: 1 1 100%;
        font-size: 13px;
        padding: 10px 8px;
    }
    
    .teacher-content {
        padding: 15px;
    }
    
    .education-item {
        padding: 12px;
    }
}

/* 针对 414px 及以下屏幕进一步优化 */
@media (max-width: 414px) {
    .teacher-detail-container {
        margin: 5px;
        min-height: 400px;
    }
    .teacher-profile-sidebar {
        padding: 12px 8px;
    }
    .teacher-avatar {
        width: 80px;
        height: auto;
        margin-bottom: 10px;
    }
    .teacher-name {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .teacher-title {
        font-size: 12px;
        padding: 5px 10px;
    }
    .teacher-research-area {
        width: 100%;
        font-size: 13px;
    }
    .research-title {
        font-size: 13px;
    }
    .research-list {
        font-size: 12px;
    }
    .teacher-content-area {
        padding: 0;
    }
    .teacher-nav-tabs {
        font-size: 13px;
    }
    .nav-tab {
        padding: 8px 4px;
        font-size: 12px;
    }
    .teacher-content {
        padding: 8px;
        font-size: 13px;
    }
    .education-item {
        padding: 8px;
        margin-bottom: 10px;
    }
    .education-year {
        min-width: 80px;
        font-size: 13px;
    }
    .education-institution {
        font-size: 13px;
    }
    .education-degree {
        font-size: 12px;
    }
}

/* 针对 375px 及以下屏幕进一步优化 */
@media (max-width: 375px) {
    .teacher-detail-container {
        margin: 2px;
    }
    .teacher-profile-sidebar {
        padding: 8px 2px;
    }
    .teacher-avatar {
        width: 60px;
        height: auto;
    }
    .teacher-name {
        font-size: 16px;
    }
    .teacher-title {
        font-size: 11px;
        padding: 3px 6px;
    }
    .teacher-content {
        padding: 4px;
    }
    .education-item {
        padding: 5px;
    }
}

/* 移动端优化教师详情布局，确保左右结构变为上下结构，tab横向排列 */
@media (max-width: 768px) {
    .teacher-detail-container {
        flex-direction: column;
        min-height: 400px;
        margin: 8px 2px;
        box-shadow: none;
        border-radius: 0;
    }
    .teacher-profile-sidebar {
        width: 100%;
        border-radius: 8px 8px 0 0;
        padding: 18px 6px 12px 6px;
        min-height: unset;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .teacher-content-area {
        max-width: 100%;
        width: 100%;
        padding: 0;
        border-radius: 0 0 8px 8px;
        min-height: 200px;
    }
    .teacher-nav-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 0;
        font-size: 14px;
    }
    .nav-tab {
        flex: 1 1 50%;
        min-width: calc(100% / 2);
        padding: 10px 0;
        font-size: 13px;
        border-bottom: 2px solid #eee;
        border-right: 1px solid #eee;
        border-radius: 0;
        margin: 0;
        display: inline-block;
        white-space: normal;
    }
    .nav-tab:last-child {
        border-right: none;
    }
    .teacher-content {
        padding: 12px 4px;
        max-height: unset;
        font-size: 14px;
    }
    .education-item {
        flex-direction: column;
        padding: 8px 4px;
        margin-bottom: 10px;
    }
    .education-year {
        min-width: 0;
        margin-right: 0;
        margin-bottom: 6px;
        font-size: 13px;
    }
    .education-institution,
    .education-degree {
        font-size: 13px;
    }
    .teacher-avatar {
        width: 70px;
        height: auto;
        margin-bottom: 10px;
    }
    .teacher-name {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .teacher-title {
        font-size: 12px;
        padding: 4px 10px;
    }
    .teacher-research-area {
        font-size: 13px;
        margin-top: 10px;
    }
    .research-title {
        font-size: 13px;
    }
    .research-list {
        font-size: 12px;
    }
}

/* 超小屏进一步优化 */
@media (max-width: 414px) {
    .teacher-avatar {
        width: 55px;
        height: auto;
    }
    .teacher-name {
        font-size: 16px;
    }
    .teacher-title {
        font-size: 11px;
    }
    .teacher-content {
        padding: 6px 2px;
        font-size: 13px;
    }
    .education-item {
        padding: 5px 2px;
    }
}