* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont;
}

body {
  background: linear-gradient(180deg, #f5f7fa, #e4e9f0);
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 防止未挂载时闪烁 */
[v-cloak] {
  display: none !important;
}

.container {
  width: 360px;
}

.tip {
  text-align: center;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 12px;
}

.progress {
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.bar {
  height: 100%;
  width: 20%;
  background: #5b8cff;
  transition: width .3s;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  animation: fadeUp .4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.options {
  display: flex;
  flex-direction: column;
}

.option {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #f3f5f7;
  cursor: pointer;
  transition: all .15s;
}

.option:hover {
  transform: translateY(-2px);
  background: #eef3ff;
}

.option.selected {
  background: #5b8cff;
  color: #fff;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #5b8cff;
  color: #fff;
}

.btn-secondary {
  background: #f3f5f7;
}

.btn.disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Popup */
.popup-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.popup {
  width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  text-align: center;
}

.popup h3 {
  margin: 0 0 6px;
}

.popup p {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.popup-actions .btn {
  width: 100%;
}

/* Radar */
.radar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.radar img {
  width: 140px;
  height: 140px;
  display: block;
}

.radar .fallback {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-radius: 8px;
}

.radar-text {
  color: #fff;
  font-size: 13px;
  margin-top: 6px;
}

/* step header */
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.step-title {
  font-weight: 600;
  color: #333;
}

.step-circles {
  display: flex;
  gap: 6px;
}

.circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
}

.circle.active {
  background: #5b8cff;
  color: #fff;
}

.final {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  text-align: center;
}

.cta .app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  /* background: #5b8cff; */
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
}

.cta .app-btn img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
}

.notice {
  color: #888;
  font-size: 12px;
  margin-bottom: 8px;
}

/* 背景图：三步切换（统一为直接设置在 body 上，避免 ::before 被默认背景遮挡） */
body.bg1 {
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.6)), url('../img/bg1.jpg') center/cover no-repeat;
  background-attachment: fixed;
}
body.bg2 {
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)), url('../img/bg2.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

body.bg3 {
  background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)), url('../img/bg3.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

/* @media (max-width: 420px) {
  .container {
    width: 92%;
  }
} */

/* 加载遮罩层 */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-content {
  text-align: center;
  color: #fff;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}