* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	background: #f5f6fa;
	color: #333;
	min-height: 100vh;
}

.hidden {
	display: none !important;
}

.page {
	max-width: 480px;
	margin: 0 auto;
	padding: 24px 20px 40px;
}

.title {
	font-size: 26px;
	font-weight: 700;
	color: #222;
}

.subtitle {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.7;
	color: #888;
}

.card {
	margin-top: 24px;
	padding: 20px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.field-label {
	display: block;
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
}

.field-label + .field-input {
	margin-bottom: 18px;
}

.field-input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #e8e8ee;
	border-radius: 10px;
	font-size: 16px;
	background: #fafafa;
	outline: none;
}

.field-input:focus {
	border-color: #6b5ce7;
	background: #fff;
}

.preview {
	margin-top: 16px;
	padding: 16px;
	background: #f4f7ff;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.9;
	color: #333;
}

.highlight {
	color: #6b5ce7;
	font-weight: 700;
}

.pay-btn {
	display: block;
	width: 100%;
	height: 48px;
	margin-top: 28px;
	border: none;
	border-radius: 24px;
	background: linear-gradient(135deg, #7b6cf0, #6b5ce7);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.pay-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.help {
	margin-top: 16px;
	font-size: 12px;
	color: #aaa;
	text-align: center;
	line-height: 1.6;
}

.tip-box {
	max-width: 420px;
	margin: 80px auto;
	padding: 32px 24px;
	text-align: center;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.tip-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	line-height: 56px;
	border-radius: 50%;
	background: #fff3e0;
	color: #f57c00;
	font-size: 28px;
	font-weight: 700;
}

.loading-mask {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.82);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999;
}

.loading-inner {
	text-align: center;
}

.spinner {
	width: 36px;
	height: 36px;
	margin: 0 auto 12px;
	border: 3px solid #e8e8ee;
	border-top-color: #6b5ce7;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

#loading-text {
	font-size: 14px;
	color: #666;
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 80px;
	transform: translateX(-50%) translateY(20px);
	max-width: 80%;
	padding: 10px 18px;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font-size: 14px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 1000;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.result-page {
	text-align: center;
	padding-top: 60px;
}

.status-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	line-height: 72px;
	border-radius: 50%;
	font-size: 32px;
	font-weight: 700;
}

.status-icon.pending {
	background: #eef2ff;
	color: #6b5ce7;
}

.status-icon.success {
	background: #e8f5e9;
	color: #2e7d32;
}

.status-icon.fail {
	background: #ffebee;
	color: #c62828;
}

.result-page .pay-btn {
	max-width: 280px;
	margin: 32px auto 0;
}
