/* 映桥 ReelBridge · 业务样式（只允许引用 var(--rb-*)，禁止写死色值） */
* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--rb-paper-50);
  color: var(--rb-ink-900);
  font-family: var(--rb-font-ui);
  font-size: var(--rb-text-body);
  line-height: 1.6;
}

button, textarea, input, select { font: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }
a { color: var(--rb-blue); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rb-space-2);
  padding: 10px var(--rb-space-4);
  border-radius: var(--rb-radius-btn);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--rb-dur) var(--rb-ease);
  text-decoration: none;
  color: var(--rb-white);
  background: var(--rb-blue);
}
.btn:hover { background: var(--rb-blue-hover); transform: translateY(-1px); }
.btn-sm { padding: 6px var(--rb-space-3); font-size: 13px; }
.btn-primary { background: var(--rb-blue); color: var(--rb-white); box-shadow: var(--rb-glow); }
.btn-primary:hover { background: var(--rb-blue-hover); }
.btn-accent { background: var(--rb-orange-cta); color: var(--rb-white); }
.btn-accent:hover { background: var(--rb-orange-cta-hover); }
.btn-ghost { background: transparent; color: var(--rb-ink-900); border-color: var(--rb-line-200); }
.btn-ghost:hover { border-color: var(--rb-gray-300); background: var(--rb-white); }
.btn-glass { background: var(--rb-glass-bg); border-color: var(--rb-glass-border); color: var(--rb-white); }
.btn-glass:hover { background: var(--rb-glass-bg-strong); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block;
  padding: 4px var(--rb-space-3);
  border-radius: var(--rb-radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--rb-paper-50);
  color: var(--rb-gray-500);
}
.badge.on { background: var(--rb-success-soft); color: var(--rb-success); }
.badge.done { background: var(--rb-success-soft); color: var(--rb-success); }
.badge.doing { background: var(--rb-violet-soft); color: var(--rb-violet); }
.badge.wait { background: var(--rb-warning-soft); color: var(--rb-warning); }
.badge.deg { background: var(--rb-warning-soft); color: var(--rb-warning); }
.badge.err { background: var(--rb-error-soft); color: var(--rb-error); }
.badge.sandbox { background: var(--rb-blue-soft); color: var(--rb-blue); }

/* ---------- 顶栏（深墨画框 chrome，随 ④ 黄昏主皮 v1.3 退成画框） ---------- */
.topbar {
  min-height: 64px;
  padding: 0 var(--rb-space-5);
  display: flex;
  align-items: center;
  gap: var(--rb-space-5);
  background: var(--rb-ink-900);
  border-bottom: 1px solid var(--rb-ink-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
/* 顶部光带固定于视口顶（渐变允许位 ① 由 overlay 提供渐变） */
.rb-topband { position: fixed; top: 0; left: 0; z-index: 60; }
.brand {
  display: flex;
  align-items: center;
  gap: var(--rb-space-3);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--rb-white);
}
.brand small {
  font-family: var(--rb-font-display);
  font-weight: 500;
  letter-spacing: 3px;
  font-size: 11px;
  color: var(--rb-dusk-text-3);
}
.topbar nav { display: flex; gap: var(--rb-space-5); }
.topbar nav a {
  color: var(--rb-dusk-text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--rb-dur) var(--rb-ease);
}
.topbar nav a:hover { color: var(--rb-white); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--rb-space-3); }
.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--rb-space-2);
  padding: 6px var(--rb-space-4);
  border-radius: var(--rb-radius-pill);
  background: var(--rb-glass-bg);
  border: 1px solid var(--rb-glass-border);
  color: var(--rb-dusk-text);
  font-size: var(--rb-text-caption);
  font-weight: 600;
  white-space: nowrap;
}
.quota-pill b { font-family: var(--rb-font-display); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero {
  min-height: 560px;
  padding: var(--rb-space-8) 6vw var(--rb-space-7);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: var(--rb-space-7);
  align-items: center;
  background: var(--rb-ink-900);
  color: var(--rb-white);
  position: relative;
  overflow: hidden;
}
.hero-copy, .hero-panel { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--rb-space-2);
  padding: 6px var(--rb-space-4);
  border-radius: var(--rb-radius-pill);
  background: var(--rb-glass-bg);
  border: 1px solid var(--rb-glass-border);
  font-size: var(--rb-text-caption);
  color: var(--rb-on-dark-text);
  margin-bottom: var(--rb-space-5);
}
.hero h1 { font-size: 56px; line-height: 1.15; font-weight: 700; letter-spacing: 1px; }
/* v1.3：渐变字废除，强调词用暖金纯色（渐变只留四个允许位） */
.hero h1 em { font-style: normal; color: var(--rb-dusk-gold); }
.lead { max-width: 600px; color: var(--rb-on-dark-sub); font-size: 18px; line-height: 1.7; margin-top: var(--rb-space-4); }
.actions { display: flex; flex-wrap: wrap; gap: var(--rb-space-3); margin-top: var(--rb-space-6); }
.actions .btn { padding: 12px var(--rb-space-5); font-size: 15px; }
.hero-kv-note {
  margin-top: var(--rb-space-4);
  font-size: 12px;
  color: var(--rb-dusk-text-3);
  font-family: var(--rb-font-display);
  letter-spacing: .04em;
}
.hero-panel { display: grid; gap: var(--rb-space-4); }
.metric {
  background: var(--rb-glass-bg);
  border: 1px solid var(--rb-glass-border);
  border-radius: var(--rb-radius-card);
  padding: var(--rb-space-5);
}
.metric b { display: block; font-family: var(--rb-font-display); font-size: 36px; font-variant-numeric: tabular-nums; }
.metric span { color: var(--rb-on-dark-sub); }

/* ---------- 通用分区（满皮=深墨画框由 overlay 接管底色；安静皮=浅色骨架不动） ---------- */
.band { padding: 56px 6vw; border-bottom: 1px solid var(--rb-line-200); }
[data-rb-skin="quiet"].band { background: var(--rb-paper-50); color: var(--rb-ink-900); }
[data-rb-skin="full"].band { border-bottom-color: var(--rb-ink-line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--rb-space-5);
  margin-bottom: var(--rb-space-5);
}
.section-head h2 { font-size: var(--rb-text-h2); margin-bottom: var(--rb-space-1); }
.section-head p { color: var(--rb-gray-500); font-size: 15px; }
.band[data-rb-skin="full"] .section-head h2 { color: var(--rb-dusk-text); }
.band[data-rb-skin="full"] .section-head p { color: var(--rb-dusk-text-2); }
.section-tag { font-size: var(--rb-text-caption); color: var(--rb-dusk-text-3); white-space: nowrap; }

/* 满皮分区内的卡片：深墨底 + 墨线描边；hover 描边亮起为品牌渐变（"点亮"，同 overlay .rb-card）
   注意：选择器必须锚在 .band 上——body 也是 data-rb-skin="full"，裸写会泄漏进 quiet 分区 */
.band[data-rb-skin="full"] .dual-card,
.band[data-rb-skin="full"] .sku-card,
.band[data-rb-skin="full"] .flow-step,
.band[data-rb-skin="full"] .model-card,
.band[data-rb-skin="full"] .case-card {
  background: var(--rb-ink-850);
  border-color: var(--rb-ink-line);
  box-shadow: none;
  color: var(--rb-dusk-text);
}
.band[data-rb-skin="full"] .dual-card:hover,
.band[data-rb-skin="full"] .sku-card:hover,
.band[data-rb-skin="full"] .flow-step:hover,
.band[data-rb-skin="full"] .model-card:hover,
.band[data-rb-skin="full"] .case-card:hover {
  transform: none;
  border-color: transparent;
  background:
    linear-gradient(var(--rb-ink-850), var(--rb-ink-850)) padding-box,
    var(--rb-dusk-band) border-box;
  box-shadow: 0 0 0 1px var(--rb-violet-soft), var(--rb-shadow-card);
}
.band[data-rb-skin="full"] .dual-card h3,
.band[data-rb-skin="full"] .sku-card h4,
.band[data-rb-skin="full"] .flow-step h4,
.band[data-rb-skin="full"] .model-card h4,
.band[data-rb-skin="full"] .case-body b { color: var(--rb-dusk-text); }
.band[data-rb-skin="full"] .dual-card p,
.band[data-rb-skin="full"] .dual-card li,
.band[data-rb-skin="full"] .sku-meta,
.band[data-rb-skin="full"] .flow-step p,
.band[data-rb-skin="full"] .model-card p,
.band[data-rb-skin="full"] .case-body span { color: var(--rb-dusk-text-2); border-bottom-color: var(--rb-ink-line); }
.band[data-rb-skin="full"] .btn-ghost { color: var(--rb-dusk-text); border-color: var(--rb-glass-border); }
.band[data-rb-skin="full"] .btn-ghost:hover { background: var(--rb-glass-bg); border-color: var(--rb-glass-border); }

.panel {
  background: var(--rb-white);
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  box-shadow: var(--rb-shadow-card);
  padding: var(--rb-space-5);
  margin-bottom: var(--rb-space-4);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rb-space-3);
  margin-bottom: var(--rb-space-4);
}
.panel-head h3 { font-size: 18px; font-weight: 700; }
.panel-head h4 { font-size: 15px; font-weight: 700; }
.panel-head .hint { font-size: var(--rb-text-caption); color: var(--rb-gray-500); }

.kv {
  display: flex;
  justify-content: space-between;
  gap: var(--rb-space-4);
  font-size: 13px;
  padding: var(--rb-space-2) 0;
  border-bottom: 1px dashed var(--rb-line-200);
}
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--rb-gray-500); flex-shrink: 0; }
.kv b { font-weight: 600; text-align: right; }

/* ---------- 双轮分流 ---------- */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rb-space-5); }
.dual-card {
  border-radius: var(--rb-radius-card);
  padding: var(--rb-space-6);
  border: 1px solid var(--rb-line-200);
  background: var(--rb-white);
  box-shadow: var(--rb-shadow-card);
  transition: all var(--rb-dur) var(--rb-ease);
}
.dual-card:hover { transform: translateY(-2px); box-shadow: var(--rb-shadow-card-hover); }
.dual-card .kicker {
  display: inline-block;
  padding: 4px var(--rb-space-3);
  border-radius: var(--rb-radius-pill);
  font-size: var(--rb-text-caption);
  font-weight: 600;
  margin-bottom: var(--rb-space-4);
}
.dual-card.b .kicker { background: var(--rb-blue-soft); color: var(--rb-blue); }
.dual-card.c .kicker { background: var(--rb-orange-soft); color: var(--rb-orange-cta); }
.dual-card h3 { font-size: var(--rb-text-h3); margin-bottom: var(--rb-space-2); }
.dual-card p { color: var(--rb-gray-500); font-size: 15px; margin-bottom: var(--rb-space-4); }
.dual-card ul { list-style: none; margin: 0 0 var(--rb-space-5); padding: 0; }
.dual-card li {
  padding: var(--rb-space-2) 0;
  font-size: 14px;
  color: var(--rb-ink-700);
  border-bottom: 1px dashed var(--rb-line-200);
}
.dual-card li:last-child { border-bottom: 0; }

/* ---------- SKU 商城（v1.3：真实封面帧 + 片名 + 价格 + CTA，禁几何色块占位） ---------- */
.sku-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--rb-space-5); }
.sku-card {
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  overflow: hidden;
  box-shadow: var(--rb-shadow-card);
  transition: all var(--rb-dur) var(--rb-ease);
  display: flex;
  flex-direction: column;
}
.sku-cover {
  aspect-ratio: 3 / 4;
  position: relative;
  background: var(--rb-ink-800);
  overflow: hidden;
}
.sku-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sku-cover .tag {
  position: absolute;
  top: var(--rb-space-3);
  left: var(--rb-space-3);
  z-index: 1;
  background: var(--rb-on-dark-mask);
  color: var(--rb-white);
  padding: 4px 10px;
  border-radius: var(--rb-radius-pill);
  font-size: 12px;
}
.sku-body { padding: var(--rb-space-4); display: flex; flex-direction: column; flex: 1; }
.sku-body h4 { font-size: 16px; font-weight: 600; }
.sku-meta { font-size: 13px; color: var(--rb-gray-500); margin-top: var(--rb-space-1); }
.sku-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: var(--rb-space-3); }
.sku-price {
  font-family: var(--rb-font-display);
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--rb-dusk-ember);
}
.sku-price small { font-size: 12px; font-weight: 500; color: var(--rb-dusk-text-3); }

/* ---------- 生产流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rb-space-4); }
.flow-step {
  background: var(--rb-white);
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  padding: var(--rb-space-5);
  box-shadow: var(--rb-shadow-card);
}
.flow-step .no {
  font-family: var(--rb-font-display);
  font-size: var(--rb-text-caption);
  font-weight: 700;
  color: var(--rb-violet);
  letter-spacing: 2px;
}
.flow-step h4 { font-size: 17px; margin: var(--rb-space-2) 0; }
.flow-step p { font-size: var(--rb-text-caption); color: var(--rb-gray-500); }
.flow-step .qc {
  display: inline-block;
  margin-top: var(--rb-space-3);
  padding: 4px var(--rb-space-3);
  border-radius: var(--rb-radius-pill);
  background: var(--rb-violet-soft);
  color: var(--rb-violet);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- 模型聚合 ---------- */
.model-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rb-space-4); }
.model-card {
  background: var(--rb-white);
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  padding: var(--rb-space-5);
  box-shadow: var(--rb-shadow-card);
}
.model-card h4 { font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: var(--rb-space-2); }
.model-card p { font-size: var(--rb-text-caption); color: var(--rb-gray-500); margin-top: var(--rb-space-2); }

/* ---------- 案例（封面同样使用真实帧，不用 CSS 渐变画画） ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--rb-space-5); }
.case-card {
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  overflow: hidden;
  box-shadow: var(--rb-shadow-card);
  transition: all var(--rb-dur) var(--rb-ease);
}
.case-cover { aspect-ratio: 16 / 9; position: relative; background: var(--rb-ink-800); overflow: hidden; }
.case-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-cover .tag {
  position: absolute;
  top: var(--rb-space-4);
  left: var(--rb-space-4);
  z-index: 1;
  background: var(--rb-on-dark-mask);
  color: var(--rb-white);
  padding: 4px 10px;
  border-radius: var(--rb-radius-pill);
  font-size: 12px;
}
.case-body { padding: var(--rb-space-4); display: grid; gap: var(--rb-space-1); }
.case-body b { font-size: 15px; }
.case-body span { font-size: 13px; color: var(--rb-gray-500); }

/* ---------- 工作台 ---------- */
.wb-grid {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.4fr);
  gap: var(--rb-space-4);
  align-items: start;
}
.tool {
  background: var(--rb-white);
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  box-shadow: var(--rb-shadow-card);
  padding: var(--rb-space-4);
  display: grid;
  gap: var(--rb-space-3);
}
.tool label { color: var(--rb-gray-500); font-size: 14px; }
.tool-tip { font-size: 12px; color: var(--rb-gray-500); }
textarea, input, select {
  width: 100%;
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-btn);
  padding: var(--rb-space-3);
  color: var(--rb-ink-700);
  background: var(--rb-white);
}
textarea { min-height: 140px; resize: vertical; }
input, select { min-height: 40px; }
.race-box {
  border-top: 1px dashed var(--rb-line-200);
  padding-top: var(--rb-space-3);
  display: grid;
  gap: var(--rb-space-2);
}
.race-box p { font-size: 12px; color: var(--rb-gray-500); }
.race-btns { display: flex; flex-wrap: wrap; gap: var(--rb-space-2); }
.race-box .btn-primary { justify-self: start; }

.output-frame {
  background: var(--rb-white);
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  box-shadow: var(--rb-shadow-card);
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: var(--rb-space-4);
  align-items: center;
  padding: var(--rb-space-4);
  margin-bottom: var(--rb-space-4);
}
[data-rb-slot="empty"], [data-rb-slot="loading"] {
  min-height: 132px;
  border: 1px dashed var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  background: var(--rb-paper-50);
}
/* 满皮分区里的插槽容器退成深墨（插画/打板由 overlay 注入） */
.band[data-rb-skin="full"] [data-rb-slot="empty"],
.band[data-rb-skin="full"] [data-rb-slot="loading"] {
  border-color: var(--rb-ink-line);
  background: transparent;
}
.frame-tip { color: var(--rb-gray-500); font-size: 14px; }

/* ---------- 签名组件区（滑杆本体由 overlay .rb-compare 提供） ---------- */
.compare-stage { max-width: 960px; margin: 0 auto; }
.compare-switch { display: flex; justify-content: center; gap: var(--rb-space-2); margin-top: var(--rb-space-4); }
.compare-switch button {
  background: none;
  border: 1px solid var(--rb-ink-line);
  color: var(--rb-dusk-text-2);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: var(--rb-radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--rb-dur) var(--rb-ease);
}
.compare-switch button.on { color: var(--rb-white); border-color: var(--rb-glass-border); }
.compare-switch button:hover { color: var(--rb-white); }

/* ---------- 三个可玩点（插槽即内容） ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rb-space-4); }
.slot-card { border-radius: var(--rb-radius-card); padding: var(--rb-space-4); display: flex; flex-direction: column; }
.slot-card h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--rb-dusk-text-3);
  margin-bottom: var(--rb-space-2);
  text-transform: uppercase;
}
.slot-card [data-rb-slot="empty"] { padding: var(--rb-space-4) var(--rb-space-3); flex: 1; }
.slot-tip { font-size: 13px; color: var(--rb-dusk-text-2); text-align: center; }
.ritual-text { text-align: center; font-weight: 600; color: var(--rb-dusk-text); }
.slot-card .rb-success-ritual { margin: auto; padding: var(--rb-space-3) 0; }
/* 仪式彩带滚入视口才播放（生产环境播放一次） */
[data-rb-ritual] .rb-ritual-burst i { animation-play-state: paused; }
[data-rb-ritual].is-live .rb-ritual-burst i { animation-play-state: running; }

.conf-row { display: grid; gap: var(--rb-space-2); margin-top: var(--rb-space-3); font-size: 13px; color: var(--rb-gray-500); }
.conf-row b { color: var(--rb-ink-900); font-family: var(--rb-font-display); }
.conf-bar { height: 8px; border-radius: var(--rb-radius-pill); background: var(--rb-line-200); overflow: hidden; }
.conf-bar i { display: block; height: 100%; width: 0; background: var(--rb-gradient); border-radius: var(--rb-radius-pill); transition: width var(--rb-dur) var(--rb-ease); }
.conf-tip { font-size: 12px; color: var(--rb-warning); }

.shot-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: var(--rb-space-3); }
.shot-table th {
  text-align: left;
  padding: var(--rb-space-3);
  background: var(--rb-paper-50);
  color: var(--rb-gray-500);
  font-weight: 600;
  font-size: var(--rb-text-caption);
  border-bottom: 1px solid var(--rb-line-200);
}
.shot-table td { padding: var(--rb-space-3); border-bottom: 1px solid var(--rb-line-200); vertical-align: top; }
.shot-table tr:last-child td { border-bottom: 0; }
.shot-no { font-family: var(--rb-font-display); font-weight: 700; color: var(--rb-violet); }

.race-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--rb-space-3); }
.race-card {
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  background: var(--rb-white);
  padding: var(--rb-space-4);
  display: grid;
  gap: var(--rb-space-2);
  box-shadow: var(--rb-shadow-card);
}
.race-card .rc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--rb-space-2); }
.race-card .rc-head b { font-size: 15px; }
.race-card .rc-meta { font-size: 12px; color: var(--rb-gray-500); }
.race-card a { font-size: 13px; word-break: break-all; }

/* ---------- 订单 ---------- */
.trade-grid {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr);
  gap: var(--rb-space-4);
  align-items: start;
}
.order-list { position: sticky; top: 84px; }
.order-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-btn);
  padding: var(--rb-space-3);
  margin-bottom: var(--rb-space-2);
  cursor: pointer;
  color: var(--rb-ink-900);
  transition: all var(--rb-dur) var(--rb-ease);
  box-shadow: none;
  font-weight: 400;
}
.order-item:hover { border-color: var(--rb-gray-300); transform: none; background: var(--rb-white); }
.order-item.sel { border-color: var(--rb-blue); background: var(--rb-blue-soft); }
.order-item b { display: block; font-size: 14px; }
.order-item .oi-meta { display: flex; justify-content: space-between; align-items: center; margin-top: var(--rb-space-1); font-size: 12px; color: var(--rb-gray-500); }
.empty-mini { color: var(--rb-gray-500); font-size: 13px; padding: var(--rb-space-3) 0; }

.order-head .row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--rb-space-4); flex-wrap: wrap; }
.order-head h3 { font-size: var(--rb-text-h3); line-height: 1.25; }
.order-head .meta { color: var(--rb-gray-500); font-size: var(--rb-text-caption); margin-top: var(--rb-space-2); display: flex; gap: var(--rb-space-4); flex-wrap: wrap; }

.timeline { display: flex; align-items: flex-start; margin-bottom: var(--rb-space-4); }
.tl-step { flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--rb-gray-500); }
.tl-step::before {
  content: "";
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rb-line-200);
  border: 2px solid var(--rb-line-200);
  margin: 0 auto var(--rb-space-2);
  position: relative;
  z-index: 1;
}
.tl-step::after {
  content: "";
  position: absolute;
  top: 5px; left: -50%;
  width: 100%; height: 2px;
  background: var(--rb-line-200);
}
.tl-step:first-child::after { display: none; }
.tl-step.done::before { background: var(--rb-success); border-color: var(--rb-success); }
.tl-step.done::after { background: var(--rb-success); }
.tl-step.doing::before { background: var(--rb-violet); border-color: var(--rb-violet); box-shadow: 0 0 0 4px var(--rb-violet-soft); }
.tl-step.doing { color: var(--rb-ink-900); font-weight: 600; }
.tl-step.cancelled::before { background: var(--rb-error); border-color: var(--rb-error); }
.tl-step .sub { display: block; margin-top: var(--rb-space-1); font-size: 11px; font-weight: 400; color: var(--rb-gray-300); }

.od-actions { display: flex; flex-wrap: wrap; gap: var(--rb-space-2); margin-bottom: var(--rb-space-4); }

.events { display: grid; gap: var(--rb-space-2); }
.event-row {
  display: flex;
  gap: var(--rb-space-3);
  font-size: 13px;
  padding: var(--rb-space-2) var(--rb-space-3);
  border-left: 2px solid var(--rb-line-200);
  color: var(--rb-gray-500);
}
.event-row b { color: var(--rb-ink-900); font-weight: 600; }
.event-row .ev-time { margin-left: auto; white-space: nowrap; font-size: 12px; color: var(--rb-gray-300); }

.layer-divider {
  display: flex;
  align-items: center;
  gap: var(--rb-space-3);
  margin: var(--rb-space-4) 0;
  color: var(--rb-gray-300);
  font-size: 12px;
  letter-spacing: 1px;
}
.layer-divider::before, .layer-divider::after { content: ""; flex: 1; height: 1px; background: var(--rb-line-200); }

.settle-actions { display: flex; gap: var(--rb-space-2); margin: var(--rb-space-3) 0; }
.settle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--rb-space-3);
  font-size: 13px;
  padding: var(--rb-space-2) 0;
  border-bottom: 1px dashed var(--rb-line-200);
}
.settle-row span { color: var(--rb-gray-500); }
.no-pool {
  margin-top: var(--rb-space-3);
  padding: var(--rb-space-3);
  border-radius: var(--rb-radius-btn);
  background: var(--rb-paper-50);
  font-size: 12px;
  color: var(--rb-gray-500);
}

/* ---------- 运营看板 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--rb-space-3);
  margin-bottom: var(--rb-space-4);
}
.stat-card {
  background: var(--rb-white);
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  box-shadow: var(--rb-shadow-card);
  padding: var(--rb-space-4);
}
.stat-card b {
  display: block;
  font-family: var(--rb-font-display);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.stat-card span { font-size: 13px; color: var(--rb-gray-500); }

.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rb-space-4); }

.call-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rb-space-2) var(--rb-space-3);
  padding: var(--rb-space-2) 0;
  border-bottom: 1px dashed var(--rb-line-200);
  font-size: 13px;
}
.call-row:last-child { border-bottom: 0; }
.call-row .cp { min-width: 88px; font-weight: 600; }
.call-row .cm { color: var(--rb-gray-500); flex: 1; }
.call-row .cc { font-family: var(--rb-font-display); font-variant-numeric: tabular-nums; color: var(--rb-ink-900); }
.call-row .ct { font-size: 12px; color: var(--rb-gray-300); white-space: nowrap; }

.funnel-row { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: var(--rb-space-3); margin-bottom: var(--rb-space-2); font-size: 13px; }
.funnel-row .fb { height: 14px; border-radius: var(--rb-radius-pill); background: var(--rb-line-200); overflow: hidden; }
.funnel-row .fb i { display: block; height: 100%; min-width: 4px; background: var(--rb-gradient); border-radius: var(--rb-radius-pill); }
.funnel-row .fn { font-family: var(--rb-font-display); font-weight: 700; text-align: right; }

.alert-row {
  display: flex;
  align-items: flex-start;
  gap: var(--rb-space-3);
  padding: var(--rb-space-2) 0;
  border-bottom: 1px dashed var(--rb-line-200);
  font-size: 13px;
}
.alert-row:last-child { border-bottom: 0; }
.alert-row .at { color: var(--rb-gray-500); }
.ops-actions { display: flex; flex-wrap: wrap; gap: var(--rb-space-2); }

/* ---------- 胶片条 + 页脚 ---------- */
.film-strip {
  height: 28px;
  background: var(--rb-ink-900);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--rb-space-5);
  overflow: hidden;
}
.film-strip i { width: 16px; height: 10px; border-radius: 2px; background: var(--rb-glass-bg-strong); flex-shrink: 0; }
footer { background: var(--rb-ink-900); color: var(--rb-on-dark-sub); padding: var(--rb-space-7) 6vw; font-size: 14px; }
.foot-brand b { color: var(--rb-white); font-size: 18px; letter-spacing: 2px; font-family: var(--rb-font-display); }
.foot-brand p { margin-top: var(--rb-space-2); max-width: 560px; }
footer .cols { display: flex; gap: var(--rb-space-7); margin-top: var(--rb-space-5); flex-wrap: wrap; }
footer .cols h5 { color: var(--rb-on-dark-text); font-size: 14px; margin-bottom: var(--rb-space-3); }
footer .cols a { display: block; color: var(--rb-on-dark-sub); text-decoration: none; font-size: var(--rb-text-caption); padding: var(--rb-space-1) 0; }
footer .cols a:hover { color: var(--rb-white); }

/* ---------- 弹层 / 向导 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: var(--rb-on-dark-mask);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--rb-space-4);
}
.modal {
  background: var(--rb-white);
  color: var(--rb-ink-900);
  border-radius: var(--rb-radius-modal);
  box-shadow: var(--rb-shadow-card-hover);
  width: min(960px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  gap: var(--rb-space-4);
  padding: var(--rb-space-4) var(--rb-space-5);
  border-bottom: 1px solid var(--rb-line-200);
}
.modal-head h3 { font-size: 18px; }
.wizard-dots { display: flex; gap: var(--rb-space-2); flex-wrap: wrap; }
.wdot {
  padding: 4px var(--rb-space-3);
  border-radius: var(--rb-radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--rb-paper-50);
  color: var(--rb-gray-500);
}
.wdot.active { background: var(--rb-blue-soft); color: var(--rb-blue); }
.wdot.done { background: var(--rb-success-soft); color: var(--rb-success); }
.modal-close {
  margin-left: auto;
  background: transparent;
  color: var(--rb-gray-500);
  font-size: 22px;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: var(--rb-radius-pill);
  box-shadow: none;
}
.modal-close:hover { background: var(--rb-paper-50); transform: none; }
.modal-body { padding: var(--rb-space-5); overflow: auto; }
.modal-foot {
  display: flex;
  align-items: center;
  gap: var(--rb-space-3);
  padding: var(--rb-space-4) var(--rb-space-5);
  border-top: 1px solid var(--rb-line-200);
}
.modal-foot-flex { flex: 1; }

.wgrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--rb-space-5); }
.wform { display: grid; gap: var(--rb-space-3); align-content: start; }
.wform label { display: grid; gap: var(--rb-space-1); font-size: 13px; color: var(--rb-gray-500); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rb-space-3); }
.wpreview { display: grid; gap: var(--rb-space-3); align-content: start; }
.wpreview .output-frame { grid-template-columns: 120px minmax(0, 1fr); margin-bottom: 0; }
.wpreview [data-rb-slot="empty"], .wpreview [data-rb-slot="loading"] { min-height: 96px; }
.wpreview [data-rb-slot="loading"]:empty::after { margin-top: var(--rb-space-6); }
.wp-shots { margin: var(--rb-space-2) 0 0; padding-left: var(--rb-space-5); font-size: 13px; color: var(--rb-ink-700); }
.human-tip {
  font-size: 12px;
  color: var(--rb-warning);
  background: var(--rb-warning-soft);
  border-radius: var(--rb-radius-btn);
  padding: var(--rb-space-2) var(--rb-space-3);
  margin-top: var(--rb-space-2);
}

.creator-card {
  display: flex;
  align-items: center;
  gap: var(--rb-space-3);
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  padding: var(--rb-space-4);
  background: var(--rb-white);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: var(--rb-radius-pill);
  background: var(--rb-gradient);
  color: var(--rb-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.creator-info { flex: 1; display: grid; }
.creator-info b { font-size: 14px; }
.creator-info span { font-size: 12px; color: var(--rb-gray-500); }

.success-box {
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-card);
  background: var(--rb-paper-50);
  padding: var(--rb-space-5);
  display: grid;
  gap: var(--rb-space-2);
  justify-items: start;
}
.success-box b { font-size: 17px; }
.success-box p { font-size: 14px; color: var(--rb-gray-500); }
.success-box code {
  font-family: var(--rb-font-display);
  background: var(--rb-white);
  border: 1px solid var(--rb-line-200);
  border-radius: var(--rb-radius-btn);
  padding: 2px var(--rb-space-2);
  font-size: 13px;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: var(--rb-space-6);
  transform: translateX(-50%);
  background: var(--rb-ink-900);
  color: var(--rb-white);
  border-radius: var(--rb-radius-btn);
  padding: var(--rb-space-3) var(--rb-space-5);
  font-size: 14px;
  z-index: 80;
  box-shadow: var(--rb-shadow-card-hover);
  max-width: 90vw;
}
#toast.err { background: var(--rb-error); }
#toast.warn { background: var(--rb-warning); }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; padding: var(--rb-space-3) var(--rb-space-4); gap: var(--rb-space-3); }
  .topbar-actions { margin-left: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: var(--rb-space-7) var(--rb-space-5); }
  .hero h1 { font-size: 38px; }
  .dual, .ops-grid, .wgrid, .wb-grid, .trade-grid { grid-template-columns: 1fr; }
  .flow, .model-row { grid-template-columns: repeat(2, 1fr); }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
  .section-head .btn, .section-head .quota-pill { margin-top: var(--rb-space-3); }
  .output-frame { grid-template-columns: 1fr; }
  .order-list { position: static; }
  .band { padding: var(--rb-space-6) var(--rb-space-4); }
  .timeline { flex-wrap: wrap; gap: var(--rb-space-3); }
  .tl-step { flex: 1 1 40%; }
  .tl-step::after { display: none; }
  .modal { max-height: 94vh; }
}
