/* pages/device/collar/collar.wxss - 智能项圈样式 */
.page-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 20rpx;
}

/* 搜索栏 */
.search-bar {
  display: flex;
  gap: 20rpx;
  margin-bottom: 20rpx;
  background-color: #ffffff;
  padding: 20rpx;
  border-radius: 12rpx;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 8rpx;
  padding: 0 20rpx;
}

.search-input {
  flex: 1;
  height: 64rpx;
  font-size: 28rpx;
}

.search-clear {
  width: 32rpx;
  height: 32rpx;
  border-radius: 50%;
  background-color: #cccccc;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20rpx;
}

.search-btn {
  width: 120rpx;
  height: 64rpx;
  line-height: 64rpx;
  background-color: #52c41a;
  color: #ffffff;
  font-size: 28rpx;
  border-radius: 8rpx;
  padding: 0;
  border: none;
}

.search-btn::after {
  border: none;
}

/* 数据统计 */
.data-stats {
  display: flex;
  justify-content: space-between;
  padding: 20rpx;
  background-color: #ffffff;
  border-radius: 12rpx;
  margin-bottom: 20rpx;
}

.stats-text {
  font-size: 26rpx;
  color: #666666;
}

/* 数据列表 */
.data-list {
  margin-bottom: 20rpx;
}

.list-item {
  background-color: #ffffff;
  border-radius: 12rpx;
  padding: 24rpx;
  margin-bottom: 20rpx;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16rpx;
  padding-bottom: 16rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

.item-number {
  font-size: 32rpx;
  font-weight: bold;
  color: #333333;
}

.item-status {
  padding: 8rpx 20rpx;
  border-radius: 20rpx;
  font-size: 24rpx;
}

.status-online {
  background-color: #e8f9f0;
  color: #52c41a;
}

.status-offline {
  background-color: #fff1f0;
  color: #ff4d4f;
}

.item-content {
  display: flex;
  flex-direction: column;
  gap: 12rpx;
}

.item-row {
  display: flex;
  font-size: 28rpx;
}

.item-label {
  color: #999999;
  min-width: 160rpx;
}

.item-value {
  color: #333333;
  flex: 1;
}

/* 空状态 */
.empty-state {
  padding: 120rpx 0;
  text-align: center;
}

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

/* 加载状态 */
.loading-state {
  padding: 80rpx 0;
  text-align: center;
}

.loading-text {
  font-size: 28rpx;
  color: #999999;
}

/* 分页器 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16rpx;
  padding: 20rpx;
  background-color: #ffffff;
  border-radius: 12rpx;
  margin-bottom: 40rpx;
}

.page-btn {
  padding: 12rpx 24rpx;
  background-color: #f5f5f5;
  border-radius: 8rpx;
  font-size: 26rpx;
  color: #333333;
}

.page-btn.disabled {
  opacity: 0.4;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 8rpx;
}

.page-number {
  min-width: 56rpx;
  height: 56rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 8rpx;
  font-size: 26rpx;
  color: #333333;
}

.page-number.active {
  background-color: #52c41a;
  color: #ffffff;
  font-weight: bold;
}

.page-ellipsis {
  padding: 0 8rpx;
  font-size: 26rpx;
  color: #999999;
}
