* {
  padding: 0;
  margin: 0;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

/* Chrome / Edge / Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #222222;
  caret-color: #222222;
  box-shadow: 0 0 0 1000px transparent inset;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-out 0s;
}

/* Firefox */
input:-moz-autofill {
  box-shadow: 0 0 0 1000px transparent inset;
  -moz-text-fill-color: #222222;
}

#pc-bg,
#auth-bg {
  object-fit: contain;
  object-position: center;
}

.container {
  display: flex;
  justify-content: center;
  position: relative;
  transition: all 0.3s;
  transform: scale(1);
  transform-origin: center;
}

.img {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.img-div {
  width: 648px;
  height: 540px;
  background: rgba(255, 255, 255, 0.349);
  border-radius: 4px 0px 0px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-div img {
  height: 72px;
}

.login-container {
  display: flex;
  align-items: center;
  text-align: center;
}

.title {
  width: 100%;
  font-size: 20px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  color: #ffa045;
  margin: 79px 0 60px 0;
}

form {
  width: 408px;
  height: 540px;
  background: #ffffff;
  border-radius: 0px 4px 4px 0px;
  padding: 0px 5%;
}

form h2 {
  font-size: 2.9rem;
  text-transform: uppercase;
  margin: 15px 0;
  color: #333;
}

.input-div {
  width: 100%;
  position: relative;
  /*图标，输入框*/
  /* margin: 19px 0; */
  padding: 5px 0;
  border-bottom: 2px solid #d9d9d9;
}

.input-div:before,
.input-div:after {
  content: '';
  position: absolute;
  /*相对于上级元素（一般是父元素）进行偏移*/
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #38d39f;
  transition: 0.3s;
}

.input-div:after {
  right: 50%;
}

.input-div:before {
  left: 50%;
}

/*聚焦时图标的样式*/
.input-div.focus .i i {
  color: #38d39f;
}

/*聚焦时输入框小标题的样式*/
.input-div.focus div h5 {
  top: -5px;
  font-size: 15px;
}

.input-div.focus:after,
.input-div.focus:before {
  width: 50%;
}

.input-div.one {
  margin-top: 0;
}

.input-div.two {
  margin-bottom: 4px;
}

.error-msg {
  color: red;
  font-size: 12px;
  text-align: left;
  margin-top: 5px;
}

.i {
  display: flex;
  justify-content: center;
  align-items: center;
}

.i i {
  color: #d9d9d9;
  transition: 0.3s;
}

.success a {
  font-size: 18px;
  font-weight: 400;
  color: #333333;
}

.success i {
  color: #38d39f;
  font-size: 10rem;
}

.block,
.success,
.error {
  display: none;
}

.error i {
  color: #da0e2a;
  font-size: 10rem;
}

.error a {
  font-size: 17px;
  color: #ffa045;
  display: inline;
  text-decoration: revert;
}

.error a:hover {
  color: #ffa045;
}

.input-div > div {
  position: relative;
  height: 45px;
}

#btn {
  position: absolute;
  color: #ffffff;
  right: 0;
  top: 7px;
  height: 31px;
  background: #ffa045;
  border-radius: 4px;
  border: 1px solid #ffa045;
  padding: 0 10px;
}

.input-div > div h5 {
  position: absolute;
  /*相对于上级元素（一般是父元素）进行偏移*/
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  /*聚焦时提示字上移*/
  color: #999;
  font-size: 18px;
  transition: 0.3s;
}

.input {
  /* position: absolute; */
  width: 100%;
  height: 100%;
  /* top: 0;
  left: 0; */
  border: none;
  outline: none;
  background: none;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  color: #555;
}

a {
  display: block;
  text-align: right;
  text-decoration: none;
  color: #999;
  font-size: 0.9rem;
  transition: 0.3s;
}

a:hover {
  color: #38d39f;
}

.btn {
  display: block;
  width: 100%;
  height: 42px;
  margin: 2rem 0;
  font-size: 0.8rem;
  outline: none;
  border: none;
  background: #ffa045;
  cursor: pointer;
  color: #fff;
  text-transform: uppercase;
  background-size: 200%;
  transition: 0.5s;
}

.btn:hover {
  background-position: right;
}

.bottom-font {
  font-size: 14px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  color: #333333;
  text-align: left;
}

.bottom-font a {
  text-decoration: none;
  color: #ffa045;
  display: inline;
}

input[type='checkbox'] {
  width: 13px;
  height: 13px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  line-height: 18px;
  position: relative;
  -webkit-appearance: none;
}

input[type='checkbox']::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  background: #fff;
  width: 100%;
  height: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
}

input[type='checkbox']:checked::before {
  content: '\2713';
  background-color: #fff;
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ffa045;
  background-color: #ffa045;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 3px;
  line-height: 14px;
}

@media only screen and (max-width: 1680px) {
  .img {
    display: none;
  }

  .btn {
    margin: 1.1rem 0;
  }

  form {
    height: 350px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
  }

  .login-container {
    width: 100%;
    padding: 10px;
    justify-content: center;
  }

  .bottom-font {
    width: 100%;
    text-align: left;
  }

  .title {
    /* display: none; */
    margin: 40px 0 30px 0;
  }
}

/* 横屏模式下的样式 */
@media screen and (orientation: landscape) and (max-width: 1680px) {
  .container {
    transform: scale(0.7);
    transform-origin: center;
  }
}

/* 视频模式 */
.video-container {
  width: 100vw;
  height: 100vh;
  background-color: #396892;
  display: flex;
  /* justify-content: center; */
  position: relative;
  flex-direction: column;
}

.video-title {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffa045;
  /* margin: 79px 0 60px 0; */
  margin: 50px 0 0 0;
}

#video-img {
  width: 50px;
  height: 35px;
  margin: 0 5%;
}

.video-doc {
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  margin: 5%;
}

#video {
  width: 100%;
  /* height: 100%; */
}

.countdown {
  /* width: 5%; */
  text-align: center;
  background-color: #ffffff;
  /* border-radius: 50%; */
  padding: 0 1%;

  /* 自适应宽度 */
  background: rgba(255, 255, 255, 0.349);
  border-radius: 10%;

  display: flex;
  justify-content: center;
  align-items: center;

  position: fixed;
  top: 2%;
  right: 6%;
}

/* portal新认证页面样式 */
#auth-bg {
  min-height: 100%;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 1400px;
  min-height: 100vh;
  padding: 0 40px;
  box-sizing: border-box;
}

.auth-card {
  position: relative;
  flex: 1;
  max-width: 490px;
  width: 100%;
  height: 427px;
  /* background: #fff; */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  transform: scale(1);
  transform-origin: center;
}

/* Tab切换 */
.auth-tabs {
  width: 100%;
  display: flex;
  position: relative;
  z-index: 3;
  height: 48px;
  border-radius: 12px 12px 0 0;

  background-color: #ffffff;
  background-image: linear-gradient(0deg, #fcf6f6 0%, #fbf2f1 100%);
  display: none;
  border: 0.5px solid #ffffff;
}

.tab-btn {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  color: #222222;
  position: relative;
  background: transparent;
}

.tab-selected {
  font-weight: 600;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  box-shadow:
    24px 37px 0 #ffffff,
    -24px 37px 0 0 #ffffff;
  top: -4px;
}

.tab-selected::before,
.tab-selected::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 100%;
  background: #ffffff;
}
.tab-selected::before {
  left: -6px;
  border-top-left-radius: 12px;
  transform: skewX(-15deg);
}
.tab-selected::after {
  right: -6px;
  border-top-right-radius: 12px;
  transform: skewX(15deg);
}

.not-selected {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.not-selected::before,
.not-selected::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 100%;
  background-color: #ffffff;
  background-image: linear-gradient(0deg, #fcf6f6 0%, #fbf2f1 100%);
}
.not-selected::before {
  left: 7px;
  border-bottom-left-radius: 12px;
  transform: skewX(15deg);
}
.not-selected::after {
  right: 7px;
  border-bottom-right-radius: 12px;
  transform: skewX(-15deg);
  z-index: 1;
}

/* 内容区 */
.auth-content {
  width: 100%;
  min-height: 301px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
}

.tab-content {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s;
}

.tab-content.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 微信认证内容 */
.wechat-box-pc {
  text-align: center;
}
.wechat-title {
  color: #3b3b3b;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}
#wechat-desc {
  color: #04bd69;
  text-align: center;
}

.wechat-box-mobile {
  margin: 10% 0;
}

.wechat-box-mobile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.wechat-box-mobile-icon .wifi,
.wechat {
  width: 64px;
  height: 64px;
}
.wechat-box-mobile-icon .switch {
  width: 18px;
  height: 16.37px;
  margin: 0 10%;
}

.wechat-box-mobile-text {
  text-align: center;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* 手机号认证内容 */
.phone-content {
  width: 100%;
}

.input-group {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  background-color: #f5f7fa;
  border-radius: 25px;
  padding: 10px 15px;
}

.input-code,
.input-phone {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: #333;
  font-size: 16px;
}

.input-code {
  width: 50%;
}

.clear-btn {
  width: 12px;
  height: 12px;
  display: none;
  cursor: pointer;
  margin: 0 10px;
}

.get-code-btn {
  color: #bc2f2c;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
  background: none;
  border: none;
  padding: 0;
}

#authAgree {
  width: 100%;
  display: none;
  animation: fadeIn 0.3s;
}

/* 协议 */
.auth-agree {
  width: 100%;
  min-height: 14px;
  margin: 10px 0 16px 0;
  /* display: flex; */
  align-items: flex-start;
  user-select: none;
  animation: fadeIn 0.3s;
}

.auth-agree-inner {
  display: flex;
  align-items: center;
}

#Declarationclause {
  color: #333333;
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
  align-items: center;
  flex-wrap: wrap;
}

.auth-agree-icon {
  width: 14px;
  height: 14px;
  margin-right: 2%;
  cursor: pointer;
}

.auth-agree a {
  color: #bc2f2c;
  text-decoration: underline;
  font-size: 12px;
  line-height: 12px;
  margin-left: 2px;
}

/* 按钮 */
.auth-btn {
  width: 100%;
  height: 46px;
  background: #bc2f2c;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 8px;
}

.disabled {
  opacity: 0.5;
}

/* 响应式：移动端适配 */
@media (max-width: 900px) {
  .auth-main {
    flex-direction: column;
    padding: 0 12px;
    min-height: 100vh;
    max-width: 100vw;
  }

  .auth-card {
    width: 100%;
    /* border-radius: 0; */
    box-shadow: none;
    margin-bottom: 3%;
    background-image: none;
  }

  .auth-agree-inner {
    justify-content: center;
  }

  #Declarationclause {
    display: contents !important;
  }

  .tab-btn {
    font-size: 18px;
  }
}

/* 极小屏适配 */
@media (max-width: 480px) {
  .auth-card {
    padding: 0;
  }

  .tab-btn {
    font-size: 16px;
  }
}

/* iPad竖屏：宽度768px，高度1024px，竖屏方向 */
@media screen and (max-width: 900px) and (min-width: 768px) and (orientation: portrait) {
  .auth-card {
    transform: scale(0.8);
    flex: none;
  }

  .auth-agree-inner {
    justify-content: flex-start;
  }

  #Declarationclause {
    display: flex !important;
  }
}

/* 横屏适配 */
@media screen and (orientation: landscape) and (min-width: 768px) and (max-width: 1366px) {
  .auth-card {
    transform: scale(0.8);
    border-radius: 20px;
  }
}

.auth-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #fa604830 0%, #cccccc00 100%);
}

.auth-logo-container {
  width: 80%;
  display: flex;
  align-items: center;
  position: absolute;
  top: 30px;
  left: 30px;
}

.auth-logo {
  width: 32px;
  height: 32px;
}

#authLogoText {
  color: #000000;
  font-size: 30px;
  font-weight: 500;
  margin-left: 15px;
}

/* PC端右上角切换按钮 */
.auth-switch-btn {
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.auth-switch-bg {
  background-image: url('../img/xinlimei/tips.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 5px 14px;
}
.auth-switch-text {
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #3b3b3b;
}

.switch-icon {
  display: inline-block;
  margin-left: 8px;
  width: 64px;
  height: 65px;
  background-size: contain;
  background-repeat: no-repeat;
}
.switch-icon.qr {
  background-image: url('../img/xinlimei/pc.png');
}
.switch-icon.pc {
  background-image: url('../img/xinlimei/qr.png');
}

.success,
.error {
  text-align: center;
  margin: auto;
}

.success div,
.error div {
  color: #333333;
  font-size: 18px;
  text-align: center;
  line-height: 18px;
  margin-top: 30px;
  margin-bottom: 16px;
}

.error a {
  display: block;
  text-align: left;
  color: #bc2f2c;
  font-size: 18px;
  line-height: 18px;
}

/* 弹窗 */
.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.fullscreen-modal-close {
  width: 100%;
  position: absolute;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 10px;
  /* background-color: #fff; */
}

.close-btn {
  width: 30px;
  height: 30px;
}

.fullscreen-modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: #fff;
  padding-bottom: 80px; */
}
