/* 科研团队页 - 三层：首席专家 / 核心科研骨干（人物卡片）+ 研究方向团队（团队卡片） */

/* ========== 分组标题（与组织机构页一致：浅灰底 + 左侧红竖条） ========== */
.team-block {
    margin-bottom: 44px;
}

.team-block:last-child {
    margin-bottom: 0;
}

.team-block-title {
    display: flex;
    align-items: center;
    height: 62px;
    margin-bottom: 26px;
    background: var(--bg-card);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.team-block-bar {
    flex-shrink: 0;
    width: 4px;
    height: 100%;
    margin-right: 14px;
    background: var(--accent-red);
}

/* ========== 人物卡片 ========== */
.team-people {
    display: grid;
    gap: 22px;
}

.team-people--chief {
    grid-template-columns: repeat(2, 1fr);
}

/* 首席专家为横向布局：照片顶端对齐，避免被 flex 行高拉伸（否则 aspect-ratio 失效） */
.team-people--chief .team-person-photo {
    align-self: flex-start;
}

.team-people--member {
    grid-template-columns: repeat(3, 1fr);
}

.team-person {
    display: flex;
    gap: 18px;
    padding: 22px;
    background: var(--bg-card);
    border-radius: var(--radius);
    transition: box-shadow .2s, background .2s;
}

.team-person:hover {
    background: var(--bg-lighter-blue);
    box-shadow: 0 6px 18px rgba(10, 79, 150, .08);
}

.team-person-photo {
    flex-shrink: 0;
    width: 96px;
    /* 与默认照片 li.jpg（178×231）同比例，保证整张照片完整显示不被裁切 */
    aspect-ratio: 178 / 231;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--gradient-blue), var(--deep-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-person-body {
    min-width: 0;
    flex: 1;
}

.team-person-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.team-person-title {
    margin-top: 6px;
    font-size: 14px;
    color: var(--primary-blue);
}

.team-person-direction {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    font-size: 13px;
    color: var(--primary-blue);
    background: var(--bg-light-blue);
    border-radius: 2px;
}

.team-person-desc {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-sub);
    text-align: justify;
}

/* 骨干卡片：竖向更紧凑 */
.team-people--member .team-person {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.team-people--member .team-person-direction {
    margin-top: 8px;
}

/* ========== 研究方向团队卡片 ========== */
.team-teams {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: var(--radius);
    transition: box-shadow .2s, transform .2s;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(10, 79, 150, .1);
}

.team-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-light-blue);
}

.team-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-body {
    padding: 20px 22px 24px;
}

.team-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
}

.team-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
}

.team-card-meta-item {
    font-size: 13px;
    color: var(--text-more);
}

.team-card-desc {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-sub);
    text-align: justify;
}
