/**
 * 「我的收藏」卡片视图样式
 *
 * ⚠️ 有意偏离老站：老站 templates/member/collect.html 的收藏列表是纯文字行
 * （`collect.js` 渲染 `.item > .o(.del) + .i(h5 + p)`，样式在 manage.css）。
 * 2026-10-05 用户指定改成「一行 4 个、带图片」的卡片，版式参照活动频道卡片
 * （components/huodong/HuodongList.astro + templates/huodong/skin3/css/index.css 的 .itemList）。
 *
 * 所有选择器都收在 .card_grid 下 —— 该页同时加载 member 皮肤的 base/common/public/manage.css，
 * 直接写 `.list .item {…}` 会与既有规则互相覆盖（见经验库「两份皮肤 CSS 同名选择器互相覆盖」）。
 */
.card_grid {display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 0 0;}

.card_grid .item {
	position: relative;
	width: calc((100% - 60px) / 4);
	background-color: #fff;
	border: 1px solid #ededed;
	box-sizing: border-box;
	transition: box-shadow .2s;
}
.card_grid .item:hover {box-shadow: 0 5px 23px 0 rgba(0, 2, 31, .13); border-color: #e8e8e8;}

/* 图片 */
.card_grid .pic {display: block; width: 100%; height: 130px; overflow: hidden; background-color: #f5f5f5;}
.card_grid .pic img {display: block; width: 100%; height: 100%; object-fit: cover;}

/* 删除：常显（老站是行尾一个文字按钮，改成卡片后仍要保持一眼可点，不做 hover 才出现） */
.card_grid .del {
	position: absolute;
	z-index: 2;
	top: 8px;
	right: 8px;
	height: 22px;
	line-height: 22px;
	padding: 0 8px;
	color: #fff;
	font-size: 12px;
	background-color: rgba(0, 0, 0, .4);
}
.card_grid .del:hover {background-color: #ff6600;}
.card_grid .del s {display: none;}

/* 文字区 */
.card_grid .info {padding: 10px 12px 0;}
.card_grid .time {color: #ababab; font-size: 12px; line-height: 20px;}
.card_grid .time i {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 4px;
	vertical-align: -2px;
	background: url(/templates/huodong/skin3/images/time.png) no-repeat center;
	background-size: contain;
}
.card_grid h5 {
	height: 44px;
	margin: 6px 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.card_grid h5 a {color: #333;}
.card_grid .item:hover h5 a {color: #00b084;}
.card_grid h5 del {color: #ccc; font-weight: 500;}
.card_grid .addr {
	color: #ababab;
	font-size: 12px;
	line-height: 20px;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.card_grid .addr i {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 4px;
	vertical-align: -2px;
	background: url(/templates/huodong/skin3/images/posi.png) no-repeat center;
	background-size: contain;
}

/* 底部：主办方 + 报名数 */
.card_grid .foot {padding: 8px 12px; border-top: 1px solid #f2f2f2; color: #ababab; font-size: 12px;}
.card_grid .foot .user {float: left; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.card_grid .foot .user img {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 5px;
	border-radius: 50%;
	vertical-align: middle;
	object-fit: cover;
}
.card_grid .foot .user em {vertical-align: middle;}
.card_grid .foot .num {float: right; line-height: 20px; color: #999;}
