/* zb-show-01：固定尺寸三卡双面无限翻转 */
.zb-show-01-container {
  --zb-card-width: 425px;
  --zb-card-height: 600px;
  --zb-card-gap: 18px;
  width: 1311px;
  height: 600px;
  position: relative;
  margin: 0 auto;
  perspective: 1800px;
  perspective-origin: 50% 46%;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  /* FIX-4：容器接收焦点后的外观；outline 由 focus-visible 控制 */
  outline: none;
}

.zb-show-01-container *{
  box-sizing: border-box;
}

/* FIX-4：键盘焦点可见指示（仅键盘，不影响鼠标点击后的样式） */
.zb-show-01-container:focus-visible {
  outline: 2px solid rgba(235, 125, 11, .7);
  outline-offset: 4px;
}

.zb-show-01-scroll-area,
.zb-show-01-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
}

.zb-show-01-image-list {
  display: none !important;
}

.zb-show-01-flip-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--zb-card-gap);
  transform-style: preserve-3d;
}

.zb-show-01-flip-card {
  width: var(--zb-card-width);
  height: var(--zb-card-height);
  position: relative;
  flex: 0 0 var(--zb-card-width);
  transform-style: preserve-3d;
  will-change: transform;
}

.zb-show-01-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #070b10;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 28px 62px rgba(0, 0, 0, .5);
}

.zb-show-01-flip-face.is-zb-back {
  transform: rotateY(180deg);
}

.zb-show-01-flip-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #070b10;
  -webkit-user-drag: none;
  user-select: none;
}

.zb-show-01-flip-face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, .13),
    transparent 24%,
    transparent 78%,
    rgba(255, 143, 28, .1)
  );
  mix-blend-mode: screen;
}

/* 左右切换按钮：在原位置基础上向下移动100px */
.zb-show-01-move-left,
.zb-show-01-move-right {
  width: 54px;
  height: 82px;
  position: absolute;
  top: calc(38% + 20px);
  z-index: 30;
  display: grid !important;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #eb7d0b !important;
  background-image: none !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .43),
    0 0 0 1px rgba(255, 255, 255, .14) inset;
  cursor: pointer;
  transition:
    transform .2s ease,
    background .2s ease,
    opacity .2s ease;
}

.zb-show-01-move-left {
  left: -72px;
}

.zb-show-01-move-right {
  right: -72px;
}

.zb-show-01-move-left span,
.zb-show-01-move-right span {
  font: 42px/1 Arial;
  color: #fff;
  transform: translateY(-2px);
}

.zb-show-01-move-left:hover,
.zb-show-01-move-right:hover {
  background: #ff982c !important;
  transform: translateY(-50%) scale(1.08);
}

.zb-show-01-container.is-zb-loading .zb-show-01-move-left,
.zb-show-01-container.is-zb-loading .zb-show-01-move-right,
.zb-show-01-container.is-zb-busy .zb-show-01-move-left,
.zb-show-01-container.is-zb-busy .zb-show-01-move-right {
  pointer-events: none;
  opacity: .42;
}

.zb-show-01-loader {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #ffc078;
  background: rgba(5, 9, 14, .94);
  font: 700 12px/1 Arial, "Microsoft YaHei";
  letter-spacing: 4px;
  transition:
    opacity .38s ease,
    visibility .38s ease;
}

.zb-show-01-loader::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 145, 35, .18);
  border-top-color: #ff9225;
  border-right-color: #ffbd73;
  box-shadow: 0 0 20px rgba(255, 126, 18, .25);
  animation: zb-loader-spin .8s linear infinite;
}

.zb-show-01-loader::after {
  content: "图片载入中";
}

.zb-show-01-loader.is-zb-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes zb-loader-spin {
  to { transform: rotate(360deg); }
}

.zb-show-01-clear {
  display: none !important;
}

@media (max-width: 760px) {
  .zb-show-01-move-left {
    left: 8px;
  }

  .zb-show-01-move-right {
    right: 8px;
  }

  .zb-show-01-move-left,
  .zb-show-01-move-right {
    width: 44px;
    height: 66px;
  }
}

/* FIX-5：reduced-motion — 禁用翻转动画，卡片直接切换；同时减缓 loader 动画 */
@media (prefers-reduced-motion: reduce) {
  .zb-show-01-loader::before {
    animation-duration: 1.8s;
  }

  /* 翻转卡片动画禁用：transition 极短，视觉上瞬切 */
  .zb-show-01-flip-card {
    transition: none !important;
  }
}
