:root {
	--teal: #45bca1;
	--teal-hover: #3aab91;
	--text: #1f2326;
	--muted: #778087;
	--link: #3478f6;
}

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	color: var(--text);
	background: #eef3f6 url(../images/app_bg.png) left top / cover no-repeat fixed;
	-webkit-font-smoothing: antialiased;
}

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

.contain {
	position: relative;
	width: 100%;
	min-height: 100%;
	min-height: 100vh;
	padding: 24px 24px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.main {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	padding-top: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.logo-box {
	width: 40%;
	max-width: 148px;
	margin: 0 auto 36px;
}

.logo-box img {
	display: block;
	width: 100%;
	height: auto;
}

.app-tabs {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 36px;
	margin-bottom: 28px;
}

.app-tab {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	padding: 0 0 8px;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--text);
	cursor: pointer;
	position: relative;
	outline: none;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	user-select: none;
}

.app-tab:focus,
.app-tab:active,
.app-tab:focus-visible {
	outline: none;
	background: transparent;
	box-shadow: none;
}

.app-tab.active {
	color: var(--teal);
}

.app-tab.active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 100%;
	height: 3px;
	border-radius: 2px;
	background: var(--teal);
	transform: translateX(-50%);
}

.download-panel {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.download-panel.is-hidden,
.is-hidden {
	display: none !important;
}

.download-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 108px;
	padding: 28px 24px;
	background: rgba(255, 255, 255, 0.88);
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(35, 55, 70, 0.1);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 32px rgba(35, 55, 70, 0.14);
}

.platform {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	height: 44px;
}

.platform-icon {
	width: 30px;
	height: 30px;
	object-fit: contain;
	flex-shrink: 0;
}

.platform-icon.platform-icon-app {
	width: 44px;
	height: 44px;
	border-radius: 10px;
}

.platform-name {
	display: flex;
	align-items: center;
	width: 72px;
	height: 36px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	color: var(--text);
	white-space: nowrap;
}

.download-btn {
	appearance: none;
	border: 0;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 122px;
	height: 40px;
	padding: 0;
	border-radius: 999px;
	background: var(--teal);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	pointer-events: none;
}

.extra-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
	font-size: 15px;
	color: var(--link);
}

.extra-links a {
	color: var(--link);
}

.extra-split {
	color: var(--link);
	opacity: 0.7;
}

.sn-extra {
	display: block;
	max-width: 100%;
	margin-top: 8px;
	font-size: 12px;
	color: var(--muted);
	word-break: break-all;
	text-align: center;
}

.footer {
	flex-shrink: 0;
	padding: 28px 0 8px;
	text-align: center;
	font-size: 14px;
	color: #9aa3ab;
}

.footer a:hover {
	color: var(--text);
}

.weixin-mask {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.62);
}

.weixin-tip {
	position: fixed;
	top: 10px;
	right: 12px;
	z-index: 1001;
	width: 168px;
	padding: 14px 16px 16px;
	border-radius: 10px;
	background: var(--teal);
	color: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.weixin-tip-arrow {
	position: absolute;
	top: -7px;
	right: 16px;
	width: 14px;
	height: 14px;
	background: var(--teal);
	transform: rotate(45deg);
	border-radius: 2px;
}

.weixin-tip-text {
	position: relative;
	z-index: 1;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.02em;
}

.weixin-tip-text p {
	margin: 0;
}

@media screen and (min-width: 768px) {
	.main {
		max-width: 440px;
		padding-top: 80px;
		margin-left: auto;
		margin-right: 12vw;
	}

	.logo-box {
		max-width: 168px;
		margin-bottom: 40px;
	}

	.download-panel {
		gap: 32px;
	}

	.download-card {
		min-height: 112px;
		padding: 30px 28px;
	}

	.platform-name {
		width: 80px;
		font-size: 18px;
	}

	.download-btn {
		width: 132px;
		height: 42px;
		font-size: 14px;
	}
}

@media screen and (max-width: 360px) {
	.contain {
		padding: 20px 16px 16px;
	}

	.app-tabs {
		gap: 24px;
	}

	.app-tab {
		font-size: 15px;
	}

	.download-panel {
		gap: 22px;
	}

	.download-card {
		min-height: 96px;
		padding: 22px 16px;
		gap: 10px;
	}

	.platform-name {
		width: auto;
		font-size: 15px;
	}

	.download-btn {
		width: auto;
		min-width: 108px;
		height: 38px;
		padding: 0 12px;
		font-size: 12px;
	}
}
