/* 产品分类页面样式 */

/* ── Banner ── */
.category-banner {
	position: relative;
	padding: max(3vw, 40px) 0;
	padding-bottom: 0;
	color: #fff;
	min-height: max(10vw, 300px);
	overflow: hidden;
}

.category-banner:has(.series-anchor-nav--banner) {
	padding-bottom: 52px;
	min-height: max(12vw, 320px);
}

.category-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.category-banner .banner-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.category-banner .banner-content {
	position: relative;
	z-index: 2;
}

.category-banner h1 {
	font-size: var(--widget-title-h2-fs);
	font-weight: 600;
	margin: 0 0 max(1vw, 15px);
	color: #fff;
}

.category-banner p {
	font-size: var(--widget-title-p-2-fs);
	max-width: 800px;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.category-banner {
		padding: max(2vw, 30px) 0;
	}

	.category-banner h1 {
		font-size: var(--section-title-mobile-fs);
	}

	.category-banner p {
		font-size: var(--widget-title-p-3-fs);
	}
}

/* ── 系列页 ── */
.product-series-page {
	background: #fff;
	padding: max(3vw, 48px) 0;
}

/* 系列锚点导航（Banner 底部） */
.series-anchor-nav--banner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	background: #2b2b2b;
}

.series-anchor-nav {
	background: #2b2b2b;
}

.series-anchor-nav__inner {
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	gap: 32px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.series-anchor-nav__inner::-webkit-scrollbar {
	display: none;
}

.series-anchor-nav__item {
	flex: 0 0 auto;
	padding: 16px 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	position: relative;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.series-anchor-nav__item:hover {
	color: #fff;
}

.series-anchor-nav__item.is-active {
	color: #fff;
}

.series-anchor-nav__item.is-active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--theme-color, #0075c9);
	border-radius: 2px 2px 0 0;
}

/* 系列块列表 */
.product-series-page__blocks {
	display: flex;
	flex-direction: column;
	gap: max(2vw, 32px);
}

.series-block {
	scroll-margin-top: 80px;
}

/* 系列外框：浅灰底 + 圆角 */
.series-block__card {
	background: #f5f9ff;
	box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16); 
	border-radius: 24px;
	overflow: hidden;
}

/* 白色表头 */
.series-block__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 40px;
	margin: 0;
	background: #fff;
	border-bottom: 1px solid #e4eaef;
}

.series-block__header-left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.series-block__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #222;
}

.series-block__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.series-block__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.35;
}

.series-block__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.series-block__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: var(--theme-color, #0075c9);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	border-radius: 12px;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.series-block__btn:hover {
	opacity: 0.88;
	color: #fff;
}

.series-block__btn svg,
.series-block__btn img {
	flex-shrink: 0;
}

.series-block__btn svg {
	stroke: currentColor;
}

/* 内容区：描述白卡片 + 产品表 */
.series-block__body {
	padding: 24px 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* 系列描述白卡片 */
.series-block__info {
	background: #fff;
	border-radius: 16px;
	padding: 24px 36px;
	box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.10); 
}

.series-block__info-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	color: var(--theme-color, #0075c9);
	line-height: 1.4;
}

.series-block__info-body {
	font-size: 14px;
	line-height: 1.6;
	color: #1a1a1a;
}

.series-block__info-body > :first-child {
	margin-top: 0;
}

.series-block__info-body > :last-child {
	margin-bottom: 0;
}

/* 副标题：描述里第一段加粗文字 */
.series-block__info-body > p:first-child strong,
.series-block__info-body > p:first-child b,
.series-block__info-body > strong:first-child,
.series-block__info-body > b:first-child {
	display: block;
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.45;
}

.series-block__info-body p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.6;
	color: #1a1a1a;
}

.series-block__info-body ul,
.series-block__info-body ol {
	margin: 0;
	padding: 0 0 0 1.15em;
	list-style: disc;
	list-style-position: outside;
}

.series-block__info-body li {
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.6;
	color: #1a1a1a;
	padding-left: 0.15em;
}

.series-block__info-body li:last-child {
	margin-bottom: 0;
}

.series-block__info-body li::marker {
	color: #1a1a1a;
	font-size: 0.75em;
}

.series-block__info-body strong:not(:first-child),
.series-block__info-body b:not(:first-child) {
	font-weight: 700;
	color: #1a1a1a;
}

/* 产品表格区 */
.series-block__products {
	border-radius: 16px;
	box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.10); 
	overflow: hidden;
	background: #fff;
}

.series-block__empty {
	margin: 0;
	padding: 40px 20px;
	font-size: 14px;
	color: #999;
	text-align: center;
}

/* 产品对比表 — 设计稿：蓝表头 + 连续白底行 */
.series-product-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.series-product-table {
	width: 100%;
	min-width: 1080px;
	border-collapse: collapse;
	table-layout: fixed;
	background: #fff;
}

.series-product-table--dynamic {
	min-width: 0;
	table-layout: auto;
}

.series-product-table--dynamic .series-product-table__cell--chip {
	min-width: 160px;
}

.series-product-table thead th {
	padding: 14px 10px;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	vertical-align: middle;
	background: var(--theme-color, #0075c9);
	border: none;
	/* white-space: nowrap; */
	font-weight: 500;
}

.series-product-table tbody td {
	padding: 20px 12px;
	font-size: 14px;
	line-height: 1.55;
	color: #333;
	text-align: center;
	vertical-align: middle;
	background: #fff;
	border-bottom: 1px solid #e8eef3;
	word-break: break-word;
}

.series-product-table tbody tr:last-child td {
	border-bottom: none;
}

/* 列宽 */
.series-product-table col.col-chip { width: 13%; }
.series-product-table col.col-variant { width: 8%; }
.series-product-table col.col-core { width: 7%; }
.series-product-table col.col-dimension { width: 8%; }
.series-product-table col.col-gpio { width: 6%; }
.series-product-table col.col-ram { width: 11%; }
.series-product-table col.col-flash { width: 7%; }
.series-product-table col.col-psram { width: 7%; }
.series-product-table col.col-module { width: 11%; }
.series-product-table col.col-board { width: 11%; }
.series-product-table col.col-package { width: 11%; }

/* 芯片列：图标 + 名称垂直居中 */
.series-product-table__cell--chip {
	text-align: center;
}

.series-product-table__chip {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	max-width: 100%;
}

.series-product-table__chip-icon {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.series-product-table__chip-icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.series-product-table__chip-placeholder {
	display: inline-flex;
	color: #333;
}

.series-product-table__chip-name {
	color: #0081e2;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	text-align: center;
}

.series-product-table__chip:hover .series-product-table__chip-name {
	text-decoration: underline;
}

/* 模组 / 开发板 / 封装：居中链接列表 */
.series-product-table__cell--links,
.series-product-table__head-cell--links {
	text-align: center;
}

.series-product-table__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.series-product-table__link {
	color: #0081e2;
	font-size: 14px;
	text-decoration: none;
	line-height: 1.45;
	text-align: center;
}

.series-product-table__link:hover {
	color: #0081e2;
	text-decoration: underline;
}

.series-product-table__link-text {
	color: #333;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

.series-product-table__dash {
	color: #999;
}

.series-product-table__cell a {
	color: var(--theme-color, #0075c9);
	text-decoration: underline;
}

.series-product-table__cell a:hover {
	opacity: 0.85;
}

/* ── 响应式 ── */
@media (max-width: 1199px) {
	.series-block__products {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.series-product-table {
		min-width: 980px;
	}
}

@media (max-width: 991px) {
	.series-block__header {
		flex-direction: column;
		align-items: flex-start;
		padding: 18px 20px;
	}

	.series-block__body {
		padding: 20px;
		gap: 16px;
	}

	.series-block__info {
		padding: 24px 20px;
	}

	.series-block__info-title {
		font-size: 18px;
	}

	.series-block__actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.series-anchor-nav__item {
		padding: 14px 0;
		font-size: 14px;
	}

	.series-anchor-nav__inner {
		gap: 24px;
	}
}

@media (max-width: 576px) {
	.series-block__info {
		padding: 16px;
	}

	.series-block__btn {
		padding: 8px 14px;
		font-size: 13px;
	}
}

/* ── 兼容旧样式 ── */
/* 解决方案系列区块：卡片网格（复用 series-block__products 容器） */
.series-block__products--solutions {
	padding: clamp(20px, 3vw, 32px);
	background: #fff;
}

.series-solution-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.series-solution-grid .solution-card {
	height: 100%;
	margin: 0;
}

.solution-series-page .series-block__body:only-child .series-block__products--solutions {
	border-radius: 16px;
}

.product-category-container {
	padding: max(2vw, 30px) 0;
	background-color: #fff;
}

.woocommerce-pagination {
	margin-top: max(2vw, 30px);
	text-align: center;
	display: flex;
	justify-content: center;
	grid-gap: 8px;
}

.woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #eee;
	border-radius: 4px;
	color: #666;
	text-decoration: none;
}

.woocommerce-pagination .current,
.woocommerce-pagination .page-numbers:hover {
	background: var(--theme-color);
	border-color: var(--theme-color);
	color: #fff;
}
