
.nav-carousel-container {
    position: relative;
    width: 100%;
    height: 70vh;
    margin: 0 auto;
    padding: 0 0;
    overflow: hidden;
}

.nav-carousel-slides {
    width: 100%;
    height: 100%;
}

.nav-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    visibility: hidden;
}

.nav-slide.active {
    opacity: 1;
    visibility: visible;
}

.nav-slide img {
    display: flex;
    align-items: center;
    justify-items: center;
    margin: 0 auto;
    width: 100%;
    object-fit: cover;
    height: auto;
}

/* 导航按钮样式 */
.nav-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    border-radius: 50%;
}

.nav-carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-prev {
    left: 10px;
}

.nav-next {
    right: 10px;
}

/* 指示点样式 */
.nav-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.nav-carousel-indicators.active {
    background: #002746;
}

.nav-carousel-indicators span {
    width: 50px;
    height: 2px;
    margin: 0 3px;
    background: #ADAFB1;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s;
}

.nav-carousel-indicators span.active {
    background: #004277;
    border-radius: 0;
}


.nav-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ADAFB1;
    cursor: pointer;
}

.nav-indicator.active {
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 100%;
    background: #004277;
    animation: slideRight 10s linear infinite;
}


.line-container {
    width: 50px;
    height: 2px;
    background: #CCC; /* 深色背景 */
    border-radius: 4px;
    overflow: hidden; /* 隐藏超出部分 */
    position: relative;
}

@keyframes slideRight {
    0% {
        transform: translateX(0); /* 初始位置 */
    }
    100% {
        transform: translateX(200%); /* 向右移动200%（覆盖容器宽度+自身宽度） */
    }
}

/* 响应式设计 */
@media (max-width: 768px) {

    .nav-carousel-container {
        height: 160px;
    }

    .nav-slide img {
        height: 160px;
    }

    .nav-carousel-indicators {
        gap: 4px;
    }

    .nav-carousel-indicators span {
        width: 30px;
    }

    .line-container {
        width: 30px;
    }

}