/* pages/production/production.wxss */
.production-container {
  padding: 0;
  background-color: #ffffff;
  min-height: 100vh;
}

/* 页面标题 */
.page-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333333;
  text-align: center;
  padding: 32rpx 0;
  background-color: #ffffff;
  border-bottom: 1rpx solid #f0f0f0;
}

/* 管理模块容器 */
.management-section {
  margin-bottom: 40rpx;
  background-color: #ffffff;
}

/* 模块标题头部 */
.section-header {
  display: flex;
  align-items: center;
  padding: 24rpx 32rpx 16rpx;
  background-color: #ffffff;
}

.section-title-bar {
  width: 8rpx;
  height: 32rpx;
  background-color: #3cc51f;
  margin-right: 16rpx;
  border-radius: 4rpx;
}

.section-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333333;
}

/* 功能网格 */
.function-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24rpx;
  padding: 0 32rpx 32rpx;
  background-color: #ffffff;
}

/* 功能项 */
.function-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx 8rpx;
  background-color: #ffffff;
  border-radius: 12rpx;
  transition: all 0.2s ease;
}

.function-item:active {
  background-color: #f8f8f8;
  transform: scale(0.95);
}

/* 功能图标 */
.function-icon {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40rpx;
  margin-bottom: 12rpx;
  color: #ffffff;
}

/* 猪档案图标颜色 */
.function-icon.pig-archive {
  background-color: #1890ff;
}

.function-icon.estrus-record {
  background-color: #fa8c16;
}

.function-icon.mating-record {
  background-color: #1890ff;
}

.function-icon.pregnancy-check {
  background-color: #faad14;
}

.function-icon.farrowing-record {
  background-color: #52c41a;
}

.function-icon.weaning-record {
  background-color: #1890ff;
}

.function-icon.pen-transfer {
  background-color: #f5222d;
}

.function-icon.pen-exit {
  background-color: #fa8c16;
}

.function-icon.pen-settings {
  background-color: #52c41a;
}

.function-icon.batch-settings {
  background-color: #1890ff;
}

.function-icon.epidemic-warning {
  background-color: #1890ff;
}

/* 羊只管理图标颜色 */
.function-icon.sheep-archive {
  background-color: #1890ff;
}

/* 家禽管理图标颜色 */
.function-icon.poultry-archive {
  background-color: #1890ff;
}

/* 牛只管理图标颜色 */
.function-icon.cattle-archive {
  background-color: #1890ff;
}

.function-icon.scan-entry {
  background-color: #722ed1;
}

.function-icon.scan-print {
  background-color: #52c41a;
}

/* 功能文字 */
.function-text {
  font-size: 24rpx;
  color: #333333;
  text-align: center;
  line-height: 1.2;
}

/* 加载状态 */
.loading-container {
  text-align: center;
  padding: 64rpx;
}

.loading-spinner {
  width: 48rpx;
  height: 48rpx;
  border: 4rpx solid #f0f0f0;
  border-top: 4rpx solid #3cc51f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16rpx;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 375px) {
  .function-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16rpx;
    padding: 0 24rpx 24rpx;
  }
  
  .function-icon {
    width: 64rpx;
    height: 64rpx;
    font-size: 32rpx;
  }
  
  .function-text {
    font-size: 22rpx;
  }
  
  .section-title {
    font-size: 28rpx;
  }
  
  .page-title {
    font-size: 32rpx;
    padding: 24rpx 0;
  }
}
