/*
 * 3D Coverflow 仅封面轮播所需样式（自包含，不依赖 templatemo_595）
 */
.coverflow-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverflow-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  position: relative;
}

.coverflow {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 400px;
}

.coverflow-item {
  position: absolute;
  width: 300px;
  height: 300px;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  user-select: none;
}

.coverflow-item .cover {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  background: #333;
}

.coverflow-item .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.coverflow-item .reflection {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transform: scaleY(-1);
  opacity: 0.2;
  filter: blur(2px);
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 50%,
    rgba(0, 0, 0, 1) 100%);
  overflow: hidden;
}

.coverflow-item.active {
  z-index: 100;
  transform: translateX(0) translateZ(0) rotateY(0deg);
}

.coverflow-item.active .cover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 200;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.nav-button.prev { left: 50px; }
.nav-button.next { right: 50px; }

.dots-container {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 200;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.3);
}

.play-pause-button {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 200;
}

.play-pause-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) scale(1.1);
}

.play-pause-button .pause-icon {
  font-size: 16px;
  letter-spacing: 2px;
}

.image-loading {
  background: linear-gradient(45deg, #333, #555);
  position: relative;
}

.image-loading::after {
  content: '📷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .coverflow-item {
    width: 200px;
    height: 200px;
  }
  .nav-button {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .nav-button.prev { left: 20px; }
  .nav-button.next { right: 20px; }
}

@media (max-width: 480px) {
  .coverflow-item {
    width: 180px;
    height: 180px;
  }
}

/* ===== 【尺寸加固】2026-09-04: 封面摊开序列不再撑宽页面 =====
   coverflow 所有 item 绝对定位+translateX 横向摊开(6×300px 起),
   溢出部分属于舞台装饰; 在最外层裁剪, 不破坏内层 preserve-3d 效果 */
.coverflow-wrapper {
  overflow: hidden;   /* 仅裁剪, 不产生滚动条 */
  max-width: 100%;
}
