/* ==========================================
   轮播图卡片式样式 - 左右分栏布局
   左侧：文章封面图（原图，无遮罩）
   右侧：日期、标题、描述、标签、链接
   轮播指示器：卡片内部右侧垂直排列
   ========================================== */

/* ---- 容器 ---- */
#swiper_container {
  width: 100% !important;
  margin: 20px 0 !important;
}

.blog-slider {
  width: 100% !important;
  height: auto !important;
  min-height: 280px;
  padding: 0 !important;
  overflow: visible;
  position: relative;
}

/* ---- 轮播项 ---- */
.blog-slider__item {
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  padding: 10px;
  box-sizing: border-box;
}

/* Swiper slide 保持可见以支持特效 */
.blog-slider__item {
  display: block !important;
}

/* ---- 卡片主体 ---- */
.blog-slider__card {
  display: flex;
  flex-direction: row;
  width: calc(100% - 60px);
  min-height: 260px;
  background: var(--card-bg, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-right: 60px;
}

.blog-slider__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ---- 左侧图片区（原图，无颜色遮罩） ---- */
.blog-slider__visual {
  flex: 0 0 35%;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.blog-slider__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片区域 - 原图展示，无任何颜色遮罩 */
.blog-slider__visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  z-index: 1;
}

.blog-slider__category {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* ---- 右侧内容区 ---- */
.blog-slider__info {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* 日期 */
.blog-slider__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-slider__date {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}

.blog-slider__date::before {
  content: '📅';
  font-size: 13px;
  margin-right: 2px;
}

/* 标题 */
.blog-slider__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--font-color, #1a1a1a);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  text-decoration: none;
  transition: color 0.2s ease;
  margin: 0;
}

.blog-slider__title:hover {
  color: var(--btn-bg, #3b82f6);
}

/* 描述 */
.blog-slider__text {
  font-size: 14px;
  color: var(--font-color, #666);
  line-height: 1.65;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
  flex: 1;
}

/* 标签组 */
.blog-slider__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.blog-slider__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--trans-light, #f3f4f6);
  color: var(--font-color, #555);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.blog-slider__tag:hover {
  background: var(--btn-bg, #3b82f6);
  color: #fff;
}

/* 底部操作栏 */
.blog-slider__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--trans-light, #f0f0f0);
}

.blog-slider__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--btn-bg, #3b82f6);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-slider__link:hover {
  color: var(--btn-hover-color, #2563eb);
  gap: 8px;
}

/* ---- 轮播指示器（卡片外部右侧） ---- */
.blog-slider__pagination {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 10;
}

.blog-slider__pagination .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #d1d5db !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.blog-slider__pagination .swiper-pagination-bullet-active {
  background: var(--btn-bg, #3b82f6) !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* 只显示前5个分页点 */
.blog-slider__pagination .swiper-pagination-bullet:nth-child(n+6) {
  display: none !important;
}

/* ---- 覆盖原有样式 ---- */
.blog-slider__content,
.blog-slider__img,
.blog-slider__code,
.blog-slider__button {
  display: none !important;
}

/* ---- 响应式 ---- */
@media screen and (max-width: 768px) {
  .blog-slider__card {
    flex-direction: column;
    min-height: auto;
  }

  .blog-slider__visual {
    flex: 0 0 auto;
    min-height: 160px;
  }

  .blog-slider__info {
    padding: 20px 24px;
    gap: 10px;
  }

  .blog-slider__title {
    font-size: 18px;
  }

  .blog-slider__text {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }

  .blog-slider__pagination {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    flex-direction: row !important;
    justify-content: center;
    margin-top: 16px;
    gap: 10px !important;
  }

  .blog-slider__pagination .swiper-pagination-bullet-active {
    box-shadow: none;
    background: var(--btn-bg, #3b82f6) !important;
  }
}

@media screen and (max-width: 480px) {
  .blog-slider__visual {
    min-height: 140px;
  }

  .blog-slider__info {
    padding: 16px 20px;
  }

  .blog-slider__title {
    font-size: 16px;
  }

  .blog-slider__text {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .blog-slider__tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  .blog-slider__category {
    font-size: 12px;
    letter-spacing: 1px;
    padding: 5px 12px;
  }
}
