/* ==========================================================
   教育培训 · 独立列表页（浅色，参考本地生活风格）
   不依赖站点深色主题，页面自带 header / footer
   ========================================================== */

* { box-sizing: border-box; }

body.edu-body {
	margin: 0;
	padding: 0;
	background: #f4f5f7;
	color: #222;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
}

.edu-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部 ---------------- */
.edu-topbar {
	background: #fff;
	border-bottom: 1px solid #ebeef2;
	position: sticky;
	top: 0;
	z-index: 20;
}
.edu-topbar-in {
	height: 66px;
	display: flex;
	align-items: center;
	gap: 18px;
}
.edu-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.edu-logo .mark {
	width: 34px; height: 34px; border-radius: 9px;
	background: linear-gradient(135deg, #ff6a3d, #f5222d);
	color: #fff; font-weight: 700; font-size: 15px;
	display: flex; align-items: center; justify-content: center;
}
.edu-logo .txt { display: flex; flex-direction: column; line-height: 1.25; }
.edu-logo .txt b { font-size: 16px; color: #1a1a1a; letter-spacing: .3px; }
.edu-logo .txt span { font-size: 11px; color: #9aa3af; letter-spacing: 1px; }

.edu-city-btn {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 5px 10px; font-size: 13px; color: #4b5563;
	background: #f6f7f9; border-radius: 6px; text-decoration: none;
	flex: 0 0 auto;
}
.edu-city-btn i { font-style: normal; color: #f5222d; font-size: 12px; }

.edu-topsearch { margin-left: auto; display: flex; gap: 0; flex: 0 1 420px; }
.edu-topsearch input {
	flex: 1; height: 38px; padding: 0 14px;
	border: 1px solid #e3e6eb; border-right: 0;
	border-radius: 6px 0 0 6px; outline: none; font-size: 13px; color: #333;
}
.edu-topsearch input:focus { border-color: #ffb3a7; }
.edu-topsearch button {
	width: 56px; height: 38px; cursor: pointer;
	background: #fff; border: 1px solid #e3e6eb; border-radius: 0 6px 6px 0;
	color: #6b7280; font-size: 15px;
}
.edu-topsearch button:hover { color: #f5222d; border-color: #ffb3a7; }

/* ---------------- 面包屑 ---------------- */
.edu-crumb2 {
	padding: 14px 0 10px;
	font-size: 13px;
	color: #9aa3af;
}
.edu-crumb2 a { color: #6b7280; text-decoration: none; }
.edu-crumb2 a:hover { color: #f5222d; }
.edu-crumb2 em { font-style: normal; margin: 0 7px; color: #cbd2da; }
.edu-crumb2 b { color: #333; font-weight: 500; }

/* ---------------- 筛选面板 ---------------- */
.edu-filters2 {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(17, 24, 39, .04);
	padding: 4px 20px;
	margin-bottom: 14px;
}
.edu-frow {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px solid #f2f4f7;
}
.edu-frow:last-child { border-bottom: 0; }
.edu-flabel {
	flex: 0 0 40px; padding-top: 5px;
	font-size: 13px; color: #9aa3af;
}
.edu-fchips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.edu-fchip {
	display: inline-block;
	padding: 5px 12px;
	font-size: 13px;
	color: #4b5563;
	border-radius: 5px;
	text-decoration: none;
	line-height: 1.5;
	transition: .15s;
	white-space: nowrap;
}
.edu-fchip:hover { color: #f5222d; background: #fff5f5; }
.edu-fchip.on {
	color: #f5222d;
	background: #fff1f0;
	font-weight: 500;
}
/* 分类 chip 上的机构数（与列表同口径：同城市 + 上架 + 企业可见） */
.edu-fchip i {
	font-style: normal;
	display: inline-block;
	margin-left: 5px;
	padding: 0 6px;
	font-size: 11px;
	line-height: 16px;
	color: #8b93a1;
	background: #f3f4f6;
	border-radius: 9px;
	vertical-align: 1px;
}
.edu-fchip.on i { color: #f5222d; background: #ffe2dd; }
.edu-fchip.is-empty { color: #b6bcc7; }
.edu-fchip.is-empty i { color: #c2c8d2; }

/* ---------------- 排序条 ---------------- */
.edu-sortbar2 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.edu-sortbar2 .cnt { font-size: 13px; color: #9aa3af; }
.edu-sortbar2 .cnt b { color: #f5222d; font-weight: 600; }
.edu-sorts2 { display: flex; gap: 6px; }
.edu-sorts2 a {
	padding: 4px 12px; font-size: 13px; color: #6b7280;
	border-radius: 4px; text-decoration: none;
}
.edu-sorts2 a:hover { color: #f5222d; }
.edu-sorts2 a.on { color: #f5222d; font-weight: 500; background: #fff1f0; }

/* ---------------- 卡片 ---------------- */
.edu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.edu-item {
	display: flex; gap: 13px;
	align-items: flex-start;
	background: #fff;
	border-radius: 10px;
	padding: 12px;
	box-shadow: 0 1px 3px rgba(17, 24, 39, .05);
	border: 1px solid transparent;
	transition: .18s;
}
.edu-item:hover {
	border-color: #ffe0da;
	box-shadow: 0 8px 24px rgba(245, 34, 45, .09);
	transform: translateY(-2px);
}

.edu-item-cover {
	position: relative;
	/* 正方形封面：宽高一致，不随右侧内容拉伸 */
	flex: 0 0 136px; width: 136px; height: 136px;
	aspect-ratio: 1 / 1;
	min-height: 0;
	align-self: center;   /* 卡片被撑高时封面居中，不贴着顶部留一条空 */
	border-radius: 8px; overflow: hidden;
	background: #f1f3f6;
	display: flex; align-items: center; justify-content: center;
}
.edu-item-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edu-item-cover .ph { font-size: 12px; color: #b6bdc7; }
.edu-item-cover .imgnum {
	position: absolute; right: 4px; bottom: 4px;
	padding: 1px 6px; font-size: 11px; color: #fff;
	background: rgba(0, 0, 0, .45); border-radius: 10px;
}

.edu-item-main { flex: 1; min-width: 0; }
.edu-item-name {
	display: flex; align-items: center; gap: 6px;
	margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #1f2329;
	line-height: 1.4;
}
.edu-item-name .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edu-gold2 {
	flex: 0 0 auto; padding: 1px 6px; font-size: 11px; font-weight: 500;
	color: #7a4a00; background: linear-gradient(135deg, #ffd666, #ffb400);
	border-radius: 3px;
}

.edu-item-rate {
	display: flex; align-items: center; gap: 6px;
	font-size: 12.5px; color: #8b949e; margin-bottom: 5px; flex-wrap: wrap;
}
.edu-item-rate .s { color: #ff9500; letter-spacing: -.5px; }
.edu-item-rate .v { color: #ff9500; font-weight: 600; }
.edu-item-rate .sep { color: #dfe3e8; }

.edu-item-meta {
	display: flex; align-items: center; gap: 6px;
	font-size: 12.5px; color: #8b949e; margin-bottom: 5px;
	/* 营业时间可能很长（「周一至周五…；周六至周日…」），换行会把卡片顶高、
	   同页卡片高度不齐。这里强制单行，超出用省略号，「查看」固定贴右。 */
	flex-wrap: nowrap; overflow: hidden;
}
.edu-item-meta .area { flex: 0 0 auto; color: #4b5563; }
.edu-item-meta .sep { flex: 0 0 auto; }
.edu-item-meta .hours {
	flex: 1 1 auto; min-width: 0;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.edu-item-meta .view { flex: 0 0 auto; margin-left: auto; color: #4b5563; text-decoration: underline; cursor: default; }

.edu-item-tags { display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 6px; overflow: hidden; }
.edu-item-tags > * { flex: 0 0 auto; }
.edu-yr {
	font-size: 12px; color: #8b949e;
	border: 1px solid #e5e8ec; border-radius: 3px; padding: 0 6px; line-height: 18px;
}
.edu-tg {
	font-size: 12px; color: #5b6472;
	background: #f4f6f8; border-radius: 3px; padding: 0 6px; line-height: 18px;
}

.edu-item-offers { display: flex; flex-direction: column; gap: 4px; }
.edu-item-offer {
	display: flex; align-items: baseline; gap: 6px;
	font-size: 12.5px; color: #6b7280; line-height: 1.5;
}
.edu-item-offer .p { flex: 0 0 auto; color: #ff5000; font-weight: 600; font-size: 13px; }
.edu-item-offer .p i { font-style: normal; font-size: 11px; margin-right: 1px; }
.edu-item-offer .x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.edu-item-cta { flex: 0 0 auto; display: flex; align-items: center; align-self: center; }
.edu-btn2 {
	display: inline-block; padding: 8px 18px;
	font-size: 13px; color: #fff; text-decoration: none;
	background: #f5453f; border-radius: 5px; white-space: nowrap;
	transition: .16s;
}
.edu-btn2:hover { background: #e0352f; }

/* ---------------- 空态 / 分页 ---------------- */
.edu-empty2 {
	background: #fff; border-radius: 10px;
	padding: 76px 20px; text-align: center; color: #9aa3af;
	box-shadow: 0 1px 3px rgba(17, 24, 39, .04);
}
.edu-empty2 .big { font-size: 15px; color: #4b5563; margin-bottom: 8px; }
.edu-empty2 a { color: #f5222d; text-decoration: none; }

.edu-pager2 { margin: 24px 0 8px; }
.edu-pager2 .pagination,
.edu-pager2 ul { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.edu-pager2 li a,
.edu-pager2 li span,
.edu-pager2 a {
	display: inline-block; min-width: 34px; padding: 6px 10px;
	text-align: center; font-size: 13px; color: #4b5563;
	background: #fff; border: 1px solid #e5e8ec; border-radius: 5px;
	text-decoration: none;
}
.edu-pager2 li.active span,
.edu-pager2 li.active a,
.edu-pager2 .active { color: #fff; background: #f5453f; border-color: #f5453f; }
.edu-pager2 li.disabled span { opacity: .4; }

/* ---------------- 页脚 ---------------- */
.edu-foot {
	margin-top: 40px; padding: 26px 0 34px;
	background: #fff; border-top: 1px solid #ebeef2;
	text-align: center; font-size: 12px; color: #9aa3af; line-height: 2;
}
.edu-foot a { color: #6b7280; text-decoration: none; }

/* ---------------- 响应 ---------------- */
@media (max-width: 1080px) {
	.edu-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	.edu-topbar-in { height: auto; padding: 10px 0; flex-wrap: wrap; }
	.edu-topsearch { flex: 1 0 100%; margin-left: 0; }
	.edu-frow { flex-direction: row; align-items: flex-start; gap: 8px; }
	.edu-flabel { flex: 0 0 auto; padding-top: 5px; }
	/* 分类 14 个 / 区域 11 个竖排会吃掉大半屏，手机上改成一行横滑，
	     手指左右拨即可，筛选区高度从 ~320px 降到 ~100px */
	.edu-fchips {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
		scrollbar-width: none;
	}
	.edu-fchips::-webkit-scrollbar { display: none; }
	.edu-fchip { flex: 0 0 auto; }

	/* 窄屏卡片重排：原来是「封面 80 + 内容」换行，CTA 独占一整行，
	   卡片高度在 158 / 211 之间跳，按钮拉满整行看着很突兀。
	   这里改成：封面 100 方图 + 右侧 3~4 行信息 + 右下角小按钮，
	   高度统一 132，一列排下来是齐的。 */
	.edu-item {
		position: relative;
		padding: 10px;
		gap: 10px;
		align-items: flex-start;
		min-height: 140px;
		box-sizing: border-box;
	}
	.edu-item-cover { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 8px; }
	.edu-item-name { margin-bottom: 5px; font-size: 14.5px; }
	/* 评分行：「5.0 · 127 人感兴趣」在 200 多像素里必然掉行，掉了就多占 21px。
	   窄屏只留星级和分数，人感兴趣进详情页看。 */
	.edu-item-rate { flex-wrap: nowrap; overflow: hidden; margin-bottom: 4px; }
	.edu-item-rate > * { flex: 0 0 auto; }
	.edu-item-rate .sep,
	.edu-item-rate > span:last-child:not(.v) { display: none; }
	/* 窄屏信息降噪：标签、优惠兜底、查看链接都收掉 */
	.edu-item-tags, .edu-item-offers, .edu-item-meta .view { display: none; }

	/* 底部留出一条给按钮，避免按钮压住课程文字 */
	.edu-item-main { padding-bottom: 34px; }
	.edu-item-courses { margin-top: 2px; }
	.edu-item-courses .edu-course:nth-child(n+2) { display: none; }

	.edu-item-cta {
		position: absolute;
		right: 10px;
		bottom: 9px;
		width: auto;
		margin: 0;
	}
	.edu-item-cta .edu-btn2 { padding: 5px 12px; font-size: 12.5px; }
}

/* ---------------- 整卡可点（覆盖层，避免 a 嵌套 a） ---------------- */
.edu-item { position: relative; }
.edu-item-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 10px;
	text-decoration: none;
}
.edu-item-link:focus-visible { outline: 2px solid #f5453f; outline-offset: 2px; }
.edu-item-cta { position: relative; z-index: 2; }
.edu-item:hover .edu-item-meta .view { color: #f5453f; }

/* ---------------- 课程（来源：商品中心） ---------------- */
.edu-item-courses { display: flex; flex-direction: column; gap: 2px; }
.edu-course {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 1px 0;
	font-size: 12.5px;
	color: #4b5563;
	text-decoration: none;
}
.edu-course .p { flex: 0 0 auto; color: #ff5000; font-weight: 600; }
.edu-course .p i { font-style: normal; font-size: 11px; }
.edu-course .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edu-course .s { flex: 0 0 auto; font-size: 11.5px; color: #9aa3af; }
.edu-course:hover .t { color: #f5453f; }

/* ---------------- 卡片等高（桌面端） ----------------
   列表里每张卡的信息条数不同（有的两门课、有的没标签），不固定高度就会出现
   162 / 203 两种卡高，同一页参差不齐。这里把右侧内容区定高：多出来的裁掉、
   少的部分留白，课程行统一贴底，视觉上每张卡一样高。
   窄屏（≤720）是「封面+内容」换行布局，不套用固定高度。 */
@media (min-width: 721px) {
	.edu-item { align-items: stretch; }
	.edu-item-main {
		display: flex;
		flex-direction: column;
		height: 146px;
		overflow: hidden;
	}
	.edu-item-courses,
	.edu-item-offers { margin-top: auto; }
}
