/* AI 效果图（2026-11-28）—— 配色沿用 ERP 主题变量（--card/--line/--text/--muted/--bg），
   深浅主题都跟随；绿色主色取 ERP 白底主题的 #443A78。 */

.ar-wrap { max-width: 1080px; margin: 0 auto; }

.ar-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.ar-head h2 { margin: 0; font-size: 20px; color: var(--text, #1c2430); }
.ar-sub { font-size: 12px; font-weight: normal; color: var(--muted, #7a8391); margin-left: 8px; }
.ar-health { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--card, #fff); border: 1px solid var(--line, #e3e8ee); color: var(--muted, #7a8391); }
.ar-bad { color: var(--danger, #B4543F); border-color: var(--danger, #B4543F); }

.ar-card { background: var(--card, #fff); border: 1px solid var(--line, #e3e8ee); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.ar-card-t { font-size: 14px; font-weight: 600; color: var(--text, #1c2430); margin-bottom: 10px; }
.ar-dim { color: var(--muted, #7a8391); font-size: 12px; font-weight: normal; }

/* 上传区 */
.ar-drop { border: 2px dashed var(--line, #cfd6de); border-radius: 10px; padding: 18px; text-align: center; cursor: pointer; transition: border-color .15s; background: var(--bg, #f8f6f2); }
.ar-drop:hover { border-color: #443A78; }
.ar-drop-empty { color: var(--muted, #7a8391); font-size: 14px; }
.ar-drop-empty .ar-dim { display: block; margin-top: 4px; }
.ar-drop-img { max-width: 100%; max-height: 320px; border-radius: 8px; }
.ar-drop-name { margin-top: 8px; font-size: 12px; color: var(--muted, #7a8391); }

/* 风格 chips */
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ar-chip { border: 1px solid var(--line, #d7dde4); background: var(--bg, #f8f6f2); color: var(--text, #1c2430); border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.ar-chip:hover { border-color: #443A78; }
.ar-chip.on { background: #443A78; border-color: #443A78; color: #fff; }
.ar-ta { width: 100%; box-sizing: border-box; margin-top: 8px; border: 1px solid var(--line, #d7dde4); border-radius: 8px; padding: 8px 10px; font-size: 13px; background: var(--bg, #f8f6f2); color: var(--text, #1c2430); resize: vertical; }

/* 生成行 */
.ar-genrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ar-lab { font-size: 13px; color: var(--text, #1c2430); display: flex; align-items: center; gap: 8px; }
.ar-sel { border: 1px solid var(--line, #d7dde4); border-radius: 6px; padding: 4px 8px; background: var(--bg, #f8f6f2); color: var(--text, #1c2430); }

/* 结果 / 历史网格 */
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ar-cell { background: var(--bg, #f8f6f2); border: 1px solid var(--line, #e3e8ee); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ar-img { width: 100%; border-radius: 8px; cursor: zoom-in; display: block; background: var(--bg, #eef1f4); }
.ar-cell-sub { font-size: 12px; color: var(--muted, #7a8391); }
.ar-wait { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted, #7a8391); font-size: 13px; }
.ar-spin { width: 22px; height: 22px; border: 3px solid var(--line, #d7dde4); border-top-color: #443A78; border-radius: 50%; animation: ar-spin .9s linear infinite; }
@keyframes ar-spin { to { transform: rotate(360deg); } }
.ar-fail { min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 10px; color: var(--danger, #B4543F); font-size: 13px; }
.ar-fail-sm { min-height: 100px; }
.ar-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.ar-pager { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted, #7a8391); }
.ar-pager button { margin: 0 4px; }

@media (max-width: 760px) {
  .ar-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ar-head h2 { font-size: 17px; }
}
