﻿/**
 * 产品详情页：左侧 Categories + Recommended Products 栏 + 两栏布局美化，
 * 以及 woocommerce-tabs 区块美化、Send Inquiry 蓝色按钮。
 * 复用分类归档页 category-sidebar.css 的 #qng-sidebar-categories 等样式。
 */

/* ===== 去掉产品区块外层 section 的蓝色背景色（覆盖 Elementor post-10581.css） ===== */
.elementor-10581 .elementor-element.elementor-element-57d18a57:not(.elementor-motion-effects-element-type-background),
.elementor-10581 .elementor-element.elementor-element-57d18a57 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-color: transparent !important;
}

/* ===== 产品两栏布局 与 相关产品区块 间距 25px ===== */
.swjs-single-layout {
	margin-bottom: 25px;
}
section.related.products.is-width-constrained {
	margin-top: 25px;
	padding-top: 0;
}

/* ===== Related products 标题下划线美化 ===== */
section.related.products.is-width-constrained .ct-module-title,
.related.products .ct-module-title {
	display: inline-block;
	font-size: 22px;
	font-weight: 700;
	color: #15233a;
	padding-bottom: 8px;
	border-bottom: 3px solid #0092FF;
	margin-bottom: 20px;
}

/* ===== 产品页主体容器对齐头部导航宽度 =====
   产品页由 Elementor 承载，外层为 .ct-container-full（全宽）。
   这里把产品主体容器约束为与头部导航相同的 1200px 居中宽度。 */

/* 去掉产品页 hero 区最小高度 */
[data-prefix="product"] .hero-section[data-type="type-2"] {
	--min-height: auto;
}

div.woocommerce-product-gallery {
	border: 1px solid #e6edf5;
}

/* 去掉主题默认的 tabs 面板/容器上间距与外框 */
.woocommerce div.product div.woocommerce-tabs div.woocommerce-Tabs-panel.panel {
	padding-top: 1px !important;
}

/* wcTabs 不再隐藏（内含 Elementor 面板），去除外框间距 */
.product > .woocommerce-tabs {
	padding-top: 0 !important;
	clear: none;
	border: none !important;
	background: transparent !important;
}

/* #tab-description 内含 Elementor nested-tabs 面板，去除外框样式 */
#tab-description,
#tab-description article,
#tab-description article > div {
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	background: transparent !important;
	min-height: 0 !important;
}

/* .tabs.wc-tabs（WC 原生标签栏）保持隐藏 */
.product > .woocommerce-tabs > .tabs.wc-tabs {
	display: none !important;
}
body.single-product .ct-container-full[data-content="normal"] {
	max-width: 1350px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
	padding-top: 25px !important;
}

/* ===== 两栏布局：左栏(分类树+推荐) / 右栏(产品内容) =====
   主题自带 .ct-sidebar 已在产品页关闭（sidebar-position:none），
   主体已约束为与头部同宽，这里铺满容器即可。 */
.swjs-single-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 30px;
	box-sizing: border-box;
}

.swjs-single-layout .swjs-single-sidebar {
	flex: 0 0 24%;
	max-width: 24%;
	min-width: 240px;
}

.swjs-single-layout .swjs-single-main {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 992px) {
	.swjs-single-layout {
		flex-direction: column;
		gap: 20px;
	}
	.swjs-single-layout .swjs-single-sidebar,
	.swjs-single-layout .swjs-single-main {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

/* 让左侧栏与分类归档页视觉一致（复用 .left-cat / .left-pro 样式已在
   category-sidebar.css 中定义，这里仅补充产品页容器微调） */
.swjs-single-sidebar .swjs-archive-sidebar {
	margin: 0;
}

/* ===== woocommerce-tabs 容器（去掉外框/底色/阴影） ===== */
.swjs-single-main .woocommerce-tabs.wc-tabs-wrapper {
	margin: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

/* Tab 标题栏 */
.swjs-single-main .woocommerce-tabs .tabs.wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 14px 18px 0;
	border-bottom: 1px solid #eef2f7;
	background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs::before,
.swjs-single-main .woocommerce-tabs .tabs.wc-tabs::after {
	display: none !important;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li {
	position: relative;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 10px 10px 0 0;
	background: transparent;
	margin: 0;
	padding: 12px 20px;
	transition: background 0.2s ease, color 0.2s ease;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li a {
	display: block;
	color: #5a6472;
	font-weight: 600;
	font-size: 15px;
	padding: 0;
	line-height: 1.3;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li {
	background: #e6f3ff;
	border-color: #e6f3ff;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li a {
	color: #0092FF;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li:hover {
	background: #c96a15;
	border-color: #c96a15;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li:hover a {
	color: #fff;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li.active {
	background: #0092FF;
	border-color: #0092FF;
	border-bottom: 1px solid #0092FF;
	margin-bottom: -1px;
	box-shadow: none;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li.active a {
	color: #fff;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li.active:hover {
	background: #c96a15;
	border-color: #c96a15;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li.active:hover a {
	color: #fff;
}

.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li::before,
.swjs-single-main .woocommerce-tabs .tabs.wc-tabs li::after {
	display: none !important;
}

/* Tab 面板内容 */
.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel {
	padding: 26px 28px 30px;
	color: #4a5562;
	font-size: 15px;
	line-height: 1.85;
}

/* ===== 描述区块（#tab-description）套用 eeat 文字样式（无外框/无底色） ===== */
.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	margin-bottom: 22px;
	padding: 0;
	box-sizing: border-box;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description,
.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description p,
.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description li {
	color: #363636;
	font-size: 16px;
	line-height: 1.75;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: 0.01em;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description > p {
	margin: 0 0 1.1em;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description > p:last-child {
	margin-bottom: 0;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description h2,
.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description h3,
.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description h4 {
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
	color: #1a1a1a;
	line-height: 1.35;
	margin: 1.35em 0 0.55em;
	font-weight: 600;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description h2 {
	font-size: 1.35em;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description h3 {
	font-size: 1.2em;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description h4 {
	font-size: 1.08em;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	vertical-align: middle;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description ul,
.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description ol {
	margin: 0 0 1.1em;
	padding-left: 1.35em;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description li {
	margin: 0.35em 0;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description a {
	color: #e67e22;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description a:hover {
	color: #c96a15;
	border-bottom-color: rgba(230, 126, 34, 0.45);
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel--description blockquote {
	margin: 1em 0;
	padding: 12px 16px 12px 18px;
	border-left: 4px solid #e18f36;
	background: #f9fcff;
	color: #444;
	font-size: 0.96em;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel h2,
.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel h3 {
	color: #1a2b3d;
	font-weight: 700;
	margin: 0 0 14px;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel table {
	width: 100%;
	border-collapse: collapse;
	margin: 6px 0 18px;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel table th,
.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel table td {
	border: 1px solid #e6edf5;
	padding: 10px 14px;
	text-align: left;
}

.swjs-single-main .woocommerce-tabs .woocommerce-Tabs-panel table th {
	background: #f7fbff;
	color: #1a2b3d;
}

/* ===== Send Inquiry 蓝色按钮（位于 ct-product-divider 上方） ===== */
.swjs-send-inquiry-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 14px 28px;
	background: #86D2E9;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.3px;
	border: none;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(134, 210, 233, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	cursor: pointer;
}

.swjs-send-inquiry-btn::before {
	content: "\f232";
	font-family: "Font Awesome 5 Brands", "Font Awesome 5 Free";
	font-weight: 400;
	font-size: 18px;
	line-height: 1;
}

.swjs-send-inquiry-btn:hover {
	background: #FAD6DA;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(250, 214, 218, 0.38);
}

/* ===== 合并后的统一标签栏（Description Overview + Overview/Structure/... + Additional information） =====
    标签栏插入到 Elementor tabs 之前；面板保留在各自原始容器内以保证样式不丢失。 */
.swjs-unified-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: stretch;
}

.swjs-unified-tabs .swjs-utab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	border: 1px solid #e6f3ff;
	border-radius: 10px 10px 0 0;
	background: #e6f3ff;
	color: #0092FF;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.swjs-unified-tabs .swjs-utab-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
}

.swjs-unified-tabs .swjs-utab-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.swjs-unified-tabs .swjs-utab:hover {
	background: #c96a15;
	border-color: #c96a15;
	color: #fff;
}

.swjs-unified-tabs .swjs-utab.is-active {
	background: #86D2E9;
	border-color: #86D2E9;
	color: #fff;
}

.swjs-unified-tabs .swjs-utab.is-active:hover {
	background: #FAD6DA;
	border-color: #FAD6DA;
	color: #fff;
}

.swjs-unified-tabs .swjs-utab.is-active .swjs-utab-icon svg path,
.swjs-unified-tabs .swjs-utab.is-active .swjs-utab-icon svg [fill] {
	fill: #fff;
}

@media (max-width: 768px) {
	.swjs-unified-tabs .swjs-utab {
		padding: 8px 12px;
		font-size: 12px;
	}
}

/* ===== 产品详情主体区块与详情卡片间距 25px ===== */
.product-entry-wrapper {
	margin-bottom: 25px;
}

/* ===== 产品详情卡片（JS 生成的 .swjs-detail-card） ===== */
.swjs-detail-card {
	background: #fff;
	border: 1px solid #e6edf5;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(16, 155, 220, 0.07);
	padding: 28px 30px 32px;
	box-sizing: border-box;
	margin-bottom: 20px;
}

/* 标签栏与内容之间加分割线 */
.swjs-detail-card .swjs-unified-tabs {
	padding-bottom: 20px;
	margin-bottom: 4px;
	border-bottom: 1px solid #eef2f7;
}

/* Elementor nested-tabs 面板容器：去除内边距，避免卡片内留白过大 */
.swjs-detail-card .e-n-tabs-content > .e-con {
	padding: 16px 0 4px;
}

/* Structure / Reporting 标签内的 icon-box 条目美化 */
.swjs-detail-card .elementor-icon-box-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #f0f4f8;
}
.swjs-detail-card .elementor-icon-box-wrapper:last-child {
	border-bottom: none;
}
.swjs-detail-card .elementor-icon-box-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e6f3ff;
	border-radius: 12px;
	color: #0092FF;
}
.swjs-detail-card .elementor-icon-box-icon .elementor-icon {
	font-size: 22px;
	color: #0092FF;
	display: flex;
	align-items: center;
	justify-content: center;
}
.swjs-detail-card .elementor-icon-box-icon .elementor-icon svg {
	width: 24px;
	height: 24px;
	fill: #0092FF;
}
.swjs-detail-card .elementor-icon-box-content {
	flex: 1;
	min-width: 0;
}
.swjs-detail-card .elementor-icon-box-title {
	font-size: 16px !important;
	font-weight: 600;
	color: #15233a;
	margin: 0 0 4px !important;
	line-height: 1.4;
}
.swjs-detail-card .elementor-icon-box-description {
	font-size: 14px;
	color: #555b65;
	margin: 0 !important;
	line-height: 1.6;
}

/* ===== 彻底隐藏推荐产品卡片里的 add-to-cart 按钮区 ===== */
.ct-woo-card-actions {
	display: none !important;
}

/* ===== Description 产品详情描述：符合 Google SEO 的阅读排版 =====
   .swjs-unified-panels = JS 合并后的面板容器（Description/Structure/...）
   #tab-additional_information = WooCommerce 原生附加信息面板（未移动） */
.swjs-unified-panels,
#tab-additional_information {
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #33363b;
	font-size: 16px;
	line-height: 1.75;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* 标题层级：清晰、有节奏，利于 SEO 语义结构 */
.swjs-unified-panels h2, #tab-additional_information h2 {
	font-size: 1.5em;
	line-height: 1.3;
	font-weight: 700;
	color: #15233a;
	margin: 1.6em 0 0.6em;
	padding-bottom: 0.3em;
	border-bottom: 2px solid #eef2f7;
}
.swjs-unified-panels h2:first-child, #tab-additional_information h2:first-child { margin-top: 0; }

.swjs-unified-panels h3, #tab-additional_information h3 {
	font-size: 1.25em;
	line-height: 1.35;
	font-weight: 700;
	color: #1a2b3d;
	margin: 1.4em 0 0.5em;
}
.swjs-unified-panels h4, #tab-additional_information h4 {
	font-size: 1.1em;
	line-height: 1.4;
	font-weight: 600;
	color: #1a2b3d;
	margin: 1.2em 0 0.5em;
}

/* 段落：合适行高与段间距，首段略大作为导语 */
.swjs-unified-panels p, #tab-additional_information p {
	margin: 0 0 1.1em;
}
.swjs-unified-panels > p:first-of-type, #tab-additional_information > p:first-of-type,
.swjs-unified-panels > div > p:first-of-type, #tab-additional_information > div > p:first-of-type {
	font-size: 1.05em;
	color: #444a52;
}

/* 强调词 */
.swjs-unified-panels strong, #tab-additional_information strong,
.swjs-unified-panels b, #tab-additional_information b {
	color: #15233a;
	font-weight: 700;
}

/* 链接：可见、可点击，带下划线提示 */
.swjs-unified-panels a, #tab-additional_information a {
	color: #0092FF;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.swjs-unified-panels a:hover, #tab-additional_information a:hover {
	color: #c96a15;
}

/* 列表 */
.swjs-unified-panels ul, #tab-additional_information ul,
.swjs-unified-panels ol, #tab-additional_information ol {
	margin: 0 0 1.1em;
	padding-left: 1.4em;
}
.swjs-unified-panels li, #tab-additional_information li {
	margin: 0.4em 0;
}

/* 表格：清晰边框、表头浅底，便于抓取与阅读 */
.swjs-unified-panels table, #tab-additional_information table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.25em;
	font-size: 0.95em;
}
.swjs-unified-panels th, #tab-additional_information th,
.swjs-unified-panels td, #tab-additional_information td {
	border: 1px solid #e2e8f0;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}
.swjs-unified-panels th, #tab-additional_information th {
	background: #f4f9ff;
	font-weight: 600;
	color: #15233a;
}

/* 图片：响应式、居中、圆角 */
.swjs-unified-panels img, #tab-additional_information img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
	margin: 1em auto;
}

/* 引用块 */
.swjs-unified-panels blockquote, #tab-additional_information blockquote {
	margin: 1.2em 0;
	padding: 12px 18px;
	border-left: 4px solid #0092FF;
	background: #f4f9ff;
	color: #444;
	border-radius: 0 8px 8px 0;
}

/* 代码 */
.swjs-unified-panels code, #tab-additional_information code {
	background: #f1f4f8;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}




