/* ============================================================
   共居资讯页 · 双 tab（共居理念 / 共居生活）
   样式仿 irent：居中两个文字按钮，选中项加粗 + 短下划线
   ============================================================ */

.life-tabs {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 34px 15px 6px;
}

.life-tab {
  border: none;
  background: none;
  font-size: 20px;
  color: #9a9a9a;
  padding: 6px 2px 12px;
  cursor: pointer;
  position: relative;
  font-weight: 400;
  transition: color .2s ease;
}

.life-tab:hover { color: #555; }

.life-tab.active { color: #222; font-weight: 700; }

.life-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: #8B4513;   /* 与站内 divider bg-saffron 的棕色系一致 */
}

/* 切换时轻微淡入 */
#life-pane-idea, #life-pane-life { animation: lifeFade .25s ease; }
@keyframes lifeFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- 共居生活 · 公众号文章卡片 ---------- */

#life-pane-life .section { padding-top: 26px; }

.life-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  text-decoration: none;
  color: inherit;
  height: 100%;
  margin-bottom: 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.life-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
  text-decoration: none;
  color: inherit;
}

.life-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f2f3f5;
  overflow: hidden;
}

.life-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.life-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9bec8;
  font-size: 14px;
  letter-spacing: 2px;
}

.life-card-body { padding: 14px 16px 16px; }

.life-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.life-card-summary {
  font-size: 13px;
  color: #8a8f99;
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.life-card-meta { font-size: 12px; color: #a7adb8; }
