* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: #f5f5f5;
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
	font-size: 14px;
	color: #333;
}

#app {
	max-width: 750px;
	margin: 0 auto;
	min-height: 100vh;
}

/* 表单 */
.form-card {
	background-color: #fff;
	margin-top: 24px;
}

.form-group {
	display: flex;
	align-items: center;
	padding: 0 24px;
	height: 52px;
	border-bottom: 1px solid #f0f0f0;
}

.form-group input {
	flex: 1;
	height: 100%;
	border: none;
	outline: none;
	font-size: 16px;
	background: transparent;
}

.form-group input::placeholder {
	color: #b9b9bc;
}

/* 验证码按钮 */
.code-group {
	justify-content: space-between;
}

.code-btn {
	flex-shrink: 0;
	border: none;
	outline: none;
	background: transparent;
	color: #e4002b;
	font-size: 15px;
	padding: 6px 0 6px 16px;
	cursor: pointer;
}

.code-btn.on {
	color: #b9b9bc;
}

/* 登录按钮 */
.login-btn-wrap {
	margin-top: 24px;
	padding: 0 24px;
}

.login-btn {
	height: 45px;
	line-height: 45px;
	border-radius: 23px;
	background-color: #e4002b;
	color: #fff;
	font-size: 17px;
	text-align: center;
	cursor: pointer;
	user-select: none;
}

.login-btn:active {
	opacity: 0.85;
}

/* 卡券 */
.coupon-info {
	margin-top: 16px;
}

.refresh-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 44px;
	background-color: #fff;
	border-bottom: 1px solid #f0f0f0;
}

.refresh-link {
	color: #e4002b;
	font-size: 15px;
	cursor: pointer;
}

.coupon-list {
	list-style: none;
	background-color: #fff;
}

.coupon-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	border-bottom: 1px solid #f0f0f0;
}

.coupon-main {
	flex: 1;
	min-width: 0;
}

.coupon-name {
	color: #8799a3;
	font-size: 15px;
}

.coupon-code {
	color: #999;
	font-size: 12px;
	margin-top: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.coupon-count {
	flex-shrink: 0;
	margin-left: 16px;
	font-size: 14px;
	color: #333;
}

/* 加载动画 */
.loading-mask {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
}

.loading-box {
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 14px;
	padding: 14px 24px;
	border-radius: 8px;
}

/* 轻提示 */
.toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 14px;
	padding: 12px 20px;
	border-radius: 8px;
	z-index: 9999;
	max-width: 70%;
	text-align: center;
	word-break: break-all;
}
