/*! 奕霖跨境 · OZON 卖家 ERP —— 商业授权软件，未经书面许可禁止复制、镜像、二次分发或用于同类产品 | 构建产物 */
.aimg-page{padding:20px;max-width:1400px;margin:0 auto;color:hsl(var(--foreground))}.aimg-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.aimg-head h1{margin:0 0 6px;font-size:22px;font-weight:700}.aimg-head p{margin:0;color:hsl(var(--muted-foreground));font-size:13px;line-height:1.6}.aimg-head-actions{display:flex;align-items:center;gap:14px;flex:0 0 auto}.aimg-sub{max-width:780px}.aimg-link{color:hsl(var(--primary));font-size:12.5px;text-decoration:none;white-space:nowrap}.aimg-link:hover{text-decoration:underline}.aimg-status{display:none;margin-bottom:12px;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.55}.aimg-status.on{display:block}.aimg-status.warn{background:#fff7e6;color:#8a4b00;border:1px solid #ffd591}.aimg-status.err{background:#fff1f0;color:#a8071a;border:1px solid #ffa39e}.aimg-status.ok{background:#f0fff4;color:#135200;border:1px solid #95de64}.aimg-panel{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:12px;padding:16px;margin-bottom:14px}.aimg-step{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:15px}.aimg-step>span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:hsl(var(--primary));color:#fff;font-size:12px}.aimg-step em{color:hsl(var(--muted-foreground));font-style:normal;font-size:12px}.aimg-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.aimg-slot{display:flex;flex-direction:column;gap:5px;min-height:118px;padding:11px 12px;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--background));text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}.aimg-slot:hover{border-color:hsl(var(--primary))}.aimg-slot.on{border-color:hsl(var(--primary));background:hsl(var(--primary) / .07);box-shadow:inset 0 0 0 1px hsl(var(--primary))}.aimg-slot-top{display:flex;align-items:center;gap:7px}.aimg-slot-emoji{font-size:15px;line-height:1}.aimg-slot-top b{font-size:13.5px;font-weight:600}.aimg-slot-ratio{margin-left:auto;padding:1px 6px;border-radius:999px;background:hsl(var(--muted));color:hsl(var(--muted-foreground));font-size:10.5px;line-height:15px;white-space:nowrap}.aimg-slot.on .aimg-slot-ratio{background:hsl(var(--primary));color:#fff}.aimg-slot-purpose{color:hsl(var(--muted-foreground));font-size:11.5px;line-height:1.55}.aimg-slot-rules{color:hsl(var(--muted-foreground));font-size:11px;line-height:1.55;opacity:.88;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.aimg-grid{display:grid;gap:12px}.aimg-grid--model{grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end}.aimg-grid--find{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) 110px auto;align-items:end}.aimg-grid--gen{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}.aimg-field{display:flex;flex-direction:column;gap:6px;min-width:0}.aimg-field>span{color:hsl(var(--muted-foreground));font-size:12px}.aimg-field input,.aimg-field select{width:100%;height:34px;padding:0 10px;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--background));color:inherit;font-size:13px}.aimg-field--action{justify-content:flex-end}.aimg-field--wide{grid-column:1 / -1}.aimg-pull{display:flex;gap:8px;align-items:center;min-width:0}.aimg-pull input{flex:1 1 auto;min-width:0}.aimg-pull .aimg-btn{flex:0 0 auto}.aimg-pull-note{color:hsl(var(--muted-foreground))}.aimg-btn{height:34px;padding:0 14px;border-radius:8px;border:1px solid hsl(var(--border));background:hsl(var(--background));color:inherit;font-size:13px;cursor:pointer;white-space:nowrap}.aimg-btn:hover{border-color:hsl(var(--primary));color:hsl(var(--primary))}.aimg-btn:disabled{opacity:.55;cursor:not-allowed}.aimg-btn--primary{background:hsl(var(--primary));border-color:hsl(var(--primary));color:#fff}.aimg-btn--primary:hover{color:#fff;opacity:.92}.aimg-btn--ghost{background:transparent}.aimg-hint{margin:10px 0 0;color:hsl(var(--muted-foreground));font-size:12px}.aimg-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.aimg-chip{padding:6px 12px;border-radius:999px;border:1px solid hsl(var(--border));background:transparent;font-size:13px;cursor:pointer}.aimg-chip.on{background:hsl(var(--primary));border-color:hsl(var(--primary));color:#fff}.aimg-catbrief{margin:0 0 4px;padding:10px 12px;border:1px solid hsl(var(--border));border-left:3px solid var(--yl-r-gold, #d5a93c);border-radius:8px;background:hsl(var(--muted))}.aimg-catbrief-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:12.5px}.aimg-catbrief-head b{color:hsl(var(--foreground))}.aimg-catbrief-head span{color:hsl(var(--muted-foreground));font-size:11.5px}.aimg-catbrief-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:6px 16px;margin:8px 0 0}.aimg-catbrief-list div{display:flex;gap:8px;align-items:baseline;min-width:0}.aimg-catbrief-list dt{flex:0 0 62px;color:hsl(var(--primary));font-size:11.5px;font-weight:600}.aimg-catbrief-list dd{margin:0;flex:1 1 auto;min-width:0;color:hsl(var(--muted-foreground));font-size:11.5px;line-height:1.6}.aimg-styles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.aimg-style{text-align:left;padding:12px;border-radius:10px;border:1px solid hsl(var(--border));background:transparent;cursor:pointer;min-height:98px}.aimg-style{position:relative}.aimg-style-rec{position:absolute;top:8px;right:8px;padding:1px 7px;border-radius:999px;background:var(--yl-r-gold-wash, #fbf2d8);color:var(--yl-r-gold-deep, #9b7420);font-size:10.5px;line-height:16px}.aimg-style.on .aimg-style-rec{background:hsl(var(--primary));color:#fff}.aimg-style:hover{border-color:hsl(var(--primary))}.aimg-style.on{border-color:hsl(var(--primary));background:hsl(var(--primary) / .07)}.aimg-style b{display:block;font-size:14px;margin-bottom:5px}.aimg-style small{display:block;color:hsl(var(--muted-foreground));font-size:12px;line-height:1.55}.aimg-style em{display:inline-block;margin-top:7px;font-style:normal;font-size:11px;color:hsl(var(--primary))}.aimg-prompt{margin-top:12px;border:1px dashed hsl(var(--border));border-radius:10px;padding:10px 12px}.aimg-prompt-head{display:flex;justify-content:space-between;gap:10px;font-size:13px}.aimg-prompt-acts{display:flex;align-items:center;gap:12px;flex:0 0 auto}.aimg-langtabs{display:inline-flex;padding:2px;border-radius:6px;border:1px solid hsl(var(--border));background:hsl(var(--muted))}.aimg-langtab{padding:2px 10px;border:0;border-radius:4px;background:transparent;color:hsl(var(--muted-foreground));font-size:11.5px;line-height:18px;cursor:pointer;white-space:nowrap}.aimg-langtab.on{background:hsl(var(--primary));color:#fff}.aimg-linkbtn.is-active{font-weight:600;text-decoration:underline}.aimg-prompt-note{margin:8px 0 0!important;padding:7px 10px;border-left:3px solid var(--yl-r-gold, #d5a93c);border-radius:4px;background:var(--yl-r-gold-wash, #fbf2d8);color:var(--yl-r-gold-deep, #9b7420)!important;font-size:11.5px!important;line-height:1.7!important}.aimg-prompt pre{white-space:pre-wrap}.aimg-prompt p{margin:6px 0 0;font-size:12px;line-height:1.65;color:hsl(var(--muted-foreground))}.aimg-prompt pre{margin:8px 0 0;max-height:220px;overflow:auto;white-space:pre-wrap;font-size:12px;line-height:1.65;background:hsl(var(--muted));padding:10px;border-radius:8px}.aimg-prompt pre.is-open{max-height:none;overflow:visible}.aimg-foot-note{margin:4px 0 0;padding:10px 14px;border:1px solid hsl(var(--border));border-left:3px solid var(--yl-r-gold, #d5a93c);border-radius:8px;background:var(--yl-r-gold-wash, #fbf2d8);color:var(--yl-r-gold-deep, #9b7420);font-size:11.5px;line-height:1.75}.aimg-linkbtn{border:0;background:transparent;color:hsl(var(--primary));cursor:pointer;font-size:12px}.aimg-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px;min-height:40px}.aimg-product{text-align:left;display:flex;gap:10px;padding:9px;border:1px solid hsl(var(--border));border-radius:10px;background:transparent;cursor:pointer;min-width:0}.aimg-product:hover{border-color:hsl(var(--primary))}.aimg-product.on{border-color:hsl(var(--primary));box-shadow:0 0 0 2px hsl(var(--primary) / .15)}.aimg-product img,.aimg-ph{width:52px;height:64px;flex:0 0 52px;border-radius:6px;object-fit:cover;background:hsl(var(--muted))}.aimg-ph{display:grid;place-items:center;color:hsl(var(--muted-foreground));font-size:11px}.aimg-product div{min-width:0}.aimg-product b{display:block;font-size:12px;line-height:1.45;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.aimg-product small{display:block;margin-top:4px;color:hsl(var(--muted-foreground));font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aimg-selected{margin-top:12px;font-size:13px;color:hsl(var(--muted-foreground))}.aimg-selected.on{color:hsl(var(--foreground))}.aimg-lookup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:14px;padding:12px;border-radius:10px;background:hsl(var(--muted))}.aimg-lookup-head b{display:block;font-size:14px;line-height:1.5}.aimg-lookup-head small{display:block;margin-top:4px;color:hsl(var(--muted-foreground));font-size:12px}.aimg-imgs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}.aimg-imgpick{position:relative;display:block;cursor:pointer;border:1px solid hsl(var(--border));border-radius:10px;overflow:hidden;background:hsl(var(--background))}.aimg-imgpick:has(input:checked){border-color:hsl(var(--primary));box-shadow:0 0 0 2px hsl(var(--primary) / .16)}.aimg-imgpick input{position:absolute;top:8px;left:8px;z-index:1;width:16px;height:16px}.aimg-imgpick img{display:block;width:100%;aspect-ratio:3 / 4;object-fit:cover;background:hsl(var(--muted))}.aimg-imgpick span{display:block;padding:6px 8px;font-size:11px;color:hsl(var(--muted-foreground))}.aimg-upload{margin-top:10px}.aimg-filepick{display:flex;align-items:center;gap:10px}.aimg-filepick input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.aimg-btn--file{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.aimg-filepick-name{color:hsl(var(--muted-foreground));font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.aimg-upload-label{display:block;margin-bottom:6px;color:hsl(var(--muted-foreground));font-size:12px}.aimg-actions{display:flex;align-items:center;gap:12px;margin-top:12px}.aimg-actions span{color:hsl(var(--muted-foreground));font-size:12px}.aimg-actions--center{justify-content:center}.aimg-progress{margin-top:14px}.aimg-progress-head{display:flex;justify-content:space-between;font-size:13px;margin-bottom:6px}.aimg-bar{height:8px;border-radius:999px;background:hsl(var(--muted));overflow:hidden}.aimg-bar i{display:block;width:0;height:100%;border-radius:999px;background:hsl(var(--primary));transition:width .35s ease}.aimg-slotgen{margin-top:10px;padding:10px 12px;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--muted))}.aimg-slotgen-head{display:flex;align-items:baseline;gap:10px;font-size:12.5px}.aimg-slotgen-head b{color:hsl(var(--foreground))}.aimg-slotgen-head span:first-of-type{flex:1 1 auto;min-width:0;color:hsl(var(--muted-foreground))}.aimg-slotgen-pct{color:hsl(var(--primary));font-weight:600}.aimg-slotgen .aimg-bar{margin-top:6px}.aimg-slotgen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin-top:10px}.aimg-slotgen-grid .aimg-result{margin:0}.aimg-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.aimg-result{padding:10px;border:1px solid hsl(var(--border));border-radius:10px}.aimg-result-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:12px}.aimg-result img{width:100%;aspect-ratio:3 / 4;object-fit:contain;border-radius:8px;background:hsl(var(--muted))}.aimg-result .aimg-result-err{font-size:12px;color:#a8071a;line-height:1.55}.aimg-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.aimg-check{display:inline-flex;align-items:center;gap:6px;font-size:12px}.aimg-submit{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid hsl(var(--border))}.aimg-submit b{font-size:14px}.aimg-submit p{margin:4px 0 0;font-size:12px;line-height:1.6;color:hsl(var(--muted-foreground));max-width:720px}.aimg-empty{padding:16px;border:1px dashed hsl(var(--border));border-radius:10px;color:hsl(var(--muted-foreground));font-size:13px;text-align:center}.aimg-modal-bg{position:fixed;inset:0;z-index:1000;background:#00000073;display:flex;align-items:center;justify-content:center;padding:20px}.aimg-modal{width:min(680px,100%);max-height:86vh;overflow-y:auto;overflow-x:hidden;background:hsl(var(--card));border-radius:12px;padding:18px;box-sizing:border-box}.aimg-modal h3{margin:0 0 6px;font-size:16px}.aimg-modal p{margin:0 0 14px;font-size:12px;color:hsl(var(--muted-foreground));line-height:1.6}.aimg-modal .aimg-grid{grid-template-columns:1fr 1fr;margin-bottom:12px}.aimg-modal .aimg-grid>*{min-width:0}.aimg-src code{word-break:break-all}.aimg-modal-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.aimg-src{margin-top:10px;font-size:12px;color:hsl(var(--muted-foreground));line-height:1.7}.aimg-src a{color:hsl(var(--primary))}.aimg-log{margin-top:10px;max-height:150px;overflow-y:auto;overflow-x:hidden;padding:8px 10px;border:1px solid hsl(var(--border));border-radius:8px;font-size:12px;line-height:1.7;color:hsl(var(--muted-foreground));background:hsl(var(--background))}.aimg-mode{display:flex;flex-wrap:wrap;gap:14px}.aimg-upload-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-top:10px}.aimg-upload-preview .aimg-up-item{position:relative;border:1px solid hsl(var(--border));border-radius:8px;overflow:hidden;background:hsl(var(--background))}.aimg-upload-preview img{width:100%;aspect-ratio:3 / 4;object-fit:cover;display:block}.aimg-upload-preview .aimg-up-del{position:absolute;top:4px;right:4px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground));font-size:12px;line-height:20px;cursor:pointer}.aimg-upload-preview .aimg-up-del:hover{color:hsl(var(--primary));border-color:hsl(var(--primary))}.aimg-field textarea{width:100%;padding:8px 10px;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--background));color:inherit;font-size:13px;line-height:1.6;resize:vertical}.aimg-slotcfg{border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--background));padding:12px 14px;margin-bottom:10px;min-width:0}.aimg-slotcfg-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;align-items:start}.aimg-slotcfg-head{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:13.5px}.aimg-slotcfg-head b{font-weight:600}.aimg-slotcfg-note{margin-left:auto;color:hsl(var(--muted-foreground));font-size:11.5px}.aimg-slotcfg .aimg-filepick{margin-bottom:8px}.aimg-slotcfg .aimg-field textarea{min-height:64px}.aimg-imgzoom-bg{position:fixed;inset:0;z-index:1100;background:#000000b8;display:flex;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}.aimg-imgzoom{max-width:min(1100px,92vw);max-height:90vh;display:flex;flex-direction:column}.aimg-imgzoom img{max-width:100%;max-height:84vh;object-fit:contain;border-radius:10px;box-shadow:0 12px 40px #0006}.aimg-imgzoom-cap{margin-top:8px;color:#fff;font-size:12.5px;text-align:center}.aimg-slotgen-grid img,.aimg-upload-preview img{cursor:zoom-in}@media(max-width:1100px){.aimg-styles,.aimg-slots,.aimg-products{grid-template-columns:repeat(3,minmax(0,1fr))}.aimg-grid--model{grid-template-columns:1fr 1fr}.aimg-grid--find{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 100px}.aimg-grid--find>.aimg-field--action{grid-column:1 / -1}}@media(max-width:760px){.aimg-page{padding:14px}.aimg-head{flex-direction:column}.aimg-grid--model,.aimg-grid--find,.aimg-grid--gen,.aimg-styles,.aimg-products,.aimg-results{grid-template-columns:1fr}.aimg-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.aimg-slotcfg-list{grid-template-columns:1fr}.aimg-grid--find>.aimg-field--action{grid-column:auto}.aimg-result img{aspect-ratio:3 / 4}.aimg-submit{flex-direction:column;align-items:stretch}.aimg-submit .aimg-btn{width:100%}.aimg-modal .aimg-grid{grid-template-columns:1fr}.aimg-pull{flex-wrap:wrap}.aimg-pull .aimg-btn{width:100%}.aimg-prompt-head{flex-wrap:wrap}}
