#loginform .os-login-box {
  margin-bottom: 15px;
}
.os-bind-box .os-icon-bind {
  filter: alpha(opacity=20);
  -moz-opacity: 0.2;
  -khtml-opacity: 0.2;
  opacity: 0.2;
}
.os-bind-box .os-icon-bind:hover {
  filter: alpha(opacity=60);
  -moz-opacity: 0.6;
  -khtml-opacity: 0.6;
  opacity: 0.6;
}
.os-show {
  display: block;
  padding-left: 10px;
  margin-bottom: 20px;
  margin-left: 5px;
  border-left: 2px solid gray;
}
.os-hide {
  color: #aaa;
  font-style: italic;
  font-weight: bold;
}
.os-icon-gray {
  color: #666;
}
.os-preview-box {
  padding: 10px 12px;
  border: 1px solid #ccc;
  display: inline-block;
  border-radius: 5px;
  background: #fff;
  max-width: 500px;
}
#wpos_setting code {
  border-radius: 3px;
}

#error-page {
  min-height: 320px;
}
#error-page h1 {
  margin-top: -8px;
}
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  -webkit-text-size-adjust: 100% !important;
  background-color: #f4f5f7;
}

/* ==========================================
   【电脑端默认】现代化居中卡片式布局（终极优雅）
   ========================================== */
.os-user-form {
  font-size: 14px;
  position: relative;
  max-width: 460px !important;
  margin: 60px auto !important;
  padding: 40px 36px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
  box-sizing: border-box !important;
}

/* 彻底废弃旧版丑陋的左右浮动与竖线 */
.os-user-form .line {
  display: none !important;
}
.os-user-form .right {
  float: none !important;
  margin: 0 auto 16px auto !important;
  text-align: center !important;
}
.os-user-form .left {
  width: 100% !important;
  float: none !important;
}

/* 头像居中美化 */
.os-user-form .avatar img {
  border-radius: 50% !important;
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto !important;
}

.os-user-form input.err {
  border: #ef4444 solid 2px !important;
  outline: none;
}

.os-user-form .label {
  margin: 16px 0 6px !important;
}
.os-user-form .desc {
  font-weight: 600;
  color: #374151;
  font-size: 13px;
}

.os-user-form .desc,
.os-user-form .input {
  font-size: 13px;
  margin: 4px 0 6px;
}

.os-user-form .input input,
.os-user-form input[type="text"],
.os-user-form input[type="email"],
.os-user-form input[type="password"] {
  font-size: 16px !important; /* 核心：防止 ios safari 点击输入框时自动放大 */
  width: 100% !important;
  height: 44px !important;
  padding: 0 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: all 0.2s ease;
}

.os-user-form .input input:focus {
  border-color: #0071e3 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.os-user-form p {
  margin: 16px 0 !important;
}

/* 电脑端：专业通用科技蓝商务按钮 */
.os-user-form .button-primary .button,
.os-user-form input[type="submit"] {
  width: 100% !important;
  height: 44px !important;
  background: #0071e3 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
  transition: background 0.2s;
  margin-top: 8px !important;
}
.os-user-form .button-primary .button:hover,
.os-user-form input[type="submit"]:hover {
  background: #005bb5 !important;
}

#os_wechat_login_qrcode iframe {
  width: 190px;
  height: 190px;
}

@-ms-viewport {
  width: device-width;
}
@viewport {
  width: device-width;
}

/* ==========================================
   【手机端专属优化】（<=600px）单屏不滚动 + 微信绿按钮
   ========================================== */
@media screen and (max-width: 600px) {
  html, body {
    background-color: #ffffff !important;
  }
  #error-page {
    margin: 0;
  }
  .os-user-form {
    max-width: 100% !important;
    margin: 2px auto !important;
    padding: 10px 16px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .os-user-form .avatar img {
    width: 52px !important;
    height: 52px !important;
    margin: 0 auto 4px auto !important;
  }
  .os-user-form .input input {
    width: 100% !important;
    height: 38px !important;
  }
  .os-user-form .label {
    margin: 6px 0 2px !important;
  }
  .os-user-form p {
    margin: 6px 0 !important;
  }
  /* 手机端：微信绿按钮 */
  .os-user-form .button-primary .button,
  .os-user-form input[type="submit"] {
    width: 100% !important;
    height: 40px !important;
    background: #07c160 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.25) !important;
  }
}

#os-popup-overlay {
  width: 100%;
  height: 100%;
  filter: alpha(opacity=50);
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  opacity: 0.5;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  display: none;
}
#os-popup-box {
  display: none;
  position: fixed;
}
.os-popup-box {
  -webkit-box-shadow: 5px 5px 10px #00000080;
  -moz-box-shadow: 5px 5px 10px #00000080;
  box-shadow: 5px 5px 10px #00000080;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  color: #666;
  background: #fff;
  z-index: 5000;
  cursor: pointer;
}
#os-popup-title {
  font-weight: bold;
  padding: 10px;
  font-size: 14px;
  line-height: 1.8;
  border-bottom: #ccc solid 1px;
  width: 280px;
  white-space: nowrap;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  overflow: hidden;
}
#os-popup-title .os-icon {
  float: left;
  margin: 0px 5px 0px 1px;
  line-height: 100%;
}
#os-popup-title span {
  line-height: 100%;
  font-size: 18px;
  padding: 0px 2px 0px 5px;
  float: right;
}
#os-popup-content {
  margin: 10px;
  line-height: 0px;
}
#os-popup-content canvas {
  margin: 15px;
}
.os-share-native {
  font-size: 75px !important;
  color: #fff;
}

/*===CUSTOMIZE UNDER===*/

.os-login-box, .os-share-box {
  clear: both;
  line-height: 30px;
}

.os-icon {
  font-size: 24px;
  font-style: normal !important;
  font-weight: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  cursor: pointer;
}

.os-icon svg {
  width: 1em;
  height: 1em;
  overflow: hidden;
  vertical-align: -0.15em;
  fill: currentColor;
  -webkit-border-radius: 22%;
  -moz-border-radius: 22%;
  border-radius: 22%;
}

.os-icon {
  margin: 3px 5px 3px 1px;
}

.os-login-box .os-icon {
  font-size: 32px;
}

.os-login-box .os-icon svg {
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.os-share-box .os-icon {
  font-size: 23px;
}

.os-share-box .os-icon svg {
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}
