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.
|
|
/* pages/experience/experience.wxss */
.page-container { background-color: #f5f7fa; min-height: 100vh; } /* 搜索区域 */ .search-container { background: linear-gradient(135deg, #4A90E2 0%, #6AC5F8 100%); padding: 20rpx 32rpx 32rpx; } .search-box { background-color: white; border-radius: 50rpx; padding: 20rpx 32rpx; display: flex; align-items: center; box-shadow: 0 4rpx 16rpx rgba(74, 144, 226, 0.2); } .search-icon { width: 32rpx; height: 32rpx; margin-right: 16rpx; } .search-input { width: 95%; font-size: 28rpx; color: #333; } .placeholder { color: #999; font-size: 28rpx; } .clear-btn { width: 32rpx; height: 32rpx; display: flex; align-items: center; justify-content: center; } .clear-icon { width: 30rpx; height: 30rpx; filter: brightness(0) contrast(100%); } /* 分类区域 */ .category-container { background-color: white; padding: 20rpx 32rpx; white-space: nowrap; box-sizing: border-box; } .category-list { display: inline-flex; } .category-item { display: inline-flex; align-items: center; padding: 12rpx 28rpx; margin-right: 20rpx; border-radius: 40rpx; background-color: #f5f7fa; border: 2rpx solid #f5f7fa; transition: all 0.3s ease; } .category-item.active { background-color: #E8F3FF; border-color: #4A90E2; } .category-text { font-size: 26rpx; color: #666; font-weight: 400; } .category-item.active .category-text { color: #4A90E2; font-weight: 500; }
.category-item.active .category-count { background-color: rgba(74, 144, 226, 0.1); color: #4A90E2; } /* 经验列表 */ .experience-list { padding: 32rpx; } .experience-item { background-color: white; border-radius: 20rpx; padding: 32rpx; margin-bottom: 24rpx; box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.04); transition: all 0.3s ease; } .experience-item:active { transform: translateY(-2rpx); box-shadow: 0 6rpx 24rpx rgba(0, 0, 0, 0.08); }
.tag{ display: flex; align-items: center; justify-content: space-between; padding-bottom: 20rpx; } .item-category-tag { display: inline-block; background-color: #E8F3FF; padding: 6rpx 16rpx; border-radius: 20rpx; } .tag-text { font-size: 22rpx; color: #4A90E2; font-weight: 500; } .item-title { font-size: 34rpx; color: #1a1a1a; font-weight: 600; line-height: 1.4; margin-bottom: 16rpx; } .item-summary { font-size: 28rpx; color: #666; line-height: 1.5; margin-bottom: 24rpx; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .item-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20rpx; border-top: 1rpx solid #f0f0f0; } .author-info { display: flex; align-items: center; flex: 1; } .author-avatar { width: 48rpx; height: 48rpx; border-radius: 50%; margin-right: 12rpx; } .author-name { font-size: 24rpx; color: #999; } .view-info { display: flex; align-items: center; margin-right: 32rpx; } .view-icon { width: 28rpx; height: 28rpx; margin-right: 8rpx; opacity: 0.6; } .view-count { font-size: 24rpx; color: #999; } .publish-time { font-size: 24rpx; color: #ccc; flex-shrink: 0; } /* 空状态 */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100rpx 0; }
.empty-text { font-size: 32rpx; color: #999; margin-bottom: 16rpx; } .empty-hint { font-size: 26rpx; color: #ccc; }
/* 新增样式 */
.experience-scroll { box-sizing: border-box;}
/* 加载更多样式 */.load-more { text-align: center; padding: 40rpx 0; color: #4A90E2; font-size: 28rpx;}
.load-more-text { padding: 16rpx 32rpx; background-color: #E8F3FF; border-radius: 24rpx; display: inline-block;}
.loading { text-align: center; padding: 40rpx 0; color: #999; font-size: 28rpx;}
.loading-text { display: inline-block; padding: 16rpx 32rpx;}
.no-more { text-align: center; padding: 40rpx 0; color: #ccc; font-size: 26rpx;}
.no-more-text { display: inline-block; padding: 16rpx 32rpx;}
/* 优化空状态样式 */.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120rpx 0; text-align: center;}
.empty-text { font-size: 32rpx; color: #999; margin-bottom: 20rpx; font-weight: 500;}
.empty-hint { font-size: 28rpx; color: #ccc;}
/* 优化列表项样式 */.experience-item { position: relative; overflow: hidden;}
.experience-item:last-child { margin-bottom: 0;}
/* 响应式调整 */@media (max-width: 375px) { .load-more, .loading, .no-more { padding: 30rpx 0; } .empty-state { padding: 80rpx 0; }} /* 响应式调整 */ @media (max-width: 375px) { .search-container { padding: 16rpx 24rpx 24rpx; } .experience-list { padding: 24rpx; } .experience-item { padding: 24rpx; } }
|