195 lines
3.1 KiB
Plaintext
195 lines
3.1 KiB
Plaintext
/* ── 帖子卡片:纯白实底、大圆角、中性柔和阴影(Vital 风格) ── */
|
|
.post-card {
|
|
margin: 0 28rpx 32rpx;
|
|
background: #ffffff;
|
|
border-radius: 48rpx;
|
|
overflow: hidden;
|
|
box-shadow: 0 16rpx 48rpx rgba(27, 27, 32, 0.06);
|
|
}
|
|
|
|
/* 头部 */
|
|
.post-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
padding: 24rpx 24rpx 18rpx;
|
|
}
|
|
|
|
.post-avatar {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
border-radius: 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 32rpx;
|
|
font-weight: 700;
|
|
color: rgba(27, 27, 32, 0.65);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.post-meta {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.post-username {
|
|
display: block;
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: #1b1b20;
|
|
}
|
|
|
|
.post-loc {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4rpx;
|
|
margin-top: 4rpx;
|
|
}
|
|
|
|
.loc-icon { font-size: 20rpx; }
|
|
|
|
.loc-text {
|
|
font-size: 22rpx;
|
|
color: #b9bdc6;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.post-time {
|
|
font-size: 22rpx;
|
|
color: #b9bdc6;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 图片区 */
|
|
.post-img-single {
|
|
position: relative;
|
|
}
|
|
|
|
.img-single {
|
|
width: 100%;
|
|
height: 360rpx;
|
|
display: block;
|
|
background: #eef0f5;
|
|
}
|
|
|
|
/* 心情标签:白色小胶囊,不旋转 */
|
|
.post-tag-chip {
|
|
position: absolute;
|
|
top: 22rpx;
|
|
left: 22rpx;
|
|
background: #ffffff;
|
|
color: #1b1b20;
|
|
font-size: 21rpx;
|
|
font-weight: 600;
|
|
padding: 10rpx 22rpx;
|
|
border-radius: 999rpx;
|
|
box-shadow: 0 10rpx 26rpx rgba(27, 27, 32, 0.12);
|
|
}
|
|
|
|
.post-img-grid {
|
|
display: grid;
|
|
gap: 4rpx;
|
|
}
|
|
|
|
.post-img-grid-2 {
|
|
grid-template-columns: 1fr 1fr;
|
|
height: 300rpx;
|
|
}
|
|
|
|
.post-img-grid-3 {
|
|
grid-template-columns: 2fr 1fr;
|
|
grid-template-rows: 1fr 1fr;
|
|
height: 320rpx;
|
|
}
|
|
|
|
.post-img-grid-3 .img-grid-item:first-child {
|
|
grid-row: 1 / 3;
|
|
}
|
|
|
|
.post-img-grid-multi {
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
height: 320rpx;
|
|
}
|
|
|
|
.img-grid-item {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #eef0f5;
|
|
}
|
|
|
|
/* 正文区 */
|
|
.post-body {
|
|
padding: 20rpx 24rpx 24rpx;
|
|
}
|
|
|
|
.post-caption {
|
|
display: block;
|
|
font-size: 28rpx;
|
|
color: #1b1b20;
|
|
line-height: 1.6;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.post-tags {
|
|
display: flex;
|
|
gap: 10rpx;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.hashtag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
color: #7563e0;
|
|
background: rgba(139, 124, 246, 0.12);
|
|
border-radius: 999rpx;
|
|
padding: 6rpx 14rpx;
|
|
}
|
|
|
|
/* 操作栏 */
|
|
.post-actions {
|
|
display: flex;
|
|
gap: 14rpx;
|
|
padding-top: 20rpx;
|
|
border-top: 1rpx solid rgba(27, 27, 32, 0.06);
|
|
}
|
|
|
|
.action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: #6e7280;
|
|
background: #f1f2f6;
|
|
border-radius: 999rpx;
|
|
padding: 12rpx 22rpx;
|
|
transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
|
|
}
|
|
|
|
.action-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* 已赞:强调黑胶囊(动作强调不用主题色) */
|
|
.action-btn.liked {
|
|
color: #fff;
|
|
background: #2b2b30;
|
|
box-shadow: 0 10rpx 24rpx rgba(43, 43, 48, 0.24);
|
|
}
|
|
|
|
.action-icon {
|
|
font-size: 28rpx;
|
|
line-height: 1;
|
|
}
|
|
|
|
.action-count {
|
|
font-size: 24rpx;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|