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,53 +1,52 @@
/* ── 发布页:Vital 风格工具页 ──
浅灰底 + 白卡输入区,选中态统一为强调黑胶囊 */
.post-page {
min-height: 100vh;
background: #ffffff;
background: #f1f2f6;
display: flex;
flex-direction: column;
}
/* 顶部高度和右侧 padding 由 JS 动态设置避让系统胶囊按钮 */
/* 顶部:高度和右侧 padding 由 JS 动态设置,避让系统胶囊按钮 */
.post-header {
display: flex;
align-items: center;
justify-content: space-between;
padding-left: 28rpx;
background: var(--glass-strong);
backdrop-filter: blur(34rpx) saturate(180%);
-webkit-backdrop-filter: blur(34rpx) saturate(180%);
border-bottom: 1rpx solid var(--glass-edge);
background: #ffffff;
border-radius: 0 0 40rpx 40rpx;
box-shadow: 0 8rpx 24rpx rgba(27, 27, 32, 0.04);
flex-shrink: 0;
box-sizing: border-box;
}
.cancel-btn {
font-size: 28rpx;
font-weight: 700;
color: #6e6480;
font-weight: 600;
color: #6e7280;
padding: 10rpx;
}
.header-title {
font-size: 32rpx;
font-weight: 800;
color: #2b2438;
font-weight: 700;
color: #1b1b20;
}
/* 发布:强调黑胶囊 */
.submit-btn {
background: linear-gradient(135deg, #ff2d6e, #ff7a1a);
background: #2b2b30;
color: #fff;
border: 1.5rpx solid rgba(255, 255, 255, 0.7);
border-radius: 999rpx;
padding: 14rpx 34rpx;
font-size: 26rpx;
font-weight: 800;
box-shadow: 0 14rpx 28rpx rgba(255, 45, 110, 0.32);
font-weight: 600;
box-shadow: 0 12rpx 28rpx rgba(43, 43, 48, 0.24);
}
.submit-disabled {
background: rgba(165, 156, 181, 0.30);
color: #a59cb5;
border-color: transparent;
background: #e7e9ef;
color: #b9bdc6;
box-shadow: none;
}
@@ -64,39 +63,33 @@
.upload-placeholder {
width: 100%;
height: 320rpx;
background:
radial-gradient(60% 80% at 30% 20%, rgba(255, 217, 61, 0.28), transparent 60%),
radial-gradient(60% 80% at 80% 80%, rgba(0, 217, 160, 0.22), transparent 60%),
rgba(255, 255, 255, 0.34);
backdrop-filter: blur(28rpx) saturate(170%);
-webkit-backdrop-filter: blur(28rpx) saturate(170%);
border: 3rpx dashed rgba(43, 36, 56, 0.20);
border-radius: 56rpx;
background: #ffffff;
border: 3rpx dashed rgba(27, 27, 32, 0.14);
border-radius: 48rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 18rpx;
box-shadow: var(--shadow-soft);
}
.upload-icon {
font-size: 56rpx;
color: #ff2d6e;
background: rgba(255, 255, 255, 0.6);
color: var(--purple);
background: rgba(139, 124, 246, 0.10);
border-radius: 28rpx;
padding: 18rpx;
}
.upload-hint {
font-size: 28rpx;
font-weight: 800;
color: #2b2438;
font-weight: 600;
color: #1b1b20;
}
.upload-sub {
font-size: 22rpx;
color: #a59cb5;
color: #b9bdc6;
}
/* 图片网格 */
@@ -116,7 +109,7 @@
.img-preview {
width: 100%;
height: 100%;
background: #f0eef5;
background: #eef0f5;
}
.img-remove {
@@ -126,15 +119,13 @@
width: 44rpx;
height: 44rpx;
border-radius: 50%;
background: rgba(43, 36, 56, 0.65);
backdrop-filter: blur(12rpx);
-webkit-backdrop-filter: blur(12rpx);
background: rgba(27, 27, 32, 0.65);
color: #fff;
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-weight: 600;
}
.img-uploading {
@@ -149,8 +140,8 @@
.upload-spinner {
width: 40rpx;
height: 40rpx;
border: 4rpx solid rgba(255, 45, 110, 0.2);
border-top-color: #ff2d6e;
border: 4rpx solid rgba(139, 124, 246, 0.2);
border-top-color: var(--purple);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@@ -160,10 +151,8 @@
.image-add {
aspect-ratio: 1;
border-radius: 20rpx;
background: var(--glass);
backdrop-filter: blur(28rpx) saturate(170%);
-webkit-backdrop-filter: blur(28rpx) saturate(170%);
border: 3rpx dashed rgba(43, 36, 56, 0.20);
background: #ffffff;
border: 3rpx dashed rgba(27, 27, 32, 0.14);
display: flex;
align-items: center;
justify-content: center;
@@ -171,42 +160,40 @@
.add-plus {
font-size: 60rpx;
color: #a59cb5;
color: #b9bdc6;
font-weight: 200;
}
/* 文字输入 */
/* 文字输入:白卡 */
.content-input {
width: 100%;
min-height: 160rpx;
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: 24rpx 28rpx;
font-size: 30rpx;
color: #2b2438;
color: #1b1b20;
font-family: "PingFang SC", sans-serif;
line-height: 1.6;
box-shadow: var(--shadow-soft);
margin-bottom: 8rpx;
}
.input-placeholder { color: #c4b8d0; }
.input-placeholder { color: #b9bdc6; }
.word-count {
text-align: right;
font-size: 22rpx;
color: #a59cb5;
color: #b9bdc6;
margin-bottom: 28rpx;
font-variant-numeric: tabular-nums;
}
/* 通用 section */
.section-title {
font-size: 22rpx;
font-weight: 800;
color: #a59cb5;
font-weight: 600;
color: #b9bdc6;
letter-spacing: 0.6rpx;
margin-bottom: 16rpx;
}
@@ -223,35 +210,32 @@
display: flex;
align-items: center;
gap: 10rpx;
background: var(--glass);
backdrop-filter: blur(24rpx) saturate(170%);
-webkit-backdrop-filter: blur(24rpx) saturate(170%);
border: 1rpx solid var(--glass-edge);
background: #ffffff;
border-radius: 999rpx;
padding: 16rpx 26rpx;
font-size: 24rpx;
font-weight: 800;
color: #6e6480;
font-weight: 600;
color: #6e7280;
}
/* 选中:强调黑 */
.tag-selected {
background: #ff2d6e;
border-color: #ff2d6e;
background: #2b2b30;
color: #fff;
box-shadow: 0 14rpx 30rpx rgba(255, 45, 110, 0.32);
box-shadow: 0 12rpx 28rpx rgba(43, 43, 48, 0.24);
}
.tag-remove {
width: 44rpx;
height: 44rpx;
border-radius: 50%;
background: rgba(255, 45, 110, 0.14);
color: #ff2d6e;
background: rgba(139, 124, 246, 0.12);
color: #7563e0;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
font-weight: 700;
font-weight: 600;
}
/* 话题 */
@@ -266,26 +250,21 @@
.hashtag-input {
flex: 1;
height: 72rpx;
background: var(--glass);
backdrop-filter: blur(24rpx) saturate(170%);
-webkit-backdrop-filter: blur(24rpx) saturate(170%);
border: 1rpx solid var(--glass-edge);
background: #ffffff;
border-radius: 999rpx;
padding: 0 24rpx;
font-size: 26rpx;
color: #2b2438;
color: #1b1b20;
}
.hashtag-add-btn {
background: var(--glass);
backdrop-filter: blur(24rpx) saturate(170%);
-webkit-backdrop-filter: blur(24rpx) saturate(170%);
border: 1rpx solid var(--glass-edge);
background: #ffffff;
border-radius: 999rpx;
padding: 14rpx 28rpx;
font-size: 26rpx;
font-weight: 800;
color: #2b2438;
font-weight: 600;
color: #1b1b20;
box-shadow: var(--shadow-soft);
}
.hashtag-chip {
@@ -293,18 +272,17 @@
align-items: center;
gap: 8rpx;
font-size: 24rpx;
font-weight: 800;
color: #8a3fe0;
background: rgba(167, 139, 250, 0.16);
border: 1rpx solid rgba(167, 139, 250, 0.28);
font-weight: 600;
color: #7563e0;
background: rgba(139, 124, 246, 0.12);
border-radius: 999rpx;
padding: 8rpx 16rpx;
}
.chip-remove {
font-size: 26rpx;
color: #8a3fe0;
font-weight: 700;
color: #7563e0;
font-weight: 600;
}
.hot-tags {
@@ -317,14 +295,13 @@
.hot-tags-label {
font-size: 22rpx;
color: #a59cb5;
color: #b9bdc6;
}
.hot-tag {
font-size: 22rpx;
color: #a59cb5;
background: rgba(255, 255, 255, 0.5);
border: 1rpx solid rgba(43, 36, 56, 0.10);
color: #6e7280;
background: #ffffff;
border-radius: 999rpx;
padding: 6rpx 16rpx;
}
@@ -338,15 +315,12 @@
}
.mood-pill {
background: var(--glass);
backdrop-filter: blur(24rpx) saturate(170%);
-webkit-backdrop-filter: blur(24rpx) saturate(170%);
border: 1rpx solid var(--glass-edge);
background: #ffffff;
border-radius: 999rpx;
padding: 16rpx 28rpx;
font-size: 24rpx;
font-weight: 800;
color: #6e6480;
font-weight: 600;
color: #6e7280;
transition: transform 0.18s ease;
}
@@ -354,9 +328,9 @@
transform: scale(0.95);
}
/* 选中:强调黑(与标签选中态一致) */
.mood-on {
background: #ffd400;
border-color: #ffd400;
color: #5b3d00;
box-shadow: 0 14rpx 30rpx rgba(255, 212, 0, 0.36);
background: #2b2b30;
color: #fff;
box-shadow: 0 12rpx 28rpx rgba(43, 43, 48, 0.24);
}