/* color palette from <https://github.com/vuejs/theme> */
:root {
  --vt-c-white: #ffffff;
  --vt-c-white-soft: #f8f8f8;
  --vt-c-white-mute: #f2f2f2;

  --vt-c-black: #181818;
  --vt-c-black-soft: #222222;
  --vt-c-black-mute: #282828;

  --vt-c-indigo: #2c3e50;

  --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
  --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
  --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
  --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);

  --vt-c-text-light-1: var(--vt-c-indigo);
  --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
  --vt-c-text-dark-1: var(--vt-c-white);
  --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
  --van-gray-3: #dcdee0;
}

/* semantic color variables for this project */
:root {
  --color-background: var(--vt-c-white);
  --color-background-soft: var(--vt-c-white-soft);
  --color-background-mute: var(--vt-c-white-mute);

  --color-border: var(--vt-c-divider-light-2);
  --color-border-hover: var(--vt-c-divider-light-1);

  --color-heading: var(--vt-c-text-light-1);
  --color-text: var(--vt-c-text-light-1);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);

  --section-gap: 160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: var(--vt-c-black);
    --color-background-soft: var(--vt-c-black-soft);
    --color-background-mute: var(--vt-c-black-mute);

    --color-border: var(--vt-c-divider-dark-2);
    --color-border-hover: var(--vt-c-divider-dark-1);

    --color-heading: var(--vt-c-text-dark-1);
    --color-text: var(--vt-c-text-dark-2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}
body {
  min-height: 100vh;
  color: var(--color-text);
  background: var(--color-background);
  transition:
    color 0.5s,
    background-color 0.5s;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* vant */
.van-popup--bottom {
  @media screen and (min-width: 992px) {
    left: calc(50vw - 496px) !important;
    right: calc(50vw - 496px) !important;
    width: 992px !important;
  }
}

.box-popup {
  min-height: 372px;
  max-height: 500px;
  overflow-y: auto;
}

.page-bg {
  .van-tag {
    border-radius: 4px;
  }
}

.tabbar-list {
  padding-bottom: 70px;
  overflow-y: auto;
  height: 100vh;
}

.page-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #ededed;
  bottom: env(safe-area-inset-bottom);
}

.page-content {
  background-color: #F2F3F5;
  max-width: 992px;
  margin: 0 auto;
  height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.page-div {
  background-color: #F2F3F5;
  max-width: 992px;
  margin: 0 auto;
  height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  flex-direction: column;
}
/* .van-cell {
  margin: 0 16px 12px;
  width: calc(100% - 32px);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1);

  @media screen and (min-width: 678px) {
    width: 642px;
  }

  &:last-child {
    margin-bottom: 0;
  }
} */

.card {
  padding: 10px;
  border-radius: 6px;
  /* width: calc(100% - 32px); */
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .1);
}
.col-6 {
  width: 50%;
}
.col-12 {
  width: 100%;
}
.col-4 {
  width: 33.3%;
}
.van-tabbar {
  height: 60px !important;
  .van-icon {
    font-size: 26px !important;
  }
  .van-tabbar-item__text {
    font-size: 16px !important;
  }
}

.van-cell {
  border-radius: 8px;
}

.top-select-list {
  padding-top: 40px;
}
.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
}

.top-select {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 40px;
  z-index: 4;
  background-color: #fff;

  @media screen and (min-width: 678px) {
    left: calc(50vw - 339px);
    right: calc(50vw - 339px);
  }

  .van-grid-item__content {
    padding: 0;
    height: 38px;
    line-height: 38px;

    .grid-item-text {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      text-align: center;
      max-width: calc(33vw - 28px);
      font-size: 12px;

      @media screen and (min-width: 678px) {
        max-width: 200px;
      }
    }
  }
}
.verticalSwiper {
  background-color: #fff;
  width: 100vh !important;
  height: 100vh;
  transform-origin: 50vw 50vw;
  transform: rotate(90deg) !important;
  overflow: hidden;
  .top-select {
    display: none;
  }
  .chart {
    width: 100vh;
    height: 100vw;
  }

  .chartDiv {
    width: 100%;
    height: 100%;
  }
}

.horizontalSwiper {
  background-color: #fff;
  .top-select {
    width: 100px;
  }
  .chart {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chartDiv {
    width: 100%;
    height: 40vh;
  }
}

.chart {
  position: relative;
  .icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 100%;
    z-index: 999;
  }

  .icon-up {
    top: 20px;
  }

  .icon-down {
    bottom: 20px;
  }
  .loading {
    position: absolute;
    z-index: 2;
  }
}
.custom-style {
  padding: 10px;
  
}
ol {
  padding-left: 10px !important;
  li {
    list-style-type: decimal;
    list-style-position: inside;
  }
}

/* iconfont */
.iconfont {
  font-size: 14px;
}

/* font-size */
.content {
  font-size: 14px;
}

.font-12 {
  font-size: 12px;
}
strong {
  font-weight: bold;
}

/* color */
.primary-text-color {
  color: #1989fa !important;
}

.disabled-primary-background-color {
  background-color: #90d7ec !important;
}

.primary-background-color {
  background-color: #1989fa !important;
}

.warning-text-color {
  color: #ff976a !important;
}

.warning-background-color {
  background-color: #ff976a !important;
}

.success-text-color {
  color: #07c160 !important;
}

.success-background-color {
  background-color: #07c160 !important;
}

.danger-text-color {
  color: #f56c6c !important;
}

.danger-background-color {
  background-color: #f56c6c !important;
}

.balck-text-color {
  color: #130c0e !important;
}

.yellow-background-color {
  background-color: #e6a23c !important;
}

.pink-background-color {
  background-color: #f173ac !important;
}

.purple-background-color {
  background-color: #8552a1 !important;
}

.other-background-color {
  background-color: #8390e5 !important;
}

.active {
  background-color: #1989fa;
  color: #fff;
}

.activeColor {
  color: #1989fa;
}

.white-text-color {
  color: #fff;
}

.disbaled-text-color {
  color: #c8c9cc;
}

.disbaled-background-color {
  background-color: #c8c9cc;
}

/* flex */

.flex-wrap {
  flex-wrap: wrap;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-end {
  justify-content: end;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-center {
  align-items: center;
}

.align-items-end {
  align-items: flex-end;
}

/* padding */

.p-10 {
  padding: 10px;
}

.p-8 {
  padding: 8px;
}

.ps-16 {
  padding-left: 16px;
}

.pe-16 {
  padding-right: 16px;
}

.pt-5 {
  padding-top: 5;
}

.pb-5 {
  padding-bottom: 5px;
}

/* margin */
.m-5 {
  margin: 5px;
}

.m-16 {
  margin: 16px;
}

.mt-5 {
  margin-top: 5px;
}

.ms-10 {
  margin-left: 10px;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}
.mx-10 {
  margin: 0 10px;
}
/* border */
.border-1 {
  border: 1px solid #dcdee0;
}

.border-0 {
  border: 0 !important;
}

.border-bottom-1 {
  border-bottom: 1px solid #dcdee0;
}

.border-right-1 {
  border-right: 1px solid #dcdee0;
}

.border-radius-4 {
  border-radius: 4px;
}

.border-radius-8 {
  border-radius: 8px;
}

/* 省略号 */
.ellipsis-one {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
}

.addDiv {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 70px);
  right: 20px;
  height: 60px;
  width: 60px;
  border-radius: 100%;
  color: #fff;
  z-index: 2;

  @media screen and (min-width: 678px) {
    right: calc(50vw - 319px);
  }

  .text-center {
    height: 30px;
    width: 60px;
    line-height: 16px;
  }

  .addDiv1 {
    padding-top: 14px;
  }

  .addDiv2 {
    padding-bottom: 14px;
  }
}
