You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
441 lines
7.6 KiB
441 lines
7.6 KiB
.personal-center {
|
|
min-height: 100vh;
|
|
background: linear-gradient(to bottom, #f5f7fa 0%, #e4e8f0 100%);
|
|
padding-bottom: 120rpx;
|
|
}
|
|
|
|
/* 顶部背景 */
|
|
.header-bg {
|
|
height: 300rpx;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1;
|
|
border-radius: 0 0 40rpx 40rpx;
|
|
}
|
|
|
|
/* 用户信息卡片 */
|
|
.user-card {
|
|
position: relative;
|
|
z-index: 2;
|
|
background: white;
|
|
margin: 40rpx;
|
|
border-radius: 24rpx;
|
|
padding: 40rpx;
|
|
box-shadow: 0 10rpx 30rpx rgba(102, 126, 234, 0.15);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
animation: slideUp 0.6s ease;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.avatar-section {
|
|
position: relative;
|
|
margin-right: 30rpx;
|
|
}
|
|
|
|
.avatar {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 50%;
|
|
border: 6rpx solid white;
|
|
box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.avatar-badge {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
background: #07c160;
|
|
width: 36rpx;
|
|
height: 36rpx;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 3rpx solid white;
|
|
}
|
|
|
|
.avatar-badge .iconfont {
|
|
color: white;
|
|
font-size: 20rpx;
|
|
}
|
|
|
|
.user-details {
|
|
flex: 1;
|
|
}
|
|
|
|
.user-name {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.user-name .name {
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-right: 15rpx;
|
|
}
|
|
|
|
.user-name .iconfont {
|
|
color: #667eea;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.user-phone {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 26rpx;
|
|
color: #666;
|
|
margin-bottom: 15rpx;
|
|
}
|
|
|
|
.user-phone .iconfont {
|
|
margin-right: 10rpx;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.user-tags {
|
|
display: flex;
|
|
gap: 15rpx;
|
|
}
|
|
|
|
.user-tags .tag {
|
|
background: rgba(102, 126, 234, 0.1);
|
|
padding: 6rpx 15rpx;
|
|
border-radius: 20rpx;
|
|
font-size: 22rpx;
|
|
color: #667eea;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.user-tags .tag .iconfont {
|
|
font-size: 20rpx;
|
|
margin-right: 5rpx;
|
|
}
|
|
|
|
.card-arrow .iconfont {
|
|
color: #ccc;
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
/* 统计数据 */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 20rpx;
|
|
margin: 30rpx 40rpx;
|
|
animation: fadeIn 0.8s ease 0.2s both;
|
|
}
|
|
|
|
.stat-item {
|
|
background: white;
|
|
border-radius: 20rpx;
|
|
padding: 30rpx 0;
|
|
text-align: center;
|
|
box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.05);
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stat-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4rpx;
|
|
background: var(--item-color);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.stat-item:active {
|
|
transform: translateY(-5rpx);
|
|
box-shadow: 0 10rpx 25rpx rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.stat-item:active::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.stat-icon .iconfont {
|
|
font-size: 44rpx;
|
|
margin-bottom: 15rpx;
|
|
display: block;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 36rpx;
|
|
font-weight: 700;
|
|
color: #333;
|
|
margin-bottom: 5rpx;
|
|
}
|
|
|
|
.stat-name {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|
|
/* 快捷操作 */
|
|
.quick-actions {
|
|
margin: 30rpx 40rpx;
|
|
animation: fadeIn 0.8s ease 0.4s both;
|
|
}
|
|
|
|
.section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.section-title .iconfont {
|
|
margin-right: 15rpx;
|
|
font-size: 32rpx;
|
|
color: #667eea;
|
|
}
|
|
|
|
.actions-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.action-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.action-icon {
|
|
width: 90rpx;
|
|
height: 90rpx;
|
|
border-radius: 50%;
|
|
margin: 0 auto 20rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 40rpx;
|
|
box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.action-item:active .action-icon {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.action-name {
|
|
font-size: 24rpx;
|
|
color: #666;
|
|
}
|
|
|
|
/* 功能模块 */
|
|
.modules {
|
|
margin: 30rpx 40rpx;
|
|
animation: fadeIn 0.8s ease 0.6s both;
|
|
}
|
|
|
|
.module-section {
|
|
background: white;
|
|
border-radius: 20rpx;
|
|
padding: 30rpx;
|
|
margin-bottom: 30rpx;
|
|
box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.module-items {
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.module-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 30rpx 0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.module-item:active {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.module-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.item-left {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.item-icon {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
border-radius: 15rpx;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 25rpx;
|
|
}
|
|
|
|
.item-icon .iconfont {
|
|
color: white;
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.item-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.item-name {
|
|
font-size: 30rpx;
|
|
color: #333;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.item-desc {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
margin-bottom: 5rpx;
|
|
}
|
|
|
|
.item-status {
|
|
font-size: 22rpx;
|
|
padding: 4rpx 12rpx;
|
|
border-radius: 12rpx;
|
|
background: rgba(255, 107, 107, 0.1);
|
|
display: inline-block;
|
|
}
|
|
|
|
.text-orange {
|
|
color: #ff9f43;
|
|
background: rgba(255, 159, 67, 0.1);
|
|
}
|
|
|
|
.item-right {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.badge {
|
|
background: #ff6b6b;
|
|
color: white;
|
|
font-size: 20rpx;
|
|
min-width: 36rpx;
|
|
height: 36rpx;
|
|
border-radius: 18rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 8rpx;
|
|
margin-right: 15rpx;
|
|
}
|
|
|
|
.item-right .iconfont {
|
|
color: #ccc;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
/* 底部操作 */
|
|
.bottom-actions {
|
|
margin: 30rpx 40rpx;
|
|
animation: fadeIn 0.8s ease 0.8s both;
|
|
}
|
|
|
|
.system-info {
|
|
text-align: center;
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
margin-bottom: 40rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10rpx;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.btn {
|
|
flex: 1;
|
|
height: 88rpx;
|
|
border-radius: 44rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
border: none;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.btn-setting {
|
|
background: white;
|
|
color: #667eea;
|
|
border: 2rpx solid #667eea;
|
|
}
|
|
|
|
.btn-logout {
|
|
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
|
|
color: white;
|
|
box-shadow: 0 10rpx 20rpx rgba(255, 107, 107, 0.3);
|
|
}
|
|
|
|
.btn .iconfont {
|
|
margin-right: 10rpx;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30rpx);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@media (max-width: 375px) {
|
|
.user-card,
|
|
.stats-grid,
|
|
.quick-actions,
|
|
.modules,
|
|
.bottom-actions {
|
|
margin-left: 30rpx;
|
|
margin-right: 30rpx;
|
|
}
|
|
}
|