Introduce AKSRT_Balance (user_meta aksrt_balance + balance_log) for Zibll-like pay_balance wallet. User center assets panel shows wallet and points; balance gateway/card-pass/refunds credit cash when enabled.
640 lines
12 KiB
CSS
640 lines
12 KiB
CSS
/**
|
|
* User Center — credits balance + transactions
|
|
*/
|
|
|
|
.uc-balance-card {
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Dual assets: wallet + points cards stack with gap */
|
|
.uc-wallet-grid {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.uc-balance-card--wallet .uc-balance-card__bg--wallet,
|
|
.uc-balance-card__bg--wallet {
|
|
background: linear-gradient(135deg, #0f766e 0%, #14b8a6 45%, #2dd4bf 100%);
|
|
}
|
|
|
|
.uc-balance-card + .uc-balance-card {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.uc-transactions--wallet {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.uc-content #panel-credits .uc-transactions {
|
|
background: transparent;
|
|
border: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.uc-content #panel-credits .uc-transactions__header,
|
|
.uc-content #panel-credits .uc-transactions__item {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.uc-content .widget-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--color-ink);
|
|
margin: 0 0 14px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
}
|
|
|
|
.uc-content .widget-title::before {
|
|
content: '';
|
|
position: static;
|
|
display: inline-block;
|
|
width: 3px;
|
|
height: 14px;
|
|
background: var(--color-primary);
|
|
border-radius: 2px;
|
|
margin-right: 8px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* ==================== 账户余额面板 ==================== */
|
|
|
|
/* 余额卡片 */
|
|
.uc-balance-card {
|
|
position: relative;
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 4px 20px rgba(var(--color-primary-rgb, 59, 130, 246), 0.2);
|
|
}
|
|
|
|
.uc-balance-card__bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(135deg, var(--color-primary) 0%, #4facfe 50%, #00f2fe 100%);
|
|
z-index: 0;
|
|
}
|
|
|
|
.uc-balance-card__bg::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -50%;
|
|
right: -30%;
|
|
width: 200px;
|
|
height: 200px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.08);
|
|
}
|
|
|
|
.uc-balance-card__bg::before {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -60%;
|
|
left: -20%;
|
|
width: 160px;
|
|
height: 160px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.uc-balance-card__content {
|
|
position: relative;
|
|
z-index: 1;
|
|
padding: 24px;
|
|
color: #fff;
|
|
}
|
|
|
|
.uc-balance-card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.uc-balance-card__label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.uc-balance-card__currency {
|
|
font-size: 12px;
|
|
padding: 3px 10px;
|
|
background: rgba(255,255,255,0.15);
|
|
border-radius: 100px;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.uc-balance-card__amount {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.uc-balance-card__value {
|
|
font-size: 2.5rem;
|
|
font-weight: 800;
|
|
line-height: 1.2;
|
|
letter-spacing: -0.02em;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.uc-balance-card__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-top: 16px;
|
|
border-top: 1px solid rgba(255,255,255,0.15);
|
|
}
|
|
|
|
.uc-balance-card__sign-status {
|
|
font-size: 13px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.uc-balance-card__sign-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 20px;
|
|
border: none;
|
|
border-radius: 100px;
|
|
background: rgba(255,255,255,0.2);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.uc-balance-card__sign-btn:hover {
|
|
background: rgba(255,255,255,0.3);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.uc-balance-card__sign-btn:disabled {
|
|
background: rgba(255,255,255,0.1);
|
|
color: rgba(255,255,255,0.5);
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.uc-balance-card__sign-btn i {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.uc-balance-card__tip {
|
|
font-size: 12px;
|
|
opacity: 0.7;
|
|
margin: 8px 0 0;
|
|
}
|
|
|
|
/* 积分流水 */
|
|
.uc-transactions {
|
|
background: var(--surface-1);
|
|
border-radius: var(--main-radius, var(--radius, 8px));
|
|
border: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
overflow: hidden;
|
|
}
|
|
|
|
.uc-transactions__header {
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
}
|
|
|
|
.uc-transactions__title {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--color-ink);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.uc-transactions__title i {
|
|
font-size: 13px;
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.uc-transactions__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.uc-transactions__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 20px;
|
|
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.04));
|
|
transition: background-color 0.15s;
|
|
}
|
|
|
|
.uc-transactions__item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.uc-transactions__item:hover {
|
|
background: var(--surface-2);
|
|
}
|
|
|
|
.uc-transactions__icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.uc-transactions__icon.is-positive {
|
|
background: rgba(34, 197, 94, 0.1);
|
|
color: #22c55e;
|
|
}
|
|
|
|
.uc-transactions__icon.is-negative {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.uc-transactions__info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.uc-transactions__reason {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--color-ink);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.uc-transactions__remark {
|
|
font-size: 12px;
|
|
color: var(--color-ink-4);
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.uc-transactions__time {
|
|
font-size: 12px;
|
|
color: var(--color-ink-4);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.uc-transactions__amount {
|
|
text-align: right;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.uc-transactions__delta {
|
|
display: block;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.uc-transactions__delta.is-positive {
|
|
color: #22c55e;
|
|
}
|
|
|
|
.uc-transactions__delta.is-negative {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.uc-transactions__balance {
|
|
display: block;
|
|
font-size: 11px;
|
|
color: var(--color-ink-4);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.uc-transactions__empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.uc-transactions__empty-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: var(--surface-2);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 12px;
|
|
font-size: 20px;
|
|
color: var(--color-ink-4);
|
|
}
|
|
|
|
.uc-transactions__empty p {
|
|
font-size: 14px;
|
|
color: var(--color-ink-4);
|
|
margin: 0;
|
|
}
|
|
|
|
/* ==================== VIP 会员开通 ==================== */
|
|
|
|
.uc-vip-card {
|
|
position: relative;
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 4px 20px rgba(245, 158, 11, 0.18);
|
|
}
|
|
.uc-vip-card__bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #ef4444 100%);
|
|
z-index: 0;
|
|
}
|
|
.uc-vip-card--active .uc-vip-card__bg {
|
|
background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 55%, #8b5cf6 100%);
|
|
}
|
|
.uc-vip-card__content {
|
|
position: relative;
|
|
z-index: 1;
|
|
padding: 22px;
|
|
color: #fff;
|
|
}
|
|
.uc-vip-card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.uc-vip-card__icon {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 12px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(255,255,255,0.18);
|
|
font-size: 18px;
|
|
}
|
|
.uc-vip-card__label {
|
|
display: block;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
}
|
|
.uc-vip-card__status {
|
|
display: inline-block;
|
|
margin-top: 4px;
|
|
font-size: 12px;
|
|
opacity: 0.9;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
background: rgba(255,255,255,0.16);
|
|
}
|
|
.uc-vip-card__status--active {
|
|
background: rgba(16, 185, 129, 0.25);
|
|
}
|
|
.uc-vip-card__benefits {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px 12px;
|
|
font-size: 12px;
|
|
opacity: 0.95;
|
|
}
|
|
.uc-vip-card__benefit i { margin-right: 4px; }
|
|
.uc-vip-card__desc {
|
|
margin: 12px 0 0;
|
|
font-size: 12px;
|
|
opacity: 0.85;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.uc-vip-shop {
|
|
background: var(--surface-1, #fff);
|
|
border: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
border-radius: var(--radius, 10px);
|
|
padding: 16px 18px 18px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.uc-vip-shop__title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--color-ink, #111);
|
|
margin-bottom: 14px;
|
|
}
|
|
.uc-vip-shop__title i { color: #f59e0b; }
|
|
.uc-vip-shop__group { margin-bottom: 16px; }
|
|
.uc-vip-shop__group-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--color-ink-2, #374151);
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.uc-vip-shop__badge {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #047857;
|
|
background: #ecfdf5;
|
|
border-radius: 999px;
|
|
padding: 2px 8px;
|
|
}
|
|
.uc-vip-shop__grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
.uc-vip-shop__item {
|
|
appearance: none;
|
|
border: 1px solid var(--color-line, #e5e7eb);
|
|
background: var(--surface-0, #fafafa);
|
|
border-radius: 12px;
|
|
padding: 14px 12px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
|
|
color: inherit;
|
|
font: inherit;
|
|
}
|
|
.uc-vip-shop__item:hover {
|
|
border-color: #f59e0b;
|
|
box-shadow: 0 8px 20px rgba(245, 158, 11, 0.12);
|
|
transform: translateY(-1px);
|
|
}
|
|
.uc-vip-shop__item.is-loading {
|
|
opacity: 0.65;
|
|
pointer-events: none;
|
|
}
|
|
.uc-vip-shop__item-title {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--color-ink, #111);
|
|
}
|
|
.uc-vip-shop__item-days {
|
|
font-size: 12px;
|
|
color: var(--color-ink-3, #6b7280);
|
|
}
|
|
.uc-vip-shop__item-price {
|
|
margin-top: 6px;
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: #dc2626;
|
|
}
|
|
.uc-vip-shop__item-cta {
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #b45309;
|
|
}
|
|
.uc-vip-shop__methods {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px 12px;
|
|
margin-top: 8px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
}
|
|
.uc-vip-shop__methods-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--color-ink-3, #6b7280);
|
|
}
|
|
.uc-vip-shop__method {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
.uc-vip-shop__tip {
|
|
margin: 10px 0 0;
|
|
font-size: 12px;
|
|
color: var(--color-ink-3, #6b7280);
|
|
min-height: 1.2em;
|
|
}
|
|
.uc-vip-shop__tip.is-error { color: #dc2626; }
|
|
.uc-vip-shop__empty {
|
|
font-size: 13px;
|
|
color: var(--color-ink-3, #6b7280);
|
|
margin: 0 0 16px;
|
|
}
|
|
|
|
.uc-vip-shop__note {
|
|
margin: 0 0 12px;
|
|
font-size: 12px;
|
|
color: var(--color-ink-3, #6b7280);
|
|
line-height: 1.5;
|
|
}
|
|
.uc-vip-shop__item {
|
|
position: relative;
|
|
}
|
|
.uc-vip-shop__item-tag {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: #92400e;
|
|
background: #fef3c7;
|
|
border-radius: 999px;
|
|
padding: 2px 6px;
|
|
}
|
|
.uc-vip-shop__item-show {
|
|
display: inline-block;
|
|
margin-left: 6px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: #9ca3af;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.uc-vip-shop--points {
|
|
border-color: rgba(16, 185, 129, 0.25);
|
|
}
|
|
.uc-vip-shop__balance {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #047857;
|
|
margin: 0 0 10px;
|
|
}
|
|
.uc-vip-shop__item.is-disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
.uc-vip-shop__item.is-disabled:hover {
|
|
transform: none;
|
|
box-shadow: none;
|
|
border-color: var(--color-line, #e5e7eb);
|
|
}
|
|
|
|
/* Card-pass redeem (balance / VIP) */
|
|
.uc-card-pass {
|
|
margin: 16px 0 0;
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--color-line, #e5e7eb);
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
}
|
|
.uc-card-pass__title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #111827;
|
|
margin: 0 0 8px;
|
|
}
|
|
.uc-card-pass__title i { color: #2563eb; }
|
|
.uc-card-pass__desc {
|
|
margin: 0 0 10px;
|
|
font-size: 12px;
|
|
color: #6b7280;
|
|
line-height: 1.5;
|
|
}
|
|
.uc-card-pass__input {
|
|
display: block;
|
|
width: 100%;
|
|
margin: 0 0 8px;
|
|
padding: 9px 12px;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
box-sizing: border-box;
|
|
}
|
|
.uc-card-pass__btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 36px;
|
|
padding: 0 14px;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
background: #2563eb;
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
.uc-card-pass__btn:hover { background: #1d4ed8; }
|
|
.uc-card-pass__btn:disabled { opacity: .6; cursor: not-allowed; }
|
|
.uc-card-pass__tip {
|
|
margin: 8px 0 0;
|
|
font-size: 12px;
|
|
color: #059669;
|
|
min-height: 1.2em;
|
|
}
|
|
.uc-card-pass__tip.is-error { color: #b91c1c; }
|
|
|