/* Phone Preview */
.mqsp-preview-phone .mqsp-phone-mockup {
	display: flex;
	justify-content: center;
}

.phone-frame {
	position: relative;
	width: 290px;
	height: 620px;
	background: linear-gradient(145deg, #2a2a2e, #1c1c1e, #2a2a2e);
	border-radius: 50px;
	padding: 10px;
	box-sizing: border-box;
	box-shadow:
		inset 0 0 0 0.5px rgba(255,255,255,0.08),
		0 0 0 1.5px #4a4a4e,
		0 0 0 3px #3a3a3e,
		0 25px 80px rgba(0,0,0,0.45),
		0 8px 25px rgba(0,0,0,0.3);
}

/* Titanium frame gradient */
.phone-frame::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	bottom: -1px;
	border-radius: 51px;
	background: linear-gradient(160deg, #8a8a8e 0%, #5a5a5e 20%, #9a9a9e 40%, #6a6a6e 60%, #8a8a8e 80%, #5a5a5e 100%);
	z-index: -1;
	opacity: 0.6;
}

/* Dynamic Island */
.phone-dynamic-island {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 28px;
	background: #000;
	border-radius: 20px;
	z-index: 20;
	box-shadow: 0 0 0 0.5px rgba(255,255,255,0.05);
}

/* Side buttons */
.phone-btn {
	position: absolute;
	background: linear-gradient(180deg, #5a5a5e, #3a3a3e);
	border-radius: 1px;
}
.phone-btn-power {
	top: 150px;
	right: -2.5px;
	width: 3px;
	height: 55px;
}
.phone-btn-vol-up {
	top: 130px;
	left: -2.5px;
	width: 3px;
	height: 30px;
}
.phone-btn-vol-down {
	top: 175px;
	left: -2.5px;
	width: 3px;
	height: 30px;
}
.phone-btn-silent {
	top: 90px;
	left: -2.5px;
	width: 3px;
	height: 18px;
}

.phone-screen {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 40px;
	overflow: hidden;
	background: #000;
}

/* Preview modes (overlay layers on top of background) */
.preview-mode {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
	z-index: 2;
}

.preview-mode.active {
	opacity: 1;
	pointer-events: auto;
}

/* Preview background (shared video/image layer) */
.preview-wallpaper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: 1;
}

.preview-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-user-select: none;
	user-select: none;
	z-index: 1;
}
.preview-video::-webkit-media-controls {
	display: none !important;
}
.preview-video::-webkit-media-controls-enclosure {
	display: none !important;
}

/* Phone Lock screen overlay - 内容靠上排列 */
.mqsp-preview-phone .lock-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Status bar */
.phone-status-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 14px 24px 0;
	font-size: 13px;
	font-weight: 600;
	z-index: 5;
}

.status-icons {
	display: flex;
	align-items: center;
	gap: 5px;
}

.status-carrier {
	font-size: 13px;
	font-weight: 600;
}

/* Lock icon */
.lock-icon {
	margin-top: 42px;
	opacity: 0.9;
}

/* Time */
.lock-time {
	margin-top: 16px;
	font-size: 72px;
	font-weight: 200;
	letter-spacing: -1px;
	line-height: 1;
	font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

/* Date */
.lock-date {
	margin-top: 6px;
	font-size: 16px;
	font-weight: 400;
	opacity: 0.9;
	white-space: nowrap;
}

.lock-custom-text {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 400;
	opacity: 0.8;
	max-width: 80%;
	text-align: center;
}

/* Lock bottom area */
.lock-bottom {
	position: absolute;
	bottom: 28px;
	left: 0;
	right: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 0 24px;
}

.lock-shortcut {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.lock-swipe {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 400;
	opacity: 0.7;
	animation: mqspFadeInOut 2.5s ease-in-out infinite;
}

@keyframes mqspFadeInOut {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 0.9; }
}

/* Phone Unlock overlay - no blur */
.mqsp-preview-phone .unlock-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: rgba(0,0,0,0.1);
}

/* App grid - 精简2行4列 */
.app-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px 8px;
	padding: 60px 18px 10px;
	align-content: start;
	flex: 1;
}

.app-icon-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.app-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-icon-weather { background: linear-gradient(135deg,#5FC9F8,#1D8CF8); }
.app-icon-music { background: linear-gradient(135deg,#FC3C44,#FF2D55); }
.app-icon-notes { background: linear-gradient(135deg,#FFD60A,#FF9500); }
.app-icon-clock { background: linear-gradient(135deg,#1C1C1E,#3A3A3C); }
.app-icon-camera { background: linear-gradient(135deg,#555,#333); }
.app-icon-photos { background: linear-gradient(135deg,#FF6B6B,#FF2D55); }
.app-icon-safari { background: linear-gradient(135deg,#5AC8FA,#007AFF); }
.app-icon-settings { background: linear-gradient(135deg,#8E8E93,#636366); }
.app-icon-calendar { background: linear-gradient(135deg,#FF3B30,#FF2D55); }
.app-icon-mail { background: linear-gradient(135deg,#5AC8FA,#007AFF); }
.app-icon-maps { background: linear-gradient(135deg,#34C759,#30D158); }
.app-icon-health { background: linear-gradient(135deg,#FF2D55,#FF375F); }
.app-icon-wallet { background: linear-gradient(135deg,#1C1C1E,#3A3A3C); }
.app-icon-files { background: linear-gradient(135deg,#5AC8FA,#007AFF); }
.app-icon-facetime { background: linear-gradient(135deg,#34C759,#30D158); }
.app-icon-podcasts { background: linear-gradient(135deg,#8B5CF6,#7C3AED); }

.app-label {
	font-size: 9px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	max-width: 56px;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Dock */
.dock-bar {
	display: flex;
	justify-content: center;
	gap: 18px;
	padding: 12px 20px 24px;
	background: rgba(255,255,255,0.12);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border-top: 0.5px solid rgba(255,255,255,0.1);
}

.dock-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.dock-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Toggle buttons */
.mqsp-preview-mode-toggle {
	display: flex;
	gap: 8px;
}

.preview-toggle-btn {
	padding: 8px 22px;
	border: 1px solid #ddd;
	border-radius: 20px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
	color: #333;
}

.preview-toggle-btn.active {
	background: #333;
	color: #fff;
	border-color: #333;
}

.preview-toggle-btn:hover {
	opacity: 0.85;
}

/* Desktop Preview */
.mqsp-preview-desktop .mqsp-desktop-mockup {
	display: flex;
	justify-content: center;
	width: 100%;
}

.desktop-frame {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.desktop-bezel {
	width: 800px;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	background: #1a1a1a;
	border-radius: 10px;
	padding: 4px 4px 16px;
	box-shadow:
		0 0 0 1px #2a2a2a,
		0 25px 80px rgba(0,0,0,0.4),
		0 8px 25px rgba(0,0,0,0.25);
	position: relative;
}

/* Chin area with logo dot */
.desktop-bezel::after {
	content: '';
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #333;
}

.desktop-screen {
	position: relative;
	width: 100%;
	height: calc(100% - 12px);
	border-radius: 4px;
	overflow: hidden;
	background: #000;
}

/* Desktop Lock overlay - 内容居中排列 */
.mqsp-preview-desktop .lock-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.lock-icon-win {
	position: absolute;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0.85;
}

.lock-clock-widget {
	text-align: center;
}

.lock-time {
	font-size: 96px;
	font-weight: 200;
	letter-spacing: 4px;
	line-height: 1;
	font-family: 'Segoe UI', -apple-system, 'Helvetica Neue', sans-serif;
}

.lock-date {
	font-size: 18px;
	margin-top: 8px;
	opacity: 0.9;
	font-weight: 400;
}

.lock-hint {
	position: absolute;
	bottom: 28px;
	font-size: 13px;
	opacity: 0.7;
	animation: mqspDesktopFade 2.5s ease-in-out infinite;
}

@keyframes mqspDesktopFade {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 0.9; }
}

/* Desktop Unlock overlay */
.mqsp-preview-desktop .unlock-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Desktop icons - 精简6列 */
.desktop-icons {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px 4px;
	padding: 12px 10px;
	align-content: start;
	flex: 1;
}

.desktop-icon-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.desktop-icon {
	width: 36px;
	height: 36px;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.desktop-icon-label {
	font-size: 8px;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.7);
	max-width: 48px;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Taskbar - Windows 11 style */
.desktop-taskbar {
	display: flex;
	align-items: center;
	height: 36px;
	background: rgba(24,24,24,0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 0 8px;
	gap: 6px;
	border-top: 0.5px solid rgba(255,255,255,0.08);
}

.taskbar-start {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 28px;
	border-radius: 4px;
	cursor: default;
}
.taskbar-start:hover {
	background: rgba(255,255,255,0.08);
}

.taskbar-search {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,0.06);
	border-radius: 14px;
	padding: 0 12px;
	height: 26px;
	font-size: 11px;
	color: #888;
	min-width: 140px;
}

.taskbar-pinned {
	display: flex;
	gap: 2px;
	flex: 1;
	justify-content: center;
}

.taskbar-pin-icon {
	width: 28px;
	height: 28px;
	border-radius: 4px;
	opacity: 0.9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.taskbar-tray {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 4px;
}

.taskbar-time {
	color: #fff;
	font-size: 11px;
	font-weight: 400;
}

/* Stand */
.desktop-stand {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stand-neck {
	width: 50px;
	height: 28px;
	background: linear-gradient(180deg, #2a2a2a, #3a3a3a, #2a2a2a);
	border-radius: 0 0 2px 2px;
}

.stand-base {
	width: 160px;
	height: 10px;
	background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Toggle buttons */
.mqsp-preview-mode-toggle {
	display: flex;
	gap: 8px;
}

.preview-toggle-btn {
	padding: 8px 22px;
	border: 1px solid #ddd;
	border-radius: 20px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
	color: #333;
}

.preview-toggle-btn.active {
	background: #333;
	color: #fff;
	border-color: #333;
}

.preview-toggle-btn:hover {
	opacity: 0.85;
}

/* 移动端适配 - 撑满全屏，保留支架 */
@media (max-width: 768px) {
	.desktop-frame {
		width: 100%;
	}

	.desktop-bezel {
		width: 100%;
		border-radius: 0;
		padding: 2px 2px 8px;
		box-shadow: none;
	}

	.desktop-bezel::after {
		display: none;
	}

	.desktop-screen {
		border-radius: 0;
	}

	.lock-time {
		font-size: 48px;
	}

	.lock-date {
		font-size: 12px;
	}

	.lock-icon-win {
		top: 12px;
	}

	.lock-icon-win svg {
		width: 20px;
		height: 20px;
	}

	.lock-hint {
		bottom: 14px;
		font-size: 10px;
	}

	.desktop-icons {
		gap: 4px 2px;
		padding: 6px 4px;
	}

	.desktop-icon {
		width: 24px;
		height: 24px;
		border-radius: 3px;
	}

	.desktop-icon svg {
		width: 16px;
		height: 16px;
	}

	.desktop-icon-label {
		font-size: 6px;
	}

	.desktop-taskbar {
		height: 24px;
		padding: 0 4px;
		gap: 3px;
	}

	.taskbar-start {
		width: 22px;
		height: 18px;
	}

	.taskbar-start svg {
		width: 12px;
		height: 12px;
	}

	.taskbar-search {
		min-width: 60px;
		height: 18px;
		font-size: 8px;
		padding: 0 6px;
		border-radius: 10px;
	}

	.taskbar-pin-icon {
		width: 18px;
		height: 18px;
		border-radius: 3px;
	}

	.taskbar-tray svg {
		transform: scale(0.7);
	}

	.taskbar-time {
		font-size: 8px;
	}

	/* 支架移动端适配 - 缩小但保留 */
	.stand-neck {
		width: 30px;
		height: 16px;
	}

	.stand-base {
		width: 80px;
		height: 6px;
		border-radius: 0 0 4px 4px;
	}

	.preview-toggle-btn {
		padding: 6px 14px;
		font-size: 12px;
	}
}

/* Wallpaper Info */
.mqsp-wallpaper-info h1.mqsp-wallpaper-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 12px;
	line-height: 1.3;
}

.mqsp-wallpaper-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.mqsp-tag {
	display: inline-block;
	padding: 4px 12px;
	background: #f0f0f0;
	border-radius: 16px;
	font-size: 13px;
	color: #555;
	text-decoration: none;
	transition: background 0.2s;
}

.mqsp-tag:hover {
	background: #e0e0e0;
	color: #333;
}

.mqsp-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 24px;
	margin-bottom: 24px;
}

.mqsp-info-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.info-label {
	color: #999;
	font-size: 14px;
	flex-shrink: 0;
}

.info-value {
	color: #333;
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
}

.mqsp-info-link {
	color: var(--mqsp-primary, #ff6b35);
	text-decoration: none;
	transition: opacity 0.2s;
}

.mqsp-info-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.mqsp-info-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mqsp-info-color-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px 2px 4px;
	background: #f0f0f0;
	border-radius: 12px;
	font-size: 12px;
	color: #555;
	text-decoration: none;
	transition: background 0.2s;
}

.mqsp-info-color-chip:hover {
	background: #e0e0e0;
	color: #333;
}

.mqsp-info-color-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.1);
	flex-shrink: 0;
}

.mqsp-download-section {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.mqsp-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: 24px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
	border: none;
	cursor: pointer;
}

.mqsp-download-free {
	background: #ff6b35;
	color: #fff;
}

.mqsp-download-free:hover {
	background: #e55a2b;
}

.mqsp-download-vip {
	background: linear-gradient(135deg, #ffd700, #ffaa00);
	color: #333;
}

.mqsp-download-vip:hover {
	opacity: 0.9;
}

.mqsp-download-login {
	background: #52c41a;
	color: #fff;
}

.mqsp-download-login:hover {
	background: #73d13d;
}

.mqsp-download-info {
	font-size: 13px;
	color: #999;
}

.mqsp-share-section {
	display: flex;
	align-items: center;
	gap: 12px;
}

.share-label {
	font-size: 14px;
	color: #999;
}

.share-buttons {
	display: flex;
	gap: 8px;
}

.share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #e0e0e0;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s;
	color: #666;
}

.share-btn:hover {
	border-color: #ccc;
	color: #333;
}

.share-wechat:hover {
	color: #07c160;
	border-color: #07c160;
}

.share-weibo:hover {
	color: #e6162d;
	border-color: #e6162d;
}

.share-qq:hover {
	color: #12b7f5;
	border-color: #12b7f5;
}

.share-copy:hover {
	color: #ff6b35;
	border-color: #ff6b35;
}
