/* pages/cattle/exit/exit.wxss */
.page-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 20rpx;
  padding-bottom: 140rpx;
}

/* 搜索栏 */
.search-bar {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 20rpx;
  margin-bottom: 20rpx;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.search-input {
  flex: 1;
  height: 60rpx;
  padding: 0 20rpx;
  background-color: #f5f5f5;
  border-radius: 8rpx;
  font-size: 28rpx;
}

.search-btn {
  width: 120rpx;
  height: 60rpx;
  line-height: 60rpx;
  padding: 0;
  margin-left: 20rpx;
  background-color: #07c160;
  color: #fff;
  font-size: 28rpx;
  border-radius: 8rpx;
  border: none;
}

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

.clear-btn {
  width: 100rpx;
  height: 60rpx;
  line-height: 60rpx;
  padding: 0;
  margin-left: 20rpx;
  background-color: #fa5151;
  color: #fff;
  font-size: 28rpx;
  border-radius: 8rpx;
  border: none;
}

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

/* 加载状态 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400rpx;
  color: #999;
  font-size: 28rpx;
}

/* 离栏记录列表 */
.exit-list {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

/* 离栏记录卡片 */
.exit-card {
  background-color: #fff;
  border-radius: 12rpx;
  overflow: hidden;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

/* 卡片头部 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24rpx;
  background-color: #fff;
  border-bottom: 1rpx solid #f0f0f0;
}

.record-id {
  font-size: 32rpx;
  font-weight: bold;
  color: #07c160;
}

.edit-btn {
  padding: 8rpx 24rpx;
  background-color: #07c160;
  color: #fff;
  border: none;
  border-radius: 20rpx;
  font-size: 24rpx;
}

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

/* 卡片主体 */
.card-body {
  padding: 24rpx;
}

.info-row {
  display: flex;
  align-items: flex-start;
  padding: 12rpx 0;
  font-size: 28rpx;
}

.info-row .label {
  color: #666;
  min-width: 180rpx;
  flex-shrink: 0;
}

.info-row .value {
  color: #333;
  flex: 1;
  word-break: break-all;
}

/* 卡片底部 */
.card-footer {
  padding: 16rpx 24rpx;
  background-color: #f8f9fa;
  text-align: center;
  border-top: 1rpx solid #f0f0f0;
}

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

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

.empty-icon {
  font-size: 120rpx;
  margin-bottom: 30rpx;
  opacity: 0.3;
}

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

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30rpx 0;
  padding: 20rpx;
  background-color: #fff;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.page-btn {
  width: 150rpx;
  height: 60rpx;
  line-height: 60rpx;
  padding: 0;
  margin: 0 10rpx;
  background-color: #07c160;
  color: #fff;
  font-size: 26rpx;
  border-radius: 8rpx;
  border: none;
}

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

.page-btn[disabled] {
  background-color: #e0e0e0;
  color: #999;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10rpx;
  margin: 0 20rpx;
  max-width: 400rpx;
  justify-content: center;
}

.page-number {
  width: 60rpx;
  height: 60rpx;
  line-height: 60rpx;
  text-align: center;
  font-size: 26rpx;
  color: #333;
  background-color: #f5f5f5;
  border-radius: 8rpx;
  transition: all 0.3s;
}

.page-number.active {
  background-color: #07c160;
  color: #fff;
  font-weight: bold;
  transform: scale(1.1);
  box-shadow: 0 4rpx 12rpx rgba(7, 193, 96, 0.3);
}

/* 转栏登记按钮 */
.add-btn {
  position: fixed;
  bottom: 30rpx;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 80rpx;
  line-height: 80rpx;
  text-align: center;
  background-color: #07c160;
  color: #fff;
  font-size: 32rpx;
  font-weight: bold;
  border-radius: 12rpx;
  box-shadow: 0 4rpx 12rpx rgba(7, 193, 96, 0.3);
}
