/* KM Fashion — 首页区块美化（产品 / 新闻 / About / Clients / Find Us） */
:root {
	--km-ink: #1a1a1a;
	--km-muted: #6b6b6b;
	--km-line: #ececec;
	--km-amber: #FEBC2A;
	--km-amber-soft: rgba(254, 188, 42, 0.14);
	--km-surface: #f7f6f4;
	--km-max: 1400px;
	--km-pad: 24px;
}

/* ---------- 首页容器与区块节奏 ---------- */
.home .container {
	overflow: hidden;
}

.home .container > .section-item {
	padding: 64px 0 56px;
	margin: 0 !important;
	background: #fff;
	border-bottom: none;
}

.home .container > .section-item:nth-child(even) {
	background: var(--km-surface);
}

.home .container > .section-item .inner {
	width: 100%;
	max-width: var(--km-max);
	margin: 0 auto;
	padding: 0 var(--km-pad);
	box-sizing: border-box;
}

/* ---------- 区块标题 ---------- */
.home .section-item .heading-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0 0 36px;
	padding: 0 0 18px;
	position: relative;
	text-align: center;
}

.home .section-item .heading-title:after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 48px;
	height: 3px;
	background: var(--km-amber);
	transform: translateX(-50%);
}

.home .section-item .heading-title b,
.home .section-item .heading-title b a,
.home .section-item .heading-title b a:link,
.home .section-item .heading-title b a:visited {
	margin: 0 !important;
	padding: 0 !important;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--km-ink) !important;
	text-decoration: none !important;
	position: static;
}

.home .section-item .heading-title b:before,
.home .section-item .heading-title strong:before {
	display: none !important;
}

.home .section-item .heading-title b a:hover {
	color: var(--km-amber) !important;
}

.home .section-item .heading-title .link-more {
	display: inline-flex !important;
	align-items: center;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.home .section-item .heading-title .link-more a,
.home .section-item .heading-title .link-more a:link,
.home .section-item .heading-title .link-more a:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	color: var(--km-ink) !important;
	background: transparent;
	border: 1px solid #d8d8d8;
	border-radius: 2px;
	text-decoration: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home .section-item .heading-title .link-more a:after {
	content: "\f105";
	font-family: FontAwesome;
	font-size: 12px;
	line-height: 1;
}

.home .section-item .heading-title .link-more a:hover {
	background: var(--km-amber);
	border-color: var(--km-amber);
	color: var(--km-ink) !important;
}

/* ---------- 产品网格卡片 ---------- */
.home .gallery-products .gallery-container {
	display: flex !important;
	flex-wrap: wrap;
	margin: 0 -10px !important;
	overflow: visible !important;
	clear: both;
}

.home .gallery-products .gallery-container .item-content {
	float: none !important;
	width: 25% !important;
	margin: 0 0 20px !important;
	padding: 0 10px !important;
	text-align: center;
	box-sizing: border-box !important;
	clear: none !important;
}

.home .gallery-products .gallery-container .item-content > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--km-line);
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home .gallery-products .gallery-container .item-content > a:hover {
	transform: translateY(-4px);
	border-color: var(--km-amber);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.home .gallery-products .item-cover {
	margin: 0 !important;
	aspect-ratio: 1 / 1;
	background: #f3f3f3;
}

.home .gallery-products .item-cover .attachment,
.home .gallery-products .item-cover .thumbnail,
.home .gallery-products .item-cover .centered {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	position: static !important;
}

.home .gallery-products .item-cover img,
.home .gallery-products .item-cover .post-thumb {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.home .gallery-products .item-content > a:hover .item-cover img {
	transform: scale(1.05);
}

.home .gallery-products .item-cover .mask {
	background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18));
	opacity: 0;
	transition: opacity 0.25s ease;
}

.home .gallery-products .item-content > a:hover .item-cover .mask {
	opacity: 1;
}

.home .gallery-products .item-content figcaption {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	padding: 14px 12px 16px !important;
	margin: 0 !important;
	background: #fff;
}

.home .gallery-products .item-content h3 {
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	min-height: calc(1.4em * 2);
	max-height: calc(1.4em * 2);
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	height: auto !important;
	color: var(--km-ink);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.home .gallery-products .item-content > a:hover h3 {
	color: #111;
}

/* ---------- 新闻（保留原三列竖卡布局，轻量美化） ---------- */
.home .cat-thumb-title-posts.km-news .section-content {
	overflow: hidden;
}

.home .cat-thumb-title-posts.km-news ul.thumb-title-list {
	display: block !important;
	margin: 0 -1% !important;
	padding: 0 !important;
	list-style: none;
	overflow: hidden;
}

.home .cat-thumb-title-posts.km-news ul.thumb-title-list li {
	float: left !important;
	clear: none !important;
	width: 31.333% !important;
	margin: 0 0 20px !important;
	padding: 0 1% !important;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box !important;
	transform: none;
}

.home .cat-thumb-title-posts.km-news ul.thumb-title-list li:nth-child(3n+1) {
	clear: both !important;
}

.home .cat-thumb-title-posts.km-news ul.thumb-title-list li:before {
	display: none !important;
	content: none !important;
}

.home .cat-thumb-title-posts.km-news ul.thumb-title-list li > .post-thumbnail,
.home .cat-thumb-title-posts.km-news ul.thumb-title-list li > .post-excerpt {
	background: #fff;
}

.home .cat-thumb-title-posts.km-news .post-thumbnail {
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid var(--km-line);
	border-bottom: none;
	border-radius: 6px 6px 0 0;
	background: #f3f3f3;
	transition: border-color 0.2s ease;
}

.home .cat-thumb-title-posts.km-news .post-thumbnail a {
	display: block;
	margin: 0 !important;
	line-height: 0;
}

.home .cat-thumb-title-posts.km-news .post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: unset;
	transition: opacity 0.25s ease;
}

.home .cat-thumb-title-posts.km-news li:hover .post-thumbnail {
	border-color: var(--km-amber);
}

.home .cat-thumb-title-posts.km-news li:hover .post-thumbnail img {
	opacity: 0.92;
	transform: none;
}

.home .cat-thumb-title-posts.km-news .post-thumbnail .mask {
	display: none !important;
}

.home .cat-thumb-title-posts.km-news .post-excerpt {
	display: block;
	padding: 14px 14px 16px;
	text-align: left;
	border: 1px solid var(--km-line);
	border-top: none;
	border-radius: 0 0 6px 6px;
	transition: border-color 0.2s ease;
}

.home .cat-thumb-title-posts.km-news li:hover .post-excerpt {
	border-color: var(--km-amber);
}

.home .cat-thumb-title-posts.km-news .post-meta {
	margin: 0 0 8px !important;
	font-size: 12px;
	color: var(--km-muted) !important;
}

.home .cat-thumb-title-posts.km-news .post-meta .date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	opacity: 1 !important;
}

.home .cat-thumb-title-posts.km-news .post-meta .date i {
	margin: 0;
	color: var(--km-amber);
}

.home .cat-thumb-title-posts.km-news ul.thumb-title-list li h3 {
	margin: 0 0 8px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	white-space: normal !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.home .cat-thumb-title-posts.km-news ul.thumb-title-list li h3 a,
.home .cat-thumb-title-posts.km-news ul.thumb-title-list li h3 a:link,
.home .cat-thumb-title-posts.km-news ul.thumb-title-list li h3 a:visited {
	color: var(--km-ink) !important;
	text-decoration: none !important;
}

.home .cat-thumb-title-posts.km-news ul.thumb-title-list li h3 a:hover {
	color: #111 !important;
}

.home .cat-thumb-title-posts.km-news .excerpt-content {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--km-muted);
	opacity: 1 !important;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.home .cat-thumb-title-posts.km-news .link-read-more {
	margin-top: 4px !important;
	font-weight: 600;
	text-decoration: none !important;
}

.home .cat-thumb-title-posts.km-news .link-read-more a,
.home .cat-thumb-title-posts.km-news .link-read-more a:link,
.home .cat-thumb-title-posts.km-news .link-read-more a:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: none;
	background: none;
	color: var(--km-ink) !important;
	text-decoration: none !important;
	letter-spacing: 0.04em;
	text-transform: none;
	font-size: 13px;
}

.home .cat-thumb-title-posts.km-news .link-read-more a:hover {
	color: var(--km-amber) !important;
	background: none;
}

.home .cat-thumb-title-posts.km-news .link-read-more i {
	margin-left: 0 !important;
	color: var(--km-amber);
}

/* ---------- ABOUT US（左右分栏比例） ---------- */
.home #wewe-9 .section-content.km-about-layout {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 40px 48px;
	align-items: center;
	max-width: none;
	margin: 0;
	text-align: left;
	color: var(--km-muted);
	font-size: 15px;
	line-height: 1.8;
}

.home #wewe-9 .km-about-media {
	margin: 0;
	min-width: 0;
}

.home #wewe-9 .km-about-media > p {
	margin: 0 !important;
}

.home #wewe-9 .km-about-media img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	object-position: 72% center;
	border-radius: 8px;
	margin: 0 !important;
	display: block;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.home #wewe-9 .km-about-copy {
	min-width: 0;
	padding: 8px 0 8px 8px;
}

.home #wewe-9 .km-about-eyebrow {
	margin: 0 0 10px !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--km-amber) !important;
}

.home #wewe-9 .km-about-title {
	margin: 0 0 16px !important;
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.02em;
	color: var(--km-ink);
}

.home #wewe-9 .km-about-text {
	margin: 0 0 28px !important;
	font-size: 15px;
	line-height: 1.75;
	color: var(--km-muted);
}

.home #wewe-9 .km-about-actions {
	margin: 0 !important;
}

.home #wewe-9 .section-content .btn,
.home #wewe-9 .section-content .btn:link,
.home #wewe-9 .section-content .btn:visited {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	padding: 12px 26px !important;
	background: var(--km-amber) !important;
	color: var(--km-ink) !important;
	border: none !important;
	border-radius: 2px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.home #wewe-9 .section-content .btn:hover {
	background: #ffd05a !important;
	transform: translateY(-1px);
}

@media only screen and (max-width: 900px) {
	.home #wewe-9 .section-content.km-about-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.home #wewe-9 .km-about-copy {
		padding: 0;
		text-align: center;
	}

	.home #wewe-9 .km-about-media img {
		max-height: 360px;
	}
}

/* ---------- CLIENTS ---------- */
.home #wewe-13 .section-content {
	position: relative;
	padding: 8px 40px 28px;
}

.home #wewe-13 .gallery-item {
	margin: 0 !important;
	padding: 8px !important;
	box-sizing: border-box;
}

.home #wewe-13 .gallery-icon {
	display: block;
	position: relative;
	width: 100%;
	height: 142px;
	min-height: 142px;
	padding: 0 !important;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--km-line);
	border-radius: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home #wewe-13 .gallery-item:hover .gallery-icon {
	border-color: var(--km-amber);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.home #wewe-13 .gallery-icon img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: center;
	display: block;
	filter: none;
	opacity: 1;
	transition: transform 0.3s ease;
}

.home #wewe-13 .gallery-item:hover .gallery-icon img {
	filter: none;
	opacity: 1;
	transform: scale(1.03);
}

.home #wewe-13 .gallery-caption {
	display: none !important;
}

.home #wewe-13 .pop-swiper-pagination {
	bottom: 0 !important;
}

.home #wewe-13 .swiper-pagination-bullet {
	background: #cfcfcf !important;
	opacity: 1 !important;
}

.home #wewe-13 .swiper-pagination-bullet-active {
	background: var(--km-amber) !important;
}

.home #wewe-13 .pop-swiper-button-prev,
.home #wewe-13 .pop-swiper-button-next {
	width: 36px !important;
	height: 36px !important;
	margin-top: -18px !important;
	background: #fff !important;
	border: 1px solid var(--km-line);
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.home #wewe-13 .pop-swiper-button-prev:before,
.home #wewe-13 .pop-swiper-button-next:before {
	color: var(--km-ink) !important;
	font-size: 14px !important;
}

.home #wewe-13 .pop-swiper-button-prev:hover,
.home #wewe-13 .pop-swiper-button-next:hover {
	border-color: var(--km-amber);
	background: var(--km-amber-soft) !important;
}

/* ---------- WHERE TO FIND US ---------- */
.home #wewe-14 .section-content {
	max-width: var(--km-max);
	margin: 0 auto;
}

.home #wewe-14 .section-content.gallery-container {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	justify-content: space-between;
	gap: 16px;
	margin: 0 !important;
	overflow: visible !important;
	clear: both;
}

.home #wewe-14 .section-content .item-content {
	float: none !important;
	clear: none !important;
	flex: 1 1 0;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.home #wewe-14 .section-content .item-cover {
	margin: 0 !important;
	overflow: hidden;
	border-radius: 8px;
	background: #f3f3f3;
	aspect-ratio: 4 / 3;
}

.home #wewe-14 .section-content .item-cover .attachment,
.home #wewe-14 .section-content .item-cover .thumbnail,
.home #wewe-14 .section-content .item-cover .centered {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	position: static !important;
}

.home #wewe-14 .section-content img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	border-radius: 0;
	box-shadow: none;
}

.home #wewe-14 .section-content iframe {
	width: 100%;
	min-height: 360px;
	border: 0;
	border-radius: 8px;
	display: block;
}

.home #wewe-14 .section-content p,
.home #wewe-14 .section-content div {
	color: var(--km-muted);
	line-height: 1.75;
}

@media only screen and (max-width: 640px) {
	.home #wewe-14 .section-content.gallery-container {
		flex-wrap: wrap !important;
	}

	.home #wewe-14 .section-content .item-content {
		flex: 1 1 100%;
	}
}

/* ---------- 响应式 ---------- */
@media only screen and (max-width: 1200px) {
	.home .gallery-products .gallery-container .item-content {
		width: 33.333% !important;
	}
}

@media only screen and (max-width: 900px) {
	.home .container > .section-item {
		padding: 48px 0 40px;
	}

	.home .gallery-products .gallery-container .item-content {
		width: 50% !important;
	}

	.home .cat-thumb-title-posts.km-news ul.thumb-title-list li {
		width: 48% !important;
		padding: 0 1% !important;
	}

	.home .cat-thumb-title-posts.km-news ul.thumb-title-list li:nth-child(3n+1) {
		clear: none !important;
	}

	.home .cat-thumb-title-posts.km-news ul.thumb-title-list li:nth-child(2n+1) {
		clear: both !important;
	}

	.home .section-item .heading-title .link-more {
		position: static;
		transform: none;
		margin-top: 4px;
	}

	.home .section-item .heading-title {
		flex-direction: column;
		padding-bottom: 16px;
	}

	.home #wewe-13 .section-content {
		padding: 0 8px 24px;
	}
}

@media only screen and (max-width: 640px) {
	.home .container > .section-item .inner {
		padding: 0 16px;
	}

	.home .gallery-products .gallery-container {
		margin: 0 -6px !important;
	}

	.home .gallery-products .gallery-container .item-content {
		padding: 0 6px !important;
		margin-bottom: 12px !important;
	}

	.home .cat-thumb-title-posts.km-news ul.thumb-title-list li {
		width: 100% !important;
		padding: 0 !important;
		float: none !important;
	}

	.home .section-item .heading-title b,
	.home .section-item .heading-title b a {
		letter-spacing: 0.1em;
	}
}
