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

:root {
  --brand: #d70909;
  --brand-dark: #9b0707;
  --brand-soft: #fff1f1;
  min-height: 100%;
  position: relative;
  background-color: #fff;
  background-image:
    radial-gradient(920px 380px at 50% -60px, rgba(215, 9, 9, 0.22), transparent 68%),
    url('/assets/img/bg1-1.png');
  background-repeat: no-repeat, repeat-x;
  background-position: top center, top center;
  background-size: auto, 100% auto;
}

:root.warn {
  background-position-y: 0, 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: #d70909;
  border: 1px solid #f8d0d0;
  background-color: #fff4f4;
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(215, 9, 9, 0.08);
}

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

.icon img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(215, 9, 9, 0.28);
  background: #d70909;
}

.title {
  font-size: 24px;
  padding-top: 14px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  font-style: italic;
}

.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 #f0d0d0;
  padding: 6px;
  border-radius: 8px;
}

.qrcode .qr-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1px;
  border: 1px solid #f0d0d0;
  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(215, 9, 9, 0.08);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff7f7;
}

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

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

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

.install .layui-btn {
  min-width: 220px;
  height: 44px;
  line-height: 42px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.install .layui-btn-primary {
  background-color: var(--brand);
}

.layui-border-blue {
  border-color: var(--brand) !important;
  color: #fff !important;
  background-color: var(--brand) !important;
}

.layui-border-blue:hover {
  background-color: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  color: #fff !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:
      radial-gradient(720px 320px at 50% -40px, rgba(215, 9, 9, 0.2), transparent 70%),
      url('/assets/img/bg1.png');
  }
}

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

  :root {
    background-image:
      radial-gradient(920px 380px at 50% -60px, rgba(215, 9, 9, 0.35), transparent 68%),
      url('/assets/img/bg1-1-dark.png');
    background-color: #140808;
  }

  body { color: rgba(255, 255, 255, 0.72); }
  .title { color: #fff; }
  .copyright { color: #888; }
  .footer {
    background-color: rgba(215, 9, 9, 0.08);
    border-top-color: rgba(215, 9, 9, 0.18);
  }
  .icon img { background: #d70909; opacity: 1; }
  .layui-btn-primary { background-color: var(--brand); }
  .qrcode #qrImg { opacity: 0.92; border-color: #5a2020; }
  .qrcode .qr-icon { background-color: #2a1010; filter: none; }
}

@media (prefers-color-scheme: dark) and (max-width: 768px) {
  :root {
    background-image:
      radial-gradient(720px 320px at 50% -40px, rgba(215, 9, 9, 0.32), transparent 70%),
      url('/assets/img/bg1-dark.png');
  }
}
