/* ============================================================
   酒钢产品中心 — 前端样式
   设计基调：企业蓝 + 白 + 工业灰，红色点缀
   全部选择器都限制在 .jg-wrap 内，避免污染主题与 Elementor 全局样式
   ============================================================ */

/* ---------- 设计变量（只作用于 .jg-wrap 内部，含短码场景） ---------- */
.jg-wrap {
	--jg-brand: #0c5eb0;
	--jg-brand-deep: #083c75;
	--jg-brand-ink: #062c56;
	--jg-brand-soft: #eaf2fb;
	--jg-accent: #d8232a;
	--jg-ink: #1c2733;
	--jg-ink-2: #4d5b6a;
	--jg-ink-3: #8a97a6;
	--jg-line: #e3e9f0;
	--jg-bg: #ffffff;
	--jg-bg-soft: #f5f8fb;
	--jg-shadow-sm: 0 2px 10px rgba(8, 44, 86, .06);
	--jg-shadow-md: 0 12px 32px rgba(8, 44, 86, .12);
	--jg-ease-out: cubic-bezier(.16, 1, .3, 1);
	--jg-maxw: 1520px;
}

/* ---------- 让插件内容通栏：清掉主题给内容区加的留白 ---------- */
html body.jgp-products-page #content.site-content,
html body.jgp-products-page .site-content,
html body.jgp-products-page .site-main,
html body.jgp-products-page #primary,
html body.jgp-products-page .page-content {
	padding: 0;
	margin: 0;
	max-width: none;
	width: auto;
}

/* ---------- 作用域内基础重置 ---------- */
.jg-wrap {
	font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
	color: var(--jg-ink);
	background: var(--jg-bg);
	line-height: 1.7;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

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

.jg-wrap a {
	color: inherit;
	text-decoration: none;
}

.jg-wrap ul,
.jg-wrap ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jg-wrap button {
	font-family: inherit;
	cursor: pointer;
}

.jg-wrap h1,
.jg-wrap h2,
.jg-wrap h3,
.jg-wrap h4,
.jg-wrap h5,
.jg-wrap p {
	margin: 0;
	font-weight: inherit;
}

.jg-wrap h1 { font-weight: 700; }
.jg-wrap h2 { font-weight: 700; }
.jg-wrap h3 { font-weight: 600; }

/* ---------- 容器 ---------- */
.jg-wrap .jg-container {
	max-width: var(--jg-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- 内页 Banner ---------- */
.jg-wrap .jg-page-banner {
	position: relative;
	height: 320px;
	overflow: hidden;
	display: flex;
	align-items: center;
	background: var(--jg-brand-ink);
}

.jg-wrap .jg-page-banner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.jg-wrap .jg-page-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(6, 44, 86, .85), rgba(6, 44, 86, .45));
	pointer-events: none;
}

.jg-wrap .jg-page-banner .jg-container {
	position: relative;
	z-index: 2;
	color: #fff;
}

.jg-wrap .jg-page-banner .en {
	letter-spacing: 4px;
	font-size: 13px;
	color: rgba(255, 255, 255, .7);
	text-transform: uppercase;
}

.jg-wrap .jg-page-banner h1 {
	font-size: 40px;
	letter-spacing: 6px;
	font-weight: 700;
	margin-top: 8px;
	color: #fff;
	line-height: 1.3;
}

/* ---------- 面包屑 ---------- */
.jg-wrap .jg-breadcrumb {
	background: #fff;
	border-bottom: 1px solid var(--jg-line);
	font-size: 13.5px;
	color: var(--jg-ink-3);
}

.jg-wrap .jg-breadcrumb .jg-container {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	flex-wrap: wrap;
	padding-top: 6px;
	padding-bottom: 6px;
}

.jg-wrap .jg-breadcrumb a:hover { color: var(--jg-brand); }
.jg-wrap .jg-breadcrumb .sep { transform: scale(.8); }
.jg-wrap .jg-breadcrumb .current { color: var(--jg-ink); }

/* ---------- 区块 ---------- */
.jg-wrap .jg-section { padding: 0px 0; }
.jg-wrap .jg-section--soft { background: var(--jg-bg-soft); }
.jg-wrap .jg-section--tight { padding-top: 56px; }
.jg-wrap .jg-section--related { padding: 64px 0; }

.jg-wrap .jg-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 44px;
	gap: 24px;
}

.jg-wrap .jg-sec-title .en {
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--jg-ink-3);
	margin-bottom: 6px;
}

.jg-wrap .jg-sec-title h2 {
	font-size: 34px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--jg-brand-deep);
	line-height: 1.25;
	position: relative;
	padding-left: 18px;
}

.jg-wrap .jg-sec-title h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12%;
	width: 6px;
	height: 76%;
	background: linear-gradient(180deg, var(--jg-brand), var(--jg-accent));
	border-radius: 3px;
}

.jg-wrap .jg-link-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--jg-brand);
	font-size: 15px;
	white-space: nowrap;
	transition: gap .25s var(--jg-ease-out);
}

.jg-wrap .jg-link-more:hover { gap: 12px; }

.jg-wrap .jg-link-more svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
}

/* ---------- 按钮 ---------- */
.jg-wrap .jg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 32px;
	font-size: 15px;
	line-height: 1.4;
	border-radius: 4px;
	border: 1px solid transparent;
	text-decoration: none;
	transition: transform .2s var(--jg-ease-out), box-shadow .25s, background .25s, color .25s, border-color .25s;
}

.jg-wrap .jg-btn:active { transform: scale(.98); }

.jg-wrap .jg-btn--primary {
	background: var(--jg-brand);
	color: #fff;
}

.jg-wrap .jg-btn--primary:hover {
	background: var(--jg-brand-deep);
	color: #fff;
	box-shadow: 0 8px 20px rgba(12, 94, 176, .3);
}

.jg-wrap .jg-btn--outline {
	border-color: var(--jg-brand);
	color: var(--jg-brand);
	background: #fff;
}

.jg-wrap .jg-btn--outline:hover {
	background: var(--jg-brand);
	color: #fff;
}

/* ---------- 结果条 / 排序 ---------- */
.jg-wrap .jg-result-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 22px;
	font-size: 14px;
	color: var(--jg-ink-3);
}

.jg-wrap .jg-result-bar b { color: var(--jg-brand); }

.jg-wrap .jg-sort {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.jg-wrap .jg-sort__label {
	font-size: 14px;
	color: var(--jg-ink-3);
	white-space: nowrap;
}

.jg-wrap .jg-sort__select {
	font-family: inherit;
	font-size: 14px;
	color: var(--jg-ink);
	background: #fff;
	border: 1px solid var(--jg-line);
	border-radius: 4px;
	padding: 6px 10px;
	line-height: 1.5;
	max-width: 160px;
	cursor: pointer;
}

.jg-wrap .jg-sort__select:focus {
	outline: none;
	border-color: var(--jg-brand);
	box-shadow: 0 0 0 3px rgba(12, 94, 176, .12);
}

.jg-wrap .jg-sort__go {
	display: none;
}

/* ---------- 产品网格 ---------- */
.jg-wrap .jg-prod-grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 26px;
}

.jg-wrap .jg-prod-card {
	background: #fff;
	border: 1px solid var(--jg-line);
	border-radius: 8px;
	overflow: hidden;
	display: block;
	transition: transform .35s var(--jg-ease-out), box-shadow .35s, border-color .35s;
}

.jg-wrap .jg-prod-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--jg-shadow-md);
	border-color: transparent;
}

.jg-wrap .jg-prod-card .thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--jg-bg-soft);
}

.jg-wrap .jg-prod-card .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--jg-ease-out);
}

.jg-wrap .jg-prod-card:hover .thumb img { transform: scale(1.07); }

.jg-wrap .jg-prod-card .body { padding: 20px 22px 24px; }

.jg-wrap .jg-prod-card .cat {
	font-size: 12px;
	color: var(--jg-brand);
	background: var(--jg-brand-soft);
	border-radius: 3px;
	padding: 3px 10px;
	display: inline-block;
	letter-spacing: 1px;
}

.jg-wrap .jg-prod-card h3 {
	font-size: 18px;
	margin: 12px 0 6px;
	line-height: 1.5;
	color: var(--jg-ink);
	transition: color .25s;
}

.jg-wrap .jg-prod-card:hover h3 { color: var(--jg-brand); }

.jg-wrap .jg-prod-card p {
	font-size: 13.5px;
	color: var(--jg-ink-3);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jg-wrap .jg-prod-card .foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--jg-line);
	font-size: 13px;
	color: var(--jg-ink-2);
}

.jg-wrap .jg-prod-card .foot > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jg-wrap .jg-prod-card .foot .jg-link-more {
	font-size: 13px;
	flex: none;
}

/* ---------- 分页 ---------- */
.jg-wrap .jg-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 48px;
}

.jg-wrap .jg-page-btn {
	min-width: 40px;
	height: 40px;
	border: 1px solid var(--jg-line);
	background: #fff;
	border-radius: 4px;
	font-size: 14.5px;
	color: var(--jg-ink-2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	line-height: 1;
	text-decoration: none;
	transition: border-color .2s, color .2s, background .2s;
}

.jg-wrap a.jg-page-btn:hover {
	border-color: var(--jg-brand);
	color: var(--jg-brand);
}

.jg-wrap .jg-page-btn.is-active {
	background: var(--jg-brand);
	border-color: var(--jg-brand);
	color: #fff;
	cursor: default;
}

/* ---------- 空状态 ---------- */
.jg-wrap .jg-empty {
	text-align: center;
	padding: 70px 20px;
	background: var(--jg-bg-soft);
	border: 1px dashed var(--jg-line);
	border-radius: 8px;
}

.jg-wrap .jg-empty p {
	color: var(--jg-ink-3);
	margin-bottom: 22px;
	font-size: 15px;
}

/* ---------- 产品详情：上半部分 ---------- */
.jg-wrap .jg-pd-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}

.jg-wrap .jg-pd-gallery .main-img {
	border: 1px solid var(--jg-line);
	border-radius: 8px;
	overflow: hidden;
	background: var(--jg-bg-soft);
	aspect-ratio: 4 / 3;
}

.jg-wrap .jg-pd-gallery .main-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jg-wrap .jg-pd-thumbs {
	display: flex;
	gap: 12px;
	margin-top: 14px;
	flex-wrap: wrap;
}

.jg-wrap .jg-pd-thumbs button {
	width: 88px;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 2px solid var(--jg-line);
	border-radius: 6px;
	overflow: hidden;
	background: none;
	transition: border-color .25s, transform .25s var(--jg-ease-out);
}

.jg-wrap .jg-pd-thumbs button img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jg-wrap .jg-pd-thumbs button:hover { transform: translateY(-2px); }
.jg-wrap .jg-pd-thumbs button.is-active { border-color: var(--jg-brand); }

.jg-wrap .jg-pd-info h1 {
	font-size: 30px;
	letter-spacing: 1px;
	line-height: 1.4;
	color: var(--jg-ink);
}

.jg-wrap .jg-pd-info .sub {
	color: var(--jg-ink-3);
	margin: 10px 0 24px;
	font-size: 15px;
}

.jg-wrap .jg-pd-specs {
	border: 1px solid var(--jg-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.jg-wrap .jg-pd-specs .row {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	font-size: 14.5px;
}

.jg-wrap .jg-pd-specs .row + .row { border-top: 1px solid var(--jg-line); }

.jg-wrap .jg-pd-specs .k {
	background: var(--jg-bg-soft);
	color: var(--jg-ink-3);
	padding: 13px 18px;
}

.jg-wrap .jg-pd-specs .v {
	padding: 13px 18px;
	color: var(--jg-ink);
	word-break: break-word;
}

.jg-wrap .jg-pd-info .jg-btn-row {
	display: flex;
	gap: 14px;
	margin-top: 30px;
	flex-wrap: wrap;
}

/* ---------- 产品详情：选项卡 ---------- */
.jg-wrap .jg-pd-tabs { margin-top: 64px; }

.jg-wrap .jg-pd-tabs .bar {
	display: flex;
	border-bottom: 2px solid var(--jg-line);
	flex-wrap: wrap;
}

.jg-wrap .jg-pd-tabs .bar button {
	background: none;
	border: 0;
	padding: 14px 30px;
	font-size: 16.5px;
	color: var(--jg-ink-2);
	position: relative;
	transition: color .25s;
	line-height: 1.5;
}

.jg-wrap .jg-pd-tabs .bar button::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: var(--jg-brand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--jg-ease-out);
}

.jg-wrap .jg-pd-tabs .bar button.is-active {
	color: var(--jg-brand);
	font-weight: 600;
}

.jg-wrap .jg-pd-tabs .bar button.is-active::after { transform: scaleX(1); }

.jg-wrap .jg-pd-panel {
	padding: 34px 6px;
	display: none;
}

.jg-wrap .jg-pd-panel.is-active {
	display: block;
	animation: jg-fade-up .5s var(--jg-ease-out);
}

@keyframes jg-fade-up {
	from { opacity: 0; transform: translateY(14px); }
}

.jg-wrap .jg-pd-panel > p {
	color: var(--jg-ink-2);
	margin-bottom: 16px;
	text-align: justify;
	font-size: 16px;
}

.jg-wrap .jg-pd-panel h2,
.jg-wrap .jg-pd-panel h3,
.jg-wrap .jg-pd-panel h4 {
	color: var(--jg-brand-deep);
	margin: 26px 0 12px;
	font-size: 20px;
	line-height: 1.5;
	font-weight: 700;
}

.jg-wrap .jg-pd-panel ul,
.jg-wrap .jg-pd-panel ol {
	list-style: disc;
	padding-left: 22px;
	margin-bottom: 16px;
	color: var(--jg-ink-2);
}

.jg-wrap .jg-pd-panel img { border-radius: 6px; margin: 18px 0; }
.jg-wrap .jg-pd-panel a { color: var(--jg-brand); text-decoration: underline; }
.jg-wrap .jg-pd-panel blockquote {
	border-left: 4px solid var(--jg-brand);
	background: var(--jg-brand-soft);
	padding: 16px 22px;
	margin: 22px 0;
	border-radius: 0 6px 6px 0;
	color: var(--jg-brand-deep);
}

/* 规格表 */
.jg-wrap .jg-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
	background: #fff;
}

.jg-wrap .jg-spec-table th,
.jg-wrap .jg-spec-table td {
	border: 1px solid var(--jg-line);
	padding: 12px 16px;
	text-align: left;
	line-height: 1.6;
}

.jg-wrap .jg-spec-table th {
	background: var(--jg-brand-soft);
	color: var(--jg-brand-deep);
	font-weight: 600;
	white-space: nowrap;
}

.jg-wrap .jg-spec-table tbody tr:hover td { background: #fafcfe; }

.jg-wrap .jg-note {
	margin-top: 14px;
	font-size: 13px;
	color: var(--jg-ink-3);
}

/* 相关产品 */
.jg-wrap .jg-rel-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

/* ---------- 滚动揭示 ----------
   注意：只有 html 上带了 jgp-js（JS 已就绪）才隐藏元素，
   万一脚本被拦截 / 加载失败，内容依然完整可见。 */
html.jgp-js .jg-wrap .jg-reveal {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity .8s var(--jg-ease-out), transform .8s var(--jg-ease-out);
	transition-delay: var(--d, 0s);
}

html.jgp-js .jg-wrap .jg-reveal.is-in-view {
	opacity: 1;
	transform: none;
}

html.jgp-js .jg-wrap .jg-reveal--left { transform: translateX(-40px); }
html.jgp-js .jg-wrap .jg-reveal--right { transform: translateX(40px); }

html.jgp-js .jg-wrap .jg-reveal--left.is-in-view,
html.jgp-js .jg-wrap .jg-reveal--right.is-in-view {
	transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
	.jg-wrap .jg-pd-top { gap: 40px; }
}

@media (max-width: 1080px) {
	.jg-wrap .jg-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jg-wrap .jg-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jg-wrap .jg-pd-top { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 860px) {
	.jg-wrap .jg-section { padding: 60px 0; }
	.jg-wrap .jg-section--tight { padding-top: 40px; }
	.jg-wrap .jg-page-banner { height: 220px !important; }
	.jg-wrap .jg-page-banner h1 { font-size: 28px; letter-spacing: 3px; }
	.jg-wrap .jg-sec-title h2 { font-size: 26px; }
	.jg-wrap .jg-pd-info h1 { font-size: 23px; }
	.jg-wrap .jg-pd-tabs { margin-top: 44px; }
	.jg-wrap .jg-pd-tabs .bar button { padding: 12px 18px; font-size: 15.5px; }
	.jg-wrap .jg-pd-panel { padding: 24px 0; }
	.jg-wrap .jg-spec-table { font-size: 13.5px; }
	.jg-wrap .jg-spec-table th,
	.jg-wrap .jg-spec-table td { padding: 10px 12px; }
	.jg-wrap .jg-spec-table { display: block; overflow-x: auto; white-space: nowrap; }
	.jg-wrap .jg-spec-table tbody { white-space: normal; }
	.jg-wrap .jg-pd-specs .row { grid-template-columns: 104px minmax(0, 1fr); font-size: 14px; }
	.jg-wrap .jg-pd-specs .k,
	.jg-wrap .jg-pd-specs .v { padding: 11px 13px; }
}

@media (max-width: 680px) {
	.jg-wrap .jg-container { padding: 0 18px; }
	.jg-wrap .jg-prod-grid,
	.jg-wrap .jg-rel-grid { grid-template-columns: minmax(0, 1fr); }
	.jg-wrap .jg-pd-thumbs button { width: 74px; }
	.jg-wrap .jg-btn { padding: 12px 24px; }
	.jg-wrap .jg-result-bar { align-items: flex-start; }
	.jg-wrap .jg-sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
	html.jgp-js .jg-wrap .jg-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.jg-wrap *,
	.jg-wrap *::before,
	.jg-wrap *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.jg-wrap .jg-prod-card:hover { transform: none; }
}

/* ---------- 打印 ---------- */
@media print {
	.jg-wrap .jg-page-banner,
	.jg-wrap .jg-breadcrumb,
	.jg-wrap .jg-pagination,
	.jg-wrap .jg-sort,
	.jg-wrap .jg-btn-row,
	.jg-wrap .jg-section--related { display: none !important; }
	.jg-wrap .jg-reveal { opacity: 1 !important; transform: none !important; }
	.jg-wrap .jg-pd-top { grid-template-columns: 1fr 1fr; }
}
