/* =========================================================
   Zhonggon Child — 页头 / 页脚 / 导航 / 面包屑（全站 chrome）
   ========================================================= */

/* ---------- 顶栏 ---------- */
.zg-topbar {
	background: var(--zg-navy);
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
}
.zg-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 36px;
	gap: 16px;
}
.zg-topbar-right { display: flex; gap: 18px; }
.zg-topbar-item { white-space: nowrap; }
.zg-topbar .zg-hot strong { color: #fff; font-size: 14px; }
@media (max-width: 768px) {
	.zg-topbar-item:not(.zg-hot) { display: none; }
	.zg-topbar-inner { justify-content: center; }
}

/* ---------- Header ---------- */
.zg-header {
	background: #fff;
	border-bottom: 1px solid var(--zg-line);
	position: sticky;
	top: 0;
	z-index: 90;
	transition: box-shadow 0.2s ease;
}
.zg-header.is-scrolled { box-shadow: 0 6px 18px rgba(10, 29, 51, 0.09); }
.zg-header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 68px;
}
.zg-brand a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.zg-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9px;
	background: var(--zg-grad);
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 1px;
}
.zg-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.zg-logo-name {
	font-size: 19px;
	font-weight: 800;
	color: var(--zg-navy);
	letter-spacing: 1px;
}
.zg-logo-slogan { font-size: 11px; color: var(--zg-muted); letter-spacing: 1px; }

.zg-nav { margin-left: auto; }
.zg-nav-list {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.zg-nav-list .menu-item { position: relative; }
.zg-nav-list a {
	display: block;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--zg-ink);
	text-decoration: none;
	border-radius: 6px;
	transition: color 0.15s ease, background 0.15s ease;
}
.zg-nav-list a:hover,
.zg-nav-list .current-menu-item > a,
.zg-nav-list .current_page_item > a {
	color: var(--zg-blue);
	background: rgba(21, 96, 232, 0.07);
}

/* 二级菜单 */
.zg-nav-list .menu-item-has-children > a::after {
	content: " ▾";
	font-size: 11px;
	color: var(--zg-muted);
}
.zg-nav-list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--zg-line);
	border-radius: 8px;
	box-shadow: var(--zg-shadow-hover);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.18s ease;
}
.zg-nav-list li:hover > .sub-menu,
.zg-nav-list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.zg-nav-list .sub-menu a { padding: 9px 16px; font-weight: 500; font-size: 14px; }

.zg-header-cta { padding: 10px 20px; font-size: 14px; }
.zg-burger { display: none; }

@media (max-width: 900px) {
	.zg-header-cta { display: none; }
	.zg-burger {
		display: flex;
		flex-direction: column;
		gap: 5px;
		background: none;
		border: 0;
		padding: 8px;
		margin-left: auto;
		cursor: pointer;
	}
	.zg-burger span {
		width: 22px;
		height: 2px;
		background: var(--zg-navy);
		border-radius: 2px;
	}
	.zg-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--zg-line);
		box-shadow: var(--zg-shadow-hover);
		padding: 10px 20px 18px;
	}
	.zg-nav.is-open { display: block; }
	.zg-nav-list { flex-direction: column; gap: 0; }
	.zg-nav-list a { padding: 12px 8px; border-bottom: 1px solid var(--zg-line); border-radius: 0; }
	.zg-nav-list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 16px;
	}
}

/* ---------- 面包屑 ---------- */
.zg-bc-wrap { padding-top: 18px; }
.zg-breadcrumb {
	font-size: 13px;
	color: var(--zg-muted);
	padding: 6px 0;
}
.zg-breadcrumb a { color: var(--zg-muted); text-decoration: none; }
.zg-breadcrumb a:hover { color: var(--zg-blue); }
.zg-bc-sep { margin: 0 8px; color: #c3cfdb; }

/* ---------- Footer ---------- */
.zg-footer {
	background: var(--zg-navy);
	color: rgba(255, 255, 255, 0.78);
	margin-top: 0;
}
.zg-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 36px;
	padding: 56px 20px 40px;
}
.zg-footer-desc { font-size: 14px; line-height: 1.8; margin-top: 14px; }
.zg-brand-footer .zg-logo-name { color: #fff; }
.zg-brand-footer .zg-logo-slogan { color: rgba(255, 255, 255, 0.55); }
.zg-footer-title {
	color: #fff;
	font-size: 15px;
	margin: 4px 0 16px;
	padding-bottom: 10px;
	position: relative;
}
.zg-footer-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 26px;
	height: 2px;
	background: var(--zg-grad);
}
.zg-footer-links, .zg-footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 2.1;
}
.zg-footer-links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.zg-footer-links a:hover { color: var(--zg-cyan); }
.zg-footer-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 16px 0;
	font-size: 13px;
}
.zg-footer-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.zg-back-top { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.zg-back-top:hover { color: #fff; }
@media (max-width: 900px) {
	.zg-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
	.zg-footer-grid { grid-template-columns: 1fr; }
	.zg-footer-bar-inner { flex-direction: column; gap: 8px; }
}
