/* =========================================================
   京东秒送活动页 · jd.css
   尺寸严格对齐 mt.tomdl.com/jd 参考站
   色调：京东红 #e1251b
   ========================================================= */

/* ---------- 主容器 ---------- */
.jd-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

/* ---------- 板块标题 ---------- */
.jd-section-title {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: #1e1e2d;
}
.jd-section-title__bar {
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: #e1251b;
}

/* ---------- 活动宫格（双列，与参考站一致） ---------- */
.jd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 12px 0 0;
}

/* ---------- 活动卡片（对齐 .coupon-card） ---------- */
.jd-card {
  min-width: 0;
  height: 181.22px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.12s;
}
.jd-card:active {
  transform: scale(0.98);
}

/* 京东保留参考站 166:93 封面比例；三页只统一卡片外框 */
.jd-card__cover {
  width: 100%;
  aspect-ratio: 166 / 93;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.jd-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* 卡片正文区域（对齐 .coupon-card__body 10px padding） */
.jd-card__body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.jd-card__title {
  font-size: 12px;
  font-weight: 700;
  color: #1e1e2d;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jd-card__desc {
  min-height: 27px;
  font-size: 10px;
  font-weight: 400;
  color: #64647d;
  line-height: 1.35;
  margin-top: 3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.jd-card__meta {
  min-height: 15px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.jd-card__tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  line-height: 12.6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e1251b;
}
.jd-card__tag--sub {
  background: #ff7a18;
}

/* ---------- 响应式 ---------- */
@media (max-width: 520px) {
  .jd-page { padding: 0 16px 24px; }
}
