$primary-color: #3880ff;  // 设置主色调
$secondary-color: #f4f4f4; // 设置次要颜色

/* 继承之前的样式 */
ion-header {
  background-color: $primary-color;
  color: white;

  ion-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;

    ion-title {
      font-size: 24px;
      font-weight: bold;
    }
  }
}

ion-content {
  padding: 16px;
  background-color: $secondary-color;

  /* 输入框和显示区域 */
  .info-section {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;

    .input-row {
      display: flex;
      justify-content: center;
      margin-bottom: 16px;

      .input-group {
        width: 60%;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;

        label {
          font-weight: bold;
          margin-bottom: 4px;
          display: block;
          text-align: center;
        }

        .input-box {
          width: 100%;
          padding: 8px;
          border: 1px solid #ccc;
          border-radius: 4px;
        }

        .unit {
          font-size: 14px;
          margin-top: 4px;
        }
      }
    }
  }

  .center-button {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    text-align: center;
    padding-top: 40px;
  }

  .analysis-button {
    width: 100%;
    margin-top: 16px;
    background-color: $primary-color;
    color: white;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;

    &:hover {
      background-color: darken($primary-color, 10%);
    }
  }
}
