/*
 * 五金汇紧固件官网 · 主样式
 * 设计语言：企业蓝 + 白，标题采用“— 中文 —— ENGLISH ——”分节式
 */
:root {
	--wjh-blue: #123a5e;
	--wjh-blue-deep: #0b2237;
	--wjh-blue-soft: #2e6a9e;
	--wjh-orange: #e4571b;
	--wjh-grey: #5b6672;
	--wjh-line: #dfe3e8;
	--wjh-bg: #f5f6f8;
	--wjh-wrap: 1200px;
	--wjh-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
body {
	font-family: var(--wjh-font);
	color: #333b45;
	background: #fff;
	line-height: 1.75;
	font-size: 15px;
}
a {
	color: var(--wjh-blue);
	text-decoration: none;
}
a:hover {
	color: var(--wjh-orange);
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
.wrap {
	max-width: var(--wjh-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* 顶部工具条 */
.topbar {
	background: var(--wjh-blue-deep);
	color: #c8d4e0;
	font-size: 13px;
}
.topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 40px;
	flex-wrap: wrap;
}
.topbar a {
	color: #c8d4e0;
}
.topbar__contact span {
	margin-right: 18px;
}

/* 头部 */
.masthead {
	background: #fff;
	border-bottom: 3px solid var(--wjh-blue);
	position: sticky;
	top: 0;
	z-index: 50;
}
.masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
	gap: 24px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.brand__hex {
	width: 40px;
	height: 46px;
	background: var(--wjh-blue);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	position: relative;
}
.brand__hex::after {
	content: "汇";
	position: absolute;
	inset: 0;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.brand__text strong {
	display: block;
	font-size: 26px;
	letter-spacing: 4px;
	color: var(--wjh-blue);
	line-height: 1.1;
}
.brand__text small {
	display: block;
	font-size: 10px;
	letter-spacing: 3px;
	color: var(--wjh-grey);
	text-transform: uppercase;
}
.custom-logo {
	max-height: 56px;
	width: auto;
}
.nav__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 6px;
}
.nav__list li {
	position: relative;
}
.nav__list a {
	display: block;
	padding: 10px 18px;
	font-size: 16px;
	font-weight: 500;
	color: var(--wjh-blue);
}
.nav__list a:hover,
.nav__list .current-menu-item > a {
	background: var(--wjh-blue);
	color: #fff;
}
.nav__toggle {
	display: none;
	border: 1px solid var(--wjh-line);
	background: #fff;
	padding: 8px 12px;
	font-size: 14px;
	color: var(--wjh-blue);
}

/* 首屏幻灯片 */
.whero {
	position: relative;
	height: 620px;
	max-height: 78vh;
	overflow: hidden;
	background: var(--wjh-blue-deep);
}
.whero__stage,
.whero__slide {
	position: absolute;
	inset: 0;
}
.whero__slide {
	opacity: 0;
	transition: opacity .8s ease;
}
.whero__slide.is-active {
	opacity: 1;
}
.whero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.whero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 34, 55, .55), rgba(11, 34, 55, .35) 45%, rgba(11, 34, 55, .75));
}
.whero__caption {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 0 24px;
}
.whero__title {
	font-size: clamp(30px, 5vw, 54px);
	font-weight: 700;
	letter-spacing: 6px;
	margin: 0 0 14px;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.whero__sub {
	margin: 0;
	font-size: 16px;
	letter-spacing: 2px;
	color: #e6edf5;
}
.whero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	display: flex;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 3;
}
.whero__dots button {
	width: 34px;
	height: 4px;
	border: 0;
	background: rgba(255, 255, 255, .45);
	padding: 0;
	cursor: pointer;
}
.whero__dots .is-active button {
	background: var(--wjh-orange);
}

/* 分节标题：“— 中文 —— ENGLISH ——” */
.section {
	padding: 74px 0;
}
.section--alt {
	background: var(--wjh-bg);
}
.section__head {
	text-align: center;
	margin-bottom: 44px;
}
.section__head h2 {
	font-size: 32px;
	font-weight: 700;
	letter-spacing: 6px;
	color: var(--wjh-blue);
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 18px;
}
.section__head h2::before,
.section__head h2::after {
	content: "";
	width: 56px;
	height: 1px;
	background: var(--wjh-blue);
	opacity: .5;
}
.section__head p {
	margin: 10px 0 0;
	font-size: 13px;
	letter-spacing: 5px;
	color: var(--wjh-grey);
	text-transform: uppercase;
}
.section__intro {
	max-width: 820px;
	margin: 0 auto 40px;
	text-align: center;
	color: var(--wjh-grey);
}

/* 关于 */
.about__grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 48px;
	align-items: center;
}
.about__figure figcaption {
	font-size: 12px;
	color: var(--wjh-grey);
	padding-top: 8px;
	letter-spacing: 1px;
}
.about__title {
	font-size: 26px;
	color: var(--wjh-blue);
	letter-spacing: 3px;
	margin: 0 0 18px;
}
.about__list {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
}
.about__list li {
	border-left: 3px solid var(--wjh-orange);
	padding-left: 12px;
	font-size: 14px;
}
.btn {
	display: inline-block;
	padding: 12px 34px;
	background: var(--wjh-blue);
	color: #fff;
	letter-spacing: 3px;
	border: 0;
	font-size: 15px;
	cursor: pointer;
}
.btn:hover {
	background: var(--wjh-orange);
	color: #fff;
}
.btn--ghost {
	background: transparent;
	border: 1px solid var(--wjh-blue);
	color: var(--wjh-blue);
}
.btn--ghost:hover {
	background: var(--wjh-blue);
	color: #fff;
}

/* 产品中心 */
.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}
.product {
	background: #fff;
	border: 1px solid var(--wjh-line);
	transition: box-shadow .25s ease, transform .25s ease;
}
.product:hover {
	box-shadow: 0 14px 34px rgba(11, 34, 55, .14);
	transform: translateY(-4px);
}
.product__thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wjh-bg);
}
.product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.product:hover .product__thumb img {
	transform: scale(1.06);
}
.product__body {
	padding: 16px 18px 20px;
}
.product__body h3 {
	margin: 0 0 6px;
	font-size: 17px;
	color: var(--wjh-blue);
	letter-spacing: 1px;
}
.product__spec {
	margin: 0;
	font-size: 13px;
	color: var(--wjh-grey);
	min-height: 44px;
}
.product__more {
	font-size: 13px;
	color: var(--wjh-orange);
	letter-spacing: 2px;
}

/* 优势 */
.advantages {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.advantage h3 {
	font-size: 20px;
	color: var(--wjh-blue);
	letter-spacing: 2px;
	margin: 18px 0 10px;
}
.advantage p {
	margin: 0;
	color: var(--wjh-grey);
	font-size: 14px;
}
.advantage__no {
	font-size: 34px;
	font-weight: 700;
	color: var(--wjh-orange);
	line-height: 1;
	letter-spacing: 1px;
}
.advantage__rule {
	width: 44px;
	height: 2px;
	background: var(--wjh-blue);
	margin-top: 14px;
}

/* 数字 */
.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: var(--wjh-blue);
	color: #fff;
}
.stats div {
	padding: 34px 20px;
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, .16);
}
.stats div:last-child {
	border-right: 0;
}
.stats strong {
	display: block;
	font-size: 40px;
	letter-spacing: 1px;
	line-height: 1.2;
}
.stats span {
	font-size: 13px;
	letter-spacing: 3px;
	color: #b9c8d8;
}

/* 新闻 */
.news {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 46px;
}
.news__item {
	display: flex;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px dashed var(--wjh-line);
}
.news__date {
	font-size: 13px;
	color: var(--wjh-grey);
	min-width: 92px;
	letter-spacing: 1px;
}
.news__item h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: #333b45;
}
.news__item h3 a {
	color: inherit;
}
.news__item h3 a:hover {
	color: var(--wjh-orange);
}
.news__note {
	background: var(--wjh-bg);
	padding: 26px;
	border-left: 4px solid var(--wjh-blue);
}
.news__note h3 {
	margin-top: 0;
	color: var(--wjh-blue);
	letter-spacing: 2px;
}

/* 单页与列表 */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 44px;
	padding: 56px 0;
}
.entry__title {
	font-size: 28px;
	color: var(--wjh-blue);
	letter-spacing: 2px;
	margin: 0 0 10px;
}
.entry__meta {
	font-size: 13px;
	color: var(--wjh-grey);
	border-bottom: 1px solid var(--wjh-line);
	padding-bottom: 14px;
	margin-bottom: 24px;
}
.entry__thumb {
	margin-bottom: 22px;
}
article.hentry {
	margin-bottom: 46px;
}
.widget {
	border: 1px solid var(--wjh-line);
	padding: 20px;
	margin-bottom: 24px;
	background: #fff;
}
.widget__title {
	margin: 0 0 14px;
	font-size: 16px;
	color: var(--wjh-blue);
	letter-spacing: 2px;
	border-bottom: 1px solid var(--wjh-line);
	padding-bottom: 10px;
}
.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.widget li {
	padding: 7px 0;
	font-size: 14px;
	border-bottom: 1px dotted var(--wjh-line);
}
.pagination,
.nav-links {
	display: flex;
	gap: 10px;
	justify-content: center;
	padding: 20px 0;
}
.nav-links .page-numbers {
	border: 1px solid var(--wjh-line);
	padding: 6px 14px;
	font-size: 14px;
}
.nav-links .current {
	background: var(--wjh-blue);
	color: #fff;
	border-color: var(--wjh-blue);
}

/* 404 / 搜索空结果 */
.empty {
	text-align: center;
	padding: 90px 20px;
}
.empty__code {
	font-size: 90px;
	color: var(--wjh-blue);
	letter-spacing: 8px;
	line-height: 1;
}

/* 联系与表单 */
.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 46px;
}
.contact__info dl {
	margin: 0;
}
.contact__info dt {
	font-size: 13px;
	letter-spacing: 3px;
	color: var(--wjh-grey);
	margin-top: 16px;
}
.contact__info dd {
	margin: 4px 0 0;
	font-size: 17px;
	color: var(--wjh-blue);
	letter-spacing: 1px;
}
.form-field {
	margin-bottom: 16px;
}
.form-field label {
	display: block;
	font-size: 13px;
	letter-spacing: 2px;
	color: var(--wjh-grey);
	margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
	width: 100%;
	border: 1px solid var(--wjh-line);
	padding: 11px 12px;
	font-family: inherit;
	font-size: 14px;
	background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
	outline: 2px solid var(--wjh-blue-soft);
	border-color: var(--wjh-blue-soft);
}
.form-notice {
	padding: 12px 16px;
	background: #eaf4ea;
	border-left: 4px solid #3f8f57;
	font-size: 14px;
}
.form-notice.is-error {
	background: #fdecea;
	border-color: var(--wjh-orange);
}

/* 页脚 */
.site-footer {
	background: var(--wjh-blue-deep);
	color: #a9b8c8;
	margin-top: 60px;
	font-size: 14px;
}
.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	padding: 54px 0 34px;
}
.site-footer .widget__title {
	color: #fff;
	border-color: rgba(255, 255, 255, .16);
}
.site-footer a {
	color: #a9b8c8;
}
.site-footer a:hover {
	color: var(--wjh-orange);
}
.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .14);
	padding: 18px 0;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
}
.footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	color: #fff;
	font-size: 20px;
	letter-spacing: 3px;
}

/* 响应式 */
@media (max-width: 1024px) {
	.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.about__grid,
	.news,
	.contact__grid,
	.layout {
		grid-template-columns: 1fr;
	}
	.advantages {
		grid-template-columns: 1fr;
	}
	.site-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 768px) {
	.nav__toggle {
		display: block;
	}
	.nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--wjh-line);
		display: none;
	}
	.nav.is-open {
		display: block;
	}
	.nav__list {
		flex-direction: column;
		gap: 0;
	}
	.nav__list a {
		border-top: 1px solid var(--wjh-line);
	}
	.masthead__inner {
		position: relative;
		min-height: 68px;
	}
	.whero {
		height: 440px;
	}
	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.stats div {
		border-bottom: 1px solid rgba(255, 255, 255, .16);
	}
	.about__list {
		grid-template-columns: 1fr;
	}
	.site-footer__cols {
		grid-template-columns: 1fr;
	}
}
