/* ============================================================
   站内搜索页 search.html（so.主域）— 百度首页风格
   布局：全屏居中 logo + 大搜索框 + 按钮；有结果时顶部收窄 + 下方结果列表。
   ============================================================ */
body.search-page--baidu {
	background: #fff !important;
}
.search-shell {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	box-sizing: border-box;
	padding: 0 16px;
}
/* 顶部 hero：落地页（无关键词）垂直居中偏上；结果页收窄到顶部 */
.search-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 640px;
}
.search-shell:not(.is-result) .search-hero {
	padding-top: 20vh;
}
.search-shell.is-result .search-hero {
	padding-top: 34px;
}
.search-brand {
	display: block;
	line-height: 0;
	margin-bottom: 28px;
}
.search-shell.is-result .search-brand {
	margin-bottom: 18px;
}
.search-brand-img {
	height: 48px;
	width: auto;
}
.search-shell.is-result .search-brand-img {
	height: 32px;
}
/* 搜索框：输入框 + 按钮一体（类似百度） */
.search-form {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
}
.search-box {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 50px;
	border: 2px solid var(--c-action);
	border-radius: 25px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
	transition: box-shadow 0.2s ease;
}
.search-box:focus-within {
	box-shadow: 0 10px 30px rgba(var(--c-action-rgb), 0.2);
}
.search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	padding: 0 20px;
	font-size: 1rem;
	color: var(--c-text);
}
.search-input::placeholder {
	color: #9ca3af;
}
.search-btn {
	flex: 0 0 auto;
	width: 122px;
	border: none;
	background: var(--c-action);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background 0.15s ease;
}
.search-btn:hover {
	background: var(--c-action-hover);
}
/* 热门搜索 */
.search-quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	justify-content: center;
	margin-top: 20px;
	font-size: 0.8125rem;
	color: var(--c-text-3);
}
.search-quick a {
	color: #64748b;
	text-decoration: none;
}
.search-quick a:hover {
	color: var(--c-action);
}
/* 结果区 */
.search-result-wrap {
	width: 100%;
	max-width: 860px;
	margin-top: 16px;
}
.search-count {
	margin: 0 0 14px;
	font-size: 0.875rem;
	color: var(--c-text-2);
}
.search-count b {
	color: var(--c-action);
	font-weight: 700;
}
.search-empty {
	margin: 0;
	padding: 48px 0;
	text-align: center;
	color: var(--c-text-3);
	font-size: 0.9375rem;
	border: 1px dashed var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-bg-soft);
}
.search-empty i {
	margin-right: 6px;
}
/* 页脚小字 */
.search-foot {
	margin-top: auto;
	padding: 30px 0 24px;
	font-size: 0.75rem;
	color: var(--c-text-3);
	text-align: center;
}
.search-foot a {
	color: var(--c-text-2);
	text-decoration: none;
}
.search-foot a:hover {
	color: var(--c-action);
}
/* 分块：产品 / 资讯 */
.search-block {
	margin-bottom: 24px;
}
.search-block-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--c-text);
	margin: 0 0 12px;
}
.search-block-title i {
	color: var(--c-action);
}
.search-block-sub {
	font-size: 0.75rem;
	color: var(--c-text-3);
	font-weight: 500;
}
/* 产品结果卡片：桌面双列网格 */
.search-product-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
@media (max-width: 767px) {
	.search-product-list {
		grid-template-columns: 1fr;
	}
}
/* 轮播 JS 会把 li 从 ul 移到 slide div 中，需单独去掉默认列表圆点 */
.search-product-item {
	list-style: none;
}
.search-product-card {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-bg-card);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.18s ease;
}
.search-product-card:hover {
	border-color: var(--c-line-strong);
	box-shadow: var(--s-sm);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}
.search-product-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	margin-bottom: 8px;
}
.search-product-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--c-text);
}
.search-product-id {
	font-size: 0.75rem;
	color: var(--c-text-3);
}
.search-product-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	font-size: 0.8125rem;
	color: var(--c-text-2);
	margin-bottom: 10px;
}
.search-product-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--c-action);
	background: rgba(var(--c-action-rgb), 0.1);
	border: 1px solid rgba(var(--c-action-rgb), 0.22);
}
.search-product-spec {
	color: var(--c-text-3);
}
.search-product-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.search-product-price {
	font-size: 1.05rem;
	font-weight: 800;
	color: #dc2626;
}
.search-product-price em {
	font-style: normal;
	font-size: 0.72rem;
	color: var(--c-text-3);
	font-weight: 500;
	margin-left: 2px;
}
.search-product-go {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--c-action);
}
/* 深色模式：产品卡片 */
html.io-dark-mode .search-product-card {
	background: var(--c-bg-card);
	border-color: rgba(185, 203, 226, 0.14);
}
html.io-dark-mode .search-product-name {
	color: #f1f5f9;
}
html.io-dark-mode .search-product-spec {
	color: #8fa5c1;
}
/* 相关产品：每 4 个一页的轮播 */
.search-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.search-block-head .search-block-title {
	margin: 0;
}
.search-carousel-pager {
	display: flex;
	align-items: center;
	gap: 8px;
}
.search-carousel-count {
	font-size: 0.75rem;
	color: var(--c-text-3);
	font-variant-numeric: tabular-nums;
}
.search-carousel-nav {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--c-line);
	background: var(--c-bg-card);
	color: var(--c-text-2);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	padding: 0;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.search-carousel-nav:hover:not(.is-disabled) {
	border-color: var(--c-action);
	color: var(--c-action);
}
.search-carousel-nav.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.search-product-carousel {
	position: relative;
	overflow: hidden;
}
.search-product-track {
	width: 100%;
	display: flex;
	flex-wrap: nowrap;
	transition: transform 0.35s ease;
}
.search-product-slide {
	flex: 0 0 100%;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
@media (max-width: 767px) {
	.search-product-slide {
		grid-template-columns: 1fr;
	}
}
