/* 轮播图样式 */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 386px;
    object-fit: cover;
}

/* 扁平指示器样式 */
.carousel-indicators {
    bottom: 0px;
}

.carousel-indicators li {
    width: 20px;
    height: 5px;
    border-radius: 0;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: #fff;
    width: 30px;
}

/* 内容模块样式 */
.content-module {
    padding: 30px 0;
    /*background-color: #f9f9f9;*/
}

.article-card-module{
    /*background: #f9f9f9;*/
}
.card-box{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.card-list{
    display: flex;
    flex-direction: column;
    width: 48%;
    border: 1px solid #D9D9D9;
    border-top: 2px solid #01418B;
    padding:15px 20px 20px;
}
.card-list .title-box{
    display: flex;
    justify-content: space-between;
}
.card-list .title-box .list-title{
    color: var(--deep-blue-color);
    display: flex;
    margin-bottom: 1em;
}
.card-list .title-box .title-content{
    border-bottom: 2px solid #126fc1;
    padding-bottom: 0.5em;
    display: flex;
    align-items: center;
}
.card-list .title-content .box {
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-list .ban{
    height: 12px;
    width: 95px;
    background-color: rgba(218, 235, 255, 1);
    position: absolute;
    z-index: -1;
}
.card-list .title-content h5 {
    margin-bottom: 0;
    padding-left: 7px;
    padding-right: 7px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #126fc1;
}
.card-list .content-box{
    width: 100%;
}
.card-list .content-box .image-box{
    float:left;
    overflow:hidden;
    margin-right:7px;
    width: 30%;
    height: 100px;
    background: #0a5cad;
}
.card-list .content-box .image-box img{
    width: 100%;
    height: 100%;
}
.card-list .content-box .article-item {
    padding-top: 2px;
    padding-bottom: 2px;
    height: 35px;
    line-height: 35px;
    display: flex;
    justify-content: space-between;
}
.card-list .content-box .article-item a{
    width: 75%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #181818;
    list-style: none;
    font-size: 14px;
    text-decoration: none;
}
.card-list .content-box .article-item a:hover{
    color: #0a5cad;
    padding-left: 0px;
}
.card-list .content-box .article-item:nth-child(n+4) a{
    width: 83%;
}
.card-list .more a{
    color: #126fc1;
    font-size: 14px;
}

/* 长条广告位样式 */
.banner-ad {
    padding: 0;
    /*background-color: #f9f9f9;*/
}

.ad-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-container:hover .ad-image {
    transform: scale(1.02);
}

.ad-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 92, 173, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    padding: 20px;
}


/*文章切换栏目*/
.tab-controls {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #0a5cad;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #0a5cad;
}

.tab-btn:hover {
    color: #0a5cad;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.article-list {
    list-style: none;
    padding: 0;
}

.article-item {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-date {
    color: #999;
    font-size: 0.9rem;
    margin-right: 15px;
    white-space: nowrap;
}

.article-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.article-title:hover {
    color: #0a5cad;
    text-decoration: none;
}

/* 基础容器样式：控制图片尺寸，溢出隐藏 */
.video-card {
    position: relative; /* 作为子元素（遮罩、按钮）的定位容器 */
    width: 500px; /* 图片宽度，可根据需求调整 */
    min-height: 100px; /* 图片高度，可根据需求调整 */
    overflow: hidden; /* 防止子元素超出容器 */
    cursor: pointer; /* 鼠标悬浮时显示“手”型，提示可点击 */
}

/* 图片样式：填满容器，保持比例 */
.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，填满容器（裁剪超出部分） */
    transition: all 0.3s ease; /* 图片过渡效果，可选 */
}

/* 遮罩层样式：半透明黑色，默认隐藏（hover 时显示） */
.video-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 黑色遮罩，透明度 60% */
    opacity: 0; /* 默认完全透明（隐藏） */
    transition: opacity 0.3s ease; /* 遮罩显示/隐藏过渡，更流畅 */
}

/* 播放按钮样式：居中显示，图标用 CSS 绘制（无需外部图片） */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 绝对居中 */
    width: 60px; /* 按钮宽度 */
    height: 60px; /* 按钮高度 */
    border-radius: 50%; /* 圆形按钮 */
    background-color: rgba(255, 255, 255, 0.6); /* 白色背景，轻微透明 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* 默认隐藏 */
    transition: all 0.3s ease; /* 按钮过渡效果 */
    z-index: 10; /* 确保按钮在遮罩层上方 */
    color: #fff;
}

/* 播放按钮内部的“三角形”（用 CSS 绘制） */
.play-btn::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px; /* 三角形尺寸：上12px、下12px、右0、左20px */
    border-color: transparent transparent transparent #000; /* 三角形颜色：黑色（仅左侧有颜色） */
    margin-left: 2px; /* 微调三角形位置，使其更居中 */
}


/* 可选：悬浮时图片轻微缩放，增强交互感 */
.video-card:hover img {
    transform: scale(1.05); /* 图片放大 5% */
}

/* ------------- 若需要“默认显示遮罩和按钮”，替换上方 hover 相关样式为以下代码 ------------- */

.video-mask, .play-btn {
    opacity: 1; 
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1); 
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-item img {
        height: 200px;
    }
    
    .carousel-caption {
        left: 5%;
        right: 20%;
    }
    
    .carousel-caption h5 {
        font-size: 2rem;
    }
    
    /* 广告位响应式调整 */
    .ad-title {
        font-size: 1.5rem;
    }
    
    .ad-container {
        height: 100px;
    }
    
    /* 滚动图片响应式调整 */
    .scroll-image-wrapper {
        width: 250px;
        height: 170px;
    }
    
    /* 模块响应式 */
    .module-image, .featured-article {
        margin-bottom: 30px;
        min-height: 300px;
    }
    
    .two-column-module .col-lg-6, .article-list-module .col-lg-6 {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {    
    .carousel-item img {
        height: 150px;
    }
    
    .carousel-caption {
        left: 5%;
        right: 5%;
        bottom: 0;
        transform: none;
        padding-bottom: 30px;
    }
    
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        display: none;
    }
    
    /* 广告位响应式调整 */
    .ad-title {
        font-size: 1.2rem;
    }
    
    .ad-description {
        font-size: 0.9rem;
        display: none;
    }
    
    .ad-container {
        height: 80px;
    }
    
    /* 滚动图片响应式调整 */
    .scroll-image-wrapper {
        width: 400px;
        height: 140px;
    }
    
    .image-caption {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    /* 模块响应式 */
    .tab-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    /* 广告位响应式调整 */
    .ad-container {
        height: 70px;
    }
    
    .ad-button {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
    
    /* 滚动图片响应式调整 */
    .scroll-image-wrapper {
        width: 160px;
        height: 110px;
        margin: 0 8px;
    }
    
    /* 模块响应式 */
    .tab-controls {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
    }
    
    .article-date {
        display: none;
    }
}
.article-date{
    letter-spacing: 0px;
}