/* 专业介绍九宫格样式 */
.uk-padding-xsmall .uk-card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.uk-padding-xsmall img {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.uk-padding-xsmall:hover .uk-card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.uk-padding-xsmall:hover img {
    transform: scale(1.15);
}

/* 容器样式 */
.part5Con九宫格 {
    height: 420px;
    overflow: hidden;
    border-radius: 8px;
}

.part5Con七宫格 {
    height: 480px;
    overflow: hidden;
    border-radius: 8px;
}

.history-slideshow-container {
    height: 420px;
    overflow: hidden;
    border-radius: 50px 0 50px 0;
}

.part5Con九宫格 .uk-slider {
    height: 100% !important;
}

/* 历史瞬间轮播图样式 */
.history-slideshow-container .history-slideshow {
    height: 100% !important;
    border-radius: 8px;
    overflow: hidden;
}

.history-slideshow-container .history-slideshow .uk-position-relative {
    height: 100% !important;
}

.history-slideshow-container .history-slideshow .uk-slideshow-items {
    height: 100% !important;
    aspect-ratio: auto !important;
}

.history-slideshow-container .history-slideshow .mynews {
    height: 100% !important;
}

.history-slideshow-container .history-slideshow .mynews a {
    height: 100% !important;
    display: block !important;
    position: relative;
}

.history-slideshow-container .history-slideshow .mynews img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .part5Con九宫格,
    .history-slideshow-container {
        height: auto !important;
    }
    
    /* 历史瞬间轮播图修复 */
    .history-slideshow-container {
        width: 100% !important;
        height: 300px !important;
    }
    
    /* 移动端专业介绍布局 */
    .part5Con七宫格 {
        width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
    }
    
    /* 使用列布局实现2列显示 */
    .part5Con七宫格 .uk-grid-small {
        display: block !important;
        column-count: 2 !important;
        column-gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 确保所有卡片都能正确显示 */
    .part5Con七宫格 .uk-grid-small > div,
    .part5Con七宫格 .uk-grid-small > div > a {
        display: inline-block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        break-inside: avoid !important;
    }
    
    /* 确保嵌套的div也能正确显示 */
    .part5Con七宫格 .uk-grid-small > div > div {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 调整图片高度 */
    .part5Con七宫格 .uk-card {
        height: 150px !important;
    }
    
    .part5Con七宫格 .uk-card > div {
        height: 100% !important;
    }
    
    .part5Con七宫格 .uk-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* 学院新闻轮播图样式 */
.news-slideshow {
    /* 可以在这里添加学院新闻轮播图的独立样式 */
}
.news-slideshow .uk-slideshow-items {
    /* 学院新闻轮播图容器样式 */
}
.news-slideshow .mynews {
    /* 学院新闻轮播图项样式 */
}
.news-slideshow .mynews a {
    /* 学院新闻轮播图链接样式 */
}
.news-slideshow .mynews img {
    /* 学院新闻轮播图图片样式 */
}

/* 历史瞬间轮播图样式 */
div.history-slideshow {
    height: 540px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
div.history-slideshow .uk-slideshow-items {
    height: 100% !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
div.history-slideshow .mynews {
    height: 100% !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
div.history-slideshow .mynews a {
    display: block !important;
    height: 100% !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
div.history-slideshow .mynews img {
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* 轮播图悬停效果 */
.uk-slideshow-items li:hover img {
    transform: scale(1.1);
}

/* 自定义轮播指示器样式 */
.uk-slideshow-nav.uk-dotnav li {
    margin: 0 5px;
}

.uk-slideshow-nav.uk-dotnav li a {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.uk-slideshow-nav.uk-dotnav li.uk-active a {
    background: rgba(255, 255, 255, 0.9);
    width: 24px;
}

/* reveal2 动画效果 */
.reveal2 {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.tabCon:hover .reveal2 {
    transform: scale(1.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 1.5s infinite;
}

.tabs2 a:hover .reveal2 {
    color: #fff;
}

.swiper-slide a:hover .reveal2 {
    color: #fff;
}

@keyframes pulse {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1.2);
    }
}

/* news-item-link 动画效果 */
.news-item-link {
    display: block;
    transition: all 0.3s ease;
}

.news-item-link:hover {
    transform: scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: newsPulse 1.5s infinite;
}

@keyframes newsPulse {
    0% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.02);
    }
}