:root {
	--wi-primary: #6455e7;
	--wi-primary-deep: #4f41c8;
	--wi-primary-soft: #f0efff;
	--wi-primary-pale: #f8f7ff;
	--wi-text: #1e2435;
	--wi-muted: #667085;
	--wi-line: #e3e2f8;
	--wi-card: rgba(255, 255, 255, 0.92);
	--wi-shadow: 0 26px 70px rgba(76, 65, 200, 0.16);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	min-height: 100%;
}

body {
	color: var(--wi-text);
	font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	border: 0;
	cursor: pointer;
	font: inherit;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

.download-page {
	isolation: isolate;
	min-height: 100vh;
	overflow: hidden;
	padding: 28px 7vw 38px;
	position: relative;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 247, 255, 0.96) 46%, rgba(239, 237, 255, 0.86) 100%),
		radial-gradient(circle at 14% 12%, rgba(100, 85, 231, 0.18), transparent 30%);
}

.download-page::before {
	background-image:
		linear-gradient(rgba(100, 85, 231, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(100, 85, 231, 0.055) 1px, transparent 1px);
	background-size: 44px 44px;
	content: "";
	inset: 0;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 76%);
	pointer-events: none;
	position: absolute;
	z-index: -3;
}

.page-orb {
	border-radius: 999px;
	position: absolute;
	z-index: -2;
}

.page-orb-left {
	background: linear-gradient(135deg, rgba(100, 85, 231, 0.24), rgba(100, 85, 231, 0));
	height: 520px;
	left: -180px;
	top: -190px;
	width: 520px;
}

.page-orb-right {
	background: linear-gradient(135deg, rgba(129, 115, 255, 0.18), rgba(255, 255, 255, 0));
	bottom: -220px;
	height: 680px;
	right: -220px;
	width: 680px;
}

.topbar {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	position: relative;
	z-index: 2;
}

.brand {
	align-items: center;
	background: rgba(255, 255, 255, 0.42);
	border: 1px solid rgba(100, 85, 231, 0.12);
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(76, 65, 200, 0.06);
	display: flex;
	gap: 14px;
	padding: 8px 14px 8px 10px;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand img {
	filter: brightness(0) saturate(100%) invert(39%) sepia(66%) saturate(1697%) hue-rotate(225deg) brightness(91%) contrast(98%);
	height: 44px;
	width: auto;
}

.brand span {
	color: #292344;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-shadow: none;
}

.brand:hover {
	background: rgba(255, 255, 255, 0.66);
	border-color: rgba(100, 85, 231, 0.2);
	box-shadow: 0 12px 30px rgba(76, 65, 200, 0.1);
}

.brand:focus-visible,
.topbar-actions a:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.ghost-btn:focus-visible,
.close-btn:focus-visible {
	outline: 2px solid rgba(100, 85, 231, 0.72);
	outline-offset: 3px;
}

.topbar-actions {
	align-items: center;
	color: #4d4a68;
	display: flex;
	font-size: 15px;
	gap: 12px;
}

.topbar-actions a {
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 9px 16px;
	transition: 0.2s ease;
}

.topbar-actions a:hover {
	background: rgba(255, 255, 255, 0.78);
	border-color: rgba(100, 85, 231, 0.18);
	color: var(--wi-primary);
}

.hero {
	align-items: center;
	display: grid;
	gap: clamp(36px, 6vw, 80px);
	grid-template-columns: minmax(360px, 0.92fr) minmax(430px, 1.08fr);
	margin: 104px auto 0;
	max-width: 1160px;
	position: relative;
	z-index: 1;
}

.hero-copy {
	max-width: 540px;
}

.eyebrow {
	align-items: center;
	color: var(--wi-primary);
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	gap: 10px;
	letter-spacing: 0.12em;
	margin-bottom: 18px;
}

.eyebrow::before {
	background: var(--wi-primary);
	border-radius: 999px;
	content: "";
	height: 10px;
	width: 10px;
}

.hero h1 {
	color: #201b38;
	font-size: clamp(42px, 5vw, 66px);
	letter-spacing: 0.04em;
	line-height: 1.08;
	margin-bottom: 24px;
}

.hero-desc {
	color: var(--wi-muted);
	font-size: 18px;
	line-height: 1.9;
	max-width: 500px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
	align-items: center;
	border-radius: 8px;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	transition: 0.2s ease;
}

.primary-btn {
	background: linear-gradient(135deg, var(--wi-primary), #8173ff);
	box-shadow: 0 14px 28px rgba(100, 85, 231, 0.26);
	color: #fff;
}

.primary-btn:hover {
	background: linear-gradient(135deg, var(--wi-primary-deep), var(--wi-primary));
	transform: translateY(-1px);
}

.secondary-btn,
.ghost-btn {
	background: #fff;
	border: 1px solid var(--wi-line);
	color: #4c4868;
}

.secondary-btn:hover,
.ghost-btn:hover:not(:disabled) {
	border-color: rgba(100, 85, 231, 0.36);
	color: var(--wi-primary);
}

.ghost-btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.plugin-card {
	position: relative;
}

.plugin-window {
	background: var(--wi-card);
	border: 1px solid rgba(100, 85, 231, 0.14);
	border-radius: 8px;
	box-shadow: var(--wi-shadow);
	overflow: hidden;
	padding: 0 0 28px;
}

.window-header {
	align-items: center;
	background: linear-gradient(90deg, rgba(100, 85, 231, 0.12), rgba(100, 85, 231, 0.04));
	border-bottom: 1px solid rgba(100, 85, 231, 0.1);
	display: flex;
	gap: 8px;
	padding: 17px 20px;
}

.window-header span {
	background: rgba(100, 85, 231, 0.36);
	border-radius: 999px;
	height: 10px;
	width: 10px;
}

.assistant-preview {
	align-items: center;
	display: flex;
	gap: 18px;
	padding: 34px 32px 28px;
}

.assistant-icon {
	align-items: center;
	background: var(--wi-primary-soft);
	border-radius: 8px;
	color: var(--wi-primary);
	display: flex;
	height: 76px;
	justify-content: center;
	width: 76px;
}

.assistant-icon svg {
	height: 42px;
	width: 42px;
}

.assistant-icon path {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.5;
}

.assistant-preview p {
	color: var(--wi-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 7px;
}

.assistant-preview strong {
	color: #26213f;
	font-size: 24px;
}

.feature-list {
	display: grid;
	gap: 12px;
	padding: 0 32px;
}

.feature-list div {
	align-items: center;
	background: var(--wi-primary-pale);
	border: 1px solid rgba(100, 85, 231, 0.1);
	border-radius: 8px;
	display: flex;
	gap: 14px;
	padding: 16px 18px;
}

.feature-list strong {
	color: var(--wi-primary);
	font-size: 20px;
}

.feature-list span {
	color: #4c4868;
}

.fade-enter-active,
.fade-leave-active {
	transition: opacity 0.22s ease;
}

.fade-enter-from,
.fade-leave-to {
	opacity: 0;
}

.slide-enter-active,
.slide-leave-active {
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.slide-enter-from,
.slide-leave-to {
	opacity: 0;
	transform: translate(-50%, -46%);
}

.modal-mask {
	background: rgba(26, 24, 45, 0.36);
	backdrop-filter: blur(8px);
	inset: 0;
	position: fixed;
	z-index: 50;
}

.install-modal {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 28px 90px rgba(35, 31, 70, 0.28);
	left: 50%;
	max-height: min(86vh, 760px);
	max-width: 1080px;
	overflow: hidden;
	position: fixed;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(88vw, 1080px);
	z-index: 51;
}

.modal-header,
.modal-footer {
	align-items: center;
	display: flex;
	justify-content: space-between;
	padding: 22px 28px;
}

.modal-header {
	border-bottom: 1px solid #efeff8;
}

.modal-header p {
	color: var(--wi-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 4px;
}

.modal-header h3 {
	color: #211d3d;
	font-size: 24px;
}

.close-btn {
	align-items: center;
	background: #f7f6ff;
	border-radius: 8px;
	color: #6a6682;
	display: flex;
	height: 38px;
	justify-content: center;
	transition: 0.2s ease;
	width: 38px;
}

.close-btn:hover {
	background: var(--wi-primary-soft);
	color: var(--wi-primary);
}

.close-btn svg {
	height: 22px;
	width: 22px;
}

.close-btn path {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.modal-content {
	padding: 28px;
}

.step {
	display: none;
	gap: 28px;
	grid-template-columns: minmax(240px, 0.85fr) minmax(360px, 1.15fr);
}

.step.active {
	display: grid;
}

.step-copy {
	background: linear-gradient(180deg, var(--wi-primary-pale), #fff);
	border: 1px solid var(--wi-line);
	border-radius: 8px;
	padding: 28px;
}

.step-count {
	align-items: baseline;
	display: flex;
	gap: 8px;
	margin-bottom: 34px;
}

.step-count span {
	color: #211d3d;
	font-size: 24px;
	font-weight: 700;
}

.step-count em {
	color: #8b879d;
	font-size: 14px;
	font-style: normal;
}

.step-desc {
	display: grid;
	gap: 16px;
}

.desc-item {
	align-items: flex-start;
	color: #5f5b75;
	display: flex;
	font-size: 15px;
	gap: 10px;
	line-height: 1.8;
}

.desc-item span {
	align-items: center;
	background: var(--wi-primary);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 12px;
	height: 20px;
	justify-content: center;
	margin-top: 4px;
	width: 20px;
}

.step-image {
	background: #fafaff;
	border: 1px solid var(--wi-line);
	border-radius: 8px;
	overflow: hidden;
}

.step-image img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.modal-footer {
	border-top: 1px solid #efeff8;
}

.step-dots {
	display: flex;
	gap: 8px;
}

.step-dots span {
	background: #d8d6ee;
	border-radius: 999px;
	height: 8px;
	transition: 0.2s ease;
	width: 8px;
}

.step-dots span.active {
	background: var(--wi-primary);
	width: 24px;
}

@media (max-width: 980px) {
	.download-page {
		padding: 22px 20px 32px;
	}

	.topbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.brand span {
		font-size: 18px;
		letter-spacing: 0.08em;
	}

	.hero {
		grid-template-columns: 1fr;
		margin-top: 58px;
	}

	.hero-copy {
		max-width: none;
	}

	.step,
	.step.active {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.topbar-actions,
	.hero-actions {
		flex-wrap: wrap;
	}

	.hero {
		margin-top: 42px;
	}

	.hero h1 {
		font-size: 38px;
	}

	.hero-desc {
		font-size: 16px;
	}

	.primary-btn,
	.secondary-btn,
	.ghost-btn {
		width: 100%;
	}

	.assistant-preview {
		align-items: flex-start;
		flex-direction: column;
		padding: 26px 22px 22px;
	}

	.feature-list {
		padding: 0 22px;
	}

	.install-modal {
		max-height: 90vh;
		overflow-y: auto;
		width: calc(100vw - 24px);
	}

	.modal-header,
	.modal-footer,
	.modal-content {
		padding: 18px;
	}

	.modal-footer {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.step-dots {
		justify-content: center;
		order: -1;
	}
}
