/* ===================== 配置指引（Onboarding） ===================== */
.ob-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: #f0f7f4; display: flex; flex-direction: column;
  overflow-y: auto;
}
.ob-wrap { max-width: 860px; margin: 0 auto; padding: 32px 24px 80px; width: 100%; }

/* 欢迎页 */
.ob-welcome { text-align: center; padding: 48px 20px; }
.ob-welcome .logo {
  width: 72px; height: 72px; border-radius: 18px; background: #0d9488; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700;
  margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}
.ob-welcome h1 { font-size: 28px; color: #0f766e; margin: 0 0 8px; }
.ob-welcome .sub { font-size: 15px; color: #6b7280; margin-bottom: 32px; }
.ob-welcome .steps-preview {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px;
}
.ob-welcome .step-preview-item {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px;
  width: 200px; text-align: center; transition: box-shadow .2s;
}
.ob-welcome .step-preview-item .num {
  width: 32px; height: 32px; border-radius: 50%; background: #e6f7f4; color: #0d9488;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 8px;
}
.ob-welcome .step-preview-item .label { font-size: 14px; font-weight: 600; color: #374151; }
.ob-welcome .step-preview-item .desc { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* 进度条 */
.ob-progress {
  display: flex; align-items: center; gap: 0; margin-bottom: 28px;
}
.ob-progress .step {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.ob-progress .step .dot {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d1d5db;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  color: #9ca3af; background: #fff; transition: all .2s; flex-shrink: 0;
}
.ob-progress .step.done .dot { background: #0d9488; border-color: #0d9488; color: #fff; }
.ob-progress .step.active .dot { border-color: #0d9488; color: #0d9488; background: #e6f7f4; }
.ob-progress .step .label { font-size: 13px; color: #6b7280; white-space: nowrap; }
.ob-progress .step.active .label { color: #0f766e; font-weight: 600; }
.ob-progress .bar { flex: 1; height: 2px; background: #e5e7eb; margin: 0 8px; }
.ob-progress .bar.done { background: #0d9488; }

/* 步骤卡片 */
.ob-step-card {
  background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ob-step-card h2 { font-size: 20px; color: #0f766e; margin: 0 0 6px; }
.ob-step-card .hint { font-size: 14px; color: #6b7280; margin-bottom: 20px; }

/* 项目编辑列表 */
.ob-therapy-list { margin-bottom: 16px; }
.ob-therapy-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px; transition: border-color .15s;
}
.ob-therapy-row:hover { border-color: #0d9488; }
.ob-therapy-row .name { flex: 1; font-size: 14px; font-weight: 500; color: #374151; }
.ob-therapy-row .cat { font-size: 12px; color: #9ca3af; }
.ob-therapy-row input.ob-price { width: 90px; text-align: right; }
.ob-therapy-row .saved-tag {
  font-size: 11px; color: #0d9488; background: #e6f7f4; padding: 2px 8px; border-radius: 4px;
}

/* 空状态引导 */
.ob-empty {
  text-align: center; padding: 28px 20px; border: 2px dashed #e5e7eb; border-radius: 12px;
}
.ob-empty p { color: #9ca3af; font-size: 14px; margin: 0 0 12px; }

/* 扩展配置区 */
.ob-section { margin-top: 24px; }
.ob-section-title {
  font-size: 16px; font-weight: 700; color: #374151; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.ob-section-title::before {
  content: ''; width: 4px; height: 18px; background: #0d9488; border-radius: 2px;
}
.ob-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ob-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px;
  transition: all .15s; cursor: pointer;
}
.ob-card:hover { border-color: #0d9488; box-shadow: 0 2px 8px rgba(13,148,136,0.1); }
.ob-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ob-card .title { font-size: 14px; font-weight: 600; color: #374151; }
.ob-card .count { font-size: 12px; color: #9ca3af; }
.ob-card .count.has { color: #0d9488; font-weight: 600; }
.ob-card .actions { display: flex; gap: 8px; margin-top: 10px; }
.ob-card .actions button {
  font-size: 12px; padding: 4px 12px; border-radius: 6px; border: 1px solid #0d9488;
  background: #fff; color: #0f766e; cursor: pointer; transition: all .15s;
}
.ob-card .actions button:hover { background: #0d9488; color: #fff; }
.ob-card .actions button.import-btn { border-color: #6b7280; color: #6b7280; }
.ob-card .actions button.import-btn:hover { background: #6b7280; color: #fff; }

/* 底部操作栏 */
.ob-footer {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e7eb;
  padding: 14px 24px; display: flex; justify-content: center; z-index: 9010;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.ob-footer .inner { max-width: 860px; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.ob-footer .nav-btns { display: flex; gap: 10px; }
.ob-footer .done-btn {
  background: #0d9488; color: #fff; border: none; padding: 10px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.ob-footer .done-btn:hover { background: #0f766e; }
.ob-footer .skip-btn {
  background: transparent; border: none; color: #6b7280; font-size: 14px; cursor: pointer;
}

/* 服务包使用指引 */
.sp-guide-overlay {
  position: fixed; inset: 0; z-index: 9100; pointer-events: none;
}
.sp-guide-mask {
  position: absolute; background: rgba(0,0,0,0.55); border-radius: 8px; transition: all .3s;
}
.sp-guide-spotlight {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  padding: 20px 24px; max-width: 380px; transition: all .3s; pointer-events: auto;
}
.sp-guide-spotlight .step-num {
  font-size: 12px; color: #0d9488; font-weight: 700; margin-bottom: 4px;
}
.sp-guide-spotlight h4 { font-size: 16px; color: #0f766e; margin: 0 0 8px; }
.sp-guide-spotlight p { font-size: 13px; color: #4b5563; line-height: 1.6; margin: 0 0 14px; }
.sp-guide-spotlight .btns { display: flex; justify-content: flex-end; gap: 8px; }
.sp-guide-spotlight .btns button {
  font-size: 13px; padding: 6px 16px; border-radius: 6px; border: none; cursor: pointer;
}
.sp-guide-spotlight .btns .skip { background: #f3f4f6; color: #6b7280; }
.sp-guide-spotlight .btns .next { background: #0d9488; color: #fff; }
.sp-guide-close {
  position: fixed; top: 16px; right: 20px; z-index: 9101;
  background: rgba(255,255,255,0.9); border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 6px 14px; font-size: 13px; color: #6b7280; cursor: pointer; pointer-events: auto;
}
