184 lines
3.5 KiB
Plaintext
184 lines
3.5 KiB
Plaintext
/* ── 汪友页:Vital 风格 ──
|
|
紫色渐变淡出头部 + 白卡列表叠压 */
|
|
.friends-page {
|
|
height: 100vh;
|
|
background-color: #f1f2f6;
|
|
background-image: linear-gradient(180deg, #9181f4 0%, #a99bf8 52%, rgba(241, 242, 246, 0) 100%);
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 420rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.navbar {
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: 28rpx;
|
|
flex-shrink: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.subbar {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8rpx 28rpx 12rpx;
|
|
gap: 20rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* logo:玻璃顶栏上的深色标题(颜色由 .glass-topbar 统一控制) */
|
|
.topbar-logo {
|
|
font-size: 46rpx;
|
|
font-weight: 700;
|
|
letter-spacing: -0.5rpx;
|
|
}
|
|
|
|
.topbar-tabs { flex: 1; display: flex; gap: 6rpx; }
|
|
|
|
/* 紫底 tab:激活态为白色胶囊 + 黑字 */
|
|
.ftab {
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: rgba(255, 255, 255, 0.72);
|
|
padding: 10rpx 20rpx;
|
|
border-radius: 999rpx;
|
|
}
|
|
|
|
.ftab-active {
|
|
color: #1b1b20;
|
|
background: #ffffff;
|
|
font-weight: 700;
|
|
box-shadow: 0 8rpx 20rpx rgba(27, 27, 32, 0.10);
|
|
}
|
|
|
|
.ftab-count { font-size: 22rpx; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
|
|
/* 添加按钮:紫底上的半透明白 */
|
|
.topbar-btn {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 26rpx;
|
|
background: rgba(255, 255, 255, 0.22);
|
|
color: #fff;
|
|
font-size: 40rpx;
|
|
font-weight: 200;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* 空态 */
|
|
.empty-wrap {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.empty-inner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 18rpx;
|
|
padding: 48rpx 60rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-emoji {
|
|
font-size: 64rpx;
|
|
background: #ffffff;
|
|
border-radius: 40rpx;
|
|
padding: 28rpx;
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.empty-title { font-size: 34rpx; font-weight: 700; color: #1b1b20; }
|
|
|
|
.empty-desc { font-size: 26rpx; color: #6e7280; text-align: center; line-height: 1.6; }
|
|
|
|
.go-btn {
|
|
margin-top: 12rpx;
|
|
padding: 22rpx 60rpx;
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 好友列表:白卡 */
|
|
.friends-scroll { flex: 1; }
|
|
|
|
.friend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
padding: 22rpx;
|
|
margin: 0 28rpx 20rpx;
|
|
background: #ffffff;
|
|
border-radius: 44rpx;
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.friend-avatar {
|
|
width: 92rpx;
|
|
height: 92rpx;
|
|
border-radius: 32rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 36rpx;
|
|
font-weight: 700;
|
|
color: rgba(27, 27, 32, 0.65);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.friend-info { flex: 1; min-width: 0; }
|
|
|
|
.friend-name-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
margin-bottom: 6rpx;
|
|
}
|
|
|
|
.friend-name { font-size: 28rpx; font-weight: 600; color: #1b1b20; }
|
|
|
|
.online-tag {
|
|
font-size: 20rpx;
|
|
font-weight: 600;
|
|
color: #2f9c7d;
|
|
background: rgba(75, 190, 154, 0.14);
|
|
border-radius: 999rpx;
|
|
padding: 4rpx 12rpx;
|
|
}
|
|
|
|
.friend-bio {
|
|
font-size: 24rpx;
|
|
color: #b9bdc6;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: block;
|
|
}
|
|
|
|
/* 关注:强调黑胶囊;已关注:浅灰静默态 */
|
|
.follow-btn {
|
|
background: #2b2b30;
|
|
color: #fff;
|
|
border-radius: 999rpx;
|
|
padding: 14rpx 28rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 12rpx 24rpx rgba(43, 43, 48, 0.22);
|
|
transition: transform 0.18s ease;
|
|
}
|
|
|
|
.follow-btn:active {
|
|
transform: scale(0.94);
|
|
}
|
|
|
|
.follow-btn.following {
|
|
background: #f1f2f6;
|
|
color: #6e7280;
|
|
box-shadow: none;
|
|
}
|