/* ============================================================
   程旺电气 — 工业深蓝主题覆盖层
   在 main.css 之后引入，覆盖 Massively 模板默认样式。
   配色参考 Watlow / Thermon 工业风格：
   深藏青 #0d2c4f · 工业蓝 #1a6fc4 · 浅灰 #f5f7fa
   ============================================================ */

:root {
	--cw-navy: #0d2c4f;
	--cw-navy-deep: #081f3a;
	--cw-blue: #1a6fc4;
	--cw-blue-bright: #5aa7e8;
	--cw-bg-light: #f5f7fa;
	--cw-text: #2b3440;
	--cw-text-light: #64707e;
	--cw-border: #e3e8ef;
}

html {
	scroll-behavior: smooth;
}

/* ---------- 全局字体：中文无衬线（不依赖外部字体） ---------- */

body, input, select, textarea {
	font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Helvetica, Arial, sans-serif;
	font-weight: 400;
	color: var(--cw-text);
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Helvetica, Arial, sans-serif;
	font-weight: 700;
	letter-spacing: 0.06em;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	color: var(--cw-navy);
}

/* 中文斜体观感差，统一取消 */
header > p, #intro p {
	font-style: normal;
}

/* ---------- 强调色：亮青 → 工业蓝 ---------- */

a:hover {
	color: var(--cw-blue) !important;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
	box-shadow: inset 0 0 0 2px var(--cw-blue);
	color: var(--cw-blue) !important;
}

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary {
	background-color: var(--cw-navy);
	color: #ffffff !important;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover {
	background-color: var(--cw-blue);
	box-shadow: none;
	color: #ffffff !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
	border-color: var(--cw-blue);
}

/* ---------- 全站背景：深藏青色调 ---------- */

/* 注意：本站 overlay.png 实际是风景照片（位于最上层），
   因此把深蓝渐变放到照片之上，照片改为底图。
   大屏视差模式下 .bg 为整页高度：照片按宽度铺满、置顶，其余区域用深藏青底色；
   小屏 .bg.fixed 为视口大小：照片改用 cover 铺满 */
#wrapper > .bg {
	background-color: var(--cw-navy-deep);
	background-image: linear-gradient(180deg, rgba(13, 44, 79, 0.55), rgba(8, 31, 58, 0.8)),
		url('../../images/overlay.png');
	background-size: auto, 100% auto;
	background-position: center, top center;
	background-repeat: no-repeat, no-repeat;
}

#wrapper > .bg.fixed {
	background-size: auto, cover;
	background-position: center, center;
}

/* ---------- Intro 开场区 ---------- */

#intro h1 {
	font-size: 3.75rem;
	letter-spacing: 0.08em;
}

#intro p {
	font-size: 1.15rem;
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.85);
}

#intro .intro-tagline {
	display: block;
	margin: 0.25rem 0 1.5rem;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	color: var(--cw-blue-bright);
	text-transform: none;
}

#intro .button:hover {
	box-shadow: inset 0 0 0 2px var(--cw-blue-bright);
	color: var(--cw-blue-bright) !important;
}

/* 数据亮点条 */
.stats-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 2.5rem auto 0;
	padding-left: 0;
}

.stats-bar li {
	padding: 0 2.75rem;
	border-left: 1px solid rgba(255, 255, 255, 0.25);
	text-align: center;
}

.stats-bar li:first-child {
	border-left: 0;
}

.stats-bar .stat-num {
	display: block;
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

.stats-bar .stat-label {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 736px) {
	.stats-bar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-row-gap: 1.25rem;
		margin-top: 1.75rem;
	}

	.stats-bar li {
		border-left: 0;
		padding: 0 1rem;
	}

	.stats-bar li:nth-child(even) {
		border-left: 1px solid rgba(255, 255, 255, 0.25);
	}

	.stats-bar .stat-num {
		font-size: 1.55rem;
	}

	#intro .intro-tagline {
		font-size: 1rem;
		letter-spacing: 0.18em;
	}

	#intro h1 {
		font-size: 2.1rem;
		line-height: 1.3;
	}

	#intro p {
		font-size: 0.95rem;
	}
}

@media screen and (min-width: 737px) and (max-width: 980px) {
	#intro h1 {
		font-size: 3rem;
	}
}

/* ---------- 头部 Logo 与导航 ---------- */

#header .logo:hover {
	border-color: var(--cw-blue-bright) !important;
	color: var(--cw-blue-bright) !important;
}

#nav {
	background: var(--cw-navy);
	box-shadow: 0 6px 18px rgba(4, 16, 32, 0.35);
}

#nav ul.links li a:hover {
	background-color: rgba(255, 255, 255, 0.08);
	color: #ffffff !important;
}

#nav ul.links li.active {
	background-color: var(--cw-blue);
}

#nav ul.links li.active a {
	color: #ffffff;
}

#nav ul.links li.active a:hover {
	color: #ffffff !important;
}

/* 手机端弹出菜单 */
#navPanel {
	background: var(--cw-navy-deep) !important;
}

/* ---------- 内容区通用 ---------- */

#main > .post header.major > h1,
#main > .post header.major > h2 {
	color: var(--cw-navy);
}

/* 分区标题（左侧竖条） */
.section-heading {
	border-left: 5px solid var(--cw-blue);
	padding-left: 1.5rem;
}

.section-heading h2 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.3;
	color: var(--cw-navy);
}

.section-heading p {
	margin: 0.35rem 0 0;
	font-size: 1rem;
	color: var(--cw-text-light);
}

#main > .section-block {
	padding-bottom: 0 !important;
}

/* 分区标题与其下方卡片网格之间不加分隔线 */
#main > .section-block + .posts {
	border-top: 0 !important;
}

/* 卡片分类标签（替代原日期） */
.category-tag {
	display: inline-block;
	margin-bottom: 1.1rem;
	padding: 0.32rem 0.95rem;
	background: var(--cw-navy);
	border-radius: 3px;
	color: #ffffff !important;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.2em;
}

.post.featured .category-tag {
	background: var(--cw-blue);
}

/* ---------- 产品卡片（首页 .posts 网格） ---------- */

#main > .posts {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	grid-gap: 2.5rem;
	padding: 4rem !important;
}

#main > .posts > * {
	width: auto !important;
	padding: 0 !important;
}

#main > .posts > article {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--cw-border) !important;
	border-radius: 10px;
	padding: 1.75rem 1.75rem 2rem !important;
	box-shadow: 0 2px 10px rgba(13, 44, 79, 0.06);
	-moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
	-webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#main > .posts > article:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(13, 44, 79, 0.14);
	border-color: rgba(26, 111, 196, 0.45) !important;
}

#main > .posts > article .image {
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
}

#main > .posts > article .image img {
	aspect-ratio: 4 / 3;
	object-fit: contain;
	background: #ffffff;
}

#main > .posts > article h2 {
	font-size: 1.35rem;
	line-height: 1.4;
}

#main > .posts > article p {
	font-size: 0.92rem;
	line-height: 1.85;
	color: var(--cw-text-light);
	text-align: left;
}

/* 双 CTA 固定在卡片底部，等高对齐 */
#main > .posts > article .actions.special {
	margin-top: auto;
}

@media screen and (max-width: 980px) {
	#main > .posts {
		grid-gap: 1.75rem;
		padding: 2.5rem !important;
	}
}

@media screen and (max-width: 736px) {
	#main > .posts {
		grid-template-columns: 1fr;
		grid-gap: 1.5rem;
		padding: 2rem 1.25rem !important;
	}

	#main > .posts > article .image {
		max-width: 100% !important;
	}
}

/* ---------- 应用行业区块 ---------- */

.industries {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 1.25rem;
	list-style: none;
	margin: 2.25rem 0 0;
	padding-left: 0;
}

.industries li {
	background: var(--cw-bg-light);
	border: 1px solid var(--cw-border);
	border-radius: 8px;
	padding: 1.6rem 1rem 1.4rem;
	text-align: center;
	-moz-transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	-webkit-transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.industries li:hover {
	transform: translateY(-3px);
	border-color: var(--cw-blue);
	box-shadow: 0 10px 22px rgba(13, 44, 79, 0.1);
}

.industries li .icon {
	display: block;
	margin-bottom: 0.65rem;
	font-size: 1.85rem;
	color: var(--cw-blue);
	border-bottom: none;
}

.industries li .industry-name {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--cw-navy);
}

@media screen and (max-width: 736px) {
	.industries {
		grid-template-columns: 1fr 1fr;
		grid-gap: 0.9rem;
	}
}

/* ---------- 产品明细页（elements.html） ---------- */

/* 系列快捷导航条 */
.series-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 2rem;
}

.series-nav a {
	display: inline-block;
	padding: 0.3rem 1.05rem;
	border: 1px solid var(--cw-border);
	border-bottom: 1px solid var(--cw-border);
	border-radius: 999px;
	background: var(--cw-bg-light);
	color: var(--cw-navy) !important;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
	-moz-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	-webkit-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.series-nav a:hover {
	background: var(--cw-blue);
	border-color: var(--cw-blue);
	color: #ffffff !important;
}

@media screen and (max-width: 736px) {
	.series-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 0.5rem;
	}
}

/* 锚点定位留白 */
h2[id] {
	scroll-margin-top: 1.5rem;
}

/* 系列标题 */
.post > h2[id] {
	border-left: 5px solid var(--cw-blue);
	padding-left: 1.25rem;
	font-size: 1.75rem;
}

.post > h2[id] a {
	border-bottom: none;
	color: var(--cw-navy);
}

/* 返回顶部小链接 */
.back-top {
	display: block;
	margin: 1.5rem 0 0;
	text-align: right;
	font-size: 0.8rem;
}

.back-top a {
	border-bottom: none;
	color: var(--cw-text-light);
}

.back-top a:before {
	margin-right: 0.4rem;
}

/* 产品图卡片 + 图下说明条 */
.box.alt .image.fit {
	background: #ffffff;
	border: 1px solid var(--cw-border);
	border-radius: 6px;
	padding: 0.5rem 0.75rem 0.7rem;
	font-size: 0.82rem;
	line-height: 1.7;
	color: var(--cw-text-light);
	text-align: center;
	-moz-transition: box-shadow 0.25s ease, border-color 0.25s ease;
	-webkit-transition: box-shadow 0.25s ease, border-color 0.25s ease;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.box.alt .image.fit:hover {
	border-color: rgba(26, 111, 196, 0.45);
	box-shadow: 0 8px 20px rgba(13, 44, 79, 0.1);
}

.box.alt .image.fit img {
	border-radius: 4px;
	margin-bottom: 0.45rem;
}

/* ---------- 页脚（深藏青背景上的可读性） ---------- */

#main > footer h4 {
	font-weight: 400;
	font-size: 1rem;
	line-height: 2;
	color: var(--cw-text-light);
}

#footer {
	background: var(--cw-navy-deep);
	color: rgba(255, 255, 255, 0.72);
}

#footer h3 {
	color: #ffffff;
}

#footer h3 .icon {
	margin-right: 0.5rem;
	color: var(--cw-blue-bright);
	border-bottom: none;
}

#footer label {
	color: rgba(255, 255, 255, 0.85);
}

#footer a {
	color: rgba(255, 255, 255, 0.85);
	border-bottom-color: rgba(255, 255, 255, 0.3);
}

#footer a:hover {
	color: var(--cw-blue-bright) !important;
}

#footer input[type="text"],
#footer input[type="email"],
#footer input[type="tel"],
#footer select,
#footer textarea {
	background: rgba(255, 255, 255, 0.96);
	border-color: transparent;
	color: var(--cw-text);
}

#footer input[type="text"]:focus,
#footer input[type="email"]:focus,
#footer input[type="tel"]:focus,
#footer select:focus,
#footer textarea:focus {
	border-color: var(--cw-blue-bright);
}

#footer input[type="submit"] {
	background: var(--cw-blue);
	box-shadow: none;
	color: #ffffff !important;
}

#footer input[type="submit"]:hover {
	background: var(--cw-blue-bright);
	box-shadow: none;
	color: #ffffff !important;
}

#footer .split.contact > section {
	border-color: rgba(255, 255, 255, 0.15) !important;
}

#footer .split.contact p {
	color: rgba(255, 255, 255, 0.72);
}

#copyright a:hover {
	color: var(--cw-blue-bright) !important;
}

/* ---------- 产品独立页（products/） ---------- */

/* 面包屑导航 */
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 1.5rem;
	padding-left: 0;
	font-size: 0.85rem;
	color: var(--cw-text-light);
}

.breadcrumb li {
	padding-left: 0;
}

.breadcrumb li + li:before {
	content: "›";
	margin: 0 0.6rem;
	color: var(--cw-border);
}

.breadcrumb a {
	border-bottom: none;
	color: var(--cw-text-light);
}

/* 参数表 */
.spec-table th {
	background: var(--cw-navy);
	color: #ffffff;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.spec-table td:first-child {
	font-weight: 700;
	color: var(--cw-navy);
	white-space: nowrap;
}

/* 选型 FAQ */
.faq-item {
	background: var(--cw-bg-light);
	border: 1px solid var(--cw-border);
	border-left: 4px solid var(--cw-blue);
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	margin: 0 0 1.25rem;
}

.faq-item h3 {
	font-size: 1.05rem;
	margin: 0 0 0.6rem;
	color: var(--cw-navy);
}

.faq-item h3:before {
	content: "Q";
	display: inline-block;
	margin-right: 0.6rem;
	padding: 0 0.55rem;
	background: var(--cw-blue);
	color: #fff;
	border-radius: 4px;
	font-size: 0.85rem;
}

.faq-item p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.9;
	color: var(--cw-text);
}

/* 产品页小节标题 */
.post .product-section-title {
	border-left: 5px solid var(--cw-blue);
	padding-left: 1.25rem;
	font-size: 1.6rem;
	margin-top: 3rem;
}

/* ---------- 公司简介页：荣誉徽章 ---------- */

.honor-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	margin: 1.25rem 0 2rem;
	padding-left: 0;
}

.honor-badges li {
	padding: 0.5rem 1.25rem;
	background: var(--cw-bg-light);
	border: 1px solid var(--cw-border);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--cw-navy);
}

.honor-badges li .icon {
	margin-right: 0.45rem;
	color: var(--cw-blue);
	border-bottom: none;
}
