:root {
	--amx-bg: #f6f7fb;
	--amx-surface: rgba(255, 255, 255, 0.86);
	--amx-surface-solid: #ffffff;
	--amx-text: #0f172a;
	--amx-sub: #64748b;
	--amx-line: rgba(15, 23, 42, 0.08);
	--amx-brand: #dc2626;
	--amx-brand-soft: rgba(220, 38, 38, 0.12);
	--amx-ok: #16a34a;
	--amx-radius: 14px;
	--amx-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.am-modern-page {
	background: var(--amx-bg);
	color: var(--amx-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: auto;
}

.am-modern-wrap {
	padding: 10px 12px 80px;
	padding-bottom: calc(80px + constant(safe-area-inset-bottom));
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
}

.am-modern-card {
	background: var(--amx-surface-solid);
	border: 1px solid var(--amx-line);
	border-radius: var(--amx-radius);
	box-shadow: var(--amx-shadow);
	-webkit-tap-highlight-color: transparent;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
	.am-modern-card {
		background: var(--amx-surface);
		-webkit-backdrop-filter: saturate(160%) blur(18px);
		backdrop-filter: saturate(160%) blur(18px);
	}
	/* 文本区域优先清晰 */
	.am-modern-main .am-modern-card,
	.am-modern-stat,
	.am-modern-action,
	.am-modern-table-wrap {
		background: var(--amx-surface-solid);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

.am-modern-hero {
	overflow: hidden;
	margin-bottom: 10px;
}
.am-modern-hero img {
	display: block;
	width: 100%;
	height: auto;
}

.am-modern-stat {
	padding: 12px 14px;
	margin-bottom: 10px;
}
.am-modern-stat p {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px dashed rgba(17, 24, 39, 0.09);
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	-webkit-box-pack: justify;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	-webkit-box-align: center;
	-webkit-align-items: center;
	align-items: center;
	font-size: 14px;
	color: var(--amx-sub);
}
.am-modern-stat p:last-child {
	border-bottom: none;
}
.am-modern-stat p em {
	color: var(--amx-text);
	font-style: normal;
	font-weight: 600;
}

.am-modern-action {
	padding: 12px;
	margin-bottom: 10px;
}
.am-modern-action strong {
	display: block;
}
.am-modern-action .btn {
	height: 42px;
	line-height: 42px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	border: none;
}
.am-modern-action .btn-danger {
	background: var(--amx-brand);
	box-shadow: 0 1px 3px rgba(220, 38, 38, 0.35);
	color: #fff;
}
.am-modern-action .no_login_btn {
	background: #e2e8f0;
	color: #64748b;
}

.am-modern-table-wrap {
	margin-bottom: 10px;
	padding: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.am-modern-table-wrap .am-table {
	margin: 0;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	border: none !important;
}
.am-modern-table-wrap .am-table.am-table-bordered {
	border: none !important;
}
.am-modern-table-wrap .am-table th {
	background: #f8fafc;
	color: #334155;
	font-weight: 600;
	font-size: 12px;
}
.am-modern-table-wrap .am-table td {
	color: #475569;
	font-size: 12px;
}
.amx-status {
	display: inline-block;
	min-width: 44px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	vertical-align: middle;
}
.amx-status--pending {
	color: #6b7280;
	background: #f3f4f6;
}
.amx-status--pass {
	color: #15803d;
	background: #eaf8ee;
}
.amx-status--reject {
	color: #b91c1c;
	background: #fdecec;
}

.am-modern-main {
	margin-top: 4px;
}

/* 统一留白与按钮布局 */
body.am-modern-page .promotion_grade.am-modern-stat {
	margin: 0 0 10px;
}
body.am-modern-page .promotion_main.am-modern-main {
	padding: 0;
}
body.am-modern-page .promotion_btn.am-modern-action {
	width: auto;
	height: auto;
	margin: 0 0 10px;
	border: 1px solid var(--amx-line);
	border-bottom: 1px solid var(--amx-line);
	border-radius: var(--amx-radius);
	background: var(--amx-surface-solid);
	position: static;
	top: auto;
	text-align: initial;
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
	body.am-modern-page .promotion_btn.am-modern-action {
		background: var(--amx-surface);
	}
}
body.am-modern-page .promotion_btn.am-modern-action:active {
	top: auto;
	border-bottom-color: var(--amx-line);
}
body.am-modern-page .promotion_btn.am-modern-action strong {
	display: block;
	width: 100%;
	height: auto;
	font-size: inherit;
	color: inherit;
}
body.am-modern-page .promotion_btn.am-modern-action .btn {
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-align: center;
	-webkit-align-items: center;
	align-items: center;
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.am-modern-main .promotion_rule,
.am-modern-main .promotion_explain {
	padding: 12px;
	margin-bottom: 10px;
	color: #475569;
	font-size: 13px;
	line-height: 1.72;
	word-break: break-word;
	overflow-wrap: anywhere;
}
.am-modern-main .promotion_h2 {
	font-size: 15px;
	color: #111827;
	margin: 0 0 10px;
	padding-left: 8px;
	border-left: 3px solid var(--amx-brand);
}
.am-modern-main .promotion_explain p {
	margin: 0 0 8px;
	color: #475569;
	line-height: 1.65;
	font-size: 13px;
}
.am-modern-main .promotion_explain p:last-child {
	margin-bottom: 0;
}
body.am-modern-page .promotion_main br {
	line-height: 1.72;
}
body.am-modern-page a,
body.am-modern-page button,
body.am-modern-page .btn {
	-webkit-tap-highlight-color: transparent;
	outline-color: transparent;
}

body.am-modern-page .ty_page.pages {
	margin: 4px 0 10px;
}

@media (max-width: 360px) {
	.am-modern-wrap {
		padding-left: 10px;
		padding-right: 10px;
	}
	.am-modern-main .promotion_rule,
	.am-modern-main .promotion_explain {
		padding: 11px;
		margin-bottom: 9px;
	}
	.am-modern-action .btn {
		font-size: 14px;
	}
	body.am-modern-page .promotion_btn.am-modern-action .btn {
		min-height: 40px;
	}
}

@media (max-width: 420px) {
	.am-modern-table-wrap {
		padding: 6px 0;
		background: transparent;
		border-color: transparent;
		box-shadow: none;
	}
	.am-modern-table-wrap .am-table.am-table-sss {
		display: block;
		width: 100%;
		background: transparent;
	}
	.am-modern-table-wrap .am-table.am-table-sss tbody,
	.am-modern-table-wrap .am-table.am-table-sss tr,
	.am-modern-table-wrap .am-table.am-table-sss td {
		display: block;
		width: 100%;
	}
	.am-modern-table-wrap .am-table.am-table-sss tr:first-child {
		display: none;
	}
	.am-modern-table-wrap .am-table.am-table-sss tr {
		padding: 6px 10px;
		background: #fff;
		border: 1px solid #edf2f7;
		border-radius: 8px;
	}
	.am-modern-table-wrap .am-table.am-table-sss td {
		display: -webkit-box;
		display: -webkit-flex;
		display: flex;
		-webkit-box-pack: justify;
		-webkit-justify-content: space-between;
		justify-content: space-between;
		-webkit-box-align: center;
		-webkit-align-items: center;
		align-items: center;
		border: none !important;
		border-bottom: 1px solid #f1f5f9 !important;
		padding: 5px 0;
		text-align: left;
		font-size: 12px;
		line-height: 1.3;
		color: #334155;
		word-break: break-word;
	}
	.am-modern-table-wrap .am-table.am-table-sss td:last-child {
		border-bottom: none !important;
	}
	.am-modern-table-wrap .am-table.am-table-sss td::before {
		content: attr(data-label);
		-webkit-flex: 0 0 auto;
		flex: 0 0 auto;
		color: #64748b;
		font-weight: 600;
		margin-right: 10px;
	}
}

@media (max-width: 320px) {
	.am-modern-wrap {
		padding-left: 8px;
		padding-right: 8px;
		padding-bottom: 72px;
		padding-bottom: calc(72px + constant(safe-area-inset-bottom));
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}
	.am-modern-main .promotion_h2 {
		font-size: 14px;
		margin-bottom: 8px;
	}
	.am-modern-main .promotion_rule,
	.am-modern-main .promotion_explain {
		font-size: 12px;
		line-height: 1.66;
		padding: 10px;
	}
}
