:root {
  --bg-top: #d8ecff;
  --bg-bottom: #efe8ff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --border: rgba(43, 107, 243, 0.12);
  --text: #18345f;
  --text-muted: #5b7394;
  --accent: #2b6bf3;
  --accent-hover: #1f57d6;
  --accent-glow: rgba(43, 107, 243, 0.28);
  --pink: #ff5da2;
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 93, 162, 0.18), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(43, 107, 243, 0.16), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.hidden {
  display: none !important;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 36px 20px 48px;
  min-height: 100vh;
}

.hero {
  text-align: center;
  padding: 12px 0 28px;
}

.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow:
    0 16px 40px rgba(43, 107, 243, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.app-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.app-tagline {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

.app-version {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  opacity: 0.75;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(24, 52, 95, 0.06);
  backdrop-filter: blur(8px);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #4d84ff 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 10px 24px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #9db5df;
  box-shadow: none;
}

.hint {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.qr-card {
  text-align: center;
}

.qr-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.qr-wrap {
  display: inline-flex;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(43, 107, 243, 0.1);
}

.qr-wrap img {
  display: block;
}

.qr-sub {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.steps-card h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.step:last-child {
  margin-bottom: 0;
}

.step span {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 3px;
}

.footer {
  text-align: center;
  padding-top: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

.wechat-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(24, 52, 95, 0.88);
}

.wechat-guide {
  position: absolute;
  top: 16px;
  right: 24px;
  text-align: right;
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
}

.wechat-arrow {
  width: 60px;
  height: 60px;
  margin-left: auto;
  margin-bottom: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(-45deg) translate(10px, 10px);
}

.wechat-sub {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
}

@media (min-width: 768px) {
  .page {
    padding-top: 48px;
  }
}
