/* ============================================
   团队介绍页面 - 专属样式
   炫酷科技感 x 霓虹灯效 x 红紫渐变
   ============================================ */

/* ========== 团队区域 ========== */
.team-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 15, 26, 1) 100%);
}

/* ========== 团队成员卡片 ========== */
.team-card {
    text-align: center;
    padding: 40px 25px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(155, 93, 229, 0.5);
    box-shadow: 0 0 30px rgba(155, 93, 229, 0.3), 0 0 60px rgba(230, 57, 70, 0.15);
}

/* 头像区域 */
.team-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}
.team-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(155, 93, 229, 0.3);
    transition: var(--transition);
}
.team-card:hover .team-avatar {
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(155, 93, 229, 0.5);
}

/* 无头像 - 姓名首字母圆形 */
.team-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.team-card:hover .team-avatar-placeholder {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.4), 0 0 60px rgba(155, 93, 229, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 头像光环 */
.team-avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--neon-blue)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: spin 6s linear infinite;
}
.team-card:hover .team-avatar-ring {
    opacity: 1;
}

/* 卡片内容 */
.team-card-body {
    padding: 0;
}
.team-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.team-position {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 12px;
}
.team-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 社交信息覆盖层 */
.team-social-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, transparent, rgba(10, 10, 15, 0.95));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}
.team-card:hover .team-social-overlay {
    transform: translateY(0);
    opacity: 1;
}
.team-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(155, 93, 229, 0.15);
    border: 1px solid rgba(155, 93, 229, 0.3);
    color: var(--secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.team-social-link:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
    transform: translateY(-3px);
}

/* 卡片底部光效 */
.team-card-glow {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, rgba(155, 93, 229, 0.08) 50%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.team-card:hover .team-card-glow {
    opacity: 1;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-card {
        padding: 30px 20px 25px;
    }
    .team-avatar-wrap {
        width: 100px;
        height: 100px;
    }
    .team-avatar,
    .team-avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.4rem;
    }
}
