/* =========================================================
   Zhonggon Child — 设计系统（数据中心机房蓝青配色）
   与节能猫视觉无关；所有页面共用令牌与基础组件。
   ========================================================= */

:root {
	--zg-navy: #0a1d33;
	--zg-navy-2: #0e2a4a;
	--zg-blue: #1560e8;
	--zg-blue-d: #0c46b8;
	--zg-cyan: #00b7d4;
	--zg-cyan-d: #0090a8;
	--zg-orange: #ff7a1a;
	--zg-ink: #1b2733;
	--zg-muted: #5a6b7c;
	--zg-bg: #f4f8fc;
	--zg-line: #e3ebf3;
	--zg-card: #ffffff;
	--zg-radius: 10px;
	--zg-shadow: 0 2px 10px rgba(10, 29, 51, 0.06);
	--zg-shadow-hover: 0 10px 28px rgba(10, 29, 51, 0.12);
	--zg-grad: linear-gradient(90deg, var(--zg-blue), var(--zg-cyan));
	--zg-wrap: 1200px;
}

body.zg-child {
	font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	color: var(--zg-ink);
	background: var(--zg-bg);
	-webkit-font-smoothing: antialiased;
}

.zg-wrap {
	max-width: var(--zg-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.zg-skip {
	position: absolute;
	left: -9999px;
}
.zg-skip:focus {
	left: 12px;
	top: 12px;
	z-index: 999;
	background: #fff;
	padding: 8px 14px;
	border-radius: 6px;
}

/* ---------- 按钮 ---------- */
.zg-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 26px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.zg-btn:hover { transform: translateY(-2px); }

.zg-btn-primary {
	background: var(--zg-blue);
	color: #fff;
}
.zg-btn-primary:hover {
	background: var(--zg-blue-d);
	color: #fff;
	box-shadow: 0 8px 20px rgba(21, 96, 232, 0.35);
}

.zg-btn-ghost {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}
.zg-btn-ghost:hover {
	border-color: #fff;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.zg-btn-light {
	background: var(--zg-orange);
	color: #fff;
}
.zg-btn-light:hover { background: #e96a0c; color: #fff; }

.zg-btn-outline {
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}
.zg-btn-outline:hover { border-color: #fff; color: #fff; }

/* ---------- 卡片 ---------- */
.zg-card {
	background: var(--zg-card);
	border: 1px solid var(--zg-line);
	border-radius: var(--zg-radius);
	padding: 26px;
	position: relative;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: var(--zg-shadow);
}
.zg-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--zg-grad);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.zg-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--zg-shadow-hover);
}
.zg-card:hover::before { opacity: 1; }

.zg-card h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.4;
}
.zg-card h3 a { color: var(--zg-ink); text-decoration: none; }
.zg-card h3 a:hover { color: var(--zg-blue); }
.zg-card p {
	margin: 0 0 12px;
	color: var(--zg-muted);
	font-size: 14px;
	line-height: 1.75;
}
.zg-card-more {
	font-size: 14px;
	font-weight: 600;
	color: var(--zg-blue);
	text-decoration: none;
}
.zg-card-more:hover { color: var(--zg-cyan-d); }
.zg-card-meta {
	display: inline-block;
	font-size: 12px;
	color: var(--zg-muted);
	background: var(--zg-bg);
	border: 1px solid var(--zg-line);
	border-radius: 999px;
	padding: 2px 10px;
	margin-bottom: 10px;
}

/* ---------- 通用 Section ---------- */
.zg-section { padding: 72px 0; }
.zg-section-alt { background: linear-gradient(180deg, #fff 0%, var(--zg-bg) 100%); }

.zg-section-head { text-align: center; margin-bottom: 40px; }
.zg-section-head h2 {
	margin: 6px 0 8px;
	font-size: 30px;
	color: var(--zg-navy);
}
.zg-section-head p { margin: 0; color: var(--zg-muted); }

.zg-kicker {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 3px;
	font-weight: 700;
	color: var(--zg-cyan-d);
}
.zg-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	text-align: left;
}
.zg-link-more { font-weight: 600; color: var(--zg-blue); text-decoration: none; font-size: 14px; }
.zg-link-more:hover { color: var(--zg-cyan-d); }

/* ---------- 栅格 ---------- */
.zg-grid { display: grid; gap: 22px; }
.zg-grid-2 { grid-template-columns: repeat(2, 1fr); }
.zg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.zg-grid-4 { grid-template-columns: repeat(4, 1fr); }
.zg-grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
	.zg-grid-3, .zg-grid-4, .zg-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.zg-grid-2, .zg-grid-3, .zg-grid-4, .zg-grid-5 { grid-template-columns: 1fr; }
	.zg-section { padding: 52px 0; }
	.zg-section-head h2 { font-size: 24px; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
