<template>
	<view class="container">
		<image class="bg" src="@/static/image/bg_invite.png" mode="aspectFill"></image>
		<!-- 状态栏占位（微信小程序原生适配） -->
		<view class="status-bar" :style="{ height: statusBarHeight + 'px' }"></view>
		<view class="return">

			<image class="return-img" src="@/static/image/back_white.png" mode="aspectFill"></image>
		</view>
		<!-- 核心内容区：居中布局 -->
		<view class="main-content">
			<!-- 页面大标题：讲者邀请 -->
			<view class="page-title">
				<image class="title-img" src="@/static/image/img_title.png" mode="aspectFill"></image>
				<text class="title-txt">讲者邀请</text>
				<image class="title-img rotate180" src="@/static/image/img_title.png" mode="aspectFill"></image>
			</view>
			<!-- 邀请卡片：白色背景+圆角+轻微阴影（1:1匹配UI） -->
			<view class="invite-card">

				<!-- 邀请人信息区 -->
				<view class="inviter-section">
					<image class="inviter-avatar" src="@/static/image/my_heads_icon.png" mode="aspectFill"></image>
					<text class="inviter-name">王小明</text>
					<text class="invite-desc">邀请你成为讲者</text>
				</view>

				<!-- 二维码区域：白色边框+圆角 -->
				<view class="qrcode-box">
					<image class="qrcode-img" src="@/static/image/bg_invite.png"></image>
				</view>
				<!-- 扫码提示文字 -->
				<view class="scan-tip">扫一扫，注册学苑</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 仅获取微信小程序状态栏高度，无多余逻辑
				statusBarHeight: uni.getSystemInfoSync().statusBarHeight
			};
		},
		onLoad() {
			
		},
		methods: {}
	};
</script>

<style lang="scss" scoped>
	/* 小程序页面全局重置：消除默认样式 */
	page {
		margin: 0;
		padding: 0;
		background-color: #F8F7F5;
		font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
	}

	/* 根容器：全屏+垂直布局 */
	.container {
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		background-color: #F8F7F5;
		position: relative;

		.bg {
			position: absolute;
			top: 0;
			width: 100%;
			height: 100%;
		}
	}

	/* 状态栏占位：透明背景，仅占高度 */
	.status-bar {
		width: 100%;
		background-color: transparent;
	}

	.return {
		position: relative;
		height: 88rpx;
		z-index: 2;
		line-height: 88rpx;
		.return-img {
			width: 40rpx;
			height: 40rpx;
			margin-left: 32rpx;
		}
	}

	/* 核心内容区：水平居中+顶部间距 */
	.main-content {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 52rpx 74rpx 0;
		box-sizing: border-box;
		position: relative;
		z-index: 2;

		/* 页面大标题：讲者邀请（匹配UI字体/大小/颜色） */
		.page-title {
			font-weight: 600;
			font-size: 48rpx;
			color: #FFFFFF;
			margin-bottom: 124rpx;
			display: flex;
			align-items: center;

			.title-img {
				width: 134rpx;
				height: 12rpx;
			}

			.title-txt {
				margin: 0 20rpx;

			}

			.rotate180 {
				transform: rotate(180deg);
			}

		}

		/* 邀请卡片：白色背景+圆角+轻微阴影（1:1匹配） */
		.invite-card {
			width: 100%;
			background-color: #FFFFFF;
			border-radius: 32rpx;
			box-shadow: 0rpx 16rpx 28rpx 0rpx rgba(45, 109, 199, 0.37);
			padding: 60rpx 40rpx 80rpx;
			position: relative;
			box-sizing: border-box;

			/* 邀请人信息区：头像+文字横向布局 */
			.inviter-section {
				position: absolute;
				top: -72rpx;
				left: 50%;
				transform: translateX(-50%);
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;

				.inviter-avatar {
					width: 144rpx;
					height: 144rpx;
					border-radius: 50%;
					margin-bottom: 18rpx;
				}

				/* 邀请人姓名 */
				.inviter-name {
					color: #000000;
					font-weight: 600;
					font-size: 36rpx;
					margin-bottom: 36rpx;
				}

				/* 邀请文案 */
				.invite-desc {
					font-size: 32rpx;
					color: #666666;
				}

			}

			.qrcode-box {
				width: 372rpx;
				height: 372rpx;
				background-color: #FFFFFF;
				display: flex;
				align-items: center;
				justify-content: center;
				margin: 200rpx auto 40rpx;

				.qrcode-img {
					width: 372rpx;
					height: 372rpx;

				}
			}

			/* 扫码提示文字：居中+浅灰色 */
			.scan-tip {
				text-align: center;
				font-size: 32rpx;
				color: #333333;
			}
		}
	}
</style>