chatapp-h5/h5/mifa-pay/index.html
2026-05-01 00:30:30 +08:00

516 lines
12 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
/>
<title>Recharge</title>
<style>
:root {
--bg: #08131f;
--surface: rgba(15, 28, 42, 0.92);
--surface-strong: #102030;
--line: rgba(72, 224, 208, 0.2);
--line-strong: rgba(72, 224, 208, 0.78);
--text: #f6f1e6;
--muted: #bed4d1;
--accent: #48e0d0;
--accent-strong: #1baaa3;
--accent-soft: rgba(72, 224, 208, 0.16);
--gold: #d6aa52;
--gold-strong: #c49335;
--danger: #ff9f9f;
--shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
}
body {
font-family:
"SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei",
sans-serif;
color: var(--text);
background:
linear-gradient(180deg, rgba(8, 19, 31, 0.44), rgba(8, 19, 31, 0.72)),
url("./bg.png") center top / cover no-repeat,
var(--bg);
}
button {
font: inherit;
border: none;
cursor: pointer;
}
.page {
width: min(100%, 480px);
margin: 0 auto;
padding: 24px 16px 32px;
}
h1 {
margin: 0 0 18px;
font-size: 30px;
line-height: 1;
font-weight: 800;
color: #f8fbff;
text-align: center;
letter-spacing: 0.03em;
text-shadow:
0 2px 10px rgba(8, 19, 31, 0.88),
0 0 18px rgba(72, 224, 208, 0.3);
}
.list {
display: grid;
gap: 12px;
}
.amount-item {
position: relative;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 16px 54px 16px 18px;
border-radius: 22px;
border: 1px solid var(--line);
background:
linear-gradient(180deg, rgba(72, 224, 208, 0.07), transparent 62%),
var(--surface);
box-shadow: var(--shadow);
color: var(--text);
text-align: left;
transition:
transform 0.18s ease,
background 0.18s ease,
border-color 0.18s ease,
box-shadow 0.18s ease;
}
.amount-item:active {
transform: scale(0.988);
}
.amount-item.selected {
border-color: var(--line-strong);
background:
linear-gradient(135deg, rgba(72, 224, 208, 0.22), rgba(13, 30, 44, 0.96)),
var(--surface-strong);
transform: scale(1.012);
box-shadow:
0 0 0 1px rgba(72, 224, 208, 0.22),
0 0 22px rgba(72, 224, 208, 0.28),
0 16px 36px rgba(0, 0, 0, 0.28);
}
.amount-item:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.amount-copy {
min-width: 0;
display: grid;
gap: 8px;
}
.amount-value {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 24px;
line-height: 1;
font-weight: 800;
color: var(--text);
}
.coin-icon {
position: relative;
width: 24px;
height: 24px;
flex: 0 0 auto;
border-radius: 50%;
background:
radial-gradient(circle at 35% 28%, #fff5b8 0 18%, transparent 19%),
linear-gradient(135deg, #ffd96a, #d79a26);
box-shadow:
inset 0 0 0 2px rgba(142, 91, 13, 0.46),
0 0 12px rgba(255, 217, 106, 0.36);
}
.coin-icon::after {
content: "";
position: absolute;
inset: 6px;
border-radius: 50%;
border: 2px solid rgba(122, 78, 10, 0.48);
}
.amount-meta {
font-size: 11px;
line-height: 1;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
}
.price-copy {
text-align: right;
display: grid;
gap: 6px;
flex-shrink: 0;
max-width: 46%;
}
.price-copy strong {
font-size: 20px;
line-height: 1;
color: var(--accent);
white-space: nowrap;
}
.price-copy span {
font-size: 11px;
color: rgba(246, 241, 230, 0.58);
}
.check {
position: absolute;
top: 50%;
right: 18px;
width: 20px;
height: 20px;
border-radius: 50%;
border: 1px solid rgba(72, 224, 208, 0.36);
transform: translateY(-50%);
pointer-events: none;
}
.amount-item.selected .check {
border-color: transparent;
background: linear-gradient(135deg, #8cf5ec, var(--accent-strong));
box-shadow: 0 0 14px rgba(72, 224, 208, 0.45);
}
.amount-item.selected .check::after {
content: "";
position: absolute;
top: 5px;
left: 5px;
width: 9px;
height: 5px;
border-left: 2px solid #0c1520;
border-bottom: 2px solid #0c1520;
transform: rotate(-45deg);
}
.channel-block {
margin-top: 18px;
}
.channel-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.channel-button {
position: relative;
width: 100%;
min-height: 84px;
display: grid;
align-content: center;
justify-items: center;
gap: 8px;
padding: 10px 6px;
border-radius: 16px;
border: 1px solid var(--line);
background:
linear-gradient(180deg, rgba(72, 224, 208, 0.06), transparent 62%),
var(--surface);
box-shadow: var(--shadow);
color: var(--text);
text-align: center;
transition:
transform 0.18s ease,
background 0.18s ease,
border-color 0.18s ease,
box-shadow 0.18s ease;
}
.channel-button:active {
transform: scale(0.98);
}
.channel-button.selected {
border-color: var(--line-strong);
background:
linear-gradient(135deg, rgba(72, 224, 208, 0.28), rgba(13, 30, 44, 0.97)),
var(--surface-strong);
transform: translateY(-2px) scale(1.045);
box-shadow:
0 0 0 1px rgba(72, 224, 208, 0.26),
0 0 22px rgba(72, 224, 208, 0.34),
0 18px 40px rgba(0, 0, 0, 0.32);
}
.channel-button.selected::after {
content: "";
position: absolute;
top: 8px;
right: 8px;
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 12px rgba(72, 224, 208, 0.68);
}
.channel-icon {
width: 54px;
height: 38px;
display: grid;
place-items: center;
flex-shrink: 0;
padding: 4px;
border-radius: 10px;
background: #ffffff;
overflow: hidden;
}
.channel-icon img {
display: block;
max-width: 48px;
max-height: 30px;
object-fit: contain;
}
.channel-fallback {
width: 42px;
height: 42px;
padding: 0;
border-radius: 12px;
background: linear-gradient(135deg, #8cf5ec, var(--accent-strong));
color: #0c1520;
font-size: 12px;
line-height: 1;
font-weight: 800;
}
.channel-name {
width: 100%;
min-height: 24px;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
font-size: 10px;
line-height: 1.2;
font-weight: 700;
color: var(--text);
overflow-wrap: anywhere;
}
.channel-button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.recharge-button {
width: 100%;
margin-top: 14px;
padding: 14px 18px;
border-radius: 18px;
background: linear-gradient(135deg, #8cf5ec, var(--accent-strong));
color: #0c1520;
font-size: 16px;
font-weight: 800;
box-shadow:
0 0 18px rgba(72, 224, 208, 0.28),
0 16px 32px rgba(0, 0, 0, 0.28);
transition:
transform 0.18s ease,
box-shadow 0.18s ease;
}
.recharge-button:active {
transform: scale(0.985);
}
.recharge-button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.status {
display: none;
margin-top: 14px;
padding: 12px 14px;
border-radius: 16px;
border: 1px solid rgba(255, 159, 159, 0.18);
background: rgba(255, 159, 159, 0.08);
color: var(--danger);
font-size: 12px;
line-height: 1.6;
white-space: pre-wrap;
}
.status.show {
display: block;
}
.empty {
grid-column: 1 / -1;
padding: 16px;
border-radius: 20px;
border: 1px dashed var(--line);
color: var(--muted);
text-align: center;
font-size: 13px;
}
.unsupported-state {
display: none;
min-height: calc(100vh - 130px);
place-items: center;
padding: 36px 8px;
}
.unsupported-state.show {
display: grid;
}
.unsupported-panel {
width: 100%;
max-width: 360px;
display: grid;
justify-items: center;
gap: 14px;
padding: 28px 22px;
border-radius: 24px;
border: 1px solid rgba(72, 224, 208, 0.46);
background:
radial-gradient(circle at top, rgba(72, 224, 208, 0.18), transparent 58%),
rgba(8, 19, 31, 0.82);
box-shadow:
0 0 0 1px rgba(248, 251, 255, 0.06),
0 0 28px rgba(72, 224, 208, 0.24),
0 18px 44px rgba(0, 0, 0, 0.34);
text-align: center;
}
.unsupported-icon {
width: 44px;
height: 44px;
display: grid;
place-items: center;
border-radius: 50%;
background: linear-gradient(135deg, #8cf5ec, var(--accent-strong));
color: #0c1520;
font-size: 24px;
font-weight: 900;
box-shadow: 0 0 18px rgba(72, 224, 208, 0.42);
}
.unsupported-title {
margin: 0;
max-width: 290px;
color: #f8fbff;
font-size: 20px;
line-height: 1.35;
font-weight: 800;
text-shadow: 0 2px 10px rgba(8, 19, 31, 0.72);
}
.skeleton {
position: relative;
overflow: hidden;
}
.skeleton::after {
content: "";
position: absolute;
inset: 0;
transform: translateX(-100%);
background: linear-gradient(
90deg,
transparent,
rgba(248, 251, 255, 0.12),
transparent
);
animation: shimmer 1.25s infinite;
}
.skeleton-line,
.skeleton-icon {
display: block;
border-radius: 999px;
background: rgba(248, 251, 255, 0.12);
}
.skeleton-line.strong {
width: 92px;
height: 22px;
}
.skeleton-line.short {
width: 64px;
height: 10px;
}
.skeleton-line.price {
width: 104px;
height: 18px;
margin-left: auto;
}
.skeleton-icon {
width: 54px;
height: 38px;
border-radius: 10px;
}
@keyframes shimmer {
100% {
transform: translateX(100%);
}
}
</style>
</head>
<body>
<div class="page">
<h1>Recharge</h1>
<div id="productList" class="list"></div>
<div id="channelList" class="channel-grid channel-block"></div>
<div id="unsupportedMessage" class="unsupported-state" hidden>
<div class="unsupported-panel">
<div class="unsupported-icon" aria-hidden="true">!</div>
<p class="unsupported-title">
Sorry, this region is currently not supported.
</p>
</div>
</div>
<button id="goRecharge" class="recharge-button" type="button" disabled hidden>
Go Recharge
</button>
<div id="pageStatus" class="status" aria-live="polite"></div>
</div>
<input id="applicationId" type="hidden" />
<script type="module" src="./app.js?v=20260501-6"></script>
</body>
</html>