/* 全屏轮播Banner - 高度减小 */
.carousel-section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* 优化轮播容器高度 */
.carousel-section .carousel {
    min-height: 300px;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .carousel-section .carousel {
        height: 50vh;
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .carousel-section .carousel {
        height: 40vh;
        min-height: 200px;
    }

    /* 隐藏指示器在小屏幕上 */
    .carousel-indicators {
        display: none;
    }
}

/* 增强控制按钮可见性 */
.carousel-control-prev, .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

/* 标题卡片样式 */
.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* 优化指示器位置 */
.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}


.content-auto {
    content-visibility: auto;
}

.text-balance {
    text-wrap: balance;
}

.news-title-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-slide {
    transition: transform 0.5s ease-in-out;
}

.header-bg {
    background-image: url('../img/zjbg.png');
    background-size: cover;
    background-position: center;
}

.header-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgb(80, 179, 244), rgba(67, 114, 249, 0.65)); /* 透明到半透明渐变 */
    z-index: 1;
}


/* 修复更多链接布局 */
.more-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.more-link i {
    margin-left: 5px;
}

/* 修复表头布局 */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-title {
    flex-grow: 1;
}

.header-more {
    flex-shrink: 0;
}


