/**
 * 统一人机验证组件样式(滑动拼图 + Turnstile 加载占位)
 * 中性浅色设计,适配各端登录页(暗色/亮色背景均清晰可见)
 */
.ns-nc {
	width: 300px;
	margin: 0 auto;
	-webkit-user-select: none;
	user-select: none;
	text-align: left;
}

.ns-nc-panel {
	position: relative;
	width: 300px;
	height: 150px;
	border-radius: 4px;
	overflow: hidden;
	background: #F0F2F5;
}

.ns-nc-bg {
	display: block;
	width: 300px;
	height: 150px;
}

.ns-nc-block {
	position: absolute;
	left: 0;
	top: 0;
	width: 60px;
	height: 60px;
	z-index: 2;
}

.ns-nc-refresh {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	background: rgba(0, 0, 0, .35);
	border-radius: 3px;
	color: #FFFFFF;
	cursor: pointer;
	z-index: 3;
}

.ns-nc-refresh:hover {
	background: rgba(0, 0, 0, .55);
}

.ns-nc-track {
	position: relative;
	width: 300px;
	height: 40px;
	margin-top: 10px;
	background: #F7F9FA;
	border: 1px solid #E4E7EB;
	border-radius: 4px;
	overflow: hidden;
	box-sizing: border-box;
}

.ns-nc-tip {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 38px;
	line-height: 38px;
	text-align: center;
	font-size: 13px;
	color: #7A7D80;
	pointer-events: none;
	z-index: 1;
}

.ns-nc-progress {
	position: absolute;
	left: 0;
	top: 0;
	height: 38px;
	width: 40px;
	background: rgba(70, 133, 253, .25);
	z-index: 0;
}

.ns-nc-handle {
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 38px;
	line-height: 38px;
	text-align: center;
	background: #FFFFFF;
	border-radius: 3px;
	color: #4685FD;
	cursor: grab;
	box-shadow: 0 0 6px rgba(0, 0, 0, .18);
	z-index: 2;
	box-sizing: border-box;
}

.ns-nc-handle .layui-icon {
	font-size: 18px;
}

/* 拖动跟手:拖动中禁用过渡,松手/复位时保留过渡动画 */
.ns-nc .ns-nc-block,
.ns-nc .ns-nc-handle,
.ns-nc .ns-nc-progress {
	transition: left .18s ease, width .18s ease;
}

.ns-nc.ns-nc-dragging .ns-nc-block,
.ns-nc.ns-nc-dragging .ns-nc-handle,
.ns-nc.ns-nc-dragging .ns-nc-progress {
	transition: none;
}

.ns-nc-track.ns-nc-ok .ns-nc-progress {
	background: rgba(82, 196, 26, .3);
}

.ns-nc-track.ns-nc-ok .ns-nc-handle {
	color: #52C41A;
}

.ns-nc-track.ns-nc-fail .ns-nc-progress {
	background: rgba(255, 77, 79, .3);
}

.ns-nc-track.ns-nc-fail .ns-nc-handle {
	color: #FF4D4F;
}

/* Turnstile 容器(居中) */
.ns-nc-ts-widget {
	width: 300px;
	margin: 0 auto;
}

/* Turnstile 加载占位 */
.ns-nc-ts-loading {
	width: 300px;
	height: 65px;
	line-height: 65px;
	margin: 0 auto;
	text-align: center;
	font-size: 13px;
	color: #9A9EA6;
	background: rgba(128, 128, 128, .08);
	border: 1px solid rgba(128, 128, 128, .15);
	border-radius: 4px;
	box-sizing: border-box;
}

.ns-nc-ts-loading .layui-icon {
	font-size: 15px;
	margin-right: 6px;
}

/* Turnstile 手动降级入口 */
.ns-nc-ts-fallback {
	margin-top: 6px;
	text-align: center;
}

.ns-nc-ts-switch {
	color: #7A7D80;
	font-size: 12px;
	text-decoration: none;
}

.ns-nc-ts-switch:hover {
	color: #5F6368;
	text-decoration: underline;
}
