html {
  min-height: 100%;
  background-color: #fff;
}

:root {
  min-height: 100%;
  position: relative;
  background-color: #fff;
  background-image: url('/assets/img/bg1-1.png');
  background-repeat: repeat-x;
  background-position: top center;
  background-size: 100% auto;
}

:root.warn {
  background-position-y: 60px;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

.hint {
  padding-bottom: 60px;
}

.hint > div {
  color: #ff5722;
  border: 1px solid #faebcc;
  background-color: #fcf8e3;
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99;
  box-shadow: 0 2px 5px #faebcc;
}

.main {
  padding: 72px 16px 120px;
  max-width: 480px;
  margin: 0 auto;
}

.icon img {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.title {
  font-size: 22px;
  padding-top: 12px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.02em;
}

.version {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

.split {
  color: #ccc;
  font-size: 10px;
  padding: 0 8px;
  vertical-align: middle;
}

.qrcode {
  position: relative;
  line-height: 0;
  display: inline-block;
}

.qrcode #qrImg {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  padding: 6px;
  border-radius: 6px;
}

.qrcode .qr-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1px;
  border: 1px solid #e5e5e5;
  background-color: #fff;
}

.mt-1 { margin-top: 1em; }
.pt-2 { padding-top: 1.5em; }
.pt-3 { padding-top: 2.5em; }

.footer {
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f7f7f7;
}

.copyright {
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.hide { display: none !important; }
.center { text-align: center; }

.succ { color: #1abc9c; font-size: 14px; }

.install .layui-btn {
  min-width: 220px;
  height: 44px;
  line-height: 42px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}

.install .layui-btn-primary {
  background-color: #fff;
}

.layui-border-blue {
  border-color: #1e9fff !important;
  color: #1e9fff !important;
}

.layui-border-blue:hover {
  background-color: rgba(30, 159, 255, 0.06) !important;
}

.layui-btn-disabled,
.layui-btn-disabled:hover {
  color: rgba(0, 0, 0, 0.25) !important;
  background-color: #f5f5f5 !important;
  border-color: #ddd !important;
  cursor: not-allowed !important;
}

@media (min-width: 769px) {
  .main {
    padding-top: 140px;
    padding-bottom: 160px;
  }

  .icon img {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 768px) {
  :root {
    background-image: url('/assets/img/bg1.png');
  }
}

@media (prefers-color-scheme: dark) {
  html {
    background-color: #191919;
  }

  :root {
    background-image: url('/assets/img/bg1-1-dark.png');
    background-color: #191919;
  }

  body { color: rgba(255, 255, 255, 0.7); }
  .title { color: #eee; }
  .copyright { color: #888; }
  .footer { background-color: rgba(255, 255, 255, 0.04); }
  .icon img { background: #222; opacity: 0.9; }
  .layui-btn-primary { background-color: rgba(51, 51, 51, 0.85); }
  .qrcode #qrImg { opacity: 0.85; border-color: #444; }
  .qrcode .qr-icon { background-color: #666; filter: brightness(0.8); }
}

@media (prefers-color-scheme: dark) and (max-width: 768px) {
  :root {
    background-image: url('/assets/img/bg1-dark.png');
  }
}
