/* === 以下为 header.html 内联样式整合 === */

/* 响应式导航：纯 CSS 控制，不依赖 Tailwind 响应式前缀 */
.desktop-nav, .desktop-phone-btn { display: none; }
.mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 768px) {
	.desktop-nav { display: flex !important; }
	.desktop-phone-btn { display: flex !important; }
	.mobile-menu-btn { display: none !important; }
}

/* 移动端侧滑菜单 */
.mobile-nav {
	position: fixed;
	top: 0;
	right: -100%;
	width: 80%;
	max-width: 350px;
	height: 100vh;
	background-color: white;
	transition: right 0.3s ease-in-out;
	z-index: 50;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	overflow-y: auto;
}
.mobile-nav.open { right: 0; }

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 40;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out;
}
.overlay.open { opacity: 1; visibility: visible; }

/* 移动端底部吸附栏 */
.mobile-bottom-bar { display: none; }
@media (max-width: 767px) {
	.mobile-bottom-bar {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 45;
		gap: 8px;
		padding: 6px 12px;
		padding-bottom: max(6px, env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #e5e7eb;
		box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
	}
	.bottom-bar-btn {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		padding: 10px 16px;
		text-decoration: none;
		font-size: 14px;
		font-weight: 700;
		border-radius: 8px;
		border: none;
		cursor: pointer;
		transition: all 0.15s;
	}
	.bottom-bar-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
	.bottom-bar-phone {
		background: linear-gradient(135deg, #2563eb, #1d4ed8);
		color: #fff;
		box-shadow: 0 2px 8px rgba(37,99,235,0.25);
	}
	.bottom-bar-phone:active { opacity: 0.9; transform: scale(0.97); }
	.bottom-bar-wechat {
		background: linear-gradient(135deg, #07c160, #06ad56);
		color: #fff;
		box-shadow: 0 2px 8px rgba(7,193,96,0.25);
	}
	.bottom-bar-wechat:active { opacity: 0.9; transform: scale(0.97); }
	/* 页面底部留出空间给吸附栏 */
	body { padding-bottom: 50px; }
}

/* 微信复制提示框 */
.wechat-dialog-overlay {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.5); z-index: 999;
	display: flex; align-items: center; justify-content: center;
	animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.wechat-dialog {
	background: #fff; border-radius: 16px; padding: 32px 28px 24px;
	width: 300px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
	animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.wechat-dialog-check {
	width: 56px; height: 56px; border-radius: 50%; background: #07c160;
	color: #fff; font-size: 28px; font-weight: 700; line-height: 56px;
	margin: 0 auto 16px;
}
.wechat-dialog-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.wechat-dialog-id {
	display: inline-block; padding: 6px 20px; background: #f0fdf4;
	color: #059669; font-size: 20px; font-weight: 800; letter-spacing: 1px;
	border-radius: 8px; margin-bottom: 10px;
}
.wechat-dialog-sub { font-size: 13px; color: #9ca3af; margin-bottom: 20px; line-height: 1.5; }
.wechat-dialog-btn {
	width: 100%; padding: 12px; border: none; border-radius: 10px;
	background: linear-gradient(135deg, #07c160, #06ad56); color: #fff;
	font-size: 16px; font-weight: 700; cursor: pointer; margin-bottom: 8px;
}
.wechat-dialog-btn:active { opacity: 0.9; transform: scale(0.98); }
.wechat-dialog-close {
	background: none; border: none; color: #9ca3af; font-size: 13px;
	cursor: pointer; padding: 6px;
}
.wechat-dialog-close:hover { color: #6b7280; }
