/**
 * QD 位置 —— 前台卡片样式
 * 自包含：背景与文字色都写死，避免主题深色/浅色影响可读性。
 */
.qdloc {
	--qdloc-accent: #2f6fed;
	box-sizing: border-box;
	margin: 1.3em 0;
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.qdloc *,
.qdloc *::before,
.qdloc *::after {
	box-sizing: border-box;
}

.qdloc-map {
	position: relative;
	width: 100%;
	background: #eef1f5;
	overflow: hidden;
}

.qdloc-map .amap-logo,
.qdloc-map .amap-copyright {
	opacity: 0.85;
}

.qdloc-map-loading {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a94a6;
	font-size: 13px;
}

.qdloc-body {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 13px;
}

.qdloc-pin {
	flex: 0 0 auto;
	line-height: 0;
	color: var(--qdloc-accent);
}

.qdloc-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.qdloc-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #1f2430;
	word-break: break-word;
}

.qdloc-addr {
	font-size: 13px;
	line-height: 1.45;
	color: #6b7482;
	word-break: break-word;
}

.qdloc-coords {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
	font-size: 12px;
	color: #9aa3b2;
}

.qdloc-copy {
	padding: 0;
	border: 0;
	background: none;
	color: var(--qdloc-accent);
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
}

.qdloc-nav {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.qdloc-nav-btn {
	display: inline-block;
	padding: 6px 11px;
	border: 1px solid var(--qdloc-accent);
	border-radius: 8px;
	color: var(--qdloc-accent);
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.qdloc-nav-btn:hover,
.qdloc-nav-btn:focus {
	background: var(--qdloc-accent);
	color: #fff;
	text-decoration: none;
}

@media (max-width: 600px) {
	.qdloc-body {
		flex-wrap: wrap;
	}

	.qdloc-nav {
		width: 100%;
		justify-content: flex-start;
	}

	.qdloc-nav-btn {
		flex: 1 1 auto;
		text-align: center;
	}
}
