| | |
| | | position: sticky; |
| | | /* 使用sticky定位 */ |
| | | top: 0; |
| | | z-index: 9999; |
| | | z-index: 999; |
| | | background-color: #fff; |
| | | /* 确保背景色 */ |
| | | /* 减小tabs高度 */ |
| | |
| | | filter: brightness(0) invert(1); |
| | | } |
| | | |
| | | /* 视频播放器容器 */ |
| | | /* 视频播放器容器 */ |
| | | .video-wrapper { |
| | | width: 100%; |
| | | height: 100%; |
| | | height: 400rpx; |
| | | } |
| | | |
| | | .video-wrapper-ezplayer { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | transform: scale(0.98); |
| | | } |
| | | |
| | | /* 水肥机数据项样式 */ |
| | | /* 注肥泵状态行样式 */ |
| | | .monitoring-data .data-item.pump-status { |
| | | border-left-color: #1890ff; |
| | | background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%); |
| | | } |
| | | |
| | | /* 注肥泵状态行 - 重新设计为两模块布局 */ |
| | | .fertilizer-info-card .monitoring-data .data-grid .data-item.pump-status { |
| | | display: flex !important; |
| | | align-items: center !important; |
| | | justify-content: space-between !important; |
| | | padding: 20rpx !important; |
| | | gap: 16rpx !important; |
| | | } |
| | | |
| | | /* 左侧模块:图标+标签+状态值 */ |
| | | .fertilizer-info-card .monitoring-data .data-grid .data-item.pump-status .data-content { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: flex-start; |
| | | align-items: flex-start; |
| | | flex: 1; |
| | | /* 关闭 gap,改用 margin 控制,兼容性更好 */ |
| | | gap: 0 !important; |
| | | min-width: 0; |
| | | } |
| | | |
| | | /* 只作用于注肥泵状态行:用 margin 控制 label 与 value 的间距,避免 gap 兼容性问题 */ |
| | | .fertilizer-info-card .monitoring-data .data-grid .data-item.pump-status.custom-pump-row .data-label { |
| | | display: block !important; |
| | | margin-bottom: 0 !important; |
| | | line-height: 1 !important; |
| | | } |
| | | .fertilizer-info-card .monitoring-data .data-grid .data-item.pump-status.custom-pump-row .data-value { |
| | | display: block !important; |
| | | margin-top: -10rpx !important; |
| | | line-height: 1 !important; |
| | | } |
| | | |
| | | /* 左侧模块中的状态值样式 */ |
| | | .fertilizer-info-card .monitoring-data .data-grid .data-item.pump-status .data-value { |
| | | font-size: 36rpx !important; |
| | | font-weight: 700 !important; |
| | | line-height: 1.2 !important; |
| | | margin: 0 !important; |
| | | } |
| | | |
| | | /* 状态值样式 */ |
| | | .data-value.normal { |
| | | color: #52c41a; |
| | | } |
| | | |
| | | .data-value.alarm { |
| | | color: #ff4d4f; |
| | | } |
| | | |
| | | /* 右侧模块:清除报警按钮 - 独立模块在右边居中 */ |
| | | .fertilizer-info-card .monitoring-data .data-grid .data-item.pump-status .clear-fault-btn { |
| | | background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%) !important; |
| | | color: white !important; |
| | | border: none !important; |
| | | border-radius: 20rpx !important; |
| | | padding: 12rpx 20rpx !important; |
| | | font-size: 24rpx !important; |
| | | font-weight: 500 !important; |
| | | box-shadow: 0 4rpx 12rpx rgba(255, 77, 79, 0.3) !important; |
| | | transition: all 0.3s ease !important; |
| | | white-space: nowrap !important; |
| | | line-height: 1.2 !important; |
| | | height: 50rpx !important; |
| | | min-height: 44rpx !important; |
| | | display: flex !important; |
| | | align-items: center !important; |
| | | justify-content: center !important; |
| | | flex-shrink: 0 !important; |
| | | margin: 0 !important; |
| | | align-self: center !important; |
| | | } |
| | | |
| | | /* 清除故障按钮激活状态 - 只针对注肥泵状态行 */ |
| | | .fertilizer-info-card .monitoring-data .data-grid .data-item.pump-status .clear-fault-btn:active { |
| | | transform: scale(0.95) !important; |
| | | box-shadow: 0 1rpx 4rpx rgba(255, 77, 79, 0.4) !important; |
| | | } |
| | | |
| | | .monitoring-data .data-item.waste-flow { |
| | |
| | | width: 32rpx; |
| | | height: 32rpx; |
| | | } |
| | | } |
| | | |
| | | /* 分页组件样式 */ |
| | | .pagination { |
| | | margin: 32rpx 24rpx; |
| | | padding: 24rpx; |
| | | background: #fff; |
| | | border-radius: 16rpx; |
| | | box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08); |
| | | } |
| | | |
| | | .pagination-info { |
| | | text-align: center; |
| | | margin-bottom: 24rpx; |
| | | } |
| | | |
| | | .pagination-text { |
| | | font-size: 28rpx; |
| | | color: #666; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | .pagination-controls { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | gap: 24rpx; |
| | | } |
| | | |
| | | .pagination-btn { |
| | | min-width: 120rpx; |
| | | height: 72rpx; |
| | | border: none; |
| | | border-radius: 36rpx; |
| | | background: linear-gradient(135deg, #0052d9 0%, #1890ff 100%); |
| | | color: #fff; |
| | | font-size: 28rpx; |
| | | font-weight: 500; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | transition: all 0.3s ease; |
| | | box-shadow: 0 4rpx 12rpx rgba(0, 82, 217, 0.3); |
| | | } |
| | | |
| | | .pagination-btn:active { |
| | | transform: translateY(2rpx); |
| | | box-shadow: 0 2rpx 8rpx rgba(0, 82, 217, 0.4); |
| | | } |
| | | |
| | | .pagination-btn.prev-btn { |
| | | background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%); |
| | | box-shadow: 0 4rpx 12rpx rgba(82, 196, 26, 0.3); |
| | | } |
| | | |
| | | .pagination-btn.prev-btn:active { |
| | | box-shadow: 0 2rpx 8rpx rgba(82, 196, 26, 0.4); |
| | | } |
| | | |
| | | .pagination-btn.next-btn { |
| | | background: linear-gradient(135deg, #fa8c16 0%, #ffa940 100%); |
| | | box-shadow: 0 4rpx 12rpx rgba(250, 140, 22, 0.3); |
| | | } |
| | | |
| | | .pagination-btn.next-btn:active { |
| | | box-shadow: 0 2rpx 8rpx rgba(250, 140, 22, 0.4); |
| | | } |
| | | |
| | | /* 占位隐藏样式 */ |
| | | .pagination-btn.hidden { |
| | | opacity: 0.3; |
| | | background: #ccc !important; |
| | | box-shadow: none !important; |
| | | cursor: not-allowed; |
| | | pointer-events: none; |
| | | } |
| | | |
| | | .pagination-btn.hidden .btn-text { |
| | | color: #999; |
| | | } |
| | | |
| | | /* 禁用状态样式 */ |
| | | .pagination-btn:disabled { |
| | | opacity: 0.3; |
| | | background: #ccc !important; |
| | | box-shadow: none !important; |
| | | cursor: not-allowed; |
| | | pointer-events: none; |
| | | } |
| | | |
| | | .pagination-btn:disabled .btn-text { |
| | | color: #999; |
| | | } |
| | | |
| | | .btn-text { |
| | | color: #fff; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | .page-info { |
| | | display: flex; |
| | | align-items: center; |
| | | gap: 8rpx; |
| | | padding: 16rpx 24rpx; |
| | | background: #f8f9fa; |
| | | border-radius: 24rpx; |
| | | border: 2rpx solid #e9ecef; |
| | | } |
| | | |
| | | .page-number { |
| | | font-size: 32rpx; |
| | | color: #0052d9; |
| | | font-weight: 700; |
| | | } |
| | | |
| | | .page-separator { |
| | | font-size: 24rpx; |
| | | color: #999; |
| | | font-weight: 400; |
| | | } |
| | | |
| | | .total-pages { |
| | | font-size: 28rpx; |
| | | color: #666; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | /* 分页组件响应式优化 */ |
| | | @media (max-width: 400px) { |
| | | .pagination { |
| | | margin: 24rpx 16rpx; |
| | | padding: 20rpx; |
| | | } |
| | | |
| | | .pagination-controls { |
| | | gap: 20rpx; |
| | | } |
| | | |
| | | .pagination-btn { |
| | | min-width: 100rpx; |
| | | height: 64rpx; |
| | | font-size: 26rpx; |
| | | } |
| | | |
| | | .page-info { |
| | | padding: 12rpx 20rpx; |
| | | } |
| | | |
| | | .page-number { |
| | | font-size: 28rpx; |
| | | } |
| | | |
| | | .total-pages { |
| | | font-size: 26rpx; |
| | | } |
| | | } |