checkpoint: pre-refactor state before fixing P0/P1 issues

This commit is contained in:
2026-06-11 18:40:59 +08:00
parent 2c3c2653fa
commit d55ed60907
41 changed files with 1129 additions and 1051 deletions

View File

@@ -1,68 +1,48 @@
/* ── 我的页:Vital 风格 ──
紫色渐变淡出头部,白色英雄卡叠压其上,统计用大数字锚点 */
.profile-page {
min-height: 100vh;
background: #ffffff;
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% 460rpx;
display: flex;
flex-direction: column;
}
/* 主导航栏与胶囊等高右侧避让胶囊 */
/* 主导航栏:与胶囊等高,右侧避让胶囊 */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
padding-left: 28rpx;
flex-shrink: 0;
box-sizing: border-box;
}
/* 标题颜色由 .glass-topbar 统一控制 */
.navbar-title {
font-size: 36rpx;
font-weight: 800;
color: #2b2438;
}
.settings-btn {
width: 64rpx;
height: 64rpx;
border-radius: 26rpx;
background: var(--glass);
backdrop-filter: blur(28rpx) saturate(170%);
-webkit-backdrop-filter: blur(28rpx) saturate(170%);
border: 1rpx solid var(--glass-edge);
box-shadow: var(--shadow-soft);
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
font-weight: 700;
}
.profile-scroll { flex: 1; }
/* 用户信息区:玻璃英雄卡 + 漂浮渐变光斑 */
/* 用户信息区:白色英雄卡叠压在紫色头部上 */
.profile-header {
position: relative;
margin: 8rpx 28rpx 20rpx;
padding: 32rpx 28rpx 26rpx;
overflow: hidden;
border-radius: 56rpx;
background: var(--glass);
backdrop-filter: blur(28rpx) saturate(170%);
-webkit-backdrop-filter: blur(28rpx) saturate(170%);
border: 1rpx solid var(--glass-edge);
box-shadow: var(--shadow-soft), inset 0 1rpx 0 rgba(255, 255, 255, 0.65);
border-radius: 48rpx;
background: #ffffff;
box-shadow: 0 20rpx 50rpx rgba(27, 27, 32, 0.10);
}
/* 旧版渐变光斑已停用(Vital 用纯白卡面) */
.hero-blob {
position: absolute;
border-radius: 50%;
filter: blur(70rpx);
opacity: 0.5;
pointer-events: none;
display: none;
}
.hb1 { width: 260rpx; height: 260rpx; background: #ffd400; top: -100rpx; right: -60rpx; }
.hb2 { width: 200rpx; height: 200rpx; background: #00d9a0; bottom: -80rpx; left: -40rpx; }
.user-top {
position: relative;
z-index: 1;
@@ -84,14 +64,13 @@
display: flex;
align-items: center;
justify-content: center;
border: 4rpx solid rgba(255, 255, 255, 0.85);
box-shadow: 0 18rpx 36rpx rgba(120, 70, 150, 0.22);
box-shadow: 0 14rpx 32rpx rgba(27, 27, 32, 0.10);
}
.avatar-text {
font-size: 56rpx;
font-weight: 800;
color: rgba(43, 36, 56, 0.72);
font-weight: 700;
color: rgba(27, 27, 32, 0.65);
}
.avatar-edit {
@@ -101,10 +80,8 @@
width: 46rpx;
height: 46rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(16rpx);
-webkit-backdrop-filter: blur(16rpx);
box-shadow: 0 8rpx 18rpx rgba(120, 70, 150, 0.18);
background: #ffffff;
box-shadow: 0 8rpx 18rpx rgba(27, 27, 32, 0.14);
display: flex;
align-items: center;
justify-content: center;
@@ -126,37 +103,37 @@
.user-name {
font-size: 34rpx;
font-weight: 800;
color: #2b2438;
font-weight: 700;
color: #1b1b20;
}
.user-handle {
display: block;
font-size: 24rpx;
color: #a59cb5;
color: #b9bdc6;
margin-bottom: 10rpx;
}
.user-bio {
display: block;
font-size: 24rpx;
color: #6e6480;
color: #6e7280;
line-height: 1.6;
}
/* 编辑资料:浅灰静默胶囊 */
.edit-profile-btn {
background: rgba(255, 255, 255, 0.55);
border: 1.5rpx solid #8b5cf6;
background: #f1f2f6;
border-radius: 999rpx;
padding: 14rpx 28rpx;
font-size: 24rpx;
font-weight: 800;
color: #8b5cf6;
font-weight: 600;
color: #1b1b20;
flex-shrink: 0;
align-self: flex-start;
}
/* 数据统计 */
/* 数据统计:大数字锚点(整数大、标签小且灰) */
.stats-row {
position: relative;
z-index: 1;
@@ -169,27 +146,24 @@
flex: 1;
padding: 22rpx 0;
text-align: center;
background: var(--glass-strong);
backdrop-filter: blur(34rpx) saturate(180%);
-webkit-backdrop-filter: blur(34rpx) saturate(180%);
border: 1rpx solid var(--glass-edge);
border-radius: 36rpx;
box-shadow: var(--shadow-soft), inset 0 1rpx 0 rgba(255, 255, 255, 0.7);
background: #f6f7fa;
border-radius: 32rpx;
}
.stat-num {
display: block;
font-size: 38rpx;
font-weight: 800;
color: #ff2d6e;
font-size: 44rpx;
font-weight: 700;
letter-spacing: -1rpx;
color: #1b1b20;
font-variant-numeric: tabular-nums;
}
.stat-label {
display: block;
font-size: 21rpx;
font-weight: 700;
color: #a59cb5;
font-weight: 600;
color: #b9bdc6;
margin-top: 4rpx;
}
@@ -207,21 +181,21 @@
.section-title {
font-size: 22rpx;
font-weight: 800;
color: #a59cb5;
font-weight: 600;
color: #b9bdc6;
letter-spacing: 0.6rpx;
}
.add-pet-btn {
font-size: 24rpx;
font-weight: 800;
color: #ff2d6e;
background: rgba(255, 45, 110, 0.12);
font-weight: 600;
color: #7563e0;
background: rgba(139, 124, 246, 0.12);
border-radius: 999rpx;
padding: 8rpx 20rpx;
}
/* 宠物卡片 */
/* 宠物卡片:白卡 */
.pets-scroll {
white-space: nowrap;
padding: 0 28rpx 16rpx;
@@ -231,22 +205,19 @@
display: inline-flex;
align-items: center;
gap: 18rpx;
background: var(--glass);
backdrop-filter: blur(28rpx) saturate(170%);
-webkit-backdrop-filter: blur(28rpx) saturate(170%);
border: 1rpx solid var(--glass-edge);
background: #ffffff;
border-radius: 40rpx;
padding: 20rpx 24rpx;
margin-right: 20rpx;
box-shadow: var(--shadow-soft), inset 0 1rpx 0 rgba(255, 255, 255, 0.6);
box-shadow: var(--shadow-soft);
white-space: normal;
vertical-align: top;
max-width: 560rpx;
}
.pet-card-empty {
background: rgba(255, 255, 255, 0.40);
border: 3rpx dashed rgba(43, 36, 56, 0.18);
background: transparent;
border: 3rpx dashed rgba(27, 27, 32, 0.14);
box-shadow: none;
}
@@ -257,11 +228,10 @@
display: flex;
align-items: center;
justify-content: center;
border: 2.5rpx solid rgba(255, 255, 255, 0.8);
flex-shrink: 0;
}
.pet-avatar-add { background: rgba(255, 255, 255, 0.55); border-style: dashed; color: #a59cb5; }
.pet-avatar-add { background: #f1f2f6; border: 2.5rpx dashed rgba(27, 27, 32, 0.14); color: #b9bdc6; }
.pet-emoji { font-size: 44rpx; line-height: 1; }
@@ -270,36 +240,32 @@
.pet-name {
display: block;
font-size: 28rpx;
font-weight: 800;
color: #2b2438;
font-weight: 600;
color: #1b1b20;
margin-bottom: 6rpx;
}
.pet-breed {
display: block;
font-size: 22rpx;
color: #a59cb5;
color: #b9bdc6;
}
/* 宠物徽章:淡紫静默胶囊,不旋转 */
.pet-badge {
background: linear-gradient(135deg, #ff2d6e, #8b5cf6);
color: #fff;
border-radius: 24rpx;
background: rgba(139, 124, 246, 0.12);
color: #7563e0;
border-radius: 999rpx;
padding: 10rpx 18rpx;
font-size: 20rpx;
font-weight: 800;
font-weight: 600;
flex-shrink: 0;
transform: rotate(3deg);
box-shadow: 0 12rpx 24rpx rgba(139, 92, 246, 0.3);
}
/* 视图切换 */
/* 视图切换:灰底分段控件 */
.view-toggle {
display: flex;
background: var(--glass);
backdrop-filter: blur(24rpx) saturate(170%);
-webkit-backdrop-filter: blur(24rpx) saturate(170%);
border: 1rpx solid var(--glass-edge);
background: #e7e9ef;
border-radius: 18rpx;
overflow: hidden;
}
@@ -307,13 +273,13 @@
.toggle-item {
padding: 10rpx 20rpx;
font-size: 24rpx;
color: #a59cb5;
color: #6e7280;
}
.toggle-item.active {
background: rgba(255, 45, 110, 0.14);
color: #ff2d6e;
font-weight: 800;
background: #ffffff;
color: #1b1b20;
font-weight: 700;
}
/* 动态网格 */
@@ -328,8 +294,7 @@
aspect-ratio: 1;
border-radius: 26rpx;
overflow: hidden;
background: rgba(255, 255, 255, 0.45);
border: 1rpx solid rgba(255, 255, 255, 0.6);
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
@@ -340,7 +305,7 @@
.grid-no-img {
padding: 12rpx;
font-size: 20rpx;
color: #a59cb5;
color: #b9bdc6;
text-align: center;
line-height: 1.4;
}
@@ -356,6 +321,6 @@
.empty-emoji { font-size: 72rpx; }
.empty-tip { font-size: 26rpx; color: #a59cb5; }
.empty-tip { font-size: 26rpx; color: #b9bdc6; }
.post-btn { padding: 18rpx 48rpx; font-size: 26rpx; font-weight: 800; margin-top: 8rpx; }
.post-btn { padding: 18rpx 48rpx; font-size: 26rpx; font-weight: 600; margin-top: 8rpx; }