/* Team page specific styles */
:root {
    --primary-orange: #FF6B35;
    --primary-blue: #1E90FF;
}

/* Common styles */
.hero-team, .profile-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(30, 144, 255, 0.05));
    padding-bottom: 40px;
}

/* Team cards */
.team-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.team-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.team-card:hover::after {
    opacity: 1;
}

/* Profile styles */
.profile-content {
    background: white;
    padding: 40px 0;
}

.profile-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Image styles */
.team-image, .profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-width: 8px;
}

.team-image img, .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content styles */
.team-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.section-title {
    color: var(--primary-blue);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30, 144, 255, 0.1);
    font-size: 1.5rem;
    font-weight: 500;
}

/* Role and contact info */
.role {
    color: var(--primary-orange);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.project-role {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-info {
    color: #666;
    font-size: 0.95rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-orange);
}

/* Lists and tags */
.affiliation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.affiliation-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #666;
}

.affiliation-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-orange);
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.interest-tag {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(30, 144, 255, 0.05));
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(30, 144, 255, 0.1));
    transform: translateY(-2px);
}

/* Timeline */
.timeline-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid #e9ecef;
}

.timeline-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-item .institution {
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 3px;
}

.timeline-item .department,
.timeline-item .year {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

/* Responsive */
@media (max-width: 991px) {
    .team-card {
        margin-bottom: 30px;
    }
    .profile-image {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .team-image, .profile-image {
        width: 150px;
        height: 150px;
    }
    .profile-info h1 {
        font-size: 2rem;
    }
}

/* 在现有的CSS中添加 */

.leadership-roles {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.role-badge {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(30, 144, 255, 0.08));
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.role-badge:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(30, 144, 255, 0.12));
    transform: translateY(-2px);
}

.role-title {
    display: block;
    color: var(--primary-orange);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.role-org {
    display: block;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

.skills-section .skill-category {
    margin-bottom: 1.5rem;
}

.skills-section h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-links .btn {
    margin-right: 0.5rem;
}

/* Projects Slider Styles - 新设计 */
.projects-slider {
    position: relative;
    padding: 20px 0;
}

.swiper-container {
    padding: 20px 0;
    overflow: hidden;
}

/* 移除原有的导航按钮 */
.swiper-button-next,
.swiper-button-prev {
    display: none;
}

/* 美化分页指示器 */
.swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #e0e0e0;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 24px; /* 活动状态下变长 */
    border-radius: 5px; /* 活动状态下变成胶囊形状 */
    background: var(--primary-orange);
}

/* 项目卡片样式优化 */
.project-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    height: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-item:hover::after {
    opacity: 1;
}

/* 添加触摸提示 */
.projects-slider::before {
    content: 'Swipe to see more';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #999;
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .project-item {
        margin: 0 10px;
        padding: 20px;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* team page image styles and effects */
.team-image {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 107, 53, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

/* hover effect */
.team-image:hover {
    border-color: rgba(30, 144, 255, 0.2);
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* image styles and effects */
.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* hover image effect */
.team-image:hover img {
    transform: scale(1.1);
}

/* shine effect */
.team-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    transform: skewX(-25deg);
    transition: all 0.75s;
    z-index: 1;
}

.team-image:hover::before {
    animation: shine 0.75s;
}

/* shine animation */
@keyframes shine {
    100% {
        left: 125%;
    }
}

/* gradient border rotation animation */
.team-image::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        var(--primary-orange), 
        var(--primary-blue), 
        var(--primary-orange)
    );
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.team-image:hover::after {
    opacity: 1;
    animation: borderRotate 4s linear infinite;
}

/* border gradient rotation animation */
@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* click effect */
.team-image:active {
    transform: scale(0.98);
}

/* ensure links do not affect animation */
.team-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* responsive styles */
@media (max-width: 768px) {
    .team-image {
        width: 150px;
        height: 150px;
    }
    
    .team-image:hover {
        transform: scale(1.05);
    }
}