.publish-container { padding: 30rpx; background-color: #f7f7f7; min-height: 100vh; } .form-item { margin-bottom: 30rpx; background-color: #ffffff; border-radius: 12rpx; padding: 20rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05); position: relative; } .form-label { display: block; font-size: 28rpx; color: #333333; margin-bottom: 15rpx; font-weight: bold; } /* 图片上传区域 */ .image-uploader { display: flex; flex-wrap: wrap; } .image-item, .upload-btn { width: 180rpx; height: 180rpx; margin-right: 20rpx; margin-bottom: 20rpx; position: relative; } .uploaded-image { width: 100%; height: 100%; border-radius: 8rpx; } .delete-btn { position: absolute; top: -20rpx; right: -20rpx; width: 40rpx; height: 40rpx; border-radius: 50%; background-color: rgba(0, 0, 0, 0.6); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 24rpx; } .upload-btn { border: 1rpx dashed #cccccc; border-radius: 8rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; } .upload-icon { font-size: 60rpx; color: #cccccc; line-height: 1; } .upload-text { margin-top: 10rpx; font-size: 24rpx; color: #999999; } /* 分类选择器 */ .category-selector, .condition-selector, .trade-selector { display: flex; flex-wrap: wrap; } .category-item, .condition-item, .trade-item { padding: 10rpx 20rpx; margin: 0 20rpx 20rpx 0; border-radius: 8rpx; font-size: 28rpx; background-color: #f2f2f2; color: #666666; } .category-item.active, .condition-item.active, .trade-item.active { background-color: #3A86FF; color: #ffffff; } /* 输入框样式 */ .form-input { width: 100%; height: 80rpx; border: 1rpx solid #eeeeee; border-radius: 8rpx; padding: 0 20rpx; font-size: 28rpx; color: #333333; box-sizing: border-box; } .char-count { position: absolute; right: 20rpx; bottom: 20rpx; font-size: 24rpx; color: #999999; } .price-input-container { display: flex; align-items: center; border: 1rpx solid #eeeeee; border-radius: 8rpx; padding: 0 20rpx; height: 80rpx; } .price-prefix { font-size: 32rpx; color: #FF5252; margin-right: 10rpx; font-weight: bold; } .price-input { flex: 1; height: 80rpx; font-size: 28rpx; color: #333333; } .form-textarea { width: 100%; height: 200rpx; border: 1rpx solid #eeeeee; border-radius: 8rpx; padding: 20rpx; font-size: 28rpx; color: #333333; box-sizing: border-box; } /* 按钮区域 */ .btn-container { display: flex; justify-content: space-between; margin-top: 60rpx; } .cancel-btn, .publish-btn { width: 45%; height: 88rpx; line-height: 88rpx; text-align: center; border-radius: 44rpx; font-size: 32rpx; } .cancel-btn { background-color: #f2f2f2; color: #666666; } .publish-btn { background-color: #3A86FF; color: #ffffff; }