/* 教师介绍页面样式 */

/* 主容器样式 */
.teachers-container {
    background: #f5f8fc;
    min-height: 100vh;
    padding: 20px 0;
}

.teachers-layout {
    display: flex;
    gap: 20px;
    /* background: #fff; */
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
}

/* 左侧边栏样式 */
.teachers-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;
}

/* 右侧内容区域样式 */
.teachers-content {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-radius: 0 8px 8px 0;
}

/* 面包屑导航样式 */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #004098;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #003579;
}

.breadcrumb .separator {
    color: #999;
    margin: 0 8px;
    font-size: 14px;
}

.breadcrumb .current {
    color: #666;
    font-size: 14px;
}

/* 页面标题样式 */
.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #004098;
    position: relative;
}

.page-title h1:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #d4af37;
}

/* 教师网格布局 */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* 教师卡片样式 */
.teacher-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.teacher-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #004098;
}

.teacher-photo {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-photo img {
    transform: scale(1.05);
}

/* 默认头像样式 */
.teacher-photo:before {
    content: '';
    font-size: 60px;
    color: #004098;
    opacity: 0.6;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.teacher-photo img[src*="placeholder"] {
    display: none;
}

.teacher-info {
    padding: 20px 15px;
    background: #fff;
}

.teacher-name {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.teacher-title {
    font-size: 14px;
    color: #666;
    margin: 0;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
}

.teacher-card:hover .teacher-title {
    background: #004098;
    color: #fff;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .teachers-layout {
        flex-direction: column;
    }
    
    .teachers-sidebar {
        width: 100%;
        order: 2;
    }
    
    .teachers-content {
        order: 1;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    .menu-item {
        flex: 1;
        min-width: 150px;
    }
}

@media screen and (max-width: 768px) {
    .teachers-content {
        padding: 20px 15px;
    }
    
    .teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .teacher-photo {
        height: 150px;
    }
    
    .teacher-info {
        padding: 15px 10px;
    }
    
    .teacher-name {
        font-size: 16px;
    }
    
    .teacher-title {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .teacher-photo {
        height: 120px;
    }
    
    .teacher-photo:before {
        font-size: 40px;
    }
    
    .teacher-info {
        padding: 10px 8px;
    }
    
    .teacher-name {
        font-size: 14px;
    }
    
    .teacher-title {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* 加载动画 */
.teacher-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片悬停效果增强 */
/*.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 64, 152, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}*/

.teacher-card:hover::before {
    opacity: 1;
}

.teacher-info {
    position: relative;
    z-index: 2;
}

/* 特殊效果：卡片边框动画 */
.teacher-card {
    position: relative;
    overflow: visible;
}

.teacher-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #004098, #d4af37, #004098);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.teacher-card:hover::after {
    opacity: 1;
}

/* 优化滚动条样式 */
.teachers-content::-webkit-scrollbar {
    width: 6px;
}

.teachers-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.teachers-content::-webkit-scrollbar-thumb {
    background: #004098;
    border-radius: 3px;
}

.teachers-content::-webkit-scrollbar-thumb:hover {
    background: #003579;
}
