* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	background: #f4f5f7;
	color: #333;
	line-height: 1.6;
}

.card {
	max-width: 480px;
	margin: 48px auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
	padding: 32px 28px;
}

.card.narrow { max-width: 380px; }

.title { font-size: 22px; text-align: center; color: #222; }

.notice {
	margin-top: 10px;
	font-size: 13px;
	color: #8a6d3b;
	background: #fff8e6;
	border: 1px solid #ffe7ba;
	border-radius: 6px;
	padding: 8px 12px;
}

.alert {
	margin-top: 10px;
	font-size: 14px;
	color: #cf1322;
	background: #fff1f0;
	border: 1px solid #ffa39e;
	border-radius: 6px;
	padding: 8px 12px;
}

.field { margin-top: 18px; }

label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }

.badge { font-size: 12px; font-weight: 400; border-radius: 4px; padding: 1px 6px; }
.badge.req { color: #fff; background: #ff5000; }
.badge.opt { color: #999; background: #f0f0f0; }

input[type="text"], input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	outline: none;
	transition: border-color .2s;
}
input:focus { border-color: #ff5000; }

.btn {
	display: block;
	width: 100%;
	margin-top: 24px;
	padding: 11px;
	font-size: 16px;
	color: #fff;
	background: linear-gradient(90deg, #ff6000, #ff5000);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}
.btn:hover { opacity: .9; }
.btn.ghost {
	background: #fff;
	color: #ff5000;
	border: 1px solid #ff5000;
}

.foot { margin-top: 16px; font-size: 12px; color: #999; text-align: center; }

/* 核销成功页 */
.ok-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #52c41a;
	color: #fff;
	font-size: 32px;
	line-height: 56px;
	text-align: center;
}

.summary {
	margin-top: 18px;
	background: #fafafa;
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 14px;
}
.summary p { display: flex; padding: 2px 0; }
.summary .k { width: 96px; color: #888; flex: none; }

.links { margin-top: 24px; }
.links h2 { font-size: 16px; margin-bottom: 8px; }
.links .tip { font-size: 12px; color: #999; margin-bottom: 8px; }
.links ul { list-style: none; }
.links li { padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.links li:last-child { border-bottom: none; }
.links a { color: #ff5000; text-decoration: none; font-weight: 500; }
.links a:hover { text-decoration: underline; }
.links .desc { display: block; font-size: 12px; color: #999; }

/* 后台管理 */
.topbar { background: #fff; border-bottom: 1px solid #eee; }
.topbar-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.topbar h1 { font-size: 18px; }
.actions { display: flex; gap: 8px; }

.mini {
	display: inline-block;
	padding: 5px 12px;
	font-size: 13px;
	color: #ff5000;
	background: #fff5f0;
	border: 1px solid #ff5000;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
}
.mini.ghost { color: #666; border-color: #d9d9d9; background: #fff; }
.mini.danger { color: #cf1322; border-color: #ffa39e; background: #fff1f0; }
.mini:hover { opacity: .85; }

.wrap { max-width: 960px; margin: 20px auto; padding: 0 20px; }

.search { display: flex; gap: 8px; align-items: center; }
.search input { max-width: 320px; }
.search .btn { width: auto; margin-top: 0; padding: 8px 20px; font-size: 14px; }

.count { margin: 12px 0; font-size: 13px; color: #666; }

.table-box { overflow-x: auto; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
th { background: #fafafa; color: #666; font-weight: 500; }
.mono { font-family: Consolas, monospace; }
.empty { text-align: center; color: #999; padding: 24px; }

.pager {
	margin-top: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
	font-size: 13px;
	color: #666;
}
