/* 团队介绍组件样式 */
/* 使用组件前缀 content-team- 避免与其他组件冲突 */

/* 团队介绍部分样式 */
.content-team-section {
    position: relative;
    padding: 100px 0 0 0;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow: hidden;
    width: 100%;
}

/* 标题样式 */
.content-team-section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.content-team-section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.content-team-title-container {
    display: block;
    margin-bottom: 10px;
}

.content-team-english-title {
    display: inline;
    font-size: 1.8rem;
    color: #8B5CF6;
    margin-right: 10px;
    font-weight: 500;
}

.content-team-english-subtitle {
    display: inline;
    font-size: 1rem;
    color: #cccccc;
    font-weight: 400;
}

.content-team-title {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8B5CF6 0%, #FFB6C1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 团队网格布局 */
.content-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: #0a0a0a;
}

/* 团队成员样式 */
.content-team-member {
    position: relative;
    background-color: #2a2a2a;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-team-member.content-team-empty-cell {
    background-color: #1a1a1a;
    padding: 0;
    border: none;
}

.content-team-member.content-team-empty-cell:hover {
    background-color: #1a1a1a;
}

.content-team-member:hover {
    background-color: #3a3a3a;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.content-team-member:nth-child(odd) {
    background-color: #2a2a2a;
}

.content-team-member:hover:nth-child(odd) {
    background-color: #3a3a3a;
}

/* 不同样式的空白单元格 */
.content-team-member.content-team-empty-cell.content-team-dark-cell {
    background-color: #1a1a1a;
}

.content-team-member.content-team-empty-cell.content-team-dark-cell:hover {
    background-color: #1a1a1a;
}

.content-team-member.content-team-empty-cell.content-team-light-cell {
    background-color: #2a2a2a;
}

.content-team-member.content-team-empty-cell.content-team-light-cell:hover {
    background-color: #2a2a2a;
}

/* 成员头像基本样式 */
.content-team-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;
}

.content-team-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;
}

.content-team-member:hover .content-team-member-photo::after {
    box-shadow: inset 0 0 0 4px rgba(139, 92, 246, 0.3);
}

.content-team-member:hover .content-team-member-photo {
    border-color: #8B5CF6;
}

.content-team-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all 0.4s ease;
}

.content-team-member:hover .content-team-member-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* 成员信息基本样式 */
.content-team-member-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 单元格类型的特殊样式 */
.content-team-member.content-team-photo-cell {
    padding: 20px 10px;
    background-color: #2a2a2a;
    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;
}

.content-team-member.content-team-photo-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    opacity: 0.1;
    z-index: -1;
    transition: height 0.4s ease;
}

.content-team-member.content-team-photo-cell:hover::before {
    height: 100%;
}

.content-team-member.content-team-info-cell {
    padding: 15px 20px;
    background-color: #2a2a2a;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.content-team-member.content-team-info-cell::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    transition: width 0.4s ease;
}

.content-team-member.content-team-info-cell:hover::after {
    width: 100%;
}

.content-team-member.content-team-photo-cell:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    background-color: #3a3a3a;
}

.content-team-member.content-team-info-cell:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    background-color: #3a3a3a;
}

/* 成员头像 */
.content-team-photo-cell .content-team-member-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

/* 成员信息 */
.content-team-info-cell .content-team-member-info {
    padding: 10px 0;
}

.content-team-member-name {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 600;
}

.content-team-member-title {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.9;
}

.content-team-member-specialty {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 12px;
}

.content-team-member-desc {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
}

/* TEAM 大字母显示 */
.content-team-big-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    font-size: 8rem;
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    padding: 1rem;
    border: 3px solid #ffffff;
    opacity: 0;
    transform: scale(0.3) translateY(80px) rotateX(-90deg);
    animation: content-team-letter-fade-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-shadow: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.content-team-big-letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
    animation: content-team-letter-shine 3s ease-in-out infinite;
    animation-delay: 1.5s;
    z-index: -1;
    pointer-events: none;
}

.content-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: content-team-letter-glow 2s ease-in-out infinite;
    animation-delay: 1s;
    z-index: -1;
    pointer-events: none;
}

/* 为每个字母设置不同的动画延迟 */
.content-team-grid .content-team-big-letter:nth-of-type(1) {
    animation-delay: 0s;
    animation: content-team-letter-fade-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               content-team-letter-float 3s ease-in-out infinite;
    animation-delay: 0s, 1.5s;
}

.content-team-grid .content-team-big-letter:nth-of-type(2) {
    animation-delay: 0.15s;
    animation: content-team-letter-fade-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               content-team-letter-float 3s ease-in-out infinite;
    animation-delay: 0.15s, 1.65s;
}

.content-team-grid .content-team-big-letter:nth-of-type(3) {
    animation-delay: 0.3s;
    animation: content-team-letter-fade-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               content-team-letter-float 3s ease-in-out infinite;
    animation-delay: 0.3s, 1.8s;
}

.content-team-grid .content-team-big-letter:nth-of-type(4) {
    animation-delay: 0.45s;
    animation: content-team-letter-fade-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               content-team-letter-float 3s ease-in-out infinite;
    animation-delay: 0.45s, 1.95s;
}

/* 持续浮动动画 */
@keyframes content-team-letter-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes content-team-letter-fade-in {
    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 content-team-letter-shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes content-team-letter-glow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.content-team-big-letter:hover {
    opacity: 1 !important;
    transform: scale(1.1) translateY(-5px) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-color: #ffffff;
    background: #1a1a1a !important;
    color: #ffffff !important;
    animation: content-team-letter-pulse 1s ease-in-out infinite;
    z-index: 10;
}

@keyframes content-team-letter-pulse {
    0%, 100% {
        transform: scale(1.1) translateY(-5px) rotateY(5deg);
        opacity: 1;
        color: #ffffff;
    }
    50% {
        transform: scale(1.15) translateY(-8px) rotateY(8deg);
        opacity: 1;
        color: #ffffff;
    }
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .content-team-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .content-team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .content-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-team-big-letter {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .content-team-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
    }
    
    /* 移动端：图片在上，介绍在下 */
    .content-team-member.content-team-photo-cell {
        grid-column: 1;
        padding: 30px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .content-team-member.content-team-info-cell {
        grid-column: 1;
        padding: 20px;
        text-align: center;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 20px;
    }
    
    /* 移动端：隐藏空单元格 */
    .content-team-member.content-team-empty-cell {
        display: none;
    }
    
    /* 移动端：确保照片和信息配对显示 */
    .content-team-member.content-team-photo-cell + .content-team-member.content-team-info-cell {
        margin-top: 0;
    }
    
    /* 移动端：TEAM字母垂直排列，一行一个字，居中，更大 */
    .content-team-big-letter {
        grid-column: 1 !important;
        font-size: 10rem;
        width: 100%;
        margin: 15px 0;
        display: block;
        text-align: center;
        animation: content-team-letter-fade-in-mobile 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    /* 确保TEAM字母垂直排列，每个字母占据一整行，居中 */
    .content-team-grid .content-team-big-letter:nth-of-type(1) {
        grid-row: auto;
        grid-column: 1;
        animation-delay: 0s;
    }
    
    .content-team-grid .content-team-big-letter:nth-of-type(2) {
        grid-row: auto;
        grid-column: 1;
        animation-delay: 0.2s;
    }
    
    .content-team-grid .content-team-big-letter:nth-of-type(3) {
        grid-row: auto;
        grid-column: 1;
        animation-delay: 0.4s;
    }
    
    .content-team-grid .content-team-big-letter:nth-of-type(4) {
        grid-row: auto;
        grid-column: 1;
        animation-delay: 0.6s;
    }
    
    /* 移动端：成员信息居中显示 */
    .content-team-info-cell .content-team-member-info {
        align-items: center;
        text-align: center;
    }
    
    .content-team-section-title {
        font-size: 2rem;
    }
    
    .content-team-section-title .content-team-english-title {
        font-size: 1.4rem;
    }
    
    .content-team-section-title .content-team-english-subtitle {
        font-size: 0.9rem;
    }
    
    .content-team-section {
        padding: 60px 0 0 0;
    }
}

@keyframes content-team-letter-fade-in-mobile {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px) rotateX(-90deg);
    }
    60% {
        transform: scale(1.1) translateY(-10px) rotateX(10deg);
    }
    80% {
        transform: scale(0.95) translateY(5px) rotateX(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

@media (max-width: 576px) {
    .content-team-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
    }
    
    /* 移动端：图片在上，介绍在下 */
    .content-team-member.content-team-photo-cell {
        grid-column: 1;
        padding: 25px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .content-team-member.content-team-info-cell {
        grid-column: 1;
        padding: 15px;
        text-align: center;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 15px;
    }
    
    /* 移动端：隐藏空单元格 */
    .content-team-member.content-team-empty-cell {
        display: none;
    }
    
    /* 移动端：确保照片和信息配对显示 */
    .content-team-member.content-team-photo-cell + .content-team-member.content-team-info-cell {
        margin-top: 0;
    }
    
    /* 移动端：TEAM字母垂直排列，一行一个字，居中，更大 */
    .content-team-big-letter {
        grid-column: 1 !important;
        font-size: 8rem;
        width: 100%;
        margin: 12px 0;
        padding: 0.8rem;
        border-width: 2px;
        display: block;
        text-align: center;
        animation: content-team-letter-fade-in-mobile 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    /* 确保TEAM字母垂直排列，每个字母占据一整行，居中 */
    .content-team-grid .content-team-big-letter:nth-of-type(1) {
        grid-row: auto;
        grid-column: 1;
        animation-delay: 0s;
    }
    
    .content-team-grid .content-team-big-letter:nth-of-type(2) {
        grid-row: auto;
        grid-column: 1;
        animation-delay: 0.2s;
    }
    
    .content-team-grid .content-team-big-letter:nth-of-type(3) {
        grid-row: auto;
        grid-column: 1;
        animation-delay: 0.4s;
    }
    
    .content-team-grid .content-team-big-letter:nth-of-type(4) {
        grid-row: auto;
        grid-column: 1;
        animation-delay: 0.6s;
    }
    
    /* 移动端：成员信息居中显示 */
    .content-team-info-cell .content-team-member-info {
        align-items: center;
        text-align: center;
    }
    
    .content-team-big-letter::before,
    .content-team-big-letter::after {
        display: none; /* 在小屏幕上禁用闪光效果以提升性能 */
    }
}
