@import url('./reset.css');
@import url('./modal.css');

* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;
}

input {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;
}

input:focus {
  outline: none;
}

html,
body {
  height: -webkit-fill-available;
  height: fill-available;
  overflow: hidden !important;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  height: var(--app-height);
  background-color: #e3e3e3;
  font-size: calc(var(--app-height) / 100);
  font-family: 'Segoe UI', Arial, 'Microsoft YaHei', 微软雅黑, sans-serif;
  -moz-user-select: none;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
}

a {
  text-decoration: none;
}

div::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  width: var(--app-width);
  height: 100%;
  margin: 0 auto;
  background-image: url('../img/wap/bg.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.header {
  display: flex;
  justify-content: center;
  height: 8%;
  padding: 0 4%;
  background-color: #000;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8%;
  background-color: #000;
}

.header-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  /* width: 51.724vh; */
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-center {
  display: flex;
  align-items: center;
  height: 100%;
  margin: auto;
}

.header-brand {
  display: inline-block;
  height: 60%;
}

.brand-img {
  display: inline-block;
  height: 100%;
}

.header-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4vh;
  height: 40%;
  cursor: pointer;
}

.header-btn .btn-img {
  display: inline-block;
  height: 100%;
}

.layout-main {
  overflow: hidden;
  flex: 1;
  display: grid;
  /* grid-template-rows: 30% 35% 35%; */
  grid-template-rows: minmax(0, calc(var(--app-height) / 100* 30)) minmax(0, calc(var(--app-height) / 100* 35)) minmax(0, calc(var(--app-height) / 100* 35));
  /* grid-template-columns: 3vh 1fr 3vh; */
  /* grid-template-areas:
    '. slogon .'
    '. main-content .'
    'bottom-bg bottom-bg bottom-bg'; */
  grid-template-areas:
    'slogon'
    'main-content'
    'bottom-bg';
  width: min(calc(var(--app-height) / 100* 60), 96vw);
  margin: auto;
  position: relative;
  justify-content: center;
}

.main-content {
  grid-area: main-content;
  position: relative;
  display: flex;
  justify-content: center;
  width: min(calc(var(--app-height) / 100* 60), 90vw);
  height: min(calc(var(--app-height) / 100* 30), calc(90vw / 1.425));
  margin: 0 auto;
}

.bottom-bg {
  display: flex;
  justify-content: center;
  grid-area: bottom-bg;
  width: var(--app-width);
  height: 100%;
  margin: 0 auto;
  max-width: fit-content;
}

.bottom-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.slogon {
  grid-area: slogon;
  position: absolute;
  bottom: 90%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  /* height: 100%; */
  aspect-ratio: 10 / 7;
  background-image: url('../img/wap/slogon_2.png');
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  touch-action: manipulation;
  user-select: none;
  pointer-events: none;
}

.form-content {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1vh;
  padding: 4vh 3vh 1.5vh;
  border-radius: 1vh;
  background-image: linear-gradient(to bottom, #fdf2e2, #e5c884);
  margin: 0 auto;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.form-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 50%;
  max-height: 50%;
}

.form-title {
  display: flex;
  align-items: center;
  height: 90%;
  width: 34%;
}

.form-title img {
  display: block;
  height: auto;
  width: 100%;
}

.form-input {
  display: flex;
  justify-content: center;
  flex: 1;
  max-height: 100%;
  height: 80%;
  border-radius: 1vh;
  border: 1px solid #aa8564;
  color: #7f6f6f;
  background-color: #ffffff;
}

.form-input input {
  width: 90%;
  padding-block: 0px;
  padding-inline: 0px;
  background-color: transparent;
  border: none;
  font-size: 2vh;
}

.form-btn {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 1vh;
}

.form-btn .btn {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  border-radius: 1vh;
  border: 1px solid #cc952c;
  background-image: linear-gradient(to bottom, #fff98d, #ffca5b);
  cursor: pointer;
  transition: all 0.5s ease;
}

.form-btn .btn:hover {
  background-image: linear-gradient(to top, #fff98d, #ffca5b);
}

.form-btn .btn:focus {
  background-image: linear-gradient(to top, #fff98d, #ffca5b);
}

.form-btn .btn:active {
  background-image: linear-gradient(to top, #fff98d, #ffca5b);
}


/* .form-btn .btn:hover:after {
	content:'';
  position: absolute;
	z-index:1;
  top:0;
	transform:translateX(100%);
	width:100%;
	height:220px;
	animation: slide 0.8s ease-in-out;
	background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); 
} */
@keyframes slide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.form-btn .btn span {
  font-size: 2vh;
  font-weight: 600;
  color: #da0b1e;
}

.form-btn .btn-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  cursor: pointer;
  overflow: hidden;
  cursor: pointer;
  background-image: url('../img/wap/btn-bg.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.form-btn .btn-img span {
  font-size: 2vh;
  font-weight: 600;
  color: #da0b1e;
}

.form-btn .btn-img:hover {
  background-image: url('../img/wap/btn-bg-hover.png');
}

.form-btn .btn-img:focus {
  background-image: url('../img/wap/btn-bg-hover.png');
}

.form-btn .btn-img:active {
  background-image: url('../img/wap/btn-bg-hover.png');
}

.footer {
  display: none;
  height: 5vh;
}

.copy-right {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #000000;
}

.cr-text {
  padding: 0;
  margin: 0;
  font-size: 1.5vh;
  color: #ffffff;
}

@media (min-width: 640px) {
  body {
    background-image: none;
  }

  .wrapper {
    width: 100%;
    height: 100vh;
    background-image: none;
    background-color: #000;
  }

  .header {
    height: 9vh;
  }

  .header-brand {
    height: 80%;
  }

  .header-btn {
    height: 50%;
  }

  .header::before {
    background-color: transparent;
  }

  .header-content {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 620px;
    height: 100%;
  }

  .slogon {
    height: 20vh;
    background-image: url('../img/slogon@3x.png');
    bottom: 95%;
  }

  .layout-main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 86vh;
    padding-top: 5%;
    margin: auto;
    background-image: url('../img/bg-layout.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
  }

  .main-content {
    width: min(calc(var(--app-height) / 100* 80), 96vw);
    height: min(calc(var(--app-height) / 100* 35), calc(96vw / 1.425));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .form-content {
    /* display: flex;
    flex-direction: column; */
    width: 100%;
    padding: 8% 8% 4%;
    border-radius: 10px;
  }

  .form-input {
    width: 70%;
    height: auto;
    padding: 2.5% 2%;
    border-radius: 10px;
  }

  .form-input input {
    width: 100%;
    font-size: 1rem;
  }

  .form-item {
    height: 100%;
    padding-top: 2%;
  }

  .form-title {
    width: 30%;
    height: auto;
  }

  .form-title img {
    width: 100%;
    height: auto;
  }

  .form-btn {
    margin-top: 2%;
  }

  .form-btn .btn {
    height: 100%;
    padding: 6% 8%;
    border-radius: 10px;
  }

  .form-btn .btn span {
    font-size: 1.2rem;
  }

  .bottom-bg {
    display: none;
  }

  .footer {
    display: block;
  }
}

[v-cloak] {
  display: none;
}

.view-notes {
  cursor: pointer;
}

#pages {
  text-align: center;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
  background-color: rgb(227, 196, 146) !important;
}

.layui-layer-btn a {
  font-size: 0.8rem !important;
}