:root {
  --begainIconBg: linear-gradient(90deg, #4097F4 0%, rgba(255, 255, 255, 0) 100%);
  --begainBtnBg: #4097F4;
  --itemBg: rgba(64, 151, 244, 0.50);
  --itemTopColor: #5AB221;
  --answerBg: #4097F4;
  --toptextColor: #E78110;
}



body,
html {
  padding: 0;
  margin: 0;
  background: #f5f5f5;
}

.img-item {
  position: relative;
}

.img-item img {
  width: 100%;
  margin-top: 12px;
}

.top {
  display: block;
  width: 93.6%;
  margin: 12px auto 0;
}

.top-text {
  font-size: 20px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 30px;
  color: var(--toptextColor);
  /* text-align: center; */
  margin-top: 4px;
  margin-bottom: 8px;
}

.top-text1 {
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 30px;
  color: #666666;
  margin-bottom: 23px;
}

.begain-text {
  width: 93.6%;
  margin: 12px auto 12px;
  background: #fff;
  border-radius: 8px;
  padding: 16px 12px;
}


.begain-icon {
  width: 60px;
  height: 12px;
  background: var(--begainIconBg);
  border-radius: 4px;
  margin-bottom: 8px;
}

.begain-p {
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 32px;
  color: #555555;
}

.p2 {
  margin-top: 14px;
}

.begain-btn {
  width: 275px;
  height: 50px;
  background: var(--begainBtnBg);
  border-radius: 8px;
  margin: 0 auto;
  font-size: 22px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 50px;
  color: #FFFFFF;
  text-align: center;
  cursor: pointer;
}

.item {
  width: 93.6%;
  margin: 0 auto;
  background: var(--itemBg);
  border-radius: 8px;
  padding: 16px 12px;
  display: none;
}

.item-in {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 20px 16px 8px;
}

.item-title {
  font-size: 38px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 38px;
  color: var(--itemTopColor);
  text-align: center;
  position: relative;
}

.item-title::before {
  content: '';
  width: 30%;
  height: 2px;
  background: var(--itemTopColor);
  position: absolute;
  top: 50%;
  left: 0;
}

.item-title::after {
  content: '';
  width: 30%;
  height: 2px;
  background: var(--itemTopColor);
  position: absolute;
  top: 50%;
  right: 0;
}

.text {
  font-size: 20px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 32px;
  color: #333333;
  margin-top: 18px;
  margin-bottom: 30px;
  min-height: 64px;
}

.answer {
  padding: 7px 20px;
  background: var(--answerBg);
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 32px;
  color: #FFFFFF;
  border-radius: 4px;
  margin-bottom: 12px;
  cursor: pointer;
}

.textbox {
  /* display: none; */
  width: 93.6%;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 16px 12px 24px;
}

.result {
  display: none;
  background: rgba(64, 151, 244, 0.50);
  border-radius: 8px;
  padding: 16px 12px;
  width: 93.6%;
  margin: 12px auto 0;
  position: relative;
}

.topitem {
  position: relative;
}

.topitem::before {
  content: '';
  background: url('../img/loveicon.png') no-repeat;
  background-size: 100% 100%;
  width: 10px;
  height: 38px;
  display: block;
  position: absolute;
  top: -24px;
  left: 32px;
}

.topitem::after {
  content: '';
  background: url('../img/loveicon.png') no-repeat;
  background-size: 100% 100%;
  width: 10px;
  height: 38px;
  display: block;
  position: absolute;
  top: -24px;
  right: 32px;
}

.result-top {
  position: relative;
  width: 100%;
  height: 70px;
  background: #348DED;
  border-radius: 8px;
  font-size: 22px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 70px;
  color: #FFFFFF;
  text-align: center;
}

.result-top img {
  height: 57px;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ENPLbox {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 27px;
  row-gap: 16px;
}

.E,
.N,
.P,
.L {
  display: flex;
  border: 1px solid #4097F4;
  border-radius: 8px;
  overflow: hidden;
}

.N {
  border: 1px solid #F36161;
}

.P {
  border: 1px solid #5AB221;
}

.L {
  border: 1px solid #E7A018;
}

.textp {
  width: 60%;
  background: #4097F4;
  font-size: 20px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 40px;
  color: #FFFFFF;
  text-align: center;
}

.N .num {
  color: #F36161;
}

.P .num {
  color: #5AB221;
}

.L .num {
  color: #E7A018;
}


.num {
  width: 40%;
  line-height: 40px;
  text-align: center;
  font-size: 24px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  color: #4097F4;
}

.N .textp {
  background: #F36161;
}

.P .textp {
  background: #5AB221;
}

.L .textp {
  background: #E7A018;
}

.ewm {
  width: 120px;
  height: 120px;
  margin: 34px auto 0;
}

.text {
  display: flex;
  justify-content: center;
}

.text span {
  font-size: 14px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 26px;
  color: #999999;
  padding: 0 6px;
}

.result-item-top {
  font-size: 18x;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 30px;
  color: #333333;
  margin-bottom: 14px;
  padding-left: 18px;
  position: relative;
}

.result-item-title {
  font-size: 20px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 30px;
  color: #333333;
  text-align: center;
  margin-bottom: 30px;
}

.result-item .result-item-top:nth-of-type(2) {
  color: #4097F4;
}

.result-item .result-item-top:nth-of-type(4) {
  color: #F36161;
}

.result-item .result-item-top:nth-of-type(6) {
  color: #5AB221;
}

.result-item .result-item-top:nth-of-type(8) {
  color: #E7A018;
}

.result-item .result-item-top:nth-of-type(10) {
  color: #8277F2;
}

.result-item-top::before {
  content: '';
  display: block;
  width: 6px;
  height: 18px;
  background: #4097F4;
  border-radius: 3px;
  position: absolute;
  top: 6px;
  left: 0px;
}

.result-item-top:nth-of-type(4)::before {
  background: #F36161;
}

.result-item-top:nth-of-type(6)::before {
  background: #5AB221;
}

.result-item-top:nth-of-type(8)::before {
  background: #E7A018;
}

.result-item-top:nth-of-type(10)::before {
  background: #8277F2;
}

.result-item-top2 {
  font-size: 18px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 30px;
  color: #F36161;
  margin-bottom: 14px;
}

.result-item-top3 {
  font-size: 18px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 30px;
  color: #8277F2;
  margin-bottom: 14px;
}

.blue {
  color: #4097F4;
}



.allnum {
  width: 40%;
  font-size: 60px;
  line-height: 60px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  color: #F6EE76;
  position: absolute;
  bottom: 18px;
  left: 5%;
  text-align: center;
}

.result-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px 16px 13px;
  margin: 12px 0;
}

/* .result-item-top{
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
} */

.result-num,
.result-type {
  width: 130px;
  height: 40px;
  background: #0DB498;
  opacity: 1;
  border-radius: 8px;
  font-size: 20px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 40px;
  color: #FFFFFF;
  text-align: center;
}

.result-type {
  background: #E88E2B;
}

.result-p {
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 30px;
  color: #333333;
}

.result-pi {
  padding-left: 16px;
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 26px;
  color: #555;
  position: relative;
  margin-bottom: 14px;
}

.result-pi::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: rgba(243, 97, 97, 0.60);
  border-radius: 2px;
  position: absolute;
  top: 7px;
  left: 0;
}

.two::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: rgba(130, 119, 242, 0.60);
  border-radius: 2px;
  position: absolute;
  top: 7px;
  left: 0;
}

.result-tp {
  padding-left: 16px;
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 30px;
  color: #009BB6;
  position: relative;
  margin-bottom: 5px;
}

.result-tp::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: #009BB6;
  border-radius: 2px;
  position: absolute;
  top: 7px;
  left: 0;
}

.result-p2 {
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 30px;
  color: #555555;
  margin-bottom: 16px;
}

table {
  /* border-collapse: collapse; */
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border-top: 1px solid #CCCCCC;
  border-left: 1px solid #CCCCCC;
}

/* tbody{
  border: 1px solid black;
} */

td {
  border-right: 1px solid #CCCCCC;
  border-bottom: 1px solid #CCCCCC;
  width: 65px;
  height: 65px;
  text-align: center;
  vertical-align: middle;
  font-size: 22px;
  font-weight: 400;
  color: #4097F4;
  cursor: pointer;
}

.tablebox {
  position: relative;
}

.error{
  display: none;
  background: rgba(0,0,0,0.5);
  padding: 10px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  white-space: nowrap;
}

.highlight {
  background-color: #4097F4;
  color: #fff;
}

.howtime{
  font-size: 22px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 30px;
  color: #333333;
  text-align: center;
  margin: 25px auto 20px;
}

#start{
  width: 112px;
  height: 40px;
  background: #4097F4;
  border-radius: 4px;
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 40px;
  color: #FFFFFF;
  margin: 0 auto;
  display: block;
}

table tr:first-of-type td:first-of-type {
  border-top-left-radius: 8px;
}

table tr:first-of-type td:last-of-type {
  border-top-right-radius: 8px;
}

table tr:last-of-type td:first-of-type {
  border-bottom-left-radius: 8px;
}

table tr:last-of-type td:last-of-type {
  border-bottom-right-radius: 8px;
}

.refer{
background: #fff;
border-radius: 8px;
padding: 24px 12px;
width: 93.6%;
margin: 12px auto;
}

.refer-title{
font-size: 20px;
font-family: Source Han Sans CN;
font-weight: bold;
line-height: 30px;
color: #333333;
text-align: center;
padding-bottom: 15px;
border-bottom: 1px solid #CCCCCC;
}

.refer-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #CCCCCC;;
}

.refer-item:nth-last-of-type(1){
  border-bottom:  none;
  padding-bottom: 0;
}

.tohow-text{
  width: 150px;
  text-align: center;
  line-height: 30px;
  color: #555555;
}

.age{
color: #4097F4;
font-weight: 600;
}





@media (min-width:500px) {
  .img-item {
    width: 500px;
    margin: 0 auto;
  }

  .top {
    width: 500px;
  }

  .begain-text {
    width: 500px;
  }

  .item {
    width: 500px;
  }

  .result {
    width: 500px;
    margin: 12px auto;
  }

  .textbox {
    width: 500px;
    margin: 0 auto;
  }

  .refer{
    width: 500px;
  }
}