@font-face {
  font-family: 'OpenSans';
  src: url('./fonts/opensans.ttf?v=2') format('truetype');
  font-weight: normal;
  font-style: normal;
}
html {
  height: 100%;
  box-sizing: border-box;
  font-size: 10px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: OpenSans;
}
body {
  height: 100%;
  font-size: 1.4rem;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: OpenSans;
  background: #fafafa;
}
html:root {
  --primary: #0172ec;
  --el-color-primary: var(--primary) !important;
  --el-border-radius-base: 0.8rem;
  --color-bg: #0b102d;
}

*:before,
*:after {
  box-sizing: inherit;
}

ul,
li {
  list-style: none;
}
img {
  vertical-align: middle;
}
div[tabindex] {
  outline: none !important;
}
h2 {
  font-size: 1.8rem;
}
h3 {
  font-size: 1.6rem;
}
h4 {
  font-size: 1.4rem;
}

.margin-top {
  margin-top: 1.6rem;
}
.margin-right {
  margin-right: 1.6rem;
}
.margin-bottom {
  margin-bottom: 1.6rem;
}
.margin-left {
  margin-left: 1.6rem;
}
.padding-top {
  padding-top: 1.6rem;
}
.padding-right {
  padding-right: 1.6rem;
}
.padding-bottom {
  padding-bottom: 1.6rem;
}
.padding-left {
  padding-left: 1.6rem;
}
.padding {
  padding: 1.6rem;
}

.flex {
  display: flex !important;
}
.flex-between {
  display: flex !important;
  justify-content: space-between;
}
.flex-center {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.flex-center-align {
  display: flex !important;
  align-items: center;
}
.flex-end {
  display: flex !important;
  justify-content: flex-end;
}
.flex-column {
  display: flex !important;
  flex-direction: column;
}
.flex-1 {
  flex: 1;
  overflow: hidden;
}

.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}
.position-relative {
  position: relative;
}
.bg-white {
  background: #fff;
}
.b {
  font-weight: bold;
}
.red {
  color: var(--el-color-danger) !important;
}
.green {
  color: var(--el-color-success) !important;
}
.blue {
  color: var(--primary) !important;
}
.pointer {
  cursor: pointer;
}
.block {
  display: block !important;
}
.border-radius {
  border-radius: 0.6rem;
}

.h-full {
  height: 100%;
}
.w-full {
  width: 100% !important;
}
.h-full.el-tabs > .el-tabs__content {
  flex: 1;
}
.overflow-y {
  overflow-y: auto;
}

.el-image {
  line-height: 0;
  display: flex !important;
}
.el-button--primary {
  background: linear-gradient(90deg, #0141e4 0%, #00cbfc 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.el-button--primary:hover {
  opacity: 0.8;
}
.el-form-item__error {
  margin-top: 0.4rem;
  font-size: 1.4rem !important;
}

.pc-width {
  width: 100%;
  margin: 0 auto;
  overflow-x: auto;
}
.button {
  padding: 0.8rem 1.6rem;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  border: 8px;
  text-align: center;
}
.button:hover,
.button[plain] {
  background: var(--primary);
  color: #fff;
}
.button[plain]:hover {
  background: none;
  color: var(--primary);
}
.el-button {
  --el-border-radius-base: 0.8rem;
}

/* dialog */
.dialog-outer {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  background: #000a;
}
.dialog-outer .inner {
  max-width: 62rem;
  padding: 1.6rem;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(180deg, #162160 0%, #121b4c 100%);
}
.dialog-outer .close {
  width: 3rem;
  height: 3rem;
  mask: url(../images/close.svg) no-repeat;
  mask-size: 100% 100%;
  background: currentColor;
  color: #64748b;
}
.dialog-outer .close:hover {
  color: #fff;
}

/* tab box */
.tab-box {
  border-radius: 0.8rem;
  overflow: hidden;
  display: flex;
  text-align: center;
  color: #fff;
}
.tab-box .tab {
  border: 1px solid #fff6;
  border-right: none;
  flex: 1;
  line-height: 3.6rem;
  cursor: pointer;
}
.tab-box .tab.hover,
.tab-box .tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  border-right-color: var(--primary) !important;
}
.tab-box .tab:first-child {
  border-radius: 0.8rem 0 0 0.8rem;
}
.tab-box .tab:last-child {
  border-right: 1px solid #fff6;
  border-radius: 0 0.8rem 0.8rem 0;
}

/* box */
.box {
  padding: 1.6rem;
  border-radius: 1.6rem;
  color: #fff;
  position: relative;
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1.6rem;
  padding: 1px;
  background: linear-gradient(160deg, #00cbfc 0%, transparent 20%, transparent 70%, #00cbfc 100%);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* list box */
.list-more {
  width: 12rem;
  margin: 1.6rem auto 0;
  line-height: 3rem;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 0.4rem;
}
.list-more:not(.disabled):hover {
  opacity: 0.8;
  cursor: pointer;
}
.list-more.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.app-outer {
  max-width: 64rem;
  margin: 0 auto;
  background: var(--color-bg);
}
