body {
    background-color: #f5f6fa;
  }

  .total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  
    h2 {
      margin: 20;
    }
  }
  .goumai{
    size:4;
    text-align: right;
    margin-top: 10px;
  }
  
  /* 药品选购头部样式 */
  ion-header {
    --background: #4a90e2;
    --color: white;
  
    ion-toolbar {
      --border-width: 0;
    }
  }
  
  /* 内容区域样式 */
  ion-content {
    --background: #f5f6fa;
    padding-top: 20px; /* 确保内容区有合适的顶部间距 */
  }
  
  /* 列表项样式 */
  ion-list {
    margin: 0;
    padding: 0;
  }
  
  ion-item {
    --padding-start: 16px;
    --padding-end: 16px;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    background: white;
    padding-top: 10px; /* 可选：增加卡片顶部内边距 */
    padding-bottom: 10px; /* 可选：增加卡片底部内边距 */
  }
  
  ion-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  ion-label h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
  }
  
  ion-label p {
    font-size: 14px;
    color: #6c757d;
    margin: 2px 0;
  }
  
  ion-button {
    --background: #4a90e2;
    --color: white;
    --border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
  }
  
  ion-button[fill="clear"] {
    --color: #4a90e2;
    --background: transparent;
    border: 1px solid #4a90e2;
    transition: all 0.3s ease;
  }
  
  ion-button[fill="clear"]:hover {
    --background: rgba(74, 144, 226, 0.1);
  }
  
 /* 购物车样式 */
ion-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
  
    ion-card {
      margin: 0;
      padding: 16px;
      width: 100%;
      border-top-left-radius: 16px;
      border-top-right-radius: 16px;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }
  
    .cart-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
  
      ion-title {
        font-size: 18px;
        font-weight: bold;
      }
  
      ion-icon {
        font-size: 24px;
        color: #4a90e2;
      }
    }
  
    ion-list {
      max-height: 200px; // 根据需要调整高度
      overflow-y: auto;
      padding: 0;
      margin: 0;
    }
  
    ion-item {
      --padding-start: 16px;
      --padding-end: 16px;
      --border-radius: 8px;
      --box-shadow: none;
      margin-bottom: 10px;
      background: #f5f6fa;
      display: flex;
      align-items: center;
      transition: all 0.3s ease;
  
      &:last-child {
        margin-bottom: 0;
      }
  
      &.fade-enter-active,
      &.fade-leave-active {
        transition: opacity 0.3s, transform 0.3s;
      }
  
      &.fade-enter,
      &.fade-leave-to /* .fade-leave-active in < Angular 8 */ {
        opacity: 0;
        transform: translateY(20px);
      }
    }
  
    ion-thumbnail img {
      width: 40px;
      height: 40px;
      object-fit: cover;
      border-radius: 8px;
    }
  
    ion-label {
      flex-grow: 1;
      margin-right: 10px;
  
      h2 {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 4px;
      }
  
      p {
        font-size: 14px;
        color: #6c757d;
        margin: 2px 0;
      }
    }
  
    .item-actions {
      display: flex;
      align-items: center;
  
      button {
        --background: transparent;
        --color: #4a90e2;
        --border-radius: 50%;
        padding: 4px;
        margin-left: 8px;
        transition: all 0.3s ease;
  
        &:hover {
          --background: rgba(74, 144, 226, 0.1);
        }
  
        &.remove-btn {
          --color: #dc3545;
        }
      }
    }
  
    .quantity-input {
      display: flex;
      align-items: center;
      font-size: 14px;
  
      input {
        width: 30px;
        text-align: center;
        border: 1px solid #ced4da;
        border-radius: 4px;
        padding: 4px;
        margin: 0 4px;
      }
    }
  
    .total {
      font-size: 18px;
      font-weight: bold;
      color: #4a90e2;
      text-align: right;
      margin-top: 10px;
    }
  }