:root {
	--color-bg: #ebe4f7;
	--color-bg-deep: #ddd0f0;
	--color-bg-card: #f3eefb;
	--color-bg-section: #e2d9f8;
	--color-header-start: #c9b6e8;
	--color-header-mid: #b8a3df;
	--color-text: #4a3566;
	--color-text-soft: #6b5589;
	--color-text-muted: #8a75a8;
	--color-accent: #7c5cbf;
	--color-accent-light: #9b7fd4;
	--color-accent-title: #6f4fb8;
	--color-border: rgba(124, 92, 191, 0.35);
	--color-footer-bg: #b8a3d6;
	--color-footer-text: #5c4680;
	--color-partner-bg: #e2d9f8;
	--color-product-gradient: #d8c9f0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	color: var(--color-text);
	background-color: var(--color-bg);
}

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

button {
	font: inherit;
	cursor: pointer;
}

#loading {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background: var(--color-bg);
	display: flex;
	justify-content: center;
	align-items: center;
}

.loadCircle {
	border: 5px solid rgba(155, 127, 212, 0.25);
	border-top: 5px solid var(--color-accent-light);
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: loadCircle-rotate 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.appHidden {
	visibility: hidden !important;
}

.appShow {
	visibility: visible !important;
}

.loadHidden {
	display: none !important;
}

@keyframes loadCircle-rotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

#appWrap {
	width: 100%;
	min-height: 100vh;
}

.container {
	position: relative;
	width: 100%;
}

/* Header */
.site-head {
	display: flex;
	align-items: center;
	height: 56px;
	background: linear-gradient(90deg, var(--color-header-start) 0%, var(--color-header-mid) 50%, var(--color-header-start) 100%);
	border-bottom: 1px solid var(--color-border);
}

.head-logo {
	flex: 0 0 50%;
	height: 56px;
	display: flex;
	align-items: center;
	padding-left: 8vw;
	background: transparent;
}

.head-logo img {
	display: block;
	height: 42px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.head-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--color-text);
}

.tab {
	padding: 0 20px;
	line-height: 56px;
	color: var(--color-text-soft);
	font-size: 16px;
	letter-spacing: 1px;
	transition: color 0.2s;
}

.tab:hover {
	color: var(--color-accent);
}

.tab.active {
	color: var(--color-accent-title);
	font-size: 20px;
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--color-accent-light);
}

/* Page views */
.page-view {
	display: none;
}

.page-view.active {
	display: block;
}

/* Hero */
.hero-section {
	background-color: var(--color-bg);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
}

.hero-inner {
	display: flex;
	align-items: flex-start;
	min-height: 520px;
	padding: 32px 8vw 48px;
}

.hero-content {
	max-width: 420px;
	padding-top: 24px;
}

.hero-title {
	margin: 0 0 20px;
	font-size: 26px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 1px;
	line-height: 1.35;
	text-shadow:
		-1px -1px 0 rgba(0, 0, 0, 0.85),
		1px -1px 0 rgba(0, 0, 0, 0.85),
		-1px 1px 0 rgba(0, 0, 0, 0.85),
		1px 1px 0 rgba(0, 0, 0, 0.85),
		0 2px 10px rgba(20, 8, 45, 0.45);
}

.hero-desc {
	margin: 0 0 24px;
	font-size: 17px;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.75;
	text-shadow:
		-1px -1px 0 rgba(0, 0, 0, 0.8),
		1px -1px 0 rgba(0, 0, 0, 0.8),
		-1px 1px 0 rgba(0, 0, 0, 0.8),
		1px 1px 0 rgba(0, 0, 0, 0.8),
		0 1px 6px rgba(20, 8, 45, 0.4);
}

.welcome-btn button {
	display: block;
	width: 100%;
	max-width: 320px;
	margin-top: 14px;
	color: #3a2566;
	text-align: center;
	font-size: 15px;
	line-height: 1.4;
	padding: 13px 24px;
	border-radius: 3rem;
	border: 1px solid rgba(255, 255, 255, 0.85);
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 16px rgba(35, 18, 60, 0.25);
}

.btn-install {
	letter-spacing: 2px;
	font-size: 16px;
	font-weight: 600;
}

.btn-install:hover {
	background-color: rgba(255, 255, 255, 0.75);
}

/* Partner bar */
.partner-bar {
	background-color: var(--color-bg-section);
	padding: 20px 0 24px;
	line-height: 0;
}

.partners-banner {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	height: auto;
	padding: 0;
	vertical-align: top;
	background-color: var(--color-bg-section);
}

/* Products section */
.products-section {
	background-color: var(--color-bg-section);
	padding: 8px 0 40px;
}

.products-title {
	display: block;
	text-align: center;
	font-size: 36px;
	font-weight: 700;
	color: var(--color-accent-title);
	padding: 36px 16px 20px;
	position: relative;
}

.products-title::after {
	content: "";
	display: block;
	width: 72px;
	height: 5px;
	margin: 10px auto 0;
	background: linear-gradient(90deg, transparent, var(--color-accent-light), transparent);
}

.products-text {
	display: flex;
	align-items: center;
	margin: 20px 10vw;
	border-radius: 12px;
	overflow: hidden;
	min-height: 160px;
	background: rgba(255, 255, 255, 0.25);
}

.product-row .products-text-left {
	flex: 1;
	padding: 24px 28px;
	background: linear-gradient(to right, var(--color-product-gradient), rgba(235, 228, 247, 0));
}

.product-reverse .products-text-left {
	background: linear-gradient(to left, var(--color-product-gradient), rgba(235, 228, 247, 0));
}

.products-img {
	flex: 0 0 200px;
	height: 160px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.products-text dl {
	margin: 0;
}

.products-text dl dt {
	color: var(--color-text);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 12px;
}

.products-text dl dd {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 16px;
	line-height: 1.55;
}

/* Footer */
.footer {
	line-height: 48px;
	font-size: 12px;
	text-align: center;
	background-color: var(--color-footer-bg);
	color: var(--color-footer-text);
}

/* Desktop */
@media only screen and (min-width: 768px) {
	.head-logo {
		padding-left: 19vw;
	}

	.head-logo img {
		height: 46px;
	}

	.hero-section {
		background-image: url("../img/hero-pc.png");
	}

	.hero-about {
		min-height: 70vh;
	}

	.hero-inner {
		min-height: 560px;
		padding: 40px 19vw 56px;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-desc {
		font-size: 18px;
		line-height: 2rem;
	}

	.products-text {
		margin: 24px 18vw;
		min-height: 200px;
	}

	.products-img {
		flex: 0 0 260px;
		height: 200px;
	}

	.products-text dl dt {
		font-size: 26px;
		line-height: 1.5;
	}

	.products-text dl dd {
		font-size: 20px;
		line-height: 1.6;
	}

	.products-title {
		font-size: 48px;
		padding: 48px 0 28px;
	}
}

/* Mobile */
@media only screen and (max-width: 767px) {
	.site-head {
		flex-direction: column;
		height: auto;
	}

	.head-logo {
		padding-left: 6vw;
	}

	.head-logo img {
		height: 38px;
		max-width: 140px;
	}

	.head-nav {
		width: 100%;
		border-top: 1px solid var(--color-border);
	}

	.tab {
		flex: 1;
		text-align: center;
		padding: 0 8px;
		line-height: 44px;
		font-size: 14px;
	}

	.tab.active {
		font-size: 16px;
	}

	.hero-section {
		background-image: url("../img/hero-h5.png");
	}

	.hero-inner {
		min-height: auto;
		padding: 20px 5vw 32px;
	}

	.hero-content {
		max-width: 100%;
		padding-top: 0;
	}

	.hero-content {
		padding-top: 0;
	}

	.hero-title {
		font-size: 18px;
		color: #ffffff;
		text-align: center;
		padding: 0 4vw;
	}

	.hero-desc {
		font-size: 14px;
		color: rgba(255, 255, 255, 0.92);
		text-align: center;
		line-height: 1.6;
	}

	.welcome-btn button {
		max-width: 100%;
	}

	.products-text {
		flex-direction: column;
		margin: 16px 4vw;
		min-height: auto;
	}

	.product-reverse {
		flex-direction: column-reverse;
	}

	.products-img {
		flex: none;
		width: 100%;
		height: 140px;
	}

	.product-row .products-text-left,
	.product-reverse .products-text-left {
		width: 100%;
		padding: 16px 18px;
		background: linear-gradient(to bottom, var(--color-product-gradient), rgba(235, 228, 247, 0));
	}

	.products-text dl dt {
		font-size: 17px;
	}

	.products-text dl dd {
		font-size: 14px;
	}

	.products-title {
		font-size: 26px;
		padding: 28px 16px 12px;
	}

	.partners-banner {
		padding: 0;
	}
}
