/*
Theme Name: 福友嘉工艺品 FYJ Craft
Theme URI: https://fyj.gwmmi.cn/
Author: FYJ
Description: 福友嘉工艺品企业官网主题，按模板站结构复刻，含页面动画与产品、案例、询盘功能。
Version: 2.0.0
Text Domain: fyj-craft
*/

/* ---------- 设计变量 ---------- */

:root {
	--c-primary: #1f7a5e;
	--c-primary-dark: #17604a;
	--c-ink: #1e1c1f;
	--c-text: #3c373d;
	--c-muted: #646e78;
	--c-alt: #f4f5f1;
	--c-line: #e3e6e1;
	--c-white: #ffffff;
	--c-footer: #1e1c1f;
	--radius: 6px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--header-h: 76px;
	--font: 'Poppins', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
}

/* ---------- 基础 ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.75;
	overflow-x: hidden;
}

body.menu-open {
	overflow: hidden;
}

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

a {
	color: var(--c-primary);
	text-decoration: none;
	transition: color 0.3s var(--ease);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	color: var(--c-ink);
	font-weight: 600;
	line-height: 1.25;
}

h2 {
	font-size: 35px;
}

h3 {
	font-size: 22px;
}

h4 {
	font-size: 17px;
}

p {
	margin: 0 0 1.1em;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

[id] {
	scroll-margin-top: 90px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 8px 14px;
	background: var(--c-white);
	clip: auto;
}

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

.narrow {
	max-width: 880px;
}

.section {
	padding: 110px 0;
}

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

.section--intro {
	padding-top: 140px;
}

.section-head {
	max-width: 780px;
	margin: 0 auto 56px;
	text-align: center;
}

.section-head h3,
.section-sub {
	color: var(--c-primary);
	font-size: 18px;
	font-weight: 500;
}

.section-sub {
	margin: 80px 0 32px;
	text-align: center;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--c-primary);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.lead {
	color: var(--c-ink);
	font-size: 19px;
	line-height: 1.6;
}

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

.prose h2 {
	margin-top: 1.5em;
}

.case-hero {
	margin: 0 0 2em;
}

.case-hero img {
	width: 100%;
	border-radius: var(--radius);
}

/* ---------- 按钮 ---------- */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	overflow: hidden;
	isolation: isolate;
	padding: 14px 30px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	color: var(--c-white);
	font-family: var(--font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: color 0.45s var(--ease), border-color 0.45s var(--ease), translate 0.3s var(--ease);
}

.btn::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--fill, var(--c-ink));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.5s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
	transform: scaleX(1);
}

.btn:hover {
	translate: 0 -2px;
}

.btn--primary {
	--fill: var(--c-primary-dark);
	background: var(--c-primary);
	color: var(--c-white);
}

.btn--outline,
.btn--outline-light {
	background: transparent;
	color: var(--c-white);
	border-color: currentColor;
	--fill: var(--c-white);
}

.btn--outline:hover,
.btn--outline-light:hover {
	color: var(--c-ink);
}

.btn--sm {
	padding: 9px 18px;
	font-size: 14px;
}

.btn--text {
	padding: 0;
	background: none;
	color: var(--c-primary);
	border: 0;
}

.btn--text::before {
	display: none;
}

.btn--text span::after {
	content: '→';
	display: inline-block;
	margin-left: 8px;
	transition: transform 0.4s var(--ease);
}

.btn--text:hover span::after {
	transform: translateX(6px);
}

.btn--text:hover {
	translate: none;
}

.btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* ---------- 页头 ---------- */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: var(--header-h);
	color: var(--c-white);
	transition: transform 0.5s var(--ease), background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.97);
	color: var(--c-ink);
	box-shadow: 0 6px 24px rgba(20, 24, 22, 0.08);
	backdrop-filter: saturate(160%) blur(8px);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-header.is-scrolled .btn--outline {
	color: var(--c-primary);
	border-color: var(--c-primary);
	--fill: var(--c-primary);
}

.site-header.is-scrolled .btn--outline:hover {
	color: var(--c-white);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}

.site-brand {
	display: flex;
	flex-direction: column;
	color: inherit;
	line-height: 1.15;
}

.site-brand__cn {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.site-brand__en {
	margin-top: 2px;
	font-size: 10px;
	letter-spacing: 0.22em;
	opacity: 0.8;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 34px;
	list-style: none;
}

.site-nav__list > li {
	position: relative;
}

.site-nav__list > li > a {
	position: relative;
	display: inline-block;
	padding: 28px 0;
	color: inherit;
	font-size: 15px;
	font-weight: 500;
}

.site-nav__list > li > a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.4s var(--ease);
}

.site-nav__list > li:hover > a::after,
.site-nav__list > li.current-menu-item > a::after,
.site-nav__list > li:focus-within > a::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.site-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 10;
	min-width: 240px;
	margin: 0;
	padding: 10px 0;
	background: var(--c-white);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px rgba(20, 24, 22, 0.14);
	list-style: none;
	opacity: 0;
	transform: translateY(12px);
	visibility: hidden;
	transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	transform: none;
	visibility: visible;
}

.site-nav__list .sub-menu a {
	display: block;
	padding: 9px 22px;
	color: var(--c-ink);
	font-size: 14px;
	transition: background-color 0.3s ease, padding-left 0.3s var(--ease);
}

.site-nav__list .sub-menu a:hover {
	padding-left: 28px;
	background: var(--c-alt);
	color: var(--c-primary);
}

.menu-toggle {
	position: relative;
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.menu-toggle__bar {
	position: absolute;
	left: 10px;
	width: 24px;
	height: 2px;
	background: currentColor;
	transition: transform 0.4s var(--ease), opacity 0.3s ease, top 0.4s var(--ease);
}

.menu-toggle__bar:nth-of-type(1) {
	top: 15px;
}

.menu-toggle__bar:nth-of-type(2) {
	top: 21px;
}

.menu-toggle__bar:nth-of-type(3) {
	top: 27px;
}

.menu-toggle.is-open .menu-toggle__bar:nth-of-type(1) {
	top: 21px;
	transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__bar:nth-of-type(2) {
	opacity: 0;
}

.menu-toggle.is-open .menu-toggle__bar:nth-of-type(3) {
	top: 21px;
	transform: rotate(-45deg);
}

/* 全屏菜单（移动端与平板） */

.site-menu {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	background: var(--c-primary-dark);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.site-menu.is-open {
	opacity: 1;
	visibility: visible;
}

.site-menu__nav {
	width: 100%;
	max-height: 100vh;
	padding: 110px 24px 40px;
	overflow-y: auto;
}

.site-menu__list {
	list-style: none;
}

.site-menu__list > li {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
	transition-delay: calc(var(--i, 0) * 60ms + 150ms);
}

.site-menu.is-open .site-menu__list > li {
	opacity: 1;
	transform: none;
}

.site-menu__list a {
	display: block;
	padding: 10px 0;
	color: var(--c-white);
	font-size: 26px;
	font-weight: 500;
}

.site-menu__list .sub-menu {
	margin: 0 0 12px 12px;
	list-style: none;
}

.site-menu__list .sub-menu a {
	padding: 6px 0;
	font-size: 16px;
	opacity: 0.85;
}

/* ---------- 首页轮播 ---------- */

.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	max-height: 960px;
	overflow: hidden;
	background: var(--c-ink);
	color: var(--c-white);
}

.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.2s var(--ease), visibility 1.2s;
}

.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.hero__bg {
	position: absolute;
	inset: -14% 0;
	background-size: cover;
	background-position: center;
	translate: 0 var(--py, 0px);
}

.hero__slide.is-active .hero__bg {
	animation: fyj-kenburns 8s var(--ease) both;
}

@keyframes fyj-kenburns {
	from {
		scale: 1.14;
	}
	to {
		scale: 1;
	}
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 18, 16, 0.25) 0%, rgba(14, 18, 16, 0.55) 100%);
}

.hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	gap: 36px;
}

.hero__title {
	max-width: 960px;
	margin: 0;
	color: var(--c-white);
	font-size: clamp(38px, 6.2vw, 76px);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-top: -26px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--c-white);
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s var(--ease);
}

.hero__arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

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

.hero__arrow--prev {
	left: 28px;
}

.hero__arrow--next {
	right: 28px;
}

.hero__arrow--prev:hover {
	transform: translateX(-3px);
}

.hero__arrow--next:hover {
	transform: translateX(3px);
}

.hero__dots {
	position: absolute;
	bottom: 36px;
	left: 50%;
	z-index: 3;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.hero__dot {
	position: relative;
	width: 40px;
	height: 3px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	overflow: hidden;
	transition: background-color 0.4s ease;
}

.hero__dot.is-active {
	background: rgba(255, 255, 255, 0.35);
}

.hero__dot.is-active::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--c-white);
	transform-origin: left center;
	animation: fyj-progress 6.5s linear forwards;
}

@keyframes fyj-progress {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

/* 标题逐词入场 */

[data-split] .word {
	display: inline-block;
	opacity: 0;
	transform: translate3d(0, 40px, 0);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: calc(var(--i, 0) * 80ms + 250ms);
}

[data-split].is-in .word {
	opacity: 1;
	transform: none;
}

/* ---------- 文字打字机 ---------- */

.typing {
	min-height: 9em;
	font-size: 17px;
	line-height: 1.8;
}

.typing__text {
	color: var(--c-ink);
}

.typing__caret {
	display: inline-block;
	width: 2px;
	height: 1.1em;
	margin-left: 2px;
	background: var(--c-primary);
	vertical-align: -0.18em;
	animation: fyj-blink 1s steps(1) infinite;
}

@keyframes fyj-blink {
	50% {
		opacity: 0;
	}
}

/* ---------- 数据区 ---------- */

.intro {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 80px;
	align-items: center;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
}

.stat {
	padding: 28px 22px;
	border-top: 2px solid var(--c-primary);
	background: var(--c-white);
	box-shadow: 0 10px 30px rgba(20, 24, 22, 0.05);
	transition: box-shadow 0.4s ease;
}

.stat:hover {
	box-shadow: 0 18px 40px rgba(20, 24, 22, 0.1);
}

.stat__num {
	display: block;
	color: var(--c-primary);
	font-size: 44px;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.stat__unit {
	display: block;
	color: var(--c-ink);
	font-size: 15px;
	font-weight: 500;
}

.stat__label {
	display: block;
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 13px;
	line-height: 1.6;
}

/* ---------- 左右分栏 ---------- */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 80px;
	align-items: center;
}

.split--reverse .split__copy {
	order: 2;
}

.split__media img {
	width: 100%;
	height: 520px;
	object-fit: cover;
	border-radius: var(--radius);
}

.acc-image {
	transition: opacity 0.28s ease, scale 0.6s var(--ease);
}

.acc-image.is-swapping {
	opacity: 0;
	scale: 1.04;
}

.split__stack {
	display: grid;
	gap: 20px;
}

.info-box {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 24px;
	align-items: center;
	padding: 22px;
	background: var(--c-white);
	border-radius: var(--radius);
	box-shadow: 0 10px 30px rgba(20, 24, 22, 0.05);
	transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.info-box:hover {
	translate: 0 -4px;
	box-shadow: 0 20px 44px rgba(20, 24, 22, 0.1);
}

.info-box__img {
	width: 150px;
	height: auto;
	object-fit: contain;
}

.info-box h4 {
	margin-bottom: 4px;
}

/* 手风琴 */

.accordion {
	border-top: 1px solid var(--c-line);
}

.acc-item {
	border-bottom: 1px solid var(--c-line);
}

.acc-item__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 22px 0;
	border: 0;
	background: none;
	color: var(--c-ink);
	font-family: var(--font);
	font-size: 18px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: color 0.3s ease;
}

.acc-item__head:hover,
.acc-item.is-open .acc-item__head {
	color: var(--c-primary);
}

.acc-item__icon {
	position: relative;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
}

.acc-item__icon::before,
.acc-item__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 0.4s var(--ease);
}

.acc-item__icon::after {
	transform: rotate(90deg);
}

.acc-item.is-open .acc-item__icon::after {
	transform: rotate(0deg);
}

.acc-item__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.55s var(--ease);
}

.acc-item.is-open .acc-item__panel {
	grid-template-rows: 1fr;
}

.acc-item__inner {
	overflow: hidden;
}

.acc-item__inner p {
	padding-bottom: 24px;
	color: var(--c-muted);
}

/* ---------- 卡片 ---------- */

.cards {
	display: grid;
	gap: 32px;
}

.cards--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--c-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(20, 24, 22, 0.06);
	transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.card:hover {
	translate: 0 -6px;
	box-shadow: 0 24px 50px rgba(20, 24, 22, 0.12);
}

.card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.card__media img,
.card--case img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 1s var(--ease);
}

.card:hover .card__media img {
	scale: 1.07;
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 28px 28px 30px;
}

.card__title {
	font-size: 21px;
	line-height: 1.35;
}

.card__title a {
	color: inherit;
}

.card__points {
	margin: 0 0 22px;
	list-style: none;
}

.card__points li {
	position: relative;
	padding-left: 18px;
	color: var(--c-muted);
	font-size: 14px;
}

.card__points li::before {
	content: '';
	position: absolute;
	top: 0.8em;
	left: 0;
	width: 8px;
	height: 2px;
	background: var(--c-primary);
}

.card__meta {
	color: var(--c-muted);
	font-size: 14px;
}

.card__body .btn--text {
	margin-top: auto;
	align-self: flex-start;
}

/* ---------- 证书 ---------- */

.cert-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.cert {
	padding: 36px 28px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	text-align: center;
	transition: translate 0.5s var(--ease), border-color 0.4s ease;
}

.cert:hover {
	translate: 0 -4px;
	border-color: var(--c-primary);
}

.cert__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	margin-bottom: 20px;
}

.cert__img img {
	max-height: 120px;
	width: auto;
	object-fit: contain;
}

.cert h4 {
	margin-bottom: 8px;
	font-size: 16px;
}

.cert p {
	margin: 0;
	color: var(--c-muted);
	font-size: 14px;
}

/* ---------- 产品 ---------- */

.category-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 340px;
	margin-bottom: 64px;
	border-radius: var(--radius);
	overflow: hidden;
	text-align: center;
}

.category-head::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(14, 18, 16, 0.45);
}

.category-head__bg {
	position: absolute;
	inset: -12% 0;
	width: 100%;
	height: 124%;
	object-fit: cover;
	translate: 0 var(--py, 0px);
}

.category-head h2 {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--c-white);
	font-size: 46px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 24px;
}

.product-card {
	display: flex;
	flex-direction: column;
	color: var(--c-ink);
	text-align: center;
}

.product-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-alt);
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 1s var(--ease);
}

.product-card:hover .product-card__media img {
	scale: 1.08;
}

.product-card__title {
	position: relative;
	display: inline-block;
	align-self: center;
	font-size: 17px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.product-card__title::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: var(--c-primary);
	transform: scaleX(0);
	transition: transform 0.45s var(--ease);
}

.product-card:hover .product-card__title {
	color: var(--c-primary);
}

.product-card:hover .product-card__title::after {
	transform: scaleX(1);
}

.product-card__text {
	margin-top: 6px;
	color: var(--c-muted);
	font-size: 14px;
}

.product-grid--archive {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-detail .split__media img {
	height: auto;
	aspect-ratio: 1 / 1;
}

.product-detail__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	margin-top: 32px;
}

/* ---------- 服务 ---------- */

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

.service-item {
	padding: 34px 28px;
	background: var(--c-white);
	border-top: 3px solid var(--c-primary);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 10px 30px rgba(20, 24, 22, 0.05);
	transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.service-item:hover {
	translate: 0 -6px;
	box-shadow: 0 22px 44px rgba(20, 24, 22, 0.1);
}

.service-item h3 {
	margin-bottom: 18px;
	font-size: 19px;
}

.checks {
	list-style: none;
}

.checks li {
	position: relative;
	padding: 6px 0 6px 26px;
	color: var(--c-muted);
	font-size: 14px;
}

.checks li::before {
	content: '\2713';
	position: absolute;
	top: 6px;
	left: 0;
	color: var(--c-primary);
	font-weight: 700;
}

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

.audience {
	background: var(--c-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(20, 24, 22, 0.06);
	transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.audience:hover {
	translate: 0 -6px;
	box-shadow: 0 22px 44px rgba(20, 24, 22, 0.12);
}

.audience__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.audience__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 1s var(--ease);
}

.audience:hover .audience__media img {
	scale: 1.08;
}

.audience__body {
	padding: 24px 26px 28px;
}

.audience__body h3 {
	font-size: 19px;
}

.audience__body p {
	color: var(--c-muted);
	font-size: 14px;
}

/* ---------- 询盘 ---------- */

.section--inquiry {
	background: var(--c-alt);
}

.inquiry {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 64px;
	align-items: start;
}

.inquiry__info h2 {
	font-size: 40px;
}

.inquiry__info h3 {
	color: var(--c-primary);
	font-size: 18px;
	font-weight: 500;
}

.inquiry__role {
	color: var(--c-ink);
	font-weight: 500;
}

.inquiry__form {
	padding: 44px 44px 40px;
	background: var(--c-white);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(20, 24, 22, 0.08);
}

.contact-list {
	display: grid;
	gap: 18px;
	margin-top: 30px;
	list-style: none;
}

.contact-list__item {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--c-line);
}

.contact-list__label {
	color: var(--c-muted);
	font-size: 14px;
}

.contact-list__value {
	color: var(--c-ink);
	font-weight: 500;
	word-break: break-all;
}

.contact-list__value small {
	display: block;
	color: var(--c-muted);
	font-size: 13px;
	font-weight: 400;
}

.fyj-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 22px 24px;
}

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

.fyj-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--c-muted);
	font-size: 13px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.fyj-field:focus-within label {
	color: var(--c-primary);
}

.fyj-field input,
.fyj-field select,
.fyj-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d5dad4;
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-ink);
	font-family: var(--font);
	font-size: 15px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fyj-field input:focus,
.fyj-field select:focus,
.fyj-field textarea:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 4px rgba(31, 122, 94, 0.12);
}

.fyj-field textarea {
	resize: vertical;
	min-height: 130px;
}

.fyj-field .btn {
	width: 100%;
	padding: 16px 30px;
}

.fyj-hp {
	position: absolute;
	left: -9999px;
}

.notice {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: var(--radius);
	font-size: 14px;
}

.notice--ok {
	background: #e6f2ed;
	color: var(--c-primary-dark);
}

.notice--err {
	background: #fbe9e7;
	color: #a63a2c;
}

/* ---------- 页面标题、通用模块 ---------- */

.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 360px;
	padding: 170px 0 70px;
	background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-ink) 100%);
	color: var(--c-white);
	overflow: hidden;
}

.page-hero::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -10%;
	width: 60vw;
	height: 60vw;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 65%);
	animation: fyj-float 14s ease-in-out infinite alternate;
}

@keyframes fyj-float {
	to {
		transform: translate3d(-30px, 40px, 0);
	}
}

.page-hero__title {
	margin: 0;
	color: var(--c-white);
	font-size: clamp(36px, 5vw, 60px);
}

.page-hero__eyebrow {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	letter-spacing: 0.04em;
}

/* 页面顶部横幅图（模板站同款），带视差与缓慢推拉 */
.page-hero--photo {
	isolation: isolate;
}

.page-hero__photo {
	position: absolute;
	top: -12%;
	left: 0;
	z-index: -2;
	width: 100%;
	height: 124%;
	object-fit: cover;
	translate: 0 var(--py, 0px);
	animation: fyj-kenburns 10s var(--ease) both;
}

.page-hero--photo::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(20, 24, 22, 0.8) 0%, rgba(20, 24, 22, 0.45) 55%, rgba(20, 24, 22, 0.2) 100%);
}

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

.capability {
	padding: 34px 28px;
	background: var(--c-white);
	border-radius: var(--radius);
	text-align: center;
}

.capability__title {
	display: block;
	margin-bottom: 12px;
	color: var(--c-primary);
	font-size: 24px;
	font-weight: 600;
}

.capability p {
	margin: 0;
	color: var(--c-muted);
	font-size: 14px;
}

.technique-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-bottom: 56px;
}

.technique__media {
	aspect-ratio: 4 / 3;
	margin-bottom: 22px;
	overflow: hidden;
	border-radius: var(--radius);
}

.technique__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 1s var(--ease);
}

.technique:hover .technique__media img {
	scale: 1.06;
}

.technique p {
	color: var(--c-muted);
	font-size: 14px;
}

.pair-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	margin-bottom: 56px;
}

.pair-grid img {
	width: 100%;
	height: 360px;
	object-fit: cover;
	border-radius: var(--radius);
}

.quote {
	max-width: 860px;
	margin: 0 auto;
	padding: 10px 0 10px 36px;
	border-left: 3px solid var(--c-primary);
}

.quote p {
	margin: 0;
	color: var(--c-ink);
	font-size: 22px;
	line-height: 1.6;
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
}

.step {
	padding: 30px 26px;
	background: var(--c-white);
	border-radius: var(--radius);
	transition: translate 0.5s var(--ease);
}

.step:hover {
	translate: 0 -6px;
}

.step__num {
	display: block;
	margin-bottom: 14px;
	color: var(--c-primary);
	font-size: 42px;
	font-weight: 600;
	line-height: 1;
	opacity: 0.35;
}

.step h3 {
	font-size: 19px;
}

.step p {
	margin: 0;
	color: var(--c-muted);
	font-size: 14px;
}

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

.gallery__item {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	cursor: zoom-in;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 1s var(--ease);
}

.gallery__item:hover img {
	scale: 1.07;
}

.cta {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.cta p {
	color: var(--c-muted);
}

.cta .btn {
	margin-top: 12px;
}

.back-link {
	padding-top: 40px;
	text-align: center;
}

/* 新闻与项目 */

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

.customer {
	background: var(--c-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(20, 24, 22, 0.06);
	transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.customer:hover {
	translate: 0 -6px;
	box-shadow: 0 22px 44px rgba(20, 24, 22, 0.12);
}

.customer__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.customer__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 1s var(--ease);
}

.customer:hover .customer__media img {
	scale: 1.07;
}

.customer__body {
	padding: 22px 24px 26px;
}

.customer__logo {
	max-height: 40px;
	width: auto;
	margin-bottom: 12px;
	object-fit: contain;
}

.customer__body h3 {
	font-size: 18px;
}

.customer__place {
	color: var(--c-muted);
	font-size: 13px;
}

.customer__review {
	margin: 0;
	color: var(--c-text);
	font-size: 14px;
	font-style: italic;
}

.customer__review span {
	color: var(--c-primary);
	font-style: normal;
	font-weight: 500;
}

/* ---------- 页脚 ---------- */

.site-footer {
	padding: 90px 0 0;
	background: var(--c-footer);
	color: #c8ccd0;
	font-size: 14px;
}

.site-footer h3 {
	margin-bottom: 20px;
	color: var(--c-white);
	font-size: 17px;
}

.site-footer a {
	color: #c8ccd0;
}

.site-footer a:hover {
	color: var(--c-white);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.8fr 0.9fr 1.2fr;
	gap: 48px;
}

.site-footer__brand {
	margin: 0 0 4px;
	color: var(--c-white);
	font-size: 22px;
	font-weight: 700;
}

.site-footer__tagline {
	margin-bottom: 22px;
	color: #9aa1a8;
}

.site-footer__contact,
.site-footer__links {
	list-style: none;
}

.site-footer__contact li,
.site-footer__links li {
	margin-bottom: 10px;
}

.site-footer__links a {
	position: relative;
	display: inline-block;
	transition: color 0.3s ease, padding-left 0.4s var(--ease);
}

.site-footer__links a:hover {
	padding-left: 8px;
}

.footer-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.footer-gallery a {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
}

.footer-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.8s var(--ease), opacity 0.4s ease;
}

.footer-gallery a:hover img {
	scale: 1.12;
	opacity: 0.85;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 70px;
	padding: 26px 0 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #8d959c;
	font-size: 13px;
}

.site-footer__bottom p {
	margin: 0;
}

.socials {
	display: flex;
	gap: 18px;
}

/* ---------- 浮动按钮 ---------- */

.float-contact {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 45;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.float-contact__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--c-primary);
	color: var(--c-white);
	box-shadow: 0 10px 24px rgba(20, 24, 22, 0.22);
	transition: transform 0.4s var(--ease), background-color 0.3s ease;
}

.float-contact__item:hover {
	transform: translateY(-4px) scale(1.06);
	background: var(--c-primary-dark);
}

.float-contact__item svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.float-contact__item--wa {
	background: #25d366;
	animation: fyj-pulse 2.4s ease-out infinite;
}

.float-contact__item--wa:hover {
	background: #1ebe5a;
}

@keyframes fyj-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
	}
	70%,
	100% {
		box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
	}
}

.leave-bar {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 44;
	padding: 18px 12px;
	background: var(--c-ink);
	color: var(--c-white);
	border-radius: var(--radius) 0 0 var(--radius);
	font-size: 14px;
	letter-spacing: 0.1em;
	writing-mode: vertical-rl;
	transform: translateY(-50%);
	transition: padding-right 0.4s var(--ease), background-color 0.3s ease;
}

.leave-bar:hover {
	padding-right: 18px;
	background: var(--c-primary);
	color: var(--c-white);
}

.to-top {
	position: fixed;
	left: 20px;
	bottom: 24px;
	z-index: 45;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: var(--c-white);
	color: var(--c-primary);
	box-shadow: 0 10px 24px rgba(20, 24, 22, 0.12);
	cursor: pointer;
	opacity: 0;
	transform: translateY(12px) scale(0.9);
	pointer-events: none;
	transition: opacity 0.4s ease, transform 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease;
}

.to-top.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.to-top:hover {
	background: var(--c-primary);
	color: var(--c-white);
}

.to-top svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	height: 3px;
	background: var(--c-primary);
	transform: scaleX(0);
	transform-origin: left center;
	pointer-events: none;
}

/* 灯箱 */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(12, 14, 13, 0.92);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s;
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox__img {
	max-width: 88vw;
	max-height: 84vh;
	border-radius: var(--radius);
	object-fit: contain;
	transform: scale(0.94);
	transition: transform 0.5s var(--ease);
}

.lightbox.is-open .lightbox__img {
	transform: none;
}

.lightbox__close,
.lightbox__arrow {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--c-white);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.lightbox__close:hover,
.lightbox__arrow:hover {
	background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
	top: 20px;
	right: 20px;
}

.lightbox__arrow--prev {
	left: 20px;
}

.lightbox__arrow--next {
	right: 20px;
}

/* ---------- 入场动画 ---------- */

html.js [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 44px, 0);
	transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}

html.js [data-reveal="left"] {
	transform: translate3d(-64px, 0, 0);
}

html.js [data-reveal="right"] {
	transform: translate3d(64px, 0, 0);
}

html.js [data-reveal="zoom"] {
	transform: scale(0.92);
}

html.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

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

@media (max-width: 1180px) {
	.site-nav {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.site-header__quote {
		display: none;
	}

	.product-grid,
	.product-grid--archive,
	.service-grid,
	.capability-grid,
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

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

@media (max-width: 960px) {
	h2 {
		font-size: 30px;
	}

	.section {
		padding: 84px 0;
	}

	.intro,
	.split,
	.inquiry {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.split--reverse .split__copy {
		order: 0;
	}

	.split__media img {
		height: 380px;
	}

	.cards--3,
	.technique-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

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

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

	.inquiry__form {
		padding: 32px 26px;
	}
}

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

	h2 {
		font-size: 26px;
	}

	.section {
		padding: 68px 0;
	}

	.section-head {
		margin-bottom: 36px;
	}

	.hero {
		min-height: 620px;
	}

	.hero__arrow {
		display: none;
	}

	.hero__title {
		font-size: 40px;
	}

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

	.stat {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 16px;
		align-items: baseline;
	}

	.stat__num {
		grid-row: span 2;
		font-size: 36px;
	}

	.cards--3,
	.technique-grid,
	.service-grid,
	.audience-grid,
	.customer-grid,
	.steps,
	.capability-grid,
	.cert-grid,
	.gallery {
		grid-template-columns: 1fr;
	}

	.product-grid,
	.product-grid--archive {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 14px;
	}

	.info-box {
		grid-template-columns: 1fr;
	}

	.info-box__img {
		width: 120px;
	}

	.fyj-form {
		grid-template-columns: 1fr;
	}

	.inquiry__form {
		padding: 26px 20px;
	}

	.contact-list__item {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.category-head {
		height: 260px;
	}

	.category-head h2 {
		font-size: 34px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.leave-bar {
		display: none;
	}

	.float-contact {
		right: 14px;
		bottom: 18px;
	}

	.float-contact__item {
		width: 46px;
		height: 46px;
	}

	.to-top {
		left: 14px;
		bottom: 18px;
	}

	.lightbox__arrow {
		top: auto;
		bottom: 20px;
	}
}

/* ---------- 减少动态效果 ---------- */

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

	html.js [data-reveal],
	[data-split] .word {
		opacity: 1;
		transform: none;
		transition: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
