/* 首屏与路由切换共用的“智汇千川”载入品牌动画。 */
.loading-next,
.loading-wrapper {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	overflow: hidden;
	color: #dffaff;
	background:
		radial-gradient(circle at 50% 45%, rgb(0 194 255 / 14%), transparent 27%),
		radial-gradient(circle at 12% 10%, rgb(37 99 235 / 18%), transparent 34%),
		linear-gradient(145deg, #020914 0%, #061727 52%, #020812 100%);
	isolation: isolate;
	transition: opacity 0.26s ease, visibility 0.26s ease;
}

.loading-next::before,
.loading-wrapper::before {
	position: absolute;
	inset: -20%;
	z-index: -2;
	background-image:
		linear-gradient(rgb(66 208 255 / 5%) 1px, transparent 1px),
		linear-gradient(90deg, rgb(66 208 255 / 5%) 1px, transparent 1px);
	background-size: 44px 44px;
	transform: perspective(620px) rotateX(58deg) translateY(18%);
	transform-origin: center bottom;
	content: '';
	mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
}

.loading-next::after,
.loading-wrapper::after {
	position: absolute;
	top: -20%;
	left: 0;
	width: 100%;
	height: 22%;
	background: linear-gradient(180deg, transparent, rgb(48 214 255 / 7%), transparent);
	content: '';
	animation: zhihui-background-scan 5.2s linear infinite;
}

.loading-next.is-leaving,
.loading-wrapper.hide {
	opacity: 0;
	visibility: hidden;
}

.zhihui-loader {
	position: relative;
	display: grid;
	place-items: center;
	width: min(480px, 86vw);
	height: 260px;
	font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
}

.zhihui-loader__orbit {
	position: absolute;
	width: 238px;
	height: 238px;
	border: 1px solid rgb(67 214 255 / 13%);
	border-radius: 50%;
	box-shadow: inset 0 0 38px rgb(14 165 233 / 5%), 0 0 45px rgb(14 165 233 / 6%);
	animation: zhihui-orbit 12s linear infinite;
}

.zhihui-loader__orbit::before,
.zhihui-loader__orbit::after {
	position: absolute;
	border: 1px dashed rgb(96 220 255 / 14%);
	border-radius: inherit;
	content: '';
}

.zhihui-loader__orbit::before {
	inset: 18px;
}

.zhihui-loader__orbit::after {
	inset: 52px;
	border-style: solid;
	border-color: rgb(96 220 255 / 8%);
}

.zhihui-loader__orbit i {
	position: absolute;
	width: 7px;
	height: 7px;
	border: 1px solid #b9f6ff;
	border-radius: 50%;
	background: #20d7ff;
	box-shadow: 0 0 7px #20d7ff, 0 0 18px rgb(32 215 255 / 75%);
}

.zhihui-loader__orbit i:nth-child(1) {
	top: 25px;
	left: 38px;
}

.zhihui-loader__orbit i:nth-child(2) {
	right: -3px;
	top: 112px;
}

.zhihui-loader__orbit i:nth-child(3) {
	right: 49px;
	bottom: 16px;
}

.zhihui-loader__panel {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-direction: column;
	width: min(390px, 82vw);
	padding: 31px 28px 27px;
	border: 1px solid rgb(98 218 255 / 18%);
	background: linear-gradient(135deg, rgb(5 24 41 / 82%), rgb(3 15 28 / 58%));
	box-shadow: 0 24px 80px rgb(0 0 0 / 38%), inset 0 0 34px rgb(34 211 238 / 3%);
	clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
	backdrop-filter: blur(12px);
}

.zhihui-loader__panel::before,
.zhihui-loader__panel::after {
	position: absolute;
	width: 44px;
	height: 2px;
	background: linear-gradient(90deg, #38dcff, transparent);
	box-shadow: 0 0 12px rgb(56 220 255 / 70%);
	content: '';
}

.zhihui-loader__panel::before {
	top: 0;
	left: 17px;
}

.zhihui-loader__panel::after {
	right: 17px;
	bottom: 0;
	transform: rotate(180deg);
}

.zhihui-loader__eyebrow {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 9px;
	color: rgb(148 225 244 / 62%);
	font-family: 'Segoe UI', sans-serif;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.23em;
	white-space: nowrap;
}

.zhihui-loader__eyebrow i {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgb(63 207 244 / 42%));
}

.zhihui-loader__eyebrow i:last-child {
	transform: rotate(180deg);
}

.zhihui-loader__logo {
	position: relative;
	margin: 15px 0 19px;
	color: transparent;
	background: linear-gradient(100deg, #f4fdff 8%, #78e8ff 35%, #fff 50%, #29c9ff 72%, #dffaff 96%);
	background-size: 220% 100%;
	background-clip: text;
	font-size: clamp(34px, 8vw, 46px);
	font-weight: 760;
	letter-spacing: 0.15em;
	line-height: 1.1;
	text-indent: 0.15em;
	text-shadow: 0 0 26px rgb(56 220 255 / 22%);
	animation: zhihui-logo-light 2.4s ease-in-out infinite;
}

.zhihui-loader__logo::after {
	position: absolute;
	inset: 0;
	color: #bdf5ff;
	content: attr(data-text);
	clip-path: inset(0 0 82% 0);
	filter: drop-shadow(0 0 5px #35d9ff);
	animation: zhihui-logo-scan 2.4s ease-in-out infinite;
}

.zhihui-loader__progress {
	position: relative;
	overflow: hidden;
	width: min(250px, 66vw);
	height: 2px;
	background: rgb(90 209 239 / 13%);
	box-shadow: 0 0 0 1px rgb(54 195 232 / 4%);
}

.zhihui-loader__progress i {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, #24cfff 38%, #f1fdff 50%, #24cfff 62%, transparent 100%);
	transform: translateX(-100%);
	animation: zhihui-progress 1.65s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.zhihui-loader__status {
	display: flex;
	align-items: center;
	margin-top: 13px;
	color: rgb(180 232 245 / 64%);
	font-size: 11px;
	letter-spacing: 0.18em;
}

.zhihui-loader__status > i {
	width: 5px;
	height: 5px;
	margin-right: 8px;
	border-radius: 50%;
	background: #3ce6ff;
	box-shadow: 0 0 9px #3ce6ff;
	animation: zhihui-status-pulse 1.2s ease-in-out infinite;
}

.zhihui-loader__status b {
	display: inline-block;
	overflow: hidden;
	width: 24px;
	color: #62dcf7;
	font-size: 9px;
	letter-spacing: 0.12em;
	white-space: nowrap;
	animation: zhihui-dots 1.2s steps(4, end) infinite;
}

@keyframes zhihui-background-scan {
	to { transform: translateY(650%); }
}

@keyframes zhihui-orbit {
	to { transform: rotate(360deg); }
}

@keyframes zhihui-logo-light {
	0%, 100% { background-position: 100% 50%; filter: brightness(0.92); }
	50% { background-position: 0% 50%; filter: brightness(1.13); }
}

@keyframes zhihui-logo-scan {
	0% { clip-path: inset(0 0 88% 0); opacity: 0; }
	20% { opacity: 0.85; }
	62% { clip-path: inset(78% 0 8% 0); opacity: 0.55; }
	100% { clip-path: inset(96% 0 0 0); opacity: 0; }
}

@keyframes zhihui-progress {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

@keyframes zhihui-status-pulse {
	0%, 100% { opacity: 0.4; transform: scale(0.8); }
	50% { opacity: 1; transform: scale(1.15); }
}

@keyframes zhihui-dots {
	0% { width: 0; }
	100% { width: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.loading-next::after,
	.loading-wrapper::after,
	.zhihui-loader__orbit,
	.zhihui-loader__logo,
	.zhihui-loader__logo::after,
	.zhihui-loader__progress i,
	.zhihui-loader__status > i,
	.zhihui-loader__status b {
		animation: none;
	}
}
