/* === 弹窗遮罩 === */
.popup-mask {
	position: fixed; inset: 0; z-index: 99998;
	background: rgba(4, 10, 20, .68);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	animation: tmFade .22s ease;
}
@keyframes tmFade { from { opacity: 0; } to { opacity: 1; } }

.popup-card {
	position: relative;
	width: 100%; max-width: 400px;
	background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy-2) 100%);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	padding: 30px 26px 24px;
	text-align: center;
	box-shadow: var(--shadow-2);
	animation: tmRise .26s ease-out;
}
.popup-card::before {
	content: ""; position: absolute; inset: 5px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	pointer-events: none;
}
@keyframes tmRise { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.popup-x {
	position: absolute; top: 8px; right: 12px; z-index: 2;
	background: none; border: none; padding: 4px 8px;
	font-size: 1.4rem; line-height: 1; color: var(--ink-3); cursor: pointer;
	transition: color .16s;
}
.popup-x:hover { color: var(--gold); }

.popup-card h3 {
	font-family: var(--font-serif);
	margin: 0 0 6px; font-size: 1.12rem; color: #fff; font-weight: 700; letter-spacing: .03em;
}
.popup-tip { margin: 0 0 18px; font-size: .83rem; color: var(--ink-3); }

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

.popup-row {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 10px 12px; margin-bottom: 8px;
	background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.popup-k { font-size: .8rem; color: var(--ink-3); flex-shrink: 0; }
.popup-v { color: #fff; font-weight: 600; }
.popup-v.big { font-size: 1.12rem; font-weight: 700; color: var(--gold); letter-spacing: .04em; font-family: var(--font-mono); }

.popup-copy {
	border: none; border-radius: var(--radius-sm); cursor: pointer;
	padding: 6px 13px; font-size: .8rem; font-weight: 600;
	background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #10203a;
	transition: background .16s; font-family: inherit;
	flex-shrink: 0;
}
.popup-copy:hover { background: linear-gradient(180deg, var(--gold-3), var(--gold)); }

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

/* === 右侧跟随面板 ===
   position: absolute —— 关闭瞬间定位到当前滚动位置，之后不再更新，
   因此会真正随页面上下滚动一起移动，而不是钉在视口上。 */
.sidebar-panel {
	position: absolute;
	right: 0;
	top: 160px;
	z-index: 9997;
	width: 164px;
	background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
	border: 1px solid var(--line-2);
	border-right: none;
	border-radius: var(--radius) 0 0 var(--radius);
	padding: 20px 14px 16px;
	text-align: center;
	box-shadow: -6px 6px 26px rgba(0, 0, 0, .42);
}
.side-x {
	position: absolute; top: 3px; left: 9px;
	background: none; border: none; padding: 2px 6px;
	font-size: 1rem; line-height: 1; color: var(--ink-3); cursor: pointer;
}
.side-x:hover { color: var(--down); }
.side-title {
	font-family: var(--font-serif);
	font-size: .82rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; letter-spacing: .08em;
}
.side-qr {
	display: block; margin: 0 auto 10px;
	width: 108px; height: 108px; object-fit: contain;
	border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 4px; background: #fff;
}
.side-row { margin-bottom: 8px; }
.side-v { display: block; font-size: .78rem; color: #fff; font-weight: 600; margin-bottom: 5px; word-break: break-all; }
.side-copy {
	border: none; border-radius: var(--radius-sm); cursor: pointer;
	padding: 5px 11px; font-size: .74rem; font-weight: 600;
	background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #10203a; font-family: inherit;
}
.side-copy:hover { background: linear-gradient(180deg, var(--gold-3), var(--gold)); }

/* === 移动端：底部抽屉 === */
@media (max-width: 768px) {
	.popup-mask { align-items: flex-end; padding: 0; }
	.popup-card {
		max-width: 100%;
		border-radius: var(--radius) var(--radius) 0 0;
		padding: 32px 20px 24px;
		animation: tmDrawer .28s ease-out;
	}
	@keyframes tmDrawer { from { transform: translateY(100%); } to { transform: translateY(0); } }

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

	.sidebar-panel { right: 8px; width: 138px; padding: 18px 10px 14px; }
	.side-qr { width: 90px; height: 90px; }
	.side-copy { min-height: 44px; padding: 6px 12px; }
}
