/* 动物列表页面样式 */
.page-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
}

/* 搜索和筛选栏 */
.search-filter-bar {
  display: flex;
  align-items: center;
  padding: 20rpx 24rpx;
  background: #fff;
  border-bottom: 1rpx solid #f0f0f0;
  gap: 16rpx;
}

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

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

.search-input::placeholder {
  color: #999;
}

.search-icon {
  position: absolute;
  right: 16rpx;
  width: 32rpx;
  height: 32rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon image {
  width: 24rpx;
  height: 24rpx;
}

.clear-icon {
  position: absolute;
  right: 48rpx;
  width: 32rpx;
  height: 32rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-icon image {
  width: 20rpx;
  height: 20rpx;
}

.filter-buttons {
  display: flex;
  gap: 8rpx;
}

.filter-btn {
  width: 64rpx;
  height: 64rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 20rpx;
  border: none;
}

.filter-btn image {
  width: 24rpx;
  height: 24rpx;
}

/* 列表滚动区域 */
.animal-list-scroll {
  flex: 1;
  padding: 0 24rpx;
}

.animal-list {
  padding: 20rpx 0;
}

/* 动物项 */
.animal-item {
  background: #fff;
  border-radius: 16rpx;
  padding: 24rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.animal-item:active {
  transform: scale(0.98);
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.12);
}

/* 动物头部 */
.animal-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20rpx;
}

.animal-avatar {
  width: 100rpx;
  height: 100rpx;
  border-radius: 50%;
  margin-right: 20rpx;
  border: 3rpx solid #f0f0f0;
}

.animal-basic-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.animal-name {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 8rpx;
}

.animal-code {
  font-size: 24rpx;
  color: #999;
  margin-bottom: 8rpx;
}

.animal-farm {
  font-size: 24rpx;
  color: #666;
}

.animal-status {
  margin-left: 16rpx;
}

/* 动物详情 */
.animal-details {
  margin-bottom: 20rpx;
}

.detail-row {
  display: flex;
  margin-bottom: 12rpx;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-item {
  flex: 1;
  display: flex;
  align-items: center;
}

.detail-label {
  font-size: 24rpx;
  color: #666;
  margin-right: 12rpx;
  min-width: 60rpx;
}

.detail-value {
  font-size: 26rpx;
  color: #333;
  font-weight: 500;
}

/* 健康信息 */
.health-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
  padding: 16rpx 20rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
}

.health-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.health-label {
  font-size: 22rpx;
  color: #666;
  margin-bottom: 8rpx;
}

.health-value {
  font-size: 24rpx;
  font-weight: 600;
  color: #333;
}

/* 操作按钮 */
.animal-actions {
  display: flex;
  gap: 12rpx;
}

.action-btn {
  flex: 1;
  height: 64rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8rpx;
  font-size: 24rpx;
  font-weight: 500;
  border: none;
  outline: none;
}

.action-btn.secondary {
  background: #f8f9fa;
  color: #666;
  border: 1rpx solid #e9ecef;
}

.action-btn.secondary:active {
  background: #e9ecef;
}

.action-btn.danger {
  background: #fff5f5;
  color: #dc3545;
  border: 1rpx solid #f5c6cb;
}

.action-btn.danger:active {
  background: #f5c6cb;
}

/* 加载更多 */
.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32rpx;
  color: #999;
}

.load-text {
  font-size: 24rpx;
  margin-left: 16rpx;
}

.no-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32rpx;
  color: #ccc;
  font-size: 24rpx;
}

/* 添加按钮 */
.add-btn {
  position: fixed;
  right: 40rpx;
  bottom: 40rpx;
  width: 112rpx;
  height: 112rpx;
  background: #2E8B57;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8rpx 24rpx rgba(46, 139, 87, 0.3);
  z-index: 100;
}

.add-btn:active {
  transform: scale(0.95);
}

.add-btn image {
  width: 48rpx;
  height: 48rpx;
}

/* 状态样式 */
.status {
  display: inline-block;
  padding: 8rpx 16rpx;
  border-radius: 20rpx;
  font-size: 20rpx;
  font-weight: 500;
}

.status-success {
  background: #d4edda;
  color: #155724;
}

.status-warning {
  background: #fff3cd;
  color: #856404;
}

.status-danger {
  background: #f8d7da;
  color: #721c24;
}

.status-info {
  background: #d1ecf1;
  color: #0c5460;
}

/* 工具类 */
.text-success {
  color: #28a745;
}

.text-warning {
  color: #ffc107;
}

.text-danger {
  color: #dc3545;
}

.mt-3 {
  margin-top: 32rpx;
}

/* 响应式适配 */
@media (max-width: 750rpx) {
  .animal-item {
    padding: 20rpx;
  }
  
  .animal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16rpx;
  }
  
  .animal-avatar {
    width: 80rpx;
    height: 80rpx;
    margin-right: 0;
    margin-bottom: 12rpx;
  }
  
  .animal-status {
    margin-left: 0;
  }
  
  .detail-row {
    flex-direction: column;
    gap: 8rpx;
  }
  
  .detail-item {
    justify-content: space-between;
  }
  
  .health-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12rpx;
  }
  
  .health-item {
    flex-direction: row;
    align-items: center;
    gap: 12rpx;
  }
  
  .health-label {
    margin-bottom: 0;
  }
}