/* Product detail / tabbed content — shared styles */
:root {
	--color-text: #1a1d26;
	--color-accent: #0b6ebd;
	--radius-lg: 14px;
	--radius-md: 10px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--transition: 0.22s ease;
}

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

html {
	height: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: var(--color-text);
	background: transparent;
	-webkit-font-smoothing: antialiased;
}

/* Tabbed product layout — no fill so the block blends into the host page */
main.product-page {
	background: transparent;
	width: min(100%, 920px);
	margin: 0 auto;
	padding: 0;
	max-width: 100%;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	display: flex;
	flex-wrap: wrap;
	border: none;
}

main.product-page input[name="tabs"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: -1px;
	clip: rect(0, 0, 0, 0);
}

main.product-page label[for^="tab"] {
	order: 1;
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 16px;
	color: #fff;
	background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
	cursor: pointer;
	transition: background var(--transition), color var(--transition), box-shadow var(--transition);
	border: none;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	user-select: none;
}

main.product-page label[for^="tab"]:last-of-type {
	border-right: none;
}

/* 顶栏上半部分圆角 */
main.product-page > label[for^="tab"]:first-of-type {
	border-top-left-radius: var(--radius-lg);
}

main.product-page > label[for^="tab"]:last-of-type {
	border-top-right-radius: var(--radius-lg);
}

main.product-page label[for^="tab"]:hover {
	background: linear-gradient(180deg, #7c8494 0%, #5c6370 100%);
}

main.product-page label[for^="tab"]:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: -2px;
	z-index: 1;
}

main.product-page input:checked + label {
	background: linear-gradient(180deg, var(--color-accent) 0%, #0958a8 100%);
	color: #fff;
	box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.25);
}

main.product-page section[id^="content"] {
	order: 2;
	flex: 1 1 100%;
	padding: 16px 0 24px;
	display: none;
	clear: both;
	animation: contentFadeIn 0.4s ease;
	min-width: 0;
	box-sizing: border-box;
}

main.product-page section#content3 {
	overflow: visible;
}

@keyframes contentFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4,
#tab5:checked ~ #content5,
#tab6:checked ~ #content6,
#tab7:checked ~ #content7 {
	display: block;
}

main.product-page p {
	font-size: 15px;
	line-height: 1.75;
	text-align: justify;
	margin: 0 0 1em;
}

main.product-page p:last-child {
	margin-bottom: 0;
}

.pb {
	font-size: 15px;
	font-weight: bold;
	line-height: 1.75;
	text-align: justify;
	color: #c00;
}

ol {
	font-size: 14px;
	line-height: 1.75;
	text-align: justify;
}

main.product-page ul.feature-list {
	font-size: 15px;
	line-height: 1.75;
	margin: 0 0 1em;
	padding-left: 1.35em;
}

main.product-page ul.feature-list li {
	margin-bottom: 0.35em;
	padding-left: 0.25em;
}

main.product-page ul.feature-list li::marker {
	color: var(--color-accent);
}

h1, h2, h3 {
	font-family: inherit;
	text-align: center;
	color: #c00;
}

main.product-page h4 {
	font-family: inherit;
	text-align: center;
	font-weight: 700;
	font-size: 1.15rem;
	margin: 1.25em 0 0.75em;
	color: #1e40af;
	letter-spacing: 0.02em;
}

.aligncenter {
	clear: both;
	display: block;
	margin: auto;
}

tr.changebg:hover {
	background-color: #f1fcff;
}

/* 文件页：简约列表，整行可点下载 */
.doc-file-list {
	margin: 0 0 1.25rem;
	padding: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.doc-file-row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 12px 16px;
	align-items: center;
	padding: 12px 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	text-decoration: none;
	color: var(--color-text);
	font-size: 15px;
	transition: background 0.15s ease;
	box-sizing: border-box;
}

.doc-file-row:hover {
	background: #f2fdff;
	color: var(--color-text);
	text-decoration: none;
}

.doc-file-row:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: -2px;
}

.doc-file-row__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.doc-file-row .doc-icon {
	height: 36px;
	width: auto;
	max-width: 40px;
	object-fit: contain;
}

.doc-file-row__name {
	font-weight: 600;
	min-width: 0;
	word-break: break-word;
}

.doc-file-row__date {
	font-size: 13px;
	color: #9ca3af;
	white-space: nowrap;
	text-align: right;
}

@media screen and (max-width: 560px) {
	.doc-file-row {
		grid-template-columns: 40px 1fr;
		grid-template-rows: auto auto;
		row-gap: 6px;
	}

	.doc-file-row__icon {
		grid-row: 1 / 3;
		align-self: center;
	}

	.doc-file-row__name {
		grid-column: 2;
		grid-row: 1;
	}

	.doc-file-row__date {
		grid-column: 2;
		grid-row: 2;
		text-align: left;
		justify-self: start;
	}
}

/* PDF viewer — inline preview, minimal chrome */
.pdf-embed {
	width: 100%;
	max-width: 900px;
	margin: 0.75rem auto 0;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: none;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.pdf-embed-frame {
	width: 100%;
	height: min(1100px, 82vh);
	min-height: 420px;
	border: 0;
	display: block;
	vertical-align: top;
}

/* 主要特点：<video> 与正文同宽，最高 480px，两侧留白填黑；全屏用控件自带按钮 */
.feature-video-wrap {
	width: 100%;
	max-width: 100%;
	margin: 0 auto 1.25rem;
	background: #000;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

.feature-video-wrap .feature-video {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 360px;
	height: auto;
	object-fit: contain;
}

/* Content imagery */
.figure-center {
	margin: 1.25rem auto;
	text-align: center;
	max-width: 100%;
}

.figure-center img {
	width: min(100%, 800px);
	height: auto;
	vertical-align: middle;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.figure-center img.imghover {
	cursor: zoom-in;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.figure-center img.imghover:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

.figure-center img.imghover:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 4px;
}

/* 全屏看图 image-viewer.js — #fullscreenViewer 在 body 末尾 */
#fullscreenViewer {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(51, 51, 51, 0.92);
	pointer-events: none;
	box-sizing: border-box;
}

#fullscreenViewer.active {
	display: flex;
	pointer-events: auto;
}

#fullscreenViewer:fullscreen,
#fullscreenViewer:-webkit-full-screen {
	width: 100%;
	height: 100%;
	background: rgb(51, 51, 51);
}

#fullscreenImage {
	display: block;
	position: relative;
	z-index: 1;
	max-width: 96vw;
	max-height: 92vh;
	max-height: 92dvh;
	width: auto;
	height: auto;
	object-fit: contain;
	transform-origin: center center;
	user-select: none;
	-webkit-user-drag: none;
	touch-action: none;
	cursor: grab;
}

#prevBtn,
#nextBtn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

#prevBtn {
	left: 16px;
}

#nextBtn {
	right: 16px;
}

#prevBtn:hover,
#nextBtn:hover {
	background: rgba(255, 255, 255, 0.22);
}

#closeBtn {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 4;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

#closeBtn:hover {
	background: rgba(255, 255, 255, 0.22);
}

a:link,
a:visited {
	color: var(--color-accent);
	font-weight: 600;
	text-decoration: none;
}

a:hover {
	color: #c00;
	text-decoration: underline;
}

main.product-page .doc-file-row:link,
main.product-page .doc-file-row:visited {
	color: var(--color-text);
}

main.product-page img:not(.rp-item):not(.doc-icon) {
	max-width: 100%;
	height: auto;
}

.download-link {
	display: inline-block;
	padding: 6px 12px;
	background: #337ab7;
	color: #fff !important;
	border-radius: 4px;
	margin: 0 3px;
	text-decoration: none !important;
	transition: background 0.3s;
}

.download-link:hover {
	background: #c00;
}

.brand-header {
	width: 100%;
	background-color: #000;
	padding: 20px 0;
	box-sizing: border-box;
}

.brand-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.brand-content {
	margin-bottom: 15px;
}

.brand-image {
	height: 60px;
	width: auto;
	vertical-align: middle;
	transition: transform 0.3s ease;
}

.brand-image:hover {
	transform: scale(1.02);
}

.brandp-content {
	color: #eee;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.6;
	max-width: 1200px;
	padding: 0;
	margin: 0;
	letter-spacing: 0.3px;
}

.rp-header {
	width: 100%;
	background-color: #333;
	padding: 12px 0;
	box-sizing: border-box;
	margin-top: 0;
}

.rp-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 0.3px;
}

/* Related products — responsive grid + card UI */
.rp-section-head {
	display: none;
}

.rp-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr));
	gap: 14px;
	padding: 4px 0 12px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
	align-items: stretch;
	min-width: 0;
}

.image-card {
	min-width: 0;
	text-align: center;
}

.image-card a {
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 14px 10px 16px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--radius-md);
	box-shadow: none;
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
	outline: none;
}

.image-card a:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	border-color: rgba(11, 110, 189, 0.35);
	background: #fff;
}

.image-card a:focus-visible {
	box-shadow: 0 0 0 3px rgba(11, 110, 189, 0.45);
	border-color: var(--color-accent);
}

.rp-item {
	width: 100%;
	max-width: 138px;
	aspect-ratio: 1;
	object-fit: cover;
	border: none;
	border-radius: 8px;
	transition: transform var(--transition);
	background: #fff;
}

.image-card a:hover .rp-item {
	transform: scale(1.03);
}

.image-caption {
	margin-top: 10px;
	width: 100%;
	max-width: 138px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	line-height: 1.35;
	word-break: break-word;
}

.image-card a:hover .image-caption {
	color: var(--color-accent);
}

@media screen and (max-width: 768px) {
	main.product-page {
		width: 100%;
		margin: 0 auto;
		border-radius: 0;
	}

	main.product-page label[for^="tab"] {
		font-size: 13px;
		padding: 12px 8px;
	}

	.pdf-embed-frame {
		height: min(90vh, 1100px);
		min-height: 360px;
	}

	.rp-container {
		grid-template-columns: repeat(auto-fill, minmax(min(112px, 100%), 1fr));
		gap: 10px;
	}
}
