/* STEP 3D 预览弹窗样式 */
.sv-mask {
	position: fixed;
	left: 0; top: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, .55);
	z-index: 99990;
	display: none;
}
.sv-mask.on { display: block; }

.sv-modal {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 680px;
	max-width: 94%;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 12px 48px rgba(0, 0, 0, .35);
}

/* 红色标题栏 */
.sv-head {
	display: flex;
	align-items: center;
	background: #d6362d;
	padding: 10px 14px;
}
.sv-badge {
	flex: none;
	background: #fff;
	color: #d6362d;
	font-weight: bold;
	font-size: 13px;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 4px;
	letter-spacing: .5px;
	margin-right: 12px;
}
.sv-tit h4 {
	color: #fff;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.3;
}
.sv-tit p {
	color: rgba(255, 255, 255, .85);
	font-size: 12px;
	margin-top: 2px;
}
.sv-acts {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}
.sv-act {
	width: 28px; height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .22);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	padding: 0;
}
.sv-act:hover { background: rgba(255, 255, 255, .38); }
.sv-act svg { width: 15px; height: 15px; fill: #fff; }

/* 视角工具栏 */
.sv-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid #ececec;
}
.sv-label { font-size: 13px; color: #333; margin-right: 2px; }
.sv-view-btn {
	background: #f5f5f6;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	color: #555;
	padding: 4px 13px;
	cursor: pointer;
	transition: all .15s;
}
.sv-view-btn:hover { background: #eee; color: #d6362d; }
.sv-fit {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	font-size: 12px;
	color: #555;
	padding: 4px 12px;
	cursor: pointer;
	transition: all .15s;
}
.sv-fit:hover { color: #d6362d; border-color: #d6362d; }
.sv-fit svg { width: 12px; height: 12px; fill: currentColor; }

/* 3D 视图区域 */
.sv-body {
	position: relative;
	height: 460px;
	background: #f0f1f2;
}
.sv-canvas { display: block; width: 100%; height: 100%; }

.sv-hint {
	position: absolute;
	left: 50%; bottom: 16px;
	transform: translateX(-50%);
	background: #fff;
	border-radius: 999px;
	padding: 6px 18px;
	font-size: 12px;
	color: #666;
	white-space: nowrap;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
	pointer-events: none;
}

.sv-tip {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	font-size: 13px;
	color: #888;
	pointer-events: none;
}
.sv-tip .sv-spin {
	display: block;
	width: 34px; height: 34px;
	margin: 0 auto 10px;
	border: 3px solid #ddd;
	border-top-color: #d6362d;
	border-radius: 50%;
	animation: sv-rotate .8s linear infinite;
}
.sv-tip.sv-error .sv-spin {
	display: none;
	margin: 0;
}
@keyframes sv-rotate { to { transform: rotate(360deg); } }

/* 全屏时铺满 */
.sv-modal:fullscreen {
	width: 100%;
	max-width: none;
	height: 100%;
	border-radius: 0;
	display: flex;
	flex-direction: column;
}
.sv-modal:fullscreen .sv-body { flex: 1; height: auto; }
