/* ============================================================
   Parity layer — 按真实画布截图对齐的视觉覆盖
   （加载顺序最后，用于覆盖既有组件样式）
   ============================================================ */

:root {
  --bg: #141414;
  --bg-canvas: #141414;
  --bg-panel: #1b1b1b;
  --bg-panel-2: #202020;
  --bg-input: #1b1b1b;
  --bg-hover: #262626;
  --bg-active: #2e2e2e;

  --text: #f7f7f7;
  --text-2: #b9b9b9;
  --text-3: #919191;
  --text-4: #6a6a6a;

  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);

  --app-font: -apple-system, BlinkMacSystemFont, "PingFang SC", Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body, button, input, textarea, select { font-family: var(--app-font); }
body { background: #141414; color: #f7f7f7; }

/* ---------- 创作面板 ---------- */
.composer {
  width: 520px;
  padding: 10px 12px 10px;
  border-radius: 12px;
  background: #1b1b1b;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cp-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cp-chip {
  height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  background: #262626;
  color: #d7d7d7;
  font-size: 12px;
  line-height: 1;
  transition: background 0.12s, color 0.12s;
}
.cp-chip .ic { color: #9a9a9a; }
.cp-chip:hover { background: #303030; color: #fff; }
.cp-chip:hover .ic { color: #d0d0d0; }
.cp-more { color: #b0b0b0; }
.cp-expand {
  margin-left: auto;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: #9a9a9a;
}
.cp-expand:hover { background: #2a2a2a; color: #f0f0f0; }

.cp-body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 2px 0 8px;
}
.cp-refs { display: flex; align-items: center; gap: 6px; flex: none; }
.cp-ref {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 7px;
  overflow: hidden;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.cp-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-ref.is-plain { background: #101010; }
.cp-ref-glyph { color: #9a9a9a; }
.cp-ref-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 12px; height: 12px;
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.62);
  color: #e8e8e8;
  font-size: 8px;
  display: flex; align-items: center; justify-content: center;
}
.cp-ref-add {
  width: 26px; height: 44px;
  border-radius: 7px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: #7a7a7a;
}
.cp-ref-add:hover { color: #e6e6e6; border-color: rgba(255, 255, 255, 0.3); }

.composer .composer-input,
.cp-input {
  flex: 1;
  min-height: 56px;
  max-height: 150px;
  padding: 6px 2px;
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
  color: #ededed;
  font-size: 13px;
  line-height: 1.7;
}
.composer .composer-input::placeholder { color: #6f6f6f; }

.cp-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-foot .spacer { flex: 1; }
.cp-model, .cp-params, .cp-mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 12px;
  color: #cfcfcf;
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
}
.cp-model:hover, .cp-params:hover, .cp-mode:hover { background: #272727; color: #fff; }
.cp-model .ic, .cp-params .ic, .cp-mode .ic { color: #8a8a8a; }
.cp-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.cp-vip, .cp-mvip {
  font-style: normal;
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 3px;
  background: #3a2f1e;
  color: #e9c98d;
  margin-left: 3px;
}
.cp-icon {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: #a6a6a6;
  font-size: 12px;
}
.cp-icon:hover { background: #272727; color: #fff; }
.cp-credit {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: #8f8f8f;
  padding: 0 2px;
}
.cp-send {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #2f2f2f;
  color: #dcdcdc;
  flex: none;
  transition: background 0.12s, color 0.12s;
}
.cp-send:hover { background: #3b3b3b; color: #fff; }
.cp-send[data-empty="1"] { color: #7d7d7d; }
.cp-stop { height: 26px; padding: 0 10px; border-radius: 6px; background: #2f2f2f; color: #e6e6e6; font-size: 12px; }
.cp-busy { font-size: 12px; color: #b9b9b9; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 参数面板 ---------- */
.cp-params-panel { display: flex; flex-direction: column; gap: 14px; padding: 2px; }
.cp-prow { display: flex; flex-direction: column; gap: 7px; }
.cp-plabel { font-size: 12px; color: #8f8f8f; }
.cp-pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-pchip {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  background: #262626;
  color: #cfcfcf;
  font-size: 12px;
}
.cp-pchip:hover { background: #303030; }
.cp-pchip.is-on { background: #f2f2f2; color: #141414; }
.cp-ratios { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cp-ratio {
  height: 54px;
  border-radius: 6px;
  background: #232323;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: inset 0 0 0 1px transparent;
}
.cp-ratio span { font-size: 10px; color: #b3b3b3; }
.cp-ratio:hover { background: #2c2c2c; }
.cp-ratio.is-on { box-shadow: inset 0 0 0 1.5px #e8e8e8; background: #2a2a2a; }
.cp-ratio.is-on span { color: #fff; }
.cp-ratio-shape { display: block; border: 1px solid #9a9a9a; border-radius: 2px; }
.cp-ratio.is-on .cp-ratio-shape { border-color: #fff; }
.cp-pslider { display: flex; align-items: center; gap: 10px; }
.cp-pslider input[type="range"] {
  flex: 1; height: 3px; appearance: none; background: #3a3a3a; border-radius: 2px; outline: none;
}
.cp-pslider input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #e6e6e6;
}
.cp-pval { font-size: 11px; color: #cfcfcf; min-width: 36px; text-align: right; }

/* ---------- 模型菜单 ---------- */
.cp-models { display: flex; flex-direction: column; gap: 1px; max-height: 330px; overflow-y: auto; }
.cp-model-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  text-align: left;
}
.cp-model-row:hover { background: #2a2a2a; }
.cp-model-row.is-on { background: #303030; }
.cp-mdot { width: 14px; height: 14px; border-radius: 4px; flex: none; opacity: 0.85; }
.cp-mname { flex: 1; font-size: 13px; color: #e6e6e6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-meta { font-size: 11px; color: #7c7c7c; flex: none; }

/* ---------- 底部工具栏（对齐真实布局） ---------- */
.bottombar {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  pointer-events: none;
}
.bb-left {
  position: absolute;
  left: 16px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: auto;
}
.bb-text {
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  font-size: 12px;
  color: #d2d2d2;
}
.bb-text:hover { background: #232323; color: #fff; }
.bb-ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  color: #a8a8a8;
}
.bb-ico:hover { background: #232323; color: #fff; }
.bb-zoom {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: 4px;
  padding: 2px;
  border-radius: 8px;
  background: #1e1e1e;
}
.bb-zoom .zoom-value {
  min-width: 40px;
  height: 24px;
  border-radius: 5px;
  font-size: 11px;
  color: #cfcfcf;
  text-align: center;
}
.bb-zoom .zoom-value:hover { background: #2a2a2a; color: #fff; }

.bb-center {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 49px;
  padding: 0 9px;
  border-radius: 12px;
  background: #262626;
  border: 1px solid #363636;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
.bb-tool {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: #f7f7f7;
}
.bb-tool .ic { color: #f7f7f7; }
.bb-tool:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
/* 快捷键前留出一道分隔间距 */
.bb-center .bb-tool[data-bb="keys"] { margin-left: 9px; }

/* TV Director：真实的青色圆形按钮，挂在工具条右侧外面 */
.bb-director {
  position: absolute;
  left: 100%;
  margin-left: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #a4fff3 0%, #00ffc1 20%, #00e5ff 46%, #007dff 74%, #0063cc 100%);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4), 0 8px 22px rgba(0, 0, 0, 0.45);
  color: #04222b;
}
.bb-director:hover {
  background:
    radial-gradient(circle at 36% 30%, #c3fff8 0%, #23ffcd 20%, #22e9ff 46%, #1a8bff 74%, #0a6fe0 100%);
  color: #04222b;
}
.bb-director .ic { color: #04222b; }
.bb-director span { display: none; }

/* 旧缩放条隐藏（已并入底栏） */
.zoombar, .center-btn { display: none !important; }

/* 隐藏连线 */
.hide-edges .edges-svg { display: none; }

/* ---------- 参考点选模式 ---------- */
.refpick-bar {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 96;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 12px;
  border-radius: 10px;
  background: #2f6bff;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}
.refpick-bar.hidden { display: none; }
.rp-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; }
.rp-text { font-size: 12px; }
.rp-back {
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
}
.rp-back:hover { background: rgba(255, 255, 255, 0.28); }
.rp-close {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.82);
}
.rp-close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.is-refpick .node { cursor: crosshair; }
.node.is-refpick-target { box-shadow: 0 0 0 2px #2f6bff, 0 20px 50px rgba(0, 0, 0, 0.45) !important; }

/* ---------- 全部功能面板 ---------- */
.af-wrap { display: flex; flex-direction: column; gap: 18px; max-height: 62vh; overflow-y: auto; }
.af-title { font-size: 12px; color: #9a9a9a; margin-bottom: 9px; }
.af-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.af-item {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  background: #232323;
  text-align: left;
}
.af-item:hover { background: #2d2d2d; }
.af-ico {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: #2c2c2c;
  color: #d0d0d0;
  flex: none;
}
.af-label { font-size: 12.5px; color: #e4e4e4; display: flex; align-items: center; gap: 5px; }
.af-vip {
  font-style: normal;
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 3px;
  color: #e9c98d;
  background: #3a2f1e;
}
.af-sub { font-style: normal; font-size: 9px; color: #8a8a8a; }
.af-hint { margin-top: 12px; font-size: 11px; color: #7c7c7c; }

/* 助手入口收进底部工具栏，隐藏右下角悬浮球 */
.assistant-fab { display: none !important; }

/* ---------- 一级页面：侧栏与首页尺寸 ---------- */
.app-shell { grid-template-columns: 240px minmax(0, 1fr); }
.side-nav { padding: 0 12px 10px; }
.side-brand { padding: 18px 0 14px; height: 60px; }
.side-item { height: 32px; padding: 0 10px; border-radius: 6px; font-size: 13px; gap: 8px; }
.side-item .ic { width: 16px; height: 16px; }
.side-group { margin: 16px 10px 6px; font-size: 11px; color: #6f6f6f; }
.side-badge { font-size: 9px; padding: 1px 4px; border-radius: 3px; }
.side-arrow { margin-left: auto; font-style: normal; color: #7a7a7a; font-size: 14px; }
.side-promo {
  position: relative;
  margin: 8px 0 6px;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(150deg, #1b2340, #2a1a33 60%, #171018);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-end;
}
.side-promo .sp-art {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(120, 90, 255, 0.35), transparent 60%),
              radial-gradient(circle at 30% 80%, rgba(255, 90, 160, 0.25), transparent 55%);
}
.side-promo .sp-text { position: relative; padding: 9px 10px; font-size: 11px; color: #e8e8ee; }
.side-foot { border-top: none; padding-top: 2px; }
.side-version { height: 30px; font-size: 11.5px; }

.app-top { height: 56px; padding: 0 28px; }
.app-main { padding: 20px 26px 60px; max-width: 1180px; }

.new-canvas {
  height: 160px;
  border-radius: 12px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.nc-plus { width: 56px; height: 40px; border-radius: 10px; }
.nc-label { font-size: 14px; color: #dcdce2; }

.cap-row { gap: 10px; }
.cap-item {
  padding: 12px 6px 10px;
  border-radius: 10px;
  background: #1d1d1d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  gap: 7px;
}
.cap-ico {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #262626;
  color: #d8d8d8;
}
.cap-label { font-size: 12px; color: #e2e2e2; }
.cap-badge.free { color: #4ade80; font-size: 10px; }

/* 最近项目卡片：左缩略 + 右文字 */
.project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.project-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: #1b1b1b;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.project-card .project-thumb {
  width: 64px; height: 48px;
  border-radius: 7px;
  overflow: hidden;
  flex: none;
  aspect-ratio: auto;
}
.project-card .project-thumb .cover { width: 100%; height: 100%; background-size: cover; background-position: center; }
.project-card .project-meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.project-name { font-size: 12px; color: #ededed; }
.project-date { font-size: 10px; color: #7c7c7c; }

/* 最近上新 */
.fresh-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fresh-card { display: flex; flex-direction: column; gap: 7px; }
.fresh-art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.fresh-art em {
  position: absolute; left: 6px; bottom: 6px;
  font-style: normal; font-size: 9px; padding: 2px 5px;
  border-radius: 4px; color: #fff; background: rgba(0,0,0,0.55);
}
.fresh-cap { font-size: 11px; color: #b9b9b9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 项目页 ---------- */
.pp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pp-back { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: #c9c9c9; }
.pp-back:hover { background: #232323; color: #fff; }
.pp-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.12); }
.pp-title { font-size: 13px; color: #ededed; }
.pp-head .spacer { flex: 1; }
.pp-search {
  display: flex; align-items: center; gap: 6px;
  width: 200px; height: 30px; padding: 0 10px;
  border-radius: 7px; background: #1d1d1d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  color: #7c7c7c;
}
.pp-search input { flex: 1; background: transparent; border: 0; outline: none; color: #e6e6e6; font-size: 12px; }
.pp-search input::placeholder { color: #6f6f6f; }
.pp-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px; border-radius: 7px;
  font-size: 12px; color: #d2d2d2; background: #1d1d1d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
}
.pp-btn:hover { background: #262626; color: #fff; }
.pp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 16px; }
.pp-card { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.pp-thumb {
  position: relative;
  aspect-ratio: 320 / 184;
  border-radius: 8px;
  overflow: hidden;
  background: #262626;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.pp-thumb .cover { width: 100%; height: 100%; background-size: cover; background-position: center; }
.pp-thumb .cover-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #6f6f6f; }
.pp-more {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: #dcdce2; background: rgba(0,0,0,0.45);
  opacity: 0;
}
.pp-card:hover .pp-more { opacity: 1; }
.pp-name { font-size: 14px; color: #ededed; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-date { font-size: 10.5px; color: #7c7c7c; }
.pp-new {
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
}
.pp-new-thumb {
  width: 100%;
  aspect-ratio: 320 / 184;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #1d1d1d;
  border: 1px dashed rgba(255,255,255,0.16);
  color: #d8d8d8;
}
.pp-new:hover .pp-new-thumb { background: #232323; }
.pp-new-label { font-size: 12.5px; color: #d2d2d2; }
.pp-end { margin-top: 34px; text-align: center; font-size: 11px; color: #5f5f5f; }

/* ---------- 资产页（生成历史） ---------- */
.as-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: start; }
.as-head { display: flex; align-items: center; margin-bottom: 14px; }
.as-title { font-size: 14px; color: #ededed; }
.as-head-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.as-sort { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #b9b9b9; }
.as-view { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #b9b9b9; border-radius: 5px; }
.as-view:hover { background: #232323; color: #fff; }
.as-tabs { display: flex; gap: 2px; margin-bottom: 18px; }
.as-tab { height: 26px; padding: 0 10px; border-radius: 14px; font-size: 12px; color: #a8a8a8; }
.as-tab:hover { background: #232323; color: #e6e6e6; }
.as-tab.is-active { background: #2a2a2a; color: #fff; }
.as-group { margin-bottom: 22px; }
.as-date { font-size: 12px; color: #b9b9b9; margin-bottom: 10px; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 104px)); gap: 10px; }
.as-tile {
  width: 104px; height: 104px;
  border-radius: 6px;
  overflow: hidden;
  background: #232323;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.as-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-tile:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.as-end { margin-top: 10px; text-align: center; font-size: 11px; color: #5f5f5f; }
.as-rail { display: flex; flex-direction: column; gap: 2px; padding-top: 34px; }
.as-rail-item {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 9px; border-radius: 6px;
  font-size: 12px; color: #b9b9b9;
  text-align: left;
}
.as-rail-item .ic { color: #8a8a8a; }
.as-rail-item em { margin-left: auto; font-style: normal; font-size: 10px; color: #6f6f6f; }
.as-rail-item:hover { background: #232323; color: #fff; }
.as-rail-item.is-active { background: #2a2a2a; color: #fff; }
.as-rail-item.is-active .ic { color: #dcdce2; }

/* ============================================================
   TV Director 抽屉（1:1 复刻实测值）
   ============================================================ */
.assistant-host { position: fixed; inset: 0; pointer-events: none; z-index: 96; }
.td-drawer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 400px;
  height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  border-radius: 28px;
  background: rgba(31, 31, 31, 0.95);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  color: #f7f7f7;
  animation: td-in 0.2s ease-out;
}
.td-drawer.hidden { display: none; }
.td-drawer.is-wide { width: 460px; }
@keyframes td-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 头部 */
.td-head {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: grab;
}
.td-title {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  padding: 0 6px 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #f7f7f7;
}
.td-title:hover { background: rgba(255, 255, 255, 0.1); }
.td-title .ic { color: rgba(255, 255, 255, 0.6); }
.td-hicons { display: flex; align-items: center; gap: 2px; }
.td-hbtn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
}
.td-hbtn:hover { background: rgba(255, 255, 255, 0.1); }
.td-hbtn:disabled { opacity: 0.4; cursor: default; }
.td-hbtn:disabled:hover { background: transparent; }

/* 主体：欢迎区贴底 */
.td-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 16px;
  overflow: hidden;
}
.td-welcome { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 8px; }
.td-welcome.hidden { display: none; }
.td-wblock { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.td-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #a4fff3 0%, #00ffc1 20%, #00e5ff 46%, #007dff 74%, #0063cc 100%);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45), 0 0 34px rgba(0, 125, 255, 0.3), inset 0 -5px 12px rgba(0, 99, 204, 0.55);
  animation: td-orb 4.2s ease-in-out infinite;
}
@keyframes td-orb {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.045); filter: brightness(1.1); }
}
.td-wtitle {
  max-width: 100%;
  padding: 0 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  text-align: center;
}
.td-quick { display: flex; flex-direction: column; width: 100%; }
.td-q {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 39px;
  width: 100%;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  transition: background 0.12s ease;
}
.td-q:hover { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.85); }
.td-q-ico { display: inline-flex; flex: 0 0 16px; color: rgba(255, 255, 255, 0.55); }
.td-q-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-q-arrow { display: inline-flex; color: rgba(255, 255, 255, 0.28); }

/* 消息 */
.td-msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 2px 10px; display: flex; flex-direction: column; gap: 12px; }
.td-msgs.hidden { display: none; }
.td-msg { display: flex; gap: 8px; align-items: flex-start; }
.td-msg.user { justify-content: flex-end; }
.td-mavatar {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #00e5ff, #007dff);
  color: #04222b;
  margin-top: 2px;
}
.td-bubble {
  max-width: 300px;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 20px;
  color: #e9e9e9;
  background: rgba(255, 255, 255, 0.06);
  word-break: break-word;
}
.td-msg.user .td-bubble { background: rgba(31, 109, 255, 0.22); color: #fff; }
.td-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.td-actions button {
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #dcdce2;
  background: rgba(255, 255, 255, 0.08);
}
.td-actions button:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* 底部 */
.td-foot { flex: 0 0 auto; padding: 0 9px 8px; }
.td-banner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 6px 0 16px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(31, 109, 255, 0.2);
  color: #fff;
  font-size: 13px;
}
.td-btext { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-bon { flex: 0 0 auto; height: 18px; padding: 0 2px; font-size: 13px; color: #fff; }
.td-bon:hover { text-decoration: underline; }
.td-bclose {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.75);
}
.td-bclose:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.td-chips { display: flex; gap: 6px; padding: 0 0 6px; }
.td-chips.hidden { display: none; }
.td-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
  color: #d7d7d7;
  background: rgba(255, 255, 255, 0.08);
}
.td-chip .ic { color: rgba(255, 255, 255, 0.55); }

.td-input {
  border-radius: 20px;
  background: #212121;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  padding: 9px 8px 8px;
}
.td-editor {
  min-height: 64px;
  max-height: 160px;
  overflow-y: auto;
  padding: 0 0 8px;
  font-size: 14px;
  line-height: 24px;
  color: #f7f7f7;
  outline: none;
  cursor: text;
  word-break: break-word;
}
.td-editor.is-empty::before {
  content: attr(data-ph);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.td-row { display: flex; align-items: center; gap: 3px; height: 32px; }
.td-rbtn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: #919191;
}
.td-rbtn:hover { background: rgba(255, 255, 255, 0.07); color: #f7f7f7; }
.td-mode {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 6px 0 8px;
  border-radius: 12px;
  font-size: 13px;
  color: #f7f7f7;
}
.td-mode:hover { background: rgba(255, 255, 255, 0.07); }
.td-mode .ic { color: rgba(255, 255, 255, 0.55); }
.td-send {
  margin-left: auto;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #919191;
  color: #171717;
}
.td-send:hover { background: #f7f7f7; }

/* 模式菜单（浅色，向上弹出） */
.td-modemenu {
  position: fixed;
  z-index: 950;
  min-width: 118px;
  padding: 5px;
  border-radius: 12px;
  background: #efefef;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  animation: td-in 0.12s ease-out;
}
.td-modemenu button {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 30px;
  padding: 0 8px 0 4px;
  border-radius: 8px;
  font-size: 13px;
  color: #1c1c1c;
  text-align: left;
}
.td-modemenu button:hover { background: rgba(0, 0, 0, 0.06); }
.td-mm-check { width: 14px; display: inline-flex; color: #1c1c1c; }

/* 全部指令浮层 */
.td-cmdpanel {
  position: absolute;
  inset: 44px 10px auto;
  max-height: 560px;
  overflow-y: auto;
  padding: 10px 12px 14px;
  border-radius: 16px;
  background: #232323;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 3;
}
.td-cmdpanel.hidden { display: none; }
.td-cmds-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: #f7f7f7; }
.td-cmds-tip { font-size: 10px; color: #7c7c7c; }
.td-cmd-group { margin-bottom: 10px; }
.td-cmd-title { margin-bottom: 5px; font-size: 11px; color: #6f6f6f; }
.td-cmd-row { display: flex; flex-wrap: wrap; gap: 5px; }
.td-cmd-row button {
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12px;
  color: #d8d8d8;
  background: #2e2e2e;
}
.td-cmd-row button:hover { background: #3a3a3a; color: #fff; }

@media (max-width: 900px) {
  .td-drawer, .td-drawer.is-wide { width: calc(100vw - 24px); right: 12px; bottom: 12px; height: 70vh; }
}

/* ---------- 节点右键菜单（实测：196 宽 / 圆角 16 / 行高 32） ---------- */
.menu.is-flat {
  padding: 8px;
  border-radius: 16px;
  background: #262626;
  border: 1px solid #363636;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: none;
  gap: 4px;
  display: flex;
  flex-direction: column;
}
.menu.is-flat .menu-item {
  min-height: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  gap: 0;
  font-size: 13px;
  color: #fff;
}
.menu.is-flat .menu-item:hover { background: rgba(255, 255, 255, 0.08); }
.menu.is-flat .menu-spacer { display: none; }
.menu.is-flat .menu-item .kbd {
  font-family: var(--app-font);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #8a8a8a;
}
.menu.is-flat .menu-item .hint {
  display: inline-flex;
  margin-left: 4px;
  color: #6f6f6f;
}
.menu.is-flat .menu-sep { margin: 3.5px 0; background: #363636; }
.menu.is-flat .menu-item[disabled] { opacity: 0.4; }

.menu-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  color: #fff;
}
.menu-stars { display: flex; gap: 2px; }
.menu-star {
  display: inline-flex;
  color: #3f3f3f;
  transition: color 0.12s ease;
}
.menu-star.is-on { color: #8f8f8f; }
.menu-star:hover { color: #d4d4d4; }

/* 左下角：真实只有「资产管理 + 图标 + 百分比」，去掉 ± 按钮 */
.bb-zoom { background: transparent; padding: 0; }
.bb-zoom .bb-ico { display: none; }
.bb-zoom .zoom-value { font-size: 12px; color: #c9c9c9; min-width: 44px; }

/* ============================================================
   节点卡片 / 连线 / 分组框
   真实画布 65% 缩放下的屏幕值 ÷0.65 得设计值；标签反向缩放保持字号恒定
   ============================================================ */
.stage { background: #1a1a1a; }
.stage.bg-grid { background-color: #1a1a1a; }

/* 尺寸：文本 348、图片/视频 618、音频 318、脚本 348 */
.node-text { width: 348px; }
.node-image, .node-video, .node-grid { width: 618px; }
.node-audio { width: 318px; }
.node-script { width: 348px; }

/* 卡片：屏幕圆角 12 → 设计 18；底色 #262626；描边 1px #363636 */
.text-card,
.script-card {
  border-radius: 18px;
  background: #262626;
  box-shadow: inset 0 0 0 1px #363636;
}
.media-frame {
  border-radius: 18px;
  background: #262626;
  box-shadow: inset 0 0 0 1px #363636;
}
.media-frame::after { box-shadow: none; }
.media-wrap { background: transparent; }
.text-card { font-size: 13px; }

/* 标签：屏幕恒为 13px #919191，距卡片顶 25px（随缩放反向补偿） */
.node-label {
  left: 0;
  top: calc(-25px / var(--zoom, 1));
  height: 20px;
  gap: 6px;
  font-size: 13px;
  color: #919191;
  transform: scale(calc(1 / var(--zoom, 1)));
  transform-origin: left top;
}
.node-label .ic { color: #919191; opacity: 1; width: 13px; height: 13px; }
.node.is-selected .node-label { color: #c9c9c9; }
.node.is-selected .node-label .ic { color: #c9c9c9; }

/* 连线：屏幕 2px #86909c → 设计 3px，无发光 */
.edge-base { stroke: #86909c; stroke-width: 3; }
.edge-glow { display: none; }
.edge.is-connected .edge-base { stroke: #9aa4b0; stroke-width: 3; }
.edge.is-selected .edge-base { stroke: #cdd6e2; stroke-width: 3; }

/* 分组框：屏幕圆角 20 → 设计 30；底色 #171717；描边 1px #313131 */
.group-frame {
  border-radius: 30px;
  background: #171717;
  box-shadow: inset 0 0 0 1px #313131;
}
.group-frame.is-selected { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.group-frame .group-title {
  left: 2px;
  top: calc(-26px / var(--zoom, 1));
  font-size: 13px;
  color: #919191;
  height: 20px;
  transform: scale(calc(1 / var(--zoom, 1)));
  transform-origin: left top;
}

/* 端口：默认隐藏，悬停/选中才出现（真实产品同为悬停显示的小圆点） */
.port {
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: #1a1a1a;
  box-shadow: 0 0 0 1px #4a5058;
  color: transparent;
  font-size: 0;
  opacity: 0;
}
.node:hover .port,
.node.is-selected .port,
.port.connecting { opacity: 1; }
.port:hover {
  box-shadow: 0 0 0 1px #8db6f0, 0 0 10px rgba(90, 150, 255, 0.4);
}

/* 脚本/分镜卡在真实宽度（348）下只保留 镜号 + 画面描述，其余列隐藏，避免挤压 */
.node-script .tr > :nth-child(2),
.node-script .tr > :nth-child(4),
.node-script .tr > :nth-child(5),
.node-script .tr > :nth-child(6) { display: none; }
.node-script .tr > :nth-child(3) { width: auto !important; }

/* 音频卡：实测 底色 #1f1f1f、屏幕圆角 24（设计 36）、描边 1px #525252 */
.audio-card {
  border-radius: 36px;
  background: #1f1f1f;
  box-shadow: inset 0 0 0 1px #525252;
  padding: 20px 20px 16px;
}
.node-audio.is-selected .audio-card { box-shadow: inset 0 0 0 1px #fff; }
/* 空态：居中音符 + 底部「尝试：」 */
.audio-card.is-empty {
  height: 348px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 20px 20px;
}
.audio-empty-ico {
  margin: auto;
  display: inline-flex;
  color: rgba(255, 255, 255, 0.22);
}
.audio-card.is-empty .tries {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.audio-card.is-empty .tries-label { font-size: 12px; color: #8a8a8a; }

/* ============================================================
   顶部运营条（实测：60 高、紫→红渐变、四位胶囊倒计时）
   ============================================================ */
.promo-bar {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, #bd6fa7 0%, #d95f8f 26%, #f54c5e 55%, #fe2f2a 78%, #fe2f2a 100%);
}
.promo-inner {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 12px;
}
.promo-count { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.promo-pill {
  min-width: 26px;
  height: 24px;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: #04202f;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.promo-colon { font-size: 14px; font-weight: 600; color: #fff; }
.promo-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-text b { font-weight: 600; }
.promo-sep { margin: 0 3px; opacity: 0.75; }
.promo-cta {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.promo-cta:hover { background: #f2f2f2; color: #000; }
.promo-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.promo-close:hover { background: rgba(255, 255, 255, 0.18); }
body.has-promo .app-shell { min-height: calc(100vh - 60px); }
@media (max-width: 900px) {
  .promo-text { font-size: 13px; }
  .promo-inner { gap: 10px; }
  .promo-bar { height: 52px; }
  .promo-close { top: 10px; }
  body.has-promo .app-shell { min-height: calc(100vh - 52px); }
}

/* ============================================================
   空画布引导（实测：提示 40 高 16px；5 张 200×56 能力卡，圆角 16）
   ============================================================ */
.canvas-empty { gap: 24px; }
.ce-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 16px;
  color: #919191;
}
.ce-hint .ic { color: #b9b9b9; }
.ce-hint b { font-weight: 500; color: #d9d9d9; }
.ce-caps { display: flex; gap: 8px; pointer-events: auto; }
.ce-cap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 200px;
  height: 56px;
  padding: 7px 17px 7px 7px;
  border-radius: 16px;
  background: #1f1f1f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: #fff;
  text-align: left;
}
.ce-cap:hover { background: #262626; }
.ce-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e6e6e6;
  flex: 0 0 42px;
}
@media (max-width: 1100px) {
  .ce-caps { flex-wrap: wrap; justify-content: center; max-width: 640px; }
}

/* 空画布时左侧竖排工具条不显示（与真实产品一致） */
.is-empty-canvas .rail { display: none; }

/* ============================================================
   一级页面尺寸校准（按真实首页/资产页实测）
   顶栏 64、内容 280..1400（1120 宽）、hero 160、能力卡 117×116 gap 8
   ============================================================ */
.app-top { height: 64px; }
.app-main { padding: 20px 40px 60px; max-width: 1200px; }
/* 首页 hero 顶到顶栏下方，其它页面保留 20px 上边距 */
.dash-hero { margin-top: -20px; }
.dash-hero { gap: 32px; }

/* 新建画布 hero：160 高、5% 白底 + 16% 白描边 */
.nc-card {
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

/* 能力行：117×116、间距 8 */
.cap-row { gap: 8px; }
.cap-item { width: 117px; height: 116px; padding: 10px 12px; }

/* 最近项目卡：271×84、圆角 24、底色 #121212、padding 4 16 4 4 */
.project-card {
  border-radius: 24px;
  background: #121212;
  padding: 4px 16px 4px 4px;
  min-height: 84px;
}
.project-card .project-thumb { width: 84px; height: 76px; border-radius: 20px; }
.project-card .project-name { font-size: 14px; }
.recent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* 资产页：标题 16/500、tab 28 高 13px 圆角全、日期头 14/500 白 */
.as-head-title, .as-title { font-size: 16px; font-weight: 500; }
.as-tab { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 999px; }
.as-tab.is-active { background: rgba(255, 255, 255, 0.12); }
.as-date { font-size: 14px; font-weight: 500; color: #fff; }


/* 真实画布没有左侧竖排工具条：隐藏（功能改由底栏 + 双击 + 项目菜单承接） */
.rail { display: none !important; }

/* 顶栏「双十一 倒计时」红色胶囊（实测 121×20、圆角 6、11px、#ff2d4b） */
.promo-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: #ff2d4b;
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.promo-mini b { font-weight: 600; }
.promo-mini:hover { background: #ff445e; }

/* 右下角浮动帮助（真实页面右下角的「?」） */
.page-help {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #cfcfcf;
  background: #1f1f1f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 20;
}
.page-help:hover { background: #2a2a2a; color: #fff; }

/* ============================================================
   画布顶栏：工作区图标 + 画布标签页（真实结构）
   ============================================================ */
.brand.mark-only { padding: 0 6px; }
.canvas-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 4px 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  max-width: 240px;
}
.canvas-tab .project-title { font-size: 13px; color: #f7f7f7; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canvas-tab .project-menu-btn { width: 16px; height: 16px; }
.tab-close {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; color: #9a9a9a;
}
.tab-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.topbar-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; color: #b9b9b9;
}
.topbar-icon:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* 积分胶囊：只有 ⚡ + 数字，无底色 */
.credit-chip.compact.bolt {
  background: transparent;
  box-shadow: none;
  padding: 0 6px;
  gap: 4px;
  font-size: 13px;
  color: #f7f7f7;
}
.credit-chip.compact.bolt .bolt-ico { display: inline-flex; color: #f7f7f7; }
.promo-mini { padding-right: 3px; }
.promo-mini-x {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; color: #fff; font-size: 11px; line-height: 1;
  opacity: .85;
}
.promo-mini-x:hover { background: rgba(255,255,255,.22); opacity: 1; }
/* 会员胶囊：深色底 + 描边（与真实一致） */
.credit-chip.compact:not(.bolt) {
  background: #1f1f1f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 0 10px;
  height: 32px;
}
.promo-mini .ic { opacity: .9; }
.credit-chip.compact:not(.bolt), .credit-chip.compact:not(.bolt) .heart, .credit-chip.compact:not(.bolt) .ic { color: #f7f7f7; }

/* ============================================================
   TV Director 全局设置弹窗（实测 600×538、底色 #262626、圆角 12）
   ============================================================ */
.tds-modal { width: 600px; }
.tds-modal .modal-body { padding: 16px 16px 4px; }
.tds-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #3c3c3c;
  font-size: 14px;
  color: #fff;
  line-height: 22px;
}
.tds-banner .ic { color: #09caf5; flex: 0 0 15px; }
.tds-banner b { font-weight: 500; color: #fff; }
.tds-group-title {
  height: 28px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.tds-row { display: flex; align-items: flex-start; gap: 16px; padding: 4px 0 10px; }
.tds-row .txt { flex: 1 1 auto; min-width: 0; }
.tds-row .t { font-size: 14px; line-height: 19px; color: #fff; }
.tds-row .d { margin-top: 4px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, 0.6); }
.tds-row-inline { align-items: center; padding-bottom: 14px; }
.tds-link { color: #09caf5; font-size: 13px; }
.tds-link:hover { text-decoration: underline; }
.tds-value {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #fff;
}
.tds-value:hover { background: rgba(255, 255, 255, 0.08); }
.tds-value .ic { color: rgba(255, 255, 255, 0.55); }
.tds-sep { height: 1px; margin: 6px 0 4px; background: rgba(255, 255, 255, 0.08); }

/* 开关：关=灰底深钮在左，开=白底深钮在右，禁用=更暗 */
.tds-switch {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #3a3a3a;
  transition: background 0.15s ease;
  margin-top: 2px;
}
.tds-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1c1c1c;
  transition: transform 0.15s ease;
}
.tds-switch.on { background: #f7f7f7; }
.tds-switch.on i { transform: translateX(16px); }
.tds-switch.is-disabled { background: #343434; cursor: default; }
.tds-switch.is-disabled i { background: #4a4a4a; }

.tds-done { height: 32px; padding: 0 14px; font-size: 13px; font-weight: 500; border-radius: 8px; }
.tds-modal { background: #262626; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.tds-group-title { margin-top: 10px; height: 26px; }
.tds-row { padding: 3px 0 8px; }
.tds-row-inline { padding-bottom: 10px; }
.tds-sep { margin: 4px 0 2px; }

/* ============================================================
   最近上新卡片（实测 211×119、圆角 16、底部标签在标题右侧）
   ============================================================ */
.fresh-row { gap: 16px; }
.fresh-card { gap: 12px; }
.fresh-art { border-radius: 16px; background-color: rgba(255, 255, 255, 0.05); }
.fresh-art em { display: none; }
.fresh-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #17171a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fresh-cap { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #f7f7f7; }
.fresh-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fresh-badge {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  line-height: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  color: #04caf6;
  background: rgba(8, 182, 221, 0.12);
}
.fresh-badge.red { color: #f87171; background: rgba(248, 113, 113, 0.1); }
.fresh-badge.plain { color: #04caf6; background: transparent; padding: 0; }

/* ============================================================
   侧栏底部：活动海报 + 版本记录行（实测 216 宽、海报圆角 12）
   ============================================================ */
.side-promo {
  display: block;
  position: relative;
  height: 110px;
  margin: 10px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, #ffd7ef 0%, #ffb3dd 38%, #d59cf5 72%, #8f6bd6 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.side-promo .sp-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 78% 82%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(closest-side at 26% 88%, rgba(255, 190, 235, 0.7), transparent 72%);
}
.side-promo .sp-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #6d1b57;
  text-align: center;
}
.side-promo .sp-body b {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(150, 40, 110, 0.45);
}
.side-promo .sp-body i {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  opacity: 0.95;
}
.side-promo .sp-body em {
  margin-top: 2px;
  font-style: normal;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.9);
}
.side-version em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  line-height: 16px;
  padding: 0 5px;
  border-radius: 4px;
  color: #04caf6;
  background: rgba(8, 182, 221, 0.12);
}

/* 侧栏高度要扣掉顶部运营条，否则底部版本行会被挤出屏幕 */
.side-nav { height: calc(100vh - 60px); top: 60px; }
body:not(.has-promo) .side-nav { height: 100vh; top: 0; }
.side-scroll { flex: 1 1 auto; min-height: 0; }
.side-foot { flex: 0 0 auto; }

/* 画布标签组：最多 4 个，当前标签可重命名 */
.canvas-tabs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.canvas-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 4px 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9b9b9;
  max-width: 200px;
  cursor: pointer;
}
.canvas-tab:hover { background: rgba(255, 255, 255, 0.08); color: #f7f7f7; }
.canvas-tab.is-active { background: rgba(255, 255, 255, 0.09); color: #f7f7f7; cursor: default; }
.canvas-tab .tab-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }

/* ============================================================
   挑战赛页（实测：面包屑 + 3 列活动卡，状态胶囊 72×24 圆角 8）
   ============================================================ */
.act-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.act-card { display: flex; flex-direction: column; gap: 8px; }
.act-art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.act-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.act-badge.on { color: #61d8a9; }
.act-badge.soon { color: #f6c26b; }
.act-badge.vote { color: #8ec5ff; }
.act-title {
  font-size: 14px;
  font-weight: 500;
  color: #f7f7f7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.act-desc { font-size: 12px; color: #919191; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-card:hover .act-title { color: #fff; }
@media (max-width: 1100px) { .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 画布顶栏 60 高（与真实一致） */
:root { --topbar-h: 60px; }
/* 底栏总宽压到 338：内边距 8、快捷键前留 8 */
.bb-center { padding: 0 8px; }
.bb-center .bb-tool[data-bb="keys"] { margin-left: 8px; }

/* ============================================================
   创作精选页（实测：tab 下划线式 13px、搜索框右侧、4 列海报卡）
   ============================================================ */
.sp-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sp-tabs { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.sp-tab {
  position: relative;
  padding: 0 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.sp-tab:hover { color: rgba(255, 255, 255, 0.85); }
.sp-tab.is-active { color: #fff; }
.sp-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.sp-search {
  flex: 0 0 227px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #919191;
}
.sp-search input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14px;
  color: #f7f7f7;
}
.sp-search input::placeholder { color: #7c7c7c; }

.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.sp-card { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.sp-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sp-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-style: normal;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}
.sp-title { font-size: 14px; color: #f7f7f7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-author { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #919191; }
.sp-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(140deg, #4d7cf8, #b06bd6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.sp-end { margin: 18px 0 8px; text-align: center; font-size: 11px; color: #5f5f5f; }
@media (max-width: 1200px) { .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-titlebar { padding: 20px 0 10px; font-size: 13px; color: #f7f7f7; }
.sp-head { padding-top: 0; }

/* 侧栏「插件」hover 飞出二级菜单（真实：Blender 插件 / XinY Plugin） */
.side-item-wrap { position: relative; }
.side-flyout {
  position: absolute;
  left: calc(100% + 8px);
  top: -6px;
  width: 190px;
  padding: 6px;
  border-radius: 12px;
  background: #1f1f1f;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: none;
  z-index: 40;
}
.side-item-wrap:hover .side-flyout { display: block; }
.sf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 13px;
  color: #d9d9d9;
}
.sf-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sf-item .ic { color: #b9b9b9; }

/* ============================================================
   学院页（实测：居中 hero + AI 大师公开课课程行 480+640）
   ============================================================ */
.aca-hero { padding: 34px 0 30px; text-align: center; }
.aca-eyebrow { font-size: 14px; color: #b9b9b9; letter-spacing: 0.06em; }
.aca-title {
  margin-top: 14px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.aca-sec { margin: 6px 0 14px; font-size: 16px; font-weight: 500; color: #f7f7f7; }
.aca-rows { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.aca-row {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  height: 228px;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  text-align: left;
}
.aca-thumb { position: relative; background-size: cover; background-position: center; }
.aca-tag {
  position: absolute;
  left: 14px;
  top: 12px;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.aca-big {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.aca-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 28px 24px 32px;
  background: #1a1a1a;
}
.aca-quote { font-size: 18px; line-height: 1; color: rgba(255, 255, 255, 0.5); }
.aca-line { font-size: 14px; line-height: 26px; color: #f7f7f7; }
.aca-authors { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #919191; }
.aca-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(140deg, #4d7cf8, #b06bd6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.aca-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }
.aca-card { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.aca-card-art { aspect-ratio: 16 / 9; border-radius: 12px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.aca-card-title { font-size: 14px; color: #f7f7f7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aca-card-meta { font-size: 12px; color: #919191; }
@media (max-width: 1200px) {
  .aca-row { grid-template-columns: 380px minmax(0, 1fr); height: auto; }
  .aca-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   Agent / Skill 页（实测：居中标题 + 大输入框 + 分类行 + 3 列卡）
   ============================================================ */
.sk-hero { padding: 34px 0 10px; text-align: center; }
.sk-title { font-size: 24px; font-weight: 500; color: #f7f7f7; }
.sk-input {
  max-width: 880px;
  margin: 22px auto 0;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  text-align: left;
}
.sk-field {
  min-height: 74px;
  font-size: 14px;
  line-height: 24px;
  color: #f7f7f7;
  outline: none;
  cursor: text;
}
.sk-field.is-empty::before { content: attr(data-ph); color: #7c7c7c; }
.sk-row { display: flex; align-items: center; gap: 8px; }
.sk-ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; color: #919191;
}
.sk-ico:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sk-send {
  margin-left: auto;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #f7f7f7; color: #17171a;
}
.sk-send[disabled] { background: #2e2e2e; color: #6a6a6a; cursor: default; }

.sk-toolbar { display: flex; align-items: center; margin: 26px 0 12px; }
.sk-left { display: flex; align-items: center; gap: 14px; }
.sk-left b { font-size: 15px; font-weight: 600; color: #fff; }
.sk-mini { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.sk-mini.is-active { color: #fff; }
.sk-right { margin-left: auto; }
.sk-search {
  display: flex; align-items: center; gap: 6px;
  width: 214px; height: 30px; padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #919191;
}
.sk-search input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: none; font-size: 13px; color: #f7f7f7; }
.sk-search input::placeholder { color: #7c7c7c; }

.sk-cats { display: flex; align-items: center; gap: 22px; margin-bottom: 16px; overflow-x: auto; }
.sk-cat { font-size: 13px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.sk-cat:hover { color: rgba(255, 255, 255, 0.85); }
.sk-cat.is-active { color: #fff; font-weight: 500; }

.sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sk-card { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.sk-art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sk-art em {
  position: absolute; right: 8px; top: 8px;
  font-style: normal; font-size: 11px;
  padding: 1px 6px; border-radius: 4px;
  color: #fff; background: rgba(0, 0, 0, 0.6);
}
.sk-name { font-size: 14px; font-weight: 500; color: #f7f7f7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-desc {
  font-size: 12px; line-height: 18px; color: #919191;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sk-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #7c7c7c; }
.sk-av { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(140deg, #4d7cf8, #b06bd6); }
.sk-uses { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; }
@media (max-width: 1200px) { .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================
   3D-BOX 页（实测：顶部预览条 + 居中标题 + 大输入框 + 建议 + 我的）
   ============================================================ */
.bx-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.bx-thumb {
  aspect-ratio: 21 / 9;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0.9;
}
.bx-hero { padding: 18px 0 8px; text-align: center; }
.bx-title { font-size: 22px; font-weight: 600; color: #f7f7f7; }
.bx-title span { color: #fff; }
.bx-sub { margin-top: 8px; font-size: 13px; color: #919191; }
.bx-input {
  max-width: 880px;
  margin: 18px auto 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  text-align: left;
}
.bx-field { min-height: 62px; font-size: 14px; line-height: 24px; color: #f7f7f7; outline: none; cursor: text; }
.bx-field.is-empty::before { content: attr(data-ph); color: #7c7c7c; }
.bx-row { display: flex; align-items: center; gap: 8px; }
.bx-ico {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; color: #919191;
}
.bx-ico:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.bx-chip {
  display: inline-flex; align-items: center; gap: 3px;
  height: 28px; padding: 0 8px; border-radius: 8px;
  font-size: 12px; color: #d9d9d9;
  background: rgba(255, 255, 255, 0.06);
}
.bx-chip:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.bx-gen {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: #04222b;
  background: linear-gradient(120deg, #00ffc1, #00e5ff 55%, #007dff);
}
.bx-gen:hover { filter: brightness(1.08); }
.bx-suggest { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; }
.bx-sg {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px; border-radius: 8px;
  font-size: 13px; color: #919191;
}
.bx-sg:hover { background: rgba(255, 255, 255, 0.05); color: #d9d9d9; }
.bx-sec { margin: 22px 0 14px; font-size: 16px; font-weight: 500; color: #f7f7f7; }
.bx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }
.bx-card { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.bx-art { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.bx-play {
  position: absolute; right: 8px; bottom: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.9); color: #17171a; font-style: normal;
}
.bx-card-title { font-size: 14px; color: #f7f7f7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-card-meta { font-size: 12px; color: #919191; }
.bx-card.is-new { gap: 10px; }
.bx-new-art {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #6f6f6f;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}
.bx-card.is-new:hover .bx-new-art { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
@media (max-width: 1200px) { .bx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bx-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 3D-BOX 微调：预览条合成一条、建议左对齐 */
.bx-strip {
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.bx-thumb { border-radius: 0; box-shadow: none; }
.bx-suggest { align-items: flex-start; padding-left: calc((100% - 880px) / 2 + 4px); }
@media (max-width: 1200px) { .bx-suggest { padding-left: 4px; } }

/* ============================================================
   鸿蒙字体 / 更亮的白 / 端口磁吸 / 连线流光
   ============================================================ */
:root {
  --app-font: "HarmonyOS Sans SC", "HarmonyOS_Sans_SC", "HarmonyOS Sans", "HarmonyOS_Sans",
              -apple-system, BlinkMacSystemFont, "PingFang SC", Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --text: #ffffff;
  --text-2: #d4d4d4;
  --text-3: #a8a8a8;
  --text-4: #7a7a7a;
}
body, button, input, textarea, select { font-family: var(--app-font); }
body { color: #fff; }
.node-label { color: #b3b3b3; }
.node.is-selected .node-label { color: #ffffff; }
.project-name, .pp-name, .fresh-name, .as-date, .sp-title, .aca-card-title,
.sk-name, .bx-card-title, .act-title, .dash-title { color: #ffffff; }

/* 端口磁吸：靠近 30px 放大 + 光晕 */
.port { transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, background .12s ease; }
.port.is-near {
  opacity: 1;
  transform: scale(1.55);
  background: #10151c;
  box-shadow: 0 0 0 1px #8db6f0, 0 0 0 6px rgba(90, 150, 255, 0.16), 0 0 16px rgba(90, 150, 255, 0.55);
}
.node:hover .port { opacity: 1; }

/* 连线流光：新建 / 点节点时走一遍 */
.edge.is-flow .edge-base { stroke: #cfe8ff; stroke-width: 3.4; }
.edge.is-flow .edge-glow {
  display: block;
  stroke: #8fd4ff;
  stroke-width: 3;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(120, 200, 255, 0.95));
  stroke-dasharray: 12 16;
  animation: edge-flow 0.7s linear infinite;
}
@keyframes edge-flow { to { stroke-dashoffset: -28; } }

/* 华为鸿蒙字体自托管（本地优先，未安装则加载 woff2） */
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: local("HarmonyOS Sans SC"), url("../fonts/HarmonyOS_Sans_SC_Regular.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: local("HarmonyOS Sans SC Medium"), url("../fonts/HarmonyOS_Sans_SC_Medium.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   提亮：节点卡片与创作面板要能从画布上"立"起来
   ============================================================ */
.media-frame,
.text-card,
.script-card {
  background: #2f2f2f;
  box-shadow: inset 0 0 0 1px #4a4a4a, 0 10px 26px rgba(0, 0, 0, 0.42);
}
.audio-card { background: #2f2f2f; box-shadow: inset 0 0 0 1px #4a4a4a, 0 10px 26px rgba(0, 0, 0, 0.42); }

/* 空媒体区不要黑成一团 */
.media-empty { background: rgba(255, 255, 255, 0.035); }
.media-empty .mountain, .media-empty > .ic { color: rgba(255, 255, 255, 0.32); }

/* 创作面板提亮 + 更明显的边界 */
.composer {
  background: #2a2a2a;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.composer .cp-input,
.composer .cp-editor { background: rgba(255, 255, 255, 0.04); }
.cp-chip { background: rgba(255, 255, 255, 0.07); }
.cp-chip:hover { background: rgba(255, 255, 255, 0.13); }

/* 节点标题栏/工具条也随之提亮，避免断层 */
.node-toolbar { background: #262626; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }

/* 二轮提亮：把面板/卡片内部的深色内层压平，让整体底色真正变亮 */
.composer { background: #2e2e2e; }
.composer .cp-body,
.composer .cp-input,
.composer .cp-editor,
.composer .cp-box,
.composer .cp-foot,
.composer textarea,
.composer [contenteditable] { background: transparent; }
.composer .cp-input,
.composer .cp-editor { background: rgba(255, 255, 255, 0.05); }

.script-card { background: #333333; }
.script-card .table-scroll,
.script-card .script-body,
.script-card .script-head,
.script-card .table-grid,
.script-card .tr,
.script-card .td { background: transparent; }
.script-card .tr:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }

.text-card { background: #333333; }
.audio-card { background: #333333; }
.media-frame { background: #333333; }

/* ============================================================
   创作面板尺寸对齐（参考真实：更宽、更高、控件更大）
   ============================================================ */
.composer {
  width: 720px;
  padding: 14px 16px 12px;
  border-radius: 16px;
}
/* 顶部胶囊：36 高 / 14px / 间距 8 */
.cp-head { gap: 8px; margin-bottom: 12px; }
.cp-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  gap: 7px;
}
.cp-chip .ic { width: 16px; height: 16px; }
/* 参考缩略：84×84 圆角 12，角标 18 */
.cp-refs { gap: 8px; }
.cp-ref, .cp-ref-add {
  width: 84px;
  height: 84px;
  border-radius: 12px;
}
.cp-ref .n, .cp-ref .cp-ref-num { min-width: 18px; height: 18px; font-size: 11px; }
/* 输入区：更大更松 */
.composer-input {
  min-height: 96px;
  font-size: 16px;
  line-height: 26px;
  padding: 4px 2px 8px;
}
/* 底部行：44 高，字号 14，发送 44 圆形 */
.cp-foot { min-height: 44px; gap: 10px; }
.cp-model { height: 36px; padding: 0 10px; font-size: 14px; }
.cp-params { height: 36px; font-size: 14px; }
.cp-icon, .cp-aa, .cp-slider { width: 36px; height: 36px; }
.cp-credit { font-size: 14px; }
.cp-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #17171a;
}
.cp-send .ic { width: 18px; height: 18px; }

/* ============================================================
   第三轮：按 LibTV 实拍校准（无强描边、标签更白、线更细、端口小圆点）
   ============================================================ */
.media-frame, .text-card, .script-card, .audio-card {
  background: #2b2b2b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.38);
}
/* 节点标签：更白、更亮 */
.node-label { color: #e8e8e8; }
.node-label .ic { color: #cfcfcf; }
.node.is-selected .node-label { color: #ffffff; }

/* 连线：细一点、浅一点，接近真实的浅灰 */
.edge-base { stroke: #9aa0a6; stroke-width: 2; }
.edge.is-connected .edge-base { stroke: #b3b9c0; stroke-width: 2; }
.edge.is-selected .edge-base { stroke: #e6ebf2; stroke-width: 2.2; }

/* 端口：常态是小圆点，hover 节点才出现，靠近放大吸附 */
.port {
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: #2b2b2b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #d9d9d9;
  font-size: 10px;
  opacity: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}
.node:hover .port, .node.is-selected .port, .port.connecting { opacity: 1; }
.port.is-near {
  opacity: 1;
  transform: scale(1.6);
  background: #3a3a3a;
  box-shadow: inset 0 0 0 1px #ffffff, 0 0 0 5px rgba(255, 255, 255, 0.12), 0 0 14px rgba(255, 255, 255, 0.35);
  color: #fff;
}
.port-in { left: -6px; }
.port-out { right: -6px; }

/* 面板布局修正：参考缩略单独一行，输入框占满下一行 */
.cp-body { display: flex; flex-direction: column; gap: 10px; }
.cp-body.has-refs { flex-direction: column; }
.cp-refs { display: flex; align-items: flex-start; gap: 8px; width: 100%; }
.cp-ref { width: 68px; height: 68px; border-radius: 10px; }
.cp-ref.cp-ref-add { width: 68px; height: 68px; border-radius: 10px; }
.composer-input {
  width: 100%;
  min-height: 76px;
  font-size: 15px;
  line-height: 24px;
  padding: 0;
}

/* 连接点：加大到 20，靠近时吸附（位移 + 放大由 JS 控制） */
.port {
  width: 20px;
  height: 20px;
  margin-top: -10px;
  font-size: 13px;
  background: #2b2b2b;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  color: #e6e6e6;
}
.port-in { left: -10px; }
.port-out { right: -10px; }
.port.is-near {
  background: #ffffff;
  color: #17171a;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 0 18px rgba(255, 255, 255, 0.45);
}

/* 节点卡片：按实测回到 LibTV 数值（画布 #1a1a1a / 卡片 #262626 / 描边 #363636 / 圆角 18） */
.media-frame, .text-card, .script-card, .audio-card {
  background: #262626;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px #363636;
}
.media-empty { background: rgba(255, 255, 255, 0.05); }

/* 节点尺寸：按实测（65% 下 215×121 → 设计 331×186，16:9） */
.node-image, .node-video, .node-grid { width: 331px; }

/* ---- 批量对齐：文本/音频/脚本节点尺寸 + 标签 ---- */
.node-text { width: 186px; }
.node-text .text-card { min-height: 106px; padding: 12px 12px 14px; }
.node-text .text-body { font-size: 11px; line-height: 17px; }

.node-audio { width: 171px; }
.node-audio .audio-card { height: 186px; padding: 12px; display: flex; flex-direction: column; }
.node-audio .audio-head { flex: 0 0 auto; }
.node-audio .audio-head .name { font-size: 11px; }
.node-audio .waveform { flex: 1 1 auto; margin: 8px 0; gap: 2px; }
.node-audio .waveform i { min-height: 4px; }
.node-audio .audio-foot { flex: 0 0 auto; }
.node-audio .audio-meta { font-size: 9px; }

.node-script { width: 186px; }
.node-script .script-card { height: 186px; padding: 10px; }
.node-script .script-head { font-size: 11px; }
.node-script .script-rows { font-size: 10px; line-height: 1.55; }
.node-script .script-rows .row:nth-child(n+5) { display: none; }

/* 节点标签：13px 浅白，图标 14 */
.node-label { font-size: 13px; color: #d6d6d6; }
.node-label .ic { width: 14px; height: 14px; color: #b9b9b9; }

/* 文本节点高度上限，避免长文本把卡片拉高 */
.node-text .text-card { max-height: 106px; overflow: hidden; }
.node-audio .audio-card { height: 186px; }

/* 创作面板：按实测（chip 24×~60 / 圆角 8 / 面板约 600 宽），面板是屏幕空间不缩放 */
.composer { width: 600px; border-radius: 14px; padding: 12px 14px 10px; }
.cp-chip { height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12px; gap: 5px; }
.cp-chip .ic { width: 13px; height: 13px; }
.cp-ref, .cp-ref.cp-ref-add { width: 56px; height: 56px; border-radius: 10px; }
.composer-input { min-height: 64px; font-size: 13px; line-height: 21px; }
.cp-foot { min-height: 32px; gap: 8px; }
.cp-model, .cp-params { height: 28px; font-size: 12px; padding: 0 8px; }
.cp-send { width: 32px; height: 32px; }
.cp-send .ic { width: 15px; height: 15px; }

/* ============================================================
   第四轮：底栏按真实实测重排（340×50 / 白色加号方块 / 分隔线 / 蓝点）
   真实排列：+ · 光标 · 应用宫格 · 角色脸(蓝点) · 礼物 · 时钟 ｜ 键盘 · 问号
   ============================================================ */
.bb-center {
  gap: 2px;
  height: 50px;
  padding: 0 6px;
  border-radius: 14px;
  background: #232323;
  border: 0;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.bb-tool { width: 38px; height: 38px; border-radius: 10px; }
.bb-tool .ic { width: 19px; height: 19px; color: #d8d8d8; }
.bb-tool:hover { background: rgba(255, 255, 255, 0.08); }
.bb-tool:hover .ic { color: #fff; }
.bb-add {
  background: #f1f1f1;
  border-radius: 11px;
}
.bb-add .ic { width: 20px; height: 20px; color: #17171a; }
.bb-add:hover { background: #ffffff; }
.bb-add:hover .ic { color: #000; }
.bb-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.14); margin: 0 6px; flex: none; }
.bb-center .bb-tool[data-bb="keys"] { margin-left: 0; }
.bb-has-dot { position: relative; }
.bb-has-dot::after {
  content: "";
  position: absolute;
  top: 5px; right: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #18c8f0;
  box-shadow: 0 0 0 2px #232323;
}
/* TV Director 入口移到顶栏：青色实心圆角按钮（真实位置） */
.icon-btn.director-top {
  background: #22c5f0;
  color: #04222b;
  box-shadow: 0 0 14px rgba(34, 197, 240, 0.42);
}
.icon-btn.director-top .ic { color: #052a33; }
.icon-btn.director-top:hover { background: #3ad2f8; }

/* 积分福利弹窗 */
.cg-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2a2a 0%, #202020 100%);
  margin-bottom: 14px;
}
.cg-balance .big { font-size: 26px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.cg-balance .cap { font-size: 11.5px; color: #8d8d8d; }
.cg-tasks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cg-task {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 12px;
  border-radius: 10px; background: #232323;
  font-size: 12.5px; color: #d6d6d6;
}
.cg-task .g { margin-left: auto; color: #e8e8e8; font-size: 12px; }
.cg-task .btn-go { height: 24px; padding: 0 10px; border-radius: 6px; background: #3a3a3a; font-size: 11.5px; color: #eee; }
.cg-task .btn-go:hover { background: #4a4a4a; }
.cg-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cg-pack {
  padding: 14px 12px; border-radius: 12px; background: #232323;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
}
.cg-pack b { display: block; font-size: 15px; color: #fff; }
.cg-pack em { display: block; font-style: normal; font-size: 12px; color: #8fd7ff; margin-top: 4px; }
.cg-pack i { display: block; font-style: normal; font-size: 10.5px; color: #7a7a7a; margin: 6px 0 10px; }
.cg-pack button { width: 100%; height: 28px; border-radius: 7px; background: #f1f1f1; color: #17171a; font-size: 12px; }
.cg-pack button:hover { background: #fff; }

/* 快捷键面板：分组 + kbd 键帽 */
.help-keys-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; }
.hk-group { padding-bottom: 6px; }
.hk-group-t {
  font-size: 11px; color: #7d7d7d; letter-spacing: .04em;
  margin: 6px 0 4px;
}
.hk-row {
  display: flex; align-items: center; gap: 10px;
  height: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 12.5px; color: #d2d2d2;
}
.hk-row > span:first-child { flex: 1; }
.hk-combo { display: inline-flex; align-items: center; gap: 3px; }
.hk-row kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 5px;
  background: #303030;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 0 rgba(0, 0, 0, 0.4);
  font-family: inherit; font-size: 11px; color: #eaeaea;
}
.hk-or { font-style: normal; color: #6c6c6c; font-size: 10px; margin: 0 1px; }

/* 弹窗正文限高可滚动，避免长内容被裁掉 */
.modal { max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.modal-body { max-height: min(72vh, 660px); overflow-y: auto; }
.modal-foot { flex: none; }
/* 全部功能：滚动交给 modal-body，避免在卡片中间截断 */
.af-wrap { max-height: none; overflow: visible; }

/* ============================================================
   第五轮：顶栏左侧合并成一个胶囊（实测 32 高 / #232323 / 内嵌标签）
   ============================================================ */
.topbar-left { gap: 8px; }
.tl-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 4px 0 2px;
  border-radius: 10px;
  background: #232323;
  min-width: 0;
}
.tl-brand {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
}
.tl-brand:hover { background: rgba(255, 255, 255, 0.07); }
.tl-caret {
  width: 18px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: #9a9a9a;
}
.tl-caret:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.tl-line { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.1); margin: 0 3px; flex: none; }
.tl-pill .canvas-tabs { gap: 2px; }
.tl-pill .canvas-tab {
  height: 26px;
  padding: 0 4px 0 8px;
  border-radius: 7px;
  background: transparent;
  color: #b4b4b4;
  max-width: 210px;
}
.tl-pill .canvas-tab:hover { background: rgba(255, 255, 255, 0.06); }
.tl-pill .canvas-tab.is-active { background: rgba(255, 255, 255, 0.08); color: #f2f2f2; }
.tl-pill .canvas-tab .project-title { font-size: 12.5px; max-width: 170px; }
.tl-pill .canvas-tab .tab-name { font-size: 12.5px; max-width: 160px; }
.tl-pill .canvas-tab .project-menu-btn { width: 16px; height: 16px; color: #a8a8a8; }
/* 关闭按钮 hover 才出现，避免标签太挤 */
.tl-pill .tab-close { opacity: 0; transition: opacity 0.12s ease; }
.tl-pill .canvas-tab:hover .tab-close { opacity: 1; }

/* ============================================================
   版本更新记录：左侧版本号 + 右侧长文（按真实站版式）
   ============================================================ */
.cl-page { max-width: 1040px; padding: 0 0 80px; }
.cl-title {
  font-size: 20px;
  font-weight: 600;
  color: #f2f2f2;
  margin: 8px 0 34px;
  letter-spacing: 0.01em;
}
.cl-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.cl-meta { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.cl-ver {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: none; text-align: left;
}
.cl-ver b {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px;
  border-radius: 10px;
  background: #262626;
  font-size: 14px; font-weight: 600; color: #b9b9b9;
  transition: background 0.14s, color 0.14s;
}
.cl-ver span { font-size: 11.5px; color: #7c7c7c; padding-left: 2px; }
.cl-ver:hover b { background: #2f2f2f; color: #eaeaea; }
.cl-ver.is-active b { background: #f1f1f1; color: #17171a; }
.cl-ver.is-active span { color: #a8a8a8; }

.cl-art { max-width: 620px; }
.cl-h2 { font-size: 16px; font-weight: 600; color: #f4f4f4; line-height: 1.6; margin: 2px 0 20px; }
.cl-h3 { font-size: 14.5px; font-weight: 600; color: #eeeeee; margin: 30px 0 10px; }
.cl-p { font-size: 13px; line-height: 2; color: #a9a9a9; margin: 0 0 8px; }
.cl-shot {
  border-radius: 16px;
  background: #1f1f1f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 26px 22px;
  margin-bottom: 6px;
}
.cl-shot-card {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 14px;
  background: #262626;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 22px 22px 14px;
}
.cl-shot-t { font-size: 15px; font-weight: 600; color: #f2f2f2; text-align: center; margin-bottom: 18px; }
.cl-shot-row {
  display: flex; align-items: center; gap: 10px;
  height: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 12.5px; color: #d6d6d6;
}
.cl-shot-row i { margin-left: auto; font-style: normal; color: #8a8a8a; }
.cl-ctas { display: flex; gap: 10px; margin: 16px 0 4px; }
.cl-cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  border-radius: 8px;
  background: #262626;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  font-size: 12.5px; color: #dcdcdc;
}
.cl-cta:hover { background: #303030; color: #fff; }
.cl-cta span { color: #8f8f8f; }

/* ============================================================
   企业采购（扫码弹窗） / 积分超市（大弹窗）
   ============================================================ */
.sales-modal { width: min(330px, calc(100vw - 48px)); }
.sales-modal .modal-head { padding: 14px 16px 6px; }
.sales-modal .modal-title { font-size: 13.5px; font-weight: 600; }
.sales-modal .modal-body { padding: 6px 16px 0; }
.sale-qr {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.sale-qr-cap { font-size: 11.5px; color: #1a1a1a; margin-bottom: 8px; }
.sale-qr svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.sale-foot {
  margin: 0 -16px;
  padding: 12px 0;
  text-align: center;
  font-size: 11px;
  color: #7d7d7d;
  background: #1f1f21;
  border-radius: 0 0 14px 14px;
}

.shop-modal {
  position: relative;
  background: #151515;
  border-radius: 16px;
}
.shop-modal .modal-head { display: none; }
.shop-modal .modal-body { padding: 0; max-height: min(86vh, 900px); overflow-y: auto; }
.shop-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #cfcfcf;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.shop-close:hover { background: rgba(0, 0, 0, 0.6); color: #fff; }
.shop-tabs {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 16px 0 14px;
}
.shop-tab {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #b9b9b9;
}
.shop-tab:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.shop-tab.is-active { background: #f2f2f2; color: #17171a; font-weight: 500; }

.shop-hero {
  height: 190px;
  margin: 0 20px 0;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(120% 90% at 20% 20%, rgba(255, 138, 76, 0.35) 0%, transparent 60%),
    radial-gradient(90% 90% at 80% 30%, rgba(64, 120, 255, 0.35) 0%, transparent 62%),
    linear-gradient(180deg, #3a3d52 0%, #1d1f2c 55%, #151515 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.shop-hero-t { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.shop-hero-t span { color: #ffd0e4; }
.shop-hero-sub { font-size: 12px; color: #d9d9d9; }
.shop-hero-sub b { color: #ff5b8f; font-variant-numeric: tabular-nums; font-weight: 600; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 20px 24px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 12px;
  background: rgba(24, 24, 24, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}
.shop-card.is-general {
  background: linear-gradient(180deg, rgba(28, 46, 46, 0.95) 0%, rgba(20, 22, 22, 0.95) 70%);
}
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #d9d9d9; }
.sc-head em {
  font-style: normal;
  font-size: 10px;
  color: #fff;
  background: linear-gradient(90deg, #ff3d7f, #ff6a3d);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.shop-card.is-general .sc-head em { background: rgba(0, 200, 255, 0.16); color: #6fe0ff; }
.sc-pts { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px; color: #fff; }
.sc-pts .ic { color: #e8e8e8; }
.sc-pts b { font-size: 24px; font-weight: 600; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.sc-vip { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #d9b978; min-height: 16px; }
.sc-vip .ic { color: #d9b978; }
.sc-vip-empty { color: #6f6f6f; }
.sc-sub { font-size: 10.5px; color: #8a8a8a; margin-bottom: 4px; }
.sc-price { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 10px; }
.sc-price b { font-size: 16px; color: #fff; font-weight: 600; }
.sc-price s { font-size: 11px; color: #6d6d6d; }
.sc-buy {
  height: 32px;
  border-radius: 7px;
  background: #f2f2f2;
  color: #17171a;
  font-size: 12.5px;
  font-weight: 500;
}
.sc-buy:hover { background: #fff; }
.sc-buy.is-hot { background: rgba(255, 255, 255, 0.16); color: #eaeaea; }
.sc-buy.is-hot:hover { background: rgba(255, 255, 255, 0.24); }
.sc-note { margin-top: 10px; font-size: 10px; color: #6f6f6f; text-align: center; line-height: 1.6; }
.shop-sec-t { text-align: center; font-size: 26px; font-weight: 700; color: #fff; margin: 18px 0 6px; }
.shop-sec-s { text-align: center; font-size: 12px; color: #8d8d8d; margin-bottom: 6px; }
/* 二维码按真实比例收小 */
.sale-qr { width: 184px; margin: 0 auto; padding: 10px; }
.sale-qr svg { width: 164px; height: 164px; margin: 0 auto; }

/* 创作面板：参考缩略与输入框同一行（真实站），发送键 40 圆形 */
.cp-body.has-refs { flex-direction: row; align-items: flex-start; gap: 10px; }
.cp-body.has-refs .cp-refs { width: auto; flex: none; }
.cp-body.has-refs .composer-input { flex: 1 1 auto; min-width: 0; }
.cp-send { width: 40px; height: 40px; }
.cp-send .ic { width: 18px; height: 18px; }
.cp-foot { min-height: 40px; align-items: center; }

/* 首页 hero：按实测 104 高 / 点阵纹理 / 白色 56×52 加号 */
.new-canvas {
  height: 104px;
  border-radius: 12px;
  gap: 8px;
  background-color: #151515;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.nc-plus { width: 56px; height: 50px; border-radius: 13px; }
.nc-plus .ic { width: 22px; height: 22px; }
.nc-label { font-size: 13px; color: #d8d8d8; }

/* 能力卡：真实结构是「只有图标在深色块里」，标题与青色标签在块外 */
.cap-item {
  width: auto;
  height: auto;
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border-radius: 0;
}
.cap-item:hover { background: none; transform: none; }
.cap-ico {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  background: #262626;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eaeaea;
  margin-bottom: 10px;
  transition: background 0.14s;
}
.cap-item:hover .cap-ico { background: #323232; }
.cap-label { font-size: 13px; color: #efefef; white-space: nowrap; }
.cap-badge, .cap-badge.free {
  margin-top: 7px;
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: rgba(0, 190, 255, 0.13);
  color: #3ec9f0;
  font-size: 11px;
  font-style: normal;
}
.cap-item { box-shadow: none; transition: none; }
.cap-ico { width: 100%; max-width: 98px; height: 54px; }
.dash-section { margin-top: 40px; }
/* 面板高度对齐真实（约 216）：参考缩略 64、输入区 84、chip 26 */
.cp-ref, .cp-ref.cp-ref-add { width: 64px; height: 64px; }
.composer-input { min-height: 84px; }
.cp-chip { height: 26px; }
.composer-input { min-height: 100px; }
.cp-foot { min-height: 44px; }

/* 项目页「开始创作」卡：真实是实线细描边 + 图标与文字在卡内，卡下是说明文字 */
.pp-new-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1c1c;
  flex-direction: column;
  gap: 6px;
  color: #dcdcdc;
}
.pp-new-thumb em { font-style: normal; font-size: 12.5px; color: #d0d0d0; }
.pp-new:hover .pp-new-thumb { border-color: rgba(255, 255, 255, 0.16); background: #232323; }
.pp-new-label { font-size: 13px; color: #dedede; }

/* 资产页：磁贴 136 方形、分类计数上标 */
.as-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 136px)); gap: 12px; }
.as-tile { width: 136px; height: 136px; border-radius: 10px; }
.as-tab em { font-style: normal; font-size: 9px; vertical-align: super; margin-left: 3px; color: #8a8a8a; }
.as-date { font-size: 12.5px; color: #c2c2c2; }

/* 创作精选：tab 改胶囊（真实站是 pill，不是下划线） */
.sp-head { align-items: center; padding-top: 14px; margin-bottom: 18px; border-bottom: 0; }
.sp-tabs { gap: 4px; }
.sp-tab {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #a8a8a8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sp-tab:hover { background: rgba(255, 255, 255, 0.06); color: #eee; }
.sp-tab.is-active { background: #f1f1f1; color: #17171a; font-weight: 500; }
.sp-tab.is-active::after { display: none; }
.sp-hot { font-style: normal; font-size: 11px; }
.sp-grid { gap: 24px 20px; }
.sp-art { aspect-ratio: 16 / 9; border-radius: 10px; }

/* 活动状态胶囊：图标 + 文字 */
.act-badge { display: inline-flex; align-items: center; gap: 4px; }
.act-badge .ic { width: 11px; height: 11px; }

/* 3D-BOX：输入卡 800 宽，建议项用 ↳ 箭头 */
.bx-input { width: 800px; }
.bx-sg-ar { font-style: normal; font-size: 14px; color: #7d7d7d; line-height: 1; }

/* 空画布：真实是 127×44 的扁平卡（图标+文字，无图标底块） */
.canvas-empty { gap: 28px; }
.ce-hint { height: auto; padding: 0; font-size: 15px; gap: 10px; }
.ce-cap {
  width: 127px;
  height: 44px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 10px;
  background: #232323;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #eaeaea;
}
.ce-cap:hover { background: #2c2c2c; }
.ce-ico {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #dcdcdc;
}
.ce-ico .ic { width: 16px; height: 16px; }

/* 助手面板打开时，空画布引导整体左移，保持在不被面板遮挡的可视区居中 */
.canvas-page:has(.td-drawer:not(.hidden)) .canvas-empty { transform: translateX(-150px); }
.canvas-page:has(.td-drawer:not(.hidden)) .canvas-empty { transform: translateX(-180px); }
