/* FlashPaint · 深色玻璃风格界面 */
:root {
  --背景: #070a11;
  --面板: rgba(18, 23, 37, 0.72);
  --面板实: rgba(22, 28, 44, 0.94);
  --面板亮: rgba(32, 40, 62, 0.9);
  --边框: rgba(255, 255, 255, 0.09);
  --边框亮: rgba(124, 92, 255, 0.55);
  --文字: #eaeffc;
  --次要: #97a3bd;
  --弱: #6b7791;
  --强调: #7c5cff;
  --强调2: #33d6ff;
  --危险: #ff6b8a;
  --圆角: 14px;
  --阴影: 0 18px 44px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--文字);
  font-size: 13px;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(51, 214, 255, 0.14), transparent 55%),
    radial-gradient(700px 700px at 60% 120%, rgba(255, 92, 170, 0.12), transparent 60%),
    var(--背景);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

.应用 {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 620px;
  padding: 12px;
  gap: 10px;
}

/* ---------- 顶部工具栏 ---------- */
.顶部栏 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--圆角);
  background: var(--面板);
  border: 1px solid var(--边框);
  box-shadow: var(--阴影);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  flex-wrap: wrap;
}

.品牌 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--边框);
}

.标志 {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(140deg, #8a6bff, #33d6ff 70%);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.品牌文字 h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.品牌文字 p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--次要);
}

.工具栏 {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.工具按钮 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--次要);
  cursor: pointer;
  transition: all 0.16s ease;
}

.工具按钮 .图标 { font-size: 17px; line-height: 1; }
.工具按钮 .工具字 { font-size: 11px; letter-spacing: 0.3px; }

.工具按钮:hover {
  color: var(--文字);
  background: rgba(255, 255, 255, 0.06);
}

.工具按钮.激活 {
  color: #fff;
  background: linear-gradient(150deg, rgba(124, 92, 255, 0.92), rgba(51, 214, 255, 0.72));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.动画工具, .导出工具 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.动画工具 { margin-left: auto; }

.主按钮, .次按钮, .主要导出, .图标按钮 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--边框);
  background: rgba(255, 255, 255, 0.05);
  color: var(--文字);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.主按钮 {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(140deg, #8a6bff, #5b7cff 55%, #33d6ff);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.主按钮:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(124, 92, 255, 0.55); }
.主按钮:active { transform: translateY(0); }
.星星图标 { font-size: 14px; }

.次按钮:hover, .主要导出:hover, .图标按钮:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.主要导出 {
  background: linear-gradient(140deg, rgba(51, 214, 255, 0.22), rgba(124, 92, 255, 0.26));
  border-color: rgba(51, 214, 255, 0.4);
  color: #c9f4ff;
  font-weight: 600;
}

.次按钮.开关激活 {
  color: #c9f4ff;
  border-color: rgba(51, 214, 255, 0.45);
  background: rgba(51, 214, 255, 0.12);
}

.次按钮.危险 {
  color: #ffb3c1;
  border-color: rgba(255, 107, 138, 0.35);
}

.次按钮.危险:hover {
  color: #fff;
  background: rgba(255, 107, 138, 0.22);
  border-color: rgba(255, 107, 138, 0.5);
}

.图标按钮 {
  padding: 9px 11px;
  font-size: 14px;
}

.图标按钮.危险:hover {
  color: #fff;
  background: rgba(255, 107, 138, 0.22);
  border-color: rgba(255, 107, 138, 0.5);
}

/* ---------- 样式栏 ---------- */
.样式栏 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--面板);
  border: 1px solid var(--边框);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-wrap: wrap;
}

.样式项 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--次要);
  font-size: 12px;
  white-space: nowrap;
}

.粗细项 input[type="range"] { width: 96px; }
.粗细项 b {
  min-width: 18px;
  color: var(--文字);
  font-weight: 600;
  font-size: 12px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.85), rgba(51, 214, 255, 0.85));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #7c5cff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

input[type="color"] {
  width: 30px;
  height: 26px;
  padding: 2px;
  border: 1px solid var(--边框);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }

.渐变色组 {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.渐变色组.开启 { opacity: 1; }
.渐变箭头 { color: var(--弱); font-size: 11px; }

.开关项, .迷你开关 {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.开关项 input, .迷你开关 input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.滑钮 {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
  flex: none;
}

.滑钮::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cfd8ea;
  transition: all 0.2s ease;
}

.开关项 input:checked + .滑钮,
.迷你开关 input:checked + .滑钮 {
  background: linear-gradient(120deg, #7c5cff, #33d6ff);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(51, 214, 255, 0.45);
}

.开关项 input:checked + .滑钮::after,
.迷你开关 input:checked + .滑钮::after {
  left: 18px;
  background: #fff;
}

.提示条 {
  margin-left: auto;
  color: var(--弱);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 工作区 ---------- */
.工作区 {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 12px;
}

.属性面板 {
  width: 252px;
  flex: none;
  padding: 14px;
  border-radius: var(--圆角);
  background: var(--面板);
  border: 1px solid var(--边框);
  box-shadow: var(--阴影);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-y: auto;
  animation: 面板滑入 0.22s ease;
}

.属性面板.隐藏 { display: none; }

/* ---------- 图层面板 ---------- */
.图层面板 {
  width: 196px;
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 10px;
  border-radius: var(--圆角);
  background: var(--面板);
  border: 1px solid var(--边框);
  box-shadow: var(--阴影);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: 面板滑入 0.22s ease;
}

.图层操作 {
  display: flex;
  gap: 4px;
}

.图层操作 .图标按钮 {
  padding: 4px 7px;
  font-size: 12px;
}

.图层计数 {
  color: var(--强调2);
  font-size: 11px;
  font-weight: 600;
}

.图层列表 {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 6px;
  padding-right: 2px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.图层项 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
}

.图层项:hover {
  background: rgba(255, 255, 255, 0.075);
}

.图层项.激活 {
  background: rgba(124, 92, 255, 0.18);
  border-color: rgba(124, 92, 255, 0.7);
}

.图层点 {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.图层名 {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--文字);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.图层项.隐藏图层 .图层名,
.图层项.隐藏图层 .图层点 {
  opacity: 0.35;
}

.图层类型 {
  flex: none;
  font-size: 9.5px;
  color: var(--弱);
}

.图层眼 {
  flex: none;
  padding: 0 2px;
  border: none;
  background: none;
  color: var(--次要);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.图层眼:hover {
  color: #fff;
}

.图层空 {
  color: var(--弱);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  padding: 14px 4px;
}

.图层空.隐藏 { display: none; }

.图层提示 {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--弱);
  font-size: 9.5px;
  line-height: 1.5;
  text-align: center;
}

@keyframes 面板滑入 {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.面板标题 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.面板标题 .图标按钮 { padding: 5px 8px; font-size: 13px; }

.面板名称 {
  font-size: 11px;
  color: var(--强调2);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--边框);
  letter-spacing: 0.5px;
}

.面板行 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.面板行 > label {
  width: 54px;
  flex: none;
  color: var(--次要);
  font-size: 11.5px;
}

.面板行 input[type="number"] {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--边框);
  background: rgba(0, 0, 0, 0.3);
  color: var(--文字);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
}

.面板行 input[type="number"]:focus {
  border-color: var(--边框亮);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.面板行 input[type="color"] { width: 34px; height: 28px; flex: none; }
.单位 { color: var(--弱); font-size: 11px; width: 10px; flex: none; }
.迷你开关 { margin-left: auto; }

.面板注 {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.18);
  color: var(--次要);
  font-size: 10.5px;
  line-height: 1.6;
}

/* ---------- 画布 ---------- */
.画布区 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--圆角);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.15)),
    rgba(10, 13, 22, 0.55);
  border: 1px solid var(--边框);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.画布容器 {
  position: relative;
  width: min(100%, 900px);
  aspect-ratio: 2 / 1;
  max-height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#画布 {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

#画布.光标-选择 { cursor: default; }
#画布.光标-画笔 { cursor: crosshair; }
#画布.光标-橡皮 { cursor: cell; }
#画布.光标-素材 { cursor: copy; }
#画布.光标-文字 { cursor: text; }

.空画布提示 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #a9b3c7;
  pointer-events: none;
  transition: opacity 0.3s;
}

.空画布提示.隐藏 { opacity: 0; }
.空画布图标 { font-size: 30px; opacity: 0.55; }
.空画布提示 p { margin: 0; font-size: 14px; font-weight: 600; color: #8d98ad; }
.空画布提示 span { font-size: 11.5px; color: #aab4c6; }

.画布底部提示 {
  font-size: 10.5px;
  color: var(--弱);
  letter-spacing: 1px;
}

/* ---------- 时间轴 / 关键帧 ---------- */
.时间轴 {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 218px;
  padding: 9px 14px 11px;
  border-radius: 12px;
  background: var(--面板);
  border: 1px solid var(--边框);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.时间轴工具栏 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.时间轴工具栏::-webkit-scrollbar { height: 0; }

.时间轴工具栏.次行 {
  gap: 10px;
  padding-top: 1px;
}

.时间轴标题 {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--文字);
}

.时间轴标题 span {
  margin-left: 5px;
  font-size: 10px;
  font-weight: 400;
  color: var(--弱);
}

.帧控件 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--次要);
  white-space: nowrap;
  flex: none;
}

.帧控件 input[type="number"] {
  width: 54px;
  height: 26px;
  padding: 0 5px;
  border-radius: 7px;
  border: 1px solid var(--边框);
  background: rgba(0, 0, 0, 0.3);
  color: var(--文字);
  font-size: 12px;
  text-align: center;
  outline: none;
}

.帧控件 input[type="number"]:focus { border-color: var(--边框亮); }
.帧总数 { color: var(--弱); font-size: 11px; }

.帧步按钮 {
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1;
}

.小按钮 {
  padding: 6px 10px;
  font-size: 11.5px;
  flex: none;
}

.长开关 { color: var(--次要); font-size: 11.5px; flex: none; }

.下拉项 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--次要);
  white-space: nowrap;
  flex: none;
}

.下拉项 select {
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--边框);
  background: rgba(0, 0, 0, 0.35);
  color: var(--文字);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.下拉项 select:focus { border-color: var(--边框亮); }
.下拉项 option { background: #141a29; color: var(--文字); }

.时间轴提示 {
  color: var(--弱);
  font-size: 10.5px;
  margin-left: auto;
  white-space: nowrap;
}

/* 时间轴主体 */
.时间轴主体 {
  flex: 1;
  min-height: 0;
  display: flex;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.轨道名区 {
  width: 150px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.18);
  border-right: 1px solid var(--边框);
}

.轨道名角 {
  height: 24px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  color: var(--弱);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--边框);
}

.轨道名列表 {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.轨道名 {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  user-select: none;
}

.轨道名:hover { background: rgba(255, 255, 255, 0.05); }

.轨道名.激活 {
  background: rgba(124, 92, 255, 0.2);
  box-shadow: inset 2px 0 0 #7c5cff;
}

.轨道名点 {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 5px currentColor;
}

.轨道名字 {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--文字);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.轨道名.隐藏图层 .轨道名字,
.轨道名.隐藏图层 .轨道名点 { opacity: 0.35; }

.轨道名眼 {
  flex: none;
  padding: 0 2px;
  border: none;
  background: none;
  color: var(--次要);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.轨道名眼:hover { color: #fff; }

.轨道区 {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.帧标尺 {
  height: 24px;
  flex: none;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--边框);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.帧标尺内 {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.帧刻度 {
  position: absolute;
  top: 9px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.帧刻度.整五 {
  top: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.帧刻度 b {
  position: absolute;
  top: -4px;
  left: 3px;
  font-size: 9px;
  font-weight: 400;
  color: var(--弱);
}

.轨道滚动 {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
}

.轨道内容 {
  position: relative;
  min-height: 100%;
}

.区间带 {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.14), rgba(51, 214, 255, 0.06));
  border-left: 1px solid rgba(124, 92, 255, 0.4);
  border-right: 1px solid rgba(51, 214, 255, 0.35);
  pointer-events: none;
}

.轨道行 {
  height: 26px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.轨道行.激活 { background: rgba(124, 92, 255, 0.1); }

.区间条 {
  position: absolute;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.75), rgba(51, 214, 255, 0.55));
  pointer-events: none;
}

.关键帧 {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-left: -5px;
  margin-top: -5px;
  transform: rotate(45deg);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, #c3b2ff, #33d6ff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: ew-resize;
  z-index: 3;
}

.关键帧:hover {
  background: linear-gradient(135deg, #ffffff, #7ce6ff);
}

.关键帧.选中 {
  box-shadow: 0 0 0 1px #fff, 0 0 10px rgba(51, 214, 255, 0.9);
  background: linear-gradient(135deg, #ffffff, #33d6ff);
}

.关键帧.当前 {
  border-color: #fff;
}

.播放头 {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ff5c95;
  box-shadow: 0 0 8px rgba(255, 92, 149, 0.85);
  pointer-events: none;
  z-index: 6;
}

.播放头柄 {
  position: absolute;
  top: 0;
  left: -5px;
  width: 11px;
  height: 9px;
  background: #ff5c95;
  border-radius: 2px 2px 1px 1px;
  box-shadow: 0 2px 6px rgba(255, 92, 149, 0.6);
  pointer-events: auto;
  cursor: ew-resize;
}

.时间轴空 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--弱);
  font-size: 11px;
  pointer-events: none;
}

.时间轴空.隐藏 { display: none; }

@media (max-width: 1180px) {
  .时间轴提示 { display: none; }
  .时间轴 { height: 206px; }
}

@media (max-width: 900px) {
  .时间轴 { height: 196px; }
  .时间轴标题 { display: none; }
  .轨道名区 { width: 118px; }
}

/* ---------- 素材库浮层 ---------- */
.素材面板 {
  position: fixed;
  z-index: 60;
  width: 258px;
  max-height: min(72vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 12px;
  border-radius: 12px;
  background: var(--面板实);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.素材面板.隐藏 { display: none; }

.素材标题 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.素材标题 span { font-size: 10px; color: var(--弱); font-weight: 400; }

.素材分类 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 10px;
}

.分类项 {
  padding: 4px 2px;
  border-radius: 999px;
  border: 1px solid var(--边框);
  background: rgba(255, 255, 255, 0.04);
  color: var(--弱);
  font-size: 10.5px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.分类项:hover { color: #fff; border-color: rgba(124, 92, 255, 0.55); }

.分类项.激活 {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.8), rgba(51, 214, 255, 0.55));
}

.素材网格 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.素材项 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 4px;
  border-radius: 9px;
  border: 1px solid var(--边框);
  background: rgba(255, 255, 255, 0.04);
  color: var(--次要);
  cursor: pointer;
  transition: all 0.15s;
}

.素材项 svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
}

.素材项 canvas,
.素材缩略 {
  width: 34px;
  height: 34px;
  display: block;
  pointer-events: none;
}

.素材项[data-asset="ring"] svg { fill: none; stroke-width: 7; }
.素材项 span { font-size: 10.5px; }

.素材项:hover {
  color: #fff;
  border-color: rgba(124, 92, 255, 0.6);
  background: linear-gradient(150deg, rgba(124, 92, 255, 0.35), rgba(51, 214, 255, 0.22));
  transform: translateY(-1px);
}

/* ---------- 弹窗 / 提示 ---------- */
.遮罩 {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(4, 6, 12, 0.66);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.遮罩.隐藏 { display: none; }

.弹窗 {
  width: min(420px, calc(100vw - 40px));
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(30, 37, 58, 0.98), rgba(17, 21, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.弹窗 h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.弹窗 p {
  margin: 0 0 14px;
  color: var(--次要);
  font-size: 12px;
  line-height: 1.7;
}

.小弹窗 input[type="text"] {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  margin-bottom: 16px;
  border-radius: 9px;
  border: 1px solid var(--边框);
  background: rgba(0, 0, 0, 0.35);
  color: var(--文字);
  font-size: 13px;
  outline: none;
}

.小弹窗 input:focus { border-color: var(--边框亮); }

.弹窗按钮 {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.进度条 {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#导出进度 {
  width: 0%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #7c5cff, #33d6ff);
  transition: width 0.2s ease;
  box-shadow: 0 0 12px rgba(51, 214, 255, 0.6);
}

.提示容器 {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.提示 {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(24, 30, 47, 0.96);
  border: 1px solid rgba(124, 92, 255, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  color: var(--文字);
  font-size: 12px;
  animation: 提示进入 0.24s ease;
  max-width: 80vw;
  text-align: center;
}

@keyframes 提示进入 {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1180px) {
  .提示条 { display: none; }
  .品牌文字 p { display: none; }
  .图层面板 { width: 172px; }
}

@media (max-width: 900px) {
  .顶部栏 { gap: 8px; }
  .品牌 { padding-right: 8px; }
  .工具按钮 { min-width: 44px; }
  .工具按钮 .工具字 { display: none; }
  .动画工具 { margin-left: 0; }
  .属性面板 { width: 220px; }
  .图层面板 { width: 150px; }
  .图层类型 { display: none; }
  .样式栏 { gap: 10px; }
}
