/* ==========================================================
   教育培训 · 平台首页
   依赖 edu.css 的顶部/页脚/容器，本文件只管首页各区块
   ========================================================== */

.eh-body { background: #f4f5f7; }

/* ---------------- Hero ---------------- */
.eh-hero {
	background: linear-gradient(135deg, #fff1ee 0%, #ffe7e1 42%, #f6f8fb 100%);
	border-bottom: 1px solid #f2e7e3;
	padding: 46px 0 58px;
	text-align: center;
}
.eh-h1 {
	margin: 0 0 10px;
	font-size: 30px;
	line-height: 1.4;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: .3px;
}
.eh-sub {
	margin: 0 0 24px;
	font-size: 14px;
	color: #7b8494;
}

.eh-search {
	display: flex;
	max-width: 660px;
	margin: 0 auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px -12px rgba(245, 69, 63, .28), 0 2px 6px rgba(15, 23, 42, .05);
	overflow: hidden;
}
.eh-search input {
	flex: 1;
	height: 54px;
	padding: 0 20px;
	border: 0;
	outline: none;
	font-size: 14px;
	color: #222;
	background: transparent;
}
.eh-search input::placeholder { color: #b6bdc7; }
.eh-search button {
	flex: 0 0 118px;
	border: 0;
	background: linear-gradient(135deg, #ff6a3d, #f5222d);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	letter-spacing: 2px;
}
.eh-search button:hover { opacity: .94; }

.eh-hot {
	margin-top: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: #9aa3af;
}
.eh-hot .lb { color: #9aa3af; }
.eh-hot a {
	color: #6b7280;
	background: rgba(255, 255, 255, .85);
	border: 1px solid #f0e3df;
	border-radius: 20px;
	padding: 4px 12px;
	text-decoration: none;
	transition: all .15s;
}
.eh-hot a:hover { color: #f5453f; border-color: #ffd0c9; background: #fff; }

/* ---------------- 数据概览 ---------------- */
.eh-stats {
	position: relative;
	z-index: 2;
	margin: -30px 0 0;
	background: #fff;
	border: 1px solid #ebeef2;
	border-radius: 12px;
	box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .3);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 20px 0;
}
.eh-stat {
	text-align: center;
	border-right: 1px solid #f2f4f7;
}
.eh-stat:last-child { border-right: 0; }
.eh-stat b {
	display: block;
	font-size: 24px;
	font-weight: 600;
	color: #f5453f;
	line-height: 1.3;
}
.eh-stat span { font-size: 12.5px; color: #9aa3af; }

/* ---------------- 通用区块 ---------------- */
.eh-sec { margin-top: 34px; }
.eh-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.eh-sec-head h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: .2px;
}
.eh-more {
	font-size: 13px;
	color: #9aa3af;
	text-decoration: none;
}
.eh-more:hover { color: #f5453f; }

/* ---------------- 分类宫格 ---------------- */
.eh-cates {
	background: #fff;
	border: 1px solid #ebeef2;
	border-radius: 12px;
	padding: 20px 14px;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 16px 8px;
}
.eh-cate {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: inherit;
	padding: 6px 4px;
	border-radius: 8px;
	transition: background .15s;
}
.eh-cate:hover { background: #fff7f6; }
.eh-cate .ico {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: linear-gradient(135deg, #fff1ee, #ffe0d9);
	color: #f5453f;
	font-size: 17px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}
.eh-cate:hover .ico { background: linear-gradient(135deg, #ff6a3d, #f5222d); color: #fff; }
.eh-cate .nm { font-size: 13px; color: #303744; }
.eh-cate .ct { font-size: 11.5px; color: #b6bdc7; }

/* ---------------- 推荐机构 ---------------- */
.eh-orgs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.eh-org {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ebeef2;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color .16s, box-shadow .16s, transform .16s;
}
.eh-org:hover {
	border-color: #ffd7d3;
	box-shadow: 0 10px 24px -14px rgba(245, 69, 63, .35);
	transform: translateY(-2px);
}
.eh-org .ph {
	position: relative;
	display: block;
	height: 156px;
	background: #f2f4f7;
}
.eh-org .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-org .ph-txt {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b6bdc7;
	font-size: 12px;
}
.eh-org .gold {
	position: absolute;
	left: 10px;
	top: 10px;
	background: linear-gradient(135deg, #ffb648, #ff8a00);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 4px;
}
.eh-org .bd {
	display: flex; flex-direction: column; gap: 7px; padding: 12px 14px 14px;
}
/* 有「热门课程」行的卡比没有的高 ~31px，桌面上同一栏里就会一行高一行矮。
   定一个最小高把没课程的行补齐，课程行贴底；手机上是单列，不需要等高，
   补了反而每张卡底下挂一截空白，所以只在 ≥721 生效。 */
@media (min-width: 721px) {
	.eh-org .bd { min-height: 128px; box-sizing: border-box; }
	.eh-org .hot-course { margin-top: auto; }
}
.eh-org .nm {
	font-size: 14.5px;
	font-weight: 600;
	color: #1a1a1a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.eh-org:hover .nm { color: #f5453f; }
.eh-org .rt {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #9aa3af;
}
.eh-org .rt em { font-style: normal; color: #ff9500; letter-spacing: -1px; }
.eh-org .rt i { font-style: normal; color: #ff9500; }
.eh-org .rt .sep { color: #d4d8de; }
.eh-org .meta {
	font-size: 12px;
	color: #9aa3af;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.eh-org .hot-course {
	font-size: 12px;
	color: #6b7280;
	background: #fafbfc;
	border-radius: 5px;
	padding: 6px 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.eh-org .hot-course i {
	font-style: normal;
	color: #f5453f;
	background: #fff1ee;
	border-radius: 3px;
	padding: 1px 5px;
	margin-right: 6px;
	font-size: 11px;
}

/* ---------------- 热门课程 ---------------- */
.eh-courses {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.eh-course {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ebeef2;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color .16s, box-shadow .16s, transform .16s;
}
.eh-course:hover {
	border-color: #ffd7d3;
	box-shadow: 0 10px 24px -14px rgba(245, 69, 63, .35);
	transform: translateY(-2px);
}
.eh-course .ph { display: block; height: 132px; background: #f2f4f7; }
.eh-course .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-course .ph-txt {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b6bdc7;
	font-size: 12px;
}
.eh-course .bd {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 11px 12px 13px;
}
.eh-course b {
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.55;
	color: #1a1a1a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 42px;
}
.eh-course:hover b { color: #f5453f; }
.eh-course .pr { display: flex; align-items: baseline; gap: 7px; }
.eh-course .pr em {
	font-style: normal;
	font-size: 17px;
	font-weight: 600;
	color: #f5453f;
}
.eh-course .pr em i { font-style: normal; font-size: 12px; margin-right: 1px; }
.eh-course .pr s { font-size: 12px; color: #b6bdc7; }
.eh-course .pr .sv { margin-left: auto; font-size: 11.5px; color: #9aa3af; }

/* ---------------- 机构资讯 ---------------- */
.eh-news {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.eh-news-item {
	display: flex;
	gap: 12px;
	padding: 12px;
	background: #fff;
	border: 1px solid #ebeef2;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: border-color .16s, background .16s;
}
.eh-news-item:hover { border-color: #ffd7d3; background: #fffafa; }
.eh-news-item .ph {
	flex: 0 0 92px;
	width: 92px;
	height: 92px;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f4f7;
}
.eh-news-item .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-news-item .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.eh-news-item b {
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
	color: #1a1a1a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.eh-news-item:hover b { color: #f5453f; }
.eh-news-item .d {
	font-size: 12px;
	line-height: 1.6;
	color: #9aa3af;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.eh-news-item .dt { margin-top: auto; font-size: 11.5px; color: #c2c8d0; }

/* ---------------- 入驻引导 ---------------- */
.eh-join {
	margin: 40px 0 44px;
	background: linear-gradient(120deg, #232a36 0%, #171c25 100%);
	border-radius: 14px;
	padding: 32px 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.eh-join h3 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 600;
	color: #fff;
}
.eh-join p {
	margin: 0;
	font-size: 13px;
	line-height: 1.8;
	color: #a6aebb;
	max-width: 640px;
}
.eh-join-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 26px;
	border-radius: 8px;
	background: linear-gradient(135deg, #ff6a3d, #f5222d);
	color: #fff;
	font-size: 14px;
	text-decoration: none;
	transition: opacity .15s;
}
.eh-join-btn:hover { opacity: .92; }

/* ---------------- 响应 ---------------- */
@media (max-width: 1080px) {
	.eh-cates { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.eh-orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eh-courses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.eh-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eh-h1 { font-size: 25px; }
}
@media (max-width: 720px) {
	.eh-hero { padding: 30px 0 46px; }
	.eh-h1 { font-size: 20px; }
	.eh-sub { font-size: 12.5px; margin-bottom: 18px; }
	.eh-search { max-width: 100%; }
	.eh-search input { height: 48px; padding: 0 14px; font-size: 13px; }
	.eh-search button { flex: 0 0 88px; font-size: 14px; letter-spacing: 0; }
	.eh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 0; }
	.eh-stat { padding: 8px 0; }
	.eh-stat:nth-child(2) { border-right: 0; }
	.eh-stat b { font-size: 20px; }
	.eh-cates { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 8px; gap: 12px 4px; }
	.eh-cate .ico { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; }
	.eh-orgs, .eh-courses, .eh-news { grid-template-columns: minmax(0, 1fr); }
	.eh-sec { margin-top: 26px; }
	.eh-join { padding: 24px 20px; margin: 30px 0 34px; }
	.eh-join h3 { font-size: 16px; }
	.eh-join-btn { width: 100%; justify-content: center; }
}
