/* =====================================================
   launcher v9 — 整体布局、视觉节奏、按钮层级与交互协调优化
   (v8 已完整备份为 index-v8-snapshot.html / openGym-lulu-v2-backup-v8)
   ===================================================== */

/* ── 弹窗容器：控制滚动高度，隐藏气泡残余尖角 ── */
.lu .lulu-start-launcher-card {
  max-height: min(82vh, 820px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: 0 14px calc(16px + env(safe-area-inset-bottom, 8px)) !important;
  gap: 8px !important;
}
.lu .lulu-start-launcher-card::after {
  content: none !important;
  display: none !important;
}

/* ── 1. 顶部 Brand 栏：Sticky 吸顶 + 磨砂奶油底，滚动不丢关闭按钮 ── */
.lu .lulu-start-launcher-card .launcher-top-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 15 !important;
  margin: 0 -14px 6px !important;
  padding: 12px 14px 10px !important;
  background: rgba(255, 254, 249, 0.92) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1.5px dashed #e5decb !important;
}

/* 头像：48px 精致比例，不压迫标题 */
.lu .lulu-start-launcher-card .launcher-lulu-avatar {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  border-radius: 50% !important;
  border: 2.5px solid #ffffff !important;
  background: radial-gradient(circle at 32% 28%, #ffd98a 0%, #fbaa46 46%, #ea8b28 100%) !important;
  box-shadow: 0 3px 0 #d18a3a, 0 6px 14px rgba(234, 146, 44, .28) !important;
  animation: launcherAvatarFloat 5s ease-in-out infinite !important;
}
@keyframes launcherAvatarFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.lu .lulu-start-launcher-card .launcher-top-title h3 {
  font-size: 20px !important;
  font-weight: 850 !important;
  letter-spacing: -.3px !important;
  color: #2a2a26 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}
.lu .lulu-start-launcher-card .launcher-kicker {
  display: block !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #6b7c65 !important;
  margin-bottom: 2px !important;
}

/* 关闭按钮 × */
.lu .lulu-start-launcher-card .launcher-close-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  background: #f5f1e6 !important;
  border: 1.5px solid #e2dac6 !important;
  box-shadow: 0 2px 0 #d2cbb8 !important;
  color: #416044 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

/* ── 2. Hero 主推大卡：噜噜自然贴合按钮上沿 + 柔化切边 ── */
.lu .lulu-start-launcher-card .launcher-hero-plan {
  position: relative !important;
  background: radial-gradient(circle at 85% 24%, rgba(255, 214, 138, 0.35), transparent 48%),
              linear-gradient(180deg, #fffdf8 0%, #fcf1dc 100%) !important;
  border: 1.5px solid #e8d7aa !important;
  border-radius: 20px !important;
  box-shadow: 0 3.5px 0 #e7d4a5, 0 10px 20px rgba(140, 100, 40, .1) !important;
  padding: 14px 15px 76px !important;
  overflow: visible !important;
}

/* ★ 噜噜贴合在「立即开练」按钮右上沿，底部微渐隐消除生硬切线 */
.lu .lulu-start-launcher-card .launcher-hero-plan::before {
  content: "" !important;
  position: absolute !important;
  bottom: 52px !important;
  right: 16px !important;
  width: 82px !important;
  height: 94px !important;
  background: url("./project-runtime/assets/lulu-joy-BNuDDUK8.png") center bottom/contain no-repeat !important;
  pointer-events: none !important;
  filter: drop-shadow(0 5px 10px rgba(120, 70, 10, .18)) !important;
  -webkit-mask-image: linear-gradient(180deg, #000 86%, rgba(0,0,0,0.15) 100%) !important;
  mask-image: linear-gradient(180deg, #000 86%, rgba(0,0,0,0.15) 100%) !important;
  animation: launcherHeroLuluBob 3.6s ease-in-out infinite !important;
  transform-origin: bottom center !important;
  z-index: 2 !important;
}
@keyframes launcherHeroLuluBob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-5px) rotate(1.5deg); }
}

.lu .lulu-start-launcher-card .launcher-hero-copy {
  padding-right: 92px !important;
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}
.lu .lulu-start-launcher-card .launcher-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10.5px !important;
  font-weight: 750 !important;
  color: #3b6244 !important;
  background: #e7f3e0 !important;
  border: 1px solid #cce0c0 !important;
  border-radius: 999px !important;
  padding: 2px 9px !important;
  margin-bottom: 2px !important;
}
.lu .lulu-start-launcher-card .launcher-hero-copy strong {
  font-size: 20px !important;
  font-weight: 850 !important;
  color: #282823 !important;
  line-height: 1.25 !important;
}
.lu .lulu-start-launcher-card .launcher-hero-copy small {
  display: inline-block !important;
  margin-top: 2px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #5a4628 !important;
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid #eadbc0 !important;
  border-radius: 8px !important;
  padding: 2px 8px !important;
}

/* 「立即开练」主 CTA 按钮 */
.lu .lulu-start-launcher-card .launcher-go-now {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 13px !important;
  height: 48px !important;
  min-height: 48px !important;
  width: auto !important;
  min-width: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, #f9c46b 0%, #ea912a 100%) !important;
  border: 1.5px solid #c67b19 !important;
  box-shadow: 0 3.5px 0 #b0680d, 0 8px 16px rgba(234, 146, 44, .28) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: .4px !important;
  cursor: pointer !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform .1s ease, box-shadow .1s ease !important;
}
.lu .lulu-start-launcher-card .launcher-go-now:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1.5px 0 #b0680d, 0 4px 8px rgba(234, 146, 44, .22) !important;
}
.lu .lulu-start-launcher-card .launcher-go-now::after {
  content: "" !important;
  position: absolute !important;
  inset: 4px !important;
  border: 1.2px dashed rgba(255, 255, 255, .72) !important;
  border-radius: 11px !important;
  pointer-events: none !important;
}

/* ── 3. Section 标题栏：去掉冗余绿竖条，只用 22px 噜噜圆章做唯一视觉锚点 ── */
.lu .lulu-start-launcher-card .launcher-section {
  margin-top: 10px !important;
}
.lu .lulu-start-launcher-card .launcher-section-head {
  margin-bottom: 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.lu .lulu-start-launcher-card .launcher-section-head > span {
  position: relative !important;
  padding-left: 0 !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #2a2a26 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}
/* 取消多余的绿色竖条，避免「绿条+噜噜头像」双重前缀 */
.lu .lulu-start-launcher-card .launcher-section-head > span::before {
  content: none !important;
  display: none !important;
}
.lu .lulu-start-launcher-card .launcher-section-head > span img {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #fff6e3 !important;
  border: 1.5px solid #e6cfa3 !important;
  box-shadow: 0 1.5px 0 #d8be8c !important;
  margin-right: 0 !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}
.lu .lulu-start-launcher-card .launcher-section-head > button {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #486b4b !important;
  background: #eef5e9 !important;
  border: 1px solid #c8d9be !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  height: 26px !important;
  min-height: 26px !important;
  box-shadow: 0 1.5px 0 #b8c9a8 !important;
}

/* ── 4. Plan 计划卡片：紧凑双列布局 + 清晰的选中/切换状态胶囊 ── */
.lu .lulu-start-launcher-card .launcher-plan-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.lu .lulu-start-launcher-card .launcher-plan-item {
  position: relative !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8d8 !important;
  border-radius: 15px !important;
  box-shadow: 0 2.5px 0 #d8d2c1 !important;
  padding: 10px 11px 9px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease !important;
}
.lu .lulu-start-launcher-card .launcher-plan-item::before {
  content: none !important;
}
.lu .lulu-start-launcher-card .launcher-plan-item strong {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #282824 !important;
  line-height: 1.25 !important;
}
.lu .lulu-start-launcher-card .launcher-plan-item small {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #747268 !important;
}
.lu .lulu-start-launcher-card .launcher-plan-item .launcher-plan-tag {
  margin-top: 3px !important;
  font-size: 10.5px !important;
  font-weight: 750 !important;
  color: #49684c !important;
  background: #eef4e8 !important;
  border: 1px solid #d2e0c7 !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
  align-self: flex-start !important;
}
.lu .lulu-start-launcher-card .launcher-plan-item.is-current {
  border: 1.5px solid #e59634 !important;
  background: linear-gradient(180deg, #fffaf0 0%, #fff3dc 100%) !important;
  box-shadow: 0 2.5px 0 #d8933c, 0 5px 12px rgba(234, 157, 60, .18) !important;
}
.lu .lulu-start-launcher-card .launcher-plan-item.is-current .launcher-plan-tag {
  background: linear-gradient(180deg, #f8c26c, #ea922c) !important;
  border-color: #c97f1c !important;
  color: #fff !important;
}

/* ── 5. 自由练动作 Chip：允许双行标题不截断 + 右上角轻巧「+」选标 ── */
.lu .lulu-start-launcher-card .launcher-exercise-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
}
.lu .lulu-start-launcher-card .launcher-exercise-chip {
  position: relative !important;
  background: #ffffff !important;
  border: 1.5px solid #e1e8d6 !important;
  border-radius: 13px !important;
  box-shadow: 0 2.5px 0 #cfd8bf !important;
  padding: 8px 8px 7px !important;
  gap: 3px !important;
  min-height: 68px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  text-align: left !important;
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease !important;
}
.lu .lulu-start-launcher-card .launcher-exercise-chip .chip-muscle {
  color: #784812 !important;
  background: #f6e7c8 !important;
  border-radius: 999px !important;
  padding: 1px 6px !important;
  font-size: 9.5px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
}
.lu .lulu-start-launcher-card .launcher-exercise-chip strong {
  color: #283227 !important;
  font-size: 11.5px !important;
  font-weight: 780 !important;
  line-height: 1.28 !important;
  width: 100% !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 29px !important;
}
.lu .lulu-start-launcher-card .launcher-exercise-chip small {
  color: #6b7262 !important;
  font-size: 10px !important;
  font-weight: 650 !important;
}

/* 未选中态右上角浅「+」提示可多选 */
.lu .lulu-start-launcher-card .launcher-exercise-chip::after {
  content: "+" !important;
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  width: 15px !important;
  height: 15px !important;
  background: #f2f5ec !important;
  border: 1px solid #d6dfd0 !important;
  color: #6c8468 !important;
  border-radius: 50% !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 13px !important;
  text-align: center !important;
}

/* 选中态：暖橙边框 + 实心「✓」 */
.lu .lulu-start-launcher-card .launcher-exercise-chip.is-picked {
  border: 1.5px solid #ea922c !important;
  background: #fff6e5 !important;
  box-shadow: 0 2.5px 0 #d98e32, 0 4px 10px rgba(234, 157, 60, .18) !important;
}
.lu .lulu-start-launcher-card .launcher-exercise-chip.is-picked::after {
  content: "✓" !important;
  background: #ea922c !important;
  border-color: #c97f1c !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 14px !important;
}

/* ── 6. 底部「空白自由训练」按钮：去除多重碎虚线，统一干净次级按钮视觉 ── */
.lu .lulu-start-launcher-card .launcher-bottom-row {
  margin-top: 10px !important;
  padding-top: 0 !important;
}
.lu .lulu-start-launcher-card .launcher-free-btn {
  width: 100% !important;
  background: #eef5e8 !important;
  border: 1.5px solid #c6d8bc !important;
  box-shadow: 0 2.5px 0 #b5c8aa !important;
  color: #3d6041 !important;
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  margin-top: 0 !important;
  outline: none !important;
}
.lu .lulu-start-launcher-card .launcher-free-btn::before,
.lu .lulu-start-launcher-card .launcher-free-btn::after {
  content: none !important;
  display: none !important;
}

/* ── 底部浮动多选开练条 ── */
.lu .launcher-selection-bar {
  position: sticky !important;
  bottom: calc(env(safe-area-inset-bottom, 6px) + 4px) !important;
  margin-top: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  background: #fffdf8 !important;
  border: 1.5px solid #e6c68b !important;
  border-radius: 15px !important;
  padding: 10px 12px !important;
  box-shadow: 0 4px 14px rgba(234, 146, 44, .24) !important;
  z-index: 12 !important;
}
.lu .launcher-selection-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  line-height: 1.25 !important;
}
.lu .launcher-selection-copy strong {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #3f6844 !important;
}
.lu .launcher-selection-copy span {
  font-size: 11px !important;
  color: #788272 !important;
}
.lu .launcher-selection-start.primary {
  min-height: 38px !important;
  height: 38px !important;
  padding-inline: 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #f8c26c, #ea922c) !important;
  border: 1.5px solid #c97f1c !important;
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
  box-shadow: 0 2.5px 0 #b56e10, 0 4px 10px rgba(234, 157, 60, .25) !important;
}
