/* =========================================================
   zb-show-02  1300 × 700 立体舞台装备轮播
   原HTML结构不用改：
   .zb-show-02-container > .zb-show-02-item > img
   左右立体侧翼与底部控制器均不占用图片的1300 × 700区域
   ========================================================= */

.zb-show-02-container {
    --zb-stage-width: 1300px;
    --zb-stage-height: 700px;
    --zb-wing-width: 92px;
    --zb-control-height: 46px;
    width: var(--zb-stage-width);
    max-width: calc(100vw - 200px);
    margin: 0 auto;
    position: relative;
    display: block;
    box-sizing: border-box;
    overflow: visible;
    isolation: isolate;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.zb-show-02-container *,
.zb-show-02-container *::before,
.zb-show-02-container *::after {
    box-sizing: border-box;
}

/* JS载入前只显示第一张，避免多张图片纵向排开 */
.zb-show-02-container:not([data-zb-stage-ready="1"]) > .zb-show-02-item {
    width: 100%;
    aspect-ratio: 13 / 7;
    overflow: hidden;
}

.zb-show-02-container:not([data-zb-stage-ready="1"]) > .zb-show-02-item:not(:first-child) {
    display: none;
}

.zb-show-02-container:not([data-zb-stage-ready="1"]) > .zb-show-02-item > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* -------------------------- 立体舞台 -------------------------- */
.zb-show-02-stage {
    width: 100%;
    position: relative;
    aspect-ratio: 13 / 7;
    transform-style: preserve-3d;
    overflow: visible;
}

.zb-show-02-screen {
    position: absolute;
    inset: 0;
    z-index: 5;
    /* 允许翻转中的图片越过1300×700画面边界，完整显示3D透视平面 */
    overflow: visible;
    background: #02050b;
    box-shadow:
        0 22px 46px rgba(0, 0, 0, .46),
        0 5px 16px rgba(0, 0, 0, .32),
        inset 0 0 0 1px rgba(135, 220, 255, .18);
    transform: translateZ(0) scale(1);
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    perspective: 1800px;
    perspective-origin: 50% 50%;
    transition: transform .40s cubic-bezier(.22, .72, .25, 1), box-shadow .40s ease;
    will-change: transform;
}

.zb-show-02-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 2px rgba(128, 218, 255, .12),
        inset 0 0 42px rgba(0, 11, 32, .25);
}

.zb-show-02-container.is-zb-stage-switching .zb-show-02-screen {
    transform: translateZ(-10px) scale(.9);
    box-shadow:
        0 30px 68px rgba(0, 0, 0, .58),
        0 8px 22px rgba(0, 0, 0, .38),
        inset 0 0 0 1px rgba(135, 220, 255, .20);
}

.zb-show-02-screen > .zb-show-02-item {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    /* 这里不能裁切，否则 rotateY 时超出中间画面的部分会被截掉 */
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
}

.zb-show-02-screen > .zb-show-02-item.is-zb-stage-active,
.zb-show-02-screen > .zb-show-02-item.is-zb-stage-moving {
    opacity: 1;
    visibility: visible;
}

.zb-show-02-screen > .zb-show-02-item.is-zb-stage-active {
    z-index: 4;
    pointer-events: auto;
}

.zb-show-02-screen > .zb-show-02-item.is-zb-stage-moving {
    z-index: 7;
}

.zb-show-02-screen > .zb-show-02-item > img {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    inset: 0;
    display: block !important;
    object-fit: cover;
    transform: none !important;
    transition: none !important;
    filter: none !important;
    box-shadow: none !important;
    -webkit-user-drag: none;
    user-select: none;
}

/* -------------------------- 左右真实3D图片平面 -------------------------- */
.zb-show-02-wing {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 2;
    overflow: hidden;
    background-color: #101827;
    opacity: .94;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform .48s cubic-bezier(.22, .72, .25, 1), filter .48s ease, opacity .48s ease;
    will-change: transform, filter;
}

/* 这里放的是完整IMG，不是背景裁切；IMG会随整个平面一起产生透视形变 */
.zb-show-02-wing > img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    object-fit: cover;
    transform: none !important;
    transition: none !important;
    filter: none !important;
    -webkit-user-drag: none;
    user-select: none;
}

.zb-show-02-wing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.zb-show-02-wing::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 2px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(116, 225, 255, .72) 20%, rgba(101, 129, 255, .34) 72%, transparent);
    box-shadow: 0 0 10px rgba(60, 198, 255, .35);
}

.zb-show-02-wing-left {
    left: -100%;
    transform-origin: 100% 50%;
    transform: perspective(12000px) rotateY(-85deg);
    filter: brightness(.50) saturate(.80);
}

.zb-show-02-wing-left::before {
    background: linear-gradient(90deg, rgba(1, 5, 13, .82), rgba(11, 38, 72, .26) 70%, rgba(105, 211, 255, .12));
}

.zb-show-02-wing-left::after { right: 0; }

.zb-show-02-wing-right {
    left: 100%;
    transform-origin: 0 50%;
    transform: perspective(12000px) rotateY(85deg);
    filter: brightness(.50) saturate(.80);
}

.zb-show-02-wing-right::before {
    background: linear-gradient(270deg, rgba(1, 5, 13, .82), rgba(11, 38, 72, .26) 70%, rgba(105, 211, 255, .12));
}

.zb-show-02-wing-right::after { left: 0; }

/*
 * 切换时两侧始终向各自的外侧扭动：
 * 左图向左（负角度加大），右图向右（正角度加大）。
 * 不再让上一张/下一张的方向把两张侧图带向同一边。
 */
.zb-show-02-container.is-zb-stage-switching .zb-show-02-wing-left {
    transform: perspective(12000px) translateX(-8px) rotateY(-88deg);
    filter: brightness(.42) saturate(.72);
}

.zb-show-02-container.is-zb-stage-switching .zb-show-02-wing-right {
    transform: perspective(12000px) translateX(8px) rotateY(88deg);
    filter: brightness(.42) saturate(.72);
}

/* -------------------------- 底部控制器 -------------------------- */
.zb-show-02-controls {
    width: min(720px, 78%);
    min-height: var(--zb-control-height);
    margin: 20px auto 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 12;
}

.zb-show-02-arrow {
    flex: 0 0 var(--zb-control-height);
    width: var(--zb-control-height);
    height: var(--zb-control-height);
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(117, 216, 255, .40);
    border-radius: 2px;
    outline: 0;
    color: #18314b;
    background: linear-gradient(180deg, #fff, #d9eff7);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .30), inset 0 0 0 1px rgba(255, 255, 255, .82);
    cursor: pointer;
    transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}

.zb-show-02-arrow::before,
.zb-show-02-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.zb-show-02-arrow::before {
    width: 21px;
    height: 2px;
    left: 12px;
    background: currentColor;
}

.zb-show-02-arrow::after {
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.zb-show-02-arrow-prev::after {
    left: 10px;
    transform: translateY(-50%) rotate(-135deg);
}

.zb-show-02-arrow-next::after {
    right: 10px;
    transform: translateY(-50%) rotate(45deg);
}

.zb-show-02-arrow:hover:not(:disabled),
.zb-show-02-arrow:focus-visible:not(:disabled) {
    filter: brightness(1.08) saturate(1.15);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 9px 19px rgba(0, 0, 0, .38), 0 0 15px rgba(71, 193, 255, .28);
}

.zb-show-02-arrow:active:not(:disabled) {
    transform: translateY(0) scale(.96);
}

.zb-show-02-arrow:disabled {
    opacity: .28;
    cursor: default;
}

.zb-show-02-dots {
    min-width: 0;
    min-height: var(--zb-control-height);
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 28px;
    border: 1px solid rgba(100, 206, 255, .23);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(3, 11, 24, .98), rgba(0, 3, 10, .98));
    box-shadow: 0 6px 16px rgba(0, 0, 0, .34), inset 0 0 18px rgba(33, 142, 211, .07);
}

.zb-show-02-dot {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(226, 248, 255, .86);
    border-radius: 50%;
    outline: 0;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 rgba(81, 208, 255, 0);
    cursor: pointer;
    transition: transform .24s ease, background .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.zb-show-02-dot:hover,
.zb-show-02-dot:focus-visible {
    transform: scale(1.24);
    border-color: #fff;
}

.zb-show-02-dot.is-zb-stage-dot-active {
    border-color: #6be4ff;
    background: #e8fbff;
    transform: scale(1.16);
    box-shadow: 0 0 10px rgba(67, 207, 255, .82);
}

@media (max-width: 800px) {
    .zb-show-02-container {
        max-width: calc(100vw - 32px);
        --zb-control-height: 40px;
    }

    .zb-show-02-wing { display: none; }
    .zb-show-02-controls { width: 100%; gap: 9px; margin-top: 12px; }
    .zb-show-02-dots { gap: 12px; padding: 0 14px; }
    .zb-show-02-dot { width: 11px; height: 11px; flex-basis: 11px; }
    .zb-show-02-arrow::before { width: 18px; left: 10px; }
    .zb-show-02-arrow-prev::after { left: 8px; }
    .zb-show-02-arrow-next::after { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .zb-show-02-screen,
    .zb-show-02-wing,
    .zb-show-02-arrow,
    .zb-show-02-dot {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
