@charset "UTF-8";
/* ==========================================================
   SI163 统一搜索 · 前台样式
   ----------------------------------------------------------
   把主题那个窄条弹窗改成大卡片，输入区在上、四组结果在下。
   所有选择器都带 html body #search-modal 前缀，用于压过
   main.min.css（(0,3,2)）和美化大师内联的 onb-css（(0,2,1)）。
   ========================================================== */

/* ---------- 1. 弹窗外壳 ---------- */
html body #search-modal {
	padding: 0 16px;
	max-width: 1000px;
}

html body #search-modal.show {
	transform: translateY(7vh);
}

html body #search-modal .search-body {
	max-width: 880px;
	margin: 0 auto;
	padding: 10px;
	background: #fff;
	border: 1px solid rgba(124, 58, 237, .09);
	border-radius: 22px;
	box-shadow: 0 32px 90px -26px rgba(30, 27, 75, .34),
	            0 2px 8px rgba(30, 27, 75, .05);
	overflow: hidden;
}

html body #search-modal .search-card {
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

/* ---------- 2. 输入框 ---------- */
html body #search-modal .search-form .search-box {
	position: relative;
	height: 58px;
	background: #f6f5fb;
	border: 1.5px solid transparent;
	border-radius: 15px;
	box-shadow: none !important;
	transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

html body #search-modal .search-form .search-box:focus-within {
	background: #fff;
	border-color: #7c3aed;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, .12) !important;
}

/* 类型下拉不再需要：一次检索全部类型 */
html body #search-modal .search-box .dropdown {
	display: none !important;
}

html body #search-modal .si-uni-ico {
	position: absolute;
	left: 17px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: #7c3aed;
	pointer-events: none;
	z-index: 2;
}

html body #search-modal .search-box input.form-control {
	height: 55px;
	padding: 0 62px 0 46px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	font-size: 16.5px;
	color: #1e1b4b;
}

html body #search-modal .search-box input.form-control::placeholder {
	color: #a8a4bd;
}

/* 浏览器原生清除按钮与设计不搭，隐藏（可用 Backspace / Ctrl+A 清空） */
html body #search-modal .search-box input[type="search"]::-webkit-search-cancel-button,
html body #search-modal .search-box input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

html body #search-modal .search-box .search-submit {
	position: absolute;
	right: 7px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: #7c3aed;
	color: #fff;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 6px 16px -8px rgba(124, 58, 237, .8);
	transition: background .2s ease, transform .2s ease;
}

html body #search-modal .search-box .search-submit:hover {
	background: #6d28d9;
}

html body #search-modal .search-box .search-submit i {
	font-size: 15px;
	line-height: 1;
}

/* ---------- 3. 结果区容器 ---------- */
html body #search-modal .search-body-box {
	display: flex !important;
	/* 主题给这个容器挂了 bootstrap 的 flex-md-row（带 !important），必须跟着加 */
	flex-direction: column !important;
	position: relative;
	max-height: 0;
	margin: 0 !important;
	padding: 0;
	gap: 0 !important;
	overflow: hidden;
	transition: max-height .32s ease;
}

html body #search-modal.si-uni-open .search-body-box {
	max-height: 72vh;
}

/* 命中统计条：固定在结果区顶部，滚动时不移动 */
html body #search-modal .si-uni-stat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 15px;
	flex: 0 0 auto;
	padding: 7px 14px 8px;
	font-size: 12px;
	line-height: 1.5;
	color: #9a97ae;
	border-bottom: 1px solid #f4f2fa;
}

html body #search-modal .si-uni-stat b {
	color: #4a4763;
	font-weight: 600;
}

html body #search-modal .si-uni-sc {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

html body #search-modal .si-uni-sc i {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
}

/* 底部渐变：提示下面还有分组 */
html body #search-modal.si-uni-open .search-body-box::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 30px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

html body #search-modal .si-uni-list {
	flex: 1 1 auto;
	min-height: 0;
	padding: 4px 4px 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #d9d5ea transparent;
}

html body #search-modal .si-uni-list::-webkit-scrollbar {
	width: 8px;
}

html body #search-modal .si-uni-list::-webkit-scrollbar-thumb {
	background: #d9d5ea;
	border-radius: 4px;
}

/* ---------- 4. 分组 ---------- */
.si-uni-group {
	margin-top: 4px;
}

.si-uni-group + .si-uni-group {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #f1eff8;
}

.si-uni-ghead {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px 7px;
	background: #fff;
}

.si-uni-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.si-uni-gname {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .2px;
	color: #4a4763;
}

.si-uni-gcount {
	font-size: 11.5px;
	color: #a8a4bd;
}

.si-uni-gmore {
	margin-left: auto;
	font-size: 12px;
	color: #7c3aed;
	text-decoration: none;
	opacity: .9;
}

.si-uni-gmore:hover {
	opacity: 1;
	text-decoration: underline;
}

/* ---------- 5. 条目 ---------- */
.si-uni-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .14s ease;
}

.si-uni-item:hover,
.si-uni-item.is-on {
	background: #f4f2fd;
}

.si-uni-ava {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0;
}

.si-uni-tx {
	min-width: 0;
	flex: 1 1 auto;
}

.si-uni-tt {
	display: block;
	font-size: 14.5px;
	line-height: 1.42;
	color: #1e1b4b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.si-uni-tt em {
	font-style: normal;
	font-weight: 600;
	color: #6d28d9;
	background: rgba(124, 58, 237, .1);
	border-radius: 3px;
	padding: 0 2px;
}

.si-uni-dd {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	line-height: 1.4;
	color: #8b88a0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.si-uni-bd {
	flex: 0 0 auto;
	max-width: 170px;
	font-size: 11.5px;
	color: #a8a4bd;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.si-uni-go {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	border-radius: 8px;
	color: #a8a4bd;
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: background .16s ease, color .16s ease;
}

.si-uni-item:hover .si-uni-go {
	background: #ede9fe;
	color: #6d28d9;
}

/* ---------- 6. 空态 / 提示词 ---------- */
.si-uni-hot {
	padding: 10px 12px 12px;
}

.si-uni-hot h6 {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	color: #8b88a0;
	letter-spacing: .2px;
}

.si-uni-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.si-uni-chip {
	padding: 6px 13px;
	font-size: 13px;
	color: #4a4763;
	background: #f6f5fb;
	border: 1px solid #ece9f8;
	border-radius: 999px;
	cursor: pointer;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.si-uni-chip:hover {
	background: #ede9fe;
	color: #6d28d9;
	border-color: #ddd3fa;
}

.si-uni-empty {
	padding: 26px 12px 30px;
	text-align: center;
	font-size: 13.5px;
	line-height: 1.7;
	color: #a8a4bd;
}

.si-uni-empty b {
	display: block;
	margin-bottom: 6px;
	font-size: 14.5px;
	font-weight: 600;
	color: #4a4763;
}

/* ---------- 7. 加载骨架 ---------- */
.si-uni-skel {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 12px;
}

.si-uni-skel span {
	display: block;
	border-radius: 8px;
	background: #f1eff8;
	animation: siuni-pulse 1.1s ease-in-out infinite;
}

.si-uni-skel .s1 {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 10px;
}

.si-uni-skel .s2 {
	height: 11px;
	flex: 1 1 auto;
}

@keyframes siuni-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
	html body #search-modal .search-body-box,
	html body #search-modal .search-form .search-box,
	.si-uni-item {
		transition: none !important;
	}
	.si-uni-skel span {
		animation: none !important;
	}
}

/* ---------- 8. 深色模式 ---------- */
html.io-black-mode body #search-modal .search-body {
	background: #232430;
	border-color: rgba(167, 139, 250, .14);
	box-shadow: 0 32px 90px -26px rgba(0, 0, 0, .7);
}

html.io-black-mode body #search-modal .search-form .search-box {
	background: #2c2d3c;
}

html.io-black-mode body #search-modal .search-form .search-box:focus-within {
	background: #2a2b38;
}

html.io-black-mode body #search-modal .search-box input.form-control {
	color: #e8e7f5;
}

html.io-black-mode .si-uni-gname,
html.io-black-mode .si-uni-empty b {
	color: #d6d4e6;
}

html.io-black-mode .si-uni-ghead {
	background: #232430;
}

html.io-black-mode body #search-modal .si-uni-stat {
	color: #9d9ab8;
	border-bottom-color: #2f3043;
}

html.io-black-mode body #search-modal .si-uni-stat b {
	color: #d6d4e6;
}

html.io-black-mode body #search-modal .search-body-box::after {
	background: linear-gradient(to bottom, rgba(35, 36, 48, 0), #232430);
}

html.io-black-mode .si-uni-group + .si-uni-group {
	border-top-color: #2f3043;
}

html.io-black-mode .si-uni-item:hover,
html.io-black-mode .si-uni-item.is-on {
	background: #2f3043;
}

html.io-black-mode .si-uni-tt {
	color: #e8e7f5;
}

html.io-black-mode .si-uni-tt em {
	color: #c4b5fd;
	background: rgba(167, 139, 250, .18);
}

html.io-black-mode .si-uni-dd {
	color: #9d9ab8;
}

html.io-black-mode .si-uni-chip {
	background: #2c2d3c;
	color: #c9c7dc;
	border-color: #3a3b52;
}

html.io-black-mode .si-uni-chip:hover {
	background: #3a3557;
	color: #ddd6fe;
	border-color: #4c4472;
}

html.io-black-mode .si-uni-skel span {
	background: #2f3043;
}

html.io-black-mode .si-uni-item:hover .si-uni-go {
	background: #3a3557;
	color: #c4b5fd;
}

/* ---------- 9. 移动端 ---------- */
@media (max-width: 767px) {
	html body #search-modal {
		padding: 0 9px;
	}

	html body #search-modal.show {
		transform: translateY(10px);
	}

	html body #search-modal .search-body {
		padding: 8px;
		border-radius: 17px;
	}

	html body #search-modal .search-form .search-box {
		height: 50px;
		border-radius: 13px;
	}

	html body #search-modal .search-box input.form-control {
		height: 47px;
		padding: 0 56px 0 42px !important;
		font-size: 15.5px;
	}

	html body #search-modal .si-uni-ico {
		left: 14px;
		width: 18px;
		height: 18px;
	}

	html body #search-modal .search-box .search-submit {
		width: 38px;
		height: 38px;
		border-radius: 10px;
	}

	html body #search-modal.si-uni-open .search-body-box {
		max-height: 68vh;
	}

	.si-uni-bd {
		display: none;
	}

	.si-uni-tt {
		font-size: 14px;
	}
}

/* ==========================================================
   10. 顶部导航内联搜索条（>=992px 显示，替换原放大镜图标）
   ========================================================== */
html body .si-nav-search {
	display: none;
	position: relative;
	align-items: center;
	gap: 8px;
	flex: 0 1 300px;
	min-width: 180px;
	max-width: 340px;
	height: 38px;
	margin: 0 12px 0 4px;
	padding: 0 11px;
	background: #fff;
	border: 1.5px solid #ece9f8;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(30, 27, 75, .05);
	cursor: text;
	transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

html body .si-nav-search:hover {
	background: #faf9ff;
	border-color: #ddd6fe;
}

html body .si-nav-search.is-active {
	background: #fff;
	border-color: #7c3aed;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, .1);
}

html body .si-nav-search .si-ns-ico {
	display: flex;
	flex: 0 0 auto;
	color: #8b88a0;
	transition: color .18s ease;
}

html body .si-nav-search.is-active .si-ns-ico {
	color: #7c3aed;
}

html body .si-nav-search .si-ns-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 100%;
	padding: 0 !important;
	margin: 0;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	outline: 0;
	font-size: 13.5px;
	color: #1e1b4b;
	-webkit-appearance: none;
	appearance: none;
}

html body .si-nav-search .si-ns-input::placeholder {
	color: #a8a4bd;
}

html body .si-nav-search .si-ns-input::-webkit-search-cancel-button,
html body .si-nav-search .si-ns-input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

html body .si-nav-search .si-ns-key {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	font-size: 10.5px;
	line-height: 1;
	color: #a8a4bd;
	background: #fff;
	border: 1px solid #e6e3f2;
	border-radius: 5px;
	transition: opacity .14s ease;
}

html body .si-nav-search.is-active .si-ns-key {
	opacity: 0;
}

/* ---------- 下拉结果面板 ---------- */
html body .si-nav-panel {
	display: none;
	position: fixed;
	z-index: 9990;
	flex-direction: column;
	padding: 0;
	background: #fff;
	border: 1px solid rgba(124, 58, 237, .1);
	border-radius: 18px;
	box-shadow: 0 28px 70px -22px rgba(30, 27, 75, .34),
	            0 2px 8px rgba(30, 27, 75, .05);
	overflow: hidden;
	animation: siuni-drop .16s ease;
}

html body .si-nav-panel.is-open {
	display: flex;
}

@keyframes siuni-drop {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

html body .si-nav-panel .si-uni-stat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 15px;
	flex: 0 0 auto;
	padding: 9px 16px;
	font-size: 12px;
	line-height: 1.5;
	color: #9a97ae;
	border-bottom: 1px solid #f4f2fa;
}

html body .si-nav-panel .si-uni-stat b {
	color: #4a4763;
	font-weight: 600;
}

html body .si-nav-panel .si-uni-sc {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

html body .si-nav-panel .si-uni-sc i {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
}

html body .si-nav-panel .si-uni-list {
	flex: 1 1 auto;
	min-height: 0;
	padding: 4px 6px 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #d9d5ea transparent;
}

html body .si-nav-panel .si-uni-list::-webkit-scrollbar {
	width: 8px;
}

html body .si-nav-panel .si-uni-list::-webkit-scrollbar-thumb {
	background: #d9d5ea;
	border-radius: 4px;
}

/* ---------- 断点：<992 收起搜索条，恢复放大镜图标 ---------- */
@media (min-width: 992px) {
	html body .header-tools .header-icon-btn.nav-search {
		display: none !important;
	}

	html body .si-nav-search {
		display: flex;
	}
}

@media (min-width: 992px) and (max-width: 1279px) {
	html body .si-nav-search {
		flex: 0 1 186px;
		min-width: 150px;
	}
}

@media (max-width: 991px) {
	html body .si-nav-panel {
		display: none !important;
	}
}

/* ---------- 深色模式 ---------- */
html.io-black-mode body .si-nav-search {
	background: #2c2d3c;
	border-color: #3a3b52;
	box-shadow: none;
}

html.io-black-mode body .si-nav-search:hover {
	background: #33344a;
	border-color: #4a4b66;
}

html.io-black-mode body .si-nav-search.is-active {
	background: #2a2b38;
	border-color: #7c3aed;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, .18);
}

html.io-black-mode body .si-nav-search .si-ns-input {
	color: #e8e7f5;
}

html.io-black-mode body .si-nav-search .si-ns-input::placeholder {
	color: #8b88a0;
}

html.io-black-mode body .si-nav-search .si-ns-key {
	background: #3a3b52;
	border-color: #4a4b66;
	color: #9d9ab8;
}

html.io-black-mode body .si-nav-panel {
	background: #232430;
	border-color: rgba(167, 139, 250, .14);
	box-shadow: 0 28px 70px -22px rgba(0, 0, 0, .7);
}

html.io-black-mode body .si-nav-panel .si-uni-stat {
	color: #9d9ab8;
	border-bottom-color: #2f3043;
}

html.io-black-mode body .si-nav-panel .si-uni-stat b {
	color: #d6d4e6;
}

html.io-black-mode body .si-nav-panel .si-uni-list {
	scrollbar-color: #3f4059 transparent;
}

html.io-black-mode body .si-nav-panel .si-uni-list::-webkit-scrollbar-thumb {
	background: #3f4059;
}
