/* 轮播图容器样式 */
.swiper-container {
    width: 100%;
    margin: auto;
    position: relative;
}
.swiper-slide a {
    width: 100%;
}
/* 轮播图中每个幻灯片的样式 */
.swiper-slide {
    display: flex; !important;
    /*justify-content: center;*/
    /*align-items: center;*/
    /*font-size: 2em;*/
    text-align: center;
}

/* 轮播图中图片的样式 */
.swiper-slide img {
    width: 100%;
    max-height: 360px;
    margin: 0 auto;
}

/* 分页器样式 */
.swiper-container .swiper-pagination {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: flex;
    gap: 5px;
}

/* 分页器中非活动点的样式 */
.swiper-container .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5); /* 半透明白色 */
    opacity: 1;
    transition: background-color 0.3s;
    border-radius: 50%; /* 圆形 */
}



/* 向前和向后导航按钮的共同样式 */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0; /* 设置为0，使其不是圆形 */
}

/* 向前导航按钮的样式 */
.swiper-button-next {
    right: 60px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* 向后导航按钮的样式 */
.swiper-button-prev {
    left: 60px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}


.image-slider .swiper-wrapper {
    width: 100%;
}

.image-slider .swiper-slide {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
}

.image-slider .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover; /* 背景图片覆盖整个链接区域 */
    background-position: center; /* 背景图片居中 */
}

.content {
    display: flex;
    justify-content: space-between;
}

.image-slider, .news-announcement {
    /*margin: 10px; !* 添加一些外边距 *!*/
}

/* 图片标题样式 */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    color: white;
    padding: 5px;
    text-align: center;
    white-space: nowrap; /* 不换行 */
    overflow: hidden; /* 隐藏超出的内容 */
    text-overflow: ellipsis; /* 使用省略号表示被省略的内容 */
}

/* 左右切换按钮样式 */
.btn-prev, .btn-next {
    color: #fff;
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}


/* 确保图片适应新的高度 */
.image-slider .swiper-slide a {
    display: block;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.swiper-container .swiper-pagination-bullet-active {
    background: #0e2f76; /* 页面的蓝色调 */
}

.swiper-container:hover .buttonNext, .swiper-container:hover .buttonPrev {
    opacity: 1;
    visibility: visible;
}
.buttonNext, .buttonPrev {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}



/* 响应式调整 */
@media (max-width: 768px) {

    .dropdown:hover .dropdown-content {
        display: block;
    }

}

@media (max-width: 480px) {
    .topbar a, .dropdown-content a {
        padding: 10px 15px;
        font-size: 14px;
    }
}
