.wuai-mall-page {
	--mall-pink: #8B5CF6;
	--mall-pink-2: #A855F7;
	--mall-purple: #a855f7;
	--mall-purple-2: #7c3aed;
	--mall-bg: #F8F5FF;
	--mall-bg-2: #f7f2ff;
	--mall-text: #272233;
	--mall-muted: #8a8196;
	--mall-border: rgba(139, 92, 246,.18);
	max-width: 1080px;
	margin: 0 auto;
	padding: 12px 12px 92px;
	color: var(--mall-text);
	background:
		linear-gradient(135deg, rgba(248, 245, 255,.95), rgba(247,242,255,.94)),
		#fff;
}

body.wuai-mall-page-body #footer,
body:has(.wuai-mall-page) #footer {
	display: none !important;
}

.wuai-mall-page * {
	box-sizing: border-box;
	letter-spacing: 0;
}

.wuai-mall-hero {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.45);
	border-radius: 22px;
	padding: 18px;
	background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 46%, #a855f7 100%);
	color: #fff;
	box-shadow: 0 18px 42px rgba(139, 92, 246,.22);
}

.wuai-mall-hero-main {
	position: relative;
	z-index: 2;
	max-width: 620px;
}

.wuai-mall-kicker {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.22);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.wuai-mall-hero h1 {
	margin: 12px 0 6px;
	font-size: 34px;
	line-height: 1.1;
	font-weight: 900;
}

.wuai-mall-hero p {
	margin: 0;
	color: rgba(255,255,255,.88);
	font-size: 15px;
}

.wuai-mall-hero-mark {
	position: absolute;
	right: 18px;
	top: 18px;
	width: 86px;
	height: 86px;
	border-radius: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.18);
	border: 1px solid rgba(255,255,255,.3);
}

.wuai-mall-hero-mark svg,
.wuai-mall-product-placeholder svg,
.wuai-mall-empty svg,
.wuai-mall-modal-media svg {
	width: 54px;
	height: 54px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wuai-mall-metrics {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.wuai-mall-metrics div {
	min-width: 0;
	padding: 12px;
	border-radius: 18px;
	background: rgba(255,255,255,.18);
	border: 1px solid rgba(255,255,255,.28);
	backdrop-filter: blur(10px);
}

.wuai-mall-metrics span,
.wuai-mall-metrics em {
	display: block;
	color: rgba(255,255,255,.82);
	font-size: 12px;
	font-style: normal;
}

.wuai-mall-metrics strong {
	display: block;
	margin-top: 4px;
	font-size: 20px;
	line-height: 1.15;
}

.wuai-mall-metrics .is-login-tip {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wuai-mall-metrics a,
.wuai-mall-empty a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--mall-pink);
	font-weight: 800;
	text-decoration: none;
}

.wuai-mall-tabs {
	position: sticky;
	top: 0;
	z-index: 8;
	display: flex;
	gap: 8px;
	margin: 12px 0;
	padding: 8px;
	overflow-x: auto;
	border: 1px solid var(--mall-border);
	border-radius: 18px;
	background: rgba(255,255,255,.86);
	box-shadow: 0 10px 24px rgba(124,58,237,.08);
	backdrop-filter: blur(10px);
}

.wuai-mall-tabs button {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: #675c76;
	font-weight: 800;
	cursor: pointer;
}

.wuai-mall-tabs button.is-active {
	color: #fff;
	background: linear-gradient(135deg, var(--mall-pink), var(--mall-purple));
	box-shadow: 0 10px 22px rgba(139, 92, 246,.24);
}

.wuai-mall-pane {
	display: none;
}

.wuai-mall-pane.is-active {
	display: block;
}

.wuai-mall-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.wuai-mall-product-card,
.wuai-mall-code-card,
.wuai-mall-record-card,
.wuai-mall-info-panel,
.wuai-mall-form,
.wuai-mall-empty {
	border: 1px solid var(--mall-border);
	border-radius: 20px;
	background: rgba(255,255,255,.9);
	box-shadow: 0 14px 30px rgba(139, 92, 246,.08);
}

.wuai-mall-product-card {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	gap: 12px;
	padding: 12px;
}

.wuai-mall-product-media {
	position: relative;
	min-height: 116px;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(135deg, #fff0f8, #f0e8ff);
	border: 1px solid rgba(139, 92, 246,.12);
}

.wuai-mall-product-media img {
	width: 100%;
	height: 100%;
	min-height: 116px;
	object-fit: cover;
	display: block;
}

.wuai-mall-product-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 116px;
	color: var(--mall-pink);
}

.wuai-mall-tag-row {
	position: absolute;
	left: 8px;
	bottom: 8px;
	right: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.wuai-mall-tag-row em {
	padding: 3px 7px;
	border-radius: 999px;
	background: rgba(255,255,255,.9);
	color: var(--mall-pink);
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
}

.wuai-mall-product-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.wuai-mall-product-body strong {
	font-size: 17px;
	line-height: 1.25;
}

.wuai-mall-product-body p {
	margin: 0;
	color: var(--mall-muted);
	font-size: 13px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wuai-mall-price-row,
.wuai-mall-stock-row,
.wuai-mall-product-actions,
.wuai-mall-card-top,
.wuai-mall-row-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wuai-mall-price-row {
	flex-wrap: wrap;
}

.wuai-mall-price-row span {
	color: var(--mall-pink);
	font-size: 17px;
	font-weight: 900;
}

.wuai-mall-price-row small,
.wuai-mall-stock-row em {
	color: var(--mall-muted);
	font-size: 12px;
	font-style: normal;
}

.wuai-mall-stock-row {
	flex-wrap: wrap;
}

.wuai-mall-stock-row em {
	padding: 3px 8px;
	border-radius: 999px;
	background: #fff4fb;
	color: #846f93;
}

.wuai-mall-product-actions {
	margin-top: auto;
}

.wuai-mall-btn,
.wuai-mall-submit,
.wuai-mall-row-actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border-radius: 14px;
	border: 1px solid var(--mall-border);
	background: #fff;
	color: var(--mall-pink);
	font-weight: 900;
	text-decoration: none;
	cursor: pointer;
}

.wuai-mall-btn {
	flex: 1 1 0;
	padding: 0 12px;
}

.wuai-mall-btn.is-primary,
.wuai-mall-submit {
	border: 0;
	color: #fff;
	background: linear-gradient(135deg, var(--mall-pink), var(--mall-purple));
	box-shadow: 0 12px 24px rgba(139, 92, 246,.22);
}

.wuai-mall-btn:disabled,
.wuai-mall-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
	box-shadow: none;
}

.wuai-mall-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 180px;
	padding: 24px;
	color: var(--mall-muted);
	text-align: center;
}

.wuai-mall-empty strong {
	color: var(--mall-text);
	font-size: 18px;
}

.wuai-mall-empty em {
	font-style: normal;
}

.wuai-mall-code-list,
.wuai-mall-record-list {
	display: grid;
	gap: 12px;
}

.wuai-mall-code-card,
.wuai-mall-record-card {
	padding: 14px;
}

.wuai-mall-card-top {
	justify-content: space-between;
	align-items: flex-start;
}

.wuai-mall-card-top strong {
	min-width: 0;
	font-size: 16px;
}

.wuai-mall-card-top span {
	flex: 0 0 auto;
	padding: 5px 10px;
	border-radius: 999px;
	background: #f3eefc;
	color: #7c3aed;
	font-size: 12px;
	font-weight: 900;
}

.wuai-mall-card-top span.is-success {
	background: #eaf9ef;
	color: #21a653;
}

.wuai-mall-card-top span.is-warning {
	background: #fff7e8;
	color: #c37a13;
}

.wuai-mall-card-top span.is-danger {
	background: #fff0f3;
	color: #d9365f;
}

.wuai-mall-code-value {
	margin: 12px 0;
	padding: 12px;
	border-radius: 14px;
	background: linear-gradient(135deg, #fff6fb, #f7f0ff);
	color: #4a3a5f;
	font-weight: 900;
	word-break: break-all;
}

.wuai-mall-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.wuai-mall-meta-grid div {
	min-width: 0;
	padding: 10px;
	border-radius: 14px;
	background: rgba(248, 245, 255,.72);
}

.wuai-mall-meta-grid span,
.wuai-mall-meta-grid em {
	display: block;
	min-width: 0;
	font-style: normal;
}

.wuai-mall-meta-grid span {
	color: var(--mall-muted);
	font-size: 12px;
}

.wuai-mall-meta-grid em {
	margin-top: 3px;
	color: var(--mall-text);
	font-weight: 800;
	word-break: break-word;
}

.wuai-mall-row-actions {
	margin-top: 12px;
	justify-content: flex-end;
}

.wuai-mall-row-actions button {
	min-width: 76px;
	padding: 0 12px;
}

.wuai-mall-exchange-wrap {
	display: grid;
	gap: 12px;
}

.wuai-mall-info-panel {
	padding: 16px;
	background: linear-gradient(135deg, rgba(139, 92, 246,.1), rgba(168,85,247,.1)), #fff;
}

.wuai-mall-info-panel span,
.wuai-mall-info-panel em {
	display: block;
	color: var(--mall-muted);
	font-style: normal;
}

.wuai-mall-info-panel strong {
	display: block;
	margin: 6px 0;
	color: var(--mall-pink);
	font-size: 30px;
}

.wuai-mall-form {
	display: grid;
	gap: 12px;
	padding: 14px;
}

.wuai-mall-form label {
	display: grid;
	gap: 6px;
	margin: 0;
}

.wuai-mall-form label span {
	color: #5f526e;
	font-size: 13px;
	font-weight: 800;
}

.wuai-mall-form input,
.wuai-mall-form select {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--mall-border);
	border-radius: 14px;
	padding: 0 13px;
	background: #fff;
	color: var(--mall-text);
	outline: none;
}

.wuai-mall-form input:focus,
.wuai-mall-form select:focus {
	border-color: var(--mall-pink);
	box-shadow: 0 0 0 3px rgba(139, 92, 246,.12);
}

.wuai-mall-submit {
	width: 100%;
	min-height: 48px;
}

.wuai-mall-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
	background: rgba(29,20,39,.52);
}

.wuai-mall-modal[hidden] {
	display: none;
}

.wuai-mall-modal-card {
	position: relative;
	width: min(520px, 100%);
	max-height: min(86vh, 720px);
	overflow: auto;
	border-radius: 22px;
	padding: 16px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.wuai-mall-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.9);
	color: #5f526e;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.wuai-mall-modal-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	border-radius: 18px;
	background: linear-gradient(135deg, #fff0f8, #f0e8ff);
	color: var(--mall-pink);
	overflow: hidden;
}

.wuai-mall-modal-media img {
	width: 100%;
	max-height: 260px;
	object-fit: cover;
	display: block;
}

.wuai-mall-modal-card h2 {
	margin: 14px 0 6px;
	font-size: 22px;
}

.wuai-mall-modal-card p,
.wuai-mall-modal-detail {
	color: var(--mall-muted);
	line-height: 1.65;
}

.wuai-mall-modal-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 14px;
}

.wuai-mall-modal-grid div {
	padding: 10px;
	border-radius: 14px;
	background: #F8F5FF;
}

.wuai-mall-modal-grid span,
.wuai-mall-modal-grid strong {
	display: block;
}

.wuai-mall-modal-grid span {
	color: var(--mall-muted);
	font-size: 12px;
}

	.wuai-mall-modal-grid strong {
		margin-top: 4px;
		font-size: 14px;
	}

	.wuai-mall-modal-confirm {
		margin-top: 12px;
		padding: 12px;
		border-radius: 14px;
		background: #fff8ed;
		color: #7a5b21;
		font-size: 13px;
		line-height: 1.55;
	}

	.wuai-mall-modal-actions {
		display: flex;
		gap: 10px;
		margin-top: 14px;
	}

	.wuai-mall-modal-actions .wuai-mall-btn {
		min-width: 0;
		min-height: 46px;
	}

	.wuai-mall-modal-open {
		overflow: hidden;
	}

@media (max-width: 374px) {
	.wuai-mall-page {
		padding-left: 8px;
		padding-right: 8px;
	}

	.wuai-mall-product-card {
		grid-template-columns: 96px minmax(0, 1fr);
		padding: 10px;
	}

	.wuai-mall-product-media,
	.wuai-mall-product-media img,
	.wuai-mall-product-placeholder {
		min-height: 100px;
	}

		.wuai-mall-product-body strong,
		.wuai-mall-price-row span {
			font-size: 15px;
		}

		.wuai-mall-product-actions,
		.wuai-mall-modal-actions {
			gap: 6px;
		}

		.wuai-mall-btn {
			padding: 0 8px;
			font-size: 13px;
		}
	}

@media (min-width: 700px) {
	.wuai-mall-page {
		padding: 20px 18px 80px;
	}

	.wuai-mall-metrics {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.wuai-mall-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wuai-mall-product-card {
		grid-template-columns: 1fr;
	}

	.wuai-mall-product-media,
	.wuai-mall-product-media img,
	.wuai-mall-product-placeholder {
		min-height: 170px;
	}

	.wuai-mall-code-list,
	.wuai-mall-record-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wuai-mall-exchange-wrap {
		grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
		align-items: start;
	}

	.wuai-mall-modal {
		align-items: center;
	}
}

@media (min-width: 1020px) {
	.wuai-mall-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
