/* 角色展示区域容器 */
.character-showcase {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

#character-container {
  width: 800px;
  height: 450px;
  background: rgba(38, 18, 12, 0.62);
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

#character-container:hover {
  transform: scale(1.02);
}

#character-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: scale(1.1);
  pointer-events: none;
  will-change: opacity, transform;
}

#character-container img.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}

.character-content {
  width: 400px;
  height: 450px;
  background: rgba(38, 18, 12, 0.85);
  margin: 0;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.character-content:hover {
  transform: scale(1.02);
}

.character-info {
  padding: 40px;
  color: white;
  text-align: center;
  position: relative;
  z-index: 2;
}

.character-info h3 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  letter-spacing: 2px;
}

.character-info p {
  font-size: 18px;
  line-height: 1.8;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin: 0;
  opacity: 0.9;
}

/* 轮播图控制按钮 */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* 轮播图指示器 */
.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
  background: #ffd700;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 响应式调整 */
@media (max-width: 1280px) {
  .character-showcase {
    width: 95%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  #character-container,
  .character-content {
    width: 100%;
    max-width: 800px;
  }

  .character-content {
    height: auto;
    min-height: 200px;
    margin-top: 20px;
  }

  .character-info {
    padding: 30px;
  }

  .character-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .character-info p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  #character-container {
    height: 350px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .slider-indicators {
    bottom: 20px;
    padding: 8px 15px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}
