/* 指南入口卡片网格 */
.guide-entries-grid {
  max-width: 900px;
}

/* 卡片行居中：1 张卡片时居中显示 */
.guide-entries-grid .row {
  justify-content: center;
}

/* ---- 列宽：随卡片数量与断点变化 ----
 * <576px   竖排整宽（沿用 Bootstrap .row > * 的 width:100%）
 * 576–767  一行 2 张
 * ≥768     1 张 / 2 张 = 50%，3 张 = 33.33%，4 张及以上 = 25%（一行 4 张）
 */
.guide-entries-grid .row > .guide-entry-col {
  margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
  .guide-entries-grid .row > .guide-entry-col {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .guide-entries-grid .row > .guide-entry-col {
    width: 25%;
  }
  .guide-entries-grid .row > .guide-entry-col:first-child:nth-last-child(3),
  .guide-entries-grid .row > .guide-entry-col:first-child:nth-last-child(3) ~ .guide-entry-col {
    width: 33.3333%;
  }
  .guide-entries-grid .row > .guide-entry-col:first-child:nth-last-child(2),
  .guide-entries-grid .row > .guide-entry-col:first-child:nth-last-child(2) ~ .guide-entry-col,
  .guide-entries-grid .row > .guide-entry-col:only-child {
    width: 50%;
    max-width: 384px;   /* 卡片上限 360px（列宽 384 − 左右各 12px 内边距），避免 1–2 张时卡片过大 */
  }
}

/* ---- 卡片本体 ---- */
.guide-entry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.guide-entry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

/* ---- 图区 ---- */
.guide-entry-card-img-wrap {
  flex: 0 0 auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f1f5f9;
}
.guide-entry-card-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.guide-entry-card:hover .guide-entry-card-img-wrap img {
  transform: scale(1.05);
}

/* ---- 文字区 ---- */
.guide-entry-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* 纯文字卡（无图）文字垂直居中，避免被拉伸后留大片空白 */
  padding: 1.25rem 1.1rem 1rem;
}
.guide-entry-card-title {
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--guide-card-title-color, #1e293b);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.guide-entry-card:hover .guide-entry-card-title {
  color: var(--guide-card-title-hover, #2563eb);
}
.guide-entry-card-subtitle {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--guide-card-subtitle-color, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
