@import "../../themes/page.scss";
@import "../../themes/draggable-sheet.scss";
@import "../../themes/t.cell.scss";
@import "../../themes/card.scss";

.container-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* pages/home/home.wxss */

$scale: 0.5;

.header-container {
  padding: 12px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.user-info-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  // justify-content: center;
  align-items: center;
  padding: 0 8px;
  width: 254px * $scale;
  height: 66px * $scale;
  box-sizing: border-box;

  .user {
    &-icon {
      flex: none;
      margin-left: 4px;
      width: 12px * $scale;
      height: 16px * $scale;
    }

    &-select-icon {
      flex: none;
      margin-left: 4px;
      width: 8px;
      height: 4px;
    }

    &-name {
      flex: none;
      margin-left: 4px;
      font-size: 14px;
      color: global.$primary-color;
    }

    &-age {
      flex: none;
      margin-left: 4px;
      font-size: 8px;
    }

    &-description {
      flex: auto;
      margin-left: 4px;
      font-size: 8px;
    }
  }
}

.tool-bar-wrapper {
  display: flex;
  flex-direction: row;
  font-size: 12px;

  .tool {
    display: flex;
    flex-direction: row;
    align-items: center;

    image {
      width: 15px;
      height: 14px;
      margin-right: 4px;
    }
  }

  .tool+.tool {
    margin-left: 8px;
  }
}


.banner-wrapper {
  padding-top: 12px;

  .container-bg-image {
    position: static;
    margin: auto;
    width: calc(100% - 24px);
  }
}

.health-scheme-wrapper {
  padding: 0 12px 12px 12px;
}

.draggable-sheet-wrapper {

  .bottom-wrapper {
    display: flex;
    justify-content: center;
    padding: 6px 0 24px;
  }


  .row+.row {
    margin-top: 8px;
  }

  .picture-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;

    image {
      margin: 12px;
      width: 128px;
      height: 128px;
    }
  }
}

.fab-wrapper {
  position: absolute;
  top: 50%;
  right: -36px;

  .fab-main {
    width: 72px;
    height: 72px;
    transform: translateY(6px);
    // z-index: 2;
  }

  .fab {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--td-bg-color-container);
    border-radius: 50%;
  }
}

.CT.row {
  padding: 0 var(--td-cell-horizontal-padding, 32rpx);
}

.science-list-wrapper {
  padding: 0 12px;

  .list-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 16px;
    color: #37B473;
  }
}