/* 主框架的「授信流程条」与「操作引导层」。
 * 两者都只负责导航与说明，不改变任何业务状态。 */

/* ===== 授信流程条 ===== */
.flow-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-bottom: 20px;
  padding: 14px 20px;
  background: #F7FAFC;
  border: 1px solid #DEE7EF;
  border-radius: 8px;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #7A8A97;
}
.flow-step.active { background: var(--accent-soft); color: var(--accent); }
.flow-step.done { color: #3E8E63; }
.flow-step.done .flow-index { background: #E3F1E9; color: #3E8E63; }
.flow-index {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E3EBF2;
  color: #6D7B86;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.flow-step.active .flow-index { background: var(--accent); color: white; }
.flow-text { display: flex; flex-direction: column; line-height: 1.3; }
.flow-text strong { font-size: 13px; font-weight: 600; }
.flow-text small { font-size: 11px; color: #93A2AE; }
.flow-step.active .flow-text small { color: #4A90C4; }
.flow-arrow { color: #B7C5D1; font-size: 14px; }
.flow-hint {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #6D7B86;
}
.flow-hint .hl { color: var(--accent); font-weight: 600; }

/* ===== 顶栏胶囊按钮：与加密链路入口同一套观感 =====
 * 「操作指引」与「演示模式」共用一个类，保证两个入口视觉一致。 */
.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1px solid #FFFFFF40;
  border-radius: 999px;
  background: none;
  color: #DCE8F2;
  font-size: 12.5px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.header-pill:hover { background: #FFFFFF1F; color: white; border-color: #FFFFFF80; }
.header-pill svg { width: 14px; height: 14px; }
/* 演示模式是"动手"入口，给一点实心感，与讲解式区分开。 */
.header-pill.demo-start { background: #FFFFFF1A; border-color: #FFFFFF59; color: #FFFFFF; }
.header-pill.demo-start:hover { background: #FFFFFF2E; border-color: #FFFFFF9A; }

/* ===== 操作引导层（讲解式 + 半自动演示共用） ===== */
.guide-layer { position: fixed; inset: 0; z-index: 200; }
/* 演示模式下页面本身必须仍可点击，否则高亮就白做了：
 * 遮罩层不吃事件，只有气泡可交互，真实点击落到页面上由引擎观察推进。 */
.guide-layer.demo { pointer-events: none; }
.guide-layer.demo .guide-popover { pointer-events: auto; }
.guide-spotlight {
  position: fixed;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(14, 42, 71, .62);
  pointer-events: none;
  transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease;
}
.guide-popover {
  position: fixed;
  width: min(342px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 18px 20px 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 14px 44px rgba(14, 42, 71, .3);
  z-index: 2;
}
.guide-popover.centered { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.guide-count { font-size: 11px; letter-spacing: .5px; color: var(--accent); font-weight: 600; }
.guide-title { font-size: 16px; margin: 6px 0 8px; color: var(--navy); }
.guide-body { font-size: 13px; line-height: 1.75; color: #45566A; margin: 0 0 16px; }
/* 演示模式的操作提示：告诉评委"现在该点哪里、点完会发生什么"。 */
.guide-hint {
  margin: -8px 0 14px;
  padding: 7px 10px;
  background: var(--accent-soft);
  border-radius: 5px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.6;
}
/* 演示模式里那一步的"替你完成"辅助按钮，独占一行，比次要按钮更显眼。 */
.guide-action { display: block; width: 100%; box-sizing: border-box; margin: 0 0 14px; font-size: 13px; padding: 8px 16px; text-align: center; }
.guide-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guide-nav { display: flex; gap: 8px; }
.guide-actions .button { font-size: 13px; padding: 7px 16px; }
.guide-actions .guide-skip { font-size: 12px; color: #93A2AE; }

/* 跨角色交接提示（企业端工作台）：琥珀色提醒，紧挨操作区。 */
.handoff-note {
  margin: 14px 0 0;
  padding: 11px 14px;
  background: #FDF9EF;
  border: 1px solid #EBE1CB;
  border-left: 3px solid #C89B3C;
  border-radius: 4px;
  color: #8A7141;
  font-size: 12.5px;
  line-height: 1.7;
}
/* 数据可见性说明（银行端申请详情）：蓝色信息条，对应「按用途最小化」。 */
.visibility-note {
  margin: 12px 0 0;
  padding: 11px 14px;
  background: #F2F8FD;
  border: 1px solid #C7DFF2;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  color: #2F5878;
  font-size: 12.5px;
  line-height: 1.7;
}
