/*
 * GikiCraft 内容区样式（从 xyx-factory 迁移）
 * 仅作用于首页与 English Home 模板，避免影响 shopway 的页头、页脚和商店。
 * body class: giki-content
 */

body.giki-content {
	--blue: #0056b3;
	--blue-dark: #003d80;
	--blue-light: #e8f2fc;
	--text: #333;
	--gray: #666;
	--line: #e5e5e5;
	--bg: #f7f9fc;
	color: var(--text);
	font-size: 15px;
	line-height: 1.7;
}

body.giki-content a {
	color: inherit;
	text-decoration: none;
}

body.giki-content img {
	max-width: 100%;
	display: block;
}

body.giki-content h1,
body.giki-content h2,
body.giki-content h3,
body.giki-content h4,
body.giki-content p {
	margin: 0;
}

body.giki-content .wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

body.giki-content .section {
	padding: 80px 0;
}

body.giki-content .section.bg {
	background: var(--bg);
}

body.giki-content .center {
	text-align: center;
}

/* HERO */
body.giki-content .hero-banner {
	position: relative;
	background: #0a3d7a;
	display: block;
	overflow: hidden;
}

/* Banner 自带标题，完整显示不裁切 */
body.giki-content .hero-banner img {
	position: relative;
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

body.giki-content .hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 30, 70, .28), rgba(0, 30, 70, 0) 45%);
}

body.giki-content .hero-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	color: #fff;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

body.giki-content .hero-content h1 {
	font-size: clamp(30px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.25;
	margin-bottom: 18px;
	letter-spacing: 1px;
}

body.giki-content .hero-content p {
	font-size: 17px;
	color: #dce9f7;
	margin-bottom: 30px;
}

/* 英文 Banner：完整显示、不叠加文字 */
body.giki-content .hero-banner.hero-en {
	display: block;
	min-height: 0;
	overflow: hidden;
}

body.giki-content .hero-banner.hero-en img {
	position: relative;
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

body.giki-content .hero-banner.hero-en .hero-overlay,
body.giki-content .hero-banner.hero-en .hero-content {
	display: none;
}

/* 按钮 */
body.giki-content .btn {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	padding: 12px 32px;
	border-radius: 3px;
	font-weight: 600;
	transition: .2s;
}

body.giki-content .btn:hover {
	background: var(--blue-dark);
	color: #fff;
}

body.giki-content .btn-outline {
	background: transparent;
	border: 1px solid #fff;
}

/* 通用标题 */
body.giki-content .section-title {
	text-align: center;
	margin-bottom: 50px;
}

body.giki-content .section-title h2 {
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
	color: #222;
}

body.giki-content .section-title .en {
	font-size: 13px;
	color: #bbb;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-top: 6px;
}

body.giki-content .section-title::after {
	content: "";
	display: block;
	width: 50px;
	height: 3px;
	background: var(--blue);
	margin: 18px auto 0;
}

/* 产品分类 */
body.giki-content .product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

body.giki-content .product-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	transition: .25s;
}

body.giki-content .product-card:hover {
	box-shadow: 0 12px 30px rgba(0, 80, 180, .13);
	transform: translateY(-4px);
	border-color: #b9d4f0;
}

body.giki-content .product-card img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	background: #f5f5f5;
}

body.giki-content .product-card .body {
	padding: 18px 16px;
}

body.giki-content .product-card h3 {
	font-size: 16px;
	font-weight: 700;
	color: #222;
	margin-bottom: 8px;
}

body.giki-content .product-card p {
	font-size: 13px;
	color: #888;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 62px;
}

body.giki-content .product-card .more {
	color: var(--blue);
	font-size: 13px;
	font-weight: 600;
	margin-top: 12px;
	display: inline-block;
}

/* 数字条 */
body.giki-content .stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
	color: #fff;
}

body.giki-content .stats .item {
	border-right: 1px solid rgba(255, 255, 255, .2);
	padding: 20px;
}

body.giki-content .stats .item:last-child {
	border: none;
}

body.giki-content .stats .num {
	font-size: 44px;
	font-weight: 800;
}

body.giki-content .stats .label {
	color: #c9dcf0;
	font-size: 14px;
	margin-top: 6px;
}

/* 数字横幅：两组相同内容无缝向左滚动 */
body.giki-content .giki-stats-band {
	overflow: hidden;
	background: linear-gradient(135deg, #0056b3, #003d80);
}

body.giki-content .giki-stats-track {
	display: flex;
	width: 200%;
	animation: giki-stats-marquee 28s linear infinite;
	will-change: transform;
}

body.giki-content .giki-stats-track > .stats {
	flex: 0 0 50%;
	width: 50%;
}

/* 滚动接缝处保留分割线（1 PC | TB4），并让循环首尾视觉一致 */
body.giki-content .giki-stats-track > .stats .item:last-child {
	border-right: 1px solid rgba(255, 255, 255, .2);
}

body.giki-content .giki-stats-band:hover .giki-stats-track {
	animation-play-state: paused;
}

@keyframes giki-stats-marquee {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* 解决方案 */
body.giki-content .solution-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

body.giki-content .solution-item {
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	transition: .25s;
}

body.giki-content .solution-item:hover {
	border-color: var(--blue);
	box-shadow: 0 8px 24px rgba(0, 80, 180, .1);
}

body.giki-content .solution-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

body.giki-content .solution-item .t {
	padding: 14px;
	text-align: center;
	font-weight: 600;
	font-size: 15px;
}

body.giki-content .solution-item .en {
	display: block;
	font-size: 11px;
	color: #aaa;
	font-weight: 400;
}

/* 图文介绍 */
body.giki-content .about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

body.giki-content .about-grid img {
	border-radius: 6px;
	width: 100%;
}

body.giki-content .about-text h3 {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 18px;
}

body.giki-content .about-text p {
	color: #666;
	margin-bottom: 14px;
	line-height: 1.9;
}

body.giki-content .about-text .btn {
	margin-top: 16px;
}

/* 核心优势 */
body.giki-content .advantage-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 50px;
}

body.giki-content .advantage {
	text-align: center;
	padding: 30px 20px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid var(--line);
}

body.giki-content .advantage .icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--blue-light);
	color: var(--blue);
	display: grid;
	place-items: center;
	font-size: 24px;
	margin: 0 auto 16px;
	font-weight: 700;
}

body.giki-content .advantage h4 {
	font-size: 17px;
	margin-bottom: 8px;
}

body.giki-content .advantage p {
	font-size: 13px;
	color: #888;
	line-height: 1.7;
}

/* 新闻 */
body.giki-content .news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

body.giki-content .news-card {
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
}

body.giki-content .news-card img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

body.giki-content .news-card .body {
	padding: 20px;
}

body.giki-content .news-card .date {
	color: #aaa;
	font-size: 12px;
}

body.giki-content .news-card h3 {
	font-size: 17px;
	margin: 8px 0;
	line-height: 1.5;
}

/* CTA */
body.giki-content .cta {
	background: linear-gradient(135deg, #0056b3, #003d80);
	color: #fff;
	text-align: center;
	padding: 70px 24px;
}

body.giki-content .cta h2 {
	font-size: 34px;
	font-weight: 800;
	margin-bottom: 12px;
}

body.giki-content .cta p {
	color: #d4e5f7;
	margin-bottom: 28px;
}

body.giki-content .cta .btn {
	background: #fff;
	color: var(--blue);
}

/* 英文页按钮区 */
body.giki-content .hero-button-row {
	text-align: center;
	padding: 22px 0 6px;
}

body.giki-content .hero-button-row .btn-outline {
	color: var(--blue);
	border-color: var(--blue);
}

/* 响应式 */
@media (max-width: 1000px) {
	body.giki-content .product-grid,
	body.giki-content .advantage-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	body.giki-content .solution-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	body.giki-content .about-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	body.giki-content .stats {
		grid-template-columns: repeat(2, 1fr);
	}

	body.giki-content .news-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	body.giki-content .product-grid,
	body.giki-content .advantage-grid,
	body.giki-content .solution-grid,
	body.giki-content .stats {
		grid-template-columns: 1fr;
	}

	body.giki-content .hero-content h1 {
		font-size: 28px;
	}
}
