/* =========================================================
   内页 · 列表 / 归档 / 搜索（同一套蓝青令牌）
   含：内页头 Banner、工具条、卡片、左侧栏、分页、空状态
   ========================================================= */

/* ---------- ① 内页头（深蓝 Banner） ---------- */
.zg-pagehead {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--zg-navy) 0%, #103a63 55%, #0d4a72 100%);
	padding: 46px 0 42px;
	color: #fff;
}
.zg-pagehead::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: linear-gradient(120deg, #000 30%, transparent 85%);
	-webkit-mask-image: linear-gradient(120deg, #000 30%, transparent 85%);
}
.zg-pagehead::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -140px;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 183, 212, 0.45), transparent 66%);
	pointer-events: none;
}
.zg-pagehead .zg-wrap { position: relative; z-index: 2; }

.zg-pagehead .zg-breadcrumb { color: rgba(255, 255, 255, 0.62); font-size: 13px; }
.zg-pagehead .zg-breadcrumb a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.zg-pagehead .zg-breadcrumb a:hover { color: var(--zg-cyan); }
.zg-pagehead .zg-bc-sep { margin: 0 8px; opacity: 0.5; }

.zg-pagehead-title {
	margin: 14px 0 0;
	font-size: 34px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.4px;
	color: #fff;
}
.zg-pagehead-sub {
	margin: 12px 0 0;
	max-width: 780px;
	font-size: 15px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.76);
}
.zg-pagehead-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
.zg-pagehead-meta li {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.88);
	background: rgba(255, 255, 255, 0.06);
}
.zg-pagehead-meta li strong { color: var(--zg-cyan); font-weight: 700; }

/* header 输出的兜底面包屑（页面模板未自带内页头时） */
.zg-bc-wrap { padding: 16px 0 0; }
.zg-breadcrumb { font-size: 13px; color: var(--zg-muted); }
.zg-breadcrumb a { color: var(--zg-muted); text-decoration: none; }
.zg-breadcrumb a:hover { color: var(--zg-blue); }

/* ---------- ② 主体两栏 ---------- */
.zg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 34px;
	padding: 34px 0 64px;
	align-items: start;
}
.zg-layout-full { grid-template-columns: minmax(0, 1fr); }

/* ---------- ③ 工具条 ---------- */
.zg-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 22px;
	padding: 14px 18px;
	background: var(--zg-card);
	border: 1px solid var(--zg-line);
	border-radius: var(--zg-radius);
	box-shadow: var(--zg-shadow);
}
.zg-toolbar-count { font-size: 14px; color: var(--zg-muted); }
.zg-toolbar-count strong { color: var(--zg-blue); font-size: 17px; font-weight: 800; margin: 0 3px; }
.zg-sort { display: flex; gap: 6px; }
.zg-sort a {
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	color: var(--zg-muted);
	text-decoration: none;
	border: 1px solid var(--zg-line);
	transition: all 0.16s ease;
}
.zg-sort a:hover { color: var(--zg-blue); border-color: #bcd4f6; }
.zg-sort a.is-active { color: #fff; background: var(--zg-grad); border-color: transparent; font-weight: 600; }

/* ---------- ④ 卡片 ---------- */
.zg-list { display: grid; gap: 22px; }
.zg-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zg-list-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.zg-item {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--zg-card);
	border: 1px solid var(--zg-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--zg-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.zg-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--zg-shadow-hover);
	border-color: #c8ddfa;
}

.zg-item-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, #eaf2fb, #dbe9f8);
}
.zg-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}
.zg-item:hover .zg-item-thumb img { transform: scale(1.06); }
.zg-item-thumb-ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	color: #9ab7d8;
}
.zg-item-cat {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba(10, 29, 51, 0.78);
}
.zg-item-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.zg-item-title { margin: 0 0 10px; font-size: 17px; line-height: 1.5; font-weight: 700; }
.zg-item-title a { color: var(--zg-ink); text-decoration: none; }
.zg-item:hover .zg-item-title a { color: var(--zg-blue); }
.zg-item-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.75;
	color: var(--zg-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.zg-item-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--zg-line);
	font-size: 13px;
	color: #93a3b3;
}
.zg-item-more { color: var(--zg-blue); font-weight: 600; text-decoration: none; }
.zg-item-more::after { content: " →"; }
.zg-item:hover .zg-item-more::after { margin-left: 3px; }

/* 无图卡片（百科 / 公告） */
.zg-item-plain .zg-item-body { padding: 22px; }
.zg-item-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 12px;
	border-radius: 9px;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	background: var(--zg-grad);
}

/* ---------- ⑤ 左侧栏 ---------- */
.zg-side { position: sticky; top: 90px; display: grid; gap: 20px; }

.zg-box {
	background: var(--zg-card);
	border: 1px solid var(--zg-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--zg-shadow);
}
.zg-box-head {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 15px 18px;
	border-bottom: 1px solid var(--zg-line);
	font-size: 15px;
	font-weight: 700;
	color: var(--zg-navy);
}
.zg-box-head::before {
	content: "";
	width: 4px;
	height: 16px;
	border-radius: 2px;
	background: var(--zg-grad);
}
.zg-box-body { padding: 12px 18px 16px; }

.zg-navcat { list-style: none; margin: 0; padding: 0; }
.zg-navcat li { border-bottom: 1px dashed var(--zg-line); }
.zg-navcat li:last-child { border-bottom: 0; }
.zg-navcat a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 11px 2px 11px 12px;
	font-size: 14px;
	color: var(--zg-ink);
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: all 0.16s ease;
}
.zg-navcat a:hover { color: var(--zg-blue); background: #f3f8ff; border-left-color: #bcd4f6; }
.zg-navcat .is-active > a { color: var(--zg-blue); font-weight: 700; background: #f3f8ff; border-left-color: var(--zg-blue); }
.zg-navcat .zg-count { font-size: 12px; color: #93a3b3; font-weight: 400; }
.zg-navcat .children { list-style: none; margin: 0; padding: 0 0 6px 14px; }
.zg-navcat .children a { font-size: 13px; padding: 8px 2px 8px 12px; color: var(--zg-muted); }

.zg-rank { list-style: none; margin: 0; padding: 0; counter-reset: zgr; }
.zg-rank li {
	display: flex;
	gap: 11px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--zg-line);
	font-size: 14px;
	line-height: 1.6;
}
.zg-rank li:last-child { border-bottom: 0; }
.zg-rank li::before {
	counter-increment: zgr;
	content: counter(zgr);
	flex: 0 0 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	color: #9ab7d8;
	background: #eef5fd;
}
.zg-rank li:nth-child(-n+3)::before { color: #fff; background: var(--zg-grad); }
.zg-rank a { color: var(--zg-ink); text-decoration: none; }
.zg-rank a:hover { color: var(--zg-blue); }

/* 侧栏询价卡 */
.zg-side-cta {
	position: relative;
	overflow: hidden;
	padding: 22px 20px;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(150deg, var(--zg-navy), #12456f);
	box-shadow: 0 12px 28px rgba(10, 29, 51, 0.24);
}
.zg-side-cta::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -70px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 183, 212, 0.4), transparent 68%);
}
.zg-side-cta > * { position: relative; z-index: 2; }
.zg-side-cta h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #fff; }
.zg-side-cta p { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }
.zg-side-cta .zg-btn { width: 100%; justify-content: center; }
.zg-side-cta .zg-btn-ghost { margin-top: 10px; }
.zg-side-tel {
	display: block;
	margin: 0 0 12px;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: var(--zg-cyan);
	text-decoration: none;
}

/* ---------- ⑥ 分页 ---------- */
.zg-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 36px 0 0;
}
.zg-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	color: var(--zg-ink);
	background: var(--zg-card);
	border: 1px solid var(--zg-line);
	text-decoration: none;
	transition: all 0.16s ease;
}
.zg-pager .page-numbers:hover { color: var(--zg-blue); border-color: #bcd4f6; transform: translateY(-2px); }
.zg-pager .page-numbers.current {
	color: #fff;
	background: var(--zg-grad);
	border-color: transparent;
	box-shadow: 0 8px 18px rgba(21, 96, 232, 0.28);
}
.zg-pager .page-numbers.dots { background: transparent; border-color: transparent; }

/* ---------- ⑦ 空状态 ---------- */
.zg-empty {
	padding: 70px 24px;
	text-align: center;
	background: var(--zg-card);
	border: 1px dashed var(--zg-line);
	border-radius: 12px;
}
.zg-empty-icon { font-size: 44px; }
.zg-empty h3 { margin: 14px 0 8px; font-size: 19px; color: var(--zg-navy); }
.zg-empty p { margin: 0; color: var(--zg-muted); font-size: 14px; }

/* ---------- ⑧ 栏目说明（SEO 文案区） ---------- */
.zg-arch-desc {
	margin-top: 34px;
	padding: 24px 26px;
	background: #fff;
	border: 1px solid var(--zg-line);
	border-left: 4px solid var(--zg-cyan);
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.85;
	color: var(--zg-muted);
}
.zg-arch-desc h2 { margin: 0 0 10px; font-size: 17px; color: var(--zg-navy); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
	.zg-layout { grid-template-columns: 1fr; gap: 26px; }
	.zg-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zg-side-cta { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.zg-list-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.zg-pagehead { padding: 32px 0 30px; }
	.zg-pagehead-title { font-size: 24px; }
	.zg-list-2, .zg-list-3 { grid-template-columns: 1fr; }
	.zg-side { grid-template-columns: 1fr; }
	.zg-toolbar { padding: 12px 14px; }
}
