/* buy-hall.css v202607062130 弹层避开底部导航 */
.buy-hall-body {
	margin: 0;
	padding: 0;
	background: #f5f5f5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	color: #333;
}
.buy-hall {
	padding-top: 49px;
	padding-bottom: calc(48px + env(safe-area-inset-bottom, 0));
	max-width: 640px;
	margin: 0 auto;
	min-height: 100vh;
	background: #f5f5f5;
}
.buy-hall-head {
	position: sticky;
	top: 49px;
	z-index: 90;
	background: #f5f5f5;
}
/* 包工包料 / 劳务单包 */
.buy-hall-type-tabs {
	display: flex;
	background: #fff;
	border-bottom: 1px solid #eee;
}
.buy-type-tab {
	flex: 1;
	text-align: center;
	padding: 14px 8px 16px;
	font-size: 16px;
	color: #666;
	text-decoration: none;
	position: relative;
	background: #fff;
	border: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.buy-type-tab.on {
	color: #333;
	font-weight: 600;
	background: linear-gradient(180deg, #eef9ee 0%, #fff 100%);
}
.buy-type-tab.on::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #1aad19;
}
/* 白底内容区（筛选 + 列表） */
.buy-hall-card {
	background: #fff;
	border-radius: 12px 12px 0 0;
	overflow: hidden;
	margin-top: 0;
}
.buy-hall-filters {
	display: flex;
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
}
.buy-filter-btn {
	flex: 1;
	border: none;
	background: transparent;
	padding: 14px 2px;
	font-size: 13px;
	font-weight: 700;
	color: #222;
	text-align: center;
	cursor: pointer;
	position: relative;
	-webkit-tap-highlight-color: transparent;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.buy-filter-btn:not(:last-child)::before {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 14px;
	background: #eee;
}
.buy-filter-btn::after {
	content: '▾';
	margin-left: 2px;
	font-size: 10px;
	font-weight: 400;
	color: #bbb;
	vertical-align: 1px;
}
.buy-filter-btn.active {
	color: #1aad19;
}
/* 列表 */
.buy-hall-list {
	background: #fff;
	min-height: 200px;
}
.buy-hall-item {
	display: flex;
	gap: 10px;
	padding: 14px 12px;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
	color: inherit;
	align-items: flex-start;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0.04);
}
.buy-hall-item:active {
	background: #fafafa;
}
.buy-hall-thumb {
	flex: 0 0 120px;
	width: 120px;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: #eee;
}
.buy-hall-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.buy-hall-info {
	flex: 1;
	min-width: 0;
	min-height: 90px;
	display: flex;
	flex-direction: column;
}
.buy-hall-title {
	font-size: 17px;
	font-weight: 700;
	color: #333;
	line-height: 1.45;
	max-height: 3em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-break: break-all;
}
.buy-hall-area {
	margin-top: 6px;
	font-size: 13px;
	color: #666;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.buy-hall-meta {
	margin-top: 8px;
	font-size: 12px;
	color: #999;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.buy-hall-tags {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.buy-hall-tags span {
	font-size: 11px;
	border: none;
	border-radius: 2px;
	padding: 3px 8px;
	line-height: 1.4;
	white-space: nowrap;
}
.buy-hall-tags .tag-cat {
	color: #5c8a9e;
	background: #f0f6f8;
}
.buy-hall-tags .tag-type {
	color: #1aad19;
	background: #eef9ee;
}
.buy-hall-tags .tag-level {
	color: #e8643d;
	background: #fff5f0;
}
.buy-hall-sentinel {
	height: 1px;
}
.buy-hall-status {
	text-align: center;
	padding: 20px 12px 28px;
	font-size: 13px;
	color: #ccc;
	background: #fff;
}
.buy-hall-status.loading {
	color: #1aad19;
}
/* 弹层（底部留出 foot-bar 高度，避免被遮挡） */
.buy-panel-mask {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: calc(48px + env(safe-area-inset-bottom, 0px));
	background: rgba(0, 0, 0, 0.45);
	z-index: 200;
}
.buy-panel-mask.show {
	display: block;
}
.buy-panel {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: calc(48px + env(safe-area-inset-bottom, 0px));
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border-radius: 12px 12px 0 0;
	z-index: 201;
	max-height: calc(70vh - 48px - env(safe-area-inset-bottom, 0px));
	overflow: hidden;
}
.buy-panel.show {
	display: flex;
	flex-direction: column;
}
.buy-panel-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 600;
	border-bottom: 1px solid #f0f0f0;
}
.buy-panel-close {
	border: none;
	background: none;
	font-size: 24px;
	line-height: 1;
	color: #999;
	padding: 0 4px;
	cursor: pointer;
}
.buy-panel-bd {
	padding: 12px 16px 12px;
	flex: 1;
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.buy-panel-ft {
	display: flex;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid #f0f0f0;
	flex-shrink: 0;
}
.buy-panel-reset {
	flex: 1;
	height: 42px;
	border: none;
	border-radius: 4px;
	background: #f5f5f5;
	color: #333;
	font-size: 15px;
	cursor: pointer;
}
.buy-panel-confirm {
	flex: 2;
	height: 42px;
	border: none;
	border-radius: 4px;
	background: #1aad19;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}
#buy-panel-cat .buy-panel-confirm,
#buy-panel-sort .buy-panel-confirm {
	flex: 1;
}
.buy-area-panel {
	display: block;
	padding-bottom: 8px;
}
.buy-area-cols {
	display: flex;
	min-height: 220px;
	max-height: 42vh;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #f0f0f0;
	border-radius: 6px;
}
.buy-area-col {
	flex: 0 0 30%;
	min-width: 96px;
	max-height: 42vh;
	overflow-y: auto;
	border-right: 1px solid #f0f0f0;
	-webkit-overflow-scrolling: touch;
}
.buy-area-col:last-child {
	border-right: none;
}
.buy-area-item {
	display: block;
	width: 100%;
	text-align: left;
	border: none;
	background: #fff;
	padding: 11px 8px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
}
.buy-area-item.on {
	background: #eef9ee;
	color: #1aad19;
	font-weight: 600;
}
.buy-area-picked {
	margin-top: 10px;
	font-size: 13px;
	color: #666;
}
.buy-cat-list button,
.buy-sort-list button {
	display: block;
	width: 100%;
	text-align: left;
	border: none;
	background: #fff;
	padding: 12px 8px;
	font-size: 15px;
	color: #333;
	border-bottom: 1px solid #f5f5f5;
	cursor: pointer;
}
.buy-cat-list button.on,
.buy-sort-list button.on {
	color: #1aad19;
	font-weight: 600;
}
.buy-budget-form label {
	display: block;
	margin-bottom: 12px;
	font-size: 14px;
	color: #333;
}
.buy-budget-form input {
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0 10px;
	font-size: 15px;
}
.buy-budget-ok {
	width: 100%;
	height: 42px;
	border: none;
	border-radius: 4px;
	background: #1aad19;
	color: #fff;
	font-size: 16px;
	margin-top: 8px;
	cursor: pointer;
}
@media screen and (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.buy-hall {
		box-shadow: 0 0 0 1px #ddd;
	}
}
