@import url("/assets/style/table.scss");
@import url("/assets/style/toast.scss");
@import url("/assets/style/modal.scss");
@import url("/assets/style/form.scss");
@import url("/assets/style/record.scss");

[v-cloak] {
  display: none;
}

// 网页有效区域
.active-area {
  padding: 0 120px;
}

html {
  scrollbar-width: none;
  &::-webkit-scrollbar {
    display: none;
  }
  body::-webkit-scrollbar {
    display: none;
  }
}

.light {
  background-color: #000 !important;
}

.login-register-button {
  box-sizing: border-box;
  height: 44px !important;
  padding: 0 18px;
  background: #4966fb !important;
}

// --------公共有效区域start---------
.common-efficient-area {
  // max-width: 1680px;
  padding: 0 40px;
  margin: 0 auto;
  box-sizing: content-box;
  color: white;
}

@media only screen and (max-width: 992px) {
  .common-efficient-area {
    display: flex;
    padding: 0 20px;
  }
}
// --------公共有效区域end---------

.menu-container {
  .user {
    height: 29px;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    line-height: 30px;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }

  .desc {
    height: 18px;
    font-weight: 400;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 21px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-top: 11px;
  }

  .buy-desc {
    color: #e49a2c;
  }
}

.account-main-container {
  .v-card--variant-elevated {
    background: transparent;
  }
}

// 新字幕-start
.subtitle-win-container {
  background-color: #000;

  .subtitle-win-scene-area {
    .button-area {
      height: 36px;
      background: #4966fb;
      border-radius: 8px;
    }

    .notice {
      font-weight: 400;
      font-size: 24px;
      color: #ffffff;
      line-height: 36px;
    }
  }
}
// 新字幕-end

.header-filter {
  backdrop-filter: blur(10px);
  z-index: 1113 !important;
}

// 邀请有礼
.invite-container {
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(318deg, #7932bf 0%, #1c0244 100%);

  .invite {
    height: 48px;
    width: 48px;
    background-image: url("/assets/imgs/home/invite-light.png");
    background-size: cover;
    background-repeat: no-repeat;

    transform: translateY(-5px);
  }

  .txt {
    height: 44px;
    line-height: 44px;

    font-size: 14px;
    color: #ffffff;
  }
}

// 邀请有礼-flow样式
.flow {
  background: linear-gradient(
    90deg,
    rgba($color: #6330b2, $alpha: 0.16) 0%,
    rgba(71, 21, 148, 0) 100%
  );
  border-radius: 48px 8px 8px 8px;
  width: 100%;

  .flow-item-line {
    min-width: 10px;
    height: 1px !important;
    background: linear-gradient(
      to right,
      rgba(0, 0, 255, 0) 0%,
      rgba(255, 255, 255, 1) 20%,
      rgba(255, 255, 255, 1) 80%,
      rgba(255, 255, 255, 0) 100%
    );
  }
}

.subtitle-selected {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba($color: #fff, $alpha: 0.16);
}

.double-fragment-area {
  .left-fragment .sentence,
  .right-fragment .sentence {
    border: 1px solid red;
  }
}

.subtitle-time-consuming {
  font-weight: 400;
  font-size: 14px;

  .iconfont {
    font-size: 16px;
    color: #e49a2c;
    border-radius: 0px;
  }

  .look {
    font-weight: 400;
    font-size: 14px;
    color: #4966fb;
  }

  &.active-session-confirm {
    display: flex;
    align-items: flex-start;

    .iconfont {
      flex-shrink: 0;
      line-height: 22px;
    }

    .content {
      flex: 1;
      min-width: 0;
      line-height: 22px;
    }
  }
}

// 网站有效区域宽度
.website-valid-area {
  padding: 0 40px !important;
  margin: 0 auto;
  box-sizing: border-box;
}

@media only screen and (max-width: 991px) {
  .website-valid-area {
    padding: 0 20px !important;
  }
}

.required {
  &::before {
    content: "*";
    color: red;
    margin-right: 4px;
  }
}

.library-create-tooltip {
  background-color: #212121 !important;
  color: #fff !important;
}

.reminder-toast-container {
  width: fit-content !important;
}

// 布局公共样式

._flex {
  display: flex;
  align-items: center;
}

._flex-b {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
._flex-y {
  display: flex;
  flex-direction: column;
}
._flex-y-b {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 滚动条美化（可选） */
.custom-scrollbar-y::-webkit-scrollbar {
  width: 6px; /* 滚动条宽度 */
}

.custom-scrollbar-x::-webkit-scrollbar {
  height: 6px; /* 滚动条宽度 */
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent; /* 滚动条轨道透明 */
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #666; /* 滑块颜色 */
  border-radius: 6px; /* 圆角 */
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #999; /* hover 时稍微加深 */
}

.custom-click {
  transition: all 0.3s;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
}
.custom-click:hover {
  opacity: 0.7;
}
.custom-click:active {
  opacity: 0.9;
  transform: scale(0.99);
}
