﻿

/* 轮播容器 */
.carousel-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    /*border-radius: 8px;*/
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 轮播文字说明 */
.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    border-radius: 5px;
    max-width: 80%;
}

.carousel-caption h3 {
    margin-bottom: 10px;
}

/* 导航按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-caption {
        bottom: 10px;
        padding: 10px;
    }
    
    .carousel-caption h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .carousel-control {
        padding: 10px;
        font-size: 18px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    #flash{
        height:108px;
        top:0px;
    }
}

@media (max-width: 480px) {
    .carousel-caption {
        display: none; /* 在小屏幕上隐藏文字 */
    }
    #flash{
        height:108px;
        top:0px;
    }
}