@import "./variable.scss";

page {
  color: var(--content);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  font-size: var(--content-size);
  line-height: 1.5;
  box-sizing: border-box;
  min-height: 100%;
}
view {
  box-sizing: border-box;
}
::-webkit-scrollbar {
  display: none;
}

.primary {
  color: var(--primary);
}
.success {
  color: var(--success);
}
.info {
  color: var(--info);
}
.warning {
  color: var(--warning);
}
.danger {
  color: var(--danger);
}
.gray {
  color: var(--gray);
}

.bg-default {
  background-color: var(--border-color);
}
.bg-primary {
  background-color: var(--primary);
}
.bg-success {
  background-color: var(--success);
}
.bg-info {
  background-color: var(--info);
}
.bg-warning {
  background-color: var(--warning);
}
.bg-danger {
  background-color: var(--danger);
}
.bg-gray {
  background-color: var(--gray);
}
.bg-white {
  background-color: #fff;
}

.layout-box {
  padding: var(--gutter);
  background-color: #fff;
}

.radius {
  border-radius: 8rpx;
}
.radius-lg {
  border-radius: 16rpx;
}
.bdt {
  border-top: 1px solid var(--border-color);
}
.bdb {
  border-bottom: 1px solid var(--border-color);
}
.bdt-dashed {
  border-top: 1px dashed var(--border-color);
}
.bdb-dashed {
  border-bottom: 1px dashed var(--border-color);
}

.xc-border {
  border: 1px solid var(--border-color);
}

.gutter-v {
  margin-bottom: var(--gutter-v);
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align-last: justify;
}
.underline {
  text-decoration: underline;
}
.line-through {
  text-decoration: line-through;
}

.flex {
  display: flex;
}
.flex-grow {
  flex-grow: 1;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
.align-end {
  align-items: flex-end;
}
.align-center {
  align-items: center;
}
.direction-row {
  flex-direction: row;
}
.direction-column {
  flex-direction: column;
}

.shadow {
  box-shadow: 0 0 10px 2px rgba(65, 65, 70, 0.2);
}

.card-shadow {
  box-shadow: 0 0 20rpx 8rpx rgba(65, 65, 70, 0.07);
  border-radius: 12rpx;
  overflow: hidden;
}

.title {
  font-size: var(--title-size);
  color: var(--title);
}
.content {
  font-size: var(--content-size);
  color: var(--content);
}
.sub {
  font-size: var(--sub-size);
  color: var(--sub);
}
.bold {
  font-weight: bold;
}

.line0 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line1 {
  max-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.line2 {
  max-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.line3 {
  max-height: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--window-top));
}
.container-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.main {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.title-hd {
  padding: 20rpx;
  position: relative;
}
.title-hd::before {
  position: absolute;
  content: "";
  width: 3px;
  height: 13px;
  background-color: var(--primary);
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.inline-block {
  display: inline-block;
}
.block {
  display: block;
}
.vm {
  vertical-align: middle;
}
.fs12 {
  font-size: 12px;
}
.pr {
  position: relative;
}
.pa {
  position: absolute;
}
.pf {
  position: fixed;
}
.sticky {
  position: sticky;
  top: 0;
  z-index: 1;
}

.fs-list {
  padding: var(--gutter);

  &-item {
    background-color: #fff;
    padding: var(--gutter);
    border-radius: 8rpx;
    position: relative;

    &.border {
      border-left: 6rpx solid var(--primary);
    }

    & + & {
      margin-top: var(--gutter);
    }

    &-sub {
      display: flex;
      & + & {
        margin-top: 10rpx;
      }
    }

    &-left {
      color: #78869c;
      width: 55px;
      text-align-last: justify;
      position: relative;
      font-size: var(--content-size);
      margin-right: 20rpx;
      white-space: nowrap;
      flex-shrink: 0;
      &::after {
        position: absolute;
        content: ":";
        color: #78869c;
      }
    }
  }
}

.fs-cell-right {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.wrapper {
  min-height: 100vh;
}
.footer-btn {
  padding: 30rpx 0;
}

.p-30 {
  padding: 30rpx;
}
.p-x-30 {
  padding-left: 30rpx;
  padding-right: 30rpx;
}
.p-y-30 {
  padding-top: 30rpx;
  padding-bottom: 30rpx;
}
.m-t-30 {
  margin-top: 30rpx;
}

.m-10 {
  margin: 10rpx;
}
.empty {
  .empty_text {
    font-size: 30rpx;
    color: #666;
    text-align: center;
  }
}

.title-line {
  position: relative;
  text,
  .text {
    position: relative;
    z-index: 1;
    font-size: 32rpx;
    color: #333;
    font-weight: 700;
  }

  .num {
    font-size: 32rpx;
    color: #4479ff;
    margin-left: 2rpx;
  }

  &::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: 0;
    width: 150rpx;
    height: 14rpx;
    background: linear-gradient(-76deg, #fff, #00eea8, #0871ff);
    opacity: 0.5;
  }
}

.color-font {
  background: linear-gradient(
    -76deg,
    #b193ff 0%,
    #1cb2ff 53.0029296875%,
    #0871ff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rich-img {
  max-width: 100% !important;
  object-fit: cover;
}

/* #ifdef H5 */
uni-page-head {
  display: none;
}
.fs-mask {
  top: 0 !important;
}
.fs-popup {
  .bottom {
    bottom: 0 !important;
  }
}

/* #endif */

.page-top-bg-class {
  background-image: url("@/static/images/page-top-bg.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% 290rpx;
  box-sizing: border-box;
  padding: 30rpx;
}
