.offramp-archive-filter-wrap {
	margin: 14px 0 24px !important;
	padding: 18px 22px 16px !important;
	border: 1px solid #ebebeb !important;
	border-radius: 16px !important;
	background: rgba(255, 255, 255, 0.92) !important;
	box-shadow: none !important;
	position: relative;
	z-index: 1;
	max-width: 1380px;
	backdrop-filter: blur(2px);
}

.offramp-archive-filter-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	column-gap: 18px;
	row-gap: 6px;
	margin-bottom: 12px;
}

.offramp-archive-filter-title {
	margin: 0;
	font-size: 26px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: #111111;
}

.offramp-archive-filter-subtitle {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #a3a3a3;
}

/* V3：已筛选状态下沉，单独占一行 */
.offramp-archive-filter-active {
	display: block;
	width: 100%;
	margin: 2px 0 12px;
	padding-top: 10px;
	border-top: 1px solid #f1f1f1;
	font-size: 11px;
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #9ca3af;
	white-space: normal;
}

.offramp-archive-filter-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 12px;
	align-items: end;
}

.offramp-archive-filter-field {
	position: relative;
	min-width: 0;
}

.offramp-archive-filter-field::before,
.offramp-archive-filter-field::after,
.offramp-archive-filter-wrap .offramp-native-select::before,
.offramp-archive-filter-wrap .offramp-native-select::after,
.offramp-archive-filter-wrap select.offramp-native-select::before,
.offramp-archive-filter-wrap select.offramp-native-select::after {
	display: none !important;
	content: none !important;
}

.offramp-archive-filter-field label {
	display: block;
	margin: 0 0 7px;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #111111;
}

.offramp-archive-filter-wrap .nice-select::after,
.offramp-archive-filter-wrap .select2-selection__arrow,
.offramp-archive-filter-wrap .wpcf7-form-control-wrap::after,
.offramp-archive-filter-wrap .woocommerce-input-wrapper::after {
	display: none !important;
}

.offramp-archive-filter-wrap .offramp-native-select,
.offramp-archive-filter-wrap select.offramp-native-select,
.woocommerce .offramp-archive-filter-wrap select.offramp-native-select,
.woocommerce-page .offramp-archive-filter-wrap select.offramp-native-select {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	display: block !important;
	float: none !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: 50px !important;
	padding: 0 42px 0 16px !important;
	margin: 0 !important;
	border: 1px solid #dcdcdc !important;
	border-radius: 13px !important;
	background-color: #ffffff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 15px center !important;
	background-size: 14px 14px !important;
	box-shadow: none !important;
	color: #222222 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 48px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-indent: 0 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
	outline: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.offramp-archive-filter-wrap .offramp-native-select::-ms-expand,
.offramp-archive-filter-wrap select.offramp-native-select::-ms-expand {
	display: none !important;
}

.offramp-archive-filter-wrap .offramp-native-select:hover,
.offramp-archive-filter-wrap select.offramp-native-select:hover {
	border-color: #bebebe !important;
}

.offramp-archive-filter-wrap .offramp-native-select:focus,
.offramp-archive-filter-wrap select.offramp-native-select:focus,
.woocommerce .offramp-archive-filter-wrap select.offramp-native-select:focus,
.woocommerce-page .offramp-archive-filter-wrap select.offramp-native-select:focus {
	outline: none !important;
	border-color: #111111 !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.05) !important;
}

.offramp-archive-filter-wrap .offramp-native-select:disabled,
.offramp-archive-filter-wrap select.offramp-native-select:disabled {
	background-color: #f7f7f7 !important;
	color: #a3a3a3 !important;
	border-color: #ececec !important;
	cursor: not-allowed !important;
	opacity: 1 !important;
}

.offramp-archive-filter-wrap .offramp-native-select option,
.offramp-archive-filter-wrap select.offramp-native-select option {
	color: #111111 !important;
	background: #ffffff !important;
}

.offramp-archive-filter-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	min-width: 246px;
}

.offramp-archive-filter-btn,
.offramp-archive-filter-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	height: 50px;
	padding: 0 20px;
	border: 1.5px solid #111111;
	border-radius: 13px;
	background: #ffffff;
	color: #111111;
	font-size: 14px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.offramp-archive-filter-btn.is-primary,
.offramp-archive-filter-btn.is-primary:visited {
	background: #111111;
	color: #ffffff;
	border-color: #111111;
}

.offramp-archive-filter-btn:hover,
.offramp-archive-filter-btn:focus {
	transform: translateY(-1px);
	text-decoration: none;
}

.offramp-archive-filter-btn:not(.is-primary):hover,
.offramp-archive-filter-btn:not(.is-primary):focus {
	background: #111111;
	color: #ffffff;
	border-color: #111111;
}

.offramp-archive-filter-btn.is-primary:hover,
.offramp-archive-filter-btn.is-primary:focus {
	background: #111111;
	color: #ffffff;
	border-color: #111111;
}

.offramp-archive-filter-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.woocommerce .offramp-archive-filter-wrap,
.woocommerce-page .offramp-archive-filter-wrap {
	clear: both;
}

/* V3：让筛选模块和下方主题工具栏更明确分层 */
.offramp-archive-filter-wrap + * {
	margin-top: 16px !important;
}

/* 桌面中等宽度 */
@media (max-width: 1360px) {
	.offramp-archive-filter-wrap {
		padding: 16px 18px 15px !important;
		max-width: 100%;
	}

	.offramp-archive-filter-title {
		font-size: 24px;
	}

	.offramp-archive-filter-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.offramp-archive-filter-actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
		min-width: 0;
	}
}

/* 平板 */
@media (max-width: 991px) {
	.offramp-archive-filter-wrap {
		padding: 16px 16px 14px !important;
		border-radius: 15px !important;
		margin: 10px 0 18px !important;
	}

	.offramp-archive-filter-head {
		margin-bottom: 10px;
	}

	.offramp-archive-filter-title {
		font-size: 22px;
	}

	.offramp-archive-filter-active {
		margin-bottom: 10px;
	}

	.offramp-archive-filter-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.offramp-archive-filter-actions {
		justify-content: flex-start;
	}
}

/* 手机 */
@media (max-width: 640px) {
	.offramp-archive-filter-wrap {
		padding: 14px 14px 13px !important;
		border-radius: 14px !important;
		margin-top: 10px !important;
		margin-bottom: 16px !important;
	}

	.offramp-archive-filter-title {
		font-size: 20px;
		line-height: 1.05;
	}

	.offramp-archive-filter-subtitle,
	.offramp-archive-filter-active {
		font-size: 10px;
		line-height: 1.4;
	}

	.offramp-archive-filter-field label {
		margin-bottom: 6px;
		font-size: 11px;
	}

	.offramp-archive-filter-wrap .offramp-native-select,
	.offramp-archive-filter-wrap select.offramp-native-select,
	.woocommerce .offramp-archive-filter-wrap select.offramp-native-select,
	.woocommerce-page .offramp-archive-filter-wrap select.offramp-native-select {
		height: 46px !important;
		line-height: 44px !important;
		padding: 0 40px 0 15px !important;
		font-size: 14px !important;
		border-radius: 12px !important;
		background-position: right 14px center !important;
	}

	.offramp-archive-filter-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
		gap: 10px;
	}

	.offramp-archive-filter-btn,
	.offramp-archive-filter-btn:visited {
		width: 100%;
		min-width: 0;
		height: 46px;
		font-size: 14px;
		border-radius: 12px;
		padding: 0 14px;
	}
}

.offramp-archive-filter-btn:disabled,
.offramp-archive-filter-btn[disabled] {
	opacity: 0.45 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
	transform: none !important;
	box-shadow: none !important;
}

.offramp-archive-filter-btn:not(.is-primary):hover,
.offramp-archive-filter-btn:not(.is-primary):focus {
	background: #111111 !important;
	color: #ffffff !important;
	border-color: #111111 !important;
}
