/* ==========================================================================
   电器·智库 — 首页（头条 + 推送 + 板块内容流）
   仅首页加载：is_front_page()
   ========================================================================== */

/* ---------- 头条区 ---------- */
.headline {
	padding: 32px 0 8px;
}

.headline-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 24px;
}

/* 左头条 */
.headline-main {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: box-shadow .25s, border-color .25s;
}

.headline-main:hover {
	border-color: var(--copper);
	box-shadow: 0 14px 36px rgba(13, 27, 42, .10);
}

.headline-main .thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--paper-2);
}

.headline-main .thumb > a {
	display: block;
	width: 100%;
	height: 100%;
}

.headline-main .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s;
}

.headline-main:hover .thumb img {
	transform: scale(1.04);
}

.headline-main .thumb .label {
	position: absolute;
	left: 16px;
	top: 16px;
	padding: 4px 12px;
	border-radius: 4px;
	background: var(--copper);
	font-size: 12px;
	letter-spacing: 2px;
	color: var(--white);
}

.headline-main .body {
	padding: 22px 24px 24px;
}

.headline-main h1 {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.45;
	color: var(--navy);
	margin-bottom: 12px;
}

.headline-main h1 a {
	transition: color .2s;
}

.headline-main h1 a:hover {
	color: var(--copper);
}

.headline-main .excerpt {
	font-size: 15px;
	line-height: 1.8;
	color: var(--muted);
}

.headline-main .foot {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 16px;
	font-size: 13px;
	color: var(--muted);
}

.headline-main .foot .src {
	color: var(--copper);
}

/* 无图占位 */
.thumb .noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--paper-2), var(--line));
	font-family: var(--serif);
	font-size: 18px;
	letter-spacing: 6px;
	color: var(--copper);
}

/* 右推送窗 */
.headline-side {
	display: flex;
	flex-direction: column;
}

.push-box {
	display: flex;
	flex-direction: column;
	flex: 1;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.push-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
}

.push-head h2 {
	position: relative;
	padding-left: 12px;
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--navy);
}

.push-head h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 18px;
	background: var(--copper);
}

.push-head .more {
	font-size: 13px;
	color: var(--muted);
	transition: color .2s;
}

.push-head .more:hover {
	color: var(--copper);
}

.push-list {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.push-list li {
	display: flex;
	flex: 1;
	border-bottom: 1px solid var(--line);
}

.push-list li:last-child {
	border-bottom: none;
}

.push-list a {
	display: flex;
	align-items: center;
	flex: 1;
	gap: 12px;
	padding: 15px 20px;
	transition: background .2s;
}

.push-list a:hover {
	background: var(--paper);
}

.push-list .ptag {
	flex: none;
	padding: 2px 8px;
	border-radius: 10px;
	background: var(--paper-2);
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--copper);
	white-space: nowrap;
}

.push-list .ptitle {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--text);
	transition: color .2s;
}

.push-list a:hover .ptitle {
	color: var(--copper);
}

.push-list .ptime {
	flex: none;
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}

/* ---------- 内容流 ---------- */
.feed {
	padding: 32px 0 40px;
}

.feed-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

/* 新闻资讯：横跨两列 */
.feed-news {
	grid-column: 1 / -1;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.feed-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 22px;
	border-bottom: 1px solid var(--line);
}

.feed-head .ttl {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.feed-head .ttl h2 {
	font-family: var(--serif);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--navy);
}

.feed-head .ttl .en {
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
}

.feed-head .more {
	font-size: 13px;
	color: var(--muted);
	transition: color .2s;
}

.feed-head .more:hover {
	color: var(--copper);
}

.news-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.news-list li {
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.news-list li:nth-child(2n) {
	border-right: none;
}

.news-list li:nth-last-child(-n+2) {
	border-bottom: none;
}

.news-list a {
	display: block;
	padding: 18px 22px;
	transition: background .2s;
}

.news-list a:hover {
	background: var(--paper);
}

.news-list .ntitle {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--navy);
	transition: color .2s;
}

.news-list a:hover .ntitle {
	color: var(--copper);
}

.news-list .nmeta {
	display: flex;
	gap: 12px;
	margin-top: 8px;
	font-size: 12px;
	color: var(--muted);
}

/* 板块栏目卡片 */
.feed-col {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.col-list {
	flex: 1;
}

.col-list li {
	border-bottom: 1px solid var(--line);
}

.col-list li:last-child {
	border-bottom: none;
}

.col-list a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 22px;
	transition: background .2s;
}

.col-list a:hover {
	background: var(--paper);
}

.col-list .ctitle {
	font-size: 14px;
	line-height: 1.55;
	color: var(--text);
	transition: color .2s;
}

.col-list a:hover .ctitle {
	color: var(--copper);
}

.col-list .ctime {
	flex: none;
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}

/* 首页空态 */
.feed-empty {
	grid-column: 1 / -1;
	padding: 60px 24px;
	border: 1px dashed var(--line);
	border-radius: var(--radius-lg);
	background: var(--white);
	text-align: center;
	color: var(--muted);
}

/* ---------- 动画 ---------- */
.headline-main,
.push-box,
.feed-news,
.feed-col {
	animation: rise .5s ease both;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
	.headline-grid,
	.feed-grid {
		grid-template-columns: 1fr;
	}

	.feed-news {
		grid-column: auto;
	}

	.news-list {
		grid-template-columns: 1fr;
	}

	.news-list li {
		border-right: none;
	}

	.news-list li:nth-last-child(2) {
		border-bottom: 1px solid var(--line);
	}
}

@media (max-width: 640px) {
	.headline {
		padding-top: 22px;
	}

	.headline-main h1 {
		font-size: 21px;
	}

	.headline-main .body {
		padding: 18px 18px 20px;
	}

	.feed-head {
		padding: 14px 18px;
	}

	.news-list a,
	.col-list a,
	.push-list a {
		padding-left: 18px;
		padding-right: 18px;
	}
}
