/* 探索模块基础样式 - 使用独立前缀避免冲突 */
.explore-section {
  background-color: #f9fafb;
  padding: 4rem 1rem;
}

.explore-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 主标题样式 */
.explore-main-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: left;
  font-weight: 700;
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* 第一行布局 */
.explore-row-1 {
  display: grid;
}

.explore-image-container {
  border-radius: 0.75rem;
}

.explore-image {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.explore-image-container:hover .explore-image {
  transform: scale(1.02);
}

/* 右侧内容容器：垂直排列，不影响内部标签宽度 */
.explore-content {
  flex-direction: column !important; /* 内部元素从上到下排列 */
  padding: 0 !important;
  gap: 0.5rem; /* 内部元素间距，可选 */
}


.explore-content .explore-card .explore-card-category {
  /* 强制设置为 inline-block，避免被 block 覆盖 */
    display: inline-block !important;
    width: auto !important; /* 宽度完全由文字决定 */
    min-width: auto !important; /* 清除可能的最小宽度 */
    
    /* 精确控制内边距，避免背景过宽 */
    padding: 0.2rem 0.4rem !important; /* 上下0.2rem，左右0.4rem，更紧凑 */
    background-color: #f3f4f6 !important; /* 浅灰背景 */
    border-radius: 9999px !important; /* 圆角 */
    margin: 0 0 0.75rem 0 !important; /* 仅底部有间距，其他方向清除 */
    float: none !important; /* 清除可能的浮动影响 */
    text-align: center !important; /* 文字居中，避免偏移 */
}

/* 确保左侧图片容器顶部无额外间距，与右侧内容保持一致起点 */
.explore-image-container {
  margin: 0;
  padding: 0;
}


.explore-category {
  color: #3b82f6; /* 蓝色作为主色调 */
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.explore-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.explore-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* 作者信息样式 */
.explore-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 500;
  color: #111827;
  font-size: 0.9375rem;
}

.author-date {
  font-size: 0.8125rem;
}

/* 第二行卡片样式 */
.explore-row-2 {
  display: grid;
}

.explore-card {
  transition: transform 0.3s ease;
}

.explore-card:hover {
  transform: translateY(-5px);
}

.explore-card-image {
  border-radius: 0.75rem;
  overflow: hidden;
}

.explore-card-image img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.explore-card:hover .explore-card-image img {
  transform: scale(1.05);
}


/* 增大图片行与内容行之间的间隙 */
.explore-row-2 {
  margin-bottom: 2.5rem; /* 核心：增加底部间距（可根据需求调整数值） */
}

/* 响应式适配：移动端保持适当间距但不夸张 */
@media (max-width: 767px) {
  .explore-row-2 {
    margin-bottom: 1.875rem; /* 移动端间距稍小，避免内容过散 */
  }
}

.explore-card-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.explore-card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* 响应式布局调整 */
@media (max-width: 1023px) {
  .explore-row-1 {
    gap: 2rem;
  }
  
  .explore-image-container {
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  .explore-main-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .explore-row-1 {
    grid-template-columns: 1fr;
  }
  
  .explore-row-2 {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  
  .explore-author {
    justify-content: center;
  }
  
  .explore-image-container {
    min-height: 250px;
  }
}

@media (min-width: 1024px) {
  .explore-row-1 {
    grid-template-columns: 1fr 1fr;
  }
  
  .explore-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .explore-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}