/* 本页专属团队相册 — mobile-first 统一断点 */
.team-gallery { margin: 5px auto; }

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.team-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(18, 59, 114, 0.06);
    transition: var(--transition);
}

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

.team-card-text {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.team-card-text h4 {
    font-size: 15px;
    margin: 0 0 4px;
    font-weight: 500;
}

.team-card-text p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 平板（≥769px）：2列 ===== */
@media (min-width:769px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .team-card img {
        height: 280px;
    }

    .team-card-text {
        padding: 14px;
    }

    .team-card-text h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .team-card-text p {
        font-size: 13px;
    }
}

/* ===== 桌面（≥993px）：3列 + hover ===== */
@media (min-width:993px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .team-card img {
        height: 320px;
    }

    .team-card-text {
        padding: 16px;
    }
}

@media (min-width:992px) {
    .team-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 26px rgba(18, 59, 114, 0.12);
    }
}
