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

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #f4efe6;
  color: #1a1a1a;
}

.jw-install-page {
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  /* 整张背景完整铺满手机屏幕，不裁切 */
  background-color: #f4efe6;
  background-image: url("/static/jw-app-install-bg.png?v=20260716spa1");
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.jw-install-page::before {
  display: none;
}

.jw-install-head {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  margin-top: 8px;
}

.jw-install-spacer {
  flex: 0 0 auto;
  width: 100%;
  height: 8vh;
  height: 8dvh;
  min-height: 0;
  max-height: 72px;
  pointer-events: none;
}

.jw-install-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  object-fit: cover;
  background: #0b1220;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.jw-install-title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111;
  text-shadow: 0 1px 12px #fff, 0 0 3px #fff;
}

.jw-install-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #333;
  text-align: center;
  line-height: 1.45;
  text-shadow: 0 1px 10px #fff, 0 0 2px #fff;
}

.jw-install-card {
  width: 100%;
  max-width: 420px;
  flex-shrink: 0;
  margin: 0;
  padding: 0 16px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  position: relative;
  z-index: 5;
  /* 对准背景「有你刚刚好」附近 */
  transform: translateY(6vh);
}

.jw-install-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.jw-install-steps li {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-shadow: 0 1px 8px #fff, 0 0 2px #fff;
}

.jw-install-steps li.is-active {
  color: #e11d48;
  background: transparent;
}

.jw-install-steps li.is-done {
  color: #16a34a;
  background: transparent;
}

.jw-install-status {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  color: #1f1f1f;
  text-shadow: 0 1px 10px #fff, 0 0 3px #fff;
}

.jw-install-device {
  margin-top: 4px;
  font-size: 12px;
  color: #be123c;
  text-align: center;
  font-weight: 700;
  min-height: 16px;
  text-shadow: 0 1px 8px #fff;
}

.jw-install-phoneid {
  margin-top: 2px;
  font-size: 11px;
  color: #333;
  text-align: center;
  word-break: break-all;
  min-height: 14px;
  text-shadow: 0 1px 8px #fff;
}

.jw-install-count {
  margin-top: 6px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #e11d48;
  line-height: 1;
  text-shadow: 0 1px 10px #fff;
}

.jw-install-done .jw-install-count {
  color: #16a34a;
  font-size: 30px;
}

.jw-install-done .jw-install-status {
  color: #166534;
}

.jw-install-done .jw-install-bar {
  background: transparent;
}

.jw-install-bar-wrap {
  display: none;
}

.jw-install-bar {
  display: none;
}

.jw-install-actions {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.jw-install-actions--only {
  margin-top: 0;
}

.jw-install-btn {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 4px 6px;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: 0 1px 10px #fff, 0 0 3px #fff;
}

.jw-install-btn-primary {
  color: #e11d48;
}

.jw-install-btn-trust {
  color: #0f766e;
}

.jw-install-btn-secondary {
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 700;
}

.jw-install-btn-attention {
  animation: jw-install-pulse 0.9s ease-in-out infinite;
}

@keyframes jw-install-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.85; }
}

.jw-install-trust-panel {
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.jw-install-trust-panel[hidden] {
  display: none !important;
}

.jw-install-trust-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f766e;
  text-align: center;
  text-shadow: 0 1px 8px #fff;
}

.jw-install-trust-list {
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: #222;
  margin-bottom: 12px;
  text-shadow: 0 1px 8px #fff;
}

.jw-install-trust-note {
  font-size: 11px;
  line-height: 1.55;
  color: #444;
  margin: -4px 0 12px;
  text-align: center;
  text-shadow: 0 1px 8px #fff;
}

.jw-install-wechat-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 24px;
  display: none;
}

.jw-install-wechat-mask.show {
  display: block;
}

.jw-install-wechat-arrow {
  position: absolute;
  top: 12px;
  right: 28px;
  width: 72px;
  height: 72px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  transform: rotate(-45deg);
}

.jw-install-wechat-text {
  margin-top: 96px;
  font-size: 18px;
  line-height: 1.8;
}

.jw-install-channel {
  margin-top: 10px;
  font-size: 11px;
  color: #444;
  text-align: center;
  text-shadow: 0 1px 10px #fff;
  z-index: 2;
  position: relative;
}

@media (min-width: 520px) {
  .jw-install-spacer {
    height: 10vh;
    max-height: 90px;
  }
}
