@charset "utf-8";
@import "reset.css";

html,body {
  height: 100%;
  -webkit-text-size-adjust: none;
  background-color: #f5f5f9;
}

#app {
  font-family: "Microsoft YaHei", Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  color: #2e2e2e;
  max-width: 750px;
  margin: 0 auto;
}

#app * {
  box-sizing: border-box;
}
.img-block {
  font-size: 0;
  position: relative;
}
.img-block>img {
  width: 100%;
}

.img-block>a {
  position: absolute;
  /* background: rgba(0, 0, 0, .3); */
}

.spacer-block {
  height: 1.2em;
}

.fund-block {
  background-color: #fff;
  padding: 1.2em;
}

.fund-block>.img-block {
  font-size: 1em;
  position: relative;
}

.fund-link {
  display: block;
  margin-top: 1.2em;
  text-align: center;
  padding: .75em 0;
  background-color: #2f78eb;
  color: #fff;
  font-size: 1.2em;
  border-radius: 5px;
  letter-spacing: .1em;
}

.fund-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fund-title {
  text-align: center;
  font-size: 1.5em;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: .1em;
  margin-top: 4%;
}
.fund-desc {
  display: flex;
  justify-content: center;
}
.fund-desc > div {
  font-size: .8em;
  padding: .2em .5em;
  color: #fa4749;
  border: 1px solid #fa4749;
  margin: 0 .2em;
  border-radius: 3px;
}
.fund-value {
  color: #eb5d5d;
  font-size: 1.8em;
  text-align: center;
  line-height: 1.2;
  margin-top: .4em;
  font-weight: 550;
}
.fund-value-desc {
  text-align: center;
  color: #979797;
  font-size: .9em;
  line-height: 1.2;
  margin-bottom: 4%;
}
.fund-value>small {
  font-size: 80%;
}

@media only screen and (max-width: 380px) {
  #app {
    font-size: 14px;
  }
}
@media only screen and (max-width: 320px) {
  #app {
    font-size: 12px;
  }
}

@media only screen and (min-width: 480px) {
  #app {
    font-size: 20px;
  }
}

/* x,xs */
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
  #app {
    padding-bottom: 15px;
  }
}
/* xr */
@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) {
  #app {
    padding-bottom: 15px;
  }
}

/* xs max */
@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) {
  #app {
    padding-bottom: 15px;
  }
}
