/* 导入字体 */
@font-face {
    font-family: 'SourceHanSansCN-Normal';
    src: local('Source Han Sans CN Normal'),
         local('SourceHanSansCN-Normal');
    font-weight: normal;
    font-style: normal;
}

/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 焦点图主容器样式 */
.uc-home-1 {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

/* 幻灯片容器 */
.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 幻灯片项基础样式 */
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}

/* 当前激活的幻灯片 */
.slide-item.active {
    opacity: 1;
    z-index: 10;
}

/* 视频样式 */
.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border: none;
}

/* 图片样式 */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border: none;
}

/* 渐变图片容器 */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(100%);
    -ms-transform: translateY(100%); /* IE11前缀 */
    opacity: 0;
    z-index: 15;
    pointer-events: none;
}

/* 渐变图片 */
.overlay-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* 视频弹窗样式 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal .video-container {
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
}

.video-modal #modal-video {
    width: 100%;
    height: auto;
    max-height: calc(80vh - 40px);
}

.video-modal .video-close {
    position: absolute;
    top: -30px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.video-modal .video-close:hover {
    transform: rotate(90deg);
}

/* uc-home-3和uc-home-6视频点击样式增强 */
.uc-home-3 .uc-btn[data-url*="mp4"],
.uc-home-3 .img a[data-url*="mp4"] {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.uc-home-3 .uc-btn[data-url*="mp4"]:hover,
.uc-home-3 .img a[data-url*="mp4"]:hover {
    opacity: 0.9;
}

.uc-home-3 .img a[data-url*="mp4"] img {
    transition: transform 0.3s ease;
}

.uc-home-3 .img a[data-url*="mp4"]:hover img {
    transform: scale(1.05);
}

/* uc-home-6案例链接样式 */
.uc-home-6 .list li a.skip-video-modal {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    line-height: 0;
    box-sizing: border-box;
}

.uc-home-6 .list li a.skip-video-modal:hover {
    opacity: 0.9;
}

.uc-home-6 .list li a.skip-video-modal:hover .img img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.uc-home-6 .list li .img img {
    transition: transform 0.3s ease;
    border: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 链接层 */
.slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    cursor: pointer;
    display: block;
}

/* 切换柱容器 */
.pagination-container {
    position: absolute;
    right: 100px;
    bottom: 100px;
    width: 300px;
    height: 5px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 切换柱项 */
.pagination-item {
    flex: 1;
    height: 5px;
    background-color: #78747471;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 当前激活的切换柱 */
.pagination-item.active {
    background-color: #eeeeee;
}

/* 计数器容器 */
.counter-container {
    position: absolute;
    left: 100px;
    bottom: 130px;
    z-index: 25;
    display: flex;
    align-items: baseline;
    font-family: 'SourceHanSansCN-Normal', sans-serif;
    color: #ffffff;
}

/* 当前页码 */
.counter-current {
    font-size: 40px;
    line-height: 1;
    margin-right: 5px;
}

/* 分隔符 */
.counter-separator {
    font-size: 20px;
    line-height: 1;
    margin-right: 5px;
}

/* 总页码 */
.counter-total {
    font-size: 20px;
    line-height: 1;
}

/* IE11 特殊处理 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* IE11 视频处理 */
    .slide-video {
        width: 100%;
        height: 100%;
        object-fit: none;
        -ms-transform: none;
        transform: none;
    }
    
    /* IE11 图片处理 */
    .slide-img {
        position: absolute;
        top: 50%;
        left: 50%;
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
    }
    
    /* IE11 计数器字体回退 */
    .counter-container {
        font-family: Arial, sans-serif;
    }
}