/* 养殖场详情页面样式 */
.page-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
}

/* 养殖场头部 */
.farm-header {
  position: relative;
  height: 400rpx;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.header-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32rpx 24rpx;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
}

.farm-basic-info {
  flex: 1;
}

.farm-name {
  display: block;
  font-size: 40rpx;
  font-weight: 700;
  margin-bottom: 8rpx;
  text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.5);
}

.farm-code {
  display: block;
  font-size: 24rpx;
  opacity: 0.9;
  margin-bottom: 16rpx;
}

.farm-status-row {
  display: flex;
  align-items: center;
  gap: 16rpx;
}

.farm-type {
  font-size: 24rpx;
  opacity: 0.9;
}

.header-actions {
  display: flex;
  gap: 12rpx;
}

.action-btn {
  width: 72rpx;
  height: 72rpx;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  backdrop-filter: blur(10rpx);
}

.action-btn image {
  width: 32rpx;
  height: 32rpx;
}

/* 标签栏 */
.tab-bar {
  display: flex;
  background: #fff;
  border-bottom: 1rpx solid #f0f0f0;
}

.tab-item {
  flex: 1;
  height: 88rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28rpx;
  color: #666;
  position: relative;
  transition: all 0.3s ease;
}

.tab-item.active {
  color: #2E8B57;
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60rpx;
  height: 4rpx;
  background: #2E8B57;
  border-radius: 2rpx;
}

/* 内容滚动区域 */
.content-scroll {
  flex: 1;
  padding: 0 24rpx;
}

.tab-content {
  padding: 20rpx 0;
}

/* 信息卡片 */
.info-card,
.weather-card,
.address-card,
.contact-card {
  background: #fff;
  border-radius: 16rpx;
  padding: 24rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}

.card-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 24rpx;
}

/* 基本信息网格 */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24rpx;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
}

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

.info-value {
  font-size: 28rpx;
  font-weight: 600;
  color: #333;
}

/* 天气卡片 */
.weather-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16rpx;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 16rpx;
}

.temperature {
  font-size: 48rpx;
  font-weight: 700;
  color: #2E8B57;
}

.weather-desc {
  font-size: 28rpx;
  color: #333;
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 8rpx;
}

.weather-item {
  display: flex;
  align-items: center;
  gap: 12rpx;
}

.weather-label {
  font-size: 24rpx;
  color: #666;
  min-width: 60rpx;
}

.weather-value {
  font-size: 24rpx;
  color: #333;
  font-weight: 500;
}

.weather-update {
  font-size: 20rpx;
  color: #999;
}

/* 地址卡片 */
.address-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.address-text {
  flex: 1;
  font-size: 26rpx;
  color: #333;
  line-height: 1.5;
  margin-right: 16rpx;
}

.location-btn {
  display: flex;
  align-items: center;
  gap: 8rpx;
  padding: 16rpx 20rpx;
  background: #f0f8f0;
  color: #2E8B57;
  border-radius: 8rpx;
  font-size: 24rpx;
  border: none;
}

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

/* 联系卡片 */
.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-phone {
  flex: 1;
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
  margin-right: 16rpx;
}

.call-btn {
  display: flex;
  align-items: center;
  gap: 8rpx;
  padding: 16rpx 20rpx;
  background: #e8f5e8;
  color: #2E8B57;
  border-radius: 8rpx;
  font-size: 24rpx;
  border: none;
}

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

/* 动物列表 */
.animals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.section-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
}

.animals-actions {
  display: flex;
  gap: 12rpx;
}

.btn-small {
  padding: 12rpx 20rpx;
  font-size: 24rpx;
  border-radius: 8rpx;
  border: none;
}

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

.btn-primary {
  background: #2E8B57;
  color: #fff;
}

.animals-list {
  background: #fff;
  border-radius: 16rpx;
  overflow: hidden;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}

.animal-item {
  display: flex;
  align-items: center;
  padding: 20rpx 24rpx;
  border-bottom: 1rpx solid #f0f0f0;
  transition: all 0.3s ease;
}

.animal-item:last-child {
  border-bottom: none;
}

.animal-item:active {
  background: #f8f9fa;
}

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

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

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

.animal-breed {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 4rpx;
}

.animal-age {
  font-size: 22rpx;
  color: #999;
}

.animal-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.animal-weight {
  font-size: 24rpx;
  color: #666;
  margin-top: 8rpx;
}

/* 统计概览 */
.stats-overview {
  background: #fff;
  border-radius: 16rpx;
  padding: 24rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24rpx;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
}

.stat-number {
  font-size: 32rpx;
  font-weight: 700;
  color: #2E8B57;
  margin-bottom: 8rpx;
}

.stat-label {
  font-size: 24rpx;
  color: #666;
}

/* 品种分布 */
.breed-distribution {
  background: #fff;
  border-radius: 16rpx;
  padding: 24rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}

.breed-list {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

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

.breed-name {
  font-size: 26rpx;
  font-weight: 500;
  color: #333;
}

.breed-progress {
  display: flex;
  align-items: center;
  gap: 16rpx;
}

.progress-bar {
  flex: 1;
  height: 12rpx;
  background: #f0f0f0;
  border-radius: 6rpx;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2E8B57, #3CB371);
  border-radius: 6rpx;
  transition: width 0.3s ease;
}

.breed-count {
  font-size: 22rpx;
  color: #666;
  min-width: 120rpx;
  text-align: right;
}

/* 状态样式 */
.status {
  display: inline-block;
  padding: 6rpx 12rpx;
  border-radius: 16rpx;
  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) {
  .farm-header {
    height: 320rpx;
  }
  
  .farm-name {
    font-size: 36rpx;
  }
  
  .info-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16rpx;
  }
  
  .weather-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16rpx;
  }
  
  .address-content,
  .contact-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16rpx;
  }
  
  .animals-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16rpx;
  }
  
  .breed-progress {
    flex-direction: column;
    align-items: flex-start;
    gap: 8rpx;
  }
  
  .breed-count {
    min-width: auto;
    text-align: left;
  }
}