/* ==========================================================
   Elementor 页面样式补充。
   组件的文字、颜色、字号、图片等都在 Elementor 里设置；这里只补充
   版式细节（横线、列表勾号、图片高度、按钮样式、固定高度等）。
   固定高度按 Elementor 区段/列的 ID（elementor-element-xxx）指定。
   ========================================================== */

/* 文本段落：段距由 Elementor 控制 */
.elementor-widget-text-editor p {
	margin: 0 0 12px;
}

.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.elementor-widget.fy-center .elementor-widget-container {
	text-align: center;
}

/* 标题上方的绿色短线（居中标题与案例段落） */
.elementor-widget.fy-bar > .elementor-widget-container::before,
.elementor-widget.fy-accent-bar > .elementor-widget-container::before {
	content: '';
	display: block;
	width: 75px;
	height: 4px;
	margin: 0 0 20px;
	background: var(--c-primary);
}

.elementor-widget.fy-bar > .elementor-widget-container::before {
	margin: 0 auto 20px;
}

/* 设计理念下方的分隔线 */
.elementor-widget.fy-facts {
	margin-top: 84px;
}

.elementor-widget.fy-facts > .elementor-widget-container {
	padding-top: 44px;
	border-top: 1px solid rgb(214, 222, 218);
}

/* 勾号列表 */
.elementor-widget.fy-checks .elementor-icon-list-icon {
	padding-right: 8px;
	color: var(--c-primary);
}

.elementor-widget.fy-checks .elementor-icon-list-icon svg {
	fill: var(--c-primary);
}

.elementor-widget.fy-checks .elementor-icon-list-text {
	color: var(--c-text);
	font-size: 16px;
	line-height: 24px;
}

.elementor-widget.fy-checks--grey .elementor-icon-list-text {
	color: #656565;
}

.elementor-widget.fy-checks.fy-center .elementor-icon-list-item {
	justify-content: center;
}

.elementor-widget.fy-checks--2col .elementor-icon-list-items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px 20px;
}

.elementor-widget.fy-facts .elementor-icon-list-icon {
	padding-right: 10px;
	color: var(--c-primary);
}

.elementor-widget.fy-facts .elementor-icon-list-text {
	color: var(--c-primary);
	font-size: 14px;
	line-height: 24px;
}

/* 设计理念手风琴 */
.elementor-widget.fy-acc .elementor-accordion-item {
	border: 0;
}

.elementor-widget.fy-acc .elementor-tab-title {
	padding: 10px;
	color: var(--c-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	background: transparent;
	border: 0;
}

.elementor-widget.fy-acc .elementor-tab-title.elementor-active {
	background: var(--c-primary);
	color: var(--c-white);
}

.elementor-widget.fy-acc .elementor-accordion-icon {
	color: var(--c-ink);
}

.elementor-widget.fy-acc .elementor-tab-title.elementor-active .elementor-accordion-icon {
	color: var(--c-white);
}

.elementor-widget.fy-acc .elementor-tab-content {
	padding: 10px 10px 24px;
	border: 0;
	color: var(--c-text);
	font-size: 14px;
	line-height: 21px;
}

.elementor-widget.fy-acc .elementor-tab-content p {
	margin: 0;
}

/* 按钮 */
.elementor-widget-button .elementor-button {
	border-radius: 0;
	font-family: var(--font);
}

.elementor-widget-button.fy-btn .elementor-button {
	height: 42px;
	padding: 0 36px;
	font-size: 17px;
	font-weight: 600;
	line-height: 42px;
}

.elementor-widget-button.fy-btn--outline .elementor-button {
	background: transparent;
	border: 1px solid var(--c-white);
	color: var(--c-white);
}

.elementor-widget-button.fy-btn--outline .elementor-button:hover {
	background: var(--c-white);
	color: var(--c-ink);
}

.elementor-widget-button.fy-btn--primary .elementor-button {
	height: 46px;
	padding: 0 40px;
	background: var(--c-primary);
	color: var(--c-white);
	line-height: 46px;
}

.elementor-widget-button.fy-btn--primary-outline .elementor-button {
	height: 42px;
	padding: 0 24px;
	background: transparent;
	border: 1px solid var(--c-primary);
	color: var(--c-primary);
	font-size: 16px;
	font-weight: 300;
	line-height: 40px;
}

.elementor-widget-button.fy-btn--primary-outline .elementor-button:hover {
	background: var(--c-primary);
	color: var(--c-white);
}

/* 图片：固定高度与裁切 */
.elementor-widget-image img {
	display: block;
	width: 100%;
	object-fit: cover;
}

.elementor-widget-image.fy-h-451 img { height: 451px; }
.elementor-widget-image.fy-h-420 img { height: 420px; }
.elementor-widget-image.fy-h-349 img { height: 349px; }
.elementor-widget-image.fy-h-270 img { height: 270px; }
.elementor-widget-image.fy-h-486 img { height: 486px; }
.elementor-widget-image.fy-h-168 img { height: 168px; }
.elementor-widget-image.fy-photo-428 img { height: 428px; }
.elementor-widget-image.fy-photo-188 img { height: 188px; }

.elementor-widget-image.fy-logo img {
	width: 300px;
	height: 125px;
	margin: 0 auto;
	object-fit: contain;
}

.elementor-widget-image.fy-logo-179 img {
	width: 179px;
	height: 134px;
	object-fit: contain;
}

.elementor-widget-image.fy-svc-icon img {
	width: 44px;
	height: 44px;
	margin: 0 auto;
	object-fit: contain;
}

.elementor-widget-image.fy-accent-img {
	position: relative;
	isolation: isolate;
}

.elementor-widget-image.fy-accent-img::before {
	content: '';
	position: absolute;
	top: -20px;
	left: -20px;
	z-index: -1;
	width: 80px;
	height: 80px;
	background: var(--c-primary);
}

.elementor-widget-image.fy-quote img {
	display: none;
}

/* 图文框：认证与订购方式 */
.elementor-widget.fy-cert .elementor-image-box-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 19px;
	margin-bottom: 23px;
}

.elementor-widget.fy-cert .elementor-image-box-img {
	flex: 0 0 59px;
	width: 59px;
	margin: 0;
}

.elementor-widget.fy-cert .elementor-image-box-img img {
	width: 59px;
	height: 59px;
	object-fit: contain;
}

.elementor-widget.fy-cert .elementor-image-box-title {
	margin: 0;
	color: var(--c-ink);
	font-size: 25px;
	font-weight: 500;
	line-height: 35px;
}

.elementor-widget.fy-cert .elementor-image-box-description {
	margin: 0;
	color: var(--c-primary);
	font-size: 16px;
	line-height: 24px;
}

.elementor-widget.fy-order .elementor-image-box-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.elementor-widget.fy-order .elementor-image-box-img {
	flex: 0 0 174px;
	width: 174px;
	margin: 0;
}

.elementor-widget.fy-order .elementor-image-box-img img {
	width: 174px;
	height: 174px;
	object-fit: cover;
}

.elementor-widget.fy-order .elementor-image-box-title {
	margin: 6px 0 8px;
	color: var(--c-primary);
	font-size: 22px;
	font-weight: 600;
	line-height: 33px;
}

.elementor-widget.fy-order .elementor-image-box-description {
	margin: 0;
	color: var(--c-text);
	font-size: 16px;
	line-height: 24px;
}

/* 地图高度 */
.elementor-widget-google_maps .elementor-custom-embed,
.elementor-widget-google_maps iframe {
	display: block;
	width: 100%;
	height: 500px !important;
}

/* 固定高度（按 Elementor ID） */
/* 首屏轮播：两张幻灯片叠放在同一格子里，由 hero-slider.js 切换 */
.elementor-element-herobox {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
}

.elementor-element-herobox > .elementor-container > .elementor-column > .elementor-element-populated {
	display: grid;
}

.elementor-element-herobox .elementor-element-heroslide1,
.elementor-element-herobox .elementor-element-heroslide2 {
	grid-area: 1 / 1;
	min-height: 100vh;
}

.elementor-element-herobox .elementor-element-heroslide1 > .elementor-container,
.elementor-element-herobox .elementor-element-heroslide2 > .elementor-container {
	display: flex;
	align-items: center;
	min-height: calc(100vh - 120px);
}

.fy-hero-js [data-id^="heroslide"] {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.fy-hero-js [data-id^="heroslide"].is-active {
	opacity: 1;
	visibility: visible;
}

.fy-hero-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-white);
	font-size: 44px;
	line-height: 44px;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.fy-hero-arrow:hover {
	opacity: 1;
}

.fy-hero-arrow--prev {
	left: 28px;
}

.fy-hero-arrow--next {
	right: 28px;
}

.fy-hero-dots {
	position: absolute;
	bottom: 40px;
	left: 50%;
	z-index: 5;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.fy-hero-dot {
	width: 40px;
	height: 3px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.fy-hero-dot.is-active {
	background: var(--c-white);
}

.elementor-element-abhero01,
.elementor-element-cthero01,
.elementor-element-nwhero01,
.elementor-element-pghero01 {
	min-height: 467px;
}

.elementor-element-case0001 > .elementor-element-populated,
.elementor-element-case0002 > .elementor-element-populated,
.elementor-element-case0003 > .elementor-element-populated {
	box-sizing: border-box;
	min-height: 500px;
}

.elementor-element-supcard1 > .elementor-element-populated,
.elementor-element-supcard2 > .elementor-element-populated,
.elementor-element-supcard3 > .elementor-element-populated {
	box-sizing: border-box;
	min-height: 309px;
}

.elementor-element-svc0001 > .elementor-element-populated,
.elementor-element-svc0002 > .elementor-element-populated,
.elementor-element-svc0003 > .elementor-element-populated,
.elementor-element-svc0004 > .elementor-element-populated {
	box-sizing: border-box;
	min-height: 290px;
}

.elementor-element-tech0001 > .elementor-element-populated,
.elementor-element-tech0002 > .elementor-element-populated,
.elementor-element-tech0003 > .elementor-element-populated {
	box-sizing: border-box;
	min-height: 575px;
}

.elementor-element-inqinfo > .elementor-element-populated {
	box-sizing: border-box;
	min-height: 565px;
}

.elementor-element-ctform01 > .elementor-element-populated {
	box-sizing: border-box;
	min-height: 565px;
	box-shadow: 0 0 0 1px var(--c-line);
}

/* 询盘表单（短代码输出的容器） */
.fyj-form-wrap {
	width: 100%;
}

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

/* Second revision requested on 2026-11-12. */
.fyj-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px;
    text-align: left;
}
.fyj-category-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d6ddd6;
    border-radius: 6px;
    color: #233b32;
    text-decoration: none;
    scroll-margin-top: 110px;
}
.fyj-category-card:nth-child(4) { grid-column: 2 / span 2; }
.fyj-category-card:nth-child(5) { grid-column: 4 / span 2; }
.fyj-category-card img {
    display: block;
    width: 100%;
    height: 290px;
    padding: 16px;
    object-fit: contain;
    background: #fff;
}
.fyj-category-copy { padding: 20px 22px 24px; }
.fyj-category-copy h2, .fyj-category-copy h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.35;
}
.fyj-category-copy p { margin: 0 0 16px; line-height: 1.6; }
.fyj-category-detail .fyj-category-copy { display: flex; flex: 1; flex-direction: column; }
.fyj-category-detail .fyj-category-copy a { margin-top: auto; color: #245343; text-decoration: underline; }
a.fyj-category-card:hover, a.fyj-category-card:focus-visible { border-color: #305849; }
.elementor-element-herobox [data-id^="heroslide"] {
    background-position: center bottom !important;
    padding: 120px 24px 50px !important;
}
.elementor-element-herobox [data-id^="heroslide"] > .elementor-container {
    align-items: flex-start !important;
    min-height: 0 !important;
}
.elementor-element-herobox [data-id^="heroslide"] > .elementor-container > .elementor-column > .elementor-element-populated {
    align-content: flex-start;
}
.elementor-element-herobox .elementor-heading-title,
.elementor-element-herobox .elementor-widget-text-editor { text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.elementor-element-herobox .elementor-widget-text-editor { max-width: 760px; margin: 0 auto; }
.elementor-element-mfgcarousel .swiper-slide-image {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #f6f4ef;
}
.elementor-element-intro000 .fy-facts { margin-top: 28px; }
.elementor-element-intro000 .fy-facts > .elementor-widget-container { padding-top: 24px; }
.fyj-production-steps { margin: 22px 0 0; padding: 0; list-style: none; }
.fyj-production-steps li { position: relative; padding: 0 0 12px 22px; line-height: 1.5; }
.fyj-production-steps li::before { content: '\2713'; position: absolute; left: 0; color: #3c7967; }
.elementor-element-supply02 .elementor-widget-heading { min-height: 68px; }
.elementor-element-supply02 .fy-checks .elementor-icon-list-items,
.elementor-element-service01 .fy-checks .elementor-icon-list-items { text-align: left; }
.elementor-element-supply02 .fy-checks .elementor-icon-list-item,
.elementor-element-service01 .fy-checks .elementor-icon-list-item {
    justify-content: flex-start !important;
    align-items: flex-start;
}
.elementor-element-supply02 .elementor-icon-list-icon,
.elementor-element-service01 .elementor-icon-list-icon { flex: 0 0 22px; padding-top: 5px; }
.elementor-element-supply02 .elementor-icon-list-text,
.elementor-element-service01 .elementor-icon-list-text { flex: 1; padding-left: 0; }
.elementor-element-certs001 .fy-cert .elementor-image-box-title { font-size: 21px; line-height: 1.35; margin-bottom: 6px; }
.elementor-element-certs001 .fy-cert .elementor-image-box-wrapper { margin-bottom: 18px; gap: 14px; }
.elementor-element-fd42f234 img { height: auto !important; max-height: 480px; object-fit: contain; }
.elementor-element-certimg01 > .elementor-element-populated { align-content: center; }
.elementor-element-ordrow1 > .elementor-container { align-items: stretch; }
.elementor-element-ordrow1 .elementor-column > .elementor-element-populated { padding: 0 16px; }
.elementor-element-ordrow1 .fy-order { width: 100%; }
.elementor-element-ordrow1 .fy-order .elementor-image-box-wrapper { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.elementor-element-ordrow1 .fy-order .elementor-image-box-img { flex: none; width: 100%; margin: 0; }
.elementor-element-ordrow1 .fy-order .elementor-image-box-img img {
    width: 100%; height: 230px; object-fit: cover; border-radius: 6px;
    filter: sepia(.12) saturate(.85) brightness(1.03);
}
.elementor-element-ordrow1 .fy-order .elementor-image-box-content { width: 100%; }
.elementor-element-ordrow1 .fy-order .elementor-image-box-title { font-size: 21px; line-height: 1.4; min-height: 59px; margin: 0 0 10px; }
.elementor-element-inquiry01 .fyj-field label { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.elementor-element-ctform01 .fyj-field label { color: #233b32; }
@media (max-width: 1024px) {
    .fyj-category-card img { height: 230px; }
    .elementor-element-ordrow1 .fy-order .elementor-image-box-img img { height: 190px; }
}
@media (max-width: 767px) {
    .fyj-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .fyj-category-card, .fyj-category-card:nth-child(4), .fyj-category-card:nth-child(5) { grid-column: span 1; }
    .fyj-category-card:last-child { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
    .fyj-category-card img { height: 190px; padding: 12px; }
    .fyj-category-copy { padding: 16px; }
    .fyj-category-copy h2, .fyj-category-copy h3 { font-size: 18px; }
    .elementor-element-herobox [data-id^="heroslide"] { padding-top: 180px !important; }
    .elementor-element-herobox .elementor-heading-title { font-size: 34px !important; line-height: 1.2; }
    .elementor-element-intro000 { padding: 64px 18px !important; }
    .elementor-element-intro000 .elementor-column { width: 100%; }
    .elementor-element-mfgcarousel .swiper-slide-image { height: 250px; }
    .elementor-element-supply02 .elementor-widget-heading { min-height: 0; }
    .elementor-element-supply02 .elementor-column { margin-bottom: 24px; }
    .elementor-element-ordrow1 .elementor-column { width: 100%; }
    .elementor-element-ordrow1 .elementor-column > .elementor-element-populated { padding: 0 12px 32px; }
    .elementor-element-ordrow1 .fy-order .elementor-image-box-img img { height: 240px; }
    .elementor-element-ordrow1 .fy-order .elementor-image-box-title { min-height: 0; }
    .elementor-element-inquiry01 .fyj-form-wrap .fyj-form,
    .elementor-element-ctform01 .fyj-form-wrap .fyj-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .fyj-category-grid { grid-template-columns: minmax(0, 1fr); }
    .fyj-category-card:last-child { width: 100%; grid-column: auto; }
    .fyj-category-card img { height: 300px; }
}

/* Original photograph, with the copy above the console table. */
.elementor-element-herobox [data-id^="heroslide"] {
    background-image: url('https://fuyoujiacrafts.com/wp-content/uploads/2026/11/fyj-wide-hero-20261113.png') !important;
    background-size: cover !important;
    background-position: center bottom !important;
    min-height: 100vh;
    padding-top: 28vh !important;
}
.elementor-element-herobox [data-id^="heroslide"]::before,
.elementor-element-herobox [data-id^="heroslide"]::after { content: none; }
.elementor-element-herobox .elementor-widget-heading .elementor-heading-title {
    font-size: clamp(30px, 3.4vw, 54px) !important;
    line-height: 1.16 !important;
}
.elementor-element-herobox .elementor-widget-text-editor { max-width: 960px; }
.elementor-element-ordrow1 .elementor-widget.fy-order .elementor-image-box-wrapper .elementor-image-box-img {
    width: 100% !important;
    max-width: none;
}
@media (max-width: 767px) {
    .elementor-element-herobox [data-id^="heroslide"] {
        min-height: 100svh;
        padding-top: 25svh !important;
    }
    .elementor-element-herobox .elementor-widget-heading .elementor-heading-title { font-size: 30px !important; }
}
.fyj-category-card { --fyj-photo-height: 290px; }
.fyj-category-grid .fyj-category-card > img { height: var(--fyj-photo-height) !important; object-fit: contain; }
@media (max-width: 1024px) { .fyj-category-card { --fyj-photo-height: 230px; } }
@media (max-width: 767px) { .fyj-category-card { --fyj-photo-height: 190px; } }
@media (max-width: 480px) { .fyj-category-card { --fyj-photo-height: 300px; } }

@media (min-width: 768px) {
    .elementor-element-herobox [data-id^="heroslide"] {
        background-size: auto 115% !important;
        background-position: center bottom !important;
    }
}

/* Mobile hero composition. */
@media (max-width: 767px) {
    .elementor-element-herobox [data-id^="heroslide"] {
        background-position: calc(50% + 4.2svh) bottom !important;
    }
}

/* Align the basket with the carousel indicators. */
@media (min-width: 768px) {
    .elementor-element-herobox [data-id^="heroslide"] {
        background-position: calc(50% + 4.8vh) bottom !important;
    }
}
