/* pages/business/loan-products/loan-products.wxss */
.loan-products-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 100rpx;
}

/* 搜索栏 */
.search-bar {
  padding: 20rpx 30rpx;
  background-color: #fff;
  border-bottom: 1rpx solid #eee;
}

.search-input {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 25rpx;
  padding: 0 20rpx;
  height: 70rpx;
}

.search-icon {
  font-size: 28rpx;
  color: #999;
  margin-right: 15rpx;
}

.search-input input {
  flex: 1;
  font-size: 28rpx;
  color: #333;
}

/* 筛选栏 */
.filter-bar {
  background-color: #fff;
  border-bottom: 1rpx solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20rpx 30rpx;
}

.filter-item {
  display: flex;
  align-items: center;
  font-size: 28rpx;
  color: #333;
  flex: 1;
}

.action-buttons {
  margin-left: 20rpx;
}

.add-btn {
  background-color: #1890ff;
  color: #fff;
  border: none;
  border-radius: 25rpx;
  padding: 12rpx 24rpx;
  font-size: 24rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120rpx;
}

.add-btn:active {
  background-color: #40a9ff;
}

.btn-icon {
  margin-right: 8rpx;
  font-size: 20rpx;
}

.btn-text {
  font-size: 24rpx;
}

.filter-value {
  color: #1890ff;
}

.arrow {
  font-size: 24rpx;
  color: #999;
}

/* 商品列表 */
.product-list {
  padding: 20rpx 30rpx;
}

.product-item {
  background-color: #fff;
  margin-bottom: 20rpx;
  padding: 30rpx;
  border-radius: 8rpx;
  box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.1);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.product-name {
  font-size: 32rpx;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.product-status {
  padding: 8rpx 16rpx;
  border-radius: 20rpx;
  font-size: 24rpx;
  color: #fff;
}

.product-status.active {
  background-color: #52c41a;
}

.product-status.inactive {
  background-color: #faad14;
}

.product-info {
  margin-bottom: 20rpx;
}

.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 10rpx;
  font-size: 26rpx;
}

.info-label {
  color: #666;
  min-width: 140rpx;
}

.info-value {
  color: #333;
  flex: 1;
}

.product-desc {
  padding-top: 20rpx;
  border-top: 1rpx solid #f0f0f0;
}

.desc-text {
  font-size: 24rpx;
  color: #666;
  line-height: 1.4;
}

/* 商品操作按钮 */
.product-actions {
  display: flex;
  gap: 20rpx;
  margin-top: 20rpx;
  padding: 20rpx 0;
  border-top: 1rpx solid #f0f0f0;
  position: relative;
  z-index: 5;
}

.action-btn {
  flex: 1;
  height: 80rpx;
  border-radius: 8rpx;
  font-size: 26rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  position: relative;
  z-index: 10;
  margin: 0 10rpx;
  min-width: 120rpx;
}

.edit-btn {
  background-color: #1890ff;
  color: #fff;
}

.edit-btn:active {
  background-color: #40a9ff;
}

.delete-btn {
  background-color: #ff4d4f;
  color: #fff;
}

.delete-btn:active {
  background-color: #ff7875;
}

/* 加载状态 */
.loading {
  text-align: center;
  padding: 60rpx 0;
  color: #999;
  font-size: 28rpx;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100rpx 0;
}

.empty-icon {
  font-size: 80rpx;
  margin-bottom: 20rpx;
}

.empty-text {
  font-size: 28rpx;
  color: #999;
}
