/* ==========================================================================
   baby.niuma.club 首页改版（2026-11-03）
   1) 「盘神资源分享」「盘神活动分享」区块标题与「更多」：红色加粗醒目
   2) 「更多」旁边的箭头图标换成三颗 💓
   3) 速览卡片里的两行分类标题同步变红
   4) 挪到页面最下面的广告位 / 联系方式：宽度与主内容对齐
   ========================================================================== */

/* ---- 区块标题：与侧栏「推荐文章」标题同色（线上实测 rgb(57,197,187) / 700） ---- */
.recent-posts .sort-article-first > div:first-child,
.recent-posts .sort-article-first > div:first-child > div {
  color: #39c5bb !important;
  font-weight: 700 !important;
}
/* ---- 右上角「更多」保持红色醒目 ---- */
.recent-posts .article-more {
  color: #e02b20 !important;
  font-weight: 700 !important;
}
.recent-posts .sort-article-first > div:first-child {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.recent-posts .article-more {
  text-decoration: none !important;
  letter-spacing: .5px;
  cursor: pointer;
}
.recent-posts .article-more:hover {
  color: #ff4638 !important;
}

/* ---- 箭头换成三颗爱心 ---- */
.recent-posts .article-more svg {
  display: none !important;
}
.recent-posts .article-more::before {
  content: "\1F493";
  font-size: 13px;
  line-height: 1;
  margin-right: 2px;
    vertical-align: 0;
}

/* ---- 速览里的两行分类标题 ---- */
.selectSort .sort-name,
.selectSort .sort-name * {
  color: #e02b20 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

/* ---- 页面最底部的广告位 / 联系方式：与主内容同宽居中 ---- */
.page-container-wrap > #pp-ads,
.page-container-wrap > #pp-contact {
  width: 90% !important;
  max-width: 1296px !important;
  margin: 22px auto !important;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .page-container-wrap > #pp-ads,
  .page-container-wrap > #pp-contact {
    width: auto !important;
    margin: 16px 14px !important;
  }
  /* 手机端轮播：容器与图片同高，避免底部被裁一刀 */
  .ppb-stage { max-height: 56vh !important; }
  .recent-posts .article-more::before { font-size: 12px; }
}

/* ===== 首页文章列表改为2列横向卡片（左图右文） ===== */
@media screen and (min-width: 1024px) {
  .recent-posts .recent-post-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
  .recent-posts .recent-post-item {
    display: flex !important;
    flex-direction: row !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
    background: #fff !important;
  }
  .recent-posts .recent-post-item-image {
    width: 240px !important;
    min-width: 240px !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    flex: 0 0 auto !important;
  }
  .recent-posts .recent-post-item-post {
    flex: 1 !important;
    height: auto !important;
    padding: 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .recent-posts .recent-post-item-post h3 {
    margin: 0 0 8px 0 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  .recent-posts .recent-post-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    margin: 8px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}


/* ===== 置顶推荐改为3行3列（9个） ===== */
.pp-slots {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 15px !important;
}

