ai-c/pages/referrals/referrals.wxss
2026-02-02 18:21:32 +08:00

307 lines
4.6 KiB
Plaintext

/* pages/referrals/referrals.wxss */
.container {
min-height: 100vh;
background: #F2EDFF;
}
/* 固定导航栏 */
.nav-container {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 999;
background: rgba(242, 237, 255, 0.6);
backdrop-filter: blur(10px);
}
.status-bar {
background: transparent;
}
.nav-bar {
display: flex;
align-items: center;
justify-content: center;
padding: 0 32rpx;
background: transparent;
position: relative;
}
.nav-back {
position: absolute;
left: 32rpx;
top: 50%;
transform: translateY(-50%);
width: 80rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.back-icon {
width: 48rpx;
height: 48rpx;
}
.nav-title {
font-size: 36rpx;
font-weight: 700;
color: #1F2937;
line-height: 1;
}
/* 内容滚动区域 */
.content-scroll {
height: 100vh;
box-sizing: border-box;
}
/* 统计卡片 */
.stats-card {
background: linear-gradient(135deg, #B06AB3 0%, #9B4D9E 100%);
border-radius: 24rpx;
padding: 48rpx 32rpx;
margin: 24rpx;
display: flex;
align-items: center;
justify-content: space-around;
box-shadow: 0 8rpx 24rpx rgba(176, 106, 179, 0.3);
}
.stats-item {
flex: 1;
text-align: center;
}
.stats-label {
font-size: 28rpx;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 16rpx;
}
.stats-value {
font-size: 48rpx;
font-weight: 700;
color: #FFFFFF;
}
.stats-divider {
width: 2rpx;
height: 80rpx;
background: rgba(255, 255, 255, 0.3);
}
/* 列表容器 */
.list-container {
padding: 0 24rpx 24rpx;
}
/* 列表项 */
.list-item {
background: #FFFFFF;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 16rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
}
.user-info {
display: flex;
align-items: center;
flex: 1;
}
.user-avatar {
width: 96rpx;
height: 96rpx;
border-radius: 48rpx;
margin-right: 24rpx;
background: #F5F5F5;
}
.user-details {
flex: 1;
}
.user-name-row {
display: flex;
align-items: center;
gap: 12rpx;
margin-bottom: 8rpx;
}
.user-name {
font-size: 36rpx;
font-weight: 600;
color: #1F2937;
}
/* 筛选栏 */
.filter-bar {
position: fixed;
left: 0;
right: 0;
height: 100rpx;
background: #FFFFFF;
display: flex;
align-items: center;
padding: 0 24rpx;
z-index: 98;
box-shadow: 0 2rpx 10rpx rgba(0,0,0,0.05);
}
.search-box {
flex: 1;
height: 64rpx;
background: #F3F4F6;
border-radius: 32rpx;
display: flex;
align-items: center;
padding: 0 24rpx;
margin-right: 20rpx;
}
.search-box input {
flex: 1;
font-size: 26rpx;
margin-left: 12rpx;
color: #1F2937;
}
.level-picker {
display: flex;
align-items: center;
gap: 4rpx;
background: #F3F4F6;
padding: 0 20rpx;
height: 64rpx;
border-radius: 32rpx;
}
.level-picker text {
font-size: 26rpx;
color: #4B5563;
max-width: 160rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-time {
font-size: 28rpx;
color: #9CA3AF;
}
/* 列表项详情扩展 */
.user-meta {
font-size: 26rpx;
color: #6B7280;
margin-top: 8rpx;
display: flex;
align-items: center;
}
.user-level {
font-size: 24rpx;
color: #B06AB3;
background: rgba(176, 106, 179, 0.1);
padding: 4rpx 16rpx;
border-radius: 20rpx;
font-weight: 600;
}
.user-contribution {
display: none; /* 已合并到详情中 */
}
.arrow-right {
margin-left: 16rpx;
display: flex;
align-items: center;
flex-shrink: 0;
}
.contribution-label {
font-size: 24rpx;
color: #9CA3AF;
margin-bottom: 8rpx;
}
.contribution-value {
font-size: 32rpx;
font-weight: 700;
color: #B06AB3;
}
/* 加载更多 */
.load-more {
text-align: center;
padding: 32rpx 0;
font-size: 28rpx;
color: #9CA3AF;
}
/* 空状态 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 120rpx 48rpx;
}
.empty-icon {
width: 240rpx;
height: 240rpx;
margin-bottom: 32rpx;
opacity: 0.6;
}
.empty-text {
font-size: 32rpx;
color: #6B7280;
margin-bottom: 16rpx;
}
.empty-tip {
font-size: 28rpx;
color: #9CA3AF;
}
/* 加载状态 */
.loading-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 120rpx 48rpx;
}
.loading-spinner {
width: 80rpx;
height: 80rpx;
border: 6rpx solid #E5E7EB;
border-top-color: #B06AB3;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.loading-text {
font-size: 28rpx;
color: #9CA3AF;
margin-top: 24rpx;
}