/* ==========================================================================
   IMAXPWR — Search results page
   Scoped under .ims so it never leaks into Elementor templates.
   ========================================================================== */

.ims {
	--ims-ink: #253745;
	--ims-ink2: #5f6f7b;
	--ims-mut: #7d8f9c;
	--ims-line: #e4e9ed;
	--ims-line2: #d5dee4;
	--ims-grn: #57b33e;
	--ims-grn-d: #499934;
	--ims-bg: #f6f8f9;
	--ims-radius: 12px;
	font-family: "Muli", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
	color: var(--ims-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
.ims *,
.ims *::before,
.ims *::after { box-sizing: border-box; }
.ims a { text-decoration: none; }
.ims .ims-title a { text-decoration: none; border-bottom: 0; }
.ims p { margin: 0; }
.ims h1, .ims h2, .ims h3 { margin: 0; font-family: "Rubik", "Muli", Arial, sans-serif; }
.ims img { display: block; max-width: 100%; }

.ims-wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ------------------------------ HERO ------------------------------------ */
.ims-hero {
	position: relative;
	overflow: hidden;
	padding: 46px 0 42px;
	background:
		radial-gradient(1100px 460px at 12% -30%, rgba(87, 179, 62, .26), transparent 62%),
		radial-gradient(760px 380px at 92% 0%, rgba(22, 49, 92, .55), transparent 60%),
		linear-gradient(135deg, #253745 0%, #1c2a36 100%);
	color: #fff;
}
.ims-hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ims-grn) 0%, rgba(87, 179, 62, .25) 55%, transparent 100%);
}
.ims-kicker {
	font-size: 11px;
	line-height: 1;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #8fd46f;
	font-weight: 700;
	margin-bottom: 14px;
}
.ims-h1 {
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.22;
	font-weight: 800;
	letter-spacing: -.4px;
	color: #fff;
	max-width: 880px;
	word-break: break-word;
}
.ims-h1 .ims-q { color: #a6e186; }
.ims-meta {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.6;
	color: #aebbc6;
}
.ims-meta .ims-dot { padding: 0 6px; color: #5c6d7a; }

/* search form */
.ims-form {
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 720px;
	margin-top: 26px;
	padding: 6px 6px 6px 14px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(9, 20, 30, .28);
}
.ims-form-ico { display: flex; color: #9aa9b5; flex: 0 0 auto; }
.ims-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 10px;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 16px;
	font-family: inherit;
	color: var(--ims-ink);
	-webkit-appearance: none;
	appearance: none;
}
.ims-form input[type="search"]::placeholder { color: #a5b2bd; }
.ims-form button {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 30px;
	border: 0;
	border-radius: 8px;
	background: var(--ims-grn);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: .01em;
	cursor: pointer;
	transition: background .18s ease;
}
.ims-form button:hover { background: var(--ims-grn-d); }

/* chips */
.ims-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}
.ims-chips-l {
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #8ba0ae;
	margin-right: 2px;
}
.ims-chip {
	display: inline-block;
	padding: 6px 13px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	font-size: 13px;
	line-height: 1.3;
	color: #dbe5eb;
	background: rgba(255, 255, 255, .05);
	transition: all .18s ease;
}
/* 主题 / Elementor kit 的全局链接色优先级更高，这里显式抬高 */
.ims .ims-hero .ims-chip {
	color: #dbe5eb;
	border-color: rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .05);
}
.ims .ims-hero .ims-chip:hover {
	border-color: var(--ims-grn);
	color: #fff;
	background: rgba(87, 179, 62, .26);
}

/* ------------------------------ BODY ------------------------------------ */
.ims-body {
	background: var(--ims-bg);
	padding: 30px 0 64px;
	border-bottom: 1px solid var(--ims-line);
}

/* tabs */
.ims-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 20px;
}
.ims-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--ims-line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--ims-ink2);
	transition: all .18s ease;
}
.ims-tab:hover { border-color: var(--ims-line2); color: var(--ims-ink); }
.ims-tab-n {
	display: inline-block;
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #eef2f4;
	color: var(--ims-mut);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}
.ims-tab.is-on {
	background: var(--ims-ink);
	border-color: var(--ims-ink);
	color: #fff;
}
.ims-tab.is-on .ims-tab-n { background: rgba(255, 255, 255, .18); color: #fff; }

/* result list */
.ims-list {
	display: grid;
	gap: 14px;
}
.ims-card {
	display: grid;
	grid-template-columns: 216px minmax(0, 1fr);
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--ims-line);
	border-radius: var(--ims-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.ims-card:hover {
	border-color: #cfdbe3;
	box-shadow: 0 12px 30px rgba(37, 55, 69, .1);
	transform: translateY(-1px);
}
.ims-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 152px;
	background: #f3f6f8;
	border-right: 1px solid var(--ims-line);
}
.ims-thumb img {
	position: absolute;
	inset: 10px;
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	object-fit: contain;
	object-position: center;
	transition: transform .25s ease;
}
.ims-card:hover .ims-thumb img { transform: scale(1.03); }
.ims-thumb-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 148px;
	color: #b9c6cf;
}
.ims-card-b {
	padding: 18px 24px 18px 22px;
	min-width: 0;
}
.ims-eye {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--ims-mut);
	margin-bottom: 7px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ims-card--product .ims-eye { color: var(--ims-grn-d); }
.ims-title {
	font-size: 18px;
	line-height: 1.38;
	font-weight: 700;
	letter-spacing: -.1px;
	color: var(--ims-ink);
	overflow-wrap: anywhere;
}
.ims-title a { color: inherit; }
.ims-title a:hover { color: var(--ims-grn-d); }
.ims-title mark {
	background: none;
	color: #2c7a1f;
	padding: 0;
}
.ims-desc {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.62;
	color: var(--ims-ink2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ims-more {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ims-grn-d);
}
.ims-card:hover .ims-more { color: #3c8629; }

/* pagination */
.ims-pg {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 30px;
	font-size: 14px;
	line-height: 1;
}
.ims-pg a,
.ims-pg span {
	display: inline-block;
	padding: 10px 14px;
	border: 1px solid var(--ims-line);
	border-radius: 8px;
	background: #fff;
	color: var(--ims-ink2);
	font-weight: 600;
}
.ims-pg a:hover { border-color: var(--ims-ink); color: var(--ims-ink); }
.ims-pg .current {
	background: var(--ims-ink);
	border-color: var(--ims-ink);
	color: #fff;
}
.ims-pg .dots { border: 0; background: transparent; color: var(--ims-mut); }

/* empty state */
.ims-empty {
	padding: 52px 40px 48px;
	background: #fff;
	border: 1px solid var(--ims-line);
	border-radius: 14px;
	text-align: center;
}
.ims-empty-k {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ims-grn-d);
	margin-bottom: 12px;
}
.ims-empty h2 {
	font-size: 24px;
	line-height: 1.35;
	font-weight: 800;
	color: var(--ims-ink);
	overflow-wrap: anywhere;
}
.ims-empty p {
	max-width: 620px;
	margin: 12px auto 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ims-ink2);
}
.ims-empty b { color: var(--ims-ink); }
.ims-chips--center { justify-content: center; margin-top: 20px; }
.ims-chips--center .ims-chip {
	border-color: var(--ims-line2);
	color: var(--ims-ink2);
	background: #fff;
}
.ims-chips--center .ims-chip:hover {
	border-color: var(--ims-grn);
	color: #fff;
	background: var(--ims-grn);
}

/* help card */
.ims-help {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-top: 34px;
	padding: 26px 32px;
	border-radius: 14px;
	background: linear-gradient(120deg, #253745 0%, #1d2b37 100%);
	color: #fff;
}
.ims-help h3 {
	font-size: 19px;
	line-height: 1.35;
	font-weight: 700;
	color: #fff;
}
.ims-help p {
	margin-top: 7px;
	max-width: 640px;
	font-size: 14px;
	line-height: 1.65;
	color: #b3c0ca;
}
.ims-help-a {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}
.ims .ims-btn {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 8px;
	background: var(--ims-grn);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.ims .ims-btn:hover { background: var(--ims-grn-d); color: #fff; }
.ims .ims-btn--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .32);
	color: #e7eef2;
}
.ims .ims-btn--ghost:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .6);
	color: #fff;
}

/* ---------------------------- RESPONSIVE -------------------------------- */
@media (max-width: 900px) {
	.ims-card { grid-template-columns: 168px minmax(0, 1fr); }
	.ims-thumb { min-height: 132px; }
	.ims-thumb-ph { min-height: 132px; }
	.ims-help { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 640px) {
	.ims-wrap { padding: 0 16px; }
	.ims-hero { padding: 30px 0 28px; }
	.ims-h1 { font-size: 23px; }
	.ims-meta { font-size: 13px; }
	.ims-form {
		flex-wrap: wrap;
		padding: 6px;
		gap: 0;
	}
	.ims-form-ico { display: none; }
	.ims-form input[type="search"] { flex: 1 1 100%; height: 44px; padding: 0 12px; }
	.ims-form button { width: 100%; height: 44px; margin-top: 6px; border-radius: 7px; }
	.ims-chips-l { display: none; }
	.ims-body { padding: 22px 0 46px; }
	.ims-card {
		grid-template-columns: 104px minmax(0, 1fr);
		border-radius: 10px;
	}
	.ims-thumb {
		align-self: start;
		aspect-ratio: 4 / 3;
		min-height: 0;
		margin: 10px;
		border: 1px solid var(--ims-line);
		border-radius: 8px;
		overflow: hidden;
	}
	.ims-thumb-ph { min-height: 0; height: 100%; }
	.ims-thumb img { inset: 0; width: 100%; height: 100%; }
	.ims-card-b { padding: 13px 14px 13px 14px; }
	.ims-eye { font-size: 10px; margin-bottom: 5px; }
	.ims-title { font-size: 15px; line-height: 1.4; }
	.ims-desc {
		font-size: 12.5px;
		margin-top: 6px;
		-webkit-line-clamp: 2;
	}
	.ims-more { margin-top: 8px; font-size: 12px; }
	.ims-empty { padding: 36px 20px; }
	.ims-empty h2 { font-size: 19px; }
	.ims-help { padding: 22px; border-radius: 12px; }
	.ims-help-a { flex-direction: column; width: 100%; }
	.ims .ims-btn { text-align: center; }
}
