@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;
}
:root {
  --van-blue-rgb: 137, 97, 255;
  --van-blue: rgb(var(--van-blue-rgb));
  --bg-color-primary: #fff;
  --bg-color-light: #f5f6fa;
  --text-color-primary: #1a1a1a;
  --text-color-secondary: #6e7191;
  --border-color--primary: #e5e5e5;
  --border-color-light: #f1f1f1;
  --van-background-2: var(--bg-color-primary);
  --van-cell-background: var(--bg-color-primary);
  --van-text-color: var(--text-color-primary);
  --max-width: min(75rem, 100vw);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg-color-light);
  height: 100%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-color-secondary);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family:
    OpenSans,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'PingFang SC',
    'Hiragino Sans GB',
    'Microsoft YaHei',
    sans-serif;
}

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

ul,
li {
  list-style: none;
}
img {
  vertical-align: middle;
}
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;
}
.flex-between {
  display: flex;
  justify-content: space-between;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-center-align {
  display: flex;
  align-items: center;
}
.flex-end {
  display: flex;
  justify-content: flex-end;
}
.flex-column {
  display: flex;
  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-primary {
  background: var(--bg-color-primary);
}
.b {
  font-weight: bold;
}
.red {
  color: var(--van-red) !important;
}
.green {
  color: var(--van-green) !important;
}
.pointer {
  cursor: pointer;
}
.block {
  display: block !important;
}
.border-radius {
  border-radius: 0.6rem;
}

.h-full {
  height: 100%;
}
.w-full {
  width: 100% !important;
}
.overflow-y {
  overflow-y: auto;
}

.img {
  max-width: 100%;
  max-height: 100%;
}

.van-popup--center {
  max-width: calc(var(--max-width) - var(--van-padding-md) * 2) !important;
}
.van-popup--center img {
  max-width: 100%;
}

/* 限制大屏幕字体大小 */
@media (min-width: 415px) {
  html {
    font-size: 12px !important;
  }
}
@media (min-width: 641px) {
  .van-popup--center {
    max-width: calc(var(--max-width) - var(--van-padding-md) * 12) !important;
  }
}
