style.css 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. /* ═══════════════════════════════════════════════════════════════
  2. Design System — 门店装修工具 · 淘宝闪购专业版
  3. Extracted from dish-crawl.html design spec
  4. ═══════════════════════════════════════════════════════════════ */
  5. :root {
  6. --accent: #ff6b35;
  7. --accent-dark: #e0501c;
  8. --bg: #f4f2ef;
  9. --card-bg: #ffffff;
  10. --sidebar-bg: #1d1c1a;
  11. --text: #2b2a28;
  12. --text-2: #6b6560;
  13. --text-3: #a5a09a;
  14. --border: #e8e4df;
  15. --border-light: #f0ede8;
  16. --ok: #1a8a4c; --ok-bg: #e8f7ee;
  17. --warn: #b8860b; --warn-bg: #fdf3d9;
  18. --fail: #c8402e; --fail-bg: #fdeceb;
  19. --info: #2563eb; --info-bg: #dbeafe;
  20. --sidebar-hover-bg: #2d2c2a;
  21. --sidebar-text: #a0a0a0;
  22. --sidebar-active-bg: rgba(255,107,53,0.14);
  23. --focus-ring: rgba(255,107,53,0.12);
  24. --font-family-base: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  25. --font-size-h1: 18px; --font-size-h2: 14px; --font-size-h3: 12px;
  26. --font-size-body: 13px; --font-size-small: 11.5px; --font-size-badge: 11px;
  27. --font-weight-h1: 700; --font-weight-h2: 600; --font-weight-h3: 600; --font-weight-body: 400; --font-weight-badge: 500;
  28. --line-height-h1: 1.3; --line-height-body: 1.5; --line-height-small: 1.45;
  29. --space-xs: 4px; --space-sm: 8px; --space-md: 12px; --space-lg: 16px; --space-xl: 20px; --space-xxl: 28px;
  30. --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-pill: 999px;
  31. --sidebar-width: 220px;
  32. --content-max-width: 1300px;
  33. --page-padding-x: 28px;
  34. --page-padding-y: 20px;
  35. --page-padding-bottom: 60px;
  36. --duration-fast: 0.05s; --duration-base: 0.15s; --duration-slow: 0.25s;
  37. --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  38. --tap-target-min: 32px;
  39. --tap-target-row-min: 28px;
  40. }
  41. * { box-sizing: border-box; }
  42. [hidden] { display: none !important; }
  43. html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-family-base); -webkit-font-smoothing: antialiased; font-size: var(--font-size-body); line-height: var(--line-height-body); }
  44. /* ── Global interaction ─────────────────────────────────── */
  45. button, [role="button"], .btn { min-height: var(--tap-target-row-min); min-width: var(--tap-target-min); }
  46. :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  47. [disabled], [aria-disabled="true"], .btn:disabled { opacity: 0.5; cursor: not-allowed; }
  48. @keyframes spinner-rotate { to { transform: rotate(360deg); } }
  49. .spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--accent); border-top-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spinner-rotate 0.8s linear infinite; }
  50. .spinner-lg { width: 16px; height: 16px; border-width: 2px; }
  51. .spinner-inline { vertical-align: middle; margin-right: 4px; }
  52. .collapse { overflow: hidden; max-height: 0; opacity: 0; transition: max-height var(--duration-slow) var(--ease-out), opacity var(--duration-base) var(--ease-out); }
  53. .collapse.is-open { max-height: 1000px; opacity: 1; }
  54. /* ── App Frame Layout ──────────────────────────────────── */
  55. .app-frame { display: flex; align-items: stretch; height: 100vh; overflow: hidden; }
  56. .app-frame > main { flex: 1; min-width: 0; }
  57. /* ── Sidebar ───────────────────────────────────────────── */
  58. .sidebar {
  59. width: var(--sidebar-width); flex-shrink: 0;
  60. background: var(--sidebar-bg); color: #fff;
  61. display: flex; flex-direction: column;
  62. padding: 20px 14px; box-sizing: border-box;
  63. height: 100vh;
  64. overflow-y: auto;
  65. }
  66. .sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }
  67. .sidebar-logo { width: 44px; height: 44px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
  68. .sidebar-logo img { width: 100%; height: 100%; object-fit: contain; }
  69. .sidebar-titles .t1 { font-size: 14px; font-weight: 700; line-height: 1.25; }
  70. .sidebar-titles .t2 { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
  71. .nav-section-label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 10px 6px; }
  72. .nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--sidebar-text); cursor: pointer; font-size: 13px; margin-bottom: 4px; transition: background 0.15s, color 0.15s; min-height: 36px; border: none; background: transparent; width: 100%; text-align: left; }
  73. .nav-item:hover { background: var(--sidebar-hover-bg); color: #f0ede8; }
  74. .nav-item.active { background: var(--sidebar-active-bg); color: var(--accent); font-weight: 600; }
  75. .nav-item .ico { width: 16px; display: inline-flex; align-items: center; justify-content: center; opacity: 0.9; }
  76. .nav-item .ico svg { width: 16px; height: 16px; display: block; }
  77. .sidebar-bottom { margin-top: auto; padding: 12px 10px; font-size: 11px; color: rgba(255,255,255,0.4); border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; }
  78. .sidebar-powered { height: 14px; opacity: 0.4; }
  79. .main-wrap { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; }
  80. /* ── Page Header ───────────────────────────────────────── */
  81. .page-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
  82. .page-header h1 { font-size: var(--font-size-h1); font-weight: var(--font-weight-h1); margin: 0; color: var(--text); line-height: var(--line-height-h1); }
  83. .page-header .sub { font-size: var(--font-size-small); color: var(--text-2); margin-top: 4px; }
  84. .page-header .toolbar { display: flex; gap: 8px; }
  85. /* ── Content Area ──────────────────────────────────────── */
  86. main.content { padding: var(--page-padding-y) var(--page-padding-x) var(--page-padding-bottom); }
  87. .view { display: none; }
  88. .view.active { display: block; }
  89. /* ── Crawl Grid (双栏) ─────────────────────────────────── */
  90. .crawl-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
  91. .left-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  92. .right-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  93. #viewCrawl.active { display: flex; height: 100%; min-height: 0; }
  94. #viewCrawl .content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; }
  95. #viewCrawl .crawl-grid { flex: 1; min-height: 0; align-items: stretch; }
  96. #viewCrawl .left-col, #viewCrawl .right-col { min-height: 0; }
  97. #viewCrawl .panel-progress { flex: 1; min-height: 180px; height: auto; }
  98. #viewCrawl .panel-shops { flex: 1; min-height: 0; height: auto; }
  99. @media (max-width: 900px) {
  100. .crawl-grid { grid-template-columns: 1fr !important; }
  101. .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  102. #viewCrawl.active { display: block; height: auto; }
  103. #viewCrawl .crawl-grid { flex: none; }
  104. #viewCrawl .panel-progress, #viewCrawl .panel-shops { flex: none; height: 320px; }
  105. }
  106. /* ── Panel ─────────────────────────────────────────────── */
  107. .panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
  108. .panel-narrow { padding: 16px; }
  109. .panel-title { font-size: var(--font-size-h2); font-weight: 600; color: var(--text); margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }
  110. .panel-title .actions { display: flex; gap: 8px; align-items: center; }
  111. .panel-body { display: flex; flex-direction: column; gap: 12px; }
  112. .panel-hint { font-size: var(--font-size-small); color: var(--text-3); margin-top: -4px; }
  113. /* Fixed-height panels (right column) */
  114. .panel-fixed { overflow: hidden; display: flex; flex-direction: column; }
  115. .panel-fixed .panel-title { flex-shrink: 0; }
  116. .panel-shops { height: 380px; }
  117. .panel-shops > div:last-child { flex: 1; display: flex; flex-direction: column; overflow: auto; min-height: 0; }
  118. .panel-progress { height: 260px; }
  119. .panel-progress #progressList { display: flex; flex-direction: column; overflow-y: auto; flex: 1; min-height: 0; }
  120. .panel-log { height: 240px; }
  121. .panel-log .log-box { flex: 1; min-height: 0; max-height: none; }
  122. .stage-marker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: var(--font-size-h2); font-weight: 600; color: var(--text); }
  123. .stage-marker .num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
  124. /* ── Form Fields ───────────────────────────────────────── */
  125. .field { display: flex; flex-direction: column; gap: 5px; }
  126. .field label { font-size: var(--font-size-small); color: var(--text-2); font-weight: 500; }
  127. .field .req { color: var(--fail); margin-left: 2px; }
  128. .field input, .field select, .field textarea {
  129. padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  130. background: #faf9f7; color: var(--text); font-size: var(--font-size-body); font-family: inherit;
  131. outline: none; transition: border-color 0.15s, box-shadow 0.15s; min-height: 32px; box-sizing: border-box;
  132. resize: vertical;
  133. }
  134. .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); background: #fff; }
  135. .field input:disabled {
  136. background: #efece8;
  137. border-color: var(--border-light);
  138. color: var(--text-3);
  139. cursor: not-allowed;
  140. opacity: 1;
  141. }
  142. .field .help { font-size: 11px; color: var(--text-3); }
  143. .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  144. .field-row .field input { width: 100%; min-width: 0; }
  145. .settings-workspace { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
  146. .settings-forms { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  147. .settings-forms .field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
  148. .settings-forms .panel,
  149. .panel-designed,
  150. .settings-log { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #faf8f5 100%); border-radius: 14px; transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out); }
  151. .settings-forms .panel { padding: 18px; }
  152. .panel-designed { padding: 18px; }
  153. .panel-designed .panel-body { position: relative; z-index: 1; }
  154. .panel-designed .panel-watermark { right: -42px; bottom: -46px; width: 118px; height: 118px; color: rgba(255, 107, 53, .08); }
  155. .stage-icon { width: 28px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(255, 107, 53, .10); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 107, 53, .12); }
  156. .stage-icon svg { width: 15px; height: 15px; display: block; }
  157. .panel-watermark { position: absolute; right: -26px; bottom: -30px; width: 104px; height: 104px; color: rgba(255, 107, 53, .12); pointer-events: none; }
  158. .settings-forms .panel-body { position: relative; z-index: 1; }
  159. .panel-watermark svg { width: 100%; height: 100%; display: block; }
  160. .log-watermark { right: -10px; bottom: auto; top: -26px; width: 110px; height: 110px; color: rgba(255, 107, 53, .08); }
  161. .settings-forms .stage-marker .num { width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 107, 53, .10); color: var(--accent); font-size: 12px; box-shadow: inset 0 0 0 1px rgba(255, 107, 53, .12); }
  162. .settings-log .panel-title,
  163. .settings-log .log-box { position: relative; z-index: 1; }
  164. .settings-actions { display: flex; align-items: center; gap: 8px; }
  165. .settings-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  166. .settings-link {
  167. display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  168. min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  169. background: #fff; color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1;
  170. text-decoration: none; transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
  171. }
  172. .settings-link svg { width: 13px; height: 13px; flex-shrink: 0; }
  173. .settings-link:hover {
  174. border-color: var(--accent); color: var(--accent); background: #fff;
  175. box-shadow: 0 0 0 2px var(--focus-ring);
  176. }
  177. .settings-log { height: auto; min-height: 360px; }
  178. .settings-log .log-box { min-height: 0; }
  179. #viewSettings.active { display: flex; height: 100%; min-height: 0; }
  180. #viewSettings .content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; }
  181. #viewSettings .settings-workspace { flex: 1; min-height: 0; }
  182. #viewSettings .settings-forms { min-height: 0; }
  183. #viewSettings .settings-log { flex: 1; min-height: 0; }
  184. @media (max-width: 960px) {
  185. .settings-workspace { grid-template-columns: 1fr; }
  186. #viewSettings.active { display: block; height: auto; }
  187. #viewSettings .content { min-height: 0; }
  188. #viewSettings .settings-workspace { flex: none; }
  189. #viewSettings .settings-log { flex: none; min-height: 320px; }
  190. }
  191. /* ── Buttons ───────────────────────────────────────────── */
  192. .btn {
  193. padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  194. background: transparent; color: var(--text); font-size: 13px; font-weight: 600;
  195. cursor: pointer; transition: background 0.15s, transform 0.05s, border-color 0.15s;
  196. display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px;
  197. }
  198. .btn:hover { filter: brightness(0.96); }
  199. .btn:active { transform: scale(0.97); }
  200. .btn:disabled { opacity: 0.5; cursor: not-allowed; }
  201. .btn-primary { background: var(--accent); color: #fff; }
  202. .btn-primary:hover { background: var(--accent-dark); }
  203. .btn-ghost { background: #f1efec; color: var(--text); border-color: transparent; }
  204. .btn-ghost:hover { background: #ebe7e1; }
  205. .btn-danger { background: var(--fail); color: #fff; }
  206. .btn-danger:hover { background: #b03826; }
  207. .btn-small { padding: 5px 10px; font-size: 12px; min-height: 28px; }
  208. .btn-block { width: 100%; }
  209. .btn svg { width: 12px; height: 12px; display: block; flex-shrink: 0; }
  210. .btn #startBtnIcon, .btn #scanIcon { display: inline-flex; align-items: center; }
  211. .badge svg { width: 10px; height: 10px; display: block; }
  212. /* ── Data Table ────────────────────────────────────────── */
  213. .data-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-body); }
  214. .data-table th { text-align: left; font-size: var(--font-size-small); font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.03em; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg); }
  215. .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
  216. .data-table tr:last-child td { border-bottom: none; }
  217. .data-table tbody tr:hover td { background: #faf9f7; }
  218. .data-table .col-actions { text-align: right; white-space: nowrap; }
  219. .data-table .shop-name { font-weight: 600; color: var(--text); }
  220. .data-table .col-folder .badge { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
  221. .data-table .shop-meta { font-size: var(--font-size-small); color: var(--text-3); margin-top: 2px; }
  222. .data-table .num { font-variant-numeric: tabular-nums; }
  223. /* ── Badge ─────────────────────────────────────────────── */
  224. .badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); font-size: var(--font-size-badge); font-weight: var(--font-weight-badge); line-height: 1.5; background: #f1efec; color: var(--text-2); }
  225. .badge-ok { background: var(--ok-bg); color: var(--ok); }
  226. .badge-warn { background: var(--warn-bg); color: var(--warn); }
  227. .badge-fail { background: var(--fail-bg); color: var(--fail); }
  228. .badge-info { background: var(--info-bg); color: var(--info); }
  229. /* ── Progress ──────────────────────────────────────────── */
  230. .progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: var(--font-size-body); }
  231. .progress-row:last-child { border-bottom: none; }
  232. .progress-row .left { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
  233. .progress-row .left .badge { flex-shrink: 0; }
  234. .progress-row .left .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  235. .progress-row .left .meta { color: var(--text-3); font-size: var(--font-size-small); flex-shrink: 0; }
  236. .progress-row .right { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; font-size: var(--font-size-small); color: var(--text-2); font-variant-numeric: tabular-nums; }
  237. .progress-bar { display: inline-block; flex: 1; min-width: 56px; height: 6px; background: var(--border-light); border-radius: var(--radius-pill); overflow: hidden; }
  238. .progress-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
  239. /* ── Collapse / Accordion ──────────────────────────────── */
  240. .collapse-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 0; border: none; background: transparent; cursor: pointer; font-size: var(--font-size-body); font-weight: 500; color: var(--text-2); }
  241. .collapse-trigger:hover { color: var(--text); }
  242. .collapse-trigger .chev { display: inline-flex; transition: transform var(--duration-base) var(--ease-out); }
  243. .collapse-trigger .chev svg { width: 10px; height: 10px; display: block; }
  244. .collapse-trigger[aria-expanded="true"] .chev { transform: rotate(90deg); }
  245. /* ── Log ───────────────────────────────────────────────── */
  246. .log-box { max-height: 280px; overflow: auto; background: #1d1c1a; border-radius: var(--radius-md); padding: 12px 14px; font-family: "SF Mono", "Consolas", monospace; font-size: 12px; line-height: 1.6; }
  247. .log-line { display: flex; gap: 8px; align-items: baseline; color: #d8d4cd; }
  248. .log-line .log-ts { color: #8a8580; font-variant-numeric: tabular-nums; flex-shrink: 0; }
  249. .log-line .log-source { flex-shrink: 0; width: 32px; text-align: center; font-size: 10px; line-height: 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: #b8b3ad; }
  250. .log-line .log-source.system { background: rgba(124, 179, 232, 0.12); color: #7cb3e8; }
  251. .log-line .log-source.task { background: rgba(255, 107, 53, 0.12); color: #ffa475; }
  252. .log-line .log-lvl { font-weight: 700; flex-shrink: 0; width: 36px; text-align: right; }
  253. .log-line .log-lvl.info { color: #7cb3e8; }
  254. .log-line .log-lvl.ok { color: #5cba7d; }
  255. .log-line .log-lvl.warn { color: #e0a832; }
  256. .log-line .log-lvl.error { color: #e86a5e; }
  257. .log-line .log-msg { word-break: break-all; min-width: 0; }
  258. /* ── Toast ─────────────────────────────────────────────── */
  259. .toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 9999; }
  260. .toast { background: #2b2a28; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: var(--font-size-body); line-height: var(--line-height-body); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.18); animation: toast-in 0.25s ease both; }
  261. .toast.toast-success { background: #1a8a4c; }
  262. .toast.toast-error { background: var(--fail); }
  263. @keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  264. /* ── Modal ─────────────────────────────────────────────── */
  265. .modal-overlay {
  266. position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  267. background: rgba(0, 0, 0, 0.4);
  268. display: flex; align-items: center; justify-content: center;
  269. z-index: 9998;
  270. }
  271. .modal-overlay[hidden] { display: none; }
  272. .modal {
  273. background: var(--card-bg);
  274. border-radius: var(--radius-lg);
  275. box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.24);
  276. width: 460px;
  277. max-width: 90vw;
  278. animation: modal-in var(--duration-base) var(--ease-out) both;
  279. }
  280. @keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  281. .modal-header {
  282. display: flex; align-items: center; justify-content: space-between;
  283. padding: 16px 20px;
  284. border-bottom: 1px solid var(--border-light);
  285. font-size: var(--font-size-h2); font-weight: 600;
  286. }
  287. .modal-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
  288. .modal-status-icon { position: relative; z-index: 0; width: 34px; height: 34px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.14); }
  289. .modal-status-icon::before { content: ""; position: absolute; inset: -9px; z-index: -1; border-radius: 16px; background: radial-gradient(circle, rgba(255, 107, 53, 0.20) 0%, rgba(255, 107, 53, 0.05) 48%, transparent 72%); pointer-events: none; }
  290. .modal-status-icon svg { width: 16px; height: 16px; display: block; }
  291. .modal-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  292. .modal-close {
  293. border: none; background: transparent; cursor: pointer;
  294. font-size: 20px; color: var(--text-3);
  295. width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  296. border-radius: var(--radius-sm);
  297. }
  298. .modal-close:hover { background: #f1efec; color: var(--text); }
  299. .modal-body { padding: 20px; }
  300. .modal-body .field textarea { width: 100%; }
  301. .modal-footer {
  302. display: flex; justify-content: flex-end; gap: 8px;
  303. padding: 12px 20px 16px;
  304. }
  305. /* ── Splash Screen ─────────────────────────────────────── */
  306. .splash {
  307. position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  308. background: var(--sidebar-bg);
  309. display: flex; flex-direction: column; align-items: center; justify-content: center;
  310. z-index: 99999;
  311. transition: opacity 0.4s ease, visibility 0.4s ease;
  312. }
  313. .splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
  314. .splash-logo {
  315. width: 96px; height: 96px; border-radius: 20px; object-fit: contain;
  316. background: #fff; padding: 8px;
  317. animation: splash-pop 0.6s var(--ease-out) both;
  318. }
  319. .splash-name {
  320. font-size: 20px; font-weight: 700; color: #f0ede8; margin-top: 16px;
  321. animation: splash-fade 0.5s 0.2s var(--ease-out) both;
  322. }
  323. .splash-sub {
  324. font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px;
  325. animation: splash-fade 0.5s 0.35s var(--ease-out) both;
  326. }
  327. .splash-bar {
  328. width: 160px; height: 3px; background: rgba(255,255,255,0.1);
  329. border-radius: 999px; margin-top: 24px; overflow: hidden;
  330. animation: splash-fade 0.5s 0.45s var(--ease-out) both;
  331. }
  332. .splash-bar span {
  333. display: block; height: 100%; background: var(--accent); border-radius: inherit;
  334. animation: splash-load 1.2s 0.5s var(--ease-out) both;
  335. }
  336. @keyframes splash-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
  337. @keyframes splash-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  338. @keyframes splash-load { from { width: 0; } to { width: 100%; } }
  339. .splash-powered {
  340. display: flex; align-items: center; gap: 6px; margin-top: 20px;
  341. animation: splash-fade 0.5s 0.6s var(--ease-out) both;
  342. }
  343. .splash-powered span { font-size: 11px; color: rgba(255,255,255,0.35); }
  344. .splash-powered img { height: 18px; opacity: 0.6; }
  345. /* ── Empty State ───────────────────────────────────────── */
  346. .empty-hint { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; color: var(--text-3); min-height: 180px; padding: clamp(28px, 6vh, 48px) clamp(24px, 5vw, 40px); text-align: center; font-size: var(--font-size-body); }
  347. .panel-progress .empty-hint,
  348. .panel-shops .empty-hint { min-height: 0; }
  349. .empty-icon { width: clamp(52px, 10vh, 76px); height: clamp(52px, 10vh, 76px); margin: 0 auto 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); opacity: .16; }
  350. .empty-icon svg { width: 100%; height: 100%; display: block; }
  351. .empty-hint p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; line-height: 1.45; }
  352. .empty-hint small { display: block; margin-top: 6px; color: var(--text-3); font-size: var(--font-size-small); font-weight: 450; }
  353. /* ── Visual Gen Page ───────────────────────────────────── */
  354. .select-input { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--font-size-body); background: #faf9f7; color: var(--text); outline: none; min-height: 32px; }
  355. .select-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
  356. /* compact generation overview */
  357. .gen-overview { margin-bottom: 16px; padding: 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; align-items: stretch; gap: 14px; }
  358. .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; flex: 1; min-width: 0; }
  359. .metric { position: relative; display: flex; align-items: center; overflow: hidden; min-width: 0; min-height: 116px; padding: 20px 22px; background: linear-gradient(135deg, #fff 0%, #faf8f5 100%); border: 1px solid var(--border-light); border-radius: 14px; transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), transform 0.18s var(--ease-out); }
  360. .metric::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at calc(100% - 8px) calc(100% + 8px), rgba(107, 101, 96, 0.10) 0%, transparent 38%); opacity: 0; transition: opacity 0.18s var(--ease-out); pointer-events: none; }
  361. .metric:hover { transform: translateY(-1px); border-color: var(--border); box-shadow: 0 10px 24px rgba(31, 27, 24, 0.06); }
  362. .metric:hover::before { opacity: 1; }
  363. .metric.accent { border-color: rgba(255, 107, 53, 0.16); }
  364. .metric.accent::before { background: radial-gradient(circle at calc(100% - 6px) calc(100% + 6px), rgba(255, 107, 53, 0.20) 0%, transparent 42%); opacity: 1; }
  365. .metric.ok { border-color: rgba(26, 138, 76, 0.14); }
  366. .metric.ok::before { background: radial-gradient(circle at calc(100% - 6px) calc(100% + 6px), rgba(26, 138, 76, 0.16) 0%, transparent 42%); opacity: 1; }
  367. .metric.warn { border-color: rgba(184, 134, 11, 0.14); }
  368. .metric.warn::before { background: radial-gradient(circle at calc(100% - 6px) calc(100% + 6px), rgba(184, 134, 11, 0.16) 0%, transparent 42%); opacity: 1; }
  369. .metric.fail { border-color: rgba(200, 64, 46, 0.14); }
  370. .metric.fail::before { background: radial-gradient(circle at calc(100% - 6px) calc(100% + 6px), rgba(200, 64, 46, 0.16) 0%, transparent 42%); opacity: 1; }
  371. .metric-icon { position: absolute; right: -8px; bottom: -12px; width: 88px; height: 88px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: transparent; color: var(--text-2); box-shadow: none; opacity: 0.1; transition: opacity 0.18s var(--ease-out); pointer-events: none; }
  372. .metric-icon svg { width: 100%; height: 100%; display: block; stroke-width: 1.4; }
  373. .metric.accent .metric-icon { color: var(--accent); }
  374. .metric.ok .metric-icon { color: var(--ok); }
  375. .metric.warn .metric-icon { color: var(--warn); }
  376. .metric.fail .metric-icon { color: var(--fail); }
  377. .metric:hover .metric-icon { opacity: 0.16; }
  378. .metric-body { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; gap: 10px; }
  379. .metric-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.2; color: var(--text-2); font-weight: 600; letter-spacing: 0.04em; }
  380. .metric-label::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--text-3); }
  381. .metric.accent .metric-label::before { background: var(--accent); }
  382. .metric.ok .metric-label::before { background: var(--ok); }
  383. .metric.warn .metric-label::before { background: var(--warn); }
  384. .metric.fail .metric-label::before { background: var(--fail); }
  385. .metric-value { font-size: 38px; font-weight: 770; color: var(--text); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  386. .metric-value small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
  387. .metric .stat-delta { min-height: 14px; font-size: 12px; color: var(--text-3); font-weight: 600; line-height: 1.2; }
  388. .metric.ok .stat-delta { color: var(--ok); }
  389. .gen-controls { flex: 0 0 168px; padding: 12px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
  390. .gen-controls select { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #faf9f7; font-size: var(--font-size-body); outline: none; min-height: 36px; width: 100%; }
  391. .gen-controls select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); background: #fff; }
  392. .scan-dropdown { position: relative; }
  393. .scan-dropdown-trigger { position: relative; z-index: 31; width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text); font-size: var(--font-size-body); line-height: 1.2; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
  394. .scan-dropdown-trigger:hover { border-color: var(--accent); }
  395. .scan-dropdown-trigger.active { border-color: var(--accent); background: rgba(255, 107, 53, 0.05); }
  396. .scan-dropdown-trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
  397. .scan-dropdown-trigger > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
  398. .scan-dropdown-trigger svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-3); }
  399. .scan-dropdown-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: max(220px, calc(100% + 220px)); max-height: 230px; overflow-y: auto; padding: 6px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 14px 34px rgba(31, 27, 24, .14); scrollbar-width: thin; }
  400. .scan-dropdown-item { width: 100%; min-height: 34px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font-size: 12.5px; line-height: 1.2; display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; transition: background .12s, color .12s; }
  401. .scan-dropdown-item:hover { background: #f6f4f2; }
  402. .scan-dropdown-item > span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  403. .scan-check { width: 16px; height: 16px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: transparent; transition: all .12s; }
  404. .scan-check svg { width: 10px; height: 10px; }
  405. .scan-dropdown-item.selected { background: rgba(255, 107, 53, .07); color: var(--accent); font-weight: 600; }
  406. .scan-dropdown-item.selected .scan-check { border-color: var(--accent); background: var(--accent); color: #fff; }
  407. .gen-controls .field { gap: 6px; }
  408. .gen-controls .btn { width: 100%; min-height: 32px; }
  409. @media (max-width: 1080px) {
  410. .gen-overview { flex-direction: column; gap: 12px; }
  411. .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  412. .metric { min-height: 96px; padding: 16px; }
  413. .metric-value { font-size: 30px; }
  414. .metric-icon { width: 72px; height: 72px; right: -6px; bottom: -10px; }
  415. .gen-controls { flex-basis: auto; }
  416. }
  417. /* shop-cards */
  418. .shop-cards { display: flex; flex-direction: column; gap: 16px; }
  419. .shop-cards:has(.empty-hint) { min-height: clamp(340px, calc(100vh - 300px), 620px); }
  420. .shop-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
  421. /* Complete visual generation workflow */
  422. .workflow-card { overflow: visible; box-shadow: 0 1px 2px rgba(31,27,24,.04); }
  423. .workflow-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 15px 18px; background: linear-gradient(135deg, #fff, #faf8f5); border-bottom: 1px solid var(--border-light); }
  424. .workflow-card.collapsed .workflow-head { border-bottom-color: transparent; }
  425. .workflow-card.collapsed .workflow-body { display: none; }
  426. .workflow-toggle { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-2); cursor: pointer; transition: all .15s; }
  427. .workflow-toggle:hover { border-color: var(--accent); color: var(--accent); }
  428. .workflow-toggle svg { width: 14px; height: 14px; transition: transform .18s var(--ease-out); }
  429. .workflow-card.collapsed .workflow-toggle svg { transform: rotate(0); }
  430. .workflow-card:not(.collapsed) .workflow-toggle svg { transform: rotate(90deg); }
  431. .workflow-info { min-width: 0; display: flex; align-items: center; gap: 10px; }
  432. .shop-name-input { width: min(260px, 34vw); min-width: 150px; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font-size: 15px; font-weight: 700; outline: none; transition: all .15s; }
  433. .shop-name-input:hover { border-color: var(--border); background: #fff; }
  434. .shop-name-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  435. .workflow-folder { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
  436. .workflow-actions { display: flex; gap: 8px; }
  437. .workflow-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
  438. .workflow-step { padding: 14px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 12px; }
  439. .step-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
  440. .step-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  441. .step-head-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  442. .step-head h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 720; line-height: 1.2; }
  443. .step-head span { color: var(--text-3); font-size: 11.5px; line-height: 1.3; }
  444. .step-head-text { position: relative; padding-right: 30px; }
  445. .step-toggle { position: absolute; top: 0; right: 0; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 7px; color: var(--text-2); cursor: pointer; transition: all .15s; }
  446. .step-toggle:hover { border-color: var(--accent); color: var(--accent); }
  447. .step-toggle svg { width: 12px; height: 12px; transition: transform .18s var(--ease-out); }
  448. .step-collapsed .step-toggle svg { transform: rotate(0); }
  449. .workflow-step:not(.step-collapsed) .step-toggle svg { transform: rotate(90deg); }
  450. .step-collapsed .step-body { display: none; }
  451. .step-collapsed { padding-bottom: 12px; }
  452. .step-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  453. .step-body.single { grid-template-columns: minmax(0, 1fr); }
  454. .asset-panel { min-width: 0; padding: 12px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; box-shadow: 0 1px 2px rgba(31,27,24,.03); }
  455. .asset-editor { min-width: 0; display: flex; flex-direction: column; }
  456. .asset-result { min-width: 0; display: flex; flex-direction: column; }
  457. .asset-actions { display: grid; grid-template-columns: minmax(56px, .55fr) minmax(82px, .8fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; margin-top: 9px; }
  458. .step-body.single .asset-actions { margin-top: 0; }
  459. .prompt-modal-overlay { z-index: 10000; }
  460. .prompt-modal { width: min(920px, 88vw); }
  461. .prompt-modal-input { width: 100%; min-height: 340px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #faf9f7; color: var(--text); font-size: 12.5px; line-height: 1.6; font-family: inherit; resize: vertical; outline: none; box-sizing: border-box; }
  462. .prompt-modal-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  463. .prompt-preview-label { display: block; margin-top: 12px; color: var(--text-2); font-size: 11.5px; font-weight: 680; }
  464. .prompt-preview { margin: 6px 0 0; padding: 11px; max-height: 150px; overflow: auto; background: #f7f5f2; border: 1px dashed var(--border); border-radius: 8px; color: var(--text-2); font-family: inherit; font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
  465. .asset-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
  466. .asset-panel-head h4 { margin: 0; color: var(--text); font-size: 13px; font-weight: 680; }
  467. .asset-spec { color: var(--text-3); font-size: 10.5px; white-space: nowrap; }
  468. .prompt-input { width: 100%; min-height: 82px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: #faf9f7; color: var(--text); font-size: 12px; line-height: 1.5; font-family: inherit; resize: vertical; outline: none; box-sizing: border-box; }
  469. .prompt-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  470. .dish-override { min-height: 64px; margin-top: 8px; }
  471. .overlay-row select, .asset-actions select, .dish-work-head .dish-name-input { min-height: 31px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; background: #faf9f7; color: var(--text); font-size: 11.5px; outline: none; width: 100%; box-sizing: border-box; }
  472. .asset-actions select:focus, .overlay-row select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  473. .reference-field label { color: var(--text-2); font-size: 11.5px; font-weight: 600; }
  474. .ref-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  475. .ref-strip:empty::after { content: "无参考菜品"; color: var(--text-3); font-size: 11px; padding: 6px 0; }
  476. .ref-thumb { position: relative; flex: 0 0 auto; width: 50px; height: 50px; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
  477. .ref-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .72; }
  478. .ref-thumb input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  479. .ref-thumb.checked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  480. .ref-thumb.checked::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  481. .ref-thumb.checked img { opacity: 1; }
  482. .overlay-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 7px; align-items: center; margin-top: 8px; }
  483. .overlay-row + .overlay-row { margin-top: 7px; }
  484. .checkbox-label { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 8px; background: #faf9f7; border: 1px solid var(--border); border-radius: 7px; color: var(--text-2); font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  485. .checkbox-label.compact { background: transparent; border: 0; padding: 0; }
  486. .checkbox-label input { width: 14px; height: 14px; accent-color: var(--accent); margin: 0; }
  487. .guard-hint { margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(184,134,11,.16); border-radius: 8px; background: var(--warn-bg); color: #8b6508; font-size: 11.5px; line-height: 1.4; }
  488. .result-area, .dish-result-area { position: relative; min-height: 118px; margin-top: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; }
  489. .step-body.single .asset-panel { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 14px; align-items: stretch; }
  490. .step-body.single .asset-editor { gap: 9px; }
  491. .step-body.single .asset-editor .asset-panel-head { margin-bottom: 0; }
  492. .step-body.single .asset-editor .prompt-input { margin-top: 0; }
  493. .step-body.single .asset-editor .compact-controls { margin: 0; }
  494. .step-body.single .asset-editor .reference-field { flex: 1; }
  495. .step-body.single .asset-editor .ref-strip { min-height: 56px; align-items: stretch; }
  496. .step-body.single .asset-editor .btn { align-self: flex-start; }
  497. .step-body.single .asset-editor .guard-hint { margin-top: 0; }
  498. .step-body.single .asset-result { display: flex; align-items: flex-start; justify-content: stretch; }
  499. .step-body.single .asset-result .result-area { flex: 1 1 auto; width: 100%; height: auto; min-height: 0; margin-top: 0; align-items: center; }
  500. .step-body.single .asset-result .result-area:not(:has(.result-preview)) { aspect-ratio: 1 / 1; }
  501. .step-body.single .asset-result .result-preview { width: 100%; display: flex; flex-direction: column; justify-content: center; }
  502. .step-body.single .asset-result .result-thumb-holder { width: 100%; aspect-ratio: 1 / 1; height: auto; max-height: none; margin: 0 auto; }
  503. .step-body.single .asset-result .result-thumb-holder img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  504. .result-empty { color: var(--text-3); font-size: 11.5px; }
  505. .result-preview { width: 100%; }
  506. .result-thumb-holder { position: relative; width: 100%; max-height: 230px; overflow: hidden; cursor: zoom-in; background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
  507. .result-thumb-holder.transparent-bg { display: block; }
  508. .result-thumb-holder img { width: 100%; max-height: 230px; object-fit: contain; display: block; }
  509. .result-download-icon { position: absolute; right: 6px; top: 6px; z-index: 2; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(29, 28, 26, .68); color: #fff; opacity: 0; transition: opacity .14s var(--ease-out), background .14s var(--ease-out), transform .14s var(--ease-out); }
  510. .result-download-icon svg { width: 14px; height: 14px; display: block; }
  511. .result-thumb-holder:hover .result-download-icon, .creation-frame:hover .result-download-icon, .result-download-icon:focus-visible, .result-download-icon:hover { opacity: 1; }
  512. .result-download-icon:hover { background: var(--accent); transform: translateY(-1px); }
  513. .step-body.single .asset-result .link-btn { justify-self: end; white-space: nowrap; }
  514. .status-line { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--text-2); font-size: 12px; padding: 4px 8px; text-align: center; }
  515. .status-line.is-error { color: var(--fail); }
  516. .status-line.is-warning { color: #8b6508; }
  517. .hover-zoom-preview { position: fixed; z-index: 9999; display: none; max-width: min(52vw, 620px); max-height: 70vh; overflow: hidden; border-radius: 10px; border: 1px solid rgba(31,27,24,.1); background: #fff; box-shadow: 0 20px 46px rgba(31,27,24,.2); pointer-events: none; }
  518. .hover-zoom-preview img { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; }
  519. .poster-crop-panel { margin-top: 8px; padding: 9px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 8px; }
  520. .crop-actions { display: flex; gap: 8px; margin-top: 7px; }
  521. .dish-config-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  522. .dish-work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
  523. .dish-work-card { min-width: 0; padding: 10px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; }
  524. .dish-config { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border-light); }
  525. .dish-config-title { color: var(--text); font-size: 11.5px; font-weight: 680; }
  526. .dish-prompt-status { flex: 0 1 auto; overflow: hidden; color: var(--text-3); font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
  527. .dish-prompt-status.inherit { color: var(--accent-dark); }
  528. .dish-config-actions { display: grid; gap: 6px; margin-top: 7px; }
  529. .dish-config-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  530. .dish-config-actions .btn { width: 100%; }
  531. .dish-config .overlay-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px 5px; margin-top: 0; }
  532. .dish-config .prompt-input { min-height: 84px; margin-top: 8px; font-size: 11px; line-height: 1.45; }
  533. .dish-config .guard-hint { margin-top: 7px; }
  534. .batch-dish-modal { width: min(760px, 92vw); }
  535. .batch-dish-modal .modal-body { padding: 18px 20px 6px; max-height: min(74vh, 680px); overflow: auto; }
  536. .batch-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 9px 11px; background: rgba(255, 107, 53, .07); border: 1px solid rgba(255, 107, 53, .12); border-radius: 9px; color: var(--accent-dark); font-size: 12px; font-weight: 650; }
  537. .batch-summary::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  538. .batch-controls { padding: 10px; margin-bottom: 14px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 10px; }
  539. .batch-controls .overlay-row { grid-template-columns: minmax(96px, auto) minmax(0, 1fr) minmax(0, 1fr); gap: 7px; margin-top: 0; }
  540. .batch-config-label { display: block; margin-bottom: 8px; }
  541. .batch-controls .overlay-row + .overlay-row { margin-top: 7px; }
  542. .batch-prompt { width: 100%; min-height: 240px; margin-top: 6px; font-size: 12px; line-height: 1.6; }
  543. .batch-config-label, .batch-prompt-label { margin-bottom: 7px; color: var(--text-2); font-size: 11.5px; font-weight: 680; }
  544. .batch-prompt-label:not(:first-child) { margin-top: 12px; }
  545. .batch-prompt-preview { margin: 6px 0 0; padding: 11px; max-height: 145px; overflow: auto; background: #f7f5f2; border: 1px dashed var(--border); border-radius: 8px; color: var(--text-2); font-family: inherit; font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
  546. .dish-work-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
  547. .dish-name-input { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  548. .dish-work-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
  549. .dish-frame { margin: 0; min-width: 0; }
  550. .dish-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; border: 1px solid var(--border-light); display: block; }
  551. .dish-frame figcaption { margin-top: 4px; color: var(--text-3); font-size: 10.5px; text-align: center; }
  552. .dish-frame .dish-result-area { min-height: 104px; margin-top: 0; overflow: hidden; background: transparent; border: 0; border-radius: 0; }
  553. .dish-frame .result-preview { width: 100%; }
  554. .dish-frame .result-thumb-holder { width: 100%; aspect-ratio: 1; height: auto; max-height: none; border: 1px solid var(--border-light); border-radius: 7px; }
  555. .dish-frame .result-thumb-holder img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
  556. .link-btn { color: var(--accent); background: transparent; border: 0; padding: 0; font-size: 11.5px; font-weight: 650; cursor: pointer; text-decoration: none; }
  557. .link-btn:hover { color: var(--accent-dark); }
  558. @media (max-width: 1440px) { .step-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  559. @media (max-width: 1080px) {
  560. .workflow-head { grid-template-columns: 1fr; align-items: stretch; }
  561. .step-body, .step-body.single { grid-template-columns: 1fr; }
  562. .step-body.single .asset-panel { grid-template-columns: 1fr; }
  563. .step-body.single .asset-result .result-area { min-height: 240px; }
  564. .overlay-row { grid-template-columns: 1fr; }
  565. }
  566. .shop-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
  567. .shop-head .shop-info { flex: 1; min-width: 0; }
  568. .shop-head .shop-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  569. .shop-head .shop-path { font-size: 12px; color: var(--text-3); margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  570. .shop-head .shop-actions { display: flex; gap: 8px; flex-shrink: 0; }
  571. /* brand-section */
  572. .brand-section { padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
  573. .brand-section .section-title { font-size: 11.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px; }
  574. .brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  575. .brand-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  576. .brand-cell .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-md); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0.05em; position: relative; overflow: hidden; background: var(--bg); color: var(--text-3); }
  577. .brand-cell .thumb img { width: 100%; height: 100%; object-fit: cover; }
  578. .brand-cell .thumb .corner-badge { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 1px 6px; }
  579. .brand-cell .thumb.is-pending { border-style: dashed; font-weight: 500; }
  580. .brand-cell .meta { font-size: 11px; color: var(--text-2); display: flex; justify-content: space-between; gap: 6px; }
  581. .brand-cell .meta .name { color: var(--text); font-weight: 500; }
  582. .brand-cell .meta .status { font-variant-numeric: tabular-nums; }
  583. /* dish-section */
  584. .dish-section { padding: 14px 18px 18px; }
  585. .dish-section .section-title { font-size: 11.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; }
  586. .dish-section .section-title .count { color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
  587. .dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  588. .dish-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; min-width: 0; cursor: pointer; transition: border-color 0.15s; }
  589. .dish-card:hover { border-color: var(--accent); }
  590. .dish-card .dish-thumb { aspect-ratio: 1 / 1; width: 100%; display: block; object-fit: cover; }
  591. .dish-card .thumb-is-pending { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-3); font-size: 20px; border-style: dashed; }
  592. .dish-card .meta-row { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 8px; }
  593. .dish-card .meta-row .name { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  594. .dish-card .meta-row .price { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
  595. /* history gallery */
  596. .history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 14px; }
  597. .history-search { position: relative; flex: 0 1 320px; min-width: 220px; }
  598. .history-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
  599. .history-search input { width: 100%; min-height: 34px; padding: 0 10px 0 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #faf9f7; color: var(--text); font-size: 12.5px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
  600. .history-search input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  601. .history-filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  602. .history-filter { min-height: 30px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; background: #faf9f7; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .14s var(--ease-out); }
  603. .history-filter:hover { color: var(--text); border-color: var(--border); background: #fff; }
  604. .history-filter.active { border-color: rgba(255,107,53,.18); background: rgba(255,107,53,.08); color: var(--accent); }
  605. .history-summary { padding: 0 28px 12px; color: var(--text-3); font-size: 12px; }
  606. .history-gallery { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: start; gap: 14px; padding: 0 28px 60px; }
  607. .history-gallery.empty { display: flex; min-height: clamp(360px, calc(100vh - 330px), 620px); }
  608. .creation-card { break-inside: avoid; margin: 0 0 14px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 12px; transition: transform .18s var(--ease-out), border-color .18s var(--ease-out), box-shadow .18s var(--ease-out); }
  609. .creation-card:hover { transform: translateY(-2px); border-color: var(--border); box-shadow: 0 12px 28px rgba(31,27,24,.08); }
  610. .creation-frame { position: relative; overflow: hidden; cursor: zoom-in; background: var(--bg); }
  611. .creation-frame img { display: block; width: 100%; max-height: 250px; object-fit: cover; transition: transform .25s var(--ease-out); }
  612. .creation-frame.transparent-bg { background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
  613. .creation-kind { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(29,28,26,.68); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(4px); }
  614. .creation-card figcaption { padding: 10px 12px 12px; }
  615. .creation-title { color: var(--text); font-size: 12.5px; font-weight: 650; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  616. .creation-shop { margin-top: 3px; color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  617. .creation-meta { margin-top: 5px; color: var(--text-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
  618. .history-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; text-align: center; }
  619. .history-empty-icon { width: 76px; height: 76px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--text-3); opacity: .16; }
  620. .history-empty-icon svg { width: 100%; height: 100%; }
  621. .history-empty p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; }
  622. .history-empty small { display: block; margin-top: 6px; color: var(--text-3); font-size: 11.5px; }
  623. @media (max-width: 1080px) {
  624. .history-toolbar { align-items: stretch; flex-direction: column; }
  625. .history-search { flex-basis: auto; }
  626. .history-filters { justify-content: flex-start; }
  627. }