/* 轮播图容器 */
.carousel-container {
    width: 100%;
    max-width: none;  /* 可调整最大宽度 */
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
    margin-top: 0 !important;
    height: 120vh;           
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

/* 轮播图轨道 */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out; 
    transform: translateX(-100%); /* 这行，初始位置偏移到第一张图片 */
}


/* 单个轮播图片 */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; 
}

/* 左右控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;     /* 调整透明度 */
    color: white;
    border: none;
    width: 30px;                       /* 调整宽度 */
    height: 30px;                      /* 调整高度 */
    border-radius: 50%;
    font-size: 16px;                   /* 调整箭头大小 */
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 底部指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 30px;                       /* 改横线宽度 */
    height: 3px;                       /* 改横线高度 */
    border-radius: 2px;                /* 改小圆角，不是圆形 */
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scaleX(1.2);            /* 横向拉伸而不是整体放大 */
    /* 或者使用 width: 40px; 来增加宽度 */
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scaleX(1.1);            /* 悬停时稍微拉伸 */
}
/* 响应式设计 */
@media (max-width: 768px) {
    .carousel {
        height: 250px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 200px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
}

/* 轮播图文字描述 */
.slide-overlay {
    position: absolute; /* 绝对定位 */
    top: 0; /* 绝对定位 */
    left: 0; /* 绝对定位 */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;    /* 改为 flex-start，让内容靠左 */
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: left;           /* 改为 left，文字左对齐 */
    padding-left: 150px;         /* 添加左边距，避免贴边 */
    z-index: 5; /* 让文字在轮播图下面 */
}
/* 标题和描述 */
.slide-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: left;           /* 标题左对齐 */
}
/* 描述 */
.slide-description {
    font-size: 2rem;
    color: rgba(230, 230, 230, 0.95);
    max-width: 90%; /* 限制最大宽度 */
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: left;           /* 描述左对齐 */
}
