/* ==========================================================
   首页版式：按模板站桌面端（1440 宽）的区块尺寸与位置复刻。
   只在首页加载，内页继续使用 style.css。
   ========================================================== */

.hm-wrap {
	width: min(1260px, calc(100% - 32px));
	margin-inline: auto;
}

.hm-eyebrow {
	margin: 0 0 20px;
	color: var(--c-ink);
	font-size: 18px;
	font-weight: 500;
	line-height: 22px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* 标题上方的短绿线（模板站的分隔装饰） */
.hm-products__head .hm-title::before,
.hm-orders__title::before {
	content: '';
	display: block;
	width: 75px;
	height: 4px;
	margin: 0 auto 20px;
	background: var(--c-primary);
}

.hm-title {
	margin: 0;
	color: var(--c-ink);
	font-size: 42px;
	font-weight: 500;
	line-height: 46px;
}

.hm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 36px;
	border: 1px solid currentColor;
	color: var(--c-white);
	font-size: 17px;
	font-weight: 600;
	transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.hm-btn:hover {
	background: var(--c-white);
	color: var(--c-ink);
}

.hm-checks {
	margin: 0;
	list-style: none;
}

.hm-checks li {
	color: var(--c-text);
	font-size: 16px;
	line-height: 24px;
}

.hm-checks li::before {
	content: '✓ ';
}

/* ---------- 1. 制造能力 + 设计理念（三栏：简介 / 配图 / 手风琴） ---------- */

.hm-intro {
	padding: 112px 0 96px;
	background: var(--c-white);
}

.hm-intro__grid {
	display: grid;
	grid-template-columns: 32.27% 0.78% 32.27% 2.81% 31.09%;
	width: min(1280px, calc(100% - 32px));
	margin-inline: auto;
	align-items: start;
}

.hm-intro__copy {
	grid-column: 1;
}

.hm-intro__copy h2 {
	max-width: 300px;
	margin: 0 0 20px;
	color: var(--c-ink);
	font-size: 30px;
	font-weight: 600;
	line-height: 45px;
}

.hm-intro .typing {
	min-height: 120px;
	margin: 0;
	color: var(--c-text);
	font-size: 16px;
	line-height: 24px;
}

.hm-facts {
	margin: 84px 0 0;
	padding: 44px 0 0;
	border-top: 1px solid rgb(214, 222, 218);
	list-style: none;
}

.hm-facts li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 30px;
	color: var(--c-primary);
	font-size: 14px;
	line-height: 24px;
}

.hm-facts li:last-child {
	margin-bottom: 0;
}

.hm-facts li::before {
	content: '✓';
	position: absolute;
	top: 0;
	left: 0;
}

.hm-intro__media {
	grid-column: 3;
	height: 451px;
	margin: 0;
	overflow: hidden;
}

.hm-intro .acc-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hm-intro__design {
	grid-column: 5;
	padding-top: 10px;
}

.hm-intro__design h2 {
	margin: 0 0 19px;
	color: var(--c-ink);
	font-size: 27px;
	font-weight: 700;
	line-height: 30px;
}

.hm-intro .acc-item {
	border: 0;
	background: none;
}

.hm-intro .acc-item__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 10px;
	border: 0;
	background: none;
	color: var(--c-ink);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.hm-intro .acc-item__head:hover {
	color: var(--c-primary);
}

.hm-intro .acc-item.is-open .acc-item__head {
	background: var(--c-primary);
	color: var(--c-white);
}

.hm-intro .acc-item__icon {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-right: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.4s var(--ease);
}

.hm-intro .acc-item.is-open .acc-item__icon {
	transform: rotate(45deg);
}

.hm-intro .acc-item__inner {
	padding: 0 10px;
}

.hm-intro .acc-item.is-open .acc-item__inner {
	padding: 10px 10px 24px;
}

.hm-intro .acc-item__inner p {
	margin: 0;
	padding: 0;
	color: var(--c-text);
	font-size: 14px;
	line-height: 21px;
}

/* ---------- 2. 最新案例（三张整幅图卡片） ---------- */

.hm-cases {
	padding: 116px 0 132px;
	background: var(--c-alt);
}

.hm-cases__head {
	display: grid;
	grid-template-columns: 40.6% minmax(0, 1fr);
	align-items: start;
}

.hm-cases__head > p {
	max-width: 748px;
	margin: 24px 0 0;
	color: var(--c-text);
	font-size: 16px;
	line-height: 24px;
}

.hm-cases__head > p::before {
	content: '';
	display: block;
	width: 75px;
	height: 4px;
	margin: -24px 0 20px;
	background: var(--c-primary);
}

.hm-cases__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.hm-case {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 500px;
	padding: 35px;
	overflow: hidden;
	background: var(--c-ink);
	color: var(--c-white);
}

.hm-case__media {
	position: absolute;
	inset: 0;
}

.hm-case__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.hm-case::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(30, 28, 31, 0.35) 0%, rgba(30, 28, 31, 0.6) 100%);
}

.hm-case:hover .hm-case__media img {
	transform: scale(1.06);
}

.hm-case__body {
	position: relative;
	z-index: 2;
}

.hm-case__title {
	margin: 0 0 15px;
	color: var(--c-white);
	font-size: 26px;
	font-weight: 500;
	line-height: 31px;
}

.hm-case__points {
	margin: 0;
	list-style: none;
}

.hm-case__points li {
	color: var(--c-white);
	font-size: 16px;
	line-height: 24px;
}

.hm-case__points li::before {
	content: '· ';
}

.hm-case .hm-btn {
	margin-top: 15px;
	padding: 0 24px;
}

/* ---------- 3. 供应链（整幅背景 + 三张白卡） ---------- */

.hm-supply {
	padding: 74px 0 132px;
	color: var(--c-white);
	background: linear-gradient(rgba(30, 28, 31, 0.5), rgba(30, 28, 31, 0.5)), var(--hm-bg) center / cover no-repeat;
}

.hm-center {
	text-align: center;
}

.hm-supply .hm-eyebrow,
.hm-supply .hm-title {
	color: var(--c-white);
}

.hm-supply__lead {
	margin: 20px auto 0;
	color: var(--c-white);
	font-size: 16px;
	line-height: 24px;
}

.hm-supply__grid {
	display: grid;
	grid-template-columns: repeat(3, 393px);
	justify-content: center;
	gap: 30px;
	margin-top: 54px;
}

.hm-supply__card {
	height: 309px;
	padding: 20px 20px 0;
	background: var(--c-white);
	text-align: center;
}

.hm-supply__card img {
	width: 300px;
	height: 125px;
	margin: 0 auto;
	object-fit: contain;
}

.hm-supply__card h3 {
	margin: 13px 0 16px;
	color: #000;
	font-size: 23px;
	font-weight: 500;
	line-height: 28px;
}

.hm-supply__card .hm-checks li {
	color: #656565;
}

/* ---------- 4. 认证（左侧列表 + 右侧配图） ---------- */

.hm-certs {
	padding: 123px 0 135px;
	background: var(--c-white);
}

.hm-certs__inner {
	position: relative;
}

.hm-certs__copy {
	max-width: 869px;
}

.hm-certs__text {
	margin: 21px 0 0;
	color: var(--c-text);
	font-size: 16px;
	line-height: 24px;
}

.hm-certs__list {
	display: grid;
	grid-template-columns: 451px 447px;
	grid-template-rows: repeat(3, auto);
	grid-auto-flow: column;
	gap: 23px 0;
	max-width: 898px;
	margin-top: 34px;
}

.hm-cert {
	display: grid;
	grid-template-columns: 59px minmax(0, 1fr);
	column-gap: 19px;
	align-items: start;
}

.hm-cert img {
	width: 59px;
	height: 59px;
	object-fit: contain;
}

.hm-cert h4 {
	margin: 0;
	color: var(--c-ink);
	font-size: 25px;
	font-weight: 500;
	line-height: 35px;
}

.hm-cert p {
	margin: 0;
	color: var(--c-primary);
	font-size: 16px;
	line-height: 24px;
}

.hm-certs__media {
	position: absolute;
	top: 15px;
	left: 898px;
	width: 345px;
	height: 420px;
	margin: 0;
	overflow: hidden;
}

.hm-certs__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- 5. 产品分类（四列白卡，灰底） ---------- */

.hm-products {
	background: var(--c-alt);
}

.hm-products__head {
	padding: 68px 0 40px;
	text-align: center;
}

.hm-products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	width: min(1280px, calc(100% - 32px));
	margin: 0 auto;
	padding-bottom: 80px;
}

.hm-product {
	display: block;
	padding: 20px;
	background: var(--c-white);
	color: var(--c-ink);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hm-product:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(30, 28, 31, 0.12);
}

.hm-product__media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.hm-product__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.hm-product:hover .hm-product__media img {
	transform: scale(1.05);
}

.hm-product__title {
	display: block;
	margin-top: 20px;
	text-align: center;
	color: var(--c-ink);
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
}

/* ---------- 6. 我们的服务（整幅背景 + 2×2 白卡） ---------- */

.hm-service {
	padding: 90px 0;
	color: var(--c-white);
	background: linear-gradient(rgba(30, 28, 31, 0.6), rgba(30, 28, 31, 0.6)), var(--hm-bg) center / cover no-repeat;
}

.hm-service__inner {
	display: grid;
	grid-template-columns: 402px minmax(0, 1fr);
	column-gap: 20px;
	align-items: start;
}

.hm-service__intro {
	padding-top: 168px;
}

.hm-service .hm-eyebrow,
.hm-service .hm-title,
.hm-service__text {
	color: var(--c-white);
}

.hm-service__text {
	margin: 20px 0 0;
	font-size: 16px;
	line-height: 24px;
}

.hm-service__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.hm-service__card {
	height: 290px;
	padding: 30px 20px 0;
	background: var(--c-white);
	text-align: center;
}

.hm-service__icon {
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 auto 53px;
	color: var(--c-primary);
}

.hm-service__icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hm-service__card h3 {
	margin: 0 0 10px;
	color: var(--c-ink);
	font-size: 26px;
	font-weight: 500;
	line-height: 31px;
}

/* ---------- 7. 多种订购方式（2×2 图文） ---------- */

.hm-orders {
	padding: 74px 0 107px;
	background: var(--c-white);
}

.hm-orders__title {
	margin-bottom: 98px;
	text-align: center;
}

.hm-orders__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 98px 40px;
	width: min(1240px, calc(100% - 32px));
	margin: 0 auto;
}

.hm-order {
	display: grid;
	grid-template-columns: 174px minmax(0, 1fr);
	column-gap: 20px;
	align-items: start;
}

.hm-order img {
	width: 174px;
	height: 174px;
	object-fit: cover;
}

.hm-order h3 {
	margin: 6px 0 8px;
	color: var(--c-primary);
	font-size: 22px;
	font-weight: 600;
	line-height: 33px;
}

.hm-order p {
	margin: 0;
	color: var(--c-text);
	font-size: 16px;
	line-height: 24px;
}

.hm-order p + p {
	margin-top: 29px;
	font-size: 15px;
	font-weight: 500;
	line-height: 22.5px;
}

/* ---------- 8. 询盘（左侧深色信息框 + 右侧表单） ---------- */

.hm-inquiry {
	padding-bottom: 96px;
	background: linear-gradient(rgba(30, 28, 31, 0.5), rgba(30, 28, 31, 0.5)), var(--hm-bg) center / cover no-repeat;
}

.hm-inquiry__inner {
	display: grid;
	grid-template-columns: 600px minmax(0, 1fr);
	column-gap: 51.5px;
	width: min(1280px, calc(100% - 32px));
	margin: 0 auto;
	align-items: start;
}

.hm-inquiry__info {
	min-height: 565px;
	padding: 60px 45px;
	background: rgba(30, 28, 31, 0.7);
	color: var(--c-white);
}

.hm-inquiry__info > * {
	max-width: 345px;
}

.hm-inquiry .hm-eyebrow {
	margin-bottom: 17px;
	color: rgb(214, 222, 218);
	font-size: 16px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hm-inquiry .hm-title {
	color: var(--c-white);
	font-size: 35px;
	font-weight: 500;
	line-height: 38.6px;
}

.hm-inquiry .inquiry__role {
	margin: 20px 0 0;
	color: var(--c-white);
	font-size: 15px;
	line-height: 23px;
}

.hm-inquiry .contact-list {
	display: block;
	margin: 19px 0 0;
	list-style: none;
}

.hm-inquiry .contact-list__item {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	color: var(--c-white);
	font-size: 15px;
	line-height: 23px;
}

.hm-inquiry .contact-list__label {
	display: none;
}

.hm-inquiry .contact-list__value,
.hm-inquiry .contact-list__value a {
	color: var(--c-white);
}

.hm-inquiry .contact-list__value small {
	display: block;
	color: var(--c-white);
}

.hm-inquiry__form {
	max-width: 580px;
	padding-top: 60px;
}

.fyj-form-wrap .fyj-hp {
	display: none;
}

.fyj-form-wrap .fyj-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 11px 30px;
}

.fyj-form-wrap .fyj-field {
	display: flex;
	flex-direction: column;
}

.fyj-form-wrap .fyj-field--full {
	grid-column: 1 / -1;
}

.fyj-form-wrap .fyj-field label {
	margin: 0 0 12px;
	color: var(--c-alt);
	font-size: 14px;
	font-weight: 600;
	line-height: 21px;
}

.fyj-form-wrap .fyj-field input,
.fyj-form-wrap .fyj-field select,
.fyj-form-wrap .fyj-field textarea {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: var(--c-white);
	color: var(--c-ink);
	font-family: var(--font);
	font-size: 14px;
}

.fyj-form-wrap .fyj-field textarea {
	box-sizing: border-box;
	height: 112px;
	padding: 10px 12px;
	resize: vertical;
}

.fyj-form-wrap .fyj-form .btn {
	align-self: flex-start;
	width: 176px;
	height: 46px;
	margin-top: 4px;
	border-radius: 0;
}

/* ---------- 首页大图标题：单行 54px，居中偏上 ---------- */

.hero .hero__content {
	padding-bottom: 120px;
}

.hero .hero__title {
	max-width: none;
	font-size: 54px;
	font-weight: 600;
	letter-spacing: 0;
	white-space: nowrap;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
	.hm-intro__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 48px;
		row-gap: 56px;
	}

	.hm-intro__copy {
		order: 1;
		grid-column: auto;
	}

	.hm-intro__design {
		order: 2;
		grid-column: auto;
	}

	.hm-intro__media {
		order: 3;
		grid-column: 1 / -1;
		height: 420px;
	}

	.hm-cases__head {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 20px;
	}

	.hm-cases__head > p {
		margin-top: 0;
	}

	.hm-cases__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hm-supply__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	.hm-certs__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: none;
	}

	.hm-certs__media {
		position: static;
		width: 100%;
		height: 360px;
		margin-top: 48px;
	}

	.hm-service__inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 48px;
	}

	.hm-inquiry__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 40px;
	}

	.hm-inquiry__info {
		min-height: 0;
	}
}

@media (max-width: 760px) {
	.hero .hero__title {
		white-space: normal;
		font-size: clamp(30px, 8.5vw, 54px);
		line-height: 1.15;
	}

	.hm-intro__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hm-intro__copy {
		order: 1;
		grid-column: auto;
	}

	.hm-intro__media {
		order: 2;
		grid-column: auto;
		height: 300px;
	}

	.hm-intro__design {
		order: 3;
		grid-column: auto;
	}

	.hm-intro .typing {
		min-height: 0;
	}

	.hm-facts {
		margin-top: 40px;
	}

	.hm-title {
		font-size: 32px;
		line-height: 40px;
	}

	.hm-cases__grid,
	.hm-supply__grid,
	.hm-service__grid,
	.hm-certs__list,
	.hm-inquiry__inner,
	.fyj-form-wrap .fyj-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.hm-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-bottom: 48px;
	}

	.hm-products__head {
		padding: 64px 0 32px;
	}

	.hm-case {
		height: auto;
		min-height: 420px;
	}

	.hm-supply__card {
		height: auto;
		padding-bottom: 24px;
	}

	.hm-service__card {
		height: auto;
		padding: 24px 20px;
	}

	.hm-orders__title {
		margin-bottom: 48px;
	}

	.hm-orders__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 48px;
	}

	.hm-order {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.hm-order img {
		width: 120px;
		height: 120px;
	}

	.hm-certs__media {
		height: 280px;
	}

	.hm-inquiry__info {
		padding: 40px 24px;
	}

	.hm-inquiry__form {
		padding-top: 0;
	}
}
