/* ============================================================
   搜索页（Figma 415:13972 搜索产品 / 415:14003 搜索新闻）
   说明：设计稿基于 1920 设计宽度，1rem = 100px，数值 = 设计px / 100
   ============================================================ */

/* ============================================================
   一、白底导航覆盖（仅搜索页）
   设计稿：白底 + 蓝色 Logo + #333 导航文字 + 投影
   ============================================================ */
.search_header .header-wrap,
.search_header .header-wrap.headerBg {
	background: #FFFFFF;
	box-shadow: 0 0.04rem 0.04rem rgba(63, 63, 63, 0.25);
}

.search_header .header {
	border-bottom: none;
}

/* Logo：设计稿为蓝色 #00499A，使用现有白色 logo 做遮罩精确上色 */
.search_header .header .head_logo {
	position: relative;
}

.search_header .header .head_logo img {
	opacity: 0;
}

.search_header .header .head_logo::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #00499A;
	-webkit-mask: url(../img/logo_white.svg) no-repeat left center / contain;
	mask: url(../img/logo_white.svg) no-repeat left center / contain;
}

/* 导航文字：#333333 */
.search_header .header .head_nav .head_item {
	color: #333333;
}

/* 语言切换：设计稿文字为深色 */
.search_header .header .head_opts .head_en {
	position: relative;
}

.search_header .header .head_opts .head_en img {
	opacity: 0;
}

.search_header .header .head_opts .head_en::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #333333;
	-webkit-mask: url(../img/icon_en.svg) no-repeat center / contain;
	mask: url(../img/icon_en.svg) no-repeat center / contain;
}

/* 搜索入口：设计稿为 1px #00499A 描边圆角框 */
.search_header .header .head_opts .head_search {
	position: relative;
	width: 0.48rem;
	height: 0.48rem;
	border: 0.01rem solid #00499A;
	border-radius: 0.03rem;
	box-sizing: border-box;
}

.search_header .header .head_opts .head_search img {
	opacity: 0;
}

.search_header .header .head_opts .head_search::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.14rem;
	height: 0.14rem;
	transform: translate(-50%, -50%);
	background-color: #00499A;
	-webkit-mask: url(../img/icon_search.svg) no-repeat center / contain;
	mask: url(../img/icon_search.svg) no-repeat center / contain;
}


/* ============================================================
   二、页面与渐变头部
   ============================================================ */
.search_page {
	padding-top: 1rem;
	box-sizing: border-box;
}

.search_hero {
	height: 3.6rem;
	padding-top: 1.3rem;
	box-sizing: border-box;
	background: linear-gradient(180deg, #EDEDED 0%, #FFFFFF 100%);
}


/* ============================================================
   三、搜索框（780 × 50 胶囊 + 蓝色 100 × 50 按钮）
   ============================================================ */
.search_form {
	position: relative;
	width: 7.8rem;
	height: 0.5rem;
	margin: 0 auto;
}

.search_form input[type="text"] {
	width: 100%;
	height: 100%;
	padding: 0 1.1rem 0 0.33rem;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 0.01rem solid #DCDCDC;
	border-radius: 0.25rem;
	font-family: Sans-Regular;
	font-weight: 400;
	font-size: 0.14rem;
	color: #333333;
	outline: none;
}

.search_form input[type="text"]::placeholder {
	color: #A6A6A6;
}

.search_form input[type="text"]:focus {
	border-color: #00499A;
}

.search_submit {
	position: absolute;
	right: 0;
	top: 0;
	width: 1rem;
	height: 0.5rem;
	padding: 0;
	border: none;
	border-radius: 0.25rem;
	background: #00499A;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.search_submit img {
	width: 0.2rem;
	height: 0.2rem;
	display: block;
}


/* ============================================================
   四、搜索结果提示行
   ============================================================ */
.search_result {
	margin-top: 0.6rem;
	font-family: Sans-Regular;
	font-weight: 400;
	font-size: 0.18rem;
	line-height: 1.4;
	color: #333333;
}

.search_result .sr_key {
	font-family: Sans-Medium;
	font-weight: 500;
	color: #00499A;
}


/* ============================================================
   五、分类切换胶囊
   ============================================================ */
.search_tabs {
	margin-top: 0.34rem;
	display: flex;
	align-items: center;
	column-gap: 0.3rem;
}

.search_tabs .tab_btn {
	padding: 0.1rem 0.2rem;
	border-radius: 0.26rem;
	background: #E5E5E5;
	font-family: Sans-Regular;
	font-weight: 400;
	font-size: 0.16rem;
	line-height: 1.3;
	color: #333333;
	cursor: pointer;
	transition: all var(--s_tran);
}

.search_tabs .tab_btn.act {
	background: #00499A;
	color: #FFFFFF;
}


/* ============================================================
   六、结果区
   ============================================================ */
.search_results {
	padding-bottom: 1.5rem;
}

.search_results .main {
	border-top: 0.01rem solid #DDDDDD;
}

.search_list .search_div {
	display: none;
}

.search_list .search_div.on {
	display: block;
}

/* AJAX 局部加载：列表数据渐出渐入 */
.search_list {
	transition: opacity 0.25s ease;
}

.search_list.fading {
	opacity: 0;
}


/* ============================================================
   七、产品卡片（组件 235:3411）
   ============================================================ */
.search_results .p_grid {
	margin-top: 0.4rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
}

.search_results .p_card {
	border: 0.02rem solid transparent;
	border-radius: 0.1rem;
	box-sizing: border-box;
	overflow: hidden;
	padding: 0 0 0.1rem;
	background: linear-gradient(#F4F4F4, #F4F4F4) padding-box, linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(245, 250, 255, 1) 52%, rgba(255, 255, 255, 0.6)) border-box;
	transition: all var(--s_tran);
}

.search_results .p_card_img {
	width: 100%;
	height: 3.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FFFFFF;
	border-radius: 0.08rem 0.08rem 0 0;
	overflow: hidden;
}

.search_results .p_card_img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--l_tran);
}

.search_results .p_card_txt {
	padding: 0.18rem 0.3rem 0.07rem;
	box-sizing: border-box;
	border-top: 0.01rem solid #D6D6D6;
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
}

.search_results .p_card_name {
	font-family: Sans-Medium;
	font-weight: 500;
	font-size: 0.2rem;
	line-height: 0.28rem;
	color: #333333;
	text-align: center;
	transition: all var(--s_tran);
}

.search_results .p_card:hover {
	background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(245, 250, 255, 1) 52%, rgba(255, 255, 255, 0.6)) border-box;
	box-shadow: 0 0 0.1rem 0 rgba(0, 73, 154, 0.44);
}

.search_results .p_card:hover .p_card_img img {
	transform: scale(1.06);
}

.search_results .p_card:hover .p_card_name {
	color: #00499A;
}


/* ============================================================
   八、新闻列表（组件 209:1768）
   ============================================================ */
.search_results .n_list {
	margin-top: 0.4rem;
	display: flex;
	flex-direction: column;
}

.search_results .n_item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	column-gap: 0.3rem;
	padding: 0.3rem 0.4rem 0.3rem 0.2rem;
	box-sizing: border-box;
	min-height: 3.01rem;
	border-bottom: 0.01rem solid #A2A2A2;
	background: #FFFFFF;
	transition: box-shadow var(--s_tran);
}

.search_results .n_item_img {
	width: 4.14rem;
	height: 2.4rem;
	border-radius: 0.1rem;
	overflow: hidden;
	flex-shrink: 0;
}

.search_results .n_item_img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--l_tran);
}

.search_results .n_item_con {
	flex: 1;
	min-width: 0;
	padding-top: 0.2rem;
	display: flex;
	flex-direction: column;
	row-gap: 0.2rem;
}

.search_results .n_item_tit {
	font-family: Sans-Medium;
	font-weight: 500;
	font-size: 0.2rem;
	line-height: 1.4;
	color: #333333;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	transition: color var(--s_tran);
}

.search_results .n_item_desc {
	font-family: Sans-Regular;
	font-weight: 400;
	font-size: 0.16rem;
	line-height: 1.6;
	color: #666666;
	opacity: 0.8;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.search_results .n_item_con .n_date {
	display: flex;
	align-items: center;
	column-gap: 0.04rem;
	font-family: Sans-Regular;
	font-size: 0.14rem;
	line-height: 1.4;
	color: #666666;
}

.search_results .n_item_con .n_date img {
	width: 0.13rem;
	height: 0.13rem;
	display: block;
}

.search_results .n_item_btn {
	flex-shrink: 0;
	width: 0.46rem;
	height: 0.46rem;
	border-radius: 50%;
	background: #A8A8A8;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--s_tran);
}

.search_results .n_item_btn img {
	width: 0.18rem;
	height: 0.18rem;
	display: block;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.search_results .n_item:hover {
	box-shadow: 0 0.04rem 0.08rem rgba(95, 95, 95, 0.25);
}

.search_results .n_item:hover .n_item_tit {
	color: #00499A;
}

.search_results .n_item:hover .n_item_img img {
	transform: scale(1.05);
}

.search_results .n_item:hover .n_item_btn {
	background: #00499A;
}


/* ============================================================
   九、空状态
   ============================================================ */
.search_results .p_empty,
.search_results .n_empty {
	padding-top: 0.6rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.search_results .p_empty img,
.search_results .n_empty img {
	width: 2.8rem;
	height: 2.8rem;
	object-fit: contain;
}

.search_results .p_empty p,
.search_results .n_empty p {
	margin-top: 0.4rem;
	font-family: Sans-Regular;
	font-weight: 400;
	font-size: 0.16rem;
	line-height: 0.24rem;
	color: #333333;
	text-align: center;
}


/* ============================================================
   十、响应式
   ============================================================ */
@media screen and (max-width: 1024px) {
	.search_hero {
		height: auto;
		padding: 1rem 0 0.6rem;
	}

	.search_form {
		width: 100%;
		max-width: 6rem;
	}

	.search_result {
		margin-top: 0.4rem;
	}

	.search_tabs {
		margin-top: 0.3rem;
	}

	.search_results {
		padding-bottom: 1rem;
	}

	.search_results .p_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.2rem;
	}

	.search_results .n_item {
		padding: 0.2rem;
		column-gap: 0.2rem;
		min-height: 0;
	}

	.search_results .n_item_img {
		width: 2.8rem;
		height: 1.7rem;
	}

	.search_results .n_item_btn {
		display: none;
	}
}

@media screen and (max-width: 750px) {
	.search_hero {
		padding: 0.8rem 0 0.5rem;
	}

	.search_form {
		height: 0.44rem;
	}

	.search_form input[type="text"] {
		padding: 0 1rem 0 0.24rem;
		border-radius: 0.22rem;
		font-size: 0.13rem;
	}

	.search_submit {
		width: 0.84rem;
		height: 0.44rem;
		border-radius: 0.22rem;
	}

	.search_submit img {
		width: 0.18rem;
		height: 0.18rem;
	}

	.search_result {
		font-size: 0.16rem;
	}

	.search_tabs .tab_btn {
		padding: 0.08rem 0.16rem;
		font-size: 0.14rem;
	}

	.search_results .p_grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.search_results .n_item {
		flex-direction: column;
		align-items: flex-start;
		row-gap: 0.2rem;
	}

	.search_results .n_item_img {
		width: 100%;
		height: 2.2rem;
	}
}
