/* 教师详细页面样式 */

/* 主容器样式 */
.teacher-detail-container {
    background: #f5f8fc;
    min-height: 100vh;
    padding: 20px 0;
}

.teacher-detail-layout {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 左侧边栏样式 */
.teacher-detail-sidebar {
    width: 250px;
    background: #004098;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border-radius: 8px 0 0 8px;
}

.sidebar-title {
    background: #003579;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover a,
.menu-item.active a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.menu-item .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    opacity: 0.7;
}

.menu-item.active .arrow {
    opacity: 1;
}

/* 右侧内容区域样式 */
.teacher-detail-content {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-radius: 0 8px 8px 0;
}

/* 面包屑导航样式 */
.breadcrumb {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.breadcrumb .current-location {
    color: #666;
    font-weight: 500;
}

.breadcrumb a {
    color: #004098;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #003579;
}

.breadcrumb .separator {
    color: #999;
    margin: 0 8px;
}

.breadcrumb .current {
    color: #666;
    font-weight: 500;
}

/* 教师基本信息区域 */
.teacher-basic-info {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.teacher-photo {
    width: 200px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teacher-photo:hover img {
    transform: scale(1.05);
}

/* 默认头像样式 */
.teacher-photo:before {
    content: '';
    font-size: 80px;
    color: #004098;
    opacity: 0.6;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.teacher-photo img[src*="placeholder"] {
    display: none;
}

.teacher-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.teacher-name {
    font-size: 32px;
    color: #333;
    font-weight: 600;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.info-item .label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
    font-size: 16px;
}

.info-item .value {
    color: #333;
    font-size: 16px;
    flex: 1;
}

/* 内容区域样式 */
.content-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.title-bar {
    color: #004098;
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
    line-height: 1;
}

.section-content {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

.section-content p {
    margin: 0 0 15px 0;
    text-align: justify;
}

/* 经历列表样式 */
.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    position: relative;
    padding: 12px 0 12px 25px;
    border-bottom: 1px dashed #ddd;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.experience-list li:last-child {
    border-bottom: none;
}

.experience-list li:before {
    content: '?';
    color: #004098;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 18px;
}

/* 研究方向样式 */
.research-areas {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.research-areas li {
    background: #004098;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.research-details {
    margin-top: 20px;
}

.research-details h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.research-details ol {
    margin: 0;
    padding-left: 20px;
}

.research-details ol li {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 学术成果网格 */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.achievement-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #004098;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: #f0f4f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.achievement-item h3 {
    color: #004098;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.achievement-item p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .teacher-detail-layout {
        flex-direction: column;
    }
    
    .teacher-detail-sidebar {
        width: 100%;
        order: 2;
        border-radius: 0 0 8px 8px;
    }
    
    .teacher-detail-content {
        order: 1;
        border-radius: 8px 8px 0 0;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    .menu-item {
        flex: 1;
        min-width: 150px;
    }
}

@media screen and (max-width: 768px) {
    .teacher-detail-content {
        padding: 20px 15px;
    }
    
    .teacher-basic-info {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .teacher-photo {
        width: 150px;
        height: 180px;
        margin: 0 auto;
    }
    
    .teacher-name {
        font-size: 28px;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .research-areas {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .teacher-detail-content {
        padding: 15px 10px;
    }
    
    .teacher-basic-info {
        padding: 15px;
    }
    
    .teacher-photo {
        width: 120px;
        height: 150px;
    }
    
    .teacher-photo:before {
        font-size: 60px;
    }
    
    .teacher-name {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .title-bar {
        font-size: 20px;
    }
    
    .section-content {
        font-size: 14px;
    }
    
    .experience-list li {
        font-size: 14px;
        padding: 10px 0 10px 20px;
    }
}

/* 加载动画 */
.content-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特殊效果 */
.teacher-basic-info {
    position: relative;
    overflow: hidden;
}

.teacher-basic-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #004098, #d4af37);
}

/* 优化滚动条样式 */
.teacher-detail-content::-webkit-scrollbar {
    width: 6px;
}

.teacher-detail-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.teacher-detail-content::-webkit-scrollbar-thumb {
    background: #004098;
    border-radius: 3px;
}

.teacher-detail-content::-webkit-scrollbar-thumb:hover {
    background: #003579;
}

/* 打印样式 */
@media print {
    .teacher-detail-sidebar,
    .floa_btn,
    .copyright {
        display: none;
    }
    
    .teacher-detail-content {
        padding: 0;
    }
    
    .teacher-basic-info {
        break-inside: avoid;
    }
    
    .content-section {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}
