422 lines
9.0 KiB
Plaintext
422 lines
9.0 KiB
Plaintext
/* pages/shangjiazhongxin/shangjiazhongxin.wxss */
|
||
/* 最终优化:指标卡片缩小,图标缩小,资产卡片微缩,背景模糊 */
|
||
|
||
page {
|
||
background-color: #f5f7fb;
|
||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
||
}
|
||
|
||
/* 页面背景纹理:添加模糊效果,降低对比 */
|
||
.page-bg {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
z-index: 0;
|
||
opacity: 0.15; /* 降低不透明度,更柔和 */
|
||
filter: blur(8rpx); /* 轻微模糊,不刺眼 */
|
||
pointer-events: none;
|
||
}
|
||
|
||
.page-container {
|
||
position: relative;
|
||
z-index: 1;
|
||
min-height: 100vh;
|
||
padding: 0 32rpx;
|
||
box-sizing: border-box;
|
||
background-color: transparent;
|
||
}
|
||
|
||
/* ========== 未注册卡片 ========== */
|
||
.unregistered {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding-top: 200rpx;
|
||
}
|
||
.unreg-card {
|
||
width: 90%;
|
||
border-radius: 48rpx;
|
||
overflow: hidden;
|
||
box-shadow: 0 8rpx 20rpx rgba(0,0,0,0.2);
|
||
background-color: transparent;
|
||
}
|
||
.unreg-content {
|
||
padding: 60rpx 40rpx;
|
||
text-align: center;
|
||
background: rgba(0,0,0,0.65);
|
||
backdrop-filter: blur(16rpx);
|
||
border-radius: 48rpx;
|
||
}
|
||
.status-title {
|
||
font-size: 44rpx;
|
||
font-weight: 700;
|
||
color: #fff;
|
||
margin-bottom: 16rpx;
|
||
}
|
||
.status-desc {
|
||
font-size: 28rpx;
|
||
color: #ddd;
|
||
margin-bottom: 50rpx;
|
||
}
|
||
.input-group {
|
||
margin-bottom: 40rpx;
|
||
}
|
||
.invite-input {
|
||
width: 100%;
|
||
height: 96rpx;
|
||
background: rgba(255,255,255,0.2);
|
||
border-radius: 48rpx;
|
||
padding: 0 32rpx;
|
||
font-size: 30rpx;
|
||
color: #fff;
|
||
border: 1rpx solid rgba(255,255,255,0.3);
|
||
box-sizing: border-box;
|
||
}
|
||
.register-btn {
|
||
width: 100%;
|
||
height: 96rpx;
|
||
background: linear-gradient(135deg, #ffb347, #ff8c1a);
|
||
border-radius: 48rpx;
|
||
font-size: 34rpx;
|
||
font-weight: 600;
|
||
color: white;
|
||
box-shadow: 0 8rpx 20rpx rgba(255,140,26,0.3);
|
||
border: none;
|
||
line-height: 96rpx;
|
||
}
|
||
.register-tip {
|
||
margin-top: 32rpx;
|
||
font-size: 24rpx;
|
||
color: #ddd;
|
||
}
|
||
|
||
/* ========== 已注册页面 ========== */
|
||
.registered {
|
||
padding-top: 30rpx;
|
||
padding-bottom: 40rpx;
|
||
}
|
||
|
||
/* 刷新按钮 */
|
||
.refresh-btn {
|
||
position: absolute;
|
||
top: 30rpx;
|
||
right: 32rpx;
|
||
width: 72rpx;
|
||
height: 72rpx;
|
||
background: rgba(0,0,0,0.5);
|
||
border-radius: 36rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 20;
|
||
backdrop-filter: blur(10rpx);
|
||
}
|
||
.refresh-icon {
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
filter: brightness(0) invert(1);
|
||
}
|
||
|
||
/* ========== 头像卡片 ========== */
|
||
.avatar-card {
|
||
border-radius: 60rpx;
|
||
overflow: hidden;
|
||
margin-bottom: 36rpx;
|
||
box-shadow: 0 6rpx 18rpx rgba(0,0,0,0.2);
|
||
background-color: transparent;
|
||
}
|
||
.avatar-content {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 28rpx 32rpx;
|
||
background: rgba(0,0,0,0.55);
|
||
backdrop-filter: blur(20rpx);
|
||
}
|
||
.avatar-wrapper {
|
||
position: relative;
|
||
width: 110rpx;
|
||
height: 110rpx;
|
||
margin-right: 28rpx;
|
||
}
|
||
.avatar-img {
|
||
width: 100%;
|
||
height: 100%;
|
||
border-radius: 50%;
|
||
object-fit: cover;
|
||
border: 2rpx solid rgba(255,255,255,0.3);
|
||
}
|
||
.avatar-frame {
|
||
position: absolute;
|
||
top: -8rpx;
|
||
left: -8rpx;
|
||
width: 126rpx;
|
||
height: 126rpx;
|
||
pointer-events: none;
|
||
}
|
||
.user-info {
|
||
flex: 1;
|
||
}
|
||
.nicheng {
|
||
font-size: 40rpx;
|
||
font-weight: 700;
|
||
color: #fff;
|
||
margin-bottom: 16rpx;
|
||
text-shadow: 0 2rpx 6rpx rgba(0,0,0,0.5);
|
||
background: rgba(0,0,0,0.6);
|
||
display: inline-block;
|
||
padding: 6rpx 20rpx;
|
||
border-radius: 40rpx;
|
||
}
|
||
.uid-area {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.uid-label {
|
||
font-size: 26rpx;
|
||
color: #fff;
|
||
background: rgba(0,0,0,0.7);
|
||
padding: 6rpx 16rpx;
|
||
border-radius: 28rpx;
|
||
margin-right: 16rpx;
|
||
backdrop-filter: blur(4rpx);
|
||
}
|
||
.uid-value {
|
||
font-size: 28rpx;
|
||
color: #fff;
|
||
font-family: monospace;
|
||
background: rgba(0,0,0,0.6);
|
||
padding: 6rpx 16rpx;
|
||
border-radius: 28rpx;
|
||
}
|
||
.copy-icon {
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
margin-left: 20rpx;
|
||
opacity: 0.9;
|
||
filter: drop-shadow(0 2rpx 2rpx rgba(0,0,0,0.5));
|
||
}
|
||
|
||
/* 荣誉标签 */
|
||
.badge-area {
|
||
margin-bottom: 36rpx;
|
||
}
|
||
.badge-scroll {
|
||
white-space: nowrap;
|
||
}
|
||
.badge-row {
|
||
display: inline-flex;
|
||
gap: 16rpx;
|
||
padding: 8rpx 0;
|
||
}
|
||
|
||
/* ========== 资产卡片(稍微缩小) ========== */
|
||
.asset-card {
|
||
border-radius: 48rpx;
|
||
overflow: hidden;
|
||
margin-bottom: 36rpx;
|
||
box-shadow: 0 10rpx 24rpx rgba(0,0,0,0.2);
|
||
background-color: transparent;
|
||
}
|
||
.glass-effect {
|
||
padding: 44rpx 36rpx; /* 原 48rpx 36rpx,稍微缩小 */
|
||
background: rgba(0,0,0,0.55);
|
||
backdrop-filter: blur(20rpx);
|
||
}
|
||
.balance-area {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-start;
|
||
flex-wrap: wrap;
|
||
margin-bottom: 32rpx;
|
||
}
|
||
.balance-label {
|
||
font-size: 28rpx;
|
||
color: #ffdebc;
|
||
font-weight: 500;
|
||
}
|
||
.balance-value {
|
||
display: flex;
|
||
align-items: baseline;
|
||
}
|
||
.value-num {
|
||
font-size: 64rpx; /* 原 68rpx,稍微缩小 */
|
||
font-weight: 800;
|
||
color: #ffd966;
|
||
font-family: 'DIN', monospace;
|
||
}
|
||
.value-unit {
|
||
font-size: 32rpx;
|
||
color: #ffdebc;
|
||
margin-left: 6rpx;
|
||
}
|
||
.action-buttons {
|
||
display: flex;
|
||
gap: 24rpx;
|
||
}
|
||
.action-btn {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10rpx;
|
||
background: rgba(255,255,255,0.9);
|
||
padding: 12rpx 28rpx;
|
||
border-radius: 60rpx;
|
||
font-size: 26rpx;
|
||
font-weight: 500;
|
||
}
|
||
.action-btn.recharge {
|
||
color: #ff8c1a;
|
||
}
|
||
.action-btn.withdraw {
|
||
color: #2d3e6e;
|
||
}
|
||
.btn-icon {
|
||
width: 32rpx;
|
||
height: 32rpx;
|
||
}
|
||
.divider {
|
||
height: 2rpx;
|
||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
|
||
margin: 24rpx 0;
|
||
}
|
||
.stats-row {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
flex-wrap: wrap;
|
||
}
|
||
.stat-item {
|
||
flex: 1;
|
||
text-align: center;
|
||
}
|
||
.stat-label {
|
||
font-size: 24rpx;
|
||
color: #ddd;
|
||
margin-bottom: 12rpx;
|
||
display: block;
|
||
}
|
||
.stat-number {
|
||
font-size: 34rpx; /* 原 38rpx,稍微缩小 */
|
||
font-weight: 700;
|
||
color: #fff;
|
||
}
|
||
|
||
/* ========== 核心指标卡片组(缩小版) ========== */
|
||
.metrics-section {
|
||
display: flex;
|
||
gap: 24rpx;
|
||
margin-bottom: 40rpx;
|
||
}
|
||
.metric-card {
|
||
flex: 1;
|
||
border-radius: 36rpx;
|
||
overflow: hidden;
|
||
box-shadow: 0 6rpx 16rpx rgba(0,0,0,0.2);
|
||
background-color: transparent;
|
||
}
|
||
.metric-content {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
padding: 24rpx 0; /* 原 36rpx 0,缩小 */
|
||
background: rgba(0,0,0,0.55);
|
||
backdrop-filter: blur(12rpx);
|
||
}
|
||
.metric-icon {
|
||
width: 48rpx; /* 原 60rpx,缩小 */
|
||
height: 48rpx;
|
||
margin-bottom: 16rpx;
|
||
filter: brightness(0) invert(1);
|
||
}
|
||
.metric-value {
|
||
font-size: 44rpx; /* 原 52rpx,缩小 */
|
||
font-weight: 800;
|
||
color: #ffd966;
|
||
margin-bottom: 8rpx;
|
||
}
|
||
.metric-label {
|
||
font-size: 24rpx; /* 原 28rpx,缩小 */
|
||
color: #eee;
|
||
}
|
||
|
||
/* ========== 功能宫格(图标缩小) ========== */
|
||
.function-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 24rpx;
|
||
margin-top: 12rpx;
|
||
}
|
||
.func-item {
|
||
border-radius: 32rpx;
|
||
overflow: hidden;
|
||
box-shadow: 0 6rpx 14rpx rgba(0,0,0,0.2);
|
||
background-color: transparent;
|
||
}
|
||
.func-content {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
padding: 32rpx 12rpx 28rpx; /* 原 40rpx 16rpx 36rpx,稍微缩小 */
|
||
background: rgba(0,0,0,0.55);
|
||
backdrop-filter: blur(12rpx);
|
||
transition: all 0.2s ease;
|
||
}
|
||
.func-icon {
|
||
width: 64rpx; /* 原 72rpx,缩小 */
|
||
height: 64rpx;
|
||
margin-bottom: 20rpx;
|
||
filter: brightness(0) invert(1);
|
||
}
|
||
.func-name {
|
||
font-size: 28rpx; /* 原 32rpx,缩小 */
|
||
font-weight: 600;
|
||
color: #fff;
|
||
margin-bottom: 8rpx;
|
||
}
|
||
.func-desc {
|
||
font-size: 22rpx; /* 原 24rpx,缩小 */
|
||
color: #ddd;
|
||
}
|
||
|
||
/* 底部安全区 */
|
||
.safe-bottom {
|
||
height: 40rpx;
|
||
}
|
||
|
||
/* 加载遮罩 */
|
||
.loading-mask {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: rgba(0,0,0,0.7);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 9999;
|
||
}
|
||
.loading-content {
|
||
background: rgba(0,0,0,0.8);
|
||
padding: 48rpx 64rpx;
|
||
border-radius: 32rpx;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
.loading-spinner {
|
||
width: 72rpx;
|
||
height: 72rpx;
|
||
border: 6rpx solid rgba(255,255,255,0.3);
|
||
border-top-color: #ffd966;
|
||
border-radius: 50%;
|
||
animation: spin 0.8s linear infinite;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
.loading-text {
|
||
font-size: 28rpx;
|
||
color: #fff;
|
||
}
|
||
@keyframes spin {
|
||
to { transform: rotate(360deg); }
|
||
} |