/* ══ 上拉引导面板（参考 silverharbor 结构）══ */
.bs-mask {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(10, 4, 18, 0.68);
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.bs-mask.show {
  display: flex;
  opacity: 1;
}

.bs-panel {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.985);
  border-radius: 26px 26px 0 0;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  max-height: min(92vh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.34);
}

.bs-mask.show .bs-panel {
  transform: translateY(0);
}

/* 拖动条 */
.bs-grip {
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  margin: 0 auto 15px;
}

/* 标题 */
.bs-title {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #1a1523;
  line-height: 1.25;
  text-align: left;
  letter-spacing: -0.2px;
}

.bs-sub {
  margin: 6px 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #6b6478;
}

/* 引导图 */
.bs-img {
  border-radius: 15px;
  overflow: hidden;
  background: #faf5ff;
  border: 1px solid #ece8f5;
  margin-bottom: 10px;
  line-height: 0;
}

.bs-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* 步骤 */
.bs-steps {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.bs-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 13px;
  background: #f8f6fc;
  border: 1px solid #ece8f5;
}

.bs-step .n {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fce7f3;
  color: #c026a3;
  font-size: 12px;
  font-weight: 900;
}

.bs-step p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #4a4356;
}

.bs-step b {
  color: #1a1523;
  font-weight: 800;
}

/* 主按钮（胶囊） */
.bs-btn {
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #ff3f8e 0%, #ff7a18 100%);
  box-shadow: 0 12px 26px rgba(225, 29, 120, 0.34);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bs-btn:active {
  transform: scale(0.985);
}

/* 跳过 */
.bs-skip {
  width: 100%;
  height: 40px;
  margin-top: 6px;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  color: #9b95a8;
  cursor: pointer;
}

/* 顶部浏览器工具栏示意 */
.bs-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 9501;
  background: #f7f5fb;
  border-bottom: 1px solid #e3dff0;
  display: none;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}

.bs-bar.show {
  display: flex;
}

.bs-bar-url {
  flex: 1;
  height: 31px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e3dff0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11.5px;
  color: #8a8398;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bs-bar-menu {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #1a1523;
  background: #ece8f5;
  animation: bs-pulse 1.5s ease-in-out infinite;
}

@keyframes bs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 63, 142, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(255, 63, 142, 0); }
}

/* 指示箭头 */
.bs-hint {
  position: fixed;
  top: 8px;
  right: 18px;
  z-index: 9502;
  font-size: 24px;
  color: #1a1523;
  opacity: 0;
  animation: bs-bounce 1.6s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
}

.bs-hint.show {
  opacity: 1;
}

@keyframes bs-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
