*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','SF Pro Text','Helvetica Neue','Microsoft YaHei',sans-serif;background:#000;color:#f5f5f7;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

.topbar{position:fixed;top:0;left:0;right:0;height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;z-index:200;background:rgba(0,0,0,0.8);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px)}
.topbar .back{font-size:14px;color:#7c4dff;text-decoration:none;font-weight:400}
.topbar .title{font-size:14px;font-weight:600;color:#f5f5f7;position:absolute;left:50%;transform:translateX(-50%)}
.topbar .right{display:flex;align-items:center;gap:8px}
.topbar .phase-tag{font-size:12px;color:#86868b;background:#1d1d1f;padding:4px 10px;border-radius:980px}
.topbar .back-chat{font-size:12px;color:#7c4dff;background:none;border:1px solid rgba(124, 77, 255,0.3);padding:4px 12px;border-radius:980px;cursor:pointer;font-family:inherit;transition:all .2s}
.topbar .back-chat:hover{background:#7c4dff;color:#fff;border-color:#7c4dff}

.page{max-width:100%;margin:0;padding:64px 48px 120px}

.asset-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap;gap:12px}
.asset-topbar h2{font-size:20px;font-weight:600;color:#f5f5f7;letter-spacing:-0.3px}

.asset-tabs{display:flex;gap:0;background:#1d1d1f;border-radius:10px;padding:3px;margin-bottom:20px}
.asset-tab{flex:1;padding:8px 0;border:none;background:transparent;color:#86868b;font-size:13px;font-weight:500;cursor:pointer;border-radius:8px;transition:all .2s;font-family:inherit;text-align:center}
.asset-tab.active{background:rgba(124,77,255,0.18);color:#fff}

.asset-cards{display:flex;flex-direction:column;gap:24px}

.asset-card{background:#1d1d1f;border-radius:18px;overflow:hidden;transition:all .3s;border:1px solid rgba(255,255,255,0.04)}
.asset-card:hover{background:#242426}

.card-preview{width:100%;height:360px;background:#0a0a0a;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border-top:1px solid rgba(255,255,255,0.04)}
.card-preview img{width:100%;height:100%;object-fit:cover}
.card-preview .placeholder-icon{color:#1d1d1f;font-size:48px}
.card-preview .gen-status{position:absolute;bottom:8px;right:8px;font-size:11px;padding:3px 8px;border-radius:6px;background:rgba(0,0,0,0.7)}

.card-gen-bar{display:flex;align-items:center;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,0.04)}
.card-gen-bar select{padding:6px 10px;border-radius:8px;border:1px solid #38383a;background:#1d1d1f;color:#f5f5f7;font-size:12px;font-family:inherit;cursor:pointer;outline:none}
.card-gen-bar .gen-btn{flex:1;padding:11px 0;border-radius:10px;border:none;background:#7c4dff;color:#fff;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .2s;letter-spacing:0.3px}
.card-gen-bar .gen-btn:hover{background:#5e35b1}
.card-gen-bar .gen-btn:disabled{opacity:0.4;cursor:default}
.gen-status.generating{color:#ffd60a}
.gen-status.done{color:#30d158}

.card-body{padding:24px 28px 20px}
.card-id{font-size:11px;color:#7c4dff;font-weight:600;margin-bottom:6px;letter-spacing:1px;text-transform:uppercase}
.card-name{font-size:18px;font-weight:700;color:#f5f5f7;margin-bottom:10px;letter-spacing:-0.3px}
.card-desc{font-size:14px;color:#a1a1a6;line-height:1.7;margin-bottom:16px}

.card-prompt-group{margin-bottom:8px}
.card-prompt-label{font-size:11px;color:#48484a;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;font-weight:500;letter-spacing:0.5px}
.card-prompt-label .copy-btn{font-size:11px;color:#7c4dff;cursor:pointer;background:none;border:none;font-family:inherit}
.card-prompt{width:100%;padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,0.06);background:#0d0d0f;color:#d1d1d6;font-size:13px;line-height:1.6;font-family:inherit;resize:vertical;min-height:72px;outline:none;transition:border-color .2s}
.card-prompt:focus{border-color:#48484a}
.card-prompt-cn{width:100%;padding:10px 14px;border-radius:10px;border:1px solid rgba(255,255,255,0.04);background:#0d0d0f;color:#86868b;font-size:13px;line-height:1.6;font-family:inherit;resize:none;min-height:48px;outline:none}

.card-ref{font-size:11px;color:#48484a;margin-top:8px;line-height:1.4}
.card-ref-upload{margin-top:6px}
.card-ref-upload input{display:none}
.card-ref-upload label{font-size:11px;color:#7c4dff;cursor:pointer}

.card-ai-bar{margin-top:10px;border-top:1px solid #1d1d1f;padding-top:10px;display:flex;gap:6px;align-items:flex-end}
.card-ai-input{flex:1;padding:8px 10px;border-radius:8px;border:1px solid #2d2d2f;background:#0a0a0a;color:#f5f5f7;font-size:12px;outline:none;font-family:inherit;resize:none;min-height:34px;max-height:60px;line-height:1.4;transition:border-color .2s}
.card-ai-input:focus{border-color:#48484a}
.card-ai-input::placeholder{color:#48484a}
.card-ai-send{width:30px;height:30px;border-radius:50%;border:none;background:#7c4dff;color:#fff;font-size:14px;cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:opacity .2s}
.card-ai-send:disabled{opacity:0.3;cursor:default}
.card-ai-reply{margin-top:6px;padding:8px 10px;border-radius:8px;background:#1a1a2e;font-size:12px;color:#a1a1a6;line-height:1.5;display:none}
.card-ai-reply.show{display:block}

.bottom-bar{position:fixed;bottom:0;left:0;right:0;background:rgba(0,0,0,0.9);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid #1d1d1f;padding:12px 24px;z-index:100}
.bottom-inner{max-width:100%;margin:0;display:flex;gap:10px;align-items:center;justify-content:flex-end}
.confirm-btn{padding:10px 24px;border-radius:10px;border:none;background:#30d158;color:#fff;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit;flex-shrink:0}
.confirm-btn:hover{background:#28a745}
.confirm-btn:disabled{opacity:0.4;cursor:default}

.empty{text-align:center;padding:80px 0;color:#48484a;font-size:15px}

/* ======== 生成中 loading 面板 ======== */
.gen-loading-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:80px 20px 60px;min-height:360px;text-align:center}
.gen-spinner{width:48px;height:48px;border:3px solid #1d1d1f;border-top-color:#7c4dff;border-radius:50%;animation:genSpin 1s linear infinite}
@keyframes genSpin{to{transform:rotate(360deg)}}
.gen-title{font-size:16px;font-weight:600;color:#f5f5f7;letter-spacing:.3px}
.gen-sub{font-size:13px;color:#86868b;line-height:1.6;max-width:460px;transition:opacity .3s}
.gen-timer-row{display:flex;align-items:center;gap:16px;margin-top:4px}
.gen-timer{font-family:'SF Mono','Monaco',Consolas,monospace;font-size:20px;font-weight:500;color:#7c4dff;letter-spacing:1.5px}
.gen-meta{font-size:12px;color:#48484a;background:#1a1a1e;padding:4px 10px;border-radius:8px}
.gen-hint{font-size:11px;color:#48484a;margin-top:8px}

/* ================================================================ */
/*  紧凑版资产卡 + MJ 2x2 切片 + 主图/缩略图 strip + 弹窗放大（追加）  */
/* ================================================================ */

/* 整体收紧 */
.asset-card { border-radius: 14px; }
.card-body { padding: 16px 20px 14px; }
.asset-cards { gap: 18px; }

/* header：id + 类型 + 名字 */
.card-id { font-size: 12px; color: #86868b; margin-bottom: 2px; }
.card-name { font-size: 16px; font-weight: 600; color: #f5f5f7; margin-bottom: 2px; }
.card-desc { font-size: 12px; color: #86868b; line-height: 1.5; margin-bottom: 12px; }

/* 两列 prompt */
.card-prompts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
@media (max-width: 900px) { .card-prompts-row { grid-template-columns: 1fr; } }
.prompt-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prompt-col label { font-size: 11px; color: #86868b; display: flex; justify-content: space-between; align-items: center; }
.prompt-col .copy-btn { background: transparent; border: none; color: #7c4dff; font-size: 11px; cursor: pointer; padding: 0 }
.prompt-col textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06); background: #0d0d0f;
  color: #d1d1d6; font-size: 12px; line-height: 1.55; font-family: inherit;
  resize: vertical; min-height: 60px; max-height: 160px; outline: none;
}
.prompt-col textarea.cn { color: #86868b; }

.card-ref { font-size: 11px; color: #6e6e73; margin: 6px 0 10px; line-height: 1.5; }

/* AI 改提示 + 生成按钮 同一行 */
.card-action-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 12px;
  padding: 8px; background: rgba(255,255,255,0.02); border-radius: 10px;
}
.card-action-row .ai-input {
  flex: 1; padding: 8px 10px; border-radius: 8px;
  border: 1px solid #2d2d2f; background: #0a0a0a; color: #f5f5f7;
  font-size: 12px; outline: none; font-family: inherit; min-height: 32px;
}
.card-action-row .ai-send {
  background: #2d2d2f; color: #f5f5f7; border: none; border-radius: 8px;
  padding: 0 10px; height: 32px; cursor: pointer; font-size: 14px;
}
.card-action-row select {
  padding: 0 8px; height: 32px; border-radius: 8px; border: 1px solid #38383a;
  background: #1d1d1f; color: #f5f5f7; font-size: 12px; cursor: pointer; outline: none;
}
.card-action-row .gen-btn {
  padding: 0 18px; height: 32px; border-radius: 8px; border: none;
  background: #7c4dff; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer;
}
.card-action-row .gen-btn:disabled { background: #3a3a3c; cursor: wait; opacity: 0.8; }

/* ================ 图片区（v3：扁平单行 + 主图变大） =============== */
/* 所有图（grid 切片 + 本地图 + 上传按钮 + 再生按钮）共用 .card-images 一行
 * 当前选中图加 .is-main → 大尺寸，order:-1 永远在最左
 */

.card-images {
  display: flex;
  align-items: flex-start;          /* 顶部对齐：主图大、缩略图小 */
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 4px;
}

/* 占位（没图时） */
.main-image-empty {
  width: min(280px, 100%);
  height: 140px;
  background: #0d0d0f;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #48484a; font-size: 12px; text-align: center; padding: 0 16px;
  line-height: 1.6;
  flex-shrink: 0;
}

/* 普通缩略图：72x72 */
.thumb {
  width: 72px; height: 72px;
  background-size: 200% 200%;
  background-repeat: no-repeat;
  background-color: #0d0d0f;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.thumb:hover { border-color: rgba(124, 77, 255,0.5); transform: scale(1.04); }
.thumb.thumb-0 { background-position: 0% 0%; }
.thumb.thumb-1 { background-position: 100% 0%; }
.thumb.thumb-2 { background-position: 0% 100%; }
.thumb.thumb-3 { background-position: 100% 100%; }
.thumb.local { background-size: cover; background-position: center; }

/* 主图：当前选中 → 变大 + 永远靠左 */
.thumb.is-main {
  width: 200px;
  height: auto;
  /* aspect-ratio 由 js onload 时按真实自然比例设置；后备 4/5 防止图未加载时太扁 */
  aspect-ratio: 4 / 5;
  border-color: #7c4dff;
  box-shadow: 0 0 0 2px rgba(124, 77, 255,0.25);
  cursor: zoom-in;
  order: -1;            /* 关键：永远在最左 */
  transform: none;
}
.thumb.is-main:hover { transform: none; border-color: #7c4dff; }
.thumb.is-main.local { background-size: cover; }

/* 普通缩略图小标签（U1/U2/本地） */
.thumb .thumb-tag {
  position: absolute; bottom: 2px; left: 2px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 3px;
  pointer-events: none;
  letter-spacing: 0.3px;
  font-weight: 500;
}
/* 主图徽标（"主图 · U1"） */
.thumb .main-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 5px;
  pointer-events: none;
  letter-spacing: 0.3px;
  font-weight: 500;
  z-index: 2;
}
.thumb .zoom-btn {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: rgba(0,0,0,0.6); color: #fff; border-radius: 4px;
  font-size: 10px; opacity: 0; transition: opacity 0.15s;
  cursor: pointer;
}
.thumb:hover .zoom-btn { opacity: 1; }

/* 加号 / 再生按钮 */
.thumb-add {
  width: 72px; height: 72px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: #86868b;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  flex-shrink: 0;
  padding: 0;
}
.thumb-add:hover:not([disabled]) { border-color: #7c4dff; color: #7c4dff; background: rgba(124, 77, 255,0.05); }
.thumb-add input[type=file] { display: none; }
.thumb-add .thumb-add-icon { font-size: 22px; line-height: 1; }
.thumb-add .thumb-add-label { font-size: 10px; letter-spacing: 0.3px; }

.thumb-add.regen {
  border-color: rgba(167,139,250,0.4);
  color: #a78bfa;
  background: rgba(167,139,250,0.05);
}
.thumb-add.regen:hover:not([disabled]) {
  border-color: #a78bfa;
  background: rgba(167,139,250,0.12);
}
.thumb-add[disabled] { opacity: 0.5; cursor: wait; }

.gen-status {
  display: inline-block; font-size: 11px;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.6); color: #fff;
  margin-left: 8px;
}
.gen-status.generating { background: #a78bfa; }
.gen-status.done { background: #30d158; }
.gen-status.failed { background: #ff453a; }

/* ================ 弹窗放大 =============== */
.image-modal-bg {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
  animation: fadeIn 0.15s;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.image-modal-inner {
  position: relative; max-width: 95vw; max-height: 95vh;
}
.image-modal-inner .big-image-frame {
  max-width: 95vw;
  max-height: 90vh;
  background-color: #0d0d0f;
  border-radius: 12px;
  overflow: hidden;
  display: inline-block;
}
.image-modal-inner .big-image-slice {
  /* aspect-ratio 由 js 在 onload 时设置 */
  aspect-ratio: 4 / 5;
  max-height: 90vh;
  max-width: 95vw;
  height: 90vh;
  background-size: 200% 200%;
  background-repeat: no-repeat;
  background-color: #0d0d0f;
}
.image-modal-inner .big-image-slice.thumb-0 { background-position: 0% 0%; }
.image-modal-inner .big-image-slice.thumb-1 { background-position: 100% 0%; }
.image-modal-inner .big-image-slice.thumb-2 { background-position: 0% 100%; }
.image-modal-inner .big-image-slice.thumb-3 { background-position: 100% 100%; }
.image-modal-inner img.big-image {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #0d0d0f;
}
.image-modal-close {
  position: absolute; top: -12px; right: -12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: #000; border: none;
  font-size: 18px; cursor: pointer; line-height: 32px; text-align: center;
}



/* ===== 2026-05-07: 资产页轻量视觉升级 ===== */
.page{
  max-width: 1480px;
  margin: 0 auto;
  padding: 72px 28px 126px;
}
.asset-topbar h2{
  font-size: 26px;
  letter-spacing: -0.5px;
  text-shadow: 0 6px 18px rgba(124,77,255,0.25);
}
.asset-tabs-wrap{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 22px;
}
.canvas-sync-btn{
  width: 100%;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(124,77,255,0.45);
  background: rgba(124,77,255,0.08);
  color: #cbb8ff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all .2s;
}
.canvas-sync-btn:hover{
  background: rgba(124,77,255,0.16);
  border-color: rgba(124,77,255,0.7);
  color: #f2edff;
}
.asset-card{
  background: linear-gradient(180deg, rgba(31,31,37,0.98), rgba(23,23,28,0.98));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
}
.asset-card:hover{
  border-color: rgba(124,77,255,0.28);
  box-shadow: 0 16px 42px rgba(0,0,0,0.4);
}

/* ============== tab 两行布局（画布 + 分类） ============== */
.asset-tabs-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.canvas-entry-btn {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
}
.canvas-entry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}
.asset-tabs-wrap .asset-tabs {
  margin-bottom: 0;
}


/* ===== 2026-05-07: 参照画布风格进一步统一（sync2） ===== */
body{
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(124,77,255,.16), transparent 62%),
    radial-gradient(980px 520px at 100% 0%, rgba(34,211,238,.10), transparent 60%),
    #0b0d12;
}
body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity:.22;
  z-index:-1;
}
.topbar{
  background:rgba(10,12,18,.74);
  border-bottom:1px solid rgba(147,197,253,.16);
}
.page{
  max-width: 1560px;
  padding: 74px 24px 126px;
}
.asset-tabs-wrap{
  background: linear-gradient(180deg, rgba(20,24,33,.88), rgba(16,19,27,.82));
  border: 1px solid rgba(129,140,248,.25);
  box-shadow: 0 20px 38px rgba(2,6,23,.42), inset 0 1px 0 rgba(255,255,255,.06);
}
.canvas-entry-btn{
  background: linear-gradient(135deg, #5b67ff 0%, #8c5cff 50%, #33d4ff 100%);
}
.canvas-sync-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px;
}
.canvas-sync-btn,
.canvas-push-btn{
  width: 100%;
  padding: 10px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: all .2s;
}
.canvas-sync-btn{
  border: 1px solid rgba(124,77,255,.45);
  background: rgba(124,77,255,.10);
  color:#e9deff;
}
.canvas-sync-btn:hover{
  background: rgba(124,77,255,.2);
}
.canvas-push-btn{
  border:1px solid rgba(34,211,238,.4);
  background: rgba(34,211,238,.1);
  color:#c7f7ff;
}
.canvas-push-btn:hover{
  background: rgba(34,211,238,.2);
}
.asset-card{
  background: linear-gradient(180deg, rgba(18,22,30,.98), rgba(14,17,25,.98));
  border: 1px solid rgba(148,163,184,.2);
  box-shadow: 0 18px 42px rgba(2,6,23,.48), inset 0 1px 0 rgba(255,255,255,.04);
}
.asset-card:hover{
  border-color: rgba(99,102,241,.45);
  transform: translateY(-1px);
}


/* ===== 2026-05-07: 以画布为准（sync3） ===== */
.canvas-sync-btn{
  width: 100%;
}


/* ===== 2026-05-07: 比例与缩略图修复（sync4） ===== */
.thumb.thumb-single{
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0f1420;
}
.thumb.is-main.thumb-single{
  background-size: cover;
  background-position: center;
}


/* ===== 2026-05-07: 故事板预留位与自动同步（sync5） ===== */
.thumb.thumb-single{
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0f1420;
}
.thumb.is-main.thumb-single{
  background-size: contain;
  background-position: center;
}
.thumb.thumb-placeholder{
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px dashed rgba(148,163,184,.35);
  background: rgba(15,20,32,.55);
  position: relative;
  flex-shrink: 0;
}
.thumb.thumb-placeholder .thumb-tag{
  opacity: .75;
}


/* ===== 2026-05-07: 长条故事板布局（sync6） ===== */
.storyboard-card{
  border-radius: 14px;
}
.storyboard-body{
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.story-row-top{
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-chip{
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(148,163,184,.25);
  color: #dbe7ff;
  background: rgba(30,41,59,.55);
}
.story-chip-id{
  color: #c7d2fe;
  border-color: rgba(129,140,248,.45);
}
.story-chip-type{
  color: #bae6fd;
  border-color: rgba(56,189,248,.4);
}
.story-title{
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}
.card-images{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 86px;
}
.thumb{
  width: 72px;
  height: 72px;
}
.thumb.is-main{
  width: 120px;
  aspect-ratio: 3 / 4;
}
.thumb.thumb-placeholder{
  width: 72px;
  height: 72px;
}
.story-row-bottom{
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 10px;
  align-items: start;
}
.story-task-title{
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: 12px;
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.35);
  background: rgba(30,64,175,.15);
  border-radius: 8px;
  padding: 8px 10px;
}
.story-task-desc{
  grid-column: 2;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.5;
}
.story-task-text{
  grid-column: 2;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}


/* ===== 2026-05-07: 参考布局重构（sync7） ===== */
.bottom-bar{display:none;}
.asset-hero{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:16px;
  margin-bottom:14px;
  padding:18px 18px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(17,24,39,.8), rgba(15,23,42,.76));
}
.asset-hero-text h2{margin:0 0 6px;font-size:38px;}
.asset-hero-sub{margin:0;color:#94a3b8;font-size:13px;line-height:1.6;}
.asset-hero-banner{
  border-radius:12px;
  background:
    radial-gradient(200px 120px at 60% 40%, rgba(168,85,247,.35), transparent 70%),
    radial-gradient(260px 160px at 30% 60%, rgba(59,130,246,.28), transparent 72%),
    #0f172a;
}
.asset-center-controls{padding:12px 12px 14px;margin-bottom:16px;}
.asset-top-actions{display:grid;grid-template-columns: 1fr 1fr;gap:8px;margin-bottom:10px;}
.asset-tools{display:grid;grid-template-columns: 1fr 130px;gap:8px;margin-top:10px;}
.asset-search-input{
  height:36px;border-radius:10px;border:1px solid rgba(148,163,184,.3);
  background:#0b1220;color:#e2e8f0;padding:0 12px;font-size:13px;outline:none;
}
.asset-search-input:focus{border-color:rgba(99,102,241,.65);}
.asset-filter-btn{
  height:36px;border-radius:10px;border:1px solid rgba(99,102,241,.45);
  background:rgba(99,102,241,.16);color:#dbeafe;cursor:pointer;font-size:12px;
}
.asset-row-card{
  display:grid;
  grid-template-columns: 124px 1fr 320px;
  gap:14px;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.22);
  background:linear-gradient(180deg, rgba(17,24,39,.9), rgba(15,23,42,.86));
}
.asset-row-main{cursor:zoom-in;}
.asset-main-img{
  width:124px;height:164px;border-radius:10px;background-size:cover;background-position:center;
  border:1px solid rgba(148,163,184,.25);
}
.asset-main-empty{
  width:124px;height:164px;border-radius:10px;border:1px dashed rgba(148,163,184,.45);
  display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.6;
  color:#94a3b8;background:rgba(15,23,42,.7);font-size:12px;
}
.asset-row-center{min-width:0;}
.asset-row-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap;}
.badge-id,.badge-type{
  height:22px;display:inline-flex;align-items:center;padding:0 10px;border-radius:999px;font-size:12px;
}
.badge-id{background:rgba(99,102,241,.2);border:1px solid rgba(99,102,241,.4);color:#c7d2fe;}
.badge-type{background:rgba(56,189,248,.18);border:1px solid rgba(56,189,248,.35);color:#bae6fd;}
.asset-name{font-size:26px;font-weight:700;color:#f8fafc;}
.asset-row-meta{font-size:12px;color:#94a3b8;margin-bottom:8px;}
.asset-row-intro-title{font-size:13px;color:#dbeafe;margin-bottom:4px;}
.asset-row-intro{font-size:12px;color:#cbd5e1;line-height:1.6;max-height:74px;overflow:hidden;}
.asset-row-right{display:flex;flex-direction:column;justify-content:space-between;gap:10px;}
.asset-thumb-strip{display:flex;align-items:center;gap:8px;justify-content:flex-end;}
.asset-mini-thumb{
  width:64px;height:84px;border-radius:8px;border:1px solid rgba(148,163,184,.28);
  background-size:cover;background-position:center;cursor:pointer;
}
.asset-mini-thumb.empty{
  display:flex;align-items:center;justify-content:center;color:#94a3b8;
  background:rgba(15,23,42,.72);font-size:11px;
}
.asset-mini-more{
  width:64px;height:84px;border-radius:8px;border:1px solid rgba(148,163,184,.28);
  display:flex;align-items:center;justify-content:center;color:#e2e8f0;background:rgba(30,41,59,.65);
}
.asset-row-actions{display:flex;justify-content:flex-end;gap:8px;}
.asset-btn{
  height:34px;border:none;border-radius:10px;padding:0 16px;cursor:pointer;font-size:13px;
}
.asset-btn.upload{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;}
.asset-btn.icon{width:34px;padding:0;background:#111827;color:#e2e8f0;border:1px solid rgba(148,163,184,.3);}

@media (max-width: 1200px){
  .asset-hero{grid-template-columns:1fr;}
  .asset-hero-banner{height:120px;}
  .asset-row-card{grid-template-columns: 108px 1fr;grid-template-areas:'main center' 'right right';}
  .asset-row-main{grid-area:main;}
  .asset-row-center{grid-area:center;}
  .asset-row-right{grid-area:right;align-items:flex-end;}
}
@media (max-width: 780px){
  .page{padding:66px 10px 26px;}
  .asset-name{font-size:18px;}
  .asset-top-actions{grid-template-columns:1fr;}
  .asset-tools{grid-template-columns:1fr;}
  .asset-row-card{grid-template-columns:1fr;gap:10px;}
  .asset-row-main,.asset-main-img,.asset-main-empty{width:100%;height:220px;}
  .asset-thumb-strip{justify-content:flex-start;overflow:auto;padding-bottom:4px;}
}


/* ===== 2026-05-07: 严格参考图重构（sync8） ===== */
.asset-center-page .topbar{display:none !important;}
.asset-center-page .bottom-bar{display:none !important;}
.asset-center-page .ac-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns: 88px 1fr;
  background:#070b14;
}
.asset-center-page .ac-sidebar{
  border-right:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, #0a1020, #070b14);
  display:flex;flex-direction:column;align-items:center;
  padding:14px 10px;gap:12px;
}
.asset-center-page .ac-logo{
  width:34px;height:34px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:#a78bfa;background:rgba(99,102,241,.2);font-weight:700;
}
.asset-center-page .ac-step{
  width:100%;border:none;background:transparent;color:#64748b;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 0;border-radius:10px;
}
.asset-center-page .ac-step span{
  width:24px;height:24px;border-radius:999px;border:1px solid rgba(148,163,184,.35);
  display:flex;align-items:center;justify-content:center;font-size:12px;
}
.asset-center-page .ac-step em{font-style:normal;font-size:12px;line-height:1.2;text-align:center;}
.asset-center-page .ac-step.active{
  color:#c4b5fd;background:rgba(99,102,241,.18);
}
.asset-center-page .ac-step.active span{border-color:rgba(129,140,248,.8);color:#e9d5ff;}

.asset-center-page .ac-main{min-width:0;}
.asset-center-page .ac-topbar{
  height:56px;display:flex;align-items:center;justify-content:space-between;
  padding:0 18px;border-bottom:1px solid rgba(148,163,184,.16);
  background:rgba(10,14,24,.86);
}
.asset-center-page .ac-top-title{font-size:16px;color:#e2e8f0;font-weight:600;}
.asset-center-page .ac-top-right{display:flex;align-items:center;gap:8px;}
.asset-center-page .ac-credits{
  min-width:92px;height:28px;border-radius:999px;padding:0 10px;
  display:flex;align-items:center;justify-content:center;
  color:#facc15;background:rgba(250,204,21,.12);border:1px solid rgba(250,204,21,.35);
  font-size:12px;cursor:pointer;
}
.asset-center-page .ac-link-btn{
  height:28px;padding:0 12px;border-radius:999px;border:1px solid rgba(148,163,184,.35);
  background:#111827;color:#cbd5e1;cursor:pointer;font-size:12px;
}
.asset-center-page .ac-link-btn.active{
  color:#e9d5ff;border-color:rgba(167,139,250,.7);background:rgba(99,102,241,.24);
}

.asset-center-page .page{padding:16px 16px 20px;max-width:none;}
.asset-center-page .asset-hero{
  grid-template-columns: 1fr 360px;
  padding:16px;border-radius:12px;margin-bottom:12px;
}
.asset-center-page .asset-hero-text h2{font-size:42px;margin:0 0 6px;}
.asset-center-page .asset-hero-sub{font-size:13px;}
.asset-center-page .asset-center-controls{padding:10px;border-radius:12px;margin-bottom:12px;}

.asset-center-page .asset-row-card{
  grid-template-columns: 96px 1fr 280px;
  gap:12px;padding:10px;border-radius:12px;
}
.asset-center-page .asset-main-img{width:96px;height:132px;}
.asset-center-page .asset-main-empty{width:96px;height:132px;}
.asset-center-page .asset-name{font-size:30px;}
.asset-center-page .asset-row-meta{font-size:11px;}
.asset-center-page .asset-row-intro-title{font-size:13px;}
.asset-center-page .asset-row-intro{font-size:12px;}
.asset-center-page .asset-mini-thumb{width:54px;height:72px;}
.asset-center-page .asset-mini-more{width:54px;height:72px;}
.asset-center-page .asset-mini-thumb.crop{filter:saturate(.95) contrast(1.02);}
.asset-center-page .asset-mini-thumb.crop-v1{background-position: left center;}
.asset-center-page .asset-mini-thumb.crop-v2{background-position: center center;}
.asset-center-page .asset-mini-thumb.crop-v3{background-position: right center;}

@media (max-width: 1280px){
  .asset-center-page .asset-row-card{grid-template-columns:96px 1fr;}
  .asset-center-page .asset-row-right{grid-column:1 / -1;align-items:flex-end;}
}
@media (max-width: 900px){
  .asset-center-page .ac-shell{grid-template-columns:1fr;}
  .asset-center-page .ac-sidebar{display:none;}
  .asset-center-page .asset-hero{grid-template-columns:1fr;}
  .asset-center-page .asset-row-card{grid-template-columns:1fr;}
  .asset-center-page .asset-row-main,.asset-center-page .asset-main-img,.asset-center-page .asset-main-empty{width:100%;height:220px;}
  .asset-center-page .asset-thumb-strip{justify-content:flex-start;overflow:auto;padding-bottom:4px;}
}


/* ===== 2026-05-07: 去掉AI对话并恢复右下角按钮（sync9） ===== */
.asset-center-page .page{padding-bottom:92px;}
.ac-fab-actions{
  position:fixed;
  right:18px;
  bottom:14px;
  display:flex;
  gap:10px;
  z-index:999;
}
.ac-fab-btn{
  height:36px;
  border:none;
  border-radius:10px;
  padding:0 16px;
  font-size:13px;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(2,6,23,.35);
}
.ac-fab-btn.purple{
  color:#fff;
  background:linear-gradient(135deg,#6d4aff,#8b5cf6);
}
.ac-fab-btn.green{
  color:#fff;
  background:linear-gradient(135deg,#22c55e,#16a34a);
}
.ac-fab-btn.dark{
  color:#e2e8f0;
  background:#111827;
  border:1px solid rgba(148,163,184,.35);
}
@media (max-width: 900px){
  .ac-fab-actions{
    left:10px; right:10px; bottom:10px;
    display:grid; grid-template-columns:1fr;
    gap:8px;
  }
  .ac-fab-btn{width:100%;}
}


/* ===== 2026-05-07: 顶部区域细节对齐（sync10） ===== */
.asset-center-page .ac-shell{
  grid-template-columns: 84px 1fr;
}
.asset-center-page .ac-sidebar{
  position:relative;
  padding-top:12px;
}
.asset-center-page .ac-sidebar::after{
  content:'';
  position:absolute;
  top:56px;
  bottom:18px;
  left:42px;
  width:1px;
  background:linear-gradient(180deg, rgba(99,102,241,.0), rgba(99,102,241,.35), rgba(99,102,241,.0));
}
.asset-center-page .ac-step{
  position:relative;
  z-index:1;
  gap:4px;
  padding:10px 0;
}
.asset-center-page .ac-step em{
  color:#7c879d;
}
.asset-center-page .ac-step.active em{
  color:#c4b5fd;
}

.asset-center-page .ac-topbar{
  height:50px;
  padding:0 16px;
}
.asset-center-page .ac-top-title{
  font-size:15px;
  letter-spacing:.2px;
}
.asset-center-page .ac-link-btn{
  height:26px;
  padding:0 10px;
  font-size:11px;
}
.asset-center-page .ac-credits{
  height:26px;
  min-width:88px;
  font-size:11px;
}

.asset-center-page .page{
  padding:12px 14px 20px;
}
.asset-center-page .asset-hero{
  grid-template-columns: 1fr 360px;
  min-height:132px;
  padding:14px 16px;
  border-radius:12px;
  margin-bottom:10px;
}
.asset-center-page .asset-hero-text h2{
  font-size:40px;
  line-height:1.08;
  margin:2px 0 8px;
}
.asset-center-page .asset-hero-sub{
  font-size:13px;
  color:#8e9ab0;
}
.asset-center-page .asset-hero-banner{
  border-radius:10px;
}

.asset-center-page .asset-center-controls{
  border-radius:12px;
  padding:10px;
}
.asset-center-page .asset-top-actions{
  gap:8px;
  margin-bottom:8px;
}
.asset-center-page .canvas-entry-btn,
.asset-center-page .canvas-sync-btn{
  height:38px;
  font-size:13px;
  border-radius:10px;
}
.asset-center-page .asset-tabs{
  margin-bottom:8px;
}
.asset-center-page .asset-tab{
  height:34px;
  font-size:13px;
}
.asset-center-page .asset-tools{
  grid-template-columns: 1fr 86px;
  margin-top:0;
}
.asset-center-page .asset-search-input{
  height:34px;
  border-radius:9px;
  font-size:12px;
}
.asset-center-page .asset-filter-btn{
  height:34px;
  border-radius:9px;
  font-size:12px;
  position:relative;
}
.asset-center-page .asset-filter-btn::before{
  content:'⛛';
  font-size:10px;
  margin-right:4px;
}
.asset-center-page .asset-filter-btn[data-state='has_image']{
  border-color:rgba(34,197,94,.6);
  background:rgba(34,197,94,.14);
}
.asset-center-page .asset-filter-btn[data-state='empty']{
  border-color:rgba(249,115,22,.55);
  background:rgba(249,115,22,.14);
}


/* ===== 2026-05-07: 用户强制要求：顶部图与右下角按钮（sync11） ===== */
.asset-center-page .asset-hero-banner{
  background-image:url('images/asset-hero-map-sync11.png') !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}
.ac-fab-actions{
  right:18px;
  bottom:14px;
}
.ac-fab-actions .ac-fab-btn{
  min-width:118px;
}


/* ===== 2026-05-07: 严格按参考图修正顶部与缩略图（sync12） ===== */
.asset-center-page .page{
  padding:0 30px 88px;
  position:relative;
  background:
    linear-gradient(90deg, rgba(7,11,20,.88) 0%, rgba(7,11,20,.66) 34%, rgba(7,11,20,.30) 62%, rgba(7,11,20,.16) 100%),
    url('../images/asset-hero-map-sync12.png') top center / 100% 300px no-repeat;
}
.asset-center-page .asset-hero{
  position:relative;
  display:block;
  min-height:172px;
  padding:28px 18px 10px;
  margin:0;
  border:none;
  border-radius:0;
  background:transparent !important;
  box-shadow:none;
  overflow:visible;
}
.asset-center-page .asset-hero::after{
  display:none;
}
.asset-center-page .asset-hero-text{
  position:relative;
  z-index:1;
  max-width:620px;
  padding-top:0;
}
.asset-center-page .asset-hero-text h2{
  font-size:52px;
  line-height:1.1;
  margin:0 0 10px;
  letter-spacing:-.4px;
}
.asset-center-page .asset-hero-sub{
  font-size:13px;
  line-height:1.5;
  color:#93a1b8;
}
.asset-center-page .asset-hero-banner{
  display:none !important;
}
.asset-center-page .asset-center-controls{
  padding:0 0 14px;
  margin:0 0 12px;
  border:none;
  border-radius:0;
  background:transparent !important;
  box-shadow:none !important;
  border-bottom:none;
}
.asset-center-page .asset-top-actions{
  display:none !important;
}
.asset-center-page .asset-tabs{
  width:430px;
  max-width:100%;
  height:44px;
  padding:4px;
  margin:0 0 16px;
  border-radius:4px;
  background:rgba(20,27,42,.86);
}
.asset-center-page .asset-tab{
  height:36px;
  border-radius:3px;
  font-size:13px;
  color:#a9b4c8;
}
.asset-center-page .asset-tab.active{
  background:#332a83;
  color:#fff;
}
.asset-center-page .asset-tools{
  width:360px;
  max-width:100%;
  grid-template-columns: 1fr 84px;
  gap:10px;
}
.asset-center-page .asset-search-input{
  height:34px;
  border-radius:6px;
  background:#0b111e;
  border:1px solid rgba(148,163,184,.14);
}
.asset-center-page .asset-filter-btn{
  height:34px;
  border-radius:6px;
  background:#171f31;
  border:1px solid rgba(148,163,184,.16);
  color:#d5dbea;
}
.asset-center-page .asset-mini-thumb.empty{
  background:rgba(22,29,43,.78);
  border:1px solid rgba(148,163,184,.18);
  color:#596276;
}
.asset-center-page .asset-mini-thumb.crop,
.asset-center-page .asset-mini-thumb.crop-v1,
.asset-center-page .asset-mini-thumb.crop-v2,
.asset-center-page .asset-mini-thumb.crop-v3{
  background-image:none !important;
}
.asset-btn.icon.download{
  width:34px;
  height:34px;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.asset-btn.icon.download:hover{
  background:rgba(148,163,184,.08);
}
.download-icon{
  width:16px;
  height:16px;
  position:relative;
  display:inline-block;
}
.download-icon::before{
  content:'';
  position:absolute;
  left:7px;
  top:2px;
  width:2px;
  height:8px;
  background:#94a3b8;
  border-radius:2px;
}
.download-icon::after{
  content:'';
  position:absolute;
  left:3px;
  top:7px;
  width:8px;
  height:8px;
  border-left:2px solid #94a3b8;
  border-bottom:2px solid #94a3b8;
  transform:rotate(-45deg);
}
@media (max-width: 900px){
  .asset-center-page .page{
    padding:0 14px 92px;
    background-size:100% 248px;
  }
  .asset-center-page .asset-hero{
    min-height:156px;
    padding:20px 10px 8px;
  }
  .asset-center-page .asset-hero-text h2{font-size:36px;}
  .asset-center-page .asset-tools{width:100%;grid-template-columns:1fr 84px;}
}

/* ===== 2026-05-08: 顶部右侧对齐图1（sync15） ===== */
.asset-center-page .ac-topbar{
  height:56px;
  padding:0 20px;
}
.asset-center-page .ac-top-right{
  display:flex;
  align-items:center;
  gap:12px;
}
.asset-center-page .ac-credits{
  height:36px;
  min-width:156px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  border:1px solid rgba(250,204,21,.45);
  background:rgba(17,20,28,.92);
  color:#facc15;
  font-size:14px;
  font-weight:700;
  letter-spacing:.2px;
  white-space:nowrap;
  box-shadow:inset 0 0 0 1px rgba(250,204,21,.08), 0 0 14px rgba(250,204,21,.16);
}
.asset-center-page .ac-credits::before{
  content:'';
  width:10px;
  height:10px;
  border-radius:50%;
  background:#facc15;
  box-shadow:0 0 10px rgba(250,204,21,.65);
  flex:none;
}
.asset-center-page .ac-link-btn.ac-user-btn{
  height:36px;
  min-width:116px;
  padding:0 22px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,#5b5dff 0%, #8650ff 100%);
  color:#eef1ff;
  font-size:14px;
  font-weight:700;
  letter-spacing:.2px;
  box-shadow:0 8px 20px rgba(108,73,255,.35);
}
.asset-center-page .ac-link-btn.ac-user-btn:hover{
  filter:brightness(1.06);
}

@media (max-width: 900px){
  .asset-center-page .ac-topbar{
    height:50px;
    padding:0 12px;
  }
  .asset-center-page .ac-top-right{
    gap:8px;
  }
  .asset-center-page .ac-credits{
    height:30px;
    min-width:128px;
    padding:0 10px;
    font-size:12px;
  }
  .asset-center-page .ac-credits::before{
    width:8px;
    height:8px;
  }
  .asset-center-page .ac-link-btn.ac-user-btn{
    height:30px;
    min-width:88px;
    padding:0 14px;
    border-radius:12px;
    font-size:12px;
  }
}

/* ===== 2026-05-08: 顶部标题一排对齐（sync17） ===== */
.asset-center-page .asset-hero{
  padding:22px 20px 12px;
}
.asset-center-page .asset-hero-text{
  max-width:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.asset-center-page .asset-hero-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:54px;
}
.asset-center-page .asset-hero-text h2{
  flex:1;
  min-width:0;
  margin:0;
  font-size:34px;
  font-weight:700;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.asset-center-page .asset-hero-sub{
  margin:0;
  max-width:68%;
}
.asset-center-page .asset-hero-canvas-tag{
  position:static;
  transform:none;
  width:290px;
  height:54px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.38);
  background:rgba(7,11,20,.2);
  color:#dbeafe;
  font-size:22px;
  font-weight:700;
  letter-spacing:.3px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  transition:all .18s ease;
}
.asset-center-page .asset-hero-canvas-tag:hover{
  border-color:rgba(167,139,250,.8);
  background:rgba(49,46,129,.28);
  color:#f5f3ff;
}

@media (max-width: 1280px){
  .asset-center-page .asset-hero-text h2{
    font-size:30px;
  }
  .asset-center-page .asset-hero-canvas-tag{
    width:250px;
    height:50px;
    font-size:18px;
  }
}
@media (max-width: 900px){
  .asset-center-page .asset-hero-text h2{
    font-size:22px;
  }
  .asset-center-page .asset-hero-sub{
    max-width:100%;
  }
  .asset-center-page .asset-hero-canvas-tag{
    display:none;
  }
}
