/* ============ DepthCarousel（Vanilla JS + GSAP 移植，无 React） ============ */
.depth-carousel {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: var(--dc-perspective, 1200px);
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  direction: ltr; /* 锁死 LTR，3D 坐标系跨语言一致 */
  overflow: hidden;
}
.depth-carousel:active { cursor: grabbing; }
.depth-carousel:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 4px; border-radius: 12px; }

.depth-carousel__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.depth-carousel__card {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: center center;
  overflow: hidden;
  background: #0b0d12;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.65), 0 8px 20px -10px rgba(0,0,0,0.5);
  will-change: transform, opacity, filter;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.depth-carousel__card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; -webkit-user-drag: none;
  filter: grayscale(0.22) brightness(0.94);
}
/* 右下角暗角遮罩，覆盖生成水印（不影响主体画面） */
.depth-carousel__card::after {
  content: "";
  position: absolute; right: 0; bottom: 0;
  width: 46%; height: 34%;
  background: linear-gradient(135deg, rgba(6,6,8,0) 30%, rgba(6,6,8,0.55) 70%, rgba(6,6,8,0.92) 100%);
  pointer-events: none; z-index: 3;
}
.depth-carousel__tint {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: multiply;
}

/* 圆点 */
.depth-carousel__dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3000;
  display: flex; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(14,16,22,0.4); backdrop-filter: blur(6px);
}
.depth-carousel__dot {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 999px;
  background: rgba(255,255,255,0.32); cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.depth-carousel__dot.is-active { width: 20px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .depth-carousel__card { will-change: auto; }
  .depth-carousel__arrow, .depth-carousel__dot { transition: none; }
}
