.hexo-carousel {
  position: relative;
  width: 100%;
  max-width: 800px; /* 与文章内容区同宽 */
  margin: 20px auto; /* 居中显示 */
  overflow: hidden;
  border-radius: 8px;
}

/* 轮播容器：相对定位，用于承载绝对定位的图片 */
.hexo-carousel-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 60%; /* 控制图片比例（高=宽×60%，可调整） */
}

/* 轮播项：绝对定位叠加，默认隐藏 */
.hexo-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* 默认透明 */
  transition: opacity 0.8s ease-in-out; /* 淡入淡出动画 */
}

/* 当前显示的轮播项：不透明 */
.hexo-carousel-item.active {
  opacity: 1;
  z-index: 1; /* 确保在最上层 */
}

/* 图片样式：填充容器 */
.hexo-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持比例并填充容器 */
  display: block;
}

/* 移除按钮（直接不显示） */
.hexo-carousel-btn {
  display: none !important;
}

/* 指示器容器：略微上移，增加半透明背景 */
.hexo-carousel-dots {
  position: absolute;
  bottom: 15px; /* 距离底部距离 */
  left: 50%;
  transform: translateX(-50%); /* 水平居中 */
  display: flex;
  gap: 8px; /* 圆点间距 */
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.2); /* 半透黑背景 */
  border-radius: 20px; /* 圆角背景框 */
  z-index: 10;
}

/* 普通状态圆点 */
.hexo-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6); /* 浅白色圆点 */
  border: 1px solid rgba(255, 255, 255, 0.8); /* 白色细边框 */
  cursor: pointer;
  transition: all 0.3s ease; /* 动画过渡 */
  padding: 0;
  margin: 0;
}

/* 激活状态圆点（当前显示的图片） */
.hexo-carousel-dot.active {
  background: white; /* 纯白色 */
  width: 12px;
  height: 12px; /* 比普通圆点稍大 */
  transform: translateY(-1px); /* 轻微上浮 */
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.8); /* 白色光晕 */
}

/* 鼠标悬停效果（非激活状态） */
.hexo-carousel-dot:not(.active):hover {
  background: rgba(255, 255, 255, 0.8); /* hover时变亮 */
  transform: scale(1.1); /* 轻微放大 */
}