/**
 * 团队列表弹窗样式
 * 作者：百家
 */

/* 弹窗容器 */
.tcm-team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.tcm-team-modal.is-active {
    visibility: visible;
    opacity: 1;
}

/* 遮罩层 */
.tcm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* 内容容器 */
.tcm-modal-container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.tcm-team-modal.is-active .tcm-modal-container {
    transform: translateY(0);
}

/* 关闭按钮 */
.tcm-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tcm-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.tcm-modal-close svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* 内容区域 */
.tcm-modal-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
}

/* 加载动画 */
.tcm-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.tcm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示 */
.tcm-modal-error {
    text-align: center;
    padding: 60px 20px;
    color: #dc3545;
    font-size: 16px;
}

/* 阻止body滚动 */
body.tcm-modal-open {
    overflow: hidden;
}

/* 弹窗内的团队详情样式 */
.tcm-modal-content .team-detail-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.tcm-modal-content .team-detail-container.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tcm-modal-container {
        width: 95%;
        max-width: none;
    }
    
    .tcm-modal-content {
        padding: 00px;
    }
}

@media (max-width: 768px) {
    .tcm-modal-container {
        width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .tcm-modal-content {
        padding: 20px;
        max-height: calc(100vh - 60px);
    }
    
    .tcm-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .tcm-modal-close svg {
        width: 18px;
        height: 18px;
    }
}

/* 自定义滚动条 */
.tcm-modal-content::-webkit-scrollbar {
    width: 8px;
}

.tcm-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tcm-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tcm-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== 团队轮播样式 ===== */

/* 轮播容器 */
.tcm-team-carousel-wrapper {
    position: relative;
    padding: 0 50px;
    margin: 0 -50px;
    overflow: hidden;
}

.tcm-team-carousel {
    position: relative;
    overflow: visible;
    padding-bottom: 50px;
}

/* 轮播图片铺满 */
.tcm-team-carousel .tcm-team-image,
.tcm-team-carousel .tcm-team-image-placeholder {
    width: 100%;
    overflow: hidden;
}

.tcm-team-carousel .tcm-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcm-team-carousel .swiper-wrapper {
    display: flex;
}

.tcm-team-carousel .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.tcm-team-carousel .swiper-slide .tcm-team-card {
    height: 100%;
}

/* 导航箭头 */
.tcm-team-nav-prev,
.tcm-team-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tcm-team-nav-prev:hover,
.tcm-team-nav-next:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tcm-team-nav-prev {
    left: 0;
}

.tcm-team-nav-next {
    right: 0;
}

.tcm-team-nav-prev::after,
.tcm-team-nav-next::after {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.tcm-team-nav-prev.swiper-button-disabled,
.tcm-team-nav-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* 分页点 */
.tcm-team-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.tcm-team-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.tcm-team-pagination .swiper-pagination-bullet-active {
    background: #b5ae92;
    transform: scale(1.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tcm-team-carousel-wrapper {
        padding: 0 40px;
        margin: 0 -40px;
    }
    
    .tcm-team-carousel {
        padding-bottom: 40px;
    }
    
    .tcm-team-nav-prev,
    .tcm-team-nav-next {
        width: 36px;
        height: 36px;
    }
    
    .tcm-team-nav-prev::after,
    .tcm-team-nav-next::after {
        font-size: 14px;
    }
    
    .tcm-team-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

