:host{display:flex;flex-direction:column} /** * 优艺家沙发翻新 - 全局样式变量 */ /* ========== 项目主题色 ========== */ /* 辅助色 */ /* 文字颜色 */ /* 背景色 */ /* 边框颜色 */ /* 间距 */ /* 圆角 */ /* 阴影 */ /* ========== uni-app 内置变量 ========== */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ .case-card { background-color: #ffffff; border-radius: 16rpx; overflow: hidden; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08); margin-bottom: 24rpx; } .card-image-wrapper { position: relative; width: 100%; height: 360rpx; } .card-image { width: 100%; height: 100%; } .card-category { position: absolute; top: 16rpx; left: 16rpx; background-color: rgba(212, 165, 116, 0.9); color: #ffffff; font-size: 22rpx; padding: 8rpx 16rpx; border-radius: 8rpx; } .card-content { padding: 24rpx; } .card-title { font-size: 32rpx; font-weight: 600; color: #333333; margin-bottom: 16rpx; lines: 1; text-overflow: ellipsis; } .card-info { margin-bottom: 16rpx; } .info-item { flex-direction: row; margin-bottom: 8rpx; } .info-label { font-size: 26rpx; color: #909399; } .info-value { font-size: 26rpx; color: #606266; } .card-footer { flex-direction: row; justify-content: space-between; align-items: center; margin-top: 16rpx; padding-top: 16rpx; border-top-width: 1rpx; border-top-style: solid; border-top-color: #EBEEF5; } .card-price { font-size: 36rpx; font-weight: 600; color: #D4A574; } .card-stats { flex-direction: row; } .stat-item { font-size: 24rpx; color: #909399; margin-left: 24rpx; }