/* 教研组风采和成果展示轮播样式 */
.showcase-section {
    margin-bottom: 25px;
}

.showcase-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1890FF;
}

.showcase-carousel {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    max-height: 150px;
    border-radius: 8px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
    box-sizing: border-box;
}

.carousel-image:hover {
    transform: scale(1.05);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

.empty-showcase {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #f5f5f5;
    border-radius: 8px;
}

/* 详情模态框样式 */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: #e8e8e8;
    color: #333;
}

.modal-image {
    width: 100%;
    /*max-height: 300px;*/
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.modal-type {
    display: inline-block;
    padding: 4px 12px;
    background: #1890FF;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 15px;
}

.modal-body {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    word-wrap: break-word;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 120px;
        max-height: 120px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-indicators {
        bottom: 6px;
        gap: 6px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    .indicator.active {
        width: 16px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .modal-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .modal-body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 100px;
        max-height: 100px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .modal-content {
        width: 98%;
        padding: 15px;
        max-height: 95vh;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        font-size: 13px;
    }
    
    .modal-image {
        margin-bottom: 15px;
    }
}
