/* ==========================================================================
   电器·智库 — 列表页 / 搜索结果 / 归档 / 404
   加载条件：is_home() || is_archive() || is_search() || is_404()
   ========================================================================== */

/* ---------- 板块头 ---------- */
.page-head {
	padding: 34px 0 30px;
	border-bottom: 1px solid var(--line);
}

.page-head .kicker {
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 3px;
	color: var(--copper);
}

.page-head h1 {
	font-family: var(--serif);
	font-size: 40px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.25;
	color: var(--navy);
}

.page-head .desc {
	max-width: 680px;
	margin-top: 12px;
	font-size: 15px;
	color: var(--muted);
}

.page-head .meta {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 18px;
	font-size: 13px;
	color: var(--muted);
}

.page-head .meta b {
	margin-right: 4px;
	font-family: var(--serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--copper);
}

/* ---------- 主体布局 ---------- */
.layout {
	padding: 32px 0 56px;
}

/* ---------- 列表项 ---------- */
.list-item {
	position: relative;
	overflow: hidden;
	padding: 22px 24px;
	margin-bottom: 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}

.list-item:hover {
	transform: translateY(-2px);
	border-color: var(--copper);
	box-shadow: 0 10px 26px rgba(13, 27, 42, .08);
}

.list-item .tag {
	display: inline-block;
	margin-bottom: 10px;
	padding: 2px 10px;
	border-radius: 12px;
	background: var(--paper-2);
	font-size: 12px;
	letter-spacing: 1px;
	color: var(--copper);
}

.list-item h2 {
	margin-bottom: 8px;
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.45;
}

.list-item h2 a {
	color: var(--navy);
	transition: color .2s;
}

.list-item h2 a:hover {
	color: var(--copper);
}

.list-item .excerpt {
	font-size: 14px;
	line-height: 1.75;
	color: var(--muted);
}

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

.list-item .foot .src {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.list-item .foot .src::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--copper);
}

/* ---------- 分页 ---------- */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	font-size: 14px;
	color: var(--text);
	transition: all .2s;
}

.pagination a:hover {
	border-color: var(--copper);
	color: var(--copper);
}

.pagination .current,
.pagination .cur {
	border-color: var(--copper);
	background: var(--copper);
	font-weight: 600;
	color: var(--white);
}

.pagination .dots {
	border-color: transparent;
	background: transparent;
}

.pagination .disabled {
	background: var(--paper-2);
	color: var(--line);
	cursor: not-allowed;
}

/* ---------- 空态 / 404 ---------- */
.notfound-page {
	padding: 32px 0 56px;
}

.notfound {
	padding: 40px 0 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	text-align: center;
}

.notfound .code {
	font-family: var(--serif);
	font-size: 72px;
	font-weight: 700;
	line-height: 1;
	color: var(--copper);
}

.notfound h2 {
	margin: 14px 0 10px;
	font-family: var(--serif);
	font-size: 22px;
	letter-spacing: 1px;
	color: var(--navy);
}

.notfound p {
	color: var(--muted);
	font-size: 14px;
}

.notfound .actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 6px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 20px;
	border: 1px solid var(--copper);
	border-radius: 8px;
	background: var(--copper);
	font-size: 14px;
	color: var(--white);
	transition: all .2s;
}

.btn:hover {
	background: var(--brand-dark);
	border-color: var(--brand-dark);
}

.btn.ghost {
	background: transparent;
	color: var(--copper);
}

.btn.ghost:hover {
	background: var(--copper);
	color: var(--white);
}

.search-again {
	max-width: 460px;
	margin: 22px auto 0;
}

/* ---------- 检索表单（页内） ---------- */
.search-form {
	display: flex;
	gap: 8px;
}

.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	font-size: 14px;
}

.search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--copper);
}

.search-form button,
.search-form input[type="submit"] {
	flex: none;
	height: 38px;
	padding: 0 18px;
	border: 1px solid var(--copper);
	border-radius: 8px;
	background: var(--copper);
	font-size: 14px;
	color: var(--white);
	cursor: pointer;
	transition: background .2s;
}

.search-form button:hover,
.search-form input[type="submit"]:hover {
	background: var(--brand-dark);
	border-color: var(--brand-dark);
}

/* ---------- 动画 ---------- */
.page-head,
.list-item,
.aside-box {
	animation: rise .5s ease both;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
	.page-head {
		padding: 22px 0 20px;
	}

	.page-head h1 {
		font-size: 30px;
	}

	.list-item {
		padding: 18px 18px;
	}

	.list-item h2 {
		font-size: 17px;
	}

	.notfound .code {
		font-size: 56px;
	}
}
