/* === 弹窗遮罩 === */
.popup-mask {
	position: fixed; inset: 0; z-index: 99998;
	background: rgba(12, 20, 36, .48);
	backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	animation: exFade .26s ease;
}
@keyframes exFade { from { opacity: 0; } to { opacity: 1; } }

.popup-card {
	position: relative;
	width: 100%; max-width: 400px;
	background: #fff; border-radius: 18px;
	padding: 32px 26px 26px;
	text-align: center;
	box-shadow: 0 24px 70px rgba(12, 20, 36, .30);
	animation: exRise .32s cubic-bezier(.16,1,.3,1);
	border: 1px solid rgba(255,255,255,.7);
}
@keyframes exRise { from { transform: translateY(26px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.popup-x {
	position: absolute; top: 10px; right: 14px;
	background: none; border: none; padding: 4px 8px;
	font-size: 1.5rem; line-height: 1; color: #97a3b6; cursor: pointer;
	transition: color .18s, transform .18s;
}
.popup-x:hover { color: var(--brand); transform: rotate(90deg); }

.popup-card h3 { margin: 0 0 6px; font-size: 1.12rem; color: var(--ink); font-weight: 750; }
.popup-tip { margin: 0 0 18px; font-size: .85rem; color: var(--ink-3); }

.popup-qr {
	display: block; margin: 0 auto 16px;
	width: 176px; height: 176px; object-fit: contain;
	border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff;
}

.popup-row {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 10px 12px; margin-bottom: 8px;
	background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px;
}
.popup-k { font-size: .82rem; color: var(--ink-3); flex-shrink: 0; }
.popup-v { color: var(--ink); font-weight: 650; }
.popup-v.big { font-size: 1.15rem; font-weight: 800; color: var(--brand); letter-spacing: .5px; }

.popup-copy {
	border: none; border-radius: 7px; cursor: pointer;
	padding: 6px 13px; font-size: .82rem; font-weight: 700;
	background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff;
	transition: filter .18s, transform .18s; font-family: inherit;
	flex-shrink: 0;
}
.popup-copy:hover { filter: brightness(1.07); transform: translateY(-1px); }

.popup-hours { margin: 14px 0 0; font-size: .8rem; color: var(--ink-3); }

/* === 右侧跟随面板 ===
   position: absolute —— 关闭瞬间定位到当前滚动位置，之后不再更新，
   因此它会真正随页面上下滚动一起移动，而不是钉在视口上。 */
.sidebar-panel {
	position: absolute;
	right: 0;
	top: 160px;
	z-index: 9997;
	width: 168px;
	background: #fff;
	border: 1px solid var(--line);
	border-right: none;
	border-radius: 12px 0 0 12px;
	padding: 22px 14px 16px;
	text-align: center;
	box-shadow: -8px 8px 30px rgba(12, 20, 36, .14);
}
.side-x {
	position: absolute; top: 4px; left: 10px;
	background: none; border: none; padding: 2px 6px;
	font-size: 1.05rem; line-height: 1; color: #a7b2c4; cursor: pointer;
}
.side-x:hover { color: var(--down); }
.side-title { font-size: .84rem; font-weight: 750; color: var(--ink); margin-bottom: 12px; }
.side-qr {
	display: block; margin: 0 auto 10px;
	width: 112px; height: 112px; object-fit: contain;
	border: 1px solid var(--line); border-radius: 9px; padding: 4px; background: #fff;
}
.side-row { margin-bottom: 8px; }
.side-v { display: block; font-size: .8rem; color: var(--ink); font-weight: 650; margin-bottom: 5px; word-break: break-all; }
.side-copy {
	border: none; border-radius: 6px; cursor: pointer;
	padding: 5px 11px; font-size: .76rem; font-weight: 700;
	background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff;
	font-family: inherit;
}
.side-copy:hover { filter: brightness(1.07); }

/* === 移动端：底部抽屉 === */
@media (max-width: 768px) {
	.popup-mask { align-items: flex-end; padding: 0; }
	.popup-card {
		max-width: 100%;
		border-radius: 18px 18px 0 0;
		padding: 34px 20px 24px;
		animation: exDrawer .34s cubic-bezier(.16,1,.3,1);
	}
	@keyframes exDrawer { from { transform: translateY(100%); } to { transform: translateY(0); } }

	.popup-qr { width: 190px; height: 190px; }
	/* 触控区 >= 48px */
	.popup-copy { min-height: 48px; padding: 6px 20px; font-size: .9rem; }
	.popup-x { min-width: 44px; min-height: 44px; font-size: 1.7rem; top: 4px; right: 6px; }

	.sidebar-panel { right: 8px; width: 140px; padding: 20px 10px 14px; }
	.side-qr { width: 92px; height: 92px; }
	.side-copy { min-height: 44px; padding: 6px 12px; }
}
