
/* 幻灯片外层容器 */
.fullscreen-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

@media (min-width: 768px) {
    .fullscreen-carousel {
        height: calc(100vh - 50px);
    }
}

.carousel,
.carousel-inner,
.carousel-inner > .item {
    height: 100%;
    width: 100%;
}

.carousel-inner > .item {
    overflow: hidden;
    position: relative;
}

/* 淡入淡出切换 */
.carousel-inner > .item {
    -webkit-transition: opacity 1s ease-in-out;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block !important;
    position: absolute;
}
.carousel-inner > .item.active {
    opacity: 1;
    z-index: 2;
    position: relative;
}
.carousel-inner > .item.next,
.carousel-inner > .item.prev {
    opacity: 0;
    z-index: 1;
}
.carousel-inner > .item.left,
.carousel-inner > .item.right {
    left: 0;
    transform: none;
}

/* 图片缩放动画 */
.carousel-inner > .item > img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1);
    animation: zoomLoop 14s ease-in-out infinite alternate;
    object-fit: cover;
}
@keyframes zoomLoop {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(2); }
}
@media (max-width: 767px) {
    .carousel-inner > .item > img {
        animation-duration: 8s;
    }
}

/* 遮罩层 */
.carousel-item-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 文字区域：垂直 + 水平居中 */
.carousel-caption {
    z-index: 3;
    background: transparent;
    left: 10%;
    right: 10%;
    bottom: auto;
    transform: translateY(-50%);
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}
.carousel-caption h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

/* 原始箭头样式 完整保留 */
.carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.fullscreen-carousel:hover .carousel-control {
    opacity: 0.7;
    visibility: visible;
}
.carousel-control:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3) !important;
}
.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right {
    font-size: 40px;
    color: white;
    text-shadow: 0 2px 6px black;
}

/* 缩略图容器：放到箭头内部，解决闪烁 */
.carousel-thumb-popup {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 6;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    /* 关键：让鼠标从箭头到缩略图不"掉下去" */
    pointer-events: none;
}
/* 左侧缩略图：初始左移出视口，hover 从左向右滑入 */
.carousel-thumb-popup.left {
    left: 0;
    transform: translateY(-50%) translateX(-100%);
}
/* 右侧缩略图：初始右移出视口，hover 从右向左滑入 */
.carousel-thumb-popup.right {
    right: 0;
    transform: translateY(-50%) translateX(100%);
}
/* 缩略图 无边框 */
.carousel-thumb-popup img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: none;
    display: block;
}
/* 标题栏 纯黑色背景 */
.carousel-thumb-popup .thumb-title {
    background: #000;
    color: #fff;
    padding: 6px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* hover 整个箭头区域，不隐藏箭头，只盖一层缩略图 */
.carousel-control:hover .carousel-thumb-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto; /* 缩略图可以点击 */
}

/* 圆点指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    z-index: 5;
    list-style: none;
}
 
/* 父容器负责绝对定位、居中 */
.down {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}
/* 仅控制文字颜色 */
.down > a {
    color: #fff;
    text-decoration: none;
}

.carousel-indicators li {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    text-indent: -9999px;
    border: 1px solid #fff;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0;
    line-height: 0;
}
.carousel-indicators .active {
    background-color: var(--text-default);
    border-color: var(--text-default);
}

/* ========== 新增：轮播进度条样式 ========== */
.carousel-progress-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 10;
}
.carousel-progress-bar .progress-line {
    height: 100%;
    width: 0%;
}

/* 移动端*/
@media (max-width: 767px) {
    .carousel-thumb-popup {
        display: none !important;
    }
	.carousel-control .glyphicon-chevron-left,
    .carousel-control .glyphicon-chevron-right {
        font-size: 20px;
    }
	.carousel-caption h3 {font-size: 1.2rem !important; font-weight: 600 !important;}
	.carousel-caption p {font-size: 1rem !important;  margin-bottom: 1rem !important;}
}

@media (min-width: 768px) and (max-width: 991px) {
    .carousel-indicators {
        bottom: 15px;
    }
}
@media (min-width: 992px) {
    .carousel-indicators {
        bottom: 25px;
    }
}
 
/* 针对幻灯片放大方向 */
.kenburnimg img {
   transform-origin: center center !important;
}
 
 