/*
Theme Name: Eco Precision 精密仪器
Theme URI: https://example.com/themes/eco-precision
Author: Chengdu Eco Themes
Author URI: https://example.com
Description: 为环保设备代理商打造的精密仪器说明书风主题。银灰底、钢蓝主色与机械红点缀，首屏内嵌"精密标定台"工程线稿（被测阀门+标定信号线+仪表面板+卡尺刻度尺，含指针微颤、校准灯闪烁与信号流动动效），卡尺刻度条、十字准星角标、跑马灯关键词带、幽灵字分区标题与等宽数字贯穿全站。内置"产品设备"自定义文章类型与设备分类法，与合集内其他主题共享内容模型，切换主题内容不丢失。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eco-precision
Tags: business, news, light, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ===== 变量与基础 ===== */
:root {
	--bg: #e9ebee;
	--panel: #ffffff;
	--panel-2: #f2f4f7;
	--steel: #1f3a5f;
	--steel-deep: #16283f;
	--red: #d0342c;
	--red-deep: #a82921;
	--green: #2f8f5b;
	--ink: #20242a;
	--mid: #545b66;
	--gray: #868e9c;
	--line: #d3d8de;
	--line-strong: #b9c1cb;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
	--radius: 10px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--steel);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--red);
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 2px;
}

::selection {
	background: rgba(208, 52, 44, 0.18);
}

.wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.section {
	padding: 76px 0;
}

.section-alt {
	background: var(--panel-2);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -48px;
	z-index: 200;
	background: var(--steel);
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-weight: 700;
}

.skip-link:focus {
	top: 8px;
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	color: #fff;
}

/* ===== 按钮 ===== */
.btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-primary {
	background: var(--steel);
	color: #fff;
	border: 1px solid var(--steel);
}

.btn-primary:hover {
	background: var(--steel-deep);
	border-color: var(--steel-deep);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(31, 58, 95, 0.28);
}

.btn-secondary,
.btn-ghost {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--line-strong);
}

.btn-secondary:hover,
.btn-ghost:hover {
	color: var(--red);
	border-color: var(--red);
	transform: translateY(-2px);
}

.btn-ghost.light {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost.light:hover {
	color: #fff;
	border-color: #fff;
}

.btn-red {
	background: var(--red);
	color: #fff;
	border: 1px solid var(--red);
}

.btn-red:hover {
	background: var(--red-deep);
	border-color: var(--red-deep);
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(208, 52, 44, 0.28);
}

/* ===== 顶部状态条（刻度装饰条） ===== */
.topbar {
	background: var(--steel-deep);
	color: #b9c7d8;
	font-size: 12.5px;
	position: relative;
}

.topbar::before {
	content: "";
	display: block;
	height: 4px;
	background: repeating-linear-gradient(90deg, var(--red) 0 2px, transparent 2px 10px, var(--panel) 10px 12px, transparent 12px 40px);
	opacity: 0.9;
}

.topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 36px;
	gap: 12px;
	flex-wrap: wrap;
}

.topbar-welcome {
	letter-spacing: 0.06em;
}

.topbar-item {
	margin-left: 18px;
	font-family: var(--mono);
	letter-spacing: 0.04em;
}

.topbar-item:first-child {
	margin-left: 0;
}

.topbar-item a {
	color: #b9c7d8;
}

.topbar-item a:hover {
	color: #fff;
}

/* ===== 页头 ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(233, 235, 238, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.25s ease;
}

.site-header.is-stuck {
	box-shadow: 0 10px 28px rgba(22, 40, 63, 0.1);
}

.header-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 72px;
}

.site-branding {
	display: flex;
	align-items: center;
}

.custom-logo {
	max-height: 46px;
	width: auto;
}

.site-logo-text {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo-mark {
	position: relative;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: var(--steel);
	border-radius: 8px;
	flex-shrink: 0;
}

.logo-mark i {
	position: absolute;
	background: #fff;
}

.logo-mark i:first-child {
	width: 18px;
	height: 2px;
}

.logo-mark i:last-child {
	width: 2px;
	height: 18px;
}

.logo-words {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.site-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--ink);
}

.site-desc {
	font-size: 12px;
	color: var(--gray);
	font-family: var(--mono);
}

/* ===== 导航 ===== */
.main-navigation {
	display: flex;
	align-items: center;
	gap: 10px;
}

.main-navigation .menu {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation .menu li {
	position: relative;
}

.main-navigation .menu a {
	display: block;
	padding: 10px 14px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	border-bottom: 2px solid transparent;
}

.main-navigation .menu a:hover {
	color: var(--red);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
	color: var(--steel);
	border-bottom-color: var(--red);
}

.main-navigation .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 190px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 6px;
	margin: 0;
	list-style: none;
	display: none;
	box-shadow: 0 20px 44px rgba(22, 40, 63, 0.14);
	z-index: 60;
}

.main-navigation .menu li:hover > .sub-menu,
.main-navigation .menu li:focus-within > .sub-menu {
	display: block;
}

.main-navigation .sub-menu a {
	padding: 9px 12px;
	font-size: 14px;
	border-bottom: none;
}

.header-tel {
	margin-left: 10px;
	font-family: var(--mono);
	font-weight: 700;
	font-size: 15px;
	color: var(--red);
	white-space: nowrap;
}

.header-tel:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	width: 44px;
	height: 42px;
	padding: 0;
	background: var(--panel);
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
}

/* ===== 首页首屏 ===== */
.hero {
	padding: 68px 0 0;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: 48px;
	align-items: center;
}

.hero-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.14em;
	color: var(--mid);
	text-transform: uppercase;
}

.hero-eyebrow i {
	width: 22px;
	height: 2px;
	background: var(--red);
	flex-shrink: 0;
}

.hero-eyebrow span {
	color: var(--line-strong);
}

.hero-title {
	margin: 20px 0 16px;
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.3;
	color: var(--ink);
	letter-spacing: 0.01em;
}

.hero-text {
	margin: 0;
	max-width: 34em;
	font-size: 17px;
	color: var(--mid);
}

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

.hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
}

.hero-chips li {
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.02em;
	color: var(--steel);
	background: var(--panel);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	padding: 6px 14px;
}

/* ===== 标定台工程线稿 ===== */
.hero-bench {
	margin: 0;
	position: relative;
}

.hero-bench::before {
	content: "";
	position: absolute;
	inset: -22px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	pointer-events: none;
}

.hero-bench::after {
	content: "+";
	position: absolute;
	right: -16px;
	top: -18px;
	color: var(--gray);
	font-family: var(--mono);
}

.crosshair-bl {
	position: absolute;
	left: -16px;
	bottom: -18px;
	color: var(--gray);
	font-family: var(--mono);
}

.hero-bench svg {
	width: 100%;
	height: auto;
	display: block;
	background: var(--panel);
	border-radius: var(--radius);
}

.pl-line {
	stroke: var(--steel);
	stroke-width: 1.6;
	fill: none;
}

.pl-w2 {
	stroke-width: 2.2;
}

.pl-faint {
	stroke: rgba(31, 58, 95, 0.32);
	stroke-width: 1;
	fill: none;
}

.pl-dash {
	stroke: rgba(31, 58, 95, 0.4);
	stroke-width: 1.2;
	stroke-dasharray: 4 5;
	fill: none;
}

.pl-lead {
	stroke: rgba(84, 91, 102, 0.55);
	stroke-width: 1;
	fill: none;
}

.pl-arrow {
	fill: var(--steel);
}

.pl-dot {
	fill: rgba(31, 58, 95, 0.45);
}

.pl-hub {
	fill: var(--steel);
}

.pl-t {
	font-family: var(--mono);
	font-size: 13px;
	fill: var(--mid);
	letter-spacing: 0.06em;
}

.pl-tok {
	fill: var(--green);
	font-weight: 600;
}

.pl-plate {
	font-family: var(--mono);
	font-size: 10.5px;
	fill: var(--gray);
	letter-spacing: 0.14em;
}

.pl-ruler-num {
	font-size: 11px;
	fill: var(--gray);
	letter-spacing: 0;
}

.pl-ok-check {
	stroke: var(--green);
	stroke-width: 2.4;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* 标定信号线：虚线流动 */
.sig {
	stroke: var(--red);
	stroke-width: 1.8;
	stroke-dasharray: 6 6;
	fill: none;
	animation: sigflow 3.4s linear infinite;
}

@keyframes sigflow {
	to {
		stroke-dashoffset: -240;
	}
}

/* 指针微颤：精密仪器不做大幅摆动，只做细微校正感 */
.needle-grp {
	transform-box: view-box;
	transform-origin: 430px 190px;
	animation: needlewobble 2.6s ease-in-out infinite;
}

.needle {
	stroke: var(--red);
	stroke-width: 2;
	stroke-linecap: round;
}

@keyframes needlewobble {
	0%, 100% {
		transform: rotate(-1.4deg);
	}
	50% {
		transform: rotate(1.4deg);
	}
}

/* 校准指示灯：闪烁 */
.cal-led {
	fill: var(--green);
	animation: ledblink 1.8s ease-in-out infinite;
}

@keyframes ledblink {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.25;
	}
}

/* ===== 数据计数带 ===== */
.stats-bar {
	background: var(--steel);
	padding: 30px 0;
}

.stats-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, 0.14);
}

.stat {
	background: var(--steel);
	padding: 6px 22px;
	text-align: center;
}

.stat-num {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	font-family: var(--mono);
	color: #fff;
}

.stat-num b {
	font-size: 32px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.stat-num i {
	font-style: normal;
	font-size: 16px;
	color: #9fb4cc;
}

.stat-label {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #a9bcd2;
	letter-spacing: 0.04em;
}

/* ===== 跑马灯 ===== */
.mq {
	overflow: hidden;
	background: var(--panel-2);
	border-bottom: 1px solid var(--line);
	border-top: 1px solid var(--line);
	padding: 12px 0;
}

.mq-track {
	display: flex;
	gap: 34px;
	width: max-content;
	animation: mqmove 24s linear infinite;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.32em;
	color: var(--mid);
	white-space: nowrap;
}

.mq-track b {
	color: var(--red);
	font-weight: 400;
}

@keyframes mqmove {
	to {
		transform: translateX(-50%);
	}
}

/* ===== 分区头（幽灵字） ===== */
.sec-head {
	position: relative;
	margin-bottom: 40px;
}

.sec-ghost {
	position: absolute;
	right: 0;
	top: -30px;
	font-size: 96px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: rgba(31, 58, 95, 0.045);
	line-height: 1;
	pointer-events: none;
}

.section-dark .sec-ghost {
	color: rgba(255, 255, 255, 0.05);
}

.sec-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	color: var(--steel);
	text-transform: uppercase;
}

.sec-eyebrow i {
	width: 20px;
	height: 2px;
	background: var(--red);
	flex-shrink: 0;
}

.sec-eyebrow.light {
	color: #bcd0e6;
}

.sec-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.sec-row h2 {
	margin: 0;
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.3;
	color: var(--ink);
}

.section-dark .sec-row h2 {
	color: #fff;
}

/* ===== 规格分类行 ===== */
.spec-list {
	border-top: 1px solid var(--line);
}

.spec-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 6px;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	transition: padding-left 0.2s ease;
}

.spec-row:hover {
	padding-left: 10px;
	background: var(--panel-2);
}

.sp-code {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--gray);
	border: 1px solid var(--line-strong);
	border-radius: 5px;
	padding: 3px 8px;
	white-space: nowrap;
}

.sp-name {
	flex: 1;
	font-size: 18px;
	font-weight: 700;
}

.spec-row:hover .sp-name {
	color: var(--red);
}

.sp-count {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--gray);
	white-space: nowrap;
}

.sp-arrow {
	color: var(--steel);
	font-weight: 800;
	transition: transform 0.15s ease, color 0.15s ease;
}

.spec-row:hover .sp-arrow {
	transform: translateX(5px);
	color: var(--red);
}

/* ===== 设备卡片（仪器面板卡） ===== */
.equipment-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.eq-card {
	display: flex;
	flex-direction: column;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: inset 0 1px 0 #fff;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.eq-card:hover {
	transform: translateY(-4px);
	border-color: var(--steel);
	box-shadow: 0 18px 40px rgba(22, 40, 63, 0.14);
}

.eq-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	background: var(--panel-2);
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.eq-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.eq-card:hover .eq-thumb img {
	transform: scale(1.04);
}

.thumb-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--mono);
	font-size: 44px;
	font-weight: 700;
	color: var(--steel);
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 20px 20px;
}

.eq-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 16px 20px 20px;
}

.eq-terms {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--red);
}

.eq-terms a {
	color: inherit;
}

.eq-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}

.eq-title a {
	color: var(--ink);
}

.eq-title a:hover {
	color: var(--red);
}

.eq-note {
	margin: 0;
	font-size: 13.5px;
	color: var(--mid);
}

.eq-more {
	margin-top: auto;
	padding-top: 6px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--steel);
}

.eq-card:hover .eq-more {
	color: var(--red);
}

/* ===== 精度承诺 ===== */
.tol-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.tol-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px;
	box-shadow: inset 0 1px 0 #fff;
}

.tol-tag {
	display: inline-block;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--red);
	border: 1px solid rgba(208, 52, 44, 0.35);
	background: rgba(208, 52, 44, 0.06);
	border-radius: 5px;
	padding: 3px 10px;
}

.tol-card h3 {
	margin: 14px 0 8px;
	font-size: 18.5px;
	color: var(--ink);
}

.tol-card p {
	margin: 0;
	font-size: 14.5px;
	color: var(--mid);
}

/* ===== 校准流程 ===== */
.cal-steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cal-step {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 18px;
	box-shadow: inset 0 1px 0 #fff;
}

.cs-no {
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 700;
	color: var(--red);
	letter-spacing: 0.04em;
}

.cs-name {
	margin: 10px 0 6px;
	font-size: 16.5px;
	color: var(--ink);
}

.cs-desc {
	margin: 0;
	font-size: 13px;
	color: var(--mid);
}

/* ===== 关于我们（深色带） ===== */
.section-dark {
	background: var(--steel-deep);
	color: #d7e0ec;
}

.about-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 48px;
	align-items: center;
}

.about-copy h2 {
	margin: 14px 0 14px;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.35;
	color: #fff;
}

.about-lede {
	margin: 0;
	font-size: 15.5px;
	color: #b9c7d8;
	max-width: 36em;
}

.about-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-facts li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 14.5px;
}

.about-facts .k {
	color: #8fa2ba;
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.about-facts .v {
	color: #fff;
	font-weight: 600;
	text-align: right;
}

/* ===== 新闻 ===== */
.prec-news {
	border-top: 1px solid var(--line);
	max-width: 860px;
}

.prec-news-row {
	display: flex;
	align-items: baseline;
	gap: 20px;
	padding: 18px 6px;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
}

.pn-date {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--gray);
	white-space: nowrap;
}

.pn-title {
	flex: 1;
	font-weight: 600;
}

.prec-news-row:hover .pn-title {
	color: var(--red);
}

.pn-arrow {
	color: var(--steel);
	font-weight: 800;
}

/* ===== CTA 条带 ===== */
.cta-strip {
	background: var(--steel);
	padding: 56px 0;
}

.cta-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
}

.cta-inner h2 {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 30px);
	color: #fff;
}

.cta-sub {
	margin: 0;
	color: #b9c7d8;
	font-size: 15px;
	max-width: 34em;
}

.cta-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.cta-phone {
	font-family: var(--mono);
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
}

.cta-strip .btn-primary {
	background: var(--red);
	border-color: var(--red);
}

.cta-strip .btn-primary:hover {
	background: var(--red-deep);
	border-color: var(--red-deep);
}

/* ===== 内页页头 ===== */
.page-head {
	padding: 60px 0 40px;
	background: var(--panel-2);
	border-bottom: 1px solid var(--line);
}

.page-title {
	margin: 0;
	font-size: clamp(26px, 3.6vw, 38px);
	line-height: 1.3;
	color: var(--ink);
}

.page-subtitle {
	margin: 10px 0 0;
	color: var(--mid);
}

.page-subtitle a {
	color: var(--steel);
}

/* ===== 文章列表 ===== */
.post-list {
	display: grid;
	gap: 16px;
	max-width: 830px;
}

.post-item {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 26px;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-item:hover {
	transform: translateY(-3px);
	border-color: var(--steel);
	box-shadow: 0 16px 36px rgba(22, 40, 63, 0.12);
}

.post-item.sticky {
	border-left: 3px solid var(--red);
}

.entry-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--gray);
}

.meta-type {
	color: var(--steel);
	border: 1px solid var(--line-strong);
	border-radius: 5px;
	padding: 1px 8px;
	font-weight: 700;
}

.entry-title {
	margin: 8px 0 6px;
	font-size: 20px;
	line-height: 1.45;
}

.entry-title a {
	color: var(--ink);
}

.entry-title a:hover {
	color: var(--red);
}

.entry-summary {
	margin: 0;
	font-size: 14.5px;
	color: var(--mid);
}

.no-results {
	background: var(--panel);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	padding: 26px;
	color: var(--mid);
}

/* ===== 分页 ===== */
.pagination {
	margin-top: 36px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-block;
	font-family: var(--mono);
	padding: 8px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 6px;
	background: var(--panel);
	color: var(--mid);
	font-size: 14px;
}

a.page-numbers:hover {
	border-color: var(--red);
	color: var(--red);
}

.page-numbers.current {
	background: var(--steel);
	border-color: var(--steel);
	color: #fff;
}

.page-numbers.dots {
	border: none;
	background: none;
}

/* ===== 正文内容 ===== */
.article-wrap {
	max-width: 830px;
}

.single-thumb {
	margin-bottom: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.single-thumb img {
	display: block;
	width: 100%;
}

.entry-content {
	font-size: 16.5px;
	color: #2b2f36;
}

.entry-content p {
	margin: 0 0 1.25em;
}

.entry-content a {
	color: var(--steel);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content h2 {
	margin: 1.7em 0 0.6em;
	font-size: 25px;
	color: var(--ink);
	padding-left: 14px;
	border-left: 3px solid var(--red);
}

.entry-content h3 {
	margin: 1.5em 0 0.55em;
	font-size: 20px;
	color: var(--ink);
}

.entry-content h4 {
	margin: 1.4em 0 0.5em;
	font-size: 17.5px;
	color: var(--ink);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
	margin: 0 0 1.25em;
}

.entry-content li {
	margin-bottom: 0.35em;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 16px 22px;
	background: var(--panel-2);
	border-left: 3px solid var(--steel);
	border-radius: 0 8px 8px 0;
	color: var(--mid);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: 14.5px;
}

.entry-content th {
	background: var(--steel);
	color: #fff;
	font-weight: 700;
	text-align: left;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--line);
	padding: 10px 14px;
}

.entry-content tr:nth-child(even) td {
	background: var(--panel-2);
}

.entry-content img {
	border-radius: 8px;
}

.entry-content code {
	font-family: var(--mono);
	background: var(--panel-2);
	color: var(--steel);
	padding: 2px 7px;
	border-radius: 5px;
	font-size: 0.9em;
}

.entry-content pre {
	background: var(--panel-2);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 16px 18px;
	overflow: auto;
}

.entry-content pre code {
	background: none;
	padding: 0;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2em 0;
}

.page-links {
	margin-top: 1.6em;
	font-family: var(--mono);
	font-size: 14px;
	color: var(--gray);
}

.page-links a,
.page-links > span:not(.screen-reader-text) {
	display: inline-block;
	padding: 4px 11px;
	margin: 0 3px;
	border: 1px solid var(--line-strong);
	border-radius: 5px;
}

.alignleft {
	float: left;
	margin: 0.4em 1.4em 0.8em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 0.8em 1.4em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--gray);
	text-align: center;
	padding: 6px 0;
}

.bypostauthor {
	display: block;
}

/* ===== 设备详情联系条 ===== */
.contact-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-top: 44px;
	padding: 28px 32px;
	background: var(--steel);
	border-radius: var(--radius);
	color: #fff;
}

.contact-strip h3 {
	margin: 0 0 6px;
	font-size: 19px;
	color: #fff;
}

.contact-strip p {
	margin: 0;
	font-size: 14.5px;
	color: #b9c7d8;
}

.contact-strip-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.contact-strip .btn-primary {
	background: var(--red);
	border-color: var(--red);
}

.contact-strip .btn-primary:hover {
	background: var(--red-deep);
	border-color: var(--red-deep);
}

.contact-strip .btn-secondary {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.contact-strip .btn-secondary:hover {
	border-color: #fff;
	color: #fff;
}

.related-title {
	margin: 52px 0 20px;
	font-size: 22px;
	color: var(--ink);
}

/* ===== 设备分类筛选 ===== */
.equipment-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.filter-pill {
	font-family: var(--mono);
	font-size: 13px;
	padding: 8px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--panel);
	color: var(--mid);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-pill:hover {
	border-color: var(--steel);
	color: var(--steel);
}

.filter-pill.is-active {
	background: var(--steel);
	border-color: var(--steel);
	color: #fff;
}

/* ===== 搜索表单 ===== */
.search-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
}

.search-field {
	flex: 1;
	background: var(--panel);
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	padding: 11px 15px;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

.search-field::placeholder {
	color: var(--gray);
}

.search-field:focus {
	outline: none;
	border-color: var(--steel);
	box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.14);
}

.search-submit {
	background: var(--steel);
	color: #fff;
	border: 1px solid var(--steel);
	border-radius: 8px;
	padding: 11px 20px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.search-submit:hover {
	background: var(--steel-deep);
}

/* ===== 404 ===== */
.error-404 {
	max-width: 580px;
	margin: 0 auto;
	padding: 100px 0 96px;
	text-align: center;
}

.error-code {
	font-family: var(--mono);
	font-size: 92px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--steel);
	line-height: 1.1;
}

.error-404 h1 {
	margin: 8px 0 10px;
	color: var(--ink);
}

.error-note {
	color: var(--mid);
}

.error-search {
	display: flex;
	justify-content: center;
	margin: 24px 0;
}

.error-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* ===== 评论 ===== */
.comments-area {
	max-width: 830px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.comments-title,
#reply-title {
	font-size: 20px;
	color: var(--ink);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment,
.comment-list .pingback {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 14px;
}

.comment-list .children {
	list-style: none;
	margin: 14px 0 0;
	padding-left: 20px;
	border-left: 2px solid var(--line);
}

.comment-list .children .comment {
	margin-bottom: 10px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--ink);
}

.comment-author .avatar {
	border-radius: 6px;
}

.comment-metadata {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--gray);
	margin: 4px 0 10px;
}

.comment-metadata a {
	color: inherit;
}

.comment-content {
	font-size: 15px;
	color: #2b2f36;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply a {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--red);
}

.comment-navigation {
	display: flex;
	justify-content: space-between;
	margin: 18px 0;
	font-size: 14px;
}

.no-comments {
	color: var(--gray);
}

.comment-respond {
	margin-top: 28px;
}

.comment-form {
	display: grid;
	gap: 14px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--mid);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	padding: 11px 14px;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--steel);
	box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.14);
}

.comment-form .submit {
	background: var(--steel);
	color: #fff;
	border: 1px solid var(--steel);
	border-radius: 8px;
	padding: 12px 28px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.comment-form .submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(31, 58, 95, 0.28);
}

.comment-notes,
.logged-in-as {
	font-size: 13px;
	color: var(--gray);
	margin: 0;
}

#cancel-comment-reply-link {
	font-size: 13px;
	color: var(--red);
	margin-left: 10px;
}

/* ===== 页脚 ===== */
.site-footer {
	margin-top: 0;
	background: var(--steel-deep);
	color: #b9c7d8;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 36px;
	padding-top: 56px;
	padding-bottom: 44px;
}

.footer-heading {
	margin: 0 0 14px;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	color: #fff;
}

.footer-about p {
	margin: 0;
	font-size: 14px;
	color: #a9bcd2;
}

.footer-contact {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	font-family: var(--mono);
	font-size: 13px;
	color: #d7e0ec;
}

.footer-contact li {
	margin-bottom: 7px;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	margin-bottom: 10px;
}

.footer-col a {
	color: #a9bcd2;
	font-size: 14px;
}

.footer-col a:hover {
	color: #fff;
}

.footer-col .widget {
	margin-bottom: 18px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding-top: 18px;
	padding-bottom: 18px;
	font-family: var(--mono);
	font-size: 12.5px;
	color: #8fa2ba;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: #8fa2ba;
}

.footer-menu a:hover {
	color: #fff;
}

/* ===== 滚动浮现 ===== */
.rev {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.rev.is-visible {
	opacity: 1;
	transform: none;
}

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.stats-inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 1px;
	}

	.equipment-grid,
	.tol-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cal-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.sec-ghost {
		font-size: 72px;
	}
}

@media (max-width: 900px) {
	.menu-toggle {
		display: flex;
	}

	.main-navigation {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 12px 24px 20px;
		box-shadow: 0 24px 44px rgba(22, 40, 63, 0.14);
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.main-navigation .sub-menu {
		position: static;
		display: block;
		border: none;
		box-shadow: none;
		padding: 0 0 0 16px;
	}

	.header-tel {
		display: inline-block;
		margin: 12px 0 0;
	}
}

@media (max-width: 640px) {
	.section {
		padding: 56px 0;
	}

	.hero {
		padding-top: 48px;
	}

	.topbar-welcome {
		display: none;
	}

	.stats-inner {
		grid-template-columns: 1fr 1fr;
	}

	.equipment-grid,
	.tol-grid,
	.cal-steps {
		grid-template-columns: 1fr;
	}

	.sec-ghost {
		display: none;
	}

	.cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.contact-strip {
		padding: 22px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.footer-bottom-inner {
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.rev {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.sig,
	.needle-grp,
	.cal-led,
	.mq-track {
		animation: none;
	}
}
