324 lines
5.8 KiB
CSS
324 lines
5.8 KiB
CSS
/**
|
|
* User Center — credits balance + transactions
|
|
*/
|
|
|
|
.uc-balance-card {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.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(--radius-lg, 10px);
|
|
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;
|
|
}
|