/* 星速直达 - 引导页样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(60% 40% at 20% 0%, rgba(38, 70, 140, .35), transparent 70%),
    radial-gradient(50% 35% at 85% 100%, rgba(24, 90, 110, .28), transparent 70%),
    #0b1020;
  color: #eef2fb;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px calc(20px + env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  padding: 34px 26px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

/* 顶部环境提示胶囊 */
.env-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #aebadd;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.env-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ffb020;
}
.env-pill.ok .dot { background: #30d158; }

.brand { margin-bottom: 14px; }

h1 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(230, 238, 252, .62);
  margin-bottom: 26px;
}

/* 自动跳转状态行 */
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  color: #c4d2f0;
  min-height: 48px;
}
.spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: #4d8dff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 按钮区 */
.actions { margin-top: 4px; }
.actions.hidden, .status.hidden, .env-pill.hidden { display: none; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  border: none;
}
.btn.primary {
  background: #0a84ff;
  color: #fff;
  box-shadow: 0 8px 22px rgba(10, 132, 255, .32);
}
.btn.primary:active { background: #0873dd; }
.btn.ghost {
  margin-top: 12px;
  background: rgba(255, 255, 255, .07);
  color: #dfe8fa;
  border: 1px solid rgba(255, 255, 255, .12);
}
.btn.ghost:active { background: rgba(255, 255, 255, .12); }

.tip {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(226, 234, 250, .55);
  margin-top: 16px;
}

.foot {
  margin-top: 26px;
  font-size: 12px;
  color: rgba(226, 234, 250, .32);
}

/* 复制成功提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(48px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(10px);
  background: rgba(28, 34, 52, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #eef2fb;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: 86vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 700px) {
  .card { padding: 44px 40px 38px; }
  h1 { font-size: 26px; }
}
