/* 团队介绍部分样式 - 使用本站配色 */
.team-section {
    position: relative;
    padding: 100px 0 0 0;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    overflow: hidden;
    width: 100%;
}

/* 标题样式 */
.team-section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.team-section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.team-section-title .title-container {
    display: block;
    margin-bottom: 10px;
}

.team-section-title .english-title {
    display: inline;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 500;
}

.team-section-title .english-subtitle {
    display: inline;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.team-title {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 团队网格布局 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 2px;
    width: 100%;
    max-width: 100%;
    background-color: var(--bg-primary);
}

/* 团队成员样式 */
.team-member {
    position: relative;
    background-color: var(--bg-card);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.team-member.empty-cell {
    background-color: var(--bg-secondary);
    padding: 0;
    border: none;
}

.team-member.empty-cell:hover {
    background-color: var(--bg-secondary);
}

.team-member:hover {
    background-color: var(--bg-secondary);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.15);
}

.team-member:nth-child(odd) {
    background-color: var(--bg-card);
}

.team-member:hover:nth-child(odd) {
    background-color: var(--bg-secondary);
}

/* 不同样式的空白单元格 */
.team-member.empty-cell.dark-cell {
    background-color: var(--bg-secondary);
}

.team-member.empty-cell.dark-cell:hover {
    background-color: var(--bg-secondary);
}

.team-member.empty-cell.light-cell {
    background-color: var(--bg-primary);
}

.team-member.empty-cell.light-cell:hover {
    background-color: var(--bg-primary);
}

/* 成员头像基本样式 */
.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.member-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 0 rgba(139, 92, 246, 0.3);
    transition: box-shadow 0.4s ease;
}

.team-member:hover .member-photo::after {
    box-shadow: inset 0 0 0 4px rgba(139, 92, 246, 0.3);
}

.team-member:hover .member-photo {
    border-color: var(--primary-color);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all 0.4s ease;
}

.team-member:hover .member-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* 成员信息基本样式 */
.member-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 单元格类型的特殊样式 */
.team-member.photo-cell {
    padding: 20px 10px;
    background-color: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.team-member.photo-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
    z-index: -1;
    transition: height 0.4s ease;
}

.team-member.photo-cell:hover::before {
    height: 100%;
}

.team-member.info-cell {
    padding: 15px 20px;
    background-color: var(--bg-card);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.team-member.info-cell::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.team-member.info-cell:hover::after {
    width: 100%;
}

.team-member.photo-cell:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15);
    background-color: var(--bg-secondary);
}

.team-member.info-cell:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15);
    background-color: var(--bg-secondary);
}

/* 成员头像 */
.photo-cell .member-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

/* 成员信息 */
.info-cell .member-info {
    padding: 10px 0;
}

.member-name {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.member-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.member-specialty {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.member-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
}

/* TEAM 大字母显示 */
.team-big-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 1);
    text-transform: uppercase;
    padding: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: scale(0.3) translateY(80px) rotateX(-90deg);
    animation: teamLetterFadeIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.team-big-letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: teamLetterShine 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.team-big-letter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    animation: teamLetterGlow 2s ease-in-out infinite;
    animation-delay: 1s;
}

/* 为每个字母设置不同的动画延迟 */
.team-grid .team-big-letter:nth-of-type(1) {
    animation-delay: 0s;
}

.team-grid .team-big-letter:nth-of-type(2) {
    animation-delay: 0.15s;
}

.team-grid .team-big-letter:nth-of-type(3) {
    animation-delay: 0.3s;
}

.team-grid .team-big-letter:nth-of-type(4) {
    animation-delay: 0.45s;
}

@keyframes teamLetterFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(80px) rotateX(-90deg);
    }
    60% {
        transform: scale(1.15) translateY(-15px) rotateX(10deg);
    }
    80% {
        transform: scale(0.95) translateY(5px) rotateX(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

@keyframes teamLetterShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes teamLetterGlow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.team-big-letter:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.6), inset 0 0 40px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .team-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-big-letter {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-section-title {
        font-size: 2rem;
    }
    
    .team-section-title .english-title {
        font-size: 1.4rem;
    }
    
    .team-section-title .english-subtitle {
        font-size: 0.9rem;
    }
    
    .team-big-letter {
        font-size: 6rem;
    }
    
    .team-section {
        padding: 60px 0 0 0;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-big-letter {
        font-size: 4rem;
        padding: 0.8rem;
        border-width: 2px;
    }
    
    .team-big-letter::before,
    .team-big-letter::after {
        display: none; /* 在小屏幕上禁用闪光效果以提升性能 */
    }
}
