* {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
}

body {
  overflow-x: hidden;
  font-size: 16px;
}

uni-app,
uni-page,
uni-page-wrapper,
uni-page-body {
  display: block;
  box-sizing: border-box;
  width: 100%;
}

uni-page-wrapper {
  position: relative;
}

#app,
uni-app,
uni-page,
uni-page-wrapper {
  height: 100%;
}

/* toast,modal,actionSheet,picker,layout */
.uni-mask {
  position: fixed;
  z-index: 999;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* toast,modal,actionSheet,picker */
.uni-fade-enter-active,
.uni-fade-leave-active {
  transition-duration: 0.25s;
  transition-property: opacity;
  transition-timing-function: ease;
}

.uni-fade-enter-from,
.uni-fade-leave-active {
  opacity: 0;
}

.uni-loading,
uni-button[loading]:before {
  background-color: transparent;
  background-image: url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=');
  background-repeat: no-repeat;
}

.uni-loading {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  animation: uni-loading 1s steps(12, end) infinite;
  background-size: 100%;
}

@keyframes uni-loading {
  0% {
    transform: rotate3d(0, 0, 1, 0deg);
  }

  100% {
    transform: rotate3d(0, 0, 1, 360deg);
  }
}

html {
  /* --UI-BG-0: #ededed; */
  --primary-color: #007aff;
  --UI-BG: #fff;
  --UI-BG-1: #f7f7f7;
  --UI-BG-2: #fff;
  --UI-BG-3: #f7f7f7;
  --UI-BG-4: #4c4c4c;
  --UI-BG-5: #fff;
  --UI-FG: #000;
  --UI-FG-0: rgba(0, 0, 0, 0.9);
  --UI-FG-HALF: rgba(0, 0, 0, 0.9);
  --UI-FG-1: rgba(0, 0, 0, 0.5);
  --UI-FG-2: rgba(0, 0, 0, 0.3);
  --UI-FG-3: rgba(0, 0, 0, 0.1);
}

uni-page[data-type] uni-page-body {
  background-color: transparent;
}
body::after {
  position: fixed;
  content: '';
  left: -1000px;
  top: -1000px;
  animation: shadow-preload 0.1s;
  animation-delay: 3s;
}

@keyframes shadow-preload {
  0% {
    background-image: url(https://cdn.dcloud.net.cn/img/shadow-grey.png);
  }
  100% {
    background-image: url(https://cdn.dcloud.net.cn/img/shadow-grey.png);
  }
}
.uni-async-error {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  color: #999;
  padding: 100px 10px;
  text-align: center;
}
.uni-async-loading {
  box-sizing: border-box;
  width: 100%;
  padding: 50px;
  text-align: center;
}

.uni-async-loading .uni-loading {
  width: 30px;
  height: 30px;
}

/* ========== 全局拖动态（规范 §10.3，2026-11-29） ==========
   拖动期间整页统一「抓手合上」光标 + 禁文本选中：鼠标滑出面板范围也不会变回箭头 */
.xt-dragging, .xt-dragging * {
	cursor: grabbing !important;
	-webkit-user-select: none !important;
	user-select: none !important;
}

/* ========== 统一画框骨架：眉头 / 眉底 / 标题 / 控件热区（规范 §11，2026-11-29） ==========
   三个浮块（属性 / 流程 / 图层卡）与两个弹框共用这一套：
   - 眉头 = 色带 + 24px 高 + 标题 13/600 左、操作控件 22×22 右（控件在带内居中，不再溢出到带上方）
   - 眉底 = 同色带 24px，只做拖动把手，不放控件
   - 弹框用 .xt-panel-head-modal（40px、无带色、标题 14/600、✕ 40×40 热区）
   舞台（画布本体）不参与：它是透明定位框，没有眉头眉底 */
.xt-panel-head {
	flex: none; height: var(--panel-band-h); box-sizing: border-box;
	display: flex; align-items: center; gap: 8px;
	padding: 0 var(--panel-pad-x);
	background: var(--band-grad-head);
	border-radius: var(--card-radius) var(--card-radius) 0 0;
	cursor: grab; overflow: hidden;
}
/* 透明举手条（卡自己已经画了带色，或弹框不要带色时用） */
.xt-panel-head-plain { background: transparent; border-radius: 0;
}
.xt-panel-title { font-size: var(--panel-title-fs); font-weight: 600; color: var(--text-primary); line-height: 1;
}
.xt-panel-meta { font-size: 11px; color: var(--text-secondary); line-height: 1;
}
.xt-panel-sp { flex: 1; min-width: 0;
}
/* 带内控件：22×22 热区，视觉居中，垂直不溢出错带 */
.xt-panel-ctrl {
	width: var(--panel-ctrl); height: var(--panel-ctrl); flex: none;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; line-height: 1; color: var(--text-secondary);
	cursor: pointer;
}
.xt-panel-foot {
	flex: none; height: var(--panel-band-h);
	background: var(--band-grad-foot);
	border-radius: 0 0 var(--card-radius) var(--card-radius);
	cursor: grab;
}
/* 弹框标题行：40px 白底 + 1px 分隔线，标题 14/600 左、✕ 40×40 右（规范 §11.3） */
.xt-panel-head-modal {
	flex: none; height: var(--panel-modal-head-h); box-sizing: border-box;
	display: flex; align-items: center; gap: 8px;
	padding: 0 6px 0 12px;
	border-bottom: 1px solid var(--xt-line);
	background: var(--xt-surface-modal);
}
.xt-panel-title-modal { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1;
}
.xt-panel-x {
	width: 40px; height: 40px; flex: none; margin-left: auto;
	display: flex; align-items: center; justify-content: center;
	font-size: 16px; line-height: 1; color: var(--text-secondary);
	cursor: pointer; border-radius: var(--xt-radius-modal);
}

/* ========== 万物库画布全屏：收起外层一级导航（左侧竖排 / 底部标签栏 / 顶栏） ========== */
/* 仅 H5 外壳存在这些节点，小程序端无需该规则 */
body.xt-vault-full .shell-banner,
body.xt-vault-full .shell-side,
body.xt-vault-full .shell-tabbar { display: none !important;
}
body.xt-vault-full { overflow: hidden;
}


/* ========== XT666 设计系统 - 苹果 iOS 亮色主题 ========== */
/* 注意：小程序 WXSS 不支持 :root 选择器，编译会直接报错导致模拟器启动失败。
   这里按端切换根选择器：H5 用 :root，小程序用根节点 page。 */
:root {




  /* ========== 颜色系统 ========== */
  /* 背景 */
  --bg-primary: #EEF3FF;      /* 主背景（晨雾蓝底，= 主题 core） */
  --bg-card: #FFFFFF;          /* 卡片背景（白色） */
  --bg-secondary: #E5E5EA;     /* 次要背景（分隔线） */

  /* 主色 */
  --color-primary: #3370FF;   /* 晨雾蓝（= 主题 core） */
  --color-primary-light: rgba(51,112,255,0.10);  /* 主色浅 */
  --color-primary-dark: #1E4FD8; /* 主色深 */
  --color-primary-rgb: 51, 112, 255;           /* 主色 rgb 通道：rgba(var(--color-primary-rgb), α) */
  --xt-grad-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);

  /* 功能色 */
  --color-success: #34C759;   /* 成功（绿） */
  --color-warning: #FF9500;    /* 警告（橙） */
  --color-danger: #FF3B30;     /* 危险（红） */
  --color-danger-rgb: 255, 59, 48;  /* 危险色 rgb 通道：rgba(var(--color-danger-rgb), α) */

  /* ========== 卡片眉头/底色带（2026-11-25 用户拍板：一处改、三处同步） ========== */
  /* 使用方：FlowPanel 场景卡(.tle-flow-card-head/foot) / TimelineEditor 信息面板(.tle-combo-headband/footband) /
     StageCanvas 屏幕(.tle-live-headband/footband，带高按缩放倒数 calc 换算)。改色/改高只动这里。
     2026-11-25 二次拍板：去掉分隔横线；渐变向卡片中间过渡（边缘深、靠中间渐隐到透明） */
  --band-h: 20px;              /* 带高（屏幕像素） */
  --band-idle-opacity: 0;      /* 默认隐藏（未选中、未命中） */
  --band-active-opacity: 1;    /* 选中 / 落下命中时显示 */
  /* 渐变色统一进配色体系：一律 rgba(var(--*-rgb), α)，主题色/功能色一处改全部同步 */
  /* 2026-11-29 用户口径：取消眉头/底带的两头渐变，改成同一块纯色带（头底一个色），
     各面板、卡片、舞台眉条底带全部同步——一眼看不出"上浅下深"的那种过渡 */
  --band-grad-head: rgba(var(--color-primary-rgb), 0.16); /* 眉头：纯色（原渐变已取消） */
  --band-grad-foot: rgba(var(--color-primary-rgb), 0.16); /* 底带：与眉头同色 */
  --band-rgb-global: 96, 125, 139;  /* 全局卡灰蓝（次级色 rgb 通道） */
  --band-grad-head-on: rgba(var(--color-primary-rgb), 0.26);
  --band-grad-foot-on: rgba(var(--color-primary-rgb), 0.26);
  --band-grad-head-global: rgba(var(--band-rgb-global), 0.22);
  --band-grad-foot-global: rgba(var(--band-rgb-global), 0.22);
  --band-bg-reject: rgba(var(--color-danger-rgb), 0.25);  /* 落下拒绝：危险色 */

  /* 文字 */
  --text-primary: #000000;     /* 主文字（黑色） */
  --text-secondary: #8E8E93;   /* 次要文字（苹果灰） */
  --text-tertiary: #C7C7CC;    /* 三级文字（浅灰） */
  --text-on-primary: #FFFFFF;  /* 主色上的文字（白色） */

  /* ========== 字体系统 ========== */
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 字号 */
  --text-large-title: 34px;    /* 大标题 */
  --text-title-1: 28px;         /* 标题1 */
  --text-title-2: 22px;         /* 标题2 */
  --text-headline: 17px;        /* 标题 */
  --text-body: 15px;            /* 正文 */
  --text-callout: 16px;         /* 说明 */
  --text-subheadline: 14px;     /* 副标题 */
  --text-footnote: 13px;        /* 脚注 */
  --text-caption: 12px;         /* 说明文字 */
  --text-caption-2: 11px;       /* 二级说明 */

  /* 字重 */
  --font-regular: 400;          /* 常规 */
  --font-medium: 500;           /* 中等 */
  --font-semibold: 600;         /* 半粗 */
  --font-bold: 700;             /* 粗体 */

  /* ========== 间距系统 ========== */
  --spacing-xs: 4px;            /* 极小 */
  --spacing-sm: 8px;            /* 小 */
  --spacing-md: 12px;           /* 中 */
  --spacing-lg: 16px;           /* 大 */
  --spacing-xl: 20px;           /* 超大 */
  --spacing-2xl: 24px;          /* 更大 */
  --spacing-3xl: 32px;          /* 最大 */

  /* ========== 圆角系统 ========== */
  --radius-sm: 6px;             /* 小圆角 */
  --radius-md: 12px;            /* 中圆角 */
  --radius-lg: 16px;            /* 大圆角 */
  --radius-xl: 20px;            /* 超大圆角 */
  --radius-pill: 999px;         /* 胶囊圆角 */
  /* 卡片家族统一倒角（2026-11-25 用户拍板：一处改全部改）——
     使用方：FlowPanel 场景卡(.tle-flow-card.tle-panel) / TimelineEditor 信息面板(.tle-combo-*) /
     StageCanvas 舞台卡(.tle-live-inner .tle-live-safezone + bandStyle 色带)。改这里一处三处同步 */
  --card-radius: 16px;

  /* ========== 画框内部排版令牌（规范 §11，2026-11-29 用户拍板：三块浮块 + 两弹框同一套） ==========
     修改排版只动这里；面板 / 卡 / 弹框一律引用，禁止再写死 20/35/34/22 这类数字 */
  --panel-band-h: 24px;          /* 眉头 / 眉底高度（要装得下 22px 的圆点、按钮） */
  --panel-pad-x: 10px;           /* 内容左右内边距 */
  --panel-pad-y: 8px;            /* 内容与眉头 / 眉底之间的间隙 */
  --panel-row-h: 26px;           /* 行高（卡片行 / 列表行） */
  --panel-row-gap: 4px;          /* 行间距 */
  --panel-group-gap: 8px;        /* 分组之间 */
  --panel-ctrl: 22px;            /* 带内控件热区（视觉圆 12px 居中） */
  --panel-title-fs: 13px;        /* 眉头标题字号（字重固定 600） */
  --panel-modal-head-h: 40px;    /* 弹框标题行高 */

  /* ========== 阴影系统（统一一套：同一光源、同一色温，随主色微调） ========== */
  --xt-shadow-1: 0 1px 3px rgba(17, 24, 39, 0.06);
  --xt-shadow-2: 0 4px 14px rgba(17, 24, 39, 0.08);
  --xt-shadow-3: 0 8px 24px rgba(17, 24, 39, 0.10);
  --xt-shadow-4: 0 16px 48px rgba(17, 24, 39, 0.16);
  --xt-shadow-accent: 0 8px 24px rgba(var(--color-primary-rgb), 0.20);
  --shadow-sm: var(--xt-shadow-1);             /* 小阴影 */
  --shadow-md: var(--xt-shadow-2);             /* 中阴影 */
  --shadow-lg: var(--xt-shadow-3);             /* 大阴影 */
  --shadow-xl: var(--xt-shadow-4);             /* 超大阴影 */

  /* ========== 面层 / 线条（统一一套：卡片、面板、弹框、分隔线） ========== */
  --xt-surface-card: #FFFFFF;                          /* 卡片面 */
  --xt-surface-panel: rgba(255, 255, 255, 0.94);        /* 浮层/菜单面（半透明毛玻璃） */
  --xt-surface-modal: #FFFFFF;                          /* 弹框面 */
  --xt-surface-sunken: rgba(var(--color-primary-rgb), 0.06); /* 内凹底（次级按钮/输入提示） */
  --xt-overlay: rgba(17, 24, 39, 0.42);                 /* 遮罩 */
  --xt-line: rgba(17, 24, 39, 0.08);                    /* 常规分隔线 */
  --xt-line-strong: rgba(17, 24, 39, 0.14);             /* 强分隔线/描边 */
  --xt-line-accent: rgba(var(--color-primary-rgb), 0.18); /* 主色描边（选中态） */
  --xt-line-dash: rgba(17, 24, 39, 0.16);               /* 虚线 */
  --line-danger-soft: rgba(255, 59, 48, 0.35);          /* 危险色描边 */
  --xt-radius-modal: 18px;                              /* 弹框圆角 */
  /* 页面框架：全站一页一套（左上菜单让位 / 左右留白 / 标签条高） */
  --xt-page-pad-top: calc(var(--status-bar-height, 0px) + 80px);
  --xt-page-pad-x: 24px;
  --xt-tabbar-h: 46px;
  /* 深色工作台（编辑器内部面板，保持中性深色，不随主题漂） */
  --xt-chrome-bg: #1B2230;
  --xt-chrome-2: #232B3B;
  --xt-chrome-line: rgba(255, 255, 255, 0.10);

  /* ========== 图标系统 ========== */
  --icon-size-sm: 16px;         /* 小图标 */
  --icon-size-md: 20px;          /* 中图标 */
  --icon-size-lg: 24px;          /* 大图标 */
  --icon-size-xl: 32px;           /* 超大图标 */
  --icon-color: #3370FF;         /* 图标主色 */
  --icon-color-secondary: #8E8E93; /* 图标次要色 */

  /* ========== 弹框/浮框系统 ========== */
  /* 弹框遮罩 */
  --modal-mask-bg: var(--xt-overlay);        /* 遮罩背景 */
  --modal-mask-blur: 10px;                      /* 遮罩模糊 */

  /* 弹框容器 */
  --modal-bg: #FFFFFF;                           /* 弹框背景 */
  --modal-radius: 16px;                          /* 弹框圆角 */
  --modal-padding: 20px;                         /* 弹框内边距 */
  --modal-shadow: 0 8px 32px rgba(0,0,0,0.16); /* 弹框阴影 */

  /* 浮框容器 */
  --popup-bg: #FFFFFF;                           /* 浮框背景 */
  --popup-radius: 12px;                          /* 浮框圆角 */
  --popup-padding: 12px;                         /* 浮框内边距 */
  --popup-shadow: 0 4px 16px rgba(0,0,0,0.12); /* 浮框阴影 */

  /* 按钮 */
  --btn-primary-bg: #1E4FD8;                    /* 主按钮背景 */
  --btn-primary-color: #FFFFFF;                  /* 主按钮文字 */
  --btn-secondary-bg: rgba(var(--color-primary-rgb), 0.08); /* 次按钮背景 */
  --btn-secondary-color: #1E4FD8;                /* 次按钮文字 */
  --btn-danger-bg: #FF3B30;                      /* 危险按钮背景 */
  --btn-radius: 999px;                           /* 按钮圆角 */
  --btn-height: 44px;                            /* 按钮高度 */
  --btn-padding: 0 20px;                          /* 按钮内边距 */

  /* 输入框 */
  --input-bg: #FFFFFF;                            /* 输入框背景 */
  --input-border: #E5E5EA;                       /* 输入框边框 */
  --input-radius: 12px;                           /* 输入框圆角 */
  --input-height: 44px;                           /* 输入框高度 */
  --input-padding: 0 12px;                        /* 输入框内边距 */
  --input-focus-border: #3370FF;                /* 输入框聚焦边框 */
}

/* ================================================================
 * 视角主题（配色 v1）：一套令牌，切主题类即整站换色
 * 类挂载位置：H5 → document.body；小程序/App → AppShell 根节点
 * 规则：组件只读变量，永不写色号；主题只做变量赋值
 * 详细规范：docs/design/规范_视角系统配色_v1.md
 * ================================================================ */
.xt-view--core {
  --color-primary: #3370FF;  --color-primary-light: rgba(51,112,255,0.10);  --color-primary-dark: #1E4FD8;
  --bg-primary: #EEF3FF;     --btn-primary-bg: #1E4FD8;  --icon-color: #3370FF;  --input-focus-border: #3370FF;
  --xt-accent-soft: #D6E3FF; --xt-accent-ink: #12306E;
  --xt-grad-banner: linear-gradient(135deg, #3370FF 0%, #1E4FD8 100%);
}
.xt-view--imovo {
  --color-primary: #7A5AF8;  --color-primary-light: rgba(122,90,248,0.10);  --color-primary-dark: #4B2FBF;
  --bg-primary: #F5EFFF;     --btn-primary-bg: #4B2FBF;  --icon-color: #7A5AF8;  --input-focus-border: #7A5AF8;
  --xt-accent-soft: #EBDCFF; --xt-accent-ink: #2E1B7A;
  --xt-grad-banner: linear-gradient(135deg, #7A5AF8 0%, #4B2FBF 100%);
}
.xt-view--yd {
  --color-primary: #EF4A62;  --color-primary-light: rgba(239,74,98,0.10);   --color-primary-dark: #A62E46;
  --bg-primary: #FFF1F3;     --btn-primary-bg: #A62E46;  --icon-color: #EF4A62;  --input-focus-border: #EF4A62;
  --xt-accent-soft: #FFD9DF; --xt-accent-ink: #6E2739;
  --xt-grad-banner: linear-gradient(135deg, #EF4A62 0%, #A62E46 100%);
}
.xt-view--story {
  --color-primary: #0E9B85;  --color-primary-light: rgba(14,155,133,0.10);  --color-primary-dark: #0B6F63;
  --bg-primary: #EAFBF6;     --btn-primary-bg: #0B6F63;  --icon-color: #0E9B85;  --input-focus-border: #0E9B85;
  --xt-accent-soft: #C9F5E8; --xt-accent-ink: #0A4F47;
  --xt-grad-banner: linear-gradient(135deg, #0E9B85 0%, #0B6F63 100%);
}
.xt-view--multi {
  --color-primary: #B07407;  --color-primary-light: rgba(176,116,7,0.12);   --color-primary-dark: #7A5209;
  --bg-primary: #FFF9E6;     --btn-primary-bg: #7A5209;  --icon-color: #B07407;  --input-focus-border: #B07407;
  --xt-accent-soft: #FCE27C; --xt-accent-ink: #5C3E06;
  --xt-grad-banner: linear-gradient(135deg, #B07407 0%, #7A5209 100%);
}
.xt-view--hall {
  --color-primary: #637F45;  --color-primary-light: rgba(99,127,69,0.12);   --color-primary-dark: #46592F;
  --bg-primary: #F3F6EE;     --btn-primary-bg: #46592F;  --icon-color: #637F45;  --input-focus-border: #637F45;
  --xt-accent-soft: #DAE6D3; --xt-accent-ink: #333F24;
  --xt-grad-banner: linear-gradient(135deg, #637F45 0%, #46592F 100%);
}
.xt-view--play {
  --color-primary: #0B88AB;  --color-primary-light: rgba(11,136,171,0.10);  --color-primary-dark: #0A5A72;
  --bg-primary: #EAF8FC;     --btn-primary-bg: #0A5A72;  --icon-color: #0B88AB;  --input-focus-border: #0B88AB;
  --xt-accent-soft: #B8E9F5; --xt-accent-ink: #073F50;
  --xt-grad-banner: linear-gradient(135deg, #0B88AB 0%, #0A5A72 100%);
}
.xt-view--admin {
  --color-primary: #5B6B80;  --color-primary-light: rgba(91,107,128,0.12);  --color-primary-dark: #2E3A4A;
  --bg-primary: #F1F3F6;     --btn-primary-bg: #2E3A4A;  --icon-color: #5B6B80;  --input-focus-border: #5B6B80;
  --xt-accent-soft: #D9E0E8; --xt-accent-ink: #1F2937;
  --xt-grad-banner: linear-gradient(135deg, #5B6B80 0%, #2E3A4A 100%);
}

/* 主色 rgb 通道：rgba(var(--color-primary-rgb), α) 拼任意透明度，换主题自动跟色 */
.xt-view--core  { --color-primary-rgb: 51, 112, 255;
}
.xt-view--imovo { --color-primary-rgb: 122, 90, 248;
}
.xt-view--yd    { --color-primary-rgb: 239, 74, 98;
}
.xt-view--story { --color-primary-rgb: 14, 155, 133;
}
.xt-view--multi { --color-primary-rgb: 176, 116, 7;
}
.xt-view--hall  { --color-primary-rgb: 99, 127, 69;
}
.xt-view--play  { --color-primary-rgb: 11, 136, 171;
}
.xt-view--admin { --color-primary-rgb: 91, 107, 128;
}

/* ---------- reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent;
}
html, body, #app { height: 100%;
}
html, body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	color: #000000;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: var(--bg-primary);
	transition: background-color 220ms ease-out;
}
a { text-decoration: none; color: inherit;
}
h1, h2, h3, p { margin: 0;
}
svg { display: block;
}

/* ---------- 全站滚动条统一：不用系统那种粗灰条，改成豆包那种细窄、低对比、无箭头 ---------- */
* {
	scrollbar-width: thin;                                  /* Firefox */
	scrollbar-color: rgba(17, 24, 39, 0.18) transparent;    /* Firefox：滑块 / 轨道 */
}
::-webkit-scrollbar { width: 5px; height: 5px;
}
::-webkit-scrollbar-track { background: transparent;
}
::-webkit-scrollbar-thumb {
	background: rgba(17, 24, 39, 0.12);
	border-radius: 5px;
	background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(17, 24, 39, 0.24);
}
::-webkit-scrollbar-button,::-webkit-scrollbar-corner { display: none; background: transparent;
}
/* uni-app 的 scroll-view 内层滚动容器（消息区 / 列表 / 横向 Tab 行）同样走细窄条 */
uni-scroll-view ::-webkit-scrollbar,
uni-scroll-view .uni-scroll-view ::-webkit-scrollbar { width: 5px; height: 5px;
}
uni-page-body { height: 100%;
}

/* ---------- 编辑器公共件（六个编辑器共用，2026-12-04） ---------- */
/* 统一棋盘格画布底：7px 格，浅色透明格（白/浅灰，和视频转序列帧一致）；
   图片/视频/音频/序列/全景/视频转序列 全用这一套，一眼能看出抠图后的透明区 */
.xt-checker {
	--canvas-cell: 7px;
	background-color: #E7EAEF;
	background-image: repeating-conic-gradient(#FFFFFF 0% 25%, #E7EAEF 0% 50%);
	background-size: calc(var(--canvas-cell) * 2) calc(var(--canvas-cell) * 2);
}
/* 底栏按钮：取消（描边）/ 存到本地（浅主色）/ 存到云端（主色实心） */
.es-btn {
	flex: 1;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	box-sizing: border-box;
}
.es-btn-cancel { flex: 0 0 84px; background: rgba(255, 255, 255, 0.08); color: #C9CEDC;
}
.es-btn-local { background: rgba(var(--color-primary-rgb), 0.18); color: #9FB6FF;
}
.es-btn-primary { background: var(--btn-primary-bg, #6366f1); color: #fff;
}
.es-btn-disabled { opacity: 0.45; pointer-events: none;
}

/* ---------- 壳导航按钮（全局浮动） ---------- */
.shell-nav-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	background: rgba(0,122,255,0.95);
	-webkit-backdrop-filter: blur(10px);
	        backdrop-filter: blur(10px);
	color: #fff;
}
.shell-nav-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	background: rgba(255,255,255,0.2);
	border-radius: 20px;
	font-size: 13px;
	color: #fff;
	cursor: pointer;
	border: none;
}
.shell-nav-btn:active { background: rgba(255,255,255,0.3);
}
.shell-balance-bar {
	font-size: 13px;
	font-weight: 600;
}

/* ================================================================
 * 样板 UI 设计系统基础样式（xt-*）
 * A1 主题：绿色/doc 风格
 * ================================================================ */

/* ---------- 页面外层容器 ---------- */
.xt-page-wrap {
	min-height: 100vh;
	width: 100%;
	padding: 16px 0 24px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	box-sizing: border-box;
}
.xt-bg-home { background: var(--xt-grad-brand);
}
.xt-bg-doc  { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.xt-bg-asr  { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.xt-bg-tts  { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ---------- 应用卡片容器（移动端满宽，PC端居中带阴影） ---------- */
.xt-app {
	width: 100%;
	max-width: 760px;
	min-height: calc(100vh - 40px);
	/* 移动端/iframe 动态视口兜底 */
	min-height: calc(100dvh - 40px);
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	margin: 0 12px;
}
@media (max-width: 768px) {
.xt-app { margin: 0; border-radius: 0; min-height: 100vh; min-height: 100dvh;
}
}

/* ---------- 顶部 Header ---------- */
.xt-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	background: #fff;
	border-bottom: 1px solid #E5E5EA;
}
.xt-header-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0;
}
.xt-header-right { display: flex; align-items: center; gap: 8px;
}
.xt-back-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	background: #f0f2f7;
	border-radius: 8px;
	font-size: 13px;
	color: #8E8E93;
	cursor: pointer;
	transition: background 0.15s;
	flex-shrink: 0;
}
.xt-back-btn:hover { background: #e4e8f0;
}
.xt-back-btn svg { width: 16px; height: 16px;
}
.xt-back-btn.tone-doc { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #fff;
}
.xt-back-btn.tone-doc:hover { opacity: 0.9;
}
.xt-back-btn.tone-asr { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff;
}
.xt-back-btn.tone-tts { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #fff;
}
.xt-logo {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--xt-grad-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}
.xt-logo svg { width: 20px; height: 20px;
}

/* .xt-header-title 三兄弟已无任何模板引用（全工程 grep 无命中），
   且 h1/p 属于小程序不支持的标签选择器（构建会告警），直接移除 */

/* ---------- 主内容滚动区 ---------- */
.xt-main {
	flex: 1;
	padding: 8px 0 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ---------- 欢迎面板 ---------- */
.xt-welcome {
	margin: 20px 20px 10px;
	padding: 20px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* WXSS 不支持 h2 / p 标签选择器，这两条只在 H5 生效 */
.xt-welcome h2 { font-size: 18px; font-weight: 600; color: #1a1d23; margin-bottom: 6px;
}
.xt-welcome p { font-size: 13px; color: #8E8E93; line-height: 1.7;
}


/* ---------- 卡片列表 ---------- */
.xt-card-list {
	display: grid;
	gap: 14px;
	padding: 12px 20px;
}
.xt-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 16px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}
.xt-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.xt-card-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--xt-grad-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.xt-card-icon svg { width: 26px; height: 26px; color: #fff;
}
.xt-card-body { flex: 1; min-width: 0;
}
.xt-card-body h2 { font-size: 15px; font-weight: 600; color: #1a1d23; margin-bottom: 4px;
}
.xt-card-body p { font-size: 12px; color: #888; line-height: 1.5;
}


/* ---------- 选择器胶囊条 ---------- */
.xt-selector-bar {
	white-space: nowrap;
	padding: 12px 20px 4px;
	background: #fff;
	border-bottom: 1px solid #E5E5EA;
}
.xt-pill-row { display: inline-flex; gap: 8px; padding-bottom: 8px;
}
.xt-pill {
	display: inline-block;
	background: #f0f2f7;
	border-radius: 20px;
	padding: 2px;
	flex-shrink: 0;
}
.xt-pill-inner {
	padding: 6px 14px;
	font-size: 12px;
	color: #8E8E93;
	white-space: nowrap;
}

/* ---------- 对话滚动区 ---------- */
.xt-chat {
	flex: 1;
	height: 450px;
	padding: 16px 20px;
	box-sizing: border-box;
	background: #f5f7fb;
}

/* 消息块 */
.xt-msg {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
	align-items: flex-start;
}
.xt-msg.is-sys { justify-content: center;
}
.xt-msg.is-user { flex-direction: row-reverse;
}
.xt-sys-bar {
	background: #e4e8f0;
	color: #8E8E93;
	font-size: 12px;
	padding: 4px 12px;
	border-radius: 12px;
}
.xt-avatar {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}
.xt-avatar svg { width: 18px; height: 18px;
}
.xt-avatar.avatar-user { background: var(--xt-grad-brand);
}
.xt-avatar.avatar-asr { background: linear-gradient(135deg, #f093fb, #f5576c);
}
.xt-avatar.avatar-tts { background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.xt-bubble-wrap { max-width: 78%; display: flex; flex-direction: column; gap: 6px;
}
.xt-msg.is-user .xt-bubble-wrap { align-items: flex-end;
}
.xt-bubble {
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.65;
	color: #1a1d23;
	word-break: break-word;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.xt-bubble.bubble-user {
	background: var(--xt-grad-brand);
	color: #fff;
	border-top-right-radius: 4px;
}
.xt-bubble.bubble-ai {
	background: #fff;
	border-top-left-radius: 4px;
}
.xt-bubble.bubble-err {
	background: #fff1f0;
	color: #f5576c;
}

/* TTS 按钮 */
.xt-tts-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: rgba(79,172,254,0.08);
	color: #4facfe;
	border-radius: 12px;
	font-size: 12px;
	cursor: pointer;
	align-self: flex-start;
}
.xt-tts-btn:hover { background: rgba(79,172,254,0.15);
}
.xt-tts-btn svg { width: 14px; height: 14px;
}
.xt-tts-btn.active { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #fff;
}

/* 状态提示 */
.xt-status {
	text-align: center;
	color: #8E8E93;
	font-size: 12px;
	padding: 8px 0 16px;
}
.xt-status.is-loading { color: #4facfe;
}
.xt-loading-dots { display: inline-flex; gap: 3px;
}

/* WXSS 不支持 span 标签选择器；小程序端用 view，这几条只在 H5 生效 */
.xt-loading-dots span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #4facfe;
	animation: xt-dot-bounce 1.2s infinite ease-in-out both;
}
.xt-loading-dots span:nth-child(2) { animation-delay: 0.15s;
}
.xt-loading-dots span:nth-child(3) { animation-delay: 0.3s;
}
@keyframes xt-dot-bounce {
0%, 80%, 100% { transform: scale(0); opacity: 0.5;
}
40% { transform: scale(1); opacity: 1;
}
}

/* ---------- 输入区 ---------- */
.xt-input-area {
	background: #fff;
	border-top: 1px solid #E5E5EA;
	padding: 12px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.xt-input-row {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	background: #f5f7fb;
	border: 1px solid #e0e4ec;
	border-radius: 12px;
	padding: 10px 12px;
	position: relative;
}
.xt-textarea {
	flex: 1;
	background: transparent;
	font-size: 14px;
	color: #1a1d23;
	line-height: 1.6;
	min-height: 36px;
	max-height: 140px;
	padding-right: 48px;
}
.xt-char-count {
	position: absolute;
	right: 66px;
	bottom: 14px;
	font-size: 11px;
	color: #b0b5c0;
}
.xt-send-btn {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, #43e97b, #38f9d7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: opacity 0.15s;
}
.xt-send-btn:disabled { opacity: 0.4; cursor: not-allowed;
}
.xt-send-btn svg { width: 18px; height: 18px;
}

/* ---------- 遮罩 ---------- */
.xt-mask {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(0,0,0,0.45);
	z-index: 1000;
}
