﻿.faculty-page {
    background: #fff;
}

/* 选项卡 */
.faculty-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.faculty-tab {
    min-width: 120px;
    padding: 8px 24px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000033;
    font-size: 18px;
    text-decoration: none;
    border-radius: 4px;
    /* transition: all 0.3s; */
}

.faculty-tab.active {
    width: 201px;
    height: 51px;
    background: url('../hnu-images/teachers/faculty-title-badge@2x.png') center center no-repeat;
    background-size: cover;
    color: #C13432;
    border-radius: 4px;
}

.faculty-tab:hover:not(.active) {
    opacity: 0.85;
}

/* 分区标题 */
.faculty-section-block {
    margin-bottom: 64px;
}



.faculty-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.faculty-section-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../hnu-images/teachers/icon-scholar@2x.png') center center no-repeat;
    background-size: contain;
    border-radius: 0;
    color: transparent;
    font-size: 0;
}

.faculty-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 教师网格 */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faculty-card {
    display: flex;

    background: #fff;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); */
    text-decoration: none;
    overflow: hidden;
    /* transition: all 0.3s ease; */
}

.faculty-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.faculty-photo {
    width: 172px;
    height: 210px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* transition: transform 0.5s ease; */
}

.faculty-card:hover .faculty-photo img {
    transform: scale(1.05);
}

.faculty-info {
    /* width: 386px; */
    width: 100%;
    height: 210px;
    /* flex-shrink: 0; */
    padding: 35px 40px 18px 40px;
    display: flex;
    flex-direction: column;
    background: #F8F8FB;
    /* transition: all 0.3s ease; */
    position: relative;
}

/* 水印装饰 */
.faculty-info::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 17px;
    width: 65px;
    height: 65px;
    background: url('../hnu-images/teachers/logo-hnu-card@2x.png') 100% 100% no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.faculty-info>* {
    position: relative;
    z-index: 1;
}

.faculty-header {
    display: flex;
    align-items: center;
    gap: 11.5px;
    margin-bottom: 15px;
}

.faculty-name {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    width: 70px;
    flex-shrink: 0;
    /* transition: color 0.3s ease; */
}

.faculty-rank {
    font-size: 14px;
    color: #C41E24;
    /* transition: color 0.3s ease; */
}

.faculty-meta {
    font-size: 14px;
    color: #666;
    line-height: 31px;
    overflow-wrap: break-word;
    /* transition: color 0.3s ease; */
}

.faculty-meta span {
    color: #999;
    /* transition: color 0.3s ease; */
    display: inline-block;
    width: 70px;
    margin-right: 11.5px;
}

.faculty-more {
    position: absolute;
    right: 24px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../hnu-images/teachers/icon-more-dots-b.png') center center no-repeat;
    background-size: contain;
    font-size: 0;
    /* transition: all 0.3s ease; */
}

.faculty-card:hover .faculty-more {
    background: url('../hnu-images/teachers/icon-more-dots-w.png') center center no-repeat;
    background-size: contain;
}

/* 悬停态：红色波浪背景 + 白色文字 */
.faculty-card:hover .faculty-info {
    background: url('../hnu-images/teachers/faculty-info-card-bg@2x.png') center center no-repeat;
    background-size: cover;
}

.faculty-card:hover .faculty-info::after {}

.faculty-card:hover .faculty-name,
.faculty-card:hover .faculty-rank,
.faculty-card:hover .faculty-meta {
    color: #fff;
}

.faculty-card:hover .faculty-meta span {
    color: #fff;
}

/* ==================== 响应式适配补充（以 1920px 为基准） ==================== */

/* 1200px–1920px：等比例缩放 */
@media (min-width: 1201px) and (max-width: 1920px) {
    .faculty-tabs {
        gap: clamp(8px, 0.52vw, 10px);
        margin-bottom: clamp(20px, 2.08vw, 40px);
    }

    .faculty-tab {
        min-width: clamp(90px, 6.25vw, 120px);
        padding: clamp(6px, 0.42vw, 8px) clamp(14px, 1.25vw, 24px);
        font-size: clamp(14px, 0.94vw, 18px);
    }

    .faculty-tab.active {
        width: clamp(130px, 10.47vw, 201px);
        height: clamp(38px, 2.66vw, 51px);
        padding: clamp(6px, 0.42vw, 8px) clamp(10px, 0.63vw, 12px);
    }

    .faculty-section-block {
        margin-bottom: clamp(30px, 3.33vw, 64px);
    }

    .faculty-section-header {
        gap: clamp(8px, 0.52vw, 10px);
        margin-bottom: clamp(12px, 1.15vw, 22px);
    }

    .faculty-section-icon {
        width: clamp(24px, 1.67vw, 32px);
        height: clamp(24px, 1.67vw, 32px);
    }

    .faculty-section-title {
        font-size: clamp(15px, 0.94vw, 18px);
    }

    .faculty-grid {
        gap: clamp(12px, 1.04vw, 20px);
    }

    .faculty-card {
        overflow: hidden;
    }

    .faculty-photo {
        width: clamp(120px, 8.96vw, 172px);
        height: clamp(145px, 10.94vw, 210px);
    }

    .faculty-info {
        height: clamp(145px, 10.94vw, 210px);
        padding: clamp(18px, 1.82vw, 35px) clamp(20px, 2.08vw, 40px) clamp(10px, 0.94vw, 18px);
        overflow: hidden;
    }

    .faculty-info::after {
        width: clamp(45px, 3.39vw, 65px);
        height: clamp(45px, 3.39vw, 65px);
        top: clamp(10px, 0.89vw, 17px);
        right: clamp(8px, 0.73vw, 14px);
    }

    .faculty-header {
        gap: clamp(10px, 0.6vw, 11.5px);
        margin-bottom: clamp(8px, 0.78vw, 15px);
    }

    .faculty-name {
        font-size: clamp(17px, 1.15vw, 22px);
        width: clamp(60px, 4.58vw, 70px);
        flex-shrink: 0;
    }

    .faculty-rank {
        font-size: clamp(12px, 0.73vw, 14px);
    }

    .faculty-meta {
        font-size: clamp(12px, 0.73vw, 14px);
        line-height: clamp(20px, 1.61vw, 31px);
    }

    .faculty-meta span {
        display: inline-block;
        width: clamp(60px, 4.58vw, 70px);
        margin-right: clamp(10px, 0.6vw, 11.5px);
    }

    .faculty-more {
        width: clamp(22px, 1.56vw, 30px);
        height: clamp(22px, 1.56vw, 30px);
        right: clamp(12px, 1.25vw, 24px);
        bottom: clamp(6px, 0.52vw, 10px);
    }
}

/* ≤1200px：紧凑桌面布局 */
@media (max-width: 1200px) {
    .faculty-tabs {
        gap: 8px;
        margin-bottom: 30px;
    }

    .faculty-tab {
        min-width: 100px;
        padding: 7px 18px;
        font-size: 16px;
    }

    .faculty-tab.active {
        width: 160px;
        height: 42px;
        padding: 7px 12px;
    }

    .faculty-section-block {
        margin-bottom: 40px;
    }

    .faculty-section-header {
        margin-bottom: 18px;
    }

    .faculty-section-icon {
        width: 28px;
        height: 28px;
    }

    .faculty-section-title {
        font-size: 17px;
    }

    .faculty-grid {
        gap: 15px;
    }

    .faculty-photo {
        width: 150px;
        height: 184px;
    }

    .faculty-info {
        height: 184px;
        padding: 24px 28px 14px;
        overflow: hidden;
    }

    .faculty-info::after {
        width: 55px;
        height: 55px;
        top: 14px;
        right: 12px;
    }

    .faculty-header {
        gap: 10.5px;
        margin-bottom: 12px;
    }

    .faculty-name {
        font-size: 20px;
        width: 65px;
        flex-shrink: 0;
    }

    .faculty-rank {
        font-size: 13px;
    }

    .faculty-meta {
        font-size: 13px;
        line-height: 26px;
    }

    .faculty-meta span {
        display: inline-block;
        width: 65px;
        margin-right: 10.5px;
    }

    .faculty-more {
        width: 26px;
        height: 26px;
        right: 16px;
        bottom: 8px;
    }
}

/* ≤992px：平板/窄屏，教师卡片进一步缩小 */
@media (max-width: 992px) {
    .faculty-tabs {
        margin-bottom: 24px;
    }

    .faculty-tab {
        min-width: 90px;
        padding: 6px 14px;
        font-size: 15px;
    }

    .faculty-tab.active {
        width: 140px;
        height: 38px;
        padding: 6px 10px;
    }

    .faculty-section-block {
        margin-bottom: 32px;
    }

    .faculty-section-icon {
        width: 26px;
        height: 26px;
    }

    .faculty-section-title {
        font-size: 16px;
    }

    .faculty-grid {
        gap: 12px;
    }

    .faculty-photo {
        width: 130px;
        height: 160px;
    }

    .faculty-info {
        height: 160px;
        padding: 18px 22px 12px;
        overflow: hidden;
    }

    .faculty-info::after {
        width: 48px;
        height: 48px;
        top: 12px;
        right: 10px;
    }

    .faculty-header {
        gap: 10.5px;
        margin-bottom: 10px;
    }

    .faculty-name {
        font-size: 18px;
        width: 65px;
        flex-shrink: 0;
    }

    .faculty-rank {
        font-size: 13px;
    }

    .faculty-meta {
        font-size: 13px;
        line-height: 22px;
    }

    .faculty-meta span {
        display: inline-block;
        width: 65px;
        margin-right: 10.5px;
    }

    .faculty-more {
        width: 24px;
        height: 24px;
        right: 14px;
        bottom: 6px;
    }
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .faculty-tabs {
        margin-bottom: 16px;
    }

    .faculty-tab {
        flex: 1;
        min-width: 0;
        padding: 0;
        height: auto;
        font-size: 14px;
    }

    .faculty-tab.active {
        width: 130px;
        height: 40px;
        padding: 8px 12px;
        background-size: cover;
    }

    .faculty-section-block {
        margin-bottom: 24px;
    }

    .faculty-section-header {
        margin-bottom: 12px;
    }

    .faculty-section-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .faculty-section-title {
        font-size: 16px;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faculty-photo {
        width: 120px;
        height: 140px;
    }

    .faculty-info {
        height: 140px;
        padding: 8px 12px;
        justify-content: center;
    }

    .faculty-info::after {
        width: 50px;
        height: 50px;
        top: 10px;
        right: 10px;
    }

    .faculty-header {
        gap: 4px;
        margin-bottom: 6px;
    }

    .faculty-name {
        font-size: 16px;
        width: 60px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .faculty-rank {
        font-size: 14px;
        margin-bottom: 0;
    }

    .faculty-meta {
        font-size: 14px;
        line-height: 1.6;
        overflow-wrap: break-word;
    }

    .faculty-meta span {
        width: 60px;
        margin-right: 4px;
    }
}

/* ≤576px：小屏手机优化 */
@media (max-width: 576px) {
    .faculty-tabs {
        margin-bottom: 14px;
        gap: 8px;
    }

    .faculty-tab {
        flex: 1;
        min-width: 0;
        padding: 6px 8px;
        font-size: 13px;
    }

    .faculty-tab.active {
        width: auto;
        min-width: 90px;
        height: auto;
        min-height: 34px;
        padding: 6px 10px;
        background-size: cover;
    }

    .faculty-section-block {
        margin-bottom: 20px;
    }

    .faculty-section-header {
        margin-bottom: 10px;
        gap: 6px;
    }

    .faculty-section-icon {
        width: 22px;
        height: 22px;
    }

    .faculty-section-title {
        font-size: 15px;
    }

    .faculty-grid {
        gap: 12px;
    }

    .faculty-photo {
        width: 100px;
        height: 124px;
    }

    .faculty-page .faculty-info {
        height: auto;
        min-height: 124px;
        padding: 8px 10px 6px;
        overflow: hidden;
        justify-content: center;
    }

    .faculty-page .faculty-info::after {
        width: 38px;
        height: 38px;
        top: 8px;
        right: 8px;
    }

    .faculty-page .faculty-header {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        margin-bottom: 6px;
    }

    .faculty-page .faculty-name {
        font-size: 15px;
        width: 60px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .faculty-page .faculty-rank {
        font-size: 12px;
        margin-bottom: 0;
    }

    .faculty-page .faculty-meta {
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: break-word;
    }

    .faculty-page .faculty-meta span {
        width: 60px;
        margin-right: 4px;
    }

    .faculty-page .faculty-more {
        width: 22px;
        height: 22px;
        right: 10px;
        bottom: 6px;
    }
}