feat: 全站视觉焕新与悬浮玻璃 TabBar 迁移

This commit is contained in:
2026-08-07 23:29:19 +08:00
parent 19408e5a8c
commit 61f1217384
97 changed files with 4007 additions and 2024 deletions
+197 -162
View File
@@ -1,244 +1,272 @@
.profile-page {
padding: 0 24px 24px;
padding: 0 32rpx 48rpx;
min-height: 100vh;
box-sizing: border-box;
}
/* 用户头部 */
.profile-header {
padding: 40px 32px 32px;
margin: 20px 0 0;
.profile-page .profile-header {
padding: 32rpx 32rpx 16rpx;
margin: 0 0 32rpx;
}
.user-info {
.profile-page .user-info {
display: flex;
align-items: center;
margin-bottom: 32px;
gap: 24rpx;
margin-bottom: 24rpx;
}
.avatar {
width: 120px;
height: 120px;
.profile-page .avatar,
.profile-page .avatar-placeholder {
width: 112rpx;
height: 112rpx;
border-radius: 50%;
border: 1rpx solid var(--border);
margin-right: 24px;
flex-shrink: 0;
}
.avatar-placeholder {
width: 120px;
height: 120px;
border-radius: 50%;
background: var(--bg-muted);
display: flex;
align-items: center;
justify-content: center;
margin-right: 24px;
border: 1rpx solid var(--border);
margin-right: 0;
flex-shrink: 0;
}
.avatar-icon {
font-size: 56px;
}
.user-name {
font-size: 40px;
font-weight: 800;
color: var(--text-primary);
display: block;
margin-bottom: 8px;
}
.user-level {
font-size: 24px;
color: var(--text-secondary);
display: block;
}
/* 5状态快捷入口 - 2+3布局 */
.status-grid {
background: var(--bg-card);
border: 1rpx solid var(--border);
border-radius: 20px;
overflow: hidden;
}
.status-row {
.profile-page .avatar-icon-img {
width: 44rpx;
height: 44rpx;
}
.profile-page .user-meta {
flex: 1;
min-width: 0;
}
.profile-page .user-name {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 36rpx;
font-weight: 700;
line-height: 1.2;
color: var(--text-primary);
margin-bottom: 8rpx;
}
.profile-page .user-level {
display: block;
font-size: 24rpx;
line-height: 1.4;
color: var(--text-secondary);
}
/* 5 状态快捷入口 */
.profile-page .status-grid {
display: flex;
flex-direction: column;
border-top: 1rpx solid var(--border);
padding-top: 16rpx;
}
.profile-page .status-row {
display: flex;
align-items: center;
justify-content: space-around;
padding: 20px 0;
}
/* 每组(item + divider)作为一个 flex 单元 */
.status-group {
.profile-page .status-group {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
justify-content: center;
}
.status-item {
.profile-page .status-item {
display: flex;
flex-direction: column;
align-items: center;
padding: 8px 0;
justify-content: center;
flex: 1;
min-height: 112rpx;
padding: 8rpx 0;
transition: transform 0.18s ease;
}
.status-num {
font-size: 36px;
.profile-page .status-item:active {
transform: scale(0.97);
}
.profile-page .status-icon-img {
width: 32rpx;
height: 32rpx;
margin-bottom: 10rpx;
}
.profile-page .status-num {
font-size: 32rpx;
font-weight: 800;
line-height: 1.2;
color: var(--accent-primary);
margin-bottom: 8px;
margin-bottom: 6rpx;
font-variant-numeric: tabular-nums;
}
.status-label {
font-size: 24px;
.profile-page .status-label {
font-size: 24rpx;
line-height: 1.2;
color: var(--text-secondary);
}
.status-divider {
width: 2px;
height: 48px;
.profile-page .status-divider {
width: 1rpx;
height: 56rpx;
background: var(--border);
opacity: 0.25;
flex-shrink: 0;
}
.status-divider-h {
height: 2px;
.profile-page .status-divider-h {
height: 1rpx;
background: var(--border);
opacity: 0.15;
margin: 0 16px;
margin: 4rpx 16rpx 12rpx;
}
/* 菜单网格 */
.menu-grid {
/* 区块标题 */
.profile-page .section-title {
display: block;
margin: 0 0 24rpx;
font-size: 32rpx;
font-weight: 700;
line-height: 1.25;
color: var(--text-primary);
}
/* 功能菜单 */
.profile-page .menu-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 20px;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16rpx;
}
.menu-card {
.profile-page .menu-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 32px 16px;
transition: transform 0.2s;
justify-content: center;
min-height: 148rpx;
padding: 28rpx 16rpx;
border-radius: 24rpx;
box-shadow: var(--shadow-card);
transition: transform 0.2s ease;
}
.menu-card:active {
transform: scale(0.96);
.profile-page .menu-card:active {
transform: scale(0.97);
}
.menu-icon {
font-size: 48px;
margin-bottom: 12px;
.profile-page .menu-icon-img {
width: 44rpx;
height: 44rpx;
margin-bottom: 16rpx;
}
.menu-label {
font-size: 26px;
color: var(--text-primary);
font-weight: 500;
}
/* 企业定制 */
.enterprise-section {
padding: 32px;
}
.enterprise-title {
font-size: 30px;
font-weight: 700;
color: var(--text-primary);
.profile-page .menu-label {
display: block;
margin-bottom: 8px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 26rpx;
font-weight: 600;
line-height: 1.2;
color: var(--text-primary);
}
.enterprise-desc {
font-size: 24px;
/* 企业定制入口 */
.profile-page .enterprise-section {
padding: 28rpx 32rpx;
margin: 0 0 48rpx;
}
.profile-page .enterprise-icon {
width: 32rpx;
height: 32rpx;
margin-right: 12rpx;
flex-shrink: 0;
}
.profile-page .enterprise-title {
display: block;
font-size: 30rpx;
font-weight: 700;
line-height: 1.3;
color: var(--text-primary);
margin-bottom: 6rpx;
}
.profile-page .enterprise-desc {
display: block;
font-size: 24rpx;
line-height: 1.4;
color: var(--text-secondary);
}
.enterprise-btn {
padding: 16px 32px !important;
font-size: 26px !important;
border-radius: 40px !important;
.profile-page .enterprise-btn {
display: flex;
align-items: center;
justify-content: center;
height: 80rpx;
padding: 0 32rpx;
font-size: 26rpx;
font-weight: 600;
line-height: 1.2;
border-radius: 999rpx;
flex-shrink: 0;
}
.menu-icon-img {
width: 36px;
height: 36px;
margin-bottom: 12px;
}
/* 状态 icon 图片 */
.status-icon-img {
width: 28px;
height: 28px;
margin-bottom: 4px;
}
/* 企业定制icon */
.enterprise-icon {
width: 28px;
height: 28px;
margin-right: 12px;
}
/* 头像占位图 */
.avatar-icon-img {
width: 36px;
height: 36px;
}
/* 登录弹窗头像占位 */
.avatar-placeholder-img {
width: 56px;
height: 56px;
}
.modal-overlay {
/* 登录弹窗 */
.profile-page .modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 48px;
padding: 48rpx;
}
.login-card {
.profile-page .login-card {
width: 100%;
max-width: 600px;
padding: 40px;
max-width: 640rpx;
padding: 40rpx;
text-align: center;
border-radius: 32rpx;
}
.login-title {
font-size: 36px;
.profile-page .login-title {
display: block;
font-size: 36rpx;
font-weight: 700;
color: var(--text-primary);
display: block;
margin-bottom: 12px;
margin-bottom: 12rpx;
}
.login-desc {
font-size: 26px;
.profile-page .login-desc {
display: block;
font-size: 26rpx;
color: var(--text-secondary);
display: block;
margin-bottom: 32px;
margin-bottom: 32rpx;
}
.avatar-btn {
width: 160px;
height: 160px;
.profile-page .avatar-btn {
width: 160rpx;
height: 160rpx;
border-radius: 50%;
margin: 0 auto 24px;
margin: 0 auto 24rpx;
background: var(--bg-input);
border: 1rpx solid var(--border);
display: flex;
@@ -250,39 +278,46 @@
font-size: 0;
}
.avatar-img {
.profile-page .avatar-img {
width: 100%;
height: 100%;
border-radius: 50%;
}
.avatar-placeholder {
font-size: 24px;
color: var(--text-secondary);
.profile-page .avatar-placeholder-img {
width: 64rpx;
height: 64rpx;
}
.nickname-input {
.profile-page .nickname-input {
width: 100%;
height: 80px;
height: 88rpx;
background: var(--bg-input);
border: 1rpx solid var(--border);
border-radius: 16px;
padding: 0 24px;
font-size: 28px;
border-radius: 16rpx;
padding: 0 24rpx;
font-size: 28rpx;
color: var(--text-primary);
margin-bottom: 32px;
margin-bottom: 32rpx;
text-align: center;
box-sizing: border-box;
}
.login-actions {
.profile-page .login-actions {
display: flex;
gap: 20px;
gap: 20rpx;
}
.login-actions .btn-secondary,
.login-actions .btn-primary {
.profile-page .login-actions .btn-secondary,
.profile-page .login-actions .btn-primary {
flex: 1;
padding: 20px 0;
display: flex;
align-items: center;
justify-content: center;
height: 88rpx;
padding: 0;
font-size: 28rpx;
font-weight: 600;
text-align: center;
border-radius: 999rpx;
}