feat: 优化UI
This commit is contained in:
+198
-159
@@ -1,223 +1,262 @@
|
||||
/* 个人中心样式 */
|
||||
/* 个人中心 - 全新极简温暖主题 */
|
||||
:root {
|
||||
--primary-color: #F38600;
|
||||
--bg-color: #F7F8FA;
|
||||
--card-bg: #FFFFFF;
|
||||
--text-main: #2C2C2C;
|
||||
--text-sub: #8E8E93;
|
||||
}
|
||||
|
||||
.profile-page {
|
||||
min-height: 100vh;
|
||||
background: var(--color-bg-page);
|
||||
background-color: #F9F9F9;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* 橙色头部 */
|
||||
.header-bg {
|
||||
background: #F38600;
|
||||
border-radius: 0 0 48rpx 48rpx;
|
||||
padding-bottom: 200rpx;
|
||||
/* 沉浸式头部 */
|
||||
.header-section {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-top: 140rpx;
|
||||
padding-bottom: 80rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
.user-info {
|
||||
|
||||
.header-bg-shape {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(135deg, #FFF0E0 0%, #FFDFB8 100%);
|
||||
border-bottom-left-radius: 64rpx;
|
||||
border-bottom-right-radius: 64rpx;
|
||||
z-index: -1;
|
||||
box-shadow: 0 4rpx 24rpx rgba(243, 134, 0, 0.08);
|
||||
}
|
||||
|
||||
.user-info-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 32rpx 40rpx;
|
||||
padding: 0 48rpx;
|
||||
}
|
||||
.avatar-wrap {
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
|
||||
.avatar-container {
|
||||
width: 140rpx;
|
||||
height: 140rpx;
|
||||
border-radius: 50%;
|
||||
border: 6rpx solid rgba(255, 255, 255, 0.3);
|
||||
background: linear-gradient(135deg, #FFB366, #FFE0B2);
|
||||
border: 6rpx solid rgba(255, 255, 255, 0.6);
|
||||
background: #FFF;
|
||||
box-shadow: 0 12rpx 32rpx rgba(243, 134, 0, 0.15);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 20rpx;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.avatar-emoji {
|
||||
font-size: 64rpx;
|
||||
}
|
||||
|
||||
.avatar-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.user-name {
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #FFF;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
.vip-crown {
|
||||
font-size: 28rpx;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.user-desc {
|
||||
font-size: 22rpx;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
margin-top: 8rpx;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* 订阅卡片 */
|
||||
.sub-card-wrap {
|
||||
.avatar-emoji {
|
||||
font-size: 72rpx;
|
||||
}
|
||||
|
||||
.user-details {
|
||||
margin-left: 36rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.name-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.user-name {
|
||||
font-size: 40rpx;
|
||||
font-weight: 800;
|
||||
color: #333333;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
|
||||
.vip-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: linear-gradient(90deg, #333333 0%, #1A1A1A 100%);
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 999rpx;
|
||||
margin-left: 16rpx;
|
||||
}
|
||||
|
||||
.vip-badge-icon {
|
||||
font-size: 20rpx;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.vip-badge-text {
|
||||
font-size: 20rpx;
|
||||
font-weight: 700;
|
||||
color: #FDF1C2;
|
||||
}
|
||||
|
||||
.user-id {
|
||||
font-size: 24rpx;
|
||||
color: #8C6F50;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 内容区 */
|
||||
.content-section {
|
||||
padding: 0 32rpx;
|
||||
margin-top: -140rpx;
|
||||
margin-top: -30rpx;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
.sub-card {
|
||||
padding: 32rpx;
|
||||
}
|
||||
|
||||
/* 空状态 */
|
||||
.sub-empty {
|
||||
text-align: center;
|
||||
padding: 40rpx 0;
|
||||
}
|
||||
.sub-empty-text {
|
||||
display: block;
|
||||
font-size: 26rpx;
|
||||
color: #999;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
|
||||
/* 订阅列表项 */
|
||||
.sub-item {
|
||||
/* VIP宣发引导卡片 */
|
||||
.vip-promo-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20rpx;
|
||||
background: linear-gradient(135deg, #FFEFD5 0%, #FFE4B5 100%);
|
||||
padding: 32rpx 40rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #FEFEFE;
|
||||
border: 1rpx solid rgba(0,0,0,0.04);
|
||||
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.02);
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.sub-item-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sub-icon {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
|
||||
}
|
||||
.sub-emoji {
|
||||
font-size: 36rpx;
|
||||
}
|
||||
.sub-cover-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.sub-info {
|
||||
margin-left: 24rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sub-name {
|
||||
display: block;
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
}
|
||||
.sub-tag {
|
||||
display: inline-block;
|
||||
margin-top: 8rpx;
|
||||
padding: 4rpx 12rpx;
|
||||
border-radius: 6rpx;
|
||||
font-size: 20rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.sub-tag.free {
|
||||
background: rgba(45, 90, 39, 0.1);
|
||||
color: #2D5A27;
|
||||
box-shadow: 0 8rpx 24rpx rgba(217, 119, 6, 0.08);
|
||||
margin-bottom: 32rpx;
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.sub-del {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 50%;
|
||||
background: #F5F5F5;
|
||||
border: 1rpx solid #EEE;
|
||||
.promo-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.del-icon {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.sub-notice {
|
||||
display: block;
|
||||
font-size: 20rpx;
|
||||
color: rgba(255, 157, 66, 0.7);
|
||||
text-align: center;
|
||||
margin-top: 12rpx;
|
||||
.promo-icon {
|
||||
font-size: 48rpx;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
|
||||
.promo-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.promo-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 800;
|
||||
color: #8B4513;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
|
||||
.promo-desc {
|
||||
font-size: 22rpx;
|
||||
color: #AA7A55;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 菜单卡片 */
|
||||
.menu-card-wrap {
|
||||
padding: 24rpx 32rpx 0;
|
||||
.promo-btn {
|
||||
background: #333333;
|
||||
color: #FDF1C2;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
padding: 12rpx 28rpx;
|
||||
border-radius: 999rpx;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.menu-card {
|
||||
padding: 8rpx 0;
|
||||
|
||||
/* 列表菜单 */
|
||||
.menu-list-card {
|
||||
background: #FFFFFF;
|
||||
border-radius: 32rpx;
|
||||
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.02);
|
||||
padding: 16rpx 0;
|
||||
}
|
||||
.menu-item {
|
||||
|
||||
.menu-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 28rpx 32rpx;
|
||||
border-bottom: 1rpx solid rgba(0,0,0,0.03);
|
||||
padding: 32rpx 40rpx;
|
||||
position: relative;
|
||||
}
|
||||
.menu-item:last-child {
|
||||
border-bottom: none;
|
||||
|
||||
.menu-row::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 110rpx;
|
||||
right: 40rpx;
|
||||
border-bottom: 1rpx solid #F5F5F5;
|
||||
}
|
||||
.menu-item-left {
|
||||
.menu-row:last-child::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.menu-icon-wrap {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
border-radius: 50%;
|
||||
background: #F5F5F5;
|
||||
|
||||
.menu-icon-box {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
background: #F8F9FA;
|
||||
border-radius: 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 20rpx;
|
||||
margin-right: 28rpx;
|
||||
}
|
||||
.menu-icon-wrap.highlight {
|
||||
background: rgba(251, 191, 36, 0.1);
|
||||
|
||||
.menu-icon-box.is-vip-icon {
|
||||
background: rgba(251, 191, 36, 0.15);
|
||||
}
|
||||
|
||||
.menu-emoji {
|
||||
font-size: 24rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.menu-label {
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
letter-spacing: 2rpx;
|
||||
|
||||
.menu-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
}
|
||||
.menu-item-right {
|
||||
|
||||
.menu-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
}
|
||||
.menu-desc {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
font-weight: 500;
|
||||
|
||||
.menu-status {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
.menu-desc.highlight {
|
||||
|
||||
.menu-status.highlight-text {
|
||||
color: #D97706;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.menu-arrow {
|
||||
font-size: 28rpx;
|
||||
color: #CCC;
|
||||
font-size: 32rpx;
|
||||
color: #CCCCCC;
|
||||
}
|
||||
|
||||
.bottom-spacer {
|
||||
height: 240rpx;
|
||||
}
|
||||
|
||||
/* 点击态 */
|
||||
.tap-active:active {
|
||||
opacity: 0.7;
|
||||
transform: scale(0.98);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user