/* ============================================================
   GenUI 复刻 UI 组件库
   —— 1:1 还原优鲜链后台真实界面（基于源码取证：视图结构、中文文案、
      表格列名、按钮清单、状态枚举、 Element Plus 观感）
   所有示例数据均为虚构脱敏值，不对应任何真实业务对象。
   ============================================================ */

.uiapp {
  --u-bg: #f4f6f9;
  --u-card: #ffffff;
  --u-line: #e5e8ee;
  --u-line-2: #eff1f5;
  --u-text: #1f2733;
  --u-text-2: #5a6473;
  --u-sub: #98a1b0;
  --u-pri: #1677ff;
  --u-pri-soft: #e8f1ff;
  --u-green: #2fa37a;
  --u-green-soft: #e7f6ef;
  --u-red: #e34d59;
  --u-red-soft: #fdecee;
  --u-orange: #e37318;
  --u-orange-soft: #fdf1e4;
  --u-purple: #7b61ff;
  --u-r: 10px;

  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--u-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--u-text);
  line-height: 1.5;
  text-align: left;
}

.uiapp *, .uiapp *::before, .uiapp *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: inherit;
}

/* ---------- 窗口外壳 ---------- */
.uiapp__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: linear-gradient(180deg, #1a2233, #131a28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.uiapp__dots { display: flex; gap: 6px; }
.uiapp__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}
.uiapp__dots i:nth-child(2) { background: #febc2e; }
.uiapp__dots i:nth-child(3) { background: #28c840; }

.uiapp__url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  height: 21px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #8b96ab;
  letter-spacing: 0.02em;
}

/* ---------- 后台框架 ---------- */
.uiapp__body {
  display: flex;
  background: var(--u-bg);
  overflow-x: auto;
  overflow-y: hidden;
}

.ui-side {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 196px;
  min-height: 0;
  padding: 12px 10px 10px;
  background: #fff;
  border-right: 1px solid var(--u-line-2);
}
.ui-side__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 12px;
  font-weight: 700;
  font-size: 14px;
}
.ui-side__logo i {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #38bdf8, #22d3ee, #34d399);
}
/* 菜单区独立滚动：真实系统一级 14 个、二级 45 个，一屏装不下就内部滚 */
.ui-side__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.ui-side__nav::-webkit-scrollbar { width: 4px; }
.ui-side__nav::-webkit-scrollbar-thumb { background: #d7dce5; border-radius: 4px; }

.ui-side__group { margin-bottom: 1px; }
.ui-side__item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 29px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--u-text-2);
  cursor: default;
}
.ui-side__item i.ic {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: #c7cfdb;
  flex: none;
}
.ui-side__item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 展开箭头：收起朝右、展开朝下（与 Element 菜单一致） */
.ui-side__arw {
  flex: none;
  width: 5px; height: 5px;
  margin-right: 2px;
  border-right: 1.4px solid #b7bfcb;
  border-bottom: 1.4px solid #b7bfcb;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.ui-side__group.is-open > .ui-side__item { color: var(--u-text); font-weight: 600; }
.ui-side__group.is-open > .ui-side__item .ui-side__arw { transform: rotate(45deg); }
.ui-side__item.is-on {
  background: var(--u-pri-soft);
  color: var(--u-pri);
  font-weight: 600;
}
.ui-side__item.is-on i.ic { background: var(--u-pri); }
.ui-side__item.is-on .ui-side__arw { border-color: var(--u-pri); }

/* 二级页面：左侧一条虚线挂在当前模块下 */
.ui-side__sub {
  display: none;
  margin: 1px 0 3px 15px;
  padding: 2px 0 2px 9px;
  border-left: 1px dashed var(--u-line-2);
}
.ui-side__group.is-open > .ui-side__sub { display: block; }
.ui-side__sub span {
  display: block;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--u-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-side__sub span.is-on {
  background: var(--u-pri-soft);
  color: var(--u-pri);
  font-weight: 600;
}

.ui-main { flex: 1; min-width: 760px; }

.ui-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--u-line-2);
}
/* 顶栏最左的菜单折叠按钮：真实系统用它收起/展开侧边栏 */
.ui-top__fold {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--u-line);
  border-radius: 7px;
}
.ui-top__fold::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px;
  width: 12px; height: 1.5px;
  background: #b6bdc8;
  box-shadow: 0 4px 0 #b6bdc8, 0 8px 0 #b6bdc8;
}
.ui-top__crumb { color: var(--u-sub); font-size: 12px; }
.ui-top__crumb b { color: var(--u-text); font-weight: 600; }
.ui-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ui-top__ico {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--u-line-2);
}
.ui-top__av {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #34d399);
}

.ui-wrap { padding: 14px; }

/* ---------- 卡片 ---------- */
.ui-card {
  background: var(--u-card);
  border: 1px solid var(--u-line-2);
  border-radius: var(--u-r);
  padding: 14px;
}
.ui-card__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ui-card__hd h5 { font-size: 14px; font-weight: 600; }
.ui-card__hd small { font-size: 11px; color: var(--u-sub); font-weight: 400; }
.ui-card__hd .ui-more { margin-left: auto; color: var(--u-sub); font-size: 12px; }

.ui-row { display: flex; gap: 14px; }
.ui-col { min-width: 0; }

/* ---------- 统计卡 ---------- */
.ui-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--u-line-2);
  border-radius: var(--u-r);
  background: #fff;
}
.ui-stat__mid { flex: 1; min-width: 0; }
.ui-stat__lb { font-size: 12px; color: var(--u-sub); }
.ui-stat__val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.ui-stat__ft {
  margin-top: 3px;
  font-size: 11px;
  color: var(--u-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ui-stat__ico {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.ui-up { color: var(--u-green); font-weight: 600; }
.ui-down { color: var(--u-red); font-weight: 600; }

.st-blue { background: var(--u-pri-soft); color: var(--u-pri); }
.st-green { background: var(--u-green-soft); color: var(--u-green); }
.st-orange { background: var(--u-orange-soft); color: var(--u-orange); }
.st-purple { background: #f0ecff; color: var(--u-purple); }
.st-red { background: var(--u-red-soft); color: var(--u-red); }

/* ---------- 按钮 ---------- */
.ui-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--u-line);
  background: #fff;
  color: var(--u-text-2);
  font-size: 12px;
  white-space: nowrap;
}
.ui-btn i.ico {
  width: 11px; height: 11px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.75;
}
.ui-btn--pri { background: var(--u-pri); border-color: var(--u-pri); color: #fff; }
.ui-btn--warn { background: var(--u-orange); border-color: var(--u-orange); color: #fff; }
.ui-btn--plain { background: var(--u-pri-soft); border-color: #cfe2ff; color: var(--u-pri); }
.ui-btn--sm { height: 24px; padding: 0 8px; font-size: 11px; }
.ui-btn--icon { width: 28px; padding: 0; justify-content: center; }
/* 工具栏右侧无文字图标按钮：用 CSS 画出可辨识的形状 */
.ui-btn--icon::after {
  content: "";
  display: block;
  width: 11px; height: 11px;
  border: 1.5px solid #7d879a;
  border-radius: 3px;
}
.ui-btn--icon[data-ic="search"]::after { border-radius: 50%; }
.ui-btn--icon[data-ic="refresh"]::after { border-radius: 50%; border-right-color: transparent; }
.ui-btn--icon[data-ic="density"]::after {
  border: 0;
  background: repeating-linear-gradient(#7d879a 0 1.5px, transparent 1.5px 4.5px);
}
.ui-btn--icon[data-ic="fullscreen"]::after { border-radius: 2px; }
.ui-btn--icon[data-ic="columns"]::after {
  border: 0;
  background: repeating-linear-gradient(to right, #7d879a 0 2px, transparent 2px 5px);
}
.ui-btn--lg { height: 30px; padding: 0 14px; }

/* ---------- 搜索栏 ---------- */
.ui-search {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 4px 0 10px;
}
.ui-fi { min-width: 0; }
.ui-fi__lb { display: block; font-size: 11px; color: var(--u-sub); margin-bottom: 4px; }
.ui-fi__box {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--u-line);
  border-radius: 6px;
  background: #fff;
  color: var(--u-text-2);
  font-size: 12px;
  gap: 6px;
}
.ui-fi__box.is-ph { color: #b6bdc8; }
.ui-fi__box .arrow { margin-left: auto; color: #b6bdc8; font-size: 9px; }
.ui-fi__box .cal { width: 11px; height: 11px; border: 1px solid #c3cad6; border-radius: 3px; margin-left: auto; }
.ui-fi--range .ui-fi__box { gap: 4px; }

.ui-btns { display: flex; gap: 8px; margin-left: auto; }

/* ---------- 快捷筛选 chips ---------- */
.ui-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--u-line);
  background: #fff;
  color: var(--u-text-2);
  font-size: 12px;
}
.ui-chip i.logo {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: #dfe4ec;
}
.ui-chip.is-on {
  background: var(--u-pri);
  border-color: var(--u-pri);
  color: #fff;
  font-weight: 600;
}
.ui-chip.is-on i.logo { background: rgba(255, 255, 255, 0.55); }

/* ---------- 工具栏 ---------- */
.ui-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 12px;
}
.ui-toolbar__right { margin-left: auto; display: flex; gap: 6px; }

/* ---------- 表格 ---------- */
.ui-tablebox { border: 1px solid var(--u-line-2); border-radius: var(--u-r); overflow: auto; }
/* 订单表按真实列名排布，列宽压缩到可完整呈现的尺度；
   .ui-main 的 min-width 与这里的总宽配套，使 fit 缩放比控制在 0.9 以上 */
.ui-table { min-width: 1090px; }
.uiapp[data-shot="order"] .ui-main { min-width: 1130px; }
.ui-table { width: 100%; border-collapse: collapse; background: #fff; }
.ui-table th, .ui-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--u-line-2);
  vertical-align: middle;
}
.ui-table th {
  background: #fafbfd;
  color: var(--u-text-2);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.ui-table td { font-size: 12px; color: var(--u-text-2); }
.ui-table tbody tr:last-child td { border-bottom: 0; }
.ui-table tbody tr:hover td { background: #f7f9fc; }
.ui-cell-b { color: var(--u-text); font-weight: 600; }
.ui-cell-s { color: var(--u-sub); font-size: 11px; }
.ui-nowrap { white-space: nowrap; }
.ui-stacked > * { display: block; }
.ui-stacked > * + * { margin-top: 3px; }

/* ---------- 标签 ---------- */
.ui-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.ui-tag--success { background: var(--u-green-soft); color: var(--u-green); }
.ui-tag--danger { background: var(--u-red-soft); color: var(--u-red); }
.ui-tag--warning { background: var(--u-orange-soft); color: var(--u-orange); }
.ui-tag--info { background: var(--u-pri-soft); color: var(--u-pri); }
.ui-tag--gray { background: #f1f3f7; color: var(--u-text-2); }
.ui-tagbox { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- 操作按钮（与真实界面一致：纯图标、无文字） ---------- */
.ui-act { display: flex; gap: 6px; }
.ui-act i {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: var(--u-pri);
}
/* 查看详情：眼睛形状（圆环 + 瞳孔） */
.ui-act i.view::after {
  content: "";
  width: 11px; height: 11px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 2px, transparent 2px);
}
.ui-act i.del { background: #f5f6f8; border: 1px solid var(--u-line); }
.ui-act i.del::after {
  content: "";
  width: 10px; height: 11px;
  border: 1.5px solid var(--u-red);
  border-top: 0;
  border-radius: 0 0 3px 3px;
  position: relative;
}

/* ---------- 分页 ---------- */
.ui-pager {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 2px 2px;
  font-size: 12px;
  color: var(--u-sub);
}
.ui-pager b {
  min-width: 24px; height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--u-line);
  color: var(--u-text-2);
  font-weight: 500;
}
.ui-pager b.on { background: var(--u-pri); border-color: var(--u-pri); color: #fff; }

/* ---------- 加载骨架屏 ---------- */
.ui-skel {
  background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: skelRun 1.3s ease-in-out infinite;
  border-radius: 5px;
  height: 11px;
}
@keyframes skelRun {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- AI 小助手 Drawer ---------- */
.uichat {
  position: relative;
  min-height: 486px;
  display: flex;
  flex-direction: column;
  color: #fff;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  background: linear-gradient(150deg, #4a7ff5 0%, #6b5cf0 46%, #8f4ae0 100%);
  font-size: 13px;
}
.uichat::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}
.uichat__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  background: rgba(255, 255, 255, 0.34);
}
.uichat__blob:nth-child(1) { width: 190px; height: 190px; top: -50px; left: -40px; animation: blobA 8s ease-in-out infinite; }
.uichat__blob:nth-child(2) { width: 220px; height: 220px; bottom: -70px; right: -50px; background: rgba(56, 189, 248, 0.4); animation: blobB 10s ease-in-out infinite; }
.uichat__blob:nth-child(3) { width: 150px; height: 150px; top: 44%; left: 46%; background: rgba(52, 211, 153, 0.32); animation: blobC 12s ease-in-out infinite; }
@keyframes blobA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, 14px); } }
@keyframes blobB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, -12px); } }
@keyframes blobC { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-14px, 18px) scale(1.12); } }

/* 只抬升内容层，不能写成 .uichat > *：那会把装饰光斑的 position:absolute 覆盖成 relative，
   光斑转而占满文档流，把消息区挤出可视范围 */
.uichat > .uichat__hd,
.uichat > .uichat__body,
.uichat > .uiquick,
.uichat > .uiinput {
  position: relative;
  z-index: 1;
}

.uichat__hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 12px 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.uichat__brand { display: flex; flex-direction: column; line-height: 1.25; }
.uichat__brand b { font-size: 13px; font-weight: 700; }
.uichat__brand span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
}
.uichat__dot { width: 5px; height: 5px; border-radius: 50%; background: #6ee7a8; }
.uichat__ctx {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.86);
}
.uichat__ctx em {
  font-style: normal;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}
.uichat__ctx i.gap { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.3); }
.uichat__ops { display: flex; gap: 6px; }
.uichat__ops i {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
}

.uichat__body {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.uichat__body::-webkit-scrollbar { width: 5px; }
.uichat__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.35); border-radius: 3px; }
/* 消息不允许被压缩：高度不足时应由抽屉整体撑高，而不是把气泡压扁 */
.uichat__body > * { flex: none; }

.uimsg { display: flex; gap: 8px; align-items: flex-start; }
.uimsg--me { flex-direction: row-reverse; }
.uiav {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
}
.uimsg--me .uiav { background: linear-gradient(135deg, #6b5cf0, #8f4ae0); }
.uimsg__col { min-width: 0; max-width: 92%; }
.uimsg--me .uimsg__col { display: flex; flex-direction: column; align-items: flex-end; }
.uimsg__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}
.uibub {
  padding: 9px 12px;
  border-radius: 12px 12px 12px 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2733;
  font-size: 12.5px;
  line-height: 1.62;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.uimsg--me .uibub {
  border-radius: 12px 12px 6px 12px;
  background: linear-gradient(120deg, #6b5cf0, #4a7ff5);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.uibub--text { max-width: 70%; }

/* NLQ 数据卡片 */
.uidc {
  margin-top: 8px;
  width: 100%;
  border-radius: 12px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.97);
  color: #1f2733;
  box-shadow: 0 8px 22px -12px rgba(20, 30, 60, 0.4);
}
.uidc__hd { display: flex; align-items: center; gap: 10px; }
.uidc__title { font-size: 14px; font-weight: 700; }
.uidc__money {
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #ff6b6b, #e34d59);
}
.uidc__sub { margin-top: 3px; font-size: 11.5px; color: #8a93a3; }
.uidc__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.uidc__chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: #eef2f8;
  color: #5a6473;
}
.uidc__chip.is-money { background: var(--u-pri-soft); color: var(--u-pri); }
.uidc__chip.is-strong {
  background: linear-gradient(120deg, #1677ff, #6b5cf0);
  color: #fff;
  font-weight: 700;
}
.uidc__tbl { width: 100%; border-collapse: collapse; margin-top: 10px; }
.uidc__tbl th {
  position: sticky;
  top: 0;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #8a93a3;
  padding: 5px 7px;
  background: #f6f8fb;
  white-space: nowrap;
}
.uidc__tbl td {
  padding: 6px 7px;
  font-size: 12px;
  border-top: 1px solid #eef1f6;
  color: #414b5b;
  white-space: nowrap;
}
.uidc__cap {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  background: var(--u-pri-soft);
  color: var(--u-pri);
}
.uidc__cap.is-money { background: var(--u-pri); color: #fff; }
.uidc__cap.is-plus { background: #e7f6ef; color: #2fa37a; }
.uidc__ft {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #eef1f6;
  font-size: 11px;
  color: #98a1b0;
}
.uidc__jump {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, #1677ff, #6b5cf0);
}

/* 思考中 */
.uithink { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px 12px 12px 6px; }
.uithink__wave { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.uithink__wave i {
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: #fff;
  opacity: 0.85;
  animation: twave 1s ease-in-out infinite;
}
.uithink__wave i:nth-child(2) { animation-delay: 0.15s; }
.uithink__wave i:nth-child(3) { animation-delay: 0.3s; }
.uithink__wave i:nth-child(4) { animation-delay: 0.45s; }
.uithink__wave i:nth-child(5) { animation-delay: 0.6s; }
@keyframes twave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.uithink__txt { font-size: 12px; font-weight: 600; color: #fff; }

/* 快捷问法 + 输入区 */
/* 真实界面这里横向滚动；展示场景改为换行，保证推荐问法都能看全 */
.uiquick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px 0; }
.uiquick__lb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.2);
}
.uiquick__c {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.uiinput {
  margin: 0 12px 12px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.uiinput__ta {
  min-height: 38px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
}
.uiinput__caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  margin-left: 2px;
  background: #fff;
  animation: caret 1.1s step-end infinite;
}
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.uiinput__row { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.uiinput__row i {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.uiinput__send {
  margin-left: auto;
  min-width: 78px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, #1677ff, #6b5cf0);
}

/* ---------- 演示舞台剧场 ---------- */
/* Tab 横排放在上方，让复刻图独占整行宽度（原左侧竖排会把压缩画面到 934px） */
.show { display: block; }
.show__tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.show__tab {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
  transition: transform 0.26s var(--ease), border-color 0.26s, background 0.26s;
}
.show__tab:hover { transform: translateX(3px); border-color: var(--line-2); }
.show__tab__no {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}
.show__tab b { display: block; font-size: 14.5px; font-weight: 600; }
.show__tab i { display: block; font-style: normal; font-size: 12px; color: var(--faint); }
.show__tab.is-on {
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.16), rgba(52, 211, 153, 0.09));
}
.show__tab.is-on .show__tab__no {
  color: #05121f;
  background: var(--grad);
  border-color: transparent;
}

.show__stage { position: relative; min-width: 0; }
.show__pane { display: none; }
.show__pane.is-on { display: block; animation: paneIn 0.5s var(--ease); }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.show__note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13.5px;
  color: var(--dim);
}
.show__note b { color: var(--ink); font-weight: 600; }
.show__note__k {
  flex: none;
  /* 原深色主题的 --c2 已随主题移除，改用品牌蓝变量 */
  color: var(--brand-2, #0ea5e9);
  font-weight: 700;
}

/* ---------- 演示面板统一视窗高度 ----------
   四张复刻件的自然高度本来各不相同（工作台 693 / 订单 602 / AI 950），再加上数据大屏那张
   实机截图，切 Tab 时舞台会跳高一大截。这里统一按「工作台」的高度定视窗，工作台是首屏级页面、信息密度最高，
   订单下方多出的空白本来就是真实表格下方的留白，AI 的消息区则改成内部滚动——
   真实系统的抽屉高度是写死的，内容再多也是消息区自己滚，不会把整个界面顶高。 */
.show__pane {
  --show-vh: 693px; /* = 工作台复刻件的自然高度 */
  /* 三个 pane 共用同一个宽度基准，否则窄屏触发等比缩放时各自的缩放比不同，
     视觉高度又会不一致。1316px = 订单表最宽的需求（侧栏 186 + .ui-main 1130），
     取三者最大值；视口够宽时 body 会铺满容器，这条 min-width 不产生任何影响 */
  --show-vw: 1316px;
}
.show__pane .uiapp__body {
  height: var(--show-vh);
  min-width: var(--show-vw);
}

/* AI 抽屉：视窗高度减去顶栏（.ui-top 固定 50px），剩下的都归消息区 */
.show__pane[data-pane-panel='p-ai'] .ui-wrap--stage {
  height: calc(var(--show-vh) - 50px);
  min-height: 0;
}
.show__pane[data-pane-panel='p-ai'] .ui-drawer { height: 100%; }
.show__pane[data-pane-panel='p-ai'] .uichat {
  height: 100%;
  min-height: 0;
}
/* 展示场景下消息区改为吃掉剩余高度并内部滚动，让输入区锁在抽屉底部 */
.show__pane[data-pane-panel='p-ai'] .uichat__body {
  flex: 1 1 auto;
  min-height: 0;
}

/* 复刻图内的入场动效：元素依次浮起（延迟由 JS 写入 --d） */
.uiapp.is-live .ui-anim { opacity: 0; transform: translateY(8px); }
.uiapp.is-live .ui-anim.is-in {
  animation: rowIn 0.52s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
/* 表格行比卡片位移小一点，逐行浮起不至于整表晃 */
.uiapp.is-live .ui-trow { opacity: 0; transform: translateY(4px); }
.uiapp.is-live .ui-trow.is-in {
  animation: rowIn 0.4s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rowIn {
  to { opacity: 1; transform: none; }
}

/* 复刻图等比缩放：容器不够宽时整体缩小而不是挤压变形或强制横向滚动。
   比例由 app-shot.js 计算后写入 style.transform，height 由同一段脚本回填。 */
.uiapp__body { overflow: hidden; }
.uiapp.is-fitted .uiapp__body { transform-origin: top left; will-change: transform; }

/* 复选框（表格 selection 列） */
.ui-skbox {
  display: inline-block;
  width: 13px; height: 13px;
  border: 1px solid #c3cad6;
  border-radius: 3px;
  background: #fff;
  vertical-align: middle;
}

/* ---------- AI 抽屉与其身后的页面 ---------- */
/* 抽屉按内容撑开；同时给足最小高度，宁可留白也不裁切内容 */
.ui-wrap--stage { position: relative; min-height: 900px; padding: 0; overflow: hidden; }
.ui-behind { position: absolute; inset: 0; padding: 16px 14px; }
.ui-behind__bar {
  height: 26px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--u-line-2);
  margin-bottom: 12px;
}
.ui-behind__line {
  height: 9px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--u-line-2);
  margin-bottom: 8px;
}
.ui-drawer {
  position: relative;
  margin-left: auto;
  width: min(496px, 78%);
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  box-shadow: -18px 0 44px -18px rgba(10, 16, 30, 0.42);
}
.ui-drawer .uichat { min-height: 0; border-radius: 20px 0 0 20px; }

/* 大屏下让复刻图出血到视口宽度：界面能按真实比例完整铺开，不必缩放。
   body 已设 overflow-x:hidden，不会因此产生横向滚动条。 */
@media (min-width: 1300px) {
  .show__stage {
    width: min(1440px, calc(100vw - 18px));
    margin-left: calc(50% - min(1440px, calc(100vw - 18px)) / 2);
  }
  .show__note { max-width: 1180px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 1080px) {
  .show__tabs { padding-bottom: 2px; }
  .show__tab { flex: none; }
}

@media (max-width: 760px) {
  /* 小屏下不再整体缩放（会把 13px 压到 4px），改为容器内横向滚动查看 */
  .uiapp__body { overflow-x: auto; }
  .uiapp.is-fitted .uiapp__body { transform: none !important; width: auto !important; }
  .ui-main { min-width: 900px; }
  .uiapp.is-fitted { height: auto !important; }
  .ui-wrap--stage { min-height: 0; }
  .ui-drawer { width: min(430px, 92%); }
}

/* ---------- 工作台专用件 ---------- */
.ui-hello { display: flex; align-items: center; gap: 14px; }
.ui-hello__t { font-size: 16px; font-weight: 700; }
.ui-hello__s { margin-top: 2px; font-size: 12px; color: var(--u-sub); }
.ui-hello__r { margin-left: auto; text-align: right; }
.ui-hello__w { font-size: 13px; font-weight: 600; }
.ui-hello__loc { font-size: 11px; color: var(--u-sub); }

.ui-metabar { display: flex; gap: 22px; flex-wrap: wrap; }
.ui-metabar__i span { display: block; font-size: 11px; color: var(--u-sub); }
.ui-metabar__i b { font-size: 13px; font-weight: 600; }

.ui-mini4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ui-mini {
  padding: 10px 12px;
  border: 1px solid var(--u-line-2);
  border-radius: 9px;
  background: #fbfcfe;
}
.ui-mini__lb { font-size: 11px; color: var(--u-sub); }
.ui-mini__v { margin-top: 2px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.ui-quickrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.ui-quickcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--u-line-2);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  color: var(--u-text-2);
}
.ui-quickcard i {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--u-pri-soft);
}

.ui-todo__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--u-line-2);
}
.ui-todo__row:last-child { border-bottom: 0; }
.ui-todo__n { font-size: 12.5px; font-weight: 600; }
.ui-todo__m { margin-top: 2px; font-size: 11px; color: var(--u-sub); }
.ui-todo__r { margin-left: auto; text-align: right; }
.ui-todo__amt { font-size: 12.5px; font-weight: 600; color: var(--u-pri); }
.ui-todo__due { margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--u-orange); }

.ui-two-col { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; }

@media (prefers-reduced-motion: reduce) {
  .uichat__blob,
  .uithink__wave i,
  .uiinput__caret,
  .ui-skel,
  .show__pane.is-on,
  .uiapp.is-live .ui-anim,
  .uiapp.is-live .ui-trow {
    animation: none !important;
  }
  .uiapp.is-live .ui-anim,
  .uiapp.is-live .ui-trow { opacity: 1; transform: none; }
}

/* ============================================================
   账户管理页复刻（财务中心 / 账户管理）
   结构：多页签 → 4 张资金统计卡 → 所有账户的银行卡网格
   ============================================================ */
/* 多页签整条：真实系统的 WorkTab 挂在顶栏下方，与内容区之间有一条分隔线 */
.ui-pagetabs {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 6px 16px 0;
  background: var(--u-bg);
  border-bottom: 1px solid var(--u-line-2);
}
.ui-pagetab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--u-line);
  border-radius: 7px 7px 0 0;
  background: var(--u-bg);
  font-size: 11.5px;
  color: var(--u-text-2);
}
.ui-pagetab.is-on {
  background: #fff;
  color: var(--u-pri);
  border-color: var(--u-pri);
  box-shadow: inset 0 -2px 0 var(--u-pri);
}
.ui-pagetab i { font-style: normal; color: var(--u-sub); }

/* 资金统计四连卡：账户总余额 / 本月收入 / 本月支出 / 启用账户数 */
.ui-statrow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ui-statrow .ui-stat { padding: 12px 13px; }
/* 四列窄卡里把数值字号收一档，-¥4,500.00 这类长串不会顶到图标 */
.ui-statrow .ui-stat__val { font-size: 19px; }
.ui-statrow .ui-stat__ico { width: 30px; height: 30px; }

/* 银行卡网格：4 列 × 2 行，与真实系统的账户列表同构 */
.ui-bankgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}
.ui-bank {
  border: 1px solid var(--u-line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ui-bank:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.45);
}
/* 卡面层：卡号与角标都相对这一层定位，正好落在卡面留出的槽位上 */
.ui-bank__facewrap { position: relative; }
.ui-bank__face { display: block; width: 100%; height: auto; }
.ui-bank__no {
  position: absolute;
  left: 8.5%;
  right: 8.5%;
  top: 64%;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.055em;
  color: #fff6e6;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 1px rgba(0, 0, 0, 0.5);
}
.ui-bank__tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--u-orange);
}
.ui-bank__ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 9px;
}
.ui-bank__lb { font-size: 10px; color: var(--u-sub); }
.ui-bank__amt { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 700; color: var(--u-text); }
.ui-bank__ops { display: flex; gap: 4px; }
.ui-bank__ops i {
  width: 19px;
  height: 19px;
  border: 1px solid var(--u-line);
  border-radius: 50%;
  background: var(--u-bg);
}
.ui-bank__ops i::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  margin: 5px auto 0;
  border-radius: 2px;
  background: var(--u-sub);
  opacity: 0.5;
}

/* ---------- 数据大屏（实机截图） ----------
   这一格与前四张复刻件不同：它是系统真实运行的截图，不是按页面还原的复刻件，
   所以不走 .uiapp 那套「等比缩放」处理（app-shot.js 里 fit() 找不到 .uiapp 会直接返回）。
   高度仍与「工作台」的视窗高度对齐（--show-vh），否则切 Tab 时舞台会跳高一大截。
   截图是 16:10，容器按这个高度放不满宽度，多出来的空隙用大屏自身的深底填上，
   看起来就是显示器边框，比强行拉伸变形好。 */
.show__pane[data-pane-panel='p-dash'] .shot {
  display: grid;
  place-items: center;
  height: var(--show-vh);
  margin: 0;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 50%, #0a1628 0%, #050b16 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* object-fit: contain 保证任何宽度下都不拉伸变形 */
.show__pane[data-pane-panel='p-dash'] .shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1080px) {
  /* 窄屏不再锁死视窗高度，改为按图片自然比例铺满宽度 */
  .show__pane[data-pane-panel='p-dash'] .shot {
    height: auto;
  }

  .show__pane[data-pane-panel='p-dash'] .shot img {
    width: 100%;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-bank:hover { transform: none; }
}

