* { box-sizing: border-box; }

:root {
	--primary: #2563eb;
	--accent: #0ea5e9;
	--text: #1f2a3d;
	--muted: #7b8aa3;
	--line: #eaeef6;
	--bg: #f6f8fc;
}

body {
	margin: 0;
	font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
	font-size: 15px;
	line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.nav-wrap {
	height: 68px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 16px;
}

.brand img { height: 34px; width: auto; }

.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	font-size: 18px;
	box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 14px;
	color: #4b5a73;
}

.site-nav a { transition: color 0.18s; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); }

.nav-btn {
	height: 38px;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	border-radius: 9px;
	background: #eef4ff;
	color: var(--primary);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.nav-btn:hover { background: #e0ebff; }

/* ---------- 首页 Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: 84px 0 76px;
	color: #fff;
	background:
		radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.35) 0, transparent 36%),
		radial-gradient(circle at 82% 10%, rgba(37, 99, 235, 0.55) 0, transparent 40%),
		linear-gradient(135deg, #0f1e3d 0%, #14305e 55%, #0f1e3d 100%);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 44px 44px;
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 54px;
	align-items: center;
}

.eyebrow {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.12);
	color: #bfdbfe;
	font-size: 12px;
	letter-spacing: 1px;
}

.hero h1 {
	margin: 18px 0 14px;
	font-size: 44px;
	line-height: 1.25;
	letter-spacing: 1px;
}

.hero p { margin: 0; max-width: 560px; color: #c7d6ee; font-size: 16px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.btn-primary, .btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 26px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s;
}

.btn-primary {
	background: linear-gradient(135deg, #3b82f6, #0ea5e9);
	color: #fff;
	box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #e2e8f0;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.hero-card {
	padding: 26px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(8px);
}

.hero-card h3 { margin: 0 0 16px; font-size: 15px; color: #dbeafe; font-weight: 600; }

.hero-stat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
	font-size: 14px;
	color: #c7d6ee;
}

.hero-stat:last-child { border-bottom: 0; }
.hero-stat strong { color: #fff; font-size: 18px; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section.alt { background: #fff; }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.section-head h2 { margin: 0; font-size: 26px; }
.section-hint { color: var(--muted); font-size: 13px; }

.feature-grid, .card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.feature-card {
	display: block;
	padding: 24px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #eef1f8;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
	transition: all 0.2s;
}

.feature-card:hover {
	transform: translateY(-3px);
	border-color: #c9dbff;
	box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
}

.feature-icon {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: #eaf1ff;
	color: var(--primary);
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 16px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 16px; }
.feature-card p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- CMS 版块与文章 ---------- */
.section-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	background: #eaf1ff;
	color: var(--primary);
	font-size: 12px;
	margin-bottom: 14px;
}

.card-link { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--primary); font-weight: 600; }

.article-list { display: grid; gap: 12px; }

.article-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 22px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #eef1f8;
	transition: all 0.18s;
}

.article-item:hover { border-color: #c9dbff; background: #fbfdff; }
.article-item h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.article-item .meta { font-size: 12px; color: var(--muted); }
.article-item .arrow { color: #b6c2d6; font-size: 16px; }

.article-main { flex: 1; min-width: 0; }

.article-thumb {
	flex: 0 0 132px;
	width: 132px;
	height: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(135deg, #dbeafe, #e0f2fe);
	color: var(--primary);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
}

.article-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.article-summary {
	margin: 4px 0 6px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-cover { margin: 22px 0; border-radius: 12px; overflow: hidden; background: #f1f5fb; }
.article-cover img { display: block; width: 100%; max-height: 420px; object-fit: cover; }

.article-lead {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-left: 3px solid var(--primary);
	border-radius: 6px;
	background: #f5f8ff;
	color: #4b5a73;
	font-size: 14px;
	line-height: 1.8;
}

/* ---------- 联系 ---------- */
.contact-band {
	margin: 0 auto;
	max-width: 1072px;
	padding: 44px 48px;
	border-radius: 20px;
	color: #fff;
	background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
	box-shadow: 0 20px 42px rgba(37, 99, 235, 0.22);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
}

.contact-band h2 { margin: 0 0 8px; font-size: 24px; }
.contact-band p { margin: 0; color: #dbeafe; font-size: 14px; }

.contact-items { display: flex; gap: 34px; flex-wrap: wrap; }
.contact-item span { display: block; font-size: 12px; color: #bfdbfe; margin-bottom: 4px; }
.contact-item strong { font-size: 18px; font-weight: 600; }

/* ---------- 版块页 ---------- */
.page-hero {
	padding: 58px 0 46px;
	color: #fff;
	background:
		radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.3) 0, transparent 38%),
		linear-gradient(135deg, #0f1e3d, #14305e);
}

.page-hero.small { padding: 42px 0 36px; }
.page-hero h1 { margin: 14px 0 10px; font-size: 34px; }
.page-hero p { margin: 0; color: #c7d6ee; max-width: 640px; }

.breadcrumb { font-size: 13px; color: #9fb3d1; margin-bottom: 6px; }
.breadcrumb a { color: #cfe0f7; }
.breadcrumb a:hover { color: #fff; }

.empty-box {
	padding: 46px 20px;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
	background: #fff;
	border: 1px dashed #dfe5ef;
	border-radius: 12px;
}

.back-link { display: inline-block; margin-top: 26px; color: var(--primary); font-size: 14px; }
.back-link:hover { text-decoration: underline; }

.article-section { padding-top: 46px; }
.container.narrow { max-width: 820px; }

.article-detail {
	background: #fff;
	border-radius: 16px;
	padding: 40px 44px 36px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.article-detail h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.35; }
.article-detail .meta { color: var(--muted); font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-body { margin-top: 24px; font-size: 15px; line-height: 1.9; color: #33415c; word-break: break-word; }
.article-body p { margin: 0 0 14px; }
.article-body img { max-width: 100%; border-radius: 10px; }
.article-body pre { padding: 14px; background: #f7f9fc; border-radius: 10px; overflow: auto; }
.article-foot { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-foot .back-link { margin-top: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
	margin-top: 60px;
	padding: 34px 0;
	background: #0f1e3d;
	color: #9fb3d1;
	font-size: 13px;
}

.footer-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.footer-brand { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-text { margin: 0; font-size: 12px; color: #7e93b5; }
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; gap: 36px; }
	.hero h1 { font-size: 36px; }
	.feature-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact-band { padding: 34px 28px; }
}

@media (max-width: 760px) {
	.site-nav { display: none; }
	.hero { padding: 58px 0 52px; }
	.hero h1 { font-size: 30px; }
	.section { padding: 46px 0; }
	.feature-grid, .card-grid { grid-template-columns: 1fr; }
	.article-detail { padding: 28px 22px; }
	.article-detail h1 { font-size: 24px; }
	.article-item { padding: 14px 16px; gap: 14px; }
	.article-thumb { flex-basis: 96px; width: 96px; height: 66px; }
	.contact-items { gap: 20px; }
	.footer-wrap { flex-direction: column; align-items: flex-start; }
}
