/* ============================================================================
   demo.css — 客户演示包附加样式（仅演示层，不改动主应用样式）
   ============================================================================ */

/* ---------- 右下角演示助手 ---------- */
#demo-dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
#demo-fab {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(145deg, #E4603C, #C8442A); color: #fff;
  font-size: 20px; line-height: 1; box-shadow: 0 8px 24px rgba(200, 68, 42, .38);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s, box-shadow .18s;
}
#demo-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 30px rgba(200, 68, 42, .48); }
#demo-fab::after {
  content: "DEMO"; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  background: #1F2937; color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 6px; white-space: nowrap;
}

#demo-panel {
  position: absolute; right: 0; bottom: 66px; width: 366px; max-height: min(76vh, 680px);
  background: #fff; border: 1px solid #E6E9EE; border-radius: 14px;
  box-shadow: 0 18px 56px rgba(24, 34, 48, .22); overflow: hidden;
  display: none; flex-direction: column;
}
#demo-dock.on #demo-panel { display: flex; }

.dp-hd {
  padding: 14px 16px 12px; background: linear-gradient(120deg, #232C3B, #33405A); color: #fff;
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; flex: none;
}
.dp-hd span { font-size: 10px; font-weight: 500; color: #F4B49B; background: rgba(255,255,255,.12); padding: 2px 7px; border-radius: 20px; }
.dp-hd i { margin-left: auto; font-style: normal; font-size: 20px; cursor: pointer; opacity: .7; line-height: 1; }
.dp-hd i:hover { opacity: 1; }

.dp-tabs { display: flex; gap: 6px; padding: 10px 14px 6px; flex: none; }
.dp-tabs button {
  flex: 1; padding: 7px 4px; border: 1px solid #E6E9EE; background: #F7F8FA; color: #5B6472;
  border-radius: 8px; font-size: 11.5px; cursor: pointer; font-weight: 600;
}
.dp-tabs button.on { background: #FDF1ED; border-color: #E9B7A6; color: #C8442A; }

.dp-body { overflow-y: auto; padding: 6px 14px 10px; flex: 1; min-height: 90px; }
.dp-step {
  border: 1px solid #EDF0F3; border-left: 3px solid #D8DEE6; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 6px; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.dp-step:hover { border-left-color: #C8442A; background: #FFFCFA; }
.dp-step .t { font-size: 12px; font-weight: 700; color: #243044; }
.dp-step .t em { font-style: normal; color: #9AA3B0; font-weight: 500; margin-right: 6px; }
.dp-step .s { display: none; font-size: 11px; line-height: 1.7; color: #5B6472; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #EDF0F3; }
.dp-step.open { border-left-color: #C8442A; background: #FFFCFA; }
.dp-step.open .s { display: block; }

.dp-sec { border-top: 1px solid #EDF0F3; padding: 10px 14px; flex: none; }
.dp-t { font-size: 10.5px; font-weight: 800; color: #8A94A3; letter-spacing: .06em; margin-bottom: 7px; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.dp-chips button {
  border: 1px solid #E3E7EC; background: #F7F8FA; color: #3C4757; border-radius: 20px;
  padding: 5px 9px; font-size: 10.5px; cursor: pointer;
}
.dp-chips button:hover { border-color: #E9B7A6; background: #FDF1ED; color: #C8442A; }
.dp-chips button.hot { background: #FDF1ED; border-color: #E9B7A6; color: #C8442A; font-weight: 700; }

.dp-ft { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #EDF0F3; flex: none; }
.dp-ft button, .dp-ft a {
  flex: 1; text-align: center; padding: 7px 4px; border-radius: 8px; font-size: 11px;
  border: 1px solid #E3E7EC; background: #fff; color: #5B6472; cursor: pointer; text-decoration: none;
}
.dp-ft a { border-color: #C8442A; color: #C8442A; font-weight: 700; }
.dp-ft button:hover { background: #F7F8FA; }
.dp-note {
  background: #FFF8F4; border-top: 1px solid #F3E3DA; color: #9A6B58;
  font-size: 10px; line-height: 1.6; padding: 8px 14px; flex: none;
}

/* ---------- 演示模式角标（顶栏右侧，轻量、不占布局） ---------- */
#demo-tag {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 950;
  background: linear-gradient(90deg, #C8442A, #E9834F, #C8442A);
}

/* ---------- 启动页演示说明 ---------- */
.demo-boot-tip {
  margin-top: 12px; padding: 9px 12px; border-radius: 8px;
  background: #FFF6F1; border: 1px solid #F0D9CD; color: #9A5B42;
  font-size: 11px; line-height: 1.7;
}
.demo-boot-tip b { color: #C8442A; }

@media (max-width: 520px) {
  #demo-dock { right: 12px; bottom: 12px; }
  #demo-panel { width: calc(100vw - 24px); bottom: 64px; max-height: 72vh; }
  #demo-fab { width: 46px; height: 46px; font-size: 17px; }
}
@media print {
  #demo-dock, #demo-tag { display: none !important; }
}
