/* ===== 轮播图 5 种样式 ===== */

/* 公共容器 */
.carousel-wrap{position:relative;width:100%;overflow:hidden;border-radius:var(--radius,8px);background:#000}
.carousel-wrap img{display:block;width:100%;height:100%;object-fit:cover}
.carousel-track{position:relative;width:100%;min-height:200px}

/* ===== 样式1：经典淡入 ===== */
.carousel-style-1 .carousel-slide{position:absolute;inset:0;opacity:0;transition:opacity .6s ease;pointer-events:none}
.carousel-style-1 .carousel-slide.active{opacity:1;pointer-events:auto}
.carousel-style-1 .carousel-slide a{display:block;width:100%;height:100%}
.carousel-style-1 .carousel-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:3}
.carousel-style-1 .carousel-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer;transition:all .2s}
.carousel-style-1 .carousel-dots span.active{background:#fff;width:20px;border-radius:4px}

/* ===== 样式2：左右滑动 ===== */
.carousel-style-2{display:flex;align-items:center}
.carousel-style-2 .carousel-viewport{flex:1;overflow:hidden;min-width:0}
.carousel-style-2 .carousel-slider{display:flex;transition:transform .4s ease}
.carousel-style-2 .carousel-slide{flex:0 0 100%;min-width:0}
.carousel-style-2 .carousel-slide a{display:block;width:100%;height:100%}
.carousel-style-2 .carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.4);color:#fff;border:none;font-size:22px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.carousel-style-2 .carousel-arrow:hover{background:rgba(0,0,0,.7)}
.carousel-style-2 .carousel-prev{left:8px}
.carousel-style-2 .carousel-next{right:8px}
.carousel-style-2 .carousel-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:3}
.carousel-style-2 .carousel-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer;transition:all .2s}
.carousel-style-2 .carousel-dots span.active{background:#fff;width:20px;border-radius:4px}

/* ===== 样式3：卡片堆叠 3D ===== */
.carousel-style-3{perspective:1000px;min-height:240px}
.carousel-style-3 .carousel-stack{position:relative;width:100%;height:200px}
.carousel-style-3 .carousel-card{position:absolute;top:0;left:0;width:80%;height:100%;margin-left:10%;border-radius:10px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.3);transition:all .5s cubic-bezier(.25,.46,.45,.94);opacity:0;transform:scale(.7) translateX(0);z-index:1}
.carousel-style-3 .carousel-card.active{opacity:1;transform:scale(1) translateX(0);z-index:3}
.carousel-style-3 .carousel-card.prev{opacity:.5;transform:scale(.8) translateX(-60%);z-index:2}
.carousel-style-3 .carousel-card.next{opacity:.5;transform:scale(.8) translateX(60%);z-index:2}
.carousel-style-3 .carousel-card img{width:100%;height:100%;object-fit:cover}
.carousel-style-3 .carousel-card-title{position:absolute;bottom:0;left:0;right:0;padding:10px 14px;color:#fff;font-size:13px;font-weight:600;background:linear-gradient(transparent,rgba(0,0,0,.7))}
.carousel-style-3 .carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:10;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.4);color:#fff;border:none;font-size:22px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.carousel-style-3 .carousel-arrow:hover{background:rgba(0,0,0,.7)}
.carousel-style-3 .carousel-prev{left:8px}
.carousel-style-3 .carousel-next{right:8px}

/* ===== 样式4：全屏沉浸 ===== */
.carousel-style-4 .carousel-track{min-height:300px}
.carousel-style-4 .carousel-slide{position:absolute;inset:0;opacity:0;transition:opacity .8s ease;pointer-events:none;display:flex;align-items:flex-end;padding:24px}
.carousel-style-4 .carousel-slide.active{opacity:1;pointer-events:auto}
.carousel-style-4 .carousel-slide-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.carousel-style-4 .carousel-slide-overlay{position:absolute;inset:0;background:linear-gradient(transparent 40%,rgba(0,0,0,.7))}
.carousel-style-4 .carousel-slide-title{position:relative;z-index:2;color:#fff;font-size:22px;font-weight:700;text-shadow:0 2px 8px rgba(0,0,0,.5);margin-bottom:8px}
.carousel-style-4 .carousel-slide-link{position:relative;z-index:2;display:inline-block;padding:6px 18px;border:1px solid rgba(255,255,255,.6);border-radius:20px;color:#fff;font-size:13px;text-decoration:none;transition:all .2s}
.carousel-style-4 .carousel-slide-link:hover{background:rgba(255,255,255,.2);border-color:#fff}
.carousel-style-4 .carousel-dots{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:3}
.carousel-style-4 .carousel-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer;transition:all .2s}
.carousel-style-4 .carousel-dots span.active{background:#fff;width:20px;border-radius:4px}

/* ===== 样式5：胶片缩略图 ===== */
.carousel-style-5 .carousel-track{min-height:200px}
.carousel-style-5 .carousel-slide{position:absolute;inset:0;opacity:0;transition:opacity .5s ease;pointer-events:none}
.carousel-style-5 .carousel-slide.active{opacity:1;pointer-events:auto}
.carousel-style-5 .carousel-slide a{display:block;width:100%;height:100%}
.carousel-style-5 .carousel-thumbs{display:flex;gap:4px;padding:4px;background:rgba(0,0,0,.8);overflow-x:auto}
.carousel-style-5 .carousel-thumb{flex:0 0 60px;height:36px;border-radius:4px;overflow:hidden;cursor:pointer;opacity:.5;transition:all .2s;border:2px solid transparent}
.carousel-style-5 .carousel-thumb.active{opacity:1;border-color:#fff}
.carousel-style-5 .carousel-thumb img{width:100%;height:100%;object-fit:cover}

/* ===== 响应式 ===== */
@media(max-width:768px){
    .carousel-track{min-height:140px}
    .carousel-style-3 .carousel-stack{height:160px}
    .carousel-style-3 .carousel-card{width:85%;margin-left:7.5%}
    .carousel-style-4 .carousel-track{min-height:200px}
    .carousel-style-4 .carousel-slide-title{font-size:16px}
    .carousel-style-2 .carousel-arrow,.carousel-style-3 .carousel-arrow{width:30px;height:30px;font-size:18px}
    .carousel-style-5 .carousel-thumb{flex:0 0 44px;height:28px}
}
