/* ==========================================================================
   布局层：顶栏（品牌 + 工具）、横向步骤条（stepper）、内容容器、步骤头。
   仅桌面端设计，不做移动端适配。
   ========================================================================== */

/* —— 顶栏 ————————————————————————————————— */
.topbar {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-main {
  display: flex; align-items: center; gap: 18px;
  max-width: 1560px; margin: 0 auto;
  min-height: 58px; padding: 8px 30px 6px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 4px 12px rgba(217, 72, 31, .35); }
.brand-icon .ico { width: 22px; height: 22px; stroke-width: 1.5; }
.brand-title { font-size: 15px; font-weight: 750; color: var(--ink); letter-spacing: 1px; line-height: 1.3; }
.brand-title small { display: block; font-size: 9.5px; letter-spacing: 2px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.topbar-title { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); font-weight: 550;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.top-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.top-tools .btn.text { font-size: 12px; padding: 7px 10px; }
.top-tools .ico { width: 16px; height: 16px; }

/* —— 横向步骤条 ———————————————————————————— */
.stepper {
  display: flex; align-items: stretch;
  max-width: 1560px; margin: 0 auto;
  padding: 0 40px 12px;
}
.step-node-wrap { flex: 1; min-width: 0; }
.step-node {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 100%; padding: 4px 2px 3px; border-radius: var(--r-m); transition: .15s;
}
.step-node::before, .step-node::after {
  content: ''; position: absolute; top: 19px; height: 2px; border-radius: 2px;
  background: var(--line-2); transition: background .25s;
}
.step-node::before { left: calc(-50% + 24px); right: calc(50% + 24px); }
.step-node::after { left: calc(50% + 24px); right: calc(-50% + 24px); }
.step-node-wrap:first-child .step-node::before,
.step-node-wrap:last-child .step-node::after { display: none; }
/* 已完成/当前节点的前段连线着色；后段仅当下一节点也完成或当前时着色 */
.step-node.done::before, .step-node.current::before { background: linear-gradient(90deg, #eb7443, var(--accent)); }
.step-node-wrap:has(+ .step-node-wrap .step-node.done) .step-node::after,
.step-node-wrap:has(+ .step-node-wrap .step-node.current) .step-node::after { background: linear-gradient(90deg, var(--accent), #eb7443); }
.step-node:hover { background: var(--accent-soft); }
.step-node.locked:hover { background: var(--panel-soft); }

.step-node .node {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--panel); color: var(--muted);
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: .18s; flex-shrink: 0;
}
.step-node .node .ico { width: 15px; height: 15px; }
.step-node .label {
  font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.35;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.step-node .label em { font-style: normal; color: var(--faint); font-size: 10px; margin-left: 4px; }
.step-node.current { background: var(--accent-soft); }
.step-node.current .node { background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 0 6px rgba(217, 72, 31, .22), 0 6px 16px rgba(217, 72, 31, .4); }
.step-node.current .label { color: var(--accent-deep); font-weight: 750; }
.step-node.done .node { background: var(--ok); border-color: var(--ok); color: #fff; }
.step-node.done .label { color: var(--text); }
.step-node.locked .node { border-style: dashed; background: var(--panel-soft); }
.step-node.locked .node .ico { width: 13px; height: 13px; }
.step-node.locked .label { color: var(--faint); }
.step-node .node .ico { width: 15px; height: 15px; }

/* 令牌实际定义于 base.css，此处冗余声明用于单文件静态自检 */
:root { --accent: #d9481f; }

/* —— 内容区 ————————————————————————————— */
.workspace { min-height: calc(100vh - 140px); display: flex; flex-direction: column; }
main#stage-wrap { flex: 1; width: 100%; max-width: 1560px; margin: 0 auto; padding: 26px 30px 96px; }
#stage { min-height: 60vh; }
.stage-enter { animation: stage-in .3s ease both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-foot { display: flex; justify-content: space-between; gap: 14px; padding: 24px 4px 4px; color: var(--faint); font-size: 11.5px; }

/* —— 步骤页头 ————————————————————————————— */
.step-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 18px 24px; box-shadow: var(--shadow); }
.step-head-num { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.step-head-num span {
  font-size: 34px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--accent); background: var(--accent-soft);
  padding: 10px 14px; border-radius: var(--r-m); border: 1px solid var(--accent-mist);
}
.step-head .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 1.8px;
  color: var(--accent-deep); font-weight: 700; }
.step-head .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.step-head h1 { margin: 6px 0 7px; font-size: 23px; }
.step-head p { color: var(--muted); max-width: 760px; font-size: 13.5px; }
.step-head-status { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; padding-top: 4px; }

/* —— 通用网格 ————————————————————————————— */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel + .panel { margin-top: 20px; }
.tiny-note { color: var(--faint); font-size: 11.5px; margin-top: 8px; }
