/* ==========================================================================
   Yiwen Printing — Visual language v2
   Industrial spec-sheet aesthetic: warm paper ground, hairline grids,
   condensed uppercase display type, monospace data labels, one accent.
   ========================================================================== */

:root {
	--yiwen-paper: #f2f0e8;
	--yiwen-paper-soft: #e9e6db;
	--yiwen-ink: #16181d;
	--yiwen-ink-deep: #0d0f13;
	--yiwen-accent: #1b49c8;
	--yiwen-accent-deep: #14379b;
	--yiwen-accent-soft: #e4eafa;
	--yiwen-muted: rgba(22, 24, 29, 0.62);
	--yiwen-faint: rgba(22, 24, 29, 0.42);
	--yiwen-line: #d8d3c2;
	--yiwen-line-strong: rgba(22, 24, 29, 0.55);
	--yiwen-line-on-dark: rgba(242, 240, 232, 0.22);
	--yiwen-deep-ink: var(--yiwen-ink);
	--yiwen-ink-black: var(--yiwen-ink-deep);
	--yiwen-paper-mist: var(--yiwen-paper);
	--yiwen-surface: #ffffff;
	--yiwen-section-gray: var(--yiwen-paper-soft);
	--yiwen-press-red: var(--yiwen-accent);
	--yiwen-carton-gold: #c9bfa4;
	--yiwen-process-cyan: var(--yiwen-accent);
	--yiwen-soft-ink: var(--yiwen-muted);
	--yiwen-line-legacy: var(--yiwen-line);
	--yiwen-max: 1440px;
	--yiwen-radius: 2px;
	--yiwen-shadow: none;
	--yiwen-font-display: 'Anton', 'Arial Narrow', sans-serif;
	--yiwen-font-sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
	--yiwen-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

body {
	background: var(--yiwen-paper);
	color: var(--yiwen-ink);
	font-family: var(--yiwen-font-sans);
	-webkit-font-smoothing: antialiased;
}

body::before {
	display: none;
}

::selection {
	background: var(--yiwen-accent);
	color: #fff;
}

a {
	text-underline-offset: 0.18em;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.wp-site-blocks > .wp-block-group,
.wp-site-blocks > header,
.wp-site-blocks > footer {
	margin-block-start: 0;
	margin-block-end: 0;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.yiwen-container {
	box-sizing: border-box;
	max-width: var(--yiwen-max);
	margin-right: auto;
	margin-left: auto;
	padding-right: clamp(24px, 4vw, 64px);
	padding-left: clamp(24px, 4vw, 64px);
}

.yiwen-section {
	padding-top: clamp(72px, 9vw, 128px);
	padding-bottom: clamp(72px, 9vw, 128px);
}

/* --------------------------------------------------------------------------
   Section background box line-art (dieline-style watermarks)
   -------------------------------------------------------------------------- */

.yiwen-section.yiwen-section--background-grey {
	background-color: var(--yiwen-paper-soft);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300' fill='none' stroke='%2316181d' stroke-opacity='0.09' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M120 152 L200 112 L280 152 L200 192 Z'/%3E%3Cpath d='M120 152 L120 214 L200 254 L200 192'/%3E%3Cpath d='M280 152 L280 214 L200 254'/%3E%3Cpath d='M138 82 L218 42 L298 82 L218 122 Z'/%3E%3Cpath d='M138 82 L138 112 L218 152 L218 122'/%3E%3Cpath d='M298 82 L298 112 L218 152'/%3E%3Cpath d='M120 183 L200 223 L280 183' stroke-dasharray='6 6'/%3E%3C/svg%3E");
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: min(460px, 62vw) auto;
}

.yiwen-section.yiwen-section--background-white {
	background-color: #ffffff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300' fill='none' stroke='%2316181d' stroke-opacity='0.08' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M60 142 L160 102 L260 142 L160 182 Z'/%3E%3Cpath d='M60 142 L60 212 L160 252 L160 182'/%3E%3Cpath d='M260 142 L260 212 L160 252'/%3E%3Cpath d='M160 102 L200 68 L300 108 L260 142'/%3E%3Cpath d='M60 142 L30 120 L130 82 L160 102' stroke-dasharray='6 6'/%3E%3Cpath d='M110 122 L110 232' stroke-dasharray='6 6'/%3E%3Cpath d='M210 122 L210 232' stroke-dasharray='6 6'/%3E%3C/svg%3E");
	background-position: left bottom;
	background-repeat: no-repeat;
	background-size: min(440px, 60vw) auto;
}

.yiwen-dark-section {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 280' fill='none' stroke='%2316181d' stroke-opacity='0.08' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M40 118 L140 78 L240 118 L140 158 Z'/%3E%3Cpath d='M40 118 L40 188 L140 228 L140 158'/%3E%3Cpath d='M240 118 L240 188 L140 228'/%3E%3Cpath d='M240 138 L306 110 L372 138 L306 166 Z'/%3E%3Cpath d='M240 138 L240 178 L306 206 L306 166'/%3E%3Cpath d='M372 138 L372 178 L306 206'/%3E%3Cpath d='M268 148 L344 148' stroke-dasharray='5 5'/%3E%3C/svg%3E");
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: min(460px, 62vw) auto;
}

.yiwen-section-head {
	display: grid;
	gap: 16px;
	max-width: 980px;
	margin-bottom: clamp(32px, 4vw, 52px);
}

/* Section h2: condensed uppercase display */
.yiwen-section-head h2,
.yiwen-product-gallery-head h2,
.yiwen-esg-roadmap-section h2 {
	margin: 0;
	font-family: var(--yiwen-font-display);
	font-size: clamp(2rem, 3.6vw, 3.4rem);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.04;
	text-transform: uppercase;
}

/* Inner-page H1: same display treatment as home/factory heroes */
.yiwen-section-head h1,
.yiwen-section .yiwen-container > h1 {
	max-width: 1100px;
	margin: 0 0 20px;
	font-family: var(--yiwen-font-display);
	font-size: clamp(2.5rem, 4.6vw, 4.6rem);
	font-weight: 400;
	letter-spacing: 0.005em;
	line-height: 1;
	text-transform: uppercase;
	text-wrap: balance;
}

.yiwen-section .yiwen-container > h1 + p {
	max-width: 860px;
	font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.yiwen-section[id] {
	scroll-margin-top: 96px;
}

.yiwen-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	margin: 0 0 14px;
	border: 0;
	color: var(--yiwen-accent);
	font-family: var(--yiwen-font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1.45;
	text-transform: uppercase;
}

.yiwen-eyebrow::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 2px;
	background: currentColor;
}

.yiwen-muted {
	color: var(--yiwen-muted);
}

.yiwen-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 32px;
}

/* Sharp industrial buttons */
.wp-block-button__link,
.yiwen-rfq-form button {
	border: 1px solid var(--yiwen-accent);
	border-radius: var(--yiwen-radius);
	background: var(--yiwen-accent);
	box-shadow: none;
	color: #fff;
	font-family: var(--yiwen-font-mono);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	padding: 15px 22px;
	text-transform: uppercase;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wp-block-button__link:hover,
.yiwen-rfq-form button:hover {
	border-color: var(--yiwen-accent-deep);
	background: var(--yiwen-accent-deep);
	color: #fff;
	transform: translateY(-2px);
}

.yiwen-btn-secondary a {
	border-color: var(--yiwen-line-strong);
	background: transparent;
	color: var(--yiwen-ink);
}

.yiwen-btn-secondary a:hover {
	border-color: var(--yiwen-ink);
	background: var(--yiwen-ink);
	color: var(--yiwen-paper);
	transform: translateY(-2px);
}

/* Spec entries: top rule + oversized index, no box */
.yiwen-card {
	position: relative;
	border: 0;
	border-top: 2px solid var(--yiwen-ink);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transition: border-color 200ms ease;
}

.yiwen-card:hover {
	border-top-color: var(--yiwen-accent);
}

.yiwen-card::before {
	content: none;
}

.yiwen-card > :first-child {
	margin-block-start: 0;
}

.yiwen-card > :last-child {
	margin-block-end: 0;
}

.yiwen-card h3,
.yiwen-card p {
	margin-block-start: 0;
}

.yiwen-card h3 + p {
	margin-top: 6px;
}

/* Oversized dieline-style index number */
.yiwen-index {
	display: block;
	width: fit-content;
	min-width: 0;
	height: auto;
	margin-bottom: 18px;
	border: 0;
	border-radius: 0;
	color: var(--yiwen-accent);
	font-family: var(--yiwen-font-display);
	font-size: 1.7rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 0;
}

.yiwen-card > .yiwen-index {
	display: block;
}

.yiwen-spec-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.yiwen-spec-list span {
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
	background: var(--yiwen-paper);
	color: var(--yiwen-muted);
	font-family: var(--yiwen-font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	padding: 6px 10px;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.yiwen-site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid var(--yiwen-line);
	background: var(--yiwen-paper);
	backdrop-filter: none;
}

.yiwen-header-inner {
	column-gap: clamp(20px, 3vw, 40px);
	min-height: 84px;
	row-gap: 14px;
}

.yiwen-logo a {
	color: var(--yiwen-ink);
	font-weight: 900;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-transform: uppercase;
}

.yiwen-logo-link {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
}

.yiwen-logo-image {
	display: block;
	width: min(460px, 68vw);
	max-width: 100%;
	height: auto;
	max-height: 68px;
	object-fit: contain;
	object-position: left center;
}

.yiwen-main-nav a {
	color: var(--yiwen-ink);
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.15;
	text-decoration: none;
	text-transform: uppercase;
}

.yiwen-main-nav,
.yiwen-main-nav .wp-block-navigation__container,
.yiwen-main-nav .wp-block-navigation-item.has-child {
	min-height: 84px;
	align-items: center;
}

.yiwen-main-nav .wp-block-navigation-item.has-child {
	position: relative;
	display: flex;
}

.yiwen-main-nav a:hover {
	color: var(--yiwen-accent);
}

.yiwen-main-nav .wp-block-navigation__submenu-container {
	top: 100%;
	min-width: 300px;
	border: 1px solid var(--yiwen-ink);
	border-radius: 0;
	background: var(--yiwen-paper);
	box-shadow: none;
}

.yiwen-main-nav .wp-block-navigation__submenu-container a {
	padding: 12px 18px;
}

.yiwen-main-nav .wp-block-navigation__submenu-container a:hover {
	background: var(--yiwen-accent);
	color: #fff;
}

.yiwen-nav-rfq a {
	border: 1px solid var(--yiwen-accent);
	border-radius: 0;
	background: var(--yiwen-accent);
	color: #fff !important;
	font-family: var(--yiwen-font-mono);
	letter-spacing: 0.14em;
	padding: 12px 18px;
}

.yiwen-nav-rfq a:hover {
	background: var(--yiwen-accent-deep);
	border-color: var(--yiwen-accent-deep);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.yiwen-footer {
	border-top: 1px solid var(--yiwen-line);
	background-color: var(--yiwen-ink-deep);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300' fill='none' stroke='%23f2f0e8' stroke-opacity='0.07' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M120 152 L200 112 L280 152 L200 192 Z'/%3E%3Cpath d='M120 152 L120 214 L200 254 L200 192'/%3E%3Cpath d='M280 152 L280 214 L200 254'/%3E%3Cpath d='M138 82 L218 42 L298 82 L218 122 Z'/%3E%3Cpath d='M138 82 L138 112 L218 152 L218 122'/%3E%3Cpath d='M298 82 L298 112 L218 152'/%3E%3Cpath d='M120 183 L200 223 L280 183' stroke-dasharray='6 6'/%3E%3C/svg%3E");
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: min(380px, 50vw) auto;
	color: var(--yiwen-paper);
	padding-block: clamp(56px, 7vw, 88px);
}

.yiwen-footer a,
.yiwen-footer p,
.yiwen-footer h3,
.yiwen-footer h4 {
	color: var(--yiwen-paper);
}

.yiwen-footer a:hover {
	color: #9db4f0;
}

.yiwen-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 0.8fr;
	gap: 32px;
	align-items: start;
}

.yiwen-footer-grid > * {
	margin-block-start: 0 !important;
}

.yiwen-footer h3,
.yiwen-footer h4,
.yiwen-footer p {
	margin-block-start: 0;
}

.yiwen-footer h3 {
	font-family: var(--yiwen-font-display);
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.yiwen-footer h4 {
	color: rgba(242, 240, 232, 0.55);
	font-family: var(--yiwen-font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.yiwen-footer h3,
.yiwen-footer h4 {
	margin-block-end: 16px;
	line-height: 1.18;
}

.yiwen-footer p {
	margin-block-end: 0;
	color: rgba(242, 240, 232, 0.78);
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.yiwen-hero {
	overflow: hidden;
	border-bottom: 1px solid var(--yiwen-line);
	background-color: var(--yiwen-ink-deep);
	background-image: linear-gradient(90deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.78) 42%, rgba(10, 12, 16, 0.45) 74%, rgba(10, 12, 16, 0.3) 100%), url('../images/yiwen-home-hero-factory-packaging.png');
	background-position: center, center;
	background-repeat: no-repeat;
	background-size: cover;
	padding-block: clamp(88px, 10vw, 150px);
}

.yiwen-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
	gap: clamp(36px, 5vw, 76px);
	align-items: center;
}

.yiwen-hero h1 {
	max-width: 980px;
	margin: 0 0 22px;
	color: var(--yiwen-paper);
	font-family: var(--yiwen-font-display);
	font-size: clamp(2.9rem, 5vw, 5.4rem);
	font-weight: 400;
	letter-spacing: 0.005em;
	line-height: 0.98;
	text-transform: uppercase;
	text-wrap: balance;
}

.yiwen-hero .yiwen-eyebrow {
	color: #9db4f0;
}

.yiwen-hero .yiwen-muted,
.yiwen-hero .yiwen-hero-lede {
	color: rgba(242, 240, 232, 0.82);
}

.yiwen-hero-lede {
	max-width: 760px;
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	line-height: 1.7;
}

.yiwen-hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.yiwen-hero-tags span {
	border: 1px solid var(--yiwen-line-on-dark);
	border-radius: 0;
	background: transparent;
	color: rgba(242, 240, 232, 0.85);
	font-family: var(--yiwen-font-mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	padding: 7px 11px;
	text-transform: uppercase;
}

.yiwen-hero .wp-block-button__link {
	border-color: var(--yiwen-accent);
	background: var(--yiwen-accent);
	color: #fff;
}

.yiwen-hero .wp-block-button__link:hover {
	border-color: #fff;
	background: #fff;
	color: var(--yiwen-ink);
}

.yiwen-hero .yiwen-btn-secondary a {
	border-color: var(--yiwen-line-on-dark);
	background: transparent;
	color: var(--yiwen-paper);
}

.yiwen-hero .yiwen-btn-secondary a:hover {
	border-color: var(--yiwen-paper);
	background: transparent;
	color: var(--yiwen-paper);
}

.yiwen-hero-gallery {
	position: relative;
	align-self: center;
	overflow: hidden;
	border: 1px solid var(--yiwen-line-on-dark);
	border-radius: 0;
	background: var(--yiwen-ink-deep);
	box-shadow: none;
}

.yiwen-hero-track {
	display: flex;
	width: 100%;
	animation: yiwen-gallery-pages 17.1s ease-in-out infinite;
}

.yiwen-hero-gallery:hover .yiwen-hero-track {
	animation-play-state: paused;
}

.yiwen-gallery-slide {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin: 0;
	flex: 0 0 100%;
	overflow: hidden;
	background: var(--yiwen-paper-soft);
}

.yiwen-gallery-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yiwen-gallery-placeholder {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(22, 24, 29, 0.16), rgba(22, 24, 29, 0.02)),
		linear-gradient(120deg, #ddd8c8 0%, #f6f4ec 48%, #cfc9b6 100%);
}

.yiwen-gallery-slide-1 .yiwen-gallery-placeholder {
	background:
		linear-gradient(135deg, rgba(27, 73, 200, 0.1), rgba(22, 24, 29, 0.04)),
		linear-gradient(120deg, #d8d3c2 0%, #f8f6ef 45%, #c4bda9 100%);
}

.yiwen-gallery-slide-2 .yiwen-gallery-placeholder {
	background:
		linear-gradient(135deg, rgba(22, 24, 29, 0.2), rgba(27, 73, 200, 0.06)),
		linear-gradient(120deg, #cfc9b6 0%, #f1eee4 52%, #e0dbc9 100%);
}

.yiwen-gallery-slide-3 .yiwen-gallery-placeholder {
	background:
		linear-gradient(135deg, rgba(22, 24, 29, 0.12), rgba(201, 191, 164, 0.18)),
		linear-gradient(120deg, #e2ddcb 0%, #ffffff 48%, #cbc4ae 100%);
}

.yiwen-gallery-slide figcaption {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	border-radius: 0;
	border-top: 1px solid var(--yiwen-line-on-dark);
	border-right: 1px solid var(--yiwen-line-on-dark);
	background: rgba(13, 15, 19, 0.82);
	color: var(--yiwen-paper);
	font-family: var(--yiwen-font-mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	padding: 10px 14px;
	text-transform: uppercase;
}

@keyframes yiwen-gallery-pages {
	0%,
	29.239% {
		transform: translateX(0);
	}

	33.333%,
	62.573% {
		transform: translateX(-100%);
	}

	66.667%,
	95.906% {
		transform: translateX(-200%);
	}

	100% {
		transform: translateX(0);
	}
}

/* --------------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------------- */

.yiwen-grid-3,
.yiwen-grid-4,
.yiwen-product-grid,
.yiwen-detail-grid {
	display: grid;
	gap: 16px;
	align-items: stretch;
	grid-auto-rows: 1fr;
}

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

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

.yiwen-grid-3 > *,
.yiwen-grid-4 > *,
.yiwen-product-grid > *,
.yiwen-detail-grid > *,
.yiwen-process > *,
.yiwen-rfq-grid > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.yiwen-grid-3 .yiwen-card,
.yiwen-grid-4 .yiwen-card,
.yiwen-product-card,
.yiwen-detail-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 12px;
	height: 100%;
	min-height: 240px;
	padding: 26px 24px 8px 0;
}

.yiwen-grid-3 .yiwen-card h3,
.yiwen-grid-4 .yiwen-card h3,
.yiwen-product-card h3,
.yiwen-detail-card h3 {
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.yiwen-section-close {
	max-width: 820px;
	margin-top: 32px;
	font-size: 1.02rem;
}

.yiwen-process {
	display: grid;
	gap: 12px;
	align-items: stretch;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.yiwen-process .yiwen-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0;
	height: 100%;
	min-height: 118px;
	padding: 24px 16px;
	text-align: center;
	border: 1px solid var(--yiwen-line);
	border-top: 1px solid var(--yiwen-line);
	background: #ffffff;
}

.yiwen-process .yiwen-card:hover {
	border-color: var(--yiwen-ink);
}

.yiwen-process h3 {
	font-family: var(--yiwen-font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Factory page
   -------------------------------------------------------------------------- */

.yiwen-factory-hero {
	display: grid;
	gap: 16px;
	max-width: 980px;
	margin-bottom: clamp(32px, 4vw, 52px);
}

.yiwen-factory-hero h1 {
	max-width: 1100px;
	margin: 0;
	font-family: var(--yiwen-font-display);
	font-size: clamp(2.6rem, 4.6vw, 4.7rem);
	font-weight: 400;
	letter-spacing: 0.005em;
	line-height: 1;
	text-transform: uppercase;
	text-wrap: balance;
}

/* Spec-sheet stat band: hairline cells, mono numerals */
.yiwen-factory-stats {
	display: grid;
	gap: 0;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--yiwen-ink);
	border-radius: 0;
	background: var(--yiwen-paper);
	box-shadow: none;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yiwen-factory-stat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 140px;
	padding: 26px;
	border-right: 1px solid var(--yiwen-line);
}

.yiwen-factory-stat:last-child {
	border-right: 0;
}

.yiwen-factory-stat p {
	margin: 0 0 14px;
	color: var(--yiwen-accent);
	font-family: var(--yiwen-font-display);
	font-size: clamp(2rem, 3vw, 3rem);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1;
}

.yiwen-factory-stat h3 {
	margin: 0;
	color: var(--yiwen-muted);
	font-family: var(--yiwen-font-mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.yiwen-factory-capabilities {
	display: grid;
	gap: 0;
	align-items: stretch;
	margin-top: 32px;
	grid-auto-rows: 1fr;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-bottom: 1px solid var(--yiwen-line);
}

.yiwen-factory-capability {
	display: flex;
	flex-direction: column;
	border-top: 2px solid var(--yiwen-ink);
	padding: 24px 26px 34px 0;
}

.yiwen-factory-capability + .yiwen-factory-capability {
	padding-left: 26px;
	border-left: 1px solid var(--yiwen-line);
}

.yiwen-factory-capability h3 {
	margin: 0 0 10px;
	font-size: 1.05rem;
	font-weight: 700;
}

.yiwen-factory-capability p {
	margin: 0;
	color: var(--yiwen-muted);
	font-size: 0.95rem;
}

.yiwen-factory-process {
	display: grid;
	position: relative;
	gap: 16px;
	align-items: stretch;
	counter-reset: factory-step;
	margin-top: 36px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.yiwen-factory-process::before {
	content: none;
}

.yiwen-factory-process span {
	position: relative;
	display: grid;
	align-content: start;
	gap: 14px;
	min-height: 128px;
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	color: var(--yiwen-ink);
	font-family: var(--yiwen-font-mono);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.35;
	padding: 22px 16px 18px;
	counter-increment: factory-step;
	text-transform: uppercase;
	transition: border-color 160ms ease;
}

.yiwen-factory-process span:hover {
	border-color: var(--yiwen-ink);
}

.yiwen-factory-process span:not(:last-child)::after {
	content: none;
}

.yiwen-factory-process span::before {
	content: counter(factory-step, decimal-leading-zero);
	display: block;
	width: auto;
	height: auto;
	border: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
	color: var(--yiwen-accent);
	font-family: var(--yiwen-font-display);
	font-size: 1.6rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1;
}

.yiwen-factory-media-grid {
	display: grid;
	gap: 16px;
	align-items: stretch;
	grid-auto-rows: 260px;
	margin-top: 32px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yiwen-factory-media {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 260px;
	min-height: 260px;
	overflow: hidden;
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
	background:
		linear-gradient(135deg, rgba(22, 24, 29, 0.12), rgba(22, 24, 29, 0)),
		linear-gradient(120deg, #e6e1d0 0%, #faf8f1 48%, #d2ccb8 100%);
	padding: 0;
}

.yiwen-factory-media::before,
.yiwen-factory-media::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(22, 24, 29, 0.18);
	transform: skew(-12deg) rotate(4deg);
}

.yiwen-factory-media::before {
	top: 28%;
	left: 17%;
	width: 56%;
	height: 30%;
	background: rgba(255, 255, 255, 0.42);
}

.yiwen-factory-media::after {
	top: 43%;
	left: 34%;
	width: 36%;
	height: 20%;
	border-color: rgba(27, 73, 200, 0.4);
}

.yiwen-factory-media p {
	position: relative;
	z-index: 1;
	margin: 0;
	border-radius: 0;
	border-top: 1px solid var(--yiwen-line-on-dark);
	border-right: 1px solid var(--yiwen-line-on-dark);
	background: rgba(13, 15, 19, 0.82);
	color: var(--yiwen-paper);
	font-family: var(--yiwen-font-mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	padding: 10px 14px;
	text-transform: uppercase;
}

.yiwen-factory-close {
	max-width: 820px;
	margin-top: 28px;
	font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   ESG page
   -------------------------------------------------------------------------- */

.yiwen-esg-hero {
	display: grid;
	gap: 16px;
	max-width: 1040px;
	margin-bottom: clamp(32px, 4vw, 52px);
}

.yiwen-esg-hero h1 {
	max-width: 1140px;
	margin: 0;
	font-family: var(--yiwen-font-display);
	font-size: clamp(2.6rem, 4.8vw, 4.9rem);
	font-weight: 400;
	letter-spacing: 0.005em;
	line-height: 1;
	text-transform: uppercase;
	text-wrap: balance;
}

.yiwen-esg-hero .yiwen-muted {
	max-width: 880px;
	font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.yiwen-esg-commitment-grid,
.yiwen-esg-pillar-grid,
.yiwen-esg-roadmap {
	display: grid;
	gap: 16px;
	align-items: stretch;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yiwen-esg-commitment-grid > *,
.yiwen-esg-pillar-grid > *,
.yiwen-esg-roadmap > * {
	margin-block-start: 0 !important;
}

.yiwen-esg-commitment,
.yiwen-esg-pillar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
	height: 100%;
}

.yiwen-esg-commitment {
	justify-content: center;
	min-height: 210px;
	padding: 28px 24px;
}

.yiwen-esg-pillar {
	justify-content: flex-start;
	min-height: 260px;
	padding: 30px 24px;
}

.yiwen-esg-commitment h3,
.yiwen-esg-pillar h3 {
	margin: 0;
	font-weight: 700;
}

.yiwen-esg-commitment p,
.yiwen-esg-pillar p {
	margin: 0;
	color: var(--yiwen-muted);
}

.yiwen-esg-pillar ul {
	display: grid;
	gap: 10px;
	margin: 6px 0 0;
	padding-left: 18px;
	color: var(--yiwen-ink);
	font-weight: 600;
}

.yiwen-esg-proof-list {
	display: grid;
	gap: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 1px solid var(--yiwen-ink);
	border-radius: 0;
	background: var(--yiwen-paper);
	box-shadow: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
}

.yiwen-esg-proof-list li {
	display: grid;
	align-content: center;
	min-height: 116px;
	border-right: 1px solid var(--yiwen-line);
	border-bottom: 1px solid var(--yiwen-line);
	color: var(--yiwen-muted);
	padding: 26px;
}

.yiwen-esg-proof-list li:nth-child(2n) {
	border-right: 0;
}

.yiwen-esg-proof-list li:nth-last-child(-n + 2) {
	border-bottom: 0;
}

.yiwen-esg-proof-list strong {
	color: var(--yiwen-ink);
}

.yiwen-esg-roadmap-item {
	position: relative;
	display: grid;
	align-content: center;
	gap: 14px;
	box-sizing: border-box;
	min-height: 220px;
	border: 1px solid var(--yiwen-line);
	border-top: 2px solid var(--yiwen-accent);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	padding: 28px 24px;
}

.yiwen-esg-roadmap-item p:first-child {
	width: fit-content;
	margin: 0;
	border: 1px solid var(--yiwen-line-strong);
	border-radius: 0;
	color: var(--yiwen-accent);
	font-family: var(--yiwen-font-mono);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	padding: 6px 10px;
	text-transform: uppercase;
}

.yiwen-esg-roadmap-item h3,
.yiwen-esg-roadmap-item p {
	margin: 0;
}

.yiwen-esg-roadmap-item h3 {
	font-weight: 700;
}

.yiwen-esg-roadmap-item p:last-child {
	color: var(--yiwen-muted);
}

/* --------------------------------------------------------------------------
   Banded sections (quality band, RFQ band)
   -------------------------------------------------------------------------- */

.yiwen-dark-section {
	border-top: 1px solid var(--yiwen-line);
	border-bottom: 1px solid var(--yiwen-line);
	background-color: var(--yiwen-paper-soft);
	color: var(--yiwen-ink);
}

.yiwen-dark-section h2,
.yiwen-dark-section h3,
.yiwen-dark-section p,
.yiwen-dark-section .yiwen-muted {
	color: var(--yiwen-ink);
}

.yiwen-dark-section .yiwen-muted {
	color: var(--yiwen-muted);
}

.yiwen-dark-section .yiwen-eyebrow {
	color: var(--yiwen-accent);
}

.yiwen-dark-section .yiwen-card {
	border-top-color: var(--yiwen-ink);
	background: transparent;
	box-shadow: none;
}

.yiwen-dark-section .yiwen-index {
	color: var(--yiwen-accent);
}

.yiwen-dark-section .yiwen-spec-list span {
	border-color: var(--yiwen-line-strong);
	background: var(--yiwen-paper);
	color: var(--yiwen-accent);
}

.yiwen-section.yiwen-rfq-band {
	border-top: 1px solid var(--yiwen-ink);
	background-color: var(--yiwen-ink-deep);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 280' fill='none' stroke='%23f2f0e8' stroke-opacity='0.1' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M40 118 L140 78 L240 118 L140 158 Z'/%3E%3Cpath d='M40 118 L40 188 L140 228 L140 158'/%3E%3Cpath d='M240 118 L240 188 L140 228'/%3E%3Cpath d='M240 138 L306 110 L372 138 L306 166 Z'/%3E%3Cpath d='M240 138 L240 178 L306 206 L306 166'/%3E%3Cpath d='M372 138 L372 178 L306 206'/%3E%3Cpath d='M268 148 L344 148' stroke-dasharray='5 5'/%3E%3C/svg%3E");
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: min(500px, 64vw) auto;
	color: var(--yiwen-paper);
}

.yiwen-rfq-band h2,
.yiwen-rfq-band p {
	color: var(--yiwen-paper);
}

.yiwen-rfq-band .yiwen-muted {
	color: rgba(242, 240, 232, 0.68);
}

.yiwen-rfq-band .yiwen-eyebrow {
	color: #9db4f0;
}

/* --------------------------------------------------------------------------
   Product catalog
   -------------------------------------------------------------------------- */

.yiwen-product-card {
	min-height: 220px;
}

.yiwen-product-card a {
	color: var(--yiwen-ink);
	display: block;
	font-weight: 700;
	text-decoration: none;
}

.yiwen-product-card a:hover {
	color: var(--yiwen-accent);
}

.yiwen-product-card h3 {
	margin-bottom: 8px;
}

.yiwen-product-card .yiwen-cn {
	display: block;
	margin-bottom: 14px;
	color: var(--yiwen-accent);
	font-family: var(--yiwen-font-mono);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.1em;
}

.yiwen-product-gallery-grid {
	display: grid;
	gap: 24px;
	align-items: stretch;
	grid-auto-rows: 376px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yiwen-product-gallery-grid > * {
	margin: 0 !important;
}

.yiwen-grid-3 > *,
.yiwen-grid-4 > *,
.yiwen-product-grid > *,
.yiwen-detail-grid > *,
.yiwen-process > *,
.yiwen-rfq-grid > *,
.yiwen-factory-stats > *,
.yiwen-factory-capabilities > *,
.yiwen-factory-process > *,
.yiwen-factory-media-grid > *,
.yiwen-product-gallery-grid > *,
.yiwen-sample-gallery > * {
	align-self: stretch;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.yiwen-product-frame {
	align-self: stretch;
	box-sizing: border-box;
	display: grid !important;
	grid-template-rows: minmax(0, 264px) 74px;
	gap: 0;
	height: 376px;
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	color: var(--yiwen-ink);
	padding: 0;
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease;
	vertical-align: top;
}

.yiwen-product-frame:hover {
	transform: translateY(-3px);
	border-color: var(--yiwen-ink);
}

.yiwen-product-art,
.yiwen-sample-art {
	position: relative;
	display: block;
	overflow: hidden;
	border: 0;
	border-bottom: 1px solid var(--yiwen-line);
	border-radius: 0;
	background:
		linear-gradient(135deg, rgba(22, 24, 29, 0.08), rgba(22, 24, 29, 0)),
		linear-gradient(120deg, #ece7d6 0%, #faf8f1 48%, #d6d0bb 100%);
}

.yiwen-product-art {
	aspect-ratio: 4 / 3;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	width: 100%;
}

.yiwen-product-frame img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.yiwen-product-art::before,
.yiwen-product-art::after,
.yiwen-sample-art::before,
.yiwen-sample-art::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(22, 24, 29, 0.18);
	transform: skew(-10deg) rotate(3deg);
}

.yiwen-product-art::before,
.yiwen-sample-art::before {
	top: 28%;
	left: 20%;
	width: 52%;
	height: 30%;
	background: rgba(255, 255, 255, 0.46);
}

.yiwen-product-art::after,
.yiwen-sample-art::after {
	top: 43%;
	left: 34%;
	width: 36%;
	height: 22%;
	border-color: rgba(27, 73, 200, 0.42);
}

.yiwen-product-art-2,
.yiwen-sample-art-2 {
	background: linear-gradient(120deg, #efe9d8 0%, #ffffff 48%, #d2d6cc 100%);
}

.yiwen-product-art-3,
.yiwen-sample-art-3 {
	background: linear-gradient(120deg, #e4e8e2 0%, #ffffff 50%, #d3d0c2 100%);
}

.yiwen-product-art-4,
.yiwen-sample-art-4 {
	background: linear-gradient(120deg, #e6ecec 0%, #ffffff 44%, #cfd4cb 100%);
}

.yiwen-product-art-5,
.yiwen-sample-art-5 {
	background: linear-gradient(120deg, #f3ecdd 0%, #ffffff 48%, #d9d4c4 100%);
}

.yiwen-product-art-6,
.yiwen-sample-art-6 {
	background: linear-gradient(120deg, #ebe9de 0%, #ffffff 48%, #e4d7c5 100%);
}

.yiwen-product-art-7,
.yiwen-sample-art-7 {
	background: linear-gradient(120deg, #e9ece6 0%, #ffffff 48%, #d3d8cd 100%);
}

.yiwen-product-art-8,
.yiwen-sample-art-8 {
	background: linear-gradient(120deg, #efe6d2 0%, #ffffff 48%, #dccbb0 100%);
}

.yiwen-product-art-9,
.yiwen-sample-art-9 {
	background: linear-gradient(120deg, #f2eee2 0%, #ffffff 48%, #dae0dd 100%);
}

.yiwen-product-name {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--yiwen-ink);
	font-size: clamp(0.98rem, 1.2vw, 1.15rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	min-height: 72px;
	padding: 4px 12px 2px;
	text-align: center;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Product detail page
   -------------------------------------------------------------------------- */

.yiwen-product-detail-hero {
	display: grid;
	gap: clamp(24px, 4vw, 44px);
	margin-bottom: clamp(34px, 5vw, 58px);
}

.yiwen-product-detail-grid {
	display: grid;
	gap: clamp(24px, 4vw, 48px);
	grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
	align-items: stretch;
}

.yiwen-product-detail-copy {
	display: grid;
	align-content: center;
}

.yiwen-product-detail-copy h1 {
	max-width: 960px;
	margin: 0 0 20px;
	font-family: var(--yiwen-font-display);
	font-size: clamp(2.6rem, 4.6vw, 4.8rem);
	font-weight: 400;
	letter-spacing: 0.005em;
	line-height: 1;
	text-transform: uppercase;
	text-wrap: balance;
}

.yiwen-product-detail-lede {
	max-width: 840px;
	font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.yiwen-product-detail-panel {
	display: grid;
	align-content: center;
	gap: 14px;
	min-height: 320px;
	border: 1px solid var(--yiwen-ink);
	border-radius: 0;
	background: var(--yiwen-paper);
	box-shadow: none;
	padding: clamp(24px, 3.8vw, 42px);
}

.yiwen-product-detail-panel h2 {
	margin: 0;
	font-family: var(--yiwen-font-display);
	font-size: clamp(1.7rem, 2.4vw, 2.4rem);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.06;
	text-transform: uppercase;
	text-wrap: balance;
}

.yiwen-product-detail-panel p {
	margin: 0;
	color: var(--yiwen-muted);
}

.yiwen-product-detail-label {
	width: fit-content;
	margin: 0;
	border: 1px solid var(--yiwen-line-strong);
	border-radius: 0;
	background: transparent;
	color: var(--yiwen-accent);
	font-family: var(--yiwen-font-mono);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	padding: 6px 10px;
	text-transform: uppercase;
}

.yiwen-product-detail-applications {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: stretch;
}

.yiwen-product-detail-application-block {
	display: grid;
	align-content: start;
	gap: 16px;
	min-height: 220px;
	border: 1px solid var(--yiwen-line);
	border-top: 2px solid var(--yiwen-ink);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	padding: clamp(22px, 3vw, 30px);
}

.yiwen-product-detail-application-block ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding-left: 18px;
	color: var(--yiwen-ink);
	font-weight: 600;
}

.yiwen-product-detail-application-block p {
	margin: 0;
	color: var(--yiwen-muted);
}

.yiwen-product-gallery-head {
	max-width: 940px;
	margin-bottom: clamp(28px, 4vw, 44px);
}

.yiwen-product-content {
	max-width: 100%;
}

.yiwen-product-content > * {
	margin-block-start: 0;
}

.yiwen-product-gallery-starter > .yiwen-muted {
	margin-bottom: 0;
}

.yiwen-product-content .wp-block-gallery {
	display: grid !important;
	gap: 20px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 !important;
}

.yiwen-product-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.yiwen-product-content .wp-block-gallery .wp-block-image {
	position: relative;
	display: grid !important;
	gap: 0;
	width: 100% !important;
	margin: 0 !important;
	overflow: hidden;
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
}

.yiwen-product-content .wp-block-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.yiwen-product-content figcaption {
	margin: 0 !important;
	border-top: 1px solid var(--yiwen-line);
	background: #ffffff;
	color: var(--yiwen-muted);
	font-family: var(--yiwen-font-mono);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	padding: 12px 14px;
	text-align: left;
	text-transform: uppercase;
}

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

.yiwen-product-gallery-starter > .yiwen-sample-gallery {
	margin-top: clamp(34px, 4vw, 56px) !important;
}

.yiwen-sample-frame {
	position: relative;
	display: grid !important;
	gap: 0;
	margin: 0 !important;
	overflow: hidden;
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	transition: border-color 160ms ease;
}

.yiwen-sample-frame:hover {
	border-color: var(--yiwen-ink);
}

.yiwen-sample-art {
	aspect-ratio: 4 / 3;
	border-width: 0 0 1px;
	border-radius: 0;
}

.yiwen-sample-frame figcaption {
	margin: 0 !important;
	border-top: 1px solid var(--yiwen-line);
	background: #ffffff;
	color: var(--yiwen-muted);
	font-family: var(--yiwen-font-mono);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	padding: 12px 14px;
	text-align: left;
	text-transform: uppercase;
}

.yiwen-product-content .yiwen-sample-gallery a {
	cursor: zoom-in;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

body.yiwen-lightbox-open {
	overflow: hidden;
}

.yiwen-product-lightbox {
	position: fixed;
	z-index: 9999;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(10, 12, 16, 0.85);
	backdrop-filter: blur(10px);
	padding: clamp(18px, 3vw, 40px);
}

.yiwen-product-lightbox__shell {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 14px;
	width: min(1180px, 100%);
	height: min(860px, 100%);
	max-height: calc(100vh - 40px);
}

.yiwen-product-lightbox__stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 0;
	overflow: hidden;
	border: 1px solid var(--yiwen-line-on-dark);
	border-radius: 0;
	background: rgba(242, 240, 232, 0.04);
	box-shadow: none;
	touch-action: none;
}

.yiwen-product-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transform-origin: center;
	transition: transform 120ms ease;
	user-select: none;
	will-change: transform;
}

.yiwen-product-lightbox__image.is-draggable {
	cursor: grab;
}

.yiwen-product-lightbox__image.is-dragging {
	cursor: grabbing;
	transition: none;
}

.yiwen-product-lightbox__toolbar {
	display: inline-flex;
	align-items: center;
	justify-self: center;
	gap: 8px;
	border: 1px solid var(--yiwen-line-on-dark);
	border-radius: 0;
	background: var(--yiwen-paper);
	box-shadow: none;
	padding: 6px;
}

.yiwen-product-lightbox__button,
.yiwen-product-lightbox__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: var(--yiwen-accent);
	color: #ffffff;
	cursor: pointer;
	font-family: var(--yiwen-font-mono);
	font-weight: 600;
}

.yiwen-product-lightbox__button {
	min-width: 38px;
	height: 38px;
	border-radius: 0;
	padding: 0 13px;
}

.yiwen-product-lightbox__button:hover {
	background: var(--yiwen-accent-deep);
}

.yiwen-product-lightbox__button--text {
	background: transparent;
	color: var(--yiwen-ink);
}

.yiwen-product-lightbox__button--text:hover {
	background: var(--yiwen-paper-soft);
}

.yiwen-product-lightbox__close {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	border-radius: 0;
	font-size: 1.4rem;
	line-height: 1;
	transform: none;
}

.yiwen-product-lightbox__scale {
	min-width: 54px;
	color: var(--yiwen-ink);
	font-family: var(--yiwen-font-mono);
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
}

.yiwen-product-lightbox__caption {
	justify-self: center;
	max-width: 820px;
	margin: 0;
	border-radius: 0;
	background: var(--yiwen-paper);
	color: var(--yiwen-ink);
	font-family: var(--yiwen-font-mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	padding: 10px 16px;
	text-align: center;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Media placeholder
   -------------------------------------------------------------------------- */

.yiwen-media-placeholder {
	align-items: center;
	position: relative;
	overflow: hidden;
	background: var(--yiwen-paper-soft);
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
	display: flex;
	justify-content: center;
	min-height: 320px;
	padding: 28px;
	text-align: center;
}

.yiwen-media-placeholder::before,
.yiwen-media-placeholder::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(22, 24, 29, 0.18);
	transform: skew(-12deg) rotate(4deg);
}

.yiwen-media-placeholder::before {
	width: 58%;
	height: 34%;
	top: 28%;
	left: 18%;
}

.yiwen-media-placeholder::after {
	width: 46%;
	height: 26%;
	top: 42%;
	left: 32%;
	border-color: rgba(27, 73, 200, 0.44);
}

.yiwen-media-placeholder p {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--yiwen-muted);
	font-family: var(--yiwen-font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   RFQ
   -------------------------------------------------------------------------- */

.yiwen-product-rfq {
	background: var(--yiwen-paper-soft);
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
	margin-top: 28px;
	padding: 30px;
}

.yiwen-rfq-form {
	display: grid;
	gap: 18px;
	max-width: 860px;
	border: 1px solid var(--yiwen-ink);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	padding: clamp(20px, 4vw, 36px);
}

.yiwen-rfq-band .yiwen-rfq-form {
	margin-top: 28px;
}

.yiwen-rfq-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

.yiwen-rfq-form p {
	display: grid;
	gap: 8px;
	margin: 0;
}

.yiwen-rfq-form p:has(button) {
	justify-self: start;
	inline-size: max-content;
}

.yiwen-rfq-form label {
	color: var(--yiwen-ink);
	font-family: var(--yiwen-font-mono);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.yiwen-rfq-form input,
.yiwen-rfq-form textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
	background: var(--yiwen-paper);
	color: var(--yiwen-ink);
	font: inherit;
	padding: 12px 13px;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.yiwen-rfq-form input:focus,
.yiwen-rfq-form textarea:focus {
	outline: 2px solid rgba(27, 73, 200, 0.28);
	outline-offset: 2px;
	border-color: var(--yiwen-accent);
	background: #ffffff;
}

.yiwen-rfq-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: start;
	inline-size: max-content;
	max-width: 100%;
	width: fit-content;
	border-color: var(--yiwen-accent);
	background: var(--yiwen-accent);
	color: #fff;
	cursor: pointer;
	font-family: var(--yiwen-font-mono);
}

.yiwen-rfq-form button:hover {
	border-color: var(--yiwen-accent-deep);
	background: var(--yiwen-accent-deep);
}

.yiwen-rfq-hidden {
	display: none;
}

.yiwen-rfq-success {
	border: 1px solid #2f7d4c;
	border-radius: 0;
	background: #eaf4ec;
	color: #245d30;
	font-weight: 600;
	margin-bottom: 18px;
	padding: 14px 16px;
}

.yiwen-rfq-error {
	border: 1px solid #b3402a;
	border-radius: 0;
	background: #f9ece8;
	color: #7b351c;
	font-weight: 600;
	margin-bottom: 18px;
	padding: 14px 16px;
}

/* --------------------------------------------------------------------------
   Articles
   -------------------------------------------------------------------------- */

.yiwen-articles-archive,
.yiwen-article-single {
	border-top: 1px solid var(--yiwen-line);
}

.yiwen-articles-head {
	max-width: 760px;
}

.yiwen-articles-list-title {
	margin: 0 0 22px;
	font-family: var(--yiwen-font-display);
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.yiwen-article-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yiwen-article-card {
	display: grid;
	gap: 12px;
	border-bottom: 1px solid var(--yiwen-line);
	padding: 28px 0;
}

.yiwen-article-list > li:first-child .yiwen-article-card {
	gap: 18px;
	min-height: 300px;
	border: 1px solid var(--yiwen-ink);
	background: var(--yiwen-paper);
	box-shadow: none;
	padding: clamp(26px, 4vw, 48px);
}

.yiwen-article-date {
	margin: 0;
	color: var(--yiwen-accent);
	font-family: var(--yiwen-font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.yiwen-article-title {
	margin: 0;
	font-size: clamp(1.35rem, 2.1vw, 2.05rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.14;
}

.yiwen-article-title a {
	color: var(--yiwen-ink);
	text-decoration: none;
}

.yiwen-article-title a:hover {
	color: var(--yiwen-accent);
}

.yiwen-article-excerpt,
.yiwen-article-excerpt p {
	margin: 0;
	color: var(--yiwen-muted);
}

.yiwen-article-excerpt .wp-block-post-excerpt__more-text {
	margin-top: 12px;
}

.yiwen-article-excerpt .wp-block-post-excerpt__more-link {
	color: var(--yiwen-ink);
	font-family: var(--yiwen-font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.yiwen-articles-empty {
	border: 1px solid var(--yiwen-line);
	background: #ffffff;
	color: var(--yiwen-muted);
	padding: 30px;
}

.yiwen-articles-empty p {
	margin: 0;
}

.yiwen-article-query .wp-block-query-pagination {
	align-items: center;
	margin-top: 34px;
	color: var(--yiwen-ink);
	font-family: var(--yiwen-font-mono);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.yiwen-article-query .wp-block-query-pagination a {
	color: inherit;
}

.yiwen-article-shell {
	max-width: 920px;
}

.yiwen-article-back {
	margin: 0 0 30px;
}

.yiwen-article-back a {
	color: var(--yiwen-ink);
	font-family: var(--yiwen-font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.yiwen-article-header {
	display: grid;
	gap: 16px;
	margin-bottom: clamp(30px, 5vw, 54px);
}

.yiwen-article-header h1 {
	max-width: 900px;
	margin: 0;
	font-family: var(--yiwen-font-display);
	font-size: clamp(2.5rem, 4.4vw, 4.5rem);
	font-weight: 400;
	letter-spacing: 0.005em;
	line-height: 1.02;
	text-transform: uppercase;
}

.yiwen-article-body {
	color: var(--yiwen-ink);
	font-size: 1.06rem;
	line-height: 1.8;
}

.yiwen-article-body > * {
	max-width: 760px;
}

.yiwen-article-body h2,
.yiwen-article-body h3 {
	margin-top: 2.1em;
	color: var(--yiwen-ink);
	font-weight: 700;
}

.yiwen-article-body img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--yiwen-line);
	border-radius: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
	.yiwen-hero-grid,
	.yiwen-grid-3,
	.yiwen-grid-4,
	.yiwen-factory-stats,
	.yiwen-factory-capabilities,
	.yiwen-factory-process,
	.yiwen-factory-media-grid,
	.yiwen-esg-commitment-grid,
	.yiwen-esg-pillar-grid,
	.yiwen-esg-roadmap,
	.yiwen-esg-proof-list,
	.yiwen-product-detail-grid,
	.yiwen-product-detail-applications,
	.yiwen-product-gallery-grid,
	.yiwen-product-content .wp-block-gallery,
	.yiwen-sample-gallery,
	.yiwen-product-grid,
	.yiwen-detail-grid,
	.yiwen-process,
	.yiwen-rfq-grid {
		grid-template-columns: 1fr;
	}

	.yiwen-hero-gallery {
		max-width: 680px;
	}

	.yiwen-gallery-slide {
		width: min(82vw, 620px);
	}

	.yiwen-hero h1 {
		font-size: clamp(2.2rem, 8.4vw, 3.2rem);
	}

	.yiwen-factory-stat,
	.yiwen-factory-process span {
		border-right: 0;
	}

	.yiwen-factory-stat {
		border-bottom: 1px solid var(--yiwen-line);
	}

	.yiwen-factory-stat:last-child {
		border-bottom: 0;
	}

	.yiwen-factory-capability + .yiwen-factory-capability {
		border-left: 0;
		padding-left: 0;
	}

	.yiwen-factory-process span {
		min-height: 112px;
	}

	.yiwen-product-detail-panel,
	.yiwen-product-detail-application-block {
		min-height: 0;
	}

	.yiwen-esg-proof-list li,
	.yiwen-esg-proof-list li:nth-child(2n),
	.yiwen-esg-proof-list li:nth-last-child(-n + 2) {
		border-right: 0;
		border-bottom: 1px solid var(--yiwen-line);
	}

	.yiwen-esg-proof-list li:last-child {
		border-bottom: 0;
	}
}

@media (max-width: 820px) {
	.yiwen-footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 780px) {
	.yiwen-container {
		padding-right: 20px;
		padding-left: 20px;
	}

	.yiwen-header-inner {
		flex-wrap: wrap;
		justify-content: flex-start;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.yiwen-logo-image {
		width: min(460px, calc(100vw - 40px));
	}

	.yiwen-main-nav,
	.yiwen-main-nav .wp-block-navigation__container,
	.yiwen-main-nav .wp-block-navigation-item.has-child {
		min-height: 0;
	}

	.yiwen-main-nav {
		width: 100%;
	}

	.yiwen-section {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.yiwen-article-list > li:first-child .yiwen-article-card {
		min-height: 0;
		padding: 26px 22px;
	}

	.yiwen-article-card {
		padding: 22px 0;
	}

	.yiwen-article-body {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}

	.yiwen-hero-track {
		width: 100%;
		transform: none !important;
	}

	.yiwen-gallery-slide {
		width: 100%;
	}

	.yiwen-gallery-slide[aria-hidden="true"] {
		display: none;
	}
}
