:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  background: #f3f6fa;
  color: #0f172a;
  margin: 0;
}

.wechat-login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 28px 18px;
}

.wechat-login-card {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  max-width: 430px;
  padding: 32px;
  text-align: center;
  width: 100%;
}

.brand {
  background: #0b1b3d;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 9px 18px;
}

h1 {
  font-size: 25px;
  margin: 22px 0 0;
}

.message {
  color: #64748b;
  line-height: 1.65;
  margin: 10px 0 18px;
}

.qr-wrap {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  min-height: 298px;
  overflow: hidden;
  padding: 10px;
  position: relative;
  width: 298px;
}

.qr-wrap img {
  display: block;
  height: 276px;
  width: 276px;
}

.qr-mask {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  bottom: 0;
  color: #991b1b;
  display: flex;
  font-weight: 900;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.status {
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0;
  min-height: 21px;
}

.primary,
.secondary {
  align-items: center;
  border-radius: 9px;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  text-decoration: none;
  width: 100%;
}

.primary {
  background: #0b1b3d;
  border: 1px solid #0b1b3d;
  color: #fff;
  cursor: pointer;
}

.secondary {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  margin-top: 10px;
}

.security-note {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0 0;
}

.hidden { display: none !important; }

@media (max-width: 480px) {
  .wechat-login-card { padding: 26px 20px; }
  .qr-wrap { min-height: 270px; width: 270px; }
  .qr-wrap img { height: 248px; width: 248px; }
}
