/* ==========================================================
   教育培训 · 资讯详情页
   依赖 edu.css 的顶部/面包屑/页脚；本文件只管正文与侧栏
   ========================================================== */

.ea-wrap {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding-bottom: 28px;
}

/* ---------------- 左：正文 ---------------- */
.ea-main {
	flex: 1;
	min-width: 0;
	background: #fff;
	border: 1px solid #ebeef2;
	border-radius: 10px;
	padding: 28px 32px 30px;
}

.ea-title {
	font-size: 24px;
	line-height: 1.5;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: .2px;
	margin: 0 0 14px;
}

.ea-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: #9aa3af;
	margin-bottom: 14px;
}
.ea-meta a { color: #9aa3af; text-decoration: none; }
.ea-meta a:hover { color: #f5453f; }
.ea-meta .dot { color: #d4d8de; }

.ea-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ea-tag {
	font-size: 12px;
	color: #6b7280;
	background: #f5f6f8;
	border-radius: 4px;
	padding: 3px 9px;
	line-height: 1.6;
}

.ea-cover {
	margin: 0 0 20px;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f4f7;
}
.ea-cover img {
	width: 100%;
	max-height: 380px;
	object-fit: cover;
	display: block;
}

/* 富文本正文 */
.ea-content {
	font-size: 15px;
	line-height: 1.95;
	color: #333;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.ea-content p { margin: 0 0 16px; }
.ea-content h1,
.ea-content h2 { font-size: 18px; line-height: 1.6; color: #1a1a1a; margin: 26px 0 14px; font-weight: 600; }
.ea-content h3,
.ea-content h4 { font-size: 16px; line-height: 1.6; color: #1a1a1a; margin: 22px 0 12px; font-weight: 600; }
.ea-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 12px auto;
	border-radius: 8px;
}
.ea-content a { color: #f5453f; text-decoration: none; }
.ea-content a:hover { text-decoration: underline; }
.ea-content ul,
.ea-content ol { margin: 0 0 16px; padding-left: 22px; }
.ea-content li { margin-bottom: 6px; }
.ea-content blockquote {
	margin: 16px 0;
	padding: 12px 16px;
	background: #fafbfc;
	border-left: 3px solid #ffd7d3;
	color: #6b7280;
	border-radius: 0 6px 6px 0;
}
.ea-content blockquote p:last-child { margin-bottom: 0; }
.ea-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 18px;
	font-size: 14px;
}
.ea-content table th,
.ea-content table td { border: 1px solid #ebeef2; padding: 8px 10px; }
.ea-content table th { background: #fafbfc; color: #4b5563; font-weight: 600; }
.ea-content hr { border: 0; border-top: 1px solid #ebeef2; margin: 24px 0; }
.ea-content iframe { max-width: 100%; }

/* 来源 / 免责 / 翻页 / 返回 */
.ea-source { margin-top: 20px; font-size: 12px; color: #9aa3af; }
.ea-source a { color: #9aa3af; }

.ea-disclaim {
	margin-top: 26px;
	padding: 12px 14px;
	background: #fafbfc;
	border: 1px dashed #e3e6eb;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.8;
	color: #9aa3af;
}

.ea-pager { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.ea-pager a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	background: #fafbfc;
	border-radius: 6px;
	font-size: 13px;
	color: #4b5563;
	text-decoration: none;
	transition: background .15s;
}
.ea-pager a:hover { background: #f5f6f8; }
.ea-pager a em { font-style: normal; color: #9aa3af; flex: 0 0 auto; }
.ea-pager a span {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ea-pager a:hover span { color: #f5453f; }

.ea-back {
	display: inline-block;
	margin-top: 16px;
	font-size: 13px;
	color: #f5453f;
	text-decoration: none;
}
.ea-back:hover { text-decoration: underline; }

/* ---------------- 右：侧栏 ---------------- */
.ea-side {
	flex: 0 0 300px;
	width: 300px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 80px;
}

.ea-card {
	background: #fff;
	border: 1px solid #ebeef2;
	border-radius: 10px;
	padding: 16px;
}
.ea-card-title {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 12px;
}

/* 发布机构卡 */
.ea-org { display: flex; gap: 10px; text-decoration: none; color: inherit; }
.ea-org .ph {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f4f7;
	color: #b6bdc7;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ea-org .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ea-org .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ea-org .bd b {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ea-org .rt { font-size: 12px; color: #ff9500; letter-spacing: -1px; }
.ea-org .rt i { font-style: normal; letter-spacing: 0; margin-left: 4px; font-size: 12px; }
.ea-org .sub {
	font-size: 12px;
	color: #9aa3af;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ea-org:hover .bd b { color: #f5453f; }

.ea-org-info {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f2f4f7;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ea-org-info p {
	margin: 0;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.7;
	display: flex;
	gap: 8px;
}
.ea-org-info p i { font-style: normal; color: #9aa3af; flex: 0 0 28px; }

.ea-org-btn {
	display: block;
	margin-top: 12px;
	text-align: center;
	height: 34px;
	line-height: 32px;
	border-radius: 6px;
	background: #fff5f4;
	border: 1px solid #ffe1dd;
	color: #f5453f;
	font-size: 13px;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
}
.ea-org-btn:hover { background: #f5453f; border-color: #f5453f; color: #fff; }

/* 推荐资讯 */
.ea-rel { display: flex; flex-direction: column; gap: 14px; }
.ea-rel-item { display: flex; flex-direction: column; gap: 5px; text-decoration: none; }
.ea-rel-item b {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	color: #1a1a1a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ea-rel-item .d {
	font-size: 12px;
	line-height: 1.6;
	color: #9aa3af;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ea-rel-item .dt { font-size: 12px; color: #c2c8d0; }
.ea-rel-item:hover b { color: #f5453f; }

/* 电话卡 */
.ea-call { text-align: center; }
.ea-call .tel { font-size: 20px; font-weight: 600; color: #f5453f; letter-spacing: .5px; }
.ea-call p { margin: 6px 0 0; font-size: 12px; color: #9aa3af; }

/* ---------------- 响应 ---------------- */
@media (max-width: 1000px) {
	/* align-items 默认 flex-start：竖排后正文不会撑满宽度，
	   而又被正文图片的原始宽度顶开（实测 605px），手机上整页横向滚动 */
	.ea-wrap { flex-direction: column; align-items: stretch; }
	.ea-main { width: 100%; }
	.ea-main img,
	.ea-cover img { max-width: 100%; height: auto; }
	.ea-side {
		width: 100%;
		flex: 1 1 auto;
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
	}
	.ea-side > .ea-card { flex: 1 1 260px; }
}
@media (max-width: 720px) {
	.ea-main { padding: 20px 16px 24px; }
	.ea-title { font-size: 19px; }
	.ea-content { font-size: 14.5px; line-height: 1.9; }
	.ea-side { flex-direction: column; }
}
