@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;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  height: var(--app-height);
  background-color: #e3e3e3;
  font-size: calc(var(--app-height) / 100);
  font-family:'PingFangSC-Regular', 'Microsoft YaHei', '微软雅黑','Arial', 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;
}
input{
  font-family:'PingFangSC-Regular', 'Microsoft YaHei', '微软雅黑','Arial', sans-serif;
}
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: block;
  height: 60%;
}
.brand-img {
  display: block;
  height: 100%;
}
.header-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4vh;
  height: 40%;
  cursor: pointer;
}
.header-btn .btn-img {
  display: 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* 47.5), 95vw); 
  height: min(calc(var(--app-height) / 100* 30),calc(95vw / 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: 94%;  
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 100%;
  background-image: url('../img/wap/slogon_2.png');
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.form-content {
  display: grid;
  grid-template-rows: minmax(0,1fr) minmax(0,1fr);
  gap: 1.5vh;
  padding: 3vh 5.2vh 2.4vh;
  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;
  vertical-align: middle;
}
.form-btn {
  display: grid;
  grid-template-rows: minmax(0,1fr) minmax(0,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 span {
  font-size: 2vh;
  font-weight: 600;
  color: #da0b1e;
}
.form-btn .btn.-img{
  width: 100%;
  min-height: 0;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  /* 只有按鈕背景是圖片,文字是img tag */
  /* background-image: url('../img/btn-bg.png');  */
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  
}
.form-btn .btn.-img:nth-child(1n){
  background-image: url('../img/wap/btn-1.png');
}
.form-btn .btn.-img:nth-child(2n){
  background-image: url('../img/wap/btn-2.png');
}
.form-btn .btn.-img:nth-child(3n){
  background-image: url('../img/wap/btn-3.png');
}
.form-btn .btn.-img:nth-child(4n){
  background-image: url('../img/wap/btn-4.png');
}
.form-btn .btn.-img:nth-child(1n):hover{
  background-image: url('../img/wap/btn-1-hover.png');
}
.form-btn .btn.-img:nth-child(1n):focus{
  background-image: url('../img/wap/btn-1-hover.png');
}
.form-btn .btn.-img:nth-child(1n):active{
  background-image: url('../img/wap/btn-1-hover.png');
}
.form-btn .btn.-img:nth-child(2n):hover{
  background-image: url('../img/wap/btn-2-hover.png');
}
.form-btn .btn.-img:nth-child(2n):focus{
  background-image: url('../img/wap/btn-2-hover.png');
}
.form-btn .btn.-img:nth-child(2n):active{
  background-image: url('../img/wap/btn-2-hover.png');
}
.form-btn .btn.-img:nth-child(3n):hover{
  background-image: url('../img/wap/btn-3-hover.png');
}
.form-btn .btn.-img:nth-child(3n):focus{
  background-image: url('../img/wap/btn-3-hover.png');
}
.form-btn .btn.-img:nth-child(3n):active{
  background-image: url('../img/wap/btn-3-hover.png');
}
.form-btn .btn.-img:nth-child(4n):hover{
  background-image: url('../img/wap/btn-4-hover.png');
}
.form-btn .btn.-img:nth-child(4n):focus{
  background-image: url('../img/wap/btn-4-hover.png');
}
.form-btn .btn.-img:nth-child(4n):active{
  background-image: url('../img/wap/btn-4-hover.png');
}

/* 只有按鈕背景是圖片,文字是img tag */
.form-btn .btn .btn-img-text{
  display: block;
  width: auto;
  height: 100%;
}
/* .form-btn .btn.-img:hover{
  background-image: url('../img/btn-bg-hover.png');
}
.form-btn .btn.-img:focus{
  background-image: url('../img/btn-bg-hover.png');
}
.form-btn .btn.-img:active{
  background-image: url('../img/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: 88%;
  }
  .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* 69.7), 96vw);
    height: min(calc(var(--app-height) / 100* 38.6),calc(96vw / 1.425)); 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  .form-content {
    width: 100%;
    height: 100%;
    padding: 7.5% 9.2% 3.3%;
    border-radius: 1.5vh;
  }
  .form-input {
    width: 67%;
    height: 92%;
    padding: 0% 2%;
    border-radius: 1.5vh;
  }
  .form-input input {
    width: 100%;
    font-size: 2.5vh;
  }
  .form-item {
    height: 100%;
    padding-top: 2%;
  }
  .form-title {
    width: 33%;
    height: auto;
  }
  .form-title img {
    width: 100%;
    height: auto;
  }
  .form-btn {
    margin-top: 5%;
  }
  .form-btn .btn {
    height: 100%;
    padding: 6% 8%;
    border-radius: 1.5vh;
  }
  .form-btn .btn span{
    font-size: 3vh;
  }
  .form-btn .btn.-img:nth-child(1n){
  background-image: url('../img/btn-1.png');
  }
  .form-btn .btn.-img:nth-child(2n){
    background-image: url('../img/btn-2.png');
  }
  .form-btn .btn.-img:nth-child(3n){
    background-image: url('../img/btn-3.png');
  }
  .form-btn .btn.-img:nth-child(4n){
    background-image: url('../img/btn-4.png');
  }
  .form-btn .btn.-img:nth-child(1n):hover{
    background-image: url('../img/btn-1-hover.png');
  }
  .form-btn .btn.-img:nth-child(1n):focus{
    background-image: url('../img/btn-1-hover.png');
  }
  .form-btn .btn.-img:nth-child(1n):active{
    background-image: url('../img/btn-1-hover.png');
  }
  .form-btn .btn.-img:nth-child(2n):hover{
    background-image: url('../img/btn-2-hover.png');
  }
  .form-btn .btn.-img:nth-child(2n):focus{
    background-image: url('../img/btn-2-hover.png');
  }
  .form-btn .btn.-img:nth-child(2n):active{
    background-image: url('../img/btn-2-hover.png');
  }
  .form-btn .btn.-img:nth-child(3n):hover{
    background-image: url('../img/btn-3-hover.png');
  }
  .form-btn .btn.-img:nth-child(3n):focus{
    background-image: url('../img/btn-3-hover.png');
  }
  .form-btn .btn.-img:nth-child(3n):active{
    background-image: url('../img/btn-3-hover.png');
  }
  .form-btn .btn.-img:nth-child(4n):hover{
    background-image: url('../img/btn-4-hover.png');
  }
  .form-btn .btn.-img:nth-child(4n):focus{
    background-image: url('../img/btn-4-hover.png');
  }
  .form-btn .btn.-img:nth-child(4n):active{
    background-image: url('../img/btn-4-hover.png');
  }
  .bottom-bg {
    display: none;
  }
  .footer {
    display: block;
  }
}
