/* ============================================================
   AI 教程站 — 样式表
   使用 Bootstrap 5 + 自定义样式
   颜色变量统一管理，支持深色模式扩展
   ============================================================ */

/* ========== CSS 变量（设计令牌） ========== */
:root {
	--color-primary: #4361ee;
	--color-primary-light: #eef0ff;
	--color-primary-dark: #3a56d4;
	--color-accent: #7209b7;
	--color-success: #06d6a0;
	--color-warning: #ffd166;
	--color-danger: #ef476f;
	--color-bg: #ffffff;
	--color-bg-alt: #f8f9fc;
	--color-text: #1e293b;
	--color-text-secondary: #64748b;
	--color-text-muted: #94a3b8;
	--color-border: #e2e8f0;
	--color-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	--color-card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--radius-xl: 28px;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 全局重置 ========== */
html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	color: var(--color-text);
	background: var(--color-bg);
	overflow-x: hidden;
}

/* ========== 导航栏 ========== */
#mainNav {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--color-border);
	transition: var(--transition);
	z-index: 1000;
}

#mainNav .navbar-brand {
	font-size: 1.25rem;
	color: #000;
}

#mainNav .nav-link {
	color: var(--color-text-secondary);
	font-weight: 500;
	padding: 0.5rem 1rem;
	transition: var(--transition);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
	color: var(--color-primary);
}

/* ========== Hero 主视觉区 ========== */
.hero-section {
	position: relative;
	background: linear-gradient(135deg, #eef0ff 0%, #f8f9fc 40%, #fdf2f8 70%, #eef0ff 100%);
	overflow: hidden;
}

/* 装饰性浮动形状 */
.hero-bg-shapes .shape {
	position: absolute;
	border-radius: 50%;
	opacity: 0.15;
	animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
	width: 300px;
	height: 300px;
	background: var(--color-primary);
	top: -100px;
	right: -50px;
	animation-delay: 0s;
}

.shape-2 {
	width: 200px;
	height: 200px;
	background: var(--color-accent);
	bottom: 10%;
	left: -80px;
	animation-delay: -7s;
}

.shape-3 {
	width: 150px;
	height: 150px;
	background: var(--color-success);
	top: 40%;
	right: 20%;
	animation-delay: -14s;
}

@keyframes floatShape {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(30px, -30px) scale(1.1); }
	50% { transform: translate(-20px, 20px) scale(0.9); }
	75% { transform: translate(10px, 40px) scale(1.05); }
}

/* Hero 标题 */
.hero-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--color-text);
	letter-spacing: -0.02em;
}

/* 渐变文字 */
.text-gradient {
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtitle {
	font-size: 1.125rem;
	color: var(--color-text-secondary);
	line-height: 1.8;
}

/* 信任指标 */
.hero-stats {
	max-width: 480px;
	margin: 0 auto;
}

.stat-item {
	padding: 0.5rem;
}

.stat-number {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-primary);
}

.stat-label {
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

/* 向下滚动指示器 */
.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
}

.scroll-mouse {
	width: 24px;
	height: 36px;
	border: 2px solid var(--color-text-muted);
	border-radius: 12px;
	margin: 8px auto 0;
	position: relative;
}

.scroll-mouse::after {
	content: '';
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 8px;
	background: var(--color-primary);
	border-radius: 2px;
	animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
	0% { opacity: 1; top: 6px; }
	100% { opacity: 0; top: 18px; }
}

/* ========== 通用区块 ========== */
.section-padding {
	padding: 5rem 0;
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: #000;
}

.section-desc {
	font-size: 1.05rem;
	color: var(--color-text-secondary);
}

/* ========== 教程卡片 ========== */
.tutorial-card {
	position: relative;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	cursor: pointer;
	transition: var(--transition);
	overflow: hidden;
}

.tutorial-card.active:hover {
	border-color: var(--color-primary);
	box-shadow: var(--color-card-hover-shadow);
	transform: translateY(-4px);
}

.tutorial-card.coming-soon {
	opacity: 0.6;
	cursor: default;
	background: var(--color-bg-alt);
	border-style: dashed;
}

.card-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 0.7rem;
	padding: 0.25rem 0.6rem;
	border-radius: 50px;
	font-weight: 600;
	color: #fff;
}

.card-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.card-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.card-desc {
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	line-height: 1.6;
	margin-bottom: 1rem;
}

.card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.78rem;
	color: var(--color-text-muted);
}

/* ========== 环境选择器 ========== */
.env-selector-bar {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1rem 1.25rem;
}

.os-btn i {
	margin-right: 0.3rem;
}

/* ========== 步骤侧边栏 ========== */
.step-sidebar {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: sticky;
	top: 5rem;
}

.step-sidebar-header {
	background: var(--color-bg-alt);
	padding: 1rem 1.25rem;
	font-weight: 700;
	font-size: 0.9rem;
	border-bottom: 1px solid var(--color-border);
}

.step-list {
	padding: 0.5rem;
}

/* 单个步骤项 */
.step-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 0.75rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
	border: 2px solid transparent;
	margin-bottom: 2px;
}

.step-item:hover {
	background: var(--color-bg-alt);
}

.step-item.current {
	background: var(--color-primary-light);
	border-color: var(--color-primary);
	box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}

.step-item.completed .step-number {
	background: var(--color-success);
	color: #fff;
}

.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--color-bg-alt);
	color: var(--color-text-muted);
	font-size: 0.75rem;
	font-weight: 700;
	flex-shrink: 0;
	transition: var(--transition);
}

.step-item.current .step-number {
	background: var(--color-primary);
	color: #fff;
}

.step-item.completed .step-number i {
	font-size: 0.7rem;
}

.step-info {
	flex: 1;
	min-width: 0;
}

.step-info .step-title {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ========== 步骤详情内容区 ========== */
.step-content {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
}

.step-image-container {
	position: relative;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 1.5rem;
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.step-image-placeholder {
	text-align: center;
	color: var(--color-text-muted);
}

.step-image-placeholder i {
	font-size: 3rem;
	margin-bottom: 0.5rem;
	display: block;
}

/* 代码命令块 */
.command-block {
	background: #1e293b;
	color: #e2e8f0;
	border-radius: var(--radius-sm);
	padding: 1rem 1.25rem;
	font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
	font-size: 0.875rem;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.command-block code {
	color: #a5f0c5;
}

.copy-btn {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	font-size: 0.75rem;
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
}

.copy-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
	background: var(--color-success);
	border-color: var(--color-success);
}

/* 公式行内复制按钮 */
.formula-group {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.formula-copy-btn {
	background: transparent;
	border: 1px solid transparent;
	color: var(--color-primary);
	padding: 0 4px;
	border-radius: 4px;
	font-size: 0.7rem;
	cursor: pointer;
	transition: var(--transition);
	line-height: 1;
	vertical-align: middle;
	opacity: 0.6;
}

.formula-copy-btn:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.05);
	border-color: var(--color-primary);
}

.formula-copy-btn.copied {
	opacity: 1;
	color: var(--color-success);
	border-color: var(--color-success);
	background: rgba(40, 167, 69, 0.1);
}

/* 提示框 */
.tips-box {
	text-align: center;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: var(--radius-sm);
	padding: 1rem 1.25rem;
}

.tips-box.warning-box {
	background: #fef2f2;
	border-color: #fecaca;
}

.tips-box ul {
	list-style: none;
	padding-left: 0;
	text-align: center;
	margin-bottom: 0;
	padding-left: 1.25rem;
}

.tips-box li {
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* ========== 特色卡片 ========== */
.feature-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2.5rem 2rem;
	transition: var(--transition);
}

.feature-card:hover {
	box-shadow: var(--color-card-hover-shadow);
	transform: translateY(-2px);
}

.feature-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: var(--color-primary-light);
	color: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin: 0 auto 1.25rem;
}

/* ========== 怎么用卡片 ========== */
.how-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2.5rem 2rem;
	position: relative;
	transition: var(--transition);
}

.how-card:hover {
	box-shadow: var(--color-card-hover-shadow);
}

.how-number {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

/* ========== 底部栏 ========== */
.footer {
	background: var(--color-bg-alt);
	border-top: 1px solid var(--color-border);
	padding: 1.5rem 0;
	font-size: 0.875rem;
}

.footer-beian {
	color: var(--color-text-muted);
	font-size: 0.8rem;
	text-decoration: none;
	transition: var(--transition);
}

.footer-beian:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

/* ========== AI 聊天浮窗 ========== */
.ai-chat-toggle {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 1050;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4);
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ai-chat-toggle:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 28px rgba(67, 97, 238, 0.5);
}

/* 在线脉冲点 */
.ai-pulse-dot {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 12px;
	height: 12px;
	background: var(--color-success);
	border: 2px solid #fff;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.4); }
	50% { box-shadow: 0 0 0 8px rgba(6, 214, 160, 0); }
}

/* 聊天面板 */
.ai-chat-panel {
	position: fixed;
	bottom: 5.5rem;
	right: 1.5rem;
	z-index: 1040;
	width: 380px;
	max-width: calc(100vw - 2rem);
	height: 520px;
	max-height: calc(100vh - 8rem);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.ai-chat-header {
	background: var(--color-primary);
	color: #fff;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ai-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* 消息气泡 */
.message-bubble {
	max-width: 90%;
	padding: 0.65rem 0.9rem;
	border-radius: 14px;
	font-size: 0.82rem;
	line-height: 1.6;
	word-break: break-word;
}

.ai-message-bot .message-bubble {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-bottom-left-radius: 4px;
}

.ai-message-user {
	align-self: flex-end;
	max-width: 90%;
}

.ai-message-user .message-bubble {
	background: var(--color-primary);
	color: #fff;
	border-bottom-right-radius: 4px;
	display: inline-block;
	max-width: 100%;
	word-break: normal;
	overflow-wrap: break-word;
}

.ai-chat-input {
	padding: 0.75rem;
	border-top: 1px solid var(--color-border);
	background: var(--color-bg);
}

.ai-quick-questions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.ai-quick-questions .btn {
	font-size: 0.72rem;
}

/* AI 回复下方关联教程链接 */
.related-tutorial-links {
	margin-top: 0.5rem;
}

.related-tutorial-title {
	font-size: 0.72rem;
	color: var(--color-text-muted);
	margin-bottom: 0.35rem;
}

.related-tutorial-btn {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.35rem 0.6rem;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	color: var(--color-primary);
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s;
}

.related-tutorial-btn:hover {
	background: rgba(13, 110, 253, 0.08);
}

.related-tutorial-btn:last-child {
	margin-bottom: 0;
}

/* ========== 按钮图标 ========== */
.btn-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

/* ========== 平台标签 ========== */
.platform-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--color-primary-light);
	color: var(--color-primary);
	border: 1px solid rgba(67, 97, 238, 0.2);
	padding: 0.25rem 0.7rem;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 600;
}

/* ========== 步骤描述文字 ========== */
.step-desc {
	color: var(--color-text-secondary);
	font-size: 0.95rem;
}

/* ========== 步骤完成提示 Toast ========== */
.step-completion-toast {
	position: fixed;
	top: 5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1060;
	background: #10b981;
	color: #fff;
	padding: 0.7rem 1.5rem;
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
	animation: toastSlideDown 0.4s ease-out;
	white-space: nowrap;
}

@keyframes toastSlideDown {
	from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
	to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========== 首次访问欢迎提示 ========== */
.step-welcome-hint {
	animation: toastSlideDown 0.4s ease-out;
}

/* ========== 视觉引导图（步骤1和2用的HTML/CSS示意图） ========== */
.visual-guide {
	background: #fafbfc;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	overflow: hidden;
	font-size: 0.8rem;
	user-select: none;
}

/* --- 步骤编号圆点（标注用） --- */
.vg-step-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: var(--color-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 0.65rem;
	font-weight: 700;
	flex-shrink: 0;
	animation: vgPulse 2s infinite;
}

@keyframes vgPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
	50% { box-shadow: 0 0 0 6px rgba(67, 97, 238, 0); }
}

.vg-highlight {
	background: #fffbeb !important;
	border: 2px solid #f59e0b !important;
	border-radius: 6px;
	padding: 0.4rem 0.6rem;
	animation: vgHighlightPulse 2s infinite;
}

@keyframes vgHighlightPulse {
	0%, 100% { border-color: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
	50% { border-color: #d97706; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1); }
}

/* --- macOS系统信息示意图 --- */
.visual-guide-macos {
	padding: 0;
}

.vg-macos-menubar {
	background: #2d2d2d;
	color: #e0e0e0;
	padding: 0.5rem 0.8rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	font-size: 0.72rem;
}

.vg-apple-logo {
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 50% 50% 50% 50%;
	position: relative;
	flex-shrink: 0;
}

.vg-menubar-item {
	color: #aaa;
}

.vg-active-menu {
	color: #fff;
	background: #4a7ef7;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

/* 箭头从菜单到弹窗 */
.vg-arrow-down {
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #2d2d2d;
	margin-left: 2rem;
}

.vg-about-window {
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 10px;
	margin: 0.5rem 1rem 1rem;
	box-shadow: 0 8px 30px rgba(0,0,0,0.15);
	overflow: hidden;
}

.vg-about-header {
	text-align: center;
	font-weight: 700;
	padding: 0.6rem;
	border-bottom: 1px solid #e5e5e5;
	font-size: 0.85rem;
}

.vg-about-tabs {
	display: flex;
	border-bottom: 1px solid #e5e5e5;
	padding: 0 0.8rem;
	gap: 0.3rem;
}

.vg-tab {
	padding: 0.4rem 0.8rem;
	font-size: 0.7rem;
	color: #888;
	border-bottom: 2px solid transparent;
}

.vg-tab.active {
	color: var(--color-primary);
	border-bottom-color: var(--color-primary);
	font-weight: 600;
}

.vg-about-body {
	padding: 0.8rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.vg-info-line {
	padding: 0.3rem 0.5rem;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.vg-info-line.muted {
	color: #999;
}

.vg-label {
	font-weight: 600;
	font-size: 0.7rem;
	color: #666;
	min-width: 50px;
}

.vg-value {
	font-weight: 700;
	font-size: 0.85rem;
	color: #000;
}

/* --- Windows系统信息示意图 --- */
.visual-guide-windows {
	padding: 0;
}

.vg-win-window {
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.vg-win-titlebar {
	background: #0078d4;
	color: #fff;
	padding: 0.5rem 1rem;
	font-size: 0.78rem;
	font-weight: 600;
}

.vg-win-body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vg-win-row {
	padding: 0.4rem 0.5rem;
	border-radius: 4px;
	font-size: 0.78rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.vg-win-row.muted {
	color: #888;
}

/* --- Node.js 下载示意图 --- */
.visual-guide-nodejs {
	padding: 0;
}

.vg-browser-bar {
	background: #e8eaed;
	padding: 0.5rem 0.8rem;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	display: flex;
	align-items: center;
}

.vg-url-text {
	background: #fff;
	padding: 0.25rem 0.7rem;
	border-radius: 6px;
	font-size: 0.72rem;
	color: #5f6368;
}

.vg-download-section {
	padding: 1rem;
}

.vg-download-buttons {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
	justify-content: center;
}

.vg-dl-btn {
	padding: 0.8rem 1.5rem;
	border-radius: 10px;
	text-align: center;
	min-width: 100px;
	position: relative;
}

.vg-dl-lts {
	background: #5fa04e;
	color: #fff;
	box-shadow: 0 4px 16px rgba(95, 160, 78, 0.4);
	animation: vgHighlightPulse 2s infinite;
}

.vg-dl-current {
	background: #e0e0e0;
	color: #888;
	opacity: 0.6;
}

.vg-dl-version {
	font-size: 0.85rem;
	font-weight: 700;
}

.vg-dl-label {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.vg-recommend-badge {
	position: absolute;
	top: -10px;
	right: -10px;
	background: #f59e0b;
	color: #fff;
	font-size: 0.6rem;
	font-weight: 700;
	padding: 0.15rem 0.4rem;
	border-radius: 50px;
	animation: vgBounce 1.5s infinite;
}

@keyframes vgBounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

.vg-platform-area {
	margin-bottom: 0.8rem;
}

.vg-platform-label {
	font-weight: 600;
	font-size: 0.75rem;
	margin-bottom: 0.4rem;
	color: var(--color-text-secondary);
}

.vg-installer-options {
	display: flex;
	gap: 0.5rem;
}

.vg-installer-card {
	flex: 1;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: #fff;
	position: relative;
}

.vg-installer-card.muted {
	opacity: 0.5;
}

.vg-installer-card.vg-highlight {
	border-color: var(--color-primary);
	background: var(--color-primary-light);
}

.vg-card-title {
	font-weight: 700;
	font-size: 0.78rem;
	margin-bottom: 0.2rem;
}

.vg-card-sub {
	font-size: 0.68rem;
	color: var(--color-text-secondary);
}

.vg-terminal-hint {
	margin-top: 0.8rem;
	padding: 0.5rem 0.7rem;
	background: #1e293b;
	color: #a5f0c5;
	border-radius: 6px;
	font-size: 0.72rem;
	font-family: 'SF Mono', 'JetBrains Mono', monospace;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.vg-terminal-hint i {
	color: #fff;
}

/* --- Windows 复选框高亮 --- */
.vg-checkbox-highlight {
	margin-top: 0.8rem;
	padding: 0.6rem 0.8rem;
	background: #fef3c7;
	border: 2px solid #f59e0b;
	border-radius: 8px;
	animation: vgHighlightPulse 2s infinite;
}

.vg-checkbox-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.3rem;
}

.vg-checkbox {
	font-size: 1rem;
	line-height: 1;
}

.vg-checkbox.checked {
	color: #10b981;
}

.vg-checkbox-text {
	font-size: 0.8rem;
}

.vg-checkbox-note {
	font-size: 0.72rem;
	color: var(--color-text-secondary);
}

/* --- 视觉引导图底部标注 --- */
.vg-annotation {
	margin-top: 1rem;
	padding: 0.7rem 0.8rem;
	background: #f0f9ff;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vg-annotation-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

.vg-annotation-item .vg-step-dot {
	flex-shrink: 0;
	margin-top: 1px;
}

/* ========== 安装方式区块（步骤2多方法展示） ========== */
.method-section {
	margin-bottom: 1.5rem;
}

.method-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 2rem 0 1.5rem;
	color: var(--color-text-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

.method-divider::before,
.method-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--color-border);
}

.method-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.method-desc {
	color: var(--color-text-secondary);
	font-size: 0.9rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}

/* --- 前置步骤卡片 --- */
.prerequisite-card {
	background: linear-gradient(135deg, #fff7ed, #fff1f2);
	border: 2px solid #f97316;
	border-radius: var(--radius-md);
	padding: 1.25rem;
	margin-bottom: 1rem;
	position: relative;
}

.prerequisite-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	background: #f97316;
	color: #fff;
	padding: 0.2rem 0.7rem;
	border-radius: 50px;
	font-size: 0.7rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.prerequisite-card .prerequisite-desc {
	font-size: 0.88rem;
	color: var(--color-text-secondary);
	line-height: 1.6;
	margin-bottom: 0.75rem;
}

.prerequisite-card .command-block {
	margin-bottom: 0.5rem;
}

/* --- 安装步骤卡片列表 --- */
.install-steps {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.install-step-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.7rem 0.9rem;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.install-step-card:hover {
	border-color: var(--color-primary);
	background: var(--color-primary-light);
}

.install-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	flex-shrink: 0;
}

.install-step-body {
	flex: 1;
	min-width: 0;
}

.install-step-text {
	font-size: 0.88rem;
	color: var(--color-text);
	line-height: 1.5;
	margin-bottom: 0.4rem;
}

.install-step-card .command-block {
	margin-top: 0.4rem;
	font-size: 0.78rem;
	padding: 0.5rem 0.8rem;
}

.install-step-card .command-block code {
	font-size: 0.75rem;
}

/* ========== Homebrew 终端示意图 ========== */
.visual-guide-terminal {
	background: #fafbfc;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1rem;
	margin-bottom: 1.5rem;
	overflow: hidden;
	font-size: 0.8rem;
	user-select: none;
}

.vg-terminal-window {
	background: #1e1e1e;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.vg-terminal-titlebar {
	background: #2d2d2d;
	padding: 0.5rem 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-bottom: 1px solid #3a3a3a;
}

.vg-terminal-dots {
	display: flex;
	gap: 6px;
	margin-right: 0.5rem;
}

.vg-terminal-dot-red,
.vg-terminal-dot-yellow,
.vg-terminal-dot-green {
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.vg-terminal-dot-red { background: #ff5f57; }
.vg-terminal-dot-yellow { background: #febc2e; }
.vg-terminal-dot-green { background: #28c840; }

.vg-terminal-title {
	font-size: 0.68rem;
	color: #999;
	flex: 1;
	text-align: center;
}

.vg-terminal-body {
	padding: 0.8rem 1rem;
	font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Menlo', monospace;
	font-size: 0.72rem;
	line-height: 1.8;
	color: #e0e0e0;
	min-height: 160px;
}

.vg-terminal-line {
	white-space: pre-wrap;
	word-break: break-all;
}

.vg-terminal-line.muted {
	color: #888;
}

.vg-terminal-prompt {
	color: #28c840;
}

.vg-terminal-cmd {
	color: #f5f5f5;
	font-weight: 600;
}

.vg-terminal-output {
	color: #888;
}

.vg-terminal-password-line {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.vg-terminal-password-dots {
	color: #f5f5f5;
	letter-spacing: 2px;
	animation: vgCursorBlink 0.8s infinite;
}

@keyframes vgCursorBlink {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

.vg-terminal-key-icon {
	color: #999;
	font-size: 0.65rem;
}

.vg-terminal-success {
	color: #28c840;
	font-weight: 600;
}

.vg-terminal-cursor {
	display: inline-block;
	width: 7px;
	height: 13px;
	background: #e0e0e0;
	animation: vgCursorBlink 0.8s infinite;
	vertical-align: middle;
	margin-left: 2px;
}

/* ========== .pkg 安装器示意图 ========== */
.visual-guide-installer {
	background: #fafbfc;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1rem;
	margin-bottom: 1.5rem;
	overflow: hidden;
	font-size: 0.8rem;
	user-select: none;
}

.vg-installer-window {
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.vg-installer-titlebar {
	background: #f0f0f0;
	padding: 0.5rem 0.8rem;
	text-align: center;
	font-weight: 700;
	font-size: 0.78rem;
	color: #333;
	border-bottom: 1px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
}

.vg-installer-content {
	padding: 1.2rem;
}

.vg-installer-steps-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.vg-installer-step-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.4rem 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
}

.vg-installer-step-row.current {
	background: var(--color-primary-light);
	font-weight: 600;
	color: var(--color-primary);
}

.vg-installer-step-row.done {
	color: #999;
}

.vg-installer-step-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6rem;
	flex-shrink: 0;
}

.vg-installer-step-row.done .vg-installer-step-dot {
	background: #e5e5e5;
	color: #999;
}

.vg-installer-step-row.current .vg-installer-step-dot {
	background: var(--color-primary);
	color: #fff;
}

.vg-installer-btn-bar {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 0.8rem;
	padding-top: 0.8rem;
	border-top: 1px solid #eee;
}

.vg-installer-btn {
	padding: 0.4rem 1.2rem;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	border: 1px solid #d0d0d0;
	background: #fff;
	color: #666;
}

.vg-installer-btn.primary {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
	animation: vgHighlightPulse 2s infinite;
}

/* ========== 图片占位槽 ========== */
.img-slot {
	background: var(--color-bg-alt);
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	text-align: center;
	color: var(--color-text-muted);
	margin-bottom: 1rem;
}

.img-slot i {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	display: block;
}

.img-slot-note {
	font-size: 0.72rem;
	color: var(--color-text-muted);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
	.section-padding {
		padding: 3rem 0;
	}

	.hero-title {
		font-size: 1.8rem;
	}

	.step-sidebar {
		position: relative;
		top: 0;
	}

	.ai-chat-panel {
		width: calc(100vw - 2rem);
		height: 450px;
		right: 1rem;
		bottom: 5rem;
	}
}


/* ========== 教程查看器 ========== */
#tutorial-viewer.section-padding {
	padding: 2rem 0 4rem 0;
}

/* 教程分类标签（Usage 教程中显示在问题标题上方） */
.tutorial-category-label {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--color-primary);
	line-height: 1.2;
	margin-bottom: 0.15rem;
}

/* 当 category 显示时，标题降级为副标题 */
#tutorial-title.sub-title {
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--color-text-secondary);
}

/* 移动端适配 */
@media (max-width: 768px) {
	.tutorial-category-label {
		font-size: 1.25rem;
	}
	#tutorial-title.sub-title {
		font-size: 1.05rem;
	}
}

/* ========== 教程搜索栏 ========== */
.tutorial-search-bar {
	position: relative;
	width: 320px;
	flex-shrink: 0;
}

.tutorial-search-bar .input-group {
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: var(--transition);
}

.tutorial-search-bar .input-group:focus-within {
	box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.tutorial-search-bar .form-control {
	font-size: 0.875rem;
	padding: 0.5rem 0.4rem;
	border-color: var(--color-border);
}

.tutorial-search-bar .form-control:focus {
	border-color: var(--color-primary);
	box-shadow: none;
}

.tutorial-search-bar .input-group-text {
	border-color: var(--color-border);
	padding: 0.5rem 0.4rem 0.5rem 0.75rem;
}

.tutorial-search-bar .input-group-text i {
	font-size: 0.85rem;
}

/* 搜索结果下拉 */
.search-results-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1030;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
	max-height: 360px;
	overflow-y: auto;
	margin-top: 4px;
	animation: searchSlideDown 0.15s ease-out;
}

@keyframes searchSlideDown {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.65rem 1rem;
	cursor: pointer;
	border-bottom: 1px solid var(--color-border);
	transition: background 0.15s;
}

.search-result-item:last-child {
	border-bottom: none;
}

.search-result-item:hover {
	background: var(--color-primary-light);
}

.search-result-badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	font-size: 0.65rem;
	font-weight: 700;
	background: var(--color-primary-light);
	color: var(--color-primary);
	white-space: nowrap;
	margin-top: 1px;
}

/* 搜索结果不同类别标签颜色 */
.search-result-badge.badge-problem {
	background: #fef3c7;
	color: #92400e;
}

.search-result-badge.badge-content {
	background: var(--color-primary-light);
	color: var(--color-primary);
}

.search-result-badge.badge-tip {
	background: #d1fae5;
	color: #065f46;
}

.search-result-badge.badge-warning {
	background: #fee2e2;
	color: #991b1b;
}

/* 最佳匹配条目高亮 */
.search-result-item-top {
	background: #fffbeb;
	border-left: 3px solid #f59e0b;
}

.search-result-item-top:hover {
	background: #fef3c7 !important;
}

.search-result-text {
	flex: 1;
	font-size: 0.82rem;
	color: var(--color-text-secondary);
	line-height: 1.5;
	word-break: break-all;
}

.search-result-text mark {
	background: #fef08a;
	color: var(--color-text);
	padding: 0.05rem 0.15rem;
	border-radius: 2px;
	font-weight: 600;
}

.search-no-results {
	padding: 1.5rem 1rem;
	text-align: center;
	color: var(--color-text-muted);
	font-size: 0.85rem;
}

/* 搜索结果滚动条 */
.search-results-dropdown::-webkit-scrollbar {
	width: 4px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
	background: var(--color-border);
	border-radius: 2px;
}

/* 搜索高亮脉冲 */
@keyframes searchHighlightPulse {
	0%, 100% { background: #fef08a; }
	50% { background: #fde047; }
}

/* ========== 问题选择器（Usage 教程初始界面）========== */

.question-picker {
	max-width: 900px;
	margin: 0 auto;
}

.qp-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.qp-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--color-text-primary);
	margin-bottom: 0.25rem;
}

.qp-subtitle {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	margin-bottom: 0;
}

/* 搜索框 */
.qp-search-wrap {
	position: relative;
	max-width: 500px;
	margin: 0 auto 2rem;
}

.qp-search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-text-muted);
	font-size: 0.95rem;
	pointer-events: none;
}

.qp-search-input {
	width: 100%;
	padding: 0.75rem 1rem 0.75rem 2.5rem;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-lg);
	font-size: 0.95rem;
	background: var(--color-bg);
	color: var(--color-text);
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
}

.qp-search-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-light);
}

.qp-search-input::placeholder {
	color: var(--color-text-muted);
}

/* 卡片网格 */
.qp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

/* 问题卡片 */
.qp-card {
	background: var(--color-bg);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.qp-card:hover {
	border-color: var(--color-primary);
	box-shadow: 0 4px 16px var(--color-primary-light);
	transform: translateY(-2px);
}

.qp-card:active {
	transform: translateY(0);
}

.qp-card-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	background: var(--color-primary-light);
	color: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.qp-card-body {
	flex: 1;
	min-width: 0;
}

.qp-card-title {
	font-weight: 600;
	font-size: 1rem;
	color: var(--color-text);
	margin-bottom: 0.3rem;
	line-height: 1.4;
}

.qp-card-desc {
	font-size: 0.82rem;
	color: var(--color-text-secondary);
	line-height: 1.5;
	margin-bottom: 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qp-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.qp-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	padding: 0.15rem 0.55rem;
	border-radius: 100px;
	font-weight: 500;
	white-space: nowrap;
}

.qp-badge-diff {
	background: #dbeafe;
	color: #1e40af;
}

.qp-badge-time {
	background: #f3f4f6;
	color: #6b7280;
}

.qp-badge-steps {
	background: #dcfce7;
	color: #166534;
}

/* 空结果 */
.qp-empty {
	text-align: center;
	padding: 3rem 1rem;
}

/* 问题选择页 — 分类标题行 */
.qp-category-header {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2rem;
	margin-bottom: 0.25rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--color-primary);
}
.qp-category-header:first-child {
	margin-top: 0;
}
.qp-cat-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--color-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	flex-shrink: 0;
}
.qp-cat-info {
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.qp-cat-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-text);
}
.qp-cat-subtitle {
	font-size: 0.78rem;
	color: var(--color-text-muted);
}
.qp-cat-count {
	margin-left: auto;
	font-size: 0.78rem;
	color: var(--color-text-muted);
	white-space: nowrap;
}

/* ========== 收费分类（Premium / Macro）========== */
/* 分类标题行 — 金色渐变 */
.qp-category-header-premium {
	background: linear-gradient(135deg, #FEF9E7 0%, #FFF8E1 100%);
	border-bottom: 2px solid #D4A843 !important;
	padding: 0.75rem 1rem;
	border-radius: 8px 8px 0 0;
}
.qp-category-header-premium .qp-cat-icon-premium {
	background: linear-gradient(135deg, #D4A843, #C49A3C) !important;
	color: #fff !important;
}
.qp-category-header-premium .qp-cat-name {
	color: #8B6914;
}
.qp-cat-premium-badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 600;
	background: linear-gradient(135deg, #D4A843, #C49A3C);
	color: #fff;
	padding: 0.12rem 0.55rem;
	border-radius: 100px;
	margin-left: 0.4rem;
	vertical-align: middle;
}

/* 收费问题卡片 — 金色左边框 */
.qp-card-premium {
	border-left: 3px solid #D4A843 !important;
	position: relative;
}
.qp-card-premium:hover {
	border-color: #D4A843 !important;
	box-shadow: 0 4px 16px rgba(212, 168, 67, 0.2) !important;
}
/* 收费卡片右上角角标 */
.qp-card-premium::after {
	content: '🔒';
	position: absolute;
	top: 0.5rem;
	right: 0.7rem;
	font-size: 0.85rem;
	opacity: 0.7;
}

/* 付费 badge — 金色圆角标签 */
.qp-badge-premium {
	background: linear-gradient(135deg, #FFF8E1, #FEF9E7);
	color: #8B6914;
	border: 1px solid #E8D5A3;
	font-weight: 600;
}

/* FAQ 下拉中的收费分类标题 */
.faq-category-header-premium {
	background: linear-gradient(135deg, #FEF9E7, #FFF8E1) !important;
	color: #8B6914 !important;
	border-bottom: 1px solid #E8D5A3 !important;
}

/* 播放器返回按钮 */
.player-back-row {
	margin-bottom: 0.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.player-back-btn {
	background: none;
	border: none;
	color: #000000;
	font-size: 1.25rem;
	font-weight: 600;
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}

.player-back-btn:hover {
	color: var(--color-primary);
	background: var(--color-primary-light);
}

.player-download-btn {
	display: inline-flex;
	align-items: center;
	background: var(--color-primary);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.35rem 1rem;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
}

.player-download-btn:hover {
	background: var(--color-primary-dark, #1a7a3a);
	color: #fff;
	transform: translateY(-1px);
}

/* ========== 常见问题下拉（Header 行内）========== */

.faq-dropdown {
	position: relative;
	flex-shrink: 0;
}

.faq-toggle-btn {
	border-radius: var(--radius-md);
	white-space: nowrap;
}

.faq-toggle-btn.active {
	background: var(--color-primary-light);
	border-color: var(--color-primary);
}

.faq-chevron {
	transition: transform 0.2s;
	font-size: 0.7rem;
}

.faq-toggle-btn.active .faq-chevron {
	transform: rotate(180deg);
}

/* 下拉面板 */
.faq-dropdown-panel {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 1020;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
	min-width: 300px;
	max-height: 400px;
	overflow-y: auto;
	margin-top: 4px;
	animation: searchSlideDown 0.15s ease-out;
}

.faq-dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1rem;
	cursor: pointer;
	border-bottom: 1px solid var(--color-border);
	transition: background 0.15s;
}

.faq-dropdown-item:hover {
	background: var(--color-bg-alt);
}

.faq-dropdown-item:last-child {
	border-bottom: none;
}

/* FAQ 下拉 — 分类标题行 */
.faq-category-header {
	padding: 0.45rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-primary);
	background: var(--color-bg-alt, #f8f9fa);
	border-bottom: 1px solid var(--color-border, #dee2e6);
	cursor: default;
	user-select: none;
}

.faq-dropdown-item .faq-item-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--color-primary-light);
	color: var(--color-primary);
	font-size: 0.75rem;
	font-weight: 700;
}

.faq-dropdown-item .faq-item-text {
	flex: 1;
	font-size: 0.85rem;
	color: #000;
}

.faq-dropdown-item .faq-item-meta {
	font-size: 0.7rem;
	color: var(--color-text-muted);
	white-space: nowrap;
}

/* 下拉面板滚动条 */
.faq-dropdown-panel::-webkit-scrollbar {
	width: 4px;
}

.faq-dropdown-panel::-webkit-scrollbar-thumb {
	background: var(--color-border);
	border-radius: 2px;
}

/* ========== Usage 教程（Photoshop / CAD）样式 ========== */

/* 问题列表空状态 */
.usage-empty-state {
	padding: 3rem 1rem;
}

.usage-empty-state h3 {
	color: var(--color-text);
	font-weight: 700;
}

/* ========== Usage 步骤播放器 ========== */
.usage-player {
	margin-bottom: 2rem;
}

/* usage player 激活时减少顶部空白 */
.step-content.usage-active {
	padding-top: 0.5rem;
}

/* 示意图区域 */
.player-mockup {
	background: #1e1e1e;
	border-radius: var(--radius-md);
	min-height: 380px;
	overflow: hidden;
	margin-bottom: 1.5rem;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
	position: relative;
	transition: filter 0.3s ease;
	scroll-margin-top: 1rem;
}

.player-mockup.cad-theme {
	background: #1a1a2e;
	border: 1px solid #2a2a4a;
}

/* 视频 mockup 主题 */
.player-mockup.video-theme {
	background: #1e1e1e;
	border: none;
	min-height: auto;
	overflow: visible;
}

/* 图片 mockup 主题 */
.player-mockup.image-theme {
	background: #1e1e1e;
	border: none;
	min-height: auto;
	overflow: visible;
}
/* 通用示意图外框补充：position:relative 让 zone 标签、动画光标等
   绝对定位叠加层锚定到示意图本身而非全宽容器 */
.player-mockup-frame {
	position: relative;
	aspect-ratio: 0.91;
}
.player-image-frame {
	position: relative;
	aspect-ratio: 16/9;
}
/* 框内 mockup 归零自带外距/阴影（统一由外框提供），并拉高填满 0.91 竖版相框 */
.player-mockup-frame .vg-ps-wrap,
.player-mockup-frame .vg-cad-wrap {
	margin-bottom: 0;
	box-shadow: none;
	border-radius: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.player-mockup-frame .vg-ps-body,
.player-mockup-frame .vg-cad-body {
	flex: 1;
	min-height: 0;
}
.player-video-step {
	text-align: center;
}
.player-video-step video {
	width: 100%;
	max-width: 100%;
	border-radius: var(--radius-md);
	display: block;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
/* 框内视频归零自带圆角/阴影，统一由相框提供 */
.player-video-wrapper video {
	border-radius: 0;
	box-shadow: none;
}
.player-video-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4rem 2rem;
	background: #1e1e1e;
	border-radius: var(--radius-md);
}

/* 视频字幕叠加层 */
.player-video-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	/* 与 .player-image-frame 统一：62% 限宽 + 居中 + 0.91 竖版相框，视频垂直居中 */
	max-width: 62%;
	max-height: 1080px;
	aspect-ratio: 0.91;
	margin: 0 auto;
	background: #1e1e1e;
	border-radius: var(--radius-md);
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
	overflow: hidden;
}
.player-video-subtitle {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(200, 30, 30, 0.88);
	color: #fff;
	padding: 6px 22px;
	border-radius: 4px;
	font-size: 1.1rem;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	z-index: 10;
	letter-spacing: 0.5px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 重播 flash 动画 */
.player-mockup.player-flash {
	animation: playerFlash 0.6s ease;
}

@keyframes playerFlash {
	0% { filter: brightness(1); }
	50% { filter: brightness(1.3); }
	100% { filter: brightness(1); }
}

/* ========== 动画光标 ========== */
.player-cursor {
	position: absolute;
	z-index: 10;
	pointer-events: none;
	left: -30px;
	top: 50px;
	transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
	            top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
	filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.4));
}
.player-cursor svg {
	display: block;
}
.player-cursor.clicking {
	animation: cursorClick 0.3s ease;
}

@keyframes cursorClick {
	0% { transform: scale(1); }
	40% { transform: scale(0.75); }
	70% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

/* Photoshop 风格下拉菜单 */
.ps-dropdown-menu {
	position: absolute;
	z-index: 9;
	background: #3c3c3c;
	border: 1px solid #555;
	border-radius: 0 0 6px 6px;
	min-width: 160px;
	padding: 4px 0;
	box-shadow: 0 8px 24px rgba(0,0,0,0.5);
	display: none;
}
.ps-dropdown-menu.show {
	display: block;
}
.ps-dropdown-item {
	padding: 5px 24px;
	color: #ddd;
	font-size: 0.7rem;
	white-space: nowrap;
	cursor: default;
	transition: background 0.1s;
}
.ps-dropdown-item:hover,
.ps-dropdown-item.highlight {
	background: #2d6fd6;
	color: #fff;
}
.ps-dropdown-sep {
	height: 1px;
	background: #555;
	margin: 4px 12px;
}

/* Photoshop 风格文件打开对话框 */
.ps-file-dialog {
	position: absolute;
	z-index: 11;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #3c3c3c;
	border: 1px solid #666;
	border-radius: 8px;
	width: 340px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.6);
	display: none;
	overflow: hidden;
}
.ps-file-dialog.show {
	display: block;
}
.ps-dialog-titlebar {
	background: #2d2d2d;
	padding: 6px 12px;
	color: #ddd;
	font-size: 0.72rem;
	font-weight: 600;
	text-align: center;
	border-bottom: 1px solid #555;
}
.ps-dialog-body {
	display: flex;
	min-height: 120px;
}
.ps-dialog-sidebar {
	width: 80px;
	background: #333;
	padding: 6px 0;
	border-right: 1px solid #555;
	flex-shrink: 0;
}
.ps-dialog-location {
	padding: 4px 12px;
	color: #aaa;
	font-size: 0.62rem;
	cursor: default;
}
.ps-dialog-location.active {
	background: #2d6fd6;
	color: #fff;
}
.ps-dialog-files {
	flex: 1;
	padding: 8px;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 6px;
}
.ps-dialog-file {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 64px;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: default;
	transition: background 0.1s;
}
.ps-dialog-file.highlighted {
	background: rgba(45, 111, 214, 0.3);
	border-color: #2d6fd6;
}
.ps-dialog-file-icon {
	font-size: 1.2rem;
	margin-bottom: 2px;
}
.ps-dialog-file-name {
	font-size: 0.55rem;
	color: #bbb;
	text-align: center;
	line-height: 1.2;
	max-width: 68px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ps-dialog-footer {
	background: #2d2d2d;
	padding: 6px 12px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	border-top: 1px solid #555;
}
.ps-dialog-btn-cancel {
	padding: 3px 14px;
	color: #ccc;
	font-size: 0.7rem;
	border-radius: 4px;
	cursor: default;
	background: #555;
}
.ps-dialog-btn-ok {
	padding: 3px 18px;
	color: #fff;
	font-size: 0.7rem;
	border-radius: 4px;
	cursor: default;
	background: #2d6fd6;
	font-weight: 600;
}

/* 选区指示器（蚂蚁线） */
.vg-ps-selection-indicator {
	position: absolute;
	z-index: 8;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 180px;
	height: 140px;
	border: 2px dashed #fff;
	border-radius: 4px;
	display: none;
	pointer-events: none;
	animation: marchingAnts 0.6s linear infinite;
	background: rgba(45, 111, 214, 0.08);
}
.vg-ps-selection-indicator.show {
	display: block;
}
.ps-selection-label {
	position: absolute;
	top: -22px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,0.75);
	color: #fff;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 0.6rem;
	white-space: nowrap;
}

/* 自由变换手柄 */
.vg-ps-transform-handles {
	position: absolute;
	z-index: 8;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 190px;
	height: 150px;
	border: 1px solid #31a8ff;
	display: none;
	pointer-events: none;
}
.vg-ps-transform-handles.show {
	display: block;
}
.ps-handle {
	position: absolute;
	width: 8px;
	height: 8px;
	background: #fff;
	border: 2px solid #31a8ff;
}
.ps-handle-tl { top: -4px; left: -4px; }
.ps-handle-tr { top: -4px; right: -4px; }
.ps-handle-bl { bottom: -4px; left: -4px; }
.ps-handle-br { bottom: -4px; right: -4px; }

/* 导航栏 */
.player-nav-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1rem;
}

.player-nav-btn {
	padding: 0.6rem 1.5rem;
	border-radius: 50px;
	border: 2px solid var(--color-border);
	background: var(--color-bg);
	color: var(--color-text);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.player-nav-btn:hover:not(:disabled) {
	background: var(--color-primary-light);
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.player-nav-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* 播放按钮 */
.player-nav-btn.player-nav-play {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
	font-size: 1.05rem;
	padding: 0.7rem 2.2rem;
	min-width: 130px;
	box-shadow: 0 4px 16px rgba(79, 107, 232, 0.35);
}

.player-nav-btn.player-nav-play:hover:not(:disabled) {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(79, 107, 232, 0.45);
}

/* 步骤指示文字（替代重播按钮，badge 风格） */
.player-step-indicator {
	display: inline-block;
	background: var(--color-primary);
	color: #fff;
	border-radius: 50px;
	padding: 0.2rem 1rem;
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	user-select: none;
}

/* 步骤圆点 */
.player-step-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.player-step-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-border);
	transition: all 0.3s ease;
}

.player-step-dot.active {
	background: var(--color-primary);
	transform: scale(1.3);
	box-shadow: 0 0 8px rgba(79, 107, 232, 0.4);
}

.player-step-dot.completed {
	background: var(--color-success);
}

/* 步骤描述区 */
.player-step-desc {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 0.5rem 1.5rem 1.25rem 1.5rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	line-height: 1.8;
	text-align: center;
}

.player-step-text {
	color: var(--color-text);
	font-size: 1.1rem;
	line-height: 1.8;
}

.player-step-detail {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	margin-top: 0.6rem;
	padding-top: 0.6rem;
	border-top: 1px dashed var(--color-border);
}

/* 占位状态 */
.player-placeholder {
	text-align: center;
	padding: 2rem 1rem;
	color: #000;
}

/* 占位示意图 */
.mockup-placeholder {
	background: #1e1e1e;
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
}

.mockup-placeholder.cad-placeholder {
	background: #1a1a2e;
}

/* Zone 高亮系统 (Phase 2 使用) */
.mockup-zone {
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.mockup-zone.highlighted {
	border-color: #ff4444;
	box-shadow: 0 0 12px rgba(255, 68, 68, 0.5);
	animation: zoneHighlightPulse 2s infinite;
}


/* Zone 高亮标签 */
.player-zone-labels {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	pointer-events: none;
	z-index: 5;
}

.player-zone-label {
	position: absolute;
	background: #ff4444;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	white-space: nowrap;
	animation: zoneLabelPulse 1.5s ease-in-out infinite;
	box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

@keyframes zoneLabelPulse {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-2px); }
}

/* ========== CAD 示意图样式 ========== */
.vg-cad-wrap {
	background: #1a1a2e;
	border-radius: 6px;
	overflow: hidden;
	font-family: 'Segoe UI', Arial, sans-serif;
	color: #ccc;
	position: relative;
	min-height: 300px;
}

.vg-cad-topbar {
	background: #2d2d44;
	padding: 4px 8px;
	display: flex;
	align-items: center;
	gap: 6px;
	border-bottom: 1px solid #3a3a55;
}

.vg-cad-logo {
	background: #d32f2f;
	color: #fff;
	font-weight: 900;
	font-size: 0.8rem;
	padding: 2px 8px;
	border-radius: 2px;
	margin-right: 8px;
}

.vg-cad-qat-btn {
	font-size: 0.75rem;
	padding: 2px 6px;
	cursor: default;
	opacity: 0.7;
}

.vg-cad-ribbon {
	background: #252540;
	padding: 4px 8px;
	display: flex;
	gap: 2px;
	border-bottom: 1px solid #3a3a55;
	flex-wrap: wrap;
}

.vg-cad-ribbon-tab {
	padding: 4px 10px;
	font-size: 0.7rem;
	font-weight: 500;
	cursor: default;
	border-radius: 3px 3px 0 0;
	color: #999;
}

.vg-cad-ribbon-tab.active {
	background: #1a1a2e;
	color: #fff;
}

.vg-cad-body {
	display: flex;
	min-height: 180px;
}

.vg-cad-canvas {
	flex: 1;
	background: #111122;
	position: relative;
	overflow: hidden;
	min-height: 180px;
}

.vg-cad-grid {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 20px 20px;
}

.vg-cad-shape {
	position: absolute;
	top: 40px; left: 40px;
	width: 100px; height: 60px;
	border: 1px solid #4fc3f7;
	background: rgba(79, 195, 247, 0.08);
}

.vg-cad-crosshair {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 1.2rem;
	opacity: 0.5;
}

.vg-cad-props {
	width: 140px;
	background: #252540;
	border-left: 1px solid #3a3a55;
	padding: 6px;
	font-size: 0.65rem;
}

.vg-cad-props-title {
	font-weight: 700;
	color: #fff;
	margin-bottom: 4px;
	padding-bottom: 4px;
	border-bottom: 1px solid #3a3a55;
}

.vg-cad-prop-row {
	display: flex;
	justify-content: space-between;
	padding: 2px 0;
}

.vg-cad-cmd {
	background: #111122;
	border-top: 1px solid #3a3a55;
	padding: 4px 10px;
	font-family: 'Courier New', monospace;
	font-size: 0.7rem;
	display: flex;
	align-items: center;
	gap: 4px;
}

.vg-cad-cmd-prefix {
	color: #4fc3f7;
	font-weight: 700;
}

.vg-cad-cmd-cursor {
	color: #4fc3f7;
	animation: cadCursorBlink 1s infinite;
}

@keyframes cadCursorBlink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

.vg-cad-status {
	background: #252540;
	border-top: 1px solid #3a3a55;
	padding: 2px 10px;
	font-size: 0.6rem;
	display: flex;
	gap: 12px;
	color: #888;
}

/* CAD mockup zone highlighting */
.vg-cad-wrap .mockup-zone.highlighted {
	border-color: #ff4444;
	box-shadow: 0 0 12px rgba(255, 68, 68, 0.5);
	animation: zoneHighlightPulse 2s infinite;
	z-index: 2;
	position: relative;
}

@keyframes zoneHighlightPulse {
	0%, 100% { box-shadow: 0 0 8px rgba(255, 68, 68, 0.3); }
	50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.7); }
}

.mockup-zone.dimmed {
	opacity: 0.35;
}

/* Photoshop zone highlight specifics */
.vg-ps-menu-item.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.2) !important;
	border-radius: 3px;
	outline: 2px solid #ff4444;
	outline-offset: 1px;
}

.vg-ps-tool.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.25) !important;
	border-radius: 6px;
	outline: 2px solid #ff4444;
	outline-offset: 2px;
	animation: zoneHighlightPulse 2s infinite;
}

.vg-ps-toolbar.mockup-zone.highlighted {
	outline: 2px solid #ff4444;
	outline-offset: -1px;
}

.vg-ps-canvas.mockup-zone.highlighted {
	outline: 3px solid #ff4444;
	outline-offset: -2px;
	animation: zoneHighlightPulse 2s infinite;
}

.vg-ps-panels.mockup-zone.highlighted {
	outline: 2px solid #ff4444;
	outline-offset: -1px;
}

.vg-ps-optionsbar.mockup-zone.highlighted {
	outline: 2px solid #ff4444;
	outline-offset: -1px;
}

.vg-ps-option.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.15);
	border-radius: 4px;
}

.vg-ps-layer-btn.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.3) !important;
	border-radius: 50%;
	outline: 2px solid #ff4444;
	animation: zoneHighlightPulse 1.5s infinite;
}

.vg-ps-layer-list.mockup-zone.highlighted {
	outline: 2px solid #ff4444;
	outline-offset: -1px;
}

.vg-ps-layer.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.15);
}

/* Player mockup zone position context */
.player-mockup {
	position: relative;
}

/* 响应式：小屏幕播放器 */
@media (max-width: 768px) {
	.player-nav-row {
		gap: 0.8rem;
	}
	.player-nav-btn {
		padding: 0.5rem 1rem;
		font-size: 0.8rem;
	}
	.player-nav-btn.player-nav-play {
		padding: 0.55rem 1.2rem;
		font-size: 0.9rem;
		min-width: 100px;
	}
	.player-mockup {
		min-height: 250px;
	}
	.mockup-placeholder {
		min-height: 250px;
	}
	/* 小屏放宽相框限宽，避免示意图/视频/图片过小（三类统一） */
	.player-mockup-frame,
	.player-video-wrapper,
	.player-image-frame {
		max-width: 100%;
	}
}

/* 问题详情标题区 */
.question-header {
	margin-bottom: 1.5rem;
}

.question-header h3 {
	font-weight: 700;
	color: #000;
}

/* 难度标签 */
.difficulty-badge {
	font-size: 0.75rem;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.difficulty-badge.easy {
	background: #d1fae5;
	color: #065f46;
}

.difficulty-badge.medium {
	background: #fef3c7;
	color: #92400e;
}

.difficulty-badge.hard {
	background: #fee2e2;
	color: #991b1b;
}

/* 侧边栏问题列表项 */
.step-item .step-info small {
	display: block;
	margin-top: 2px;
}

/* 步骤详情中的小提示文字 */
.install-step-body .text-muted i {
	color: var(--color-warning);
}

/* ========== Photoshop 界面示意图 ========== */
.vg-ps-wrap {
	background: #1e1e1e;
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 1.5rem;
	font-size: 0.72rem;
	user-select: none;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* --- Photoshop 菜单栏 --- */
.vg-ps-menubar {
	background: #3c3c3c;
	padding: 0.25rem 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.15rem;
	border-bottom: 1px solid #4a4a4a;
}

.vg-ps-logo {
	background: #001e36;
	color: #31a8ff;
	font-weight: 800;
	font-size: 0.7rem;
	padding: 0.2rem 0.45rem;
	border-radius: 3px;
	margin-right: 0.5rem;
}

.vg-ps-menu-item {
	color: #ccc;
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
	font-size: 0.65rem;
}

.vg-ps-menu-item.active {
	background: #555;
}

/* --- Photoshop 选项栏 --- */
.vg-ps-optionsbar {
	background: #333;
	padding: 0.3rem 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-bottom: 1px solid #444;
	flex-wrap: wrap;
}

.vg-ps-option {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	color: #aaa;
	font-size: 0.62rem;
}

.vg-ps-option label {
	margin: 0;
	white-space: nowrap;
}

.vg-ps-option input {
	width: 40px;
	background: #555;
	border: 1px solid #666;
	color: #fff;
	padding: 0.1rem 0.3rem;
	border-radius: 2px;
	font-size: 0.62rem;
}

.vg-ps-option .vg-ps-checkbox {
	width: auto;
	margin: 0;
}

.vg-ps-option-icon {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.1rem 0.4rem;
	background: #555;
	border-radius: 2px;
	color: #fff;
	font-size: 0.6rem;
}

.vg-ps-option-icon.active {
	background: #4a90d9;
}

/* --- Photoshop 主体区域 --- */
.vg-ps-body {
	display: flex;
	min-height: 320px;
}

/* --- Photoshop 工具栏 --- */
.vg-ps-toolbar {
	width: 38px;
	background: #2d2d2d;
	border-right: 1px solid #444;
	padding: 4px 3px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex-shrink: 0;
}

.vg-ps-tool {
	width: 32px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	color: #bbb;
	font-size: 0.75rem;
	position: relative;
	transition: 0.15s;
}

.vg-ps-tool:hover {
	background: #444;
}

.vg-ps-tool.highlight {
	background: #5a3a1a;
	border: 2px solid #ff4444;
	color: #fff;
	animation: vgHighlightPulse 2s infinite;
	z-index: 2;
}

.vg-ps-tool-arrow {
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	color: #ff4444;
	font-size: 1rem;
	font-weight: bold;
	margin-left: 2px;
	animation: arrowBounce 0.8s infinite;
	z-index: 5;
}

@keyframes arrowBounce {
	0%, 100% { transform: translateY(-50%) translateX(0); }
	50% { transform: translateY(-50%) translateX(4px); }
}

.vg-ps-tool-separator {
	height: 1px;
	background: #444;
	margin: 4px 3px;
}

/* 工具栏提示标签 */
.vg-ps-tool-label {
	position: absolute;
	left: 42px;
	top: 50%;
	transform: translateY(-50%);
	background: #ff4444;
	color: #fff;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-size: 0.6rem;
	font-weight: 700;
	white-space: nowrap;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(255,0,0,0.3);
}

.vg-ps-tool-label::before {
	content: '';
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	border: 5px solid transparent;
	border-right-color: #ff4444;
}

/* --- Photoshop 画布区 --- */
.vg-ps-canvas {
	flex: 1;
	background: #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-width: 0;
}

.vg-ps-canvas-inner {
	background: #252525;
	border: 1px solid #555;
	width: 75%;
	height: 75%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.vg-ps-image-placeholder {
	color: #666;
	font-size: 2rem;
}

/* 照片已加载指示器 */
.vg-ps-canvas-photo {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #2a2a2a;
	color: #ccc;
	font-size: 2.5rem;
	border-radius: 4px;
}
.vg-ps-canvas-photo.show {
	display: flex;
}
.vg-ps-canvas-photo span {
	font-size: 0.65rem;
	color: #aaa;
	margin-top: 6px;
}

/* 蚂蚁线选区效果 */
.vg-ps-selection {
	position: absolute;
	border: 2px dashed #fff;
	top: 20%;
	left: 20%;
	width: 55%;
	height: 55%;
	animation: marchingAnts 1s linear infinite;
}

@keyframes marchingAnts {
	0% { border-dash-offset: 0; }
	100% { border-dash-offset: 16; }
}

/* --- Photoshop 右侧面板 --- */
.vg-ps-panels {
	width: 170px;
	background: #2d2d2d;
	border-left: 1px solid #444;
	display: flex;
	flex-direction: column;
	font-size: 0.65rem;
	flex-shrink: 0;
}

.vg-ps-panel-header {
	background: #3a3a3a;
	padding: 0.3rem 0.5rem;
	color: #ccc;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #444;
}

.vg-ps-panel-tabs {
	display: flex;
	gap: 0.3rem;
	padding: 0.2rem 0.5rem;
	background: #333;
	border-bottom: 1px solid #444;
}

.vg-ps-panel-tab {
	padding: 0.15rem 0.5rem;
	color: #999;
	border-radius: 2px;
	cursor: default;
}

.vg-ps-panel-tab.active {
	background: #555;
	color: #fff;
}

/* 图层面板 */
.vg-ps-layer-list {
	flex: 1;
	padding: 0.3rem;
	display: flex;
	flex-direction: column;
	gap: 1px;
	overflow: hidden;
}

.vg-ps-layer {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0.4rem;
	border-radius: 2px;
	color: #ccc;
}

.vg-ps-layer.current {
	background: #3a5370;
}

.vg-ps-layer-eye {
	width: 14px;
	color: #888;
	font-size: 0.55rem;
	text-align: center;
}

.vg-ps-layer-thumb {
	width: 24px;
	height: 18px;
	background: #555;
	border: 1px solid #666;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.45rem;
	color: #888;
	flex-shrink: 0;
}

.vg-ps-layer-name {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 图层面板底部按钮 */
.vg-ps-layer-buttons {
	display: flex;
	gap: 2px;
	padding: 0.3rem;
	border-top: 1px solid #444;
	justify-content: center;
}

.vg-ps-layer-btn {
	width: 22px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #444;
	border-radius: 3px;
	color: #aaa;
	font-size: 0.6rem;
	cursor: default;
}

.vg-ps-layer-btn.highlight {
	background: #5a3a1a;
	border: 2px solid #ff4444;
	color: #fff;
	animation: vgHighlightPulse 2s infinite;
	position: relative;
}

.vg-ps-layer-btn-arrow {
	position: absolute;
	right: -8px;
	top: -8px;
	color: #ff4444;
	font-size: 0.9rem;
	font-weight: bold;
	animation: arrowDown 0.8s infinite;
}

@keyframes arrowDown {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}

/* --- 示意图底部标注 --- */
.vg-ps-annotations {
	padding: 0.8rem;
	background: #f0f9ff;
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vg-ps-annotation-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.78rem;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

.vg-ps-annotation-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: #ff4444;
	color: #fff;
	border-radius: 50%;
	font-size: 0.65rem;
	font-weight: 700;
	flex-shrink: 0;
	animation: vgPulse 2s infinite;
}

/* 图层拖拽箭头指示 */
.vg-ps-drag-arrow {
	position: absolute;
	right: -30px;
	color: #ff4444;
	font-size: 1.1rem;
	font-weight: bold;
	animation: arrowUpDown 1s infinite;
}

@keyframes arrowUpDown {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* 响应式 */
@media (max-width: 768px) {
	.vg-ps-body {
		flex-direction: column;
		min-height: auto;
	}
	.vg-ps-toolbar {
		flex-direction: row;
		width: 100%;
		overflow-x: auto;
		padding: 4px;
		gap: 2px;
	}
	.vg-ps-tool {
		width: 26px;
		height: 24px;
		font-size: 0.65rem;
	}
	.vg-ps-panels {
		width: 100%;
	}
	.vg-ps-canvas {
		min-height: 140px;
	}
	.vg-ps-tool-label {
		left: auto;
		top: -28px;
		left: 50%;
		transform: translateX(-50%);
	}
	.vg-ps-tool-label::before {
		right: auto;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		border-right-color: transparent;
		border-bottom-color: #ff4444;
	}
}
.player-image-step {
	position: relative;
	text-align: center;
}
/* 图片统一容器 —— 宽高比取最宽图片之上(0.91)，确保所有图片填满高度；
   .player-mockup-frame 为通用示意图外框（CSS mockup 用），与图片相框完全同尺寸 */
.player-image-frame,
.player-mockup-frame {
	width: 100%;
	max-width: 95%;
	max-height: 1080px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1e1e1e;
	border-radius: var(--radius-md);
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
	overflow: hidden;
}

.player-step-image,
.player-cover-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
/* 图片缺失时的占位回退样式 */
.player-image-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--color-bg-alt);
	color: var(--color-text-muted);
	font-size: 0.85rem;
	text-align: center;
	padding: 1rem;
	position: absolute;
	top: 0;
	left: 0;
}
.player-image-fallback span {
	line-height: 1.6;
}
.player-image-fallback small {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.7rem;
	opacity: 0.6;
	word-break: break-all;
}

/* 解法切换按钮 — 图片相框左下角 */
.player-solution-toggles {
	display: flex;
	gap: 6px;
	margin-top: 0.5rem;
	margin-bottom: 0;
	padding-left: 0;
}
.player-solution-btn {
	background: rgba(0, 0, 0, 0.65);
	color: #bbb;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 4px 14px;
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.player-solution-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}
.player-solution-btn.active,
.player-solution-btn.active:hover {
	background: rgba(33, 115, 70, 0.85);
	color: #fff;
	border-color: rgba(33, 115, 70, 0.6);
	font-weight: 600;
}

.player-image-placeholder {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--color-bg-alt);
	border-radius: var(--radius-md);
}
/* 通用示意图外框补充：position:relative 让 zone 标签、动画光标等
   绝对定位叠加层锚定到示意图本身而非全宽容器 */

/* 视频字幕叠加层 */
.player-video-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	/* 与 .player-image-frame 统一：62% 限宽 + 居中 + 0.91 竖版相框，视频垂直居中 */
	max-width: 62%;
	max-height: 1080px;
	aspect-ratio: 0.91;
	margin: 0 auto;
	background: #1e1e1e;
	border-radius: var(--radius-md);
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
	overflow: hidden;
}
.player-video-subtitle {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(200, 30, 30, 0.88);
	color: #fff;
	padding: 6px 22px;
	border-radius: 4px;
	font-size: 1.1rem;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	z-index: 10;
	letter-spacing: 0.5px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 重播 flash 动画 */
.player-mockup.player-flash {
	animation: playerFlash 0.6s ease;
}

@keyframes playerFlash {
	0% { filter: brightness(1); }
	50% { filter: brightness(1.3); }
	100% { filter: brightness(1); }
}

/* ========== 动画光标 ========== */
.player-cursor {
	position: absolute;
	z-index: 10;
	pointer-events: none;
	left: -30px;
	top: 50px;
	transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
	            top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
	filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.4));
}
.player-cursor svg {
	display: block;
}
.player-cursor.clicking {
	animation: cursorClick 0.3s ease;
}

@keyframes cursorClick {
	0% { transform: scale(1); }
	40% { transform: scale(0.75); }
	70% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

/* Photoshop 风格下拉菜单 */
.ps-dropdown-menu {
	position: absolute;
	z-index: 9;
	background: #3c3c3c;
	border: 1px solid #555;
	border-radius: 0 0 6px 6px;
	min-width: 160px;
	padding: 4px 0;
	box-shadow: 0 8px 24px rgba(0,0,0,0.5);
	display: none;
}
.ps-dropdown-menu.show {
	display: block;
}
.ps-dropdown-item {
	padding: 5px 24px;
	color: #ddd;
	font-size: 0.7rem;
	white-space: nowrap;
	cursor: default;
	transition: background 0.1s;
}
.ps-dropdown-item:hover,
.ps-dropdown-item.highlight {
	background: #2d6fd6;
	color: #fff;
}
.ps-dropdown-sep {
	height: 1px;
	background: #555;
	margin: 4px 12px;
}

/* Photoshop 风格文件打开对话框 */
.ps-file-dialog {
	position: absolute;
	z-index: 11;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #3c3c3c;
	border: 1px solid #666;
	border-radius: 8px;
	width: 340px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.6);
	display: none;
	overflow: hidden;
}
.ps-file-dialog.show {
	display: block;
}
.ps-dialog-titlebar {
	background: #2d2d2d;
	padding: 6px 12px;
	color: #ddd;
	font-size: 0.72rem;
	font-weight: 600;
	text-align: center;
	border-bottom: 1px solid #555;
}
.ps-dialog-body {
	display: flex;
	min-height: 120px;
}
.ps-dialog-sidebar {
	width: 80px;
	background: #333;
	padding: 6px 0;
	border-right: 1px solid #555;
	flex-shrink: 0;
}
.ps-dialog-location {
	padding: 4px 12px;
	color: #aaa;
	font-size: 0.62rem;
	cursor: default;
}
.ps-dialog-location.active {
	background: #2d6fd6;
	color: #fff;
}
.ps-dialog-files {
	flex: 1;
	padding: 8px;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 6px;
}
.ps-dialog-file {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 64px;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: default;
	transition: background 0.1s;
}
.ps-dialog-file.highlighted {
	background: rgba(45, 111, 214, 0.3);
	border-color: #2d6fd6;
}
.ps-dialog-file-icon {
	font-size: 1.2rem;
	margin-bottom: 2px;
}
.ps-dialog-file-name {
	font-size: 0.55rem;
	color: #bbb;
	text-align: center;
	line-height: 1.2;
	max-width: 68px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ps-dialog-footer {
	background: #2d2d2d;
	padding: 6px 12px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	border-top: 1px solid #555;
}
.ps-dialog-btn-cancel {
	padding: 3px 14px;
	color: #ccc;
	font-size: 0.7rem;
	border-radius: 4px;
	cursor: default;
	background: #555;
}
.ps-dialog-btn-ok {
	padding: 3px 18px;
	color: #fff;
	font-size: 0.7rem;
	border-radius: 4px;
	cursor: default;
	background: #2d6fd6;
	font-weight: 600;
}

/* 选区指示器（蚂蚁线） */
.vg-ps-selection-indicator {
	position: absolute;
	z-index: 8;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 180px;
	height: 140px;
	border: 2px dashed #fff;
	border-radius: 4px;
	display: none;
	pointer-events: none;
	animation: marchingAnts 0.6s linear infinite;
	background: rgba(45, 111, 214, 0.08);
}
.vg-ps-selection-indicator.show {
	display: block;
}
.ps-selection-label {
	position: absolute;
	top: -22px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,0.75);
	color: #fff;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 0.6rem;
	white-space: nowrap;
}

/* 自由变换手柄 */
.vg-ps-transform-handles {
	position: absolute;
	z-index: 8;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 190px;
	height: 150px;
	border: 1px solid #31a8ff;
	display: none;
	pointer-events: none;
}
.vg-ps-transform-handles.show {
	display: block;
}
.ps-handle {
	position: absolute;
	width: 8px;
	height: 8px;
	background: #fff;
	border: 2px solid #31a8ff;
}
.ps-handle-tl { top: -4px; left: -4px; }
.ps-handle-tr { top: -4px; right: -4px; }
.ps-handle-bl { bottom: -4px; left: -4px; }
.ps-handle-br { bottom: -4px; right: -4px; }

/* 导航栏 */
.player-nav-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1rem;
}

.player-nav-btn {
	padding: 0.6rem 1.5rem;
	border-radius: 50px;
	border: 2px solid var(--color-border);
	background: var(--color-bg);
	color: var(--color-text);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.player-nav-btn:hover:not(:disabled) {
	background: var(--color-primary-light);
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.player-nav-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* 播放按钮 */
.player-nav-btn.player-nav-play {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
	font-size: 1.05rem;
	padding: 0.7rem 2.2rem;
	min-width: 130px;
	box-shadow: 0 4px 16px rgba(79, 107, 232, 0.35);
}

.player-nav-btn.player-nav-play:hover:not(:disabled) {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(79, 107, 232, 0.45);
}

/* 步骤指示文字（替代重播按钮，badge 风格） */
.player-step-indicator {
	display: inline-block;
	background: var(--color-primary);
	color: #fff;
	border-radius: 50px;
	padding: 0.2rem 1rem;
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	user-select: none;
}

/* 步骤圆点 */
.player-step-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.player-step-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-border);
	transition: all 0.3s ease;
}

.player-step-dot.active {
	background: var(--color-primary);
	transform: scale(1.3);
	box-shadow: 0 0 8px rgba(79, 107, 232, 0.4);
}

.player-step-dot.completed {
	background: var(--color-success);
}

/* 步骤描述区 */
.player-step-desc {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 0.5rem 1.5rem 1.25rem 1.5rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	line-height: 1.8;
	text-align: center;
}

.player-step-text {
	color: var(--color-text);
	font-size: 1.1rem;
	line-height: 1.8;
}

.player-step-detail {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	margin-top: 0.6rem;
	padding-top: 0.6rem;
	border-top: 1px dashed var(--color-border);
}

/* 占位状态 */
.player-placeholder {
	text-align: center;
	padding: 2rem 1rem;
	color: #000;
}

/* 占位示意图 */
.mockup-placeholder {
	background: #1e1e1e;
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
}

.mockup-placeholder.cad-placeholder {
	background: #1a1a2e;
}

/* Zone 高亮系统 (Phase 2 使用) */
.mockup-zone {
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.mockup-zone.highlighted {
	border-color: #ff4444;
	box-shadow: 0 0 12px rgba(255, 68, 68, 0.5);
	animation: zoneHighlightPulse 2s infinite;
}


/* Zone 高亮标签 */
.player-zone-labels {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	pointer-events: none;
	z-index: 5;
}

.player-zone-label {
	position: absolute;
	background: #ff4444;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	white-space: nowrap;
	animation: zoneLabelPulse 1.5s ease-in-out infinite;
	box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

@keyframes zoneLabelPulse {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-2px); }
}

/* ========== CAD 示意图样式 ========== */
.vg-cad-wrap {
	background: #1a1a2e;
	border-radius: 6px;
	overflow: hidden;
	font-family: 'Segoe UI', Arial, sans-serif;
	color: #ccc;
	position: relative;
	min-height: 300px;
}

.vg-cad-topbar {
	background: #2d2d44;
	padding: 4px 8px;
	display: flex;
	align-items: center;
	gap: 6px;
	border-bottom: 1px solid #3a3a55;
}

.vg-cad-logo {
	background: #d32f2f;
	color: #fff;
	font-weight: 900;
	font-size: 0.8rem;
	padding: 2px 8px;
	border-radius: 2px;
	margin-right: 8px;
}

.vg-cad-qat-btn {
	font-size: 0.75rem;
	padding: 2px 6px;
	cursor: default;
	opacity: 0.7;
}

.vg-cad-ribbon {
	background: #252540;
	padding: 4px 8px;
	display: flex;
	gap: 2px;
	border-bottom: 1px solid #3a3a55;
	flex-wrap: wrap;
}

.vg-cad-ribbon-tab {
	padding: 4px 10px;
	font-size: 0.7rem;
	font-weight: 500;
	cursor: default;
	border-radius: 3px 3px 0 0;
	color: #999;
}

.vg-cad-ribbon-tab.active {
	background: #1a1a2e;
	color: #fff;
}

.vg-cad-body {
	display: flex;
	min-height: 180px;
}

.vg-cad-canvas {
	flex: 1;
	background: #111122;
	position: relative;
	overflow: hidden;
	min-height: 180px;
}

.vg-cad-grid {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 20px 20px;
}

.vg-cad-shape {
	position: absolute;
	top: 40px; left: 40px;
	width: 100px; height: 60px;
	border: 1px solid #4fc3f7;
	background: rgba(79, 195, 247, 0.08);
}

.vg-cad-crosshair {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 1.2rem;
	opacity: 0.5;
}

.vg-cad-props {
	width: 140px;
	background: #252540;
	border-left: 1px solid #3a3a55;
	padding: 6px;
	font-size: 0.65rem;
}

.vg-cad-props-title {
	font-weight: 700;
	color: #fff;
	margin-bottom: 4px;
	padding-bottom: 4px;
	border-bottom: 1px solid #3a3a55;
}

.vg-cad-prop-row {
	display: flex;
	justify-content: space-between;
	padding: 2px 0;
}

.vg-cad-cmd {
	background: #111122;
	border-top: 1px solid #3a3a55;
	padding: 4px 10px;
	font-family: 'Courier New', monospace;
	font-size: 0.7rem;
	display: flex;
	align-items: center;
	gap: 4px;
}

.vg-cad-cmd-prefix {
	color: #4fc3f7;
	font-weight: 700;
}

.vg-cad-cmd-cursor {
	color: #4fc3f7;
	animation: cadCursorBlink 1s infinite;
}

@keyframes cadCursorBlink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

.vg-cad-status {
	background: #252540;
	border-top: 1px solid #3a3a55;
	padding: 2px 10px;
	font-size: 0.6rem;
	display: flex;
	gap: 12px;
	color: #888;
}

/* CAD mockup zone highlighting */
.vg-cad-wrap .mockup-zone.highlighted {
	border-color: #ff4444;
	box-shadow: 0 0 12px rgba(255, 68, 68, 0.5);
	animation: zoneHighlightPulse 2s infinite;
	z-index: 2;
	position: relative;
}

@keyframes zoneHighlightPulse {
	0%, 100% { box-shadow: 0 0 8px rgba(255, 68, 68, 0.3); }
	50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.7); }
}

.mockup-zone.dimmed {
	opacity: 0.35;
}

/* Photoshop zone highlight specifics */
.vg-ps-menu-item.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.2) !important;
	border-radius: 3px;
	outline: 2px solid #ff4444;
	outline-offset: 1px;
}

.vg-ps-tool.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.25) !important;
	border-radius: 6px;
	outline: 2px solid #ff4444;
	outline-offset: 2px;
	animation: zoneHighlightPulse 2s infinite;
}

.vg-ps-toolbar.mockup-zone.highlighted {
	outline: 2px solid #ff4444;
	outline-offset: -1px;
}

.vg-ps-canvas.mockup-zone.highlighted {
	outline: 3px solid #ff4444;
	outline-offset: -2px;
	animation: zoneHighlightPulse 2s infinite;
}

.vg-ps-panels.mockup-zone.highlighted {
	outline: 2px solid #ff4444;
	outline-offset: -1px;
}

.vg-ps-optionsbar.mockup-zone.highlighted {
	outline: 2px solid #ff4444;
	outline-offset: -1px;
}

.vg-ps-option.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.15);
	border-radius: 4px;
}

.vg-ps-layer-btn.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.3) !important;
	border-radius: 50%;
	outline: 2px solid #ff4444;
	animation: zoneHighlightPulse 1.5s infinite;
}

.vg-ps-layer-list.mockup-zone.highlighted {
	outline: 2px solid #ff4444;
	outline-offset: -1px;
}

.vg-ps-layer.mockup-zone.highlighted {
	background: rgba(255, 68, 68, 0.15);
}

/* Player mockup zone position context */
.player-mockup {
	position: relative;
}

/* 响应式：小屏幕播放器 */
@media (max-width: 768px) {
	.player-nav-row {
		gap: 0.8rem;
	}
	.player-nav-btn {
		padding: 0.5rem 1rem;
		font-size: 0.8rem;
	}
	.player-nav-btn.player-nav-play {
		padding: 0.55rem 1.2rem;
		font-size: 0.9rem;
		min-width: 100px;
	}
	.player-mockup {
		min-height: 250px;
	}
	.mockup-placeholder {
		min-height: 250px;
	}
	/* 小屏放宽相框限宽，避免示意图/视频/图片过小（三类统一） */
	.player-mockup-frame,
	.player-video-wrapper,
	.player-image-frame {
		max-width: 100%;
	}
}

/* 问题详情标题区 */
.question-header {
	margin-bottom: 1.5rem;
}

.question-header h3 {
	font-weight: 700;
	color: #000;
}

/* 难度标签 */
.difficulty-badge {
	font-size: 0.75rem;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.difficulty-badge.easy {
	background: #d1fae5;
	color: #065f46;
}

.difficulty-badge.medium {
	background: #fef3c7;
	color: #92400e;
}

.difficulty-badge.hard {
	background: #fee2e2;
	color: #991b1b;
}

/* 侧边栏问题列表项 */
.step-item .step-info small {
	display: block;
	margin-top: 2px;
}

/* 步骤详情中的小提示文字 */
.install-step-body .text-muted i {
	color: var(--color-warning);
}

/* ========== Photoshop 界面示意图 ========== */
.vg-ps-wrap {
	background: #1e1e1e;
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 1.5rem;
	font-size: 0.72rem;
	user-select: none;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* --- Photoshop 菜单栏 --- */
.vg-ps-menubar {
	background: #3c3c3c;
	padding: 0.25rem 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.15rem;
	border-bottom: 1px solid #4a4a4a;
}

.vg-ps-logo {
	background: #001e36;
	color: #31a8ff;
	font-weight: 800;
	font-size: 0.7rem;
	padding: 0.2rem 0.45rem;
	border-radius: 3px;
	margin-right: 0.5rem;
}

.vg-ps-menu-item {
	color: #ccc;
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
	font-size: 0.65rem;
}

.vg-ps-menu-item.active {
	background: #555;
}

/* --- Photoshop 选项栏 --- */
.vg-ps-optionsbar {
	background: #333;
	padding: 0.3rem 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-bottom: 1px solid #444;
	flex-wrap: wrap;
}

.vg-ps-option {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	color: #aaa;
	font-size: 0.62rem;
}

.vg-ps-option label {
	margin: 0;
	white-space: nowrap;
}

.vg-ps-option input {
	width: 40px;
	background: #555;
	border: 1px solid #666;
	color: #fff;
	padding: 0.1rem 0.3rem;
	border-radius: 2px;
	font-size: 0.62rem;
}

.vg-ps-option .vg-ps-checkbox {
	width: auto;
	margin: 0;
}

.vg-ps-option-icon {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.1rem 0.4rem;
	background: #555;
	border-radius: 2px;
	color: #fff;
	font-size: 0.6rem;
}

.vg-ps-option-icon.active {
	background: #4a90d9;
}

/* --- Photoshop 主体区域 --- */
.vg-ps-body {
	display: flex;
	min-height: 320px;
}

/* --- Photoshop 工具栏 --- */
.vg-ps-toolbar {
	width: 38px;
	background: #2d2d2d;
	border-right: 1px solid #444;
	padding: 4px 3px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex-shrink: 0;
}

.vg-ps-tool {
	width: 32px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	color: #bbb;
	font-size: 0.75rem;
	position: relative;
	transition: 0.15s;
}

.vg-ps-tool:hover {
	background: #444;
}

.vg-ps-tool.highlight {
	background: #5a3a1a;
	border: 2px solid #ff4444;
	color: #fff;
	animation: vgHighlightPulse 2s infinite;
	z-index: 2;
}

.vg-ps-tool-arrow {
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	color: #ff4444;
	font-size: 1rem;
	font-weight: bold;
	margin-left: 2px;
	animation: arrowBounce 0.8s infinite;
	z-index: 5;
}

@keyframes arrowBounce {
	0%, 100% { transform: translateY(-50%) translateX(0); }
	50% { transform: translateY(-50%) translateX(4px); }
}

.vg-ps-tool-separator {
	height: 1px;
	background: #444;
	margin: 4px 3px;
}

/* 工具栏提示标签 */
.vg-ps-tool-label {
	position: absolute;
	left: 42px;
	top: 50%;
	transform: translateY(-50%);
	background: #ff4444;
	color: #fff;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-size: 0.6rem;
	font-weight: 700;
	white-space: nowrap;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(255,0,0,0.3);
}

.vg-ps-tool-label::before {
	content: '';
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	border: 5px solid transparent;
	border-right-color: #ff4444;
}

/* --- Photoshop 画布区 --- */
.vg-ps-canvas {
	flex: 1;
	background: #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-width: 0;
}

.vg-ps-canvas-inner {
	background: #252525;
	border: 1px solid #555;
	width: 75%;
	height: 75%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.vg-ps-image-placeholder {
	color: #666;
	font-size: 2rem;
}

/* 照片已加载指示器 */
.vg-ps-canvas-photo {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #2a2a2a;
	color: #ccc;
	font-size: 2.5rem;
	border-radius: 4px;
}
.vg-ps-canvas-photo.show {
	display: flex;
}
.vg-ps-canvas-photo span {
	font-size: 0.65rem;
	color: #aaa;
	margin-top: 6px;
}

/* 蚂蚁线选区效果 */
.vg-ps-selection {
	position: absolute;
	border: 2px dashed #fff;
	top: 20%;
	left: 20%;
	width: 55%;
	height: 55%;
	animation: marchingAnts 1s linear infinite;
}

@keyframes marchingAnts {
	0% { border-dash-offset: 0; }
	100% { border-dash-offset: 16; }
}

/* --- Photoshop 右侧面板 --- */
.vg-ps-panels {
	width: 170px;
	background: #2d2d2d;
	border-left: 1px solid #444;
	display: flex;
	flex-direction: column;
	font-size: 0.65rem;
	flex-shrink: 0;
}

.vg-ps-panel-header {
	background: #3a3a3a;
	padding: 0.3rem 0.5rem;
	color: #ccc;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #444;
}

.vg-ps-panel-tabs {
	display: flex;
	gap: 0.3rem;
	padding: 0.2rem 0.5rem;
	background: #333;
	border-bottom: 1px solid #444;
}

.vg-ps-panel-tab {
	padding: 0.15rem 0.5rem;
	color: #999;
	border-radius: 2px;
	cursor: default;
}

.vg-ps-panel-tab.active {
	background: #555;
	color: #fff;
}

/* 图层面板 */
.vg-ps-layer-list {
	flex: 1;
	padding: 0.3rem;
	display: flex;
	flex-direction: column;
	gap: 1px;
	overflow: hidden;
}

.vg-ps-layer {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0.4rem;
	border-radius: 2px;
	color: #ccc;
}

.vg-ps-layer.current {
	background: #3a5370;
}

.vg-ps-layer-eye {
	width: 14px;
	color: #888;
	font-size: 0.55rem;
	text-align: center;
}

.vg-ps-layer-thumb {
	width: 24px;
	height: 18px;
	background: #555;
	border: 1px solid #666;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.45rem;
	color: #888;
	flex-shrink: 0;
}

.vg-ps-layer-name {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 图层面板底部按钮 */
.vg-ps-layer-buttons {
	display: flex;
	gap: 2px;
	padding: 0.3rem;
	border-top: 1px solid #444;
	justify-content: center;
}

.vg-ps-layer-btn {
	width: 22px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #444;
	border-radius: 3px;
	color: #aaa;
	font-size: 0.6rem;
	cursor: default;
}

.vg-ps-layer-btn.highlight {
	background: #5a3a1a;
	border: 2px solid #ff4444;
	color: #fff;
	animation: vgHighlightPulse 2s infinite;
	position: relative;
}

.vg-ps-layer-btn-arrow {
	position: absolute;
	right: -8px;
	top: -8px;
	color: #ff4444;
	font-size: 0.9rem;
	font-weight: bold;
	animation: arrowDown 0.8s infinite;
}

@keyframes arrowDown {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}

/* --- 示意图底部标注 --- */
.vg-ps-annotations {
	padding: 0.8rem;
	background: #f0f9ff;
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vg-ps-annotation-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.78rem;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

.vg-ps-annotation-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: #ff4444;
	color: #fff;
	border-radius: 50%;
	font-size: 0.65rem;
	font-weight: 700;
	flex-shrink: 0;
	animation: vgPulse 2s infinite;
}

/* 图层拖拽箭头指示 */
.vg-ps-drag-arrow {
	position: absolute;
	right: -30px;
	color: #ff4444;
	font-size: 1.1rem;
	font-weight: bold;
	animation: arrowUpDown 1s infinite;
}

@keyframes arrowUpDown {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* 响应式 */
@media (max-width: 768px) {
	.vg-ps-body {
		flex-direction: column;
		min-height: auto;
	}
	.vg-ps-toolbar {
		flex-direction: row;
		width: 100%;
		overflow-x: auto;
		padding: 4px;
		gap: 2px;
	}
	.vg-ps-tool {
		width: 26px;
		height: 24px;
		font-size: 0.65rem;
	}
	.vg-ps-panels {
		width: 100%;
	}
	.vg-ps-canvas {
		min-height: 140px;
	}
	.vg-ps-tool-label {
		left: auto;
		top: -28px;
		left: 50%;
		transform: translateX(-50%);
	}
	.vg-ps-tool-label::before {
		right: auto;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		border-right-color: transparent;
		border-bottom-color: #ff4444;
	}
}


/* ========== Hash 路由：首帧正确视图 ========== */
/* 教程视图 — 隐藏首页区块（!important 确保在 inline 样式和 Bootstrap 之前生效） */
html.view-tutorial #hero,
html.view-tutorial #tutorials { display: none !important; }

/* 首页视图 — 隐藏教程查看器 */
html:not(.view-tutorial) #tutorial-viewer { display: none !important; }

/* 教程视图 — 显示教程查看器（覆盖 Bootstrap .d-none） */
html.view-tutorial #tutorial-viewer { display: block !important; }
