/**
 * onboarding.css —— v56 未登录引导页样式（杂志白底 · 年轻化 C 案）
 *
 * 落点：index.html 的 <section class="onboarding" id="onboarding" hidden>。
 * 覆盖在 .phone-frame 内（position:absolute inset:0），整页纯白、零名片内容。
 * 结构由 js/pages/onboarding.js 构建（.ob-* 前缀）。
 * 色值取自设计稿 C 案：#4F7BFF / #7C4DFF / #22C9C0 / #0B1B3A / #46536B / #E7ECF5 / #F2F5FF。
 * 版本串只在 html 的 link 上（css 内部不含 ?v=）。
 */

.onboarding {
  position: absolute;
  inset: 0;
  z-index: 40;                 /* 高于固定头部 (30)，低于浮层 (overlay-root) */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  color: #0B1B3A;
}
.onboarding[hidden] { display: none; }

/* 斜切渐变色带（装饰，不接收指针事件） */
.onboarding .ob-strip {
  position: absolute;
  left: -60px;
  right: -60px;
  top: 210px;
  height: 170px;
  background: linear-gradient(100deg, #4F7BFF, #7C4DFF 50%, #22C9C0);
  opacity: .12;
  transform: rotate(-8deg);
  pointer-events: none;
}

.onboarding .ob-inner {
  position: relative;
  z-index: 3;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(24px + var(--safe-top, 0px)) 22px calc(20px + var(--safe-bottom, 0px));
}

/* 顶部品牌行：左「巨」标 + 名称，右「一链三页」小胶囊 */
.onboarding .ob-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.onboarding .ob-mark-l { display: flex; align-items: center; gap: 10px; }
.onboarding .ob-dotmark {
  width: 34px; height: 34px; border-radius: 11px;
  background: #0B1B3A; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.onboarding .ob-mark-nm { font-size: 15px; font-weight: 800; letter-spacing: .4px; }
.onboarding .ob-mark-r {
  font-size: 10.5px; font-weight: 800; color: #4F7BFF;
  border: 1.5px solid #D9E1F2; border-radius: 999px; padding: 5px 10px;
}

/* 超大标题 + 关键词渐变 */
.onboarding .ob-h1 {
  margin-top: 44px;
  font-size: 34px; font-weight: 900; line-height: 1.24; letter-spacing: -1px;
}
.onboarding .ob-h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #4F7BFF, #7C4DFF 55%, #22C9C0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.onboarding .ob-desc {
  margin-top: 14px;
  font-size: 13.5px; color: #46536B; line-height: 1.8; max-width: 300px;
}

/* 标签芯片行 */
.onboarding .ob-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.onboarding .ob-chip {
  font-size: 11.5px; font-weight: 800; padding: 7px 12px;
  border-radius: 999px; border: 1.5px solid #E7ECF5; color: #46536B;
}
.onboarding .ob-chip.hl { background: #F2F5FF; border-color: #D8E2FF; color: #3B6BF5; }

/* 三行能力小卡（下压到按钮之上） */
.onboarding .ob-cards { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.onboarding .ob-fc {
  display: flex; align-items: center; gap: 12px;
  border-radius: 16px; padding: 12px 13px;
  background: #F8FAFF; border: 1px solid #EDF1FA;
}
.onboarding .ob-tile {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: 0 3px 10px rgba(11, 27, 58, .07);
}
.onboarding .ob-fc:nth-child(1) .ob-tile { color: #3B6BF5; }
.onboarding .ob-fc:nth-child(2) .ob-tile { color: #7C4DFF; }
.onboarding .ob-fc:nth-child(3) .ob-tile { color: #12A594; }
.onboarding .ob-ico {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.onboarding .ob-fc-txt { display: flex; flex-direction: column; }
.onboarding .ob-ft { font-size: 13px; font-weight: 800; }
.onboarding .ob-fd { font-size: 11px; color: #8A93A6; margin-top: 2px; }

/* v134：云端故障期提示条（onboarding.js renderOnboarding({err}) 命中云故障时插入，
   位置在 .ob-cta 之前）。为什么需要：引导页是未登录用户的第一屏，平台停机时
   不作声的话，用户会一路点到登录页撞红字，误以为是自己没注册成功。
   配色沿用本文件既有的浅蓝/深蓝一族（#F2F5FF / #0B1B3A / #8A93A6），
   与 .ob-chip / .ob-legal 同源，未引入任何主题变量（引导页本就是固定白底系）。 */
.onboarding .ob-svc-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.75;
  color: #8A5A00;
  background: #FFF7E6;
  border: 1px solid #FFE0A3;
  border-radius: 12px;
}
.onboarding .ob-svc-tip-ico { flex: none; font-size: 13px; line-height: 1.5; }
.onboarding .ob-svc-tip-tx { flex: 1; min-width: 0; }

/* 两个按钮并排 */
.onboarding .ob-cta { margin-top: 16px; display: flex; gap: 10px; }
.onboarding .ob-bp {
  flex: 1; padding: 15px 0; border-radius: 16px; text-align: center;
  font-size: 15px; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(100deg, #4F7BFF, #7C4DFF);
  box-shadow: 0 12px 26px rgba(79, 123, 255, .34);
}
.onboarding .ob-bs {
  flex: 0 0 118px; padding: 15px 0; border-radius: 16px; text-align: center;
  font-size: 15px; font-weight: 800; color: #0B1B3A; text-decoration: none;
  background: #F2F5FF;
}
.onboarding .ob-bp:active { transform: translateY(1px); }
.onboarding .ob-bs:active { transform: translateY(1px); }

/* 底部协议链接 */
.onboarding .ob-legal {
  margin-top: 14px; text-align: center;
  font-size: 11px; color: #8A93A6; line-height: 1.8;
}
.onboarding .ob-link {
  border: 0; background: none; padding: 0; margin: 0;
  font: inherit; color: #4F7BFF; font-weight: 700; cursor: pointer;
}

/* ---------- 协议全文弹层（正文来自 js/core/legal.js，与 auth 页同源） ---------- */
.ob-agreement {
  position: fixed;
  inset: 0;
  z-index: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.ob-agreement[hidden] { display: none; }
.ob-agreement-mask { position: absolute; inset: 0; background: rgba(10, 31, 66, .55); }
.ob-agreement-card {
  position: relative;
  width: 100%; max-width: 420px; max-height: 76vh;
  display: flex; flex-direction: column;
  background: var(--c-card, #fff);
  border-radius: var(--radius-card, 16px);
  box-shadow: var(--shadow-float, 0 20px 60px rgba(11, 27, 58, .3));
  overflow: hidden;
}
.ob-agreement-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--c-line, #E7ECF5);
}
.ob-agreement-title { font-size: 15px; font-weight: 700; color: #0B1B3A; }
.ob-agreement-close {
  border: 0; background: none; font-size: 22px; line-height: 1;
  color: #46536B; cursor: pointer; padding: 0 4px;
}
.ob-agreement-body {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  font-size: 12px; line-height: 1.9; color: #46536B; white-space: pre-wrap;
}
.ob-agreement-foot {
  padding: 10px 16px calc(12px + var(--safe-bottom, 0px));
  border-top: 1px solid var(--c-line, #E7ECF5); text-align: center;
}

/* 极窄屏：按钮改为竖排，避免挤压 */
@media (max-width: 340px) {
  .onboarding .ob-cta { flex-direction: column; }
  .onboarding .ob-bs { flex: 1 1 auto; }
}
