/* 表单卡片 */
.form-card {
  margin: 10px;
  border-radius: 12px;

  ion-item {
    --padding-start: 0;
    --inner-padding-end: 0;
    margin-bottom: 15px;
  }

  .form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;

    ion-button {
      width: 30%;
      &:nth-child(3) {
        width: 35%;
      }
    }
  }
}

/* 农场概览卡片 */
.summary-card {
  margin: 10px;
  border-radius: 12px;

  .summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;

    .summary-item {
      ion-icon {
        font-size: 2rem;
      }

      h3 {
        margin: 5px 0 0;
        font-size: 1.4rem;
        font-weight: bold;
      }

      p {
        margin: 2px 0;
        font-size: 0.8rem;
        color: var(--ion-color-medium);
      }
    }
  }
}

/* 作物分布卡片 */
.crops-card {
  margin: 15px 10px;
  border-radius: 12px;

  .crops-grid {
    display: grid;
    gap: 12px;

    .crop-item {
      display: flex;
      align-items: center;
      padding: 8px 0;

      .crop-icon {
        width: 50px;
        height: 50px;
        margin-right: 12px;
        background: var(--ion-color-light-shade);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
          width: 30px;
          height: 30px;
          object-fit: contain;
        }
      }

      .crop-info {
        flex: 1;

        h4 {
          margin: 0 0 4px;
          font-size: 0.95rem;
        }

        p {
          margin: 0 0 4px;
          font-size: 0.8rem;
          color: var(--ion-color-medium);
        }

        ion-progress-bar {
          margin-top: 4px;
          height: 6px;
          border-radius: 3px;
        }
      }
    }
  }
}

/* 地块列表 */
ion-list {
  background: transparent;
  padding-top: 0;

  ion-item {
    --padding-start: 10px;
    --inner-padding-end: 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    --background: var(--ion-color-light);

    ion-avatar {
      width: 50px;
      height: 50px;
      background: var(--ion-color-light-shage);
    }

    h2 {
      font-weight: 600;
    }

    .field-status {
      display: flex;
      align-items: center;
      margin-top: 5px;

      ion-badge {
        margin-right: 8px;
      }

      span {
        font-size: 0.8rem;
        color: var(--ion-color-medium);
      }
    }

    ion-note {
      font-size: 0.8rem;
      color: var(--ion-color-primary);
    }
  }
}

/* 空状态提示 */
.empty-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  text-align: center;
  padding: 20px;

  ion-icon {
    font-size: 3rem;
    color: var(--ion-color-medium);
    margin-bottom: 15px;
  }

  p {
    color: var(--ion-color-medium);
    margin-bottom: 20px;
  }
}