/* 公路招标雷达 - 前台样式 */
.glbr-bids {
	--glbr-green: #166534;
	--glbr-green-soft: #f0fdf4;
	--glbr-border: #e5e7eb;
	--glbr-muted: #64748b;
	--glbr-text: #0f172a;
	margin: 1.5em 0;
	color: var(--glbr-text);
	font-size: 15px;
	line-height: 1.65;
}

.glbr-bids * {
	box-sizing: border-box;
}

.glbr-list-title {
	margin: 0 0 18px;
	font-size: 24px;
	line-height: 1.3;
}

.glbr-filter {
	margin-bottom: 20px;
	padding: 14px 16px;
	border: 1px solid var(--glbr-border);
	border-radius: 12px;
	background: #f8fafc;
}

.glbr-filter-row {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
}

.glbr-filter-row label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 130px;
	color: var(--glbr-muted);
	font-size: 12px;
	font-weight: 600;
}

.glbr-filter-row select,
.glbr-filter-row input[type="search"] {
	height: 38px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #cfd8e3;
	border-radius: 7px;
	background: #fff;
	color: var(--glbr-text);
	font-size: 13px;
}

.glbr-filter-keyword {
	flex: 1;
	min-width: 180px;
}

.glbr-filter-row button {
	height: 38px;
	padding: 0 18px;
	border: 0;
	border-radius: 7px;
	background: var(--glbr-green);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.glbr-filter-row button:hover {
	background: #14532d;
}

.glbr-filter-reset {
	align-self: center;
	color: var(--glbr-muted);
	font-size: 12px;
	text-decoration: none;
}

.glbr-filter-reset:hover {
	color: var(--glbr-green);
	text-decoration: underline;
}

.glbr-bid-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.glbr-layout-cards .glbr-bid-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.glbr-layout-cards .glbr-bid-card {
	flex-direction: column;
	gap: 12px;
}

.glbr-layout-cards .glbr-bid-date {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
}

.glbr-bid-card {
	display: flex;
	gap: 18px;
	padding: 18px 20px;
	border: 1px solid var(--glbr-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.glbr-bid-card:hover {
	border-color: #bbf7d0;
	box-shadow: 0 8px 24px rgba(22, 101, 52, .08);
	transform: translateY(-1px);
}

.glbr-bid-date {
	flex: 0 0 58px;
	height: 58px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--glbr-green-soft);
	color: var(--glbr-green);
	line-height: 1;
}

.glbr-bid-date span {
	font-size: 23px;
	font-weight: 700;
}

.glbr-bid-date small {
	margin-top: 5px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .03em;
}

.glbr-bid-body {
	flex: 1;
	min-width: 0;
}

.glbr-bid-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 7px;
}

.glbr-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.7;
}

.glbr-tag-region {
	background: #eff6ff;
	color: #1d4ed8;
}

.glbr-tag-type {
	background: #f0fdf4;
	color: #166534;
}

.glbr-tag-deadline {
	background: #fff7ed;
	color: #9a3412;
}

.glbr-tag-project {
	background: #f5f3ff;
	color: #6d28d9;
}

.glbr-tag-soon {
	background: #fee2e2;
	color: #b91c1c;
}

.glbr-tag-closed {
	background: #f1f5f9;
	color: #64748b;
}

.glbr-tag-deadline.is-soon {
	background: #fee2e2;
	color: #b91c1c;
}

.glbr-bid-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.55;
}

.glbr-bid-title a {
	color: var(--glbr-text);
	text-decoration: none;
}

.glbr-bid-title a:hover {
	color: var(--glbr-green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.glbr-bid-summary {
	margin: 0 0 8px;
	color: var(--glbr-muted);
	font-size: 13px;
	line-height: 1.65;
}

.glbr-bid-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	color: #94a3b8;
	font-size: 12px;
}

.glbr-budget {
	color: #b45309;
	font-weight: 700;
}

.glbr-origin {
	color: var(--glbr-green);
	text-decoration: none;
	font-weight: 600;
}

.glbr-origin:hover {
	text-decoration: underline;
}

.glbr-cost-link {
	color: #b45309;
	text-decoration: none;
	font-weight: 600;
}

.glbr-cost-link:hover {
	text-decoration: underline;
}

.glbr-cost-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 20px;
	padding: 18px 20px;
	border: 1px solid #fed7aa;
	border-radius: 12px;
	background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.glbr-cost-cta strong {
	display: block;
	margin-bottom: 4px;
	color: #9a3412;
	font-size: 15px;
}

.glbr-cost-cta p {
	margin: 0;
	color: #78716c;
	font-size: 12.5px;
	line-height: 1.6;
}

.glbr-cost-btn {
	flex: 0 0 auto;
	padding: 10px 16px;
	border-radius: 8px;
	background: #ea580c;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.glbr-cost-btn:hover {
	background: #c2410c;
}

.glbr-no-results {
	padding: 40px 20px;
	border: 1px dashed #cfd8e3;
	border-radius: 12px;
	background: #f8fafc;
	color: var(--glbr-muted);
	text-align: center;
}

.glbr-pagination {
	margin-top: 22px;
	text-align: center;
}

.glbr-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.glbr-pagination ul.page-numbers li {
	margin: 0;
}

.glbr-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--glbr-border);
	border-radius: 7px;
	background: #fff;
	color: #475569;
	font-size: 13px;
	text-decoration: none;
}

.glbr-pagination .page-numbers.current {
	border-color: var(--glbr-green);
	background: var(--glbr-green);
	color: #fff;
}

.glbr-pagination .page-numbers:hover:not(.current) {
	border-color: #86efac;
	color: var(--glbr-green);
}

/* 详情页 */
.glbr-detail-meta {
	margin: 0 0 20px;
	padding: 4px 20px;
	border: 1px solid var(--glbr-border);
	border-radius: 12px;
	background: #f8fafc;
}

.glbr-detail-meta table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.glbr-detail-meta th,
.glbr-detail-meta td {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px dashed #e2e8f0;
	background: transparent;
	font-size: 13px;
	text-align: left;
	vertical-align: top;
}

.glbr-detail-meta tr:last-child th,
.glbr-detail-meta tr:last-child td {
	border-bottom: 0;
}

.glbr-detail-meta th {
	width: 100px;
	color: #64748b;
	font-weight: 500;
}

.glbr-detail-meta a {
	color: var(--glbr-green);
}

.glbr-disclaimer {
	margin-top: 26px;
	padding: 14px 18px;
	border-left: 4px solid #86efac;
	border-radius: 0 8px 8px 0;
	background: #f0fdf4;
	color: #3f6212;
	font-size: 12.5px;
	line-height: 1.7;
}

.glbr-disclaimer p {
	margin: 0 0 6px;
}

.glbr-disclaimer p:last-child {
	margin-bottom: 0;
}

.glbr-disclaimer a {
	color: #166534;
	font-weight: 600;
}

@media (max-width: 760px) {
	.glbr-layout-cards .glbr-bid-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.glbr-cost-cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.glbr-cost-btn {
		width: 100%;
		text-align: center;
	}

	.glbr-bid-card {
		gap: 12px;
		padding: 15px;
	}

	.glbr-bid-date {
		flex-basis: 48px;
		height: 48px;
	}

	.glbr-bid-date span {
		font-size: 19px;
	}

	.glbr-bid-title {
		font-size: 16px;
	}

	.glbr-filter-row label {
		min-width: 100%;
	}

	.glbr-filter-keyword {
		min-width: 100%;
	}

	.glbr-filter-row button {
		width: 100%;
	}
}
