/**
 * 产品列表页2样式
 * Industrial/Technical风格设计 - 侧边栏+产品卡片布局
 */

/* ==================== 顶部导航条 ==================== */
.product-header {
	background: linear-gradient(135deg, #0a1628 0%, var(--primary-color) 40%, #1e3a5f 100%);
	position: relative;
	overflow: hidden;
}

.product-header::before {
	content: '';
	position: absolute;
	top: -30%;
	right: -10%;
	width: 60%;
	height: 160%;
	background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.product-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--accent-color) 0%, var(--base-color) 25%, var(--accent-color) 50%, var(--base-color) 75%, var(--accent-color) 100%);
}

.product-header .decor-line {
	position: absolute;
	top: 50%;
	right: 15%;
	width: 120px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
	transform: rotate(-15deg);
}

.product-header-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0.5rem 0;
	position: relative;
	z-index: 1;
}

.product-header-nav .nav-item {
	position: relative;
}

.product-header-nav .nav-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 2.5rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	letter-spacing: 0.05em;
}

.product-header-nav .nav-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 40%;
	background: rgba(255, 255, 255, 0.1);
}

.product-header-nav .nav-item a::before {
	content: '';
	position: absolute;
	inset: 0.5rem;
	background: rgba(255, 255, 255, 0);
	border-radius: 0.5rem;
	transition: all 0.4s ease;
	z-index: -1;
}

.product-header-nav .nav-item a .nav-indicator {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 4px;
	background: var(--accent-color);
	border-radius: 2px 2px 0 0;
	transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-header-nav .nav-item a:hover,
.product-header-nav .nav-item.active a {
	color: #fff;
}

.product-header-nav .nav-item a:hover::before {
	background: rgba(255, 255, 255, 0.08);
}

.product-header-nav .nav-item.active a::before {
	background: rgba(255, 255, 255, 0.12);
}

.product-header-nav .nav-item a:hover .nav-indicator,
.product-header-nav .nav-item.active a .nav-indicator {
	width: 50%;
}

/* ==================== 页面布局 ==================== */
.ct {
	padding: 3.5rem var(--cbasta);
	max-width: 1400px;
	margin: 0 auto;
	gap: 2rem;
	align-items: flex-start;
}

.ct-box {
	width: 22%;
	min-width: 220px;
}

/* ==================== 左侧导航树 ==================== */
.channel-tree {
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	border-radius: 1.25rem;
	padding: 1.5rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.channel-tree::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--base-color), var(--accent-color), var(--base-color));
}

/* jQuery UI Accordion 样式覆盖 */
.ui-accordion .ui-accordion-content {
	padding: 0.5rem 5% 0.5rem 8% !important;
}

.channel .ui-accordion-header-icon.ui-icon {
	display: none;
}

.channel .ui-state-default,
.channel .ui-widget-content .ui-state-default {
	border: none;
	background: transparent;
	color: #5a6a7a;
	line-height: 3rem;
	height: 3rem;
	border-radius: 0.75rem;
	box-shadow: none !important;
	font-weight: 500;
	transition: all 0.3s ease;
}

.channel h2.ui-state-active,
.channel .ui-widget-header .ui-state-active,
.channel a.ui-button:active,
.channel .ui-button:active,
.channel .ui-button.ui-state-active:hover {
	background: rgba(44, 48, 129, 0.08) !important;
	color: var(--base-color) !important;
	border: none;
}

.channel h2.ui-state-active > a,
.channel h3.ui-state-active > a {
	color: var(--base-color) !important;
}

.channel .ui-widget-content {
	border: none;
	background: transparent;
}

.channel .ui-accordion-header {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.channel .ui-widget.ui-widget-content {
	border: none;
}

.channel h2.ui-accordion-header {
	font-size: 1.125rem;
	padding: 0 1rem;
	font-family: "Noto Sans SC", sans-serif;
	margin: 0.25rem 0 !important;
}

.channel h2.ui-accordion-header:hover {
	background: rgba(44, 48, 129, 0.05);
}

.channel h3 {
	font-size: 1rem;
	padding: 0 !important;
	font-weight: 400;
	margin: 0.15rem 0 !important;
}

.channel h3 a {
	font-size: 1rem;
	line-height: 2.25rem;
	position: relative;
	color: #6a7a8a;
	transition: color 0.3s ease;
}

.channel h3 a:hover {
	color: var(--base-color);
}

.channel h3 + .children {
	display: none;
	padding: 0 4% 0 8% !important;
}

/* 栏目层级样式 */
.channel.level-0 > h2 {
	margin: 0;
	background-color: transparent;
	cursor: pointer;
	position: relative;
	transition: all .3s ease;
}

.channel.level-1 > h3,
.channel.level-2 > h4 {
	margin: 0;
	cursor: pointer;
	position: relative;
	transition: all .3s ease;
}

.channel.level-0 > .children {
	padding-left: 0;
}

.channel .children {
	max-height: 2000px;
	transition: max-height .3s ease-in;
}

/* 展开/收起图标 */
.channel > h2::before,
.channel > h3::before,
.channel > h4::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #8a9aaa;
	border-bottom: 2px solid #8a9aaa;
	transform: rotate(-45deg);
	transition: all 0.3s ease;
	margin-right: 0.75rem;
	vertical-align: middle;
	margin-top: -2px;
}

.channel.active > h2::before,
.channel.active > h3::before,
.channel.active > h4::before {
	transform: rotate(45deg);
	border-color: var(--base-color);
}

/* 当前链接高亮 */
.channel h2 a.current,
.channel h3 a.current,
.channel h4 a.current {
	color: var(--base-color) !important;
	font-weight: 600;
	position: relative;
	display: inline-block;
}

.channel h2 a.current::after,
.channel h3 a.current::after,
.channel h4 a.current::after {
	content: "";
	position: absolute;
	bottom: 2px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--base-color);
}

/* ==================== 文章链接列表 ==================== */
.article {
	display: block;
	color: #6a7a8a !important;
	position: relative;
	margin: 0.35rem 0;
	font-size: 0.9375rem;
	line-height: 1.6em;
	padding-left: 1.25rem;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	transition: all 0.3s ease;
	border-radius: 0.5rem;
}

.article::before {
	position: absolute;
	content: "";
	top: 50%;
	transform: translateY(-50%);
	left: 0;
	width: 4px;
	height: 4px;
	background: #aaa;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.article:hover {
	color: var(--base-color) !important;
	background: rgba(44, 48, 129, 0.05);
}

.article:hover::before {
	background: var(--base-color);
	width: 6px;
	height: 6px;
}

/* 当前选中文章高亮 */
.article.current {
	color: var(--base-color) !important;
	font-weight: 500;
	background: rgba(44, 48, 129, 0.1);
	padding: 0.35rem 0.75rem 0.35rem 1.25rem;
}

.article.current::before {
	content: "";
	width: 5px;
	height: 60%;
	background: var(--base-color);
	border-radius: 2px;
	top: 20%;
	transform: none;
}

.article.current::after {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 60%;
	background: var(--base-color);
	border-radius: 2px;
}

/* ==================== 产品列表区域 ==================== */
.pro-box {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.pro-item {
	padding: 0;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.04);
	flex-direction: column;
}

.pro-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--base-color), var(--accent-color));
	opacity: 0;
	transition: opacity 0.4s ease;
}

.pro-item:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	transform: translateY(-5px);
}

.pro-item:hover::before {
	opacity: 1;
}

/* 产品图片区域 */
.pro-img {
	width: 100%;
}

.pro-img a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 50%, #f8fafc 100%);
	position: relative;
	overflow: hidden;
}

.pro-img a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--base-color), var(--accent-color));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pro-item:hover .pro-img a::after {
	opacity: 1;
}

.pro-img a img {
	width: 100%;
	height: 100%;
	min-height: 160px;
	max-height: 200px;
	object-fit: contain;
	transition: transform 0.5s ease;
	padding: 1rem;
}

.pro-item:hover .pro-img a img {
	transform: scale(1.05);
}

/* 产品信息区域 */
.pro-act {
	width: 100%;
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
}

.pro-act a {
	display: block;
	color: #2a3a4a;
	text-decoration: none;
}

.pro-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 0.6rem;
	font-family: "Noto Sans SC", sans-serif;
	transition: color 0.3s ease;
}

.pro-item:hover .pro-title {
	color: var(--base-color);
}

.pro-desc {
	color: #6a7a8a;
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1100px) {
	.product-header {
	}

	.product-header-nav .nav-item a {
		padding: 1.25rem 2rem;
		font-size: 1rem;
	}

	.product-header-nav .nav-item:not(:last-child)::after {
		height: 30%;
	}

	.ct {
		padding: 3rem var(--cbasta);
	}

	.ct-box {
		width: 24%;
		min-width: 200px;
	}

	.pro-box {
		width: auto;
		flex: 1;
	}

	.pro-img a,
	.pro-img a img {
		min-height: 140px;
		padding: 0.875rem;
	}

	.pro-act {
		padding: 0.875rem 1rem 1rem;
	}
}

@media (max-width: 960px) {
	.product-header {
		min-height: 60px;
	}

	.product-header .decor-line {
		display: none;
	}

	.product-header-nav {
		overflow-x: auto;
		justify-content: flex-start;
		-webkit-overflow-scrolling: touch;
	}

	.product-header-nav::-webkit-scrollbar {
		display: none;
	}

	.product-header-nav .nav-item:not(:last-child)::after {
		display: none;
	}

	.product-header-nav .nav-item a {
		padding: 1rem 1.5rem;
		font-size: 0.9375rem;
		white-space: nowrap;
		min-height: 60px;
	}

	.product-header-nav .nav-item a::before {
		display: none;
	}

	.ct {
		flex-direction: column;
		padding: 2rem var(--cbasta);
	}

	.ct-box {
		width: 100%;
		max-width: none;
		margin-bottom: 1.5rem;
	}

	.channel-tree {
		padding: 1.25rem;
	}

	.pro-box {
		width: 100%;
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.pro-item:hover {
		transform: none;
	}

	.pro-item:hover::before {
		opacity: 0;
	}
}

@media (max-width: 768px) {
	.ct {
		padding: 1.5rem var(--cbasta);
	}

	.channel-tree {
		border-radius: 0.75rem;
		padding: 1rem;
	}

	.channel h2.ui-accordion-header {
		font-size: 1rem;
		padding: 0 0.75rem;
	}

	.channel h3 a {
		font-size: 0.9375rem;
	}

	.article {
		font-size: 0.875rem;
	}

	.pro-img a,
	.pro-img a img {
		min-height: 120px;
		padding: 0.75rem;
	}

	.pro-act {
		padding: 0.875rem 1rem 1rem;
	}

	.pro-title {
		font-size: 0.9375rem;
		margin-bottom: 0.4rem;
	}

	.pro-desc {
		font-size: 0.8125rem;
		-webkit-line-clamp: 2;
	}
}

@media (max-width: 480px) {
	.ct {
		padding: 1rem var(--cbasta);
	}

	.channel-tree {
		padding: 0.75rem;
	}

	.channel-tree::before {
		height: 3px;
	}

	.pro-img a,
	.pro-img a img {
		min-height: 100px;
		padding: 0.625rem;
	}

	.pro-act {
		padding: 0.75rem 0.875rem 0.875rem;
	}

	.pro-title {
		font-size: 0.875rem;
	}

	.pro-desc {
		font-size: 0.75rem;
		line-height: 1.5;
	}
}