style.css 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  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. .field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  146. .field-label-row label { flex: 1 1 auto; margin: 0; }
  147. .settings-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1240px; }
  148. .settings-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  149. /* 显式定位:1 API设置 左上,2 采集配置 右列纵跨两行,3 安全设置 紧贴 1 下方(避免行对齐把 3 推远) */
  150. .settings-forms .field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
  151. .settings-forms .panel,
  152. .panel-designed,
  153. .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); }
  154. .settings-forms .panel { padding: 18px; }
  155. .panel-designed { padding: 18px; }
  156. .panel-designed .panel-body { position: relative; z-index: 1; }
  157. .panel-designed .panel-watermark { right: -42px; bottom: -46px; width: 118px; height: 118px; color: rgba(255, 107, 53, .08); }
  158. .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); }
  159. .stage-icon svg { width: 15px; height: 15px; display: block; }
  160. .panel-watermark { position: absolute; right: -26px; bottom: -30px; width: 104px; height: 104px; color: rgba(255, 107, 53, .12); pointer-events: none; }
  161. .settings-forms .panel-body { position: relative; z-index: 1; }
  162. .panel-watermark svg { width: 100%; height: 100%; display: block; }
  163. .log-watermark { right: -10px; bottom: auto; top: -26px; width: 110px; height: 110px; color: rgba(255, 107, 53, .08); }
  164. .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); }
  165. .settings-log .panel-title,
  166. .settings-log .log-box { position: relative; z-index: 1; }
  167. .settings-actions { display: flex; align-items: center; gap: 8px; }
  168. .settings-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  169. .settings-link {
  170. display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  171. min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  172. background: #fff; color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1;
  173. text-decoration: none; transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
  174. }
  175. .settings-link svg { width: 13px; height: 13px; flex-shrink: 0; }
  176. .settings-link:hover {
  177. border-color: var(--accent); color: var(--accent); background: #fff;
  178. box-shadow: 0 0 0 2px var(--focus-ring);
  179. }
  180. .settings-link-compact { flex: 0 0 auto; min-height: 24px; padding: 0 8px; color: var(--accent); font-size: 11px; }
  181. .settings-link-compact:hover { transform: translateY(-1px); }
  182. .settings-log { height: auto; min-height: 360px; }
  183. .settings-log .log-box { min-height: 0; }
  184. /* 系统日志独立页:面板占满内容区高度 */
  185. #viewLogs.active { display: flex; height: 100%; min-height: 0; }
  186. #viewLogs .content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; }
  187. #viewLogs .settings-log { flex: 1; min-height: 0; height: auto; }
  188. @media (max-width: 960px) {
  189. .settings-forms { grid-template-columns: 1fr; }
  190. .settings-forms > .panel:nth-child(1),
  191. .settings-forms > .panel:nth-child(2),
  192. .settings-forms > .panel:nth-child(3),
  193. .settings-forms > .panel:nth-child(4) { grid-column: auto; grid-row: auto; }
  194. #viewLogs.active { display: block; height: auto; }
  195. #viewLogs .content { min-height: 0; }
  196. #viewLogs .settings-log { flex: none; height: auto; min-height: 420px; }
  197. }
  198. /* ── Buttons ───────────────────────────────────────────── */
  199. .btn {
  200. padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  201. background: transparent; color: var(--text); font-size: 13px; font-weight: 600;
  202. cursor: pointer; transition: background 0.15s, transform 0.05s, border-color 0.15s;
  203. display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px;
  204. }
  205. .btn:hover { filter: brightness(0.96); }
  206. .btn:active { transform: scale(0.97); }
  207. .btn:disabled { opacity: 0.5; cursor: not-allowed; }
  208. .btn-primary { background: var(--accent); color: #fff; }
  209. .btn-primary:hover { background: var(--accent-dark); }
  210. .btn-ghost { background: #f1efec; color: var(--text); border-color: transparent; }
  211. .btn-ghost:hover { background: #ebe7e1; }
  212. .btn-danger { background: var(--fail); color: #fff; }
  213. .btn-danger:hover { background: #b03826; }
  214. .btn-small { padding: 5px 10px; font-size: 12px; min-height: 28px; }
  215. .btn-block { width: 100%; }
  216. .btn svg { width: 12px; height: 12px; display: block; flex-shrink: 0; }
  217. .btn #startBtnIcon, .btn #scanIcon { display: inline-flex; align-items: center; }
  218. .badge svg { width: 10px; height: 10px; display: block; }
  219. /* ── Data Table ────────────────────────────────────────── */
  220. .data-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-body); }
  221. .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); }
  222. .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
  223. .data-table tr:last-child td { border-bottom: none; }
  224. .data-table tbody tr:hover td { background: #faf9f7; }
  225. .data-table .col-actions { text-align: right; white-space: nowrap; }
  226. .data-table .shop-name { font-weight: 600; color: var(--text); }
  227. .data-table .col-folder .badge { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
  228. .data-table .shop-meta { font-size: var(--font-size-small); color: var(--text-3); margin-top: 2px; }
  229. .data-table .num { font-variant-numeric: tabular-nums; }
  230. /* ── Badge ─────────────────────────────────────────────── */
  231. .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); }
  232. .badge-ok { background: var(--ok-bg); color: var(--ok); }
  233. .badge-warn { background: var(--warn-bg); color: var(--warn); }
  234. .badge-fail { background: var(--fail-bg); color: var(--fail); }
  235. .badge-info { background: var(--info-bg); color: var(--info); }
  236. /* ── Progress ──────────────────────────────────────────── */
  237. .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); }
  238. .progress-row:last-child { border-bottom: none; }
  239. .progress-row .left { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
  240. .progress-row .left .badge { flex-shrink: 0; }
  241. .progress-row .left .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  242. .progress-row .left .meta { color: var(--text-3); font-size: var(--font-size-small); flex-shrink: 0; }
  243. .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; }
  244. .progress-bar { display: inline-block; flex: 1; min-width: 56px; height: 6px; background: var(--border-light); border-radius: var(--radius-pill); overflow: hidden; }
  245. .progress-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
  246. /* ── Collapse / Accordion ──────────────────────────────── */
  247. .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); }
  248. .collapse-trigger:hover { color: var(--text); }
  249. .collapse-trigger .chev { display: inline-flex; transition: transform var(--duration-base) var(--ease-out); }
  250. .collapse-trigger .chev svg { width: 10px; height: 10px; display: block; }
  251. .collapse-trigger[aria-expanded="true"] .chev { transform: rotate(90deg); }
  252. /* ── Log ───────────────────────────────────────────────── */
  253. .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; }
  254. .log-line { display: flex; gap: 8px; align-items: baseline; color: #d8d4cd; }
  255. .log-line .log-ts { color: #8a8580; font-variant-numeric: tabular-nums; flex-shrink: 0; }
  256. .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; }
  257. .log-line .log-source.system { background: rgba(124, 179, 232, 0.12); color: #7cb3e8; }
  258. .log-line .log-source.task { background: rgba(255, 107, 53, 0.12); color: #ffa475; }
  259. .log-line .log-lvl { font-weight: 700; flex-shrink: 0; width: 36px; text-align: right; }
  260. .log-line .log-lvl.info { color: #7cb3e8; }
  261. .log-line .log-lvl.ok { color: #5cba7d; }
  262. .log-line .log-lvl.warn { color: #e0a832; }
  263. .log-line .log-lvl.error { color: #e86a5e; }
  264. .log-line .log-msg { word-break: break-all; min-width: 0; }
  265. /* ── Toast ─────────────────────────────────────────────── */
  266. .toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 9999; }
  267. .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; }
  268. .toast.toast-success { background: #1a8a4c; }
  269. .toast.toast-error { background: var(--fail); }
  270. @keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  271. /* ── Modal ─────────────────────────────────────────────── */
  272. .modal-overlay {
  273. position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  274. background: rgba(0, 0, 0, 0.4);
  275. display: flex; align-items: center; justify-content: center;
  276. z-index: 9998;
  277. }
  278. .modal-overlay[hidden] { display: none; }
  279. .modal {
  280. background: var(--card-bg);
  281. border-radius: var(--radius-lg);
  282. box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.24);
  283. width: 460px;
  284. max-width: 90vw;
  285. animation: modal-in var(--duration-base) var(--ease-out) both;
  286. }
  287. @keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  288. .modal-header {
  289. display: flex; align-items: center; justify-content: space-between;
  290. padding: 16px 20px;
  291. border-bottom: 1px solid var(--border-light);
  292. font-size: var(--font-size-h2); font-weight: 600;
  293. }
  294. .modal-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
  295. .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); }
  296. .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; }
  297. .modal-status-icon svg { width: 16px; height: 16px; display: block; }
  298. .modal-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  299. .modal-close {
  300. border: none; background: transparent; cursor: pointer;
  301. font-size: 20px; color: var(--text-3);
  302. width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  303. border-radius: var(--radius-sm);
  304. }
  305. .modal-close:hover { background: #f1efec; color: var(--text); }
  306. .modal-body { padding: 20px; }
  307. .modal-body .field textarea { width: 100%; }
  308. .modal-footer {
  309. display: flex; justify-content: flex-end; gap: 8px;
  310. padding: 12px 20px 16px;
  311. }
  312. /* ── Splash Screen ─────────────────────────────────────── */
  313. .splash {
  314. position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  315. background: var(--sidebar-bg);
  316. display: flex; flex-direction: column; align-items: center; justify-content: center;
  317. z-index: 99999;
  318. transition: opacity 0.4s ease, visibility 0.4s ease;
  319. }
  320. .splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
  321. .splash-logo {
  322. width: 96px; height: 96px; border-radius: 20px; object-fit: contain;
  323. background: #fff; padding: 8px;
  324. animation: splash-pop 0.6s var(--ease-out) both;
  325. }
  326. .splash-name {
  327. font-size: 20px; font-weight: 700; color: #f0ede8; margin-top: 16px;
  328. animation: splash-fade 0.5s 0.2s var(--ease-out) both;
  329. }
  330. .splash-sub {
  331. font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px;
  332. animation: splash-fade 0.5s 0.35s var(--ease-out) both;
  333. }
  334. .splash-bar {
  335. width: 160px; height: 3px; background: rgba(255,255,255,0.1);
  336. border-radius: 999px; margin-top: 24px; overflow: hidden;
  337. animation: splash-fade 0.5s 0.45s var(--ease-out) both;
  338. }
  339. .splash-bar span {
  340. display: block; height: 100%; background: var(--accent); border-radius: inherit;
  341. animation: splash-load 1.2s 0.5s var(--ease-out) both;
  342. }
  343. @keyframes splash-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
  344. @keyframes splash-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  345. @keyframes splash-load { from { width: 0; } to { width: 100%; } }
  346. .splash-powered {
  347. display: flex; align-items: center; gap: 6px; margin-top: 20px;
  348. animation: splash-fade 0.5s 0.6s var(--ease-out) both;
  349. }
  350. .splash-powered span { font-size: 11px; color: rgba(255,255,255,0.35); }
  351. .splash-powered img { height: 18px; opacity: 0.6; }
  352. /* ── Empty State ───────────────────────────────────────── */
  353. .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); }
  354. .panel-progress .empty-hint,
  355. .panel-shops .empty-hint { min-height: 0; }
  356. .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; }
  357. .empty-icon svg { width: 100%; height: 100%; display: block; }
  358. .empty-hint p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; line-height: 1.45; }
  359. .empty-hint small { display: block; margin-top: 6px; color: var(--text-3); font-size: var(--font-size-small); font-weight: 450; }
  360. /* ── Visual Gen Page ───────────────────────────────────── */
  361. .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; }
  362. .select-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
  363. /* compact generation overview */
  364. .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; }
  365. .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; flex: 1; min-width: 0; }
  366. .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); }
  367. .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; }
  368. .metric:hover { transform: translateY(-1px); border-color: var(--border); box-shadow: 0 10px 24px rgba(31, 27, 24, 0.06); }
  369. .metric:hover::before { opacity: 1; }
  370. .metric.accent { border-color: rgba(255, 107, 53, 0.16); }
  371. .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; }
  372. .metric.ok { border-color: rgba(26, 138, 76, 0.14); }
  373. .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; }
  374. .metric.warn { border-color: rgba(184, 134, 11, 0.14); }
  375. .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; }
  376. .metric.fail { border-color: rgba(200, 64, 46, 0.14); }
  377. .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; }
  378. .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; }
  379. .metric-icon svg { width: 100%; height: 100%; display: block; stroke-width: 1.4; }
  380. .metric.accent .metric-icon { color: var(--accent); }
  381. .metric.ok .metric-icon { color: var(--ok); }
  382. .metric.warn .metric-icon { color: var(--warn); }
  383. .metric.fail .metric-icon { color: var(--fail); }
  384. .metric:hover .metric-icon { opacity: 0.16; }
  385. .metric-body { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; gap: 10px; }
  386. .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; }
  387. .metric-label::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--text-3); }
  388. .metric.accent .metric-label::before { background: var(--accent); }
  389. .metric.ok .metric-label::before { background: var(--ok); }
  390. .metric.warn .metric-label::before { background: var(--warn); }
  391. .metric.fail .metric-label::before { background: var(--fail); }
  392. .metric-value { font-size: 38px; font-weight: 770; color: var(--text); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  393. .metric-value small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
  394. .metric .stat-delta { min-height: 14px; font-size: 12px; color: var(--text-3); font-weight: 600; line-height: 1.2; }
  395. .metric.ok .stat-delta { color: var(--ok); }
  396. .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; }
  397. .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%; }
  398. .gen-controls select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); background: #fff; }
  399. .scan-dropdown { position: relative; }
  400. .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; }
  401. .scan-dropdown-trigger:hover { border-color: var(--accent); }
  402. .scan-dropdown-trigger.active { border-color: var(--accent); background: rgba(255, 107, 53, 0.05); }
  403. .scan-dropdown-trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
  404. .scan-dropdown-trigger > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
  405. .scan-dropdown-trigger svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-3); }
  406. .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; }
  407. .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; }
  408. .scan-dropdown-item:hover { background: #f6f4f2; }
  409. .scan-dropdown-item > span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  410. .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; }
  411. .scan-check svg { width: 10px; height: 10px; }
  412. .scan-dropdown-item.selected { background: rgba(255, 107, 53, .07); color: var(--accent); font-weight: 600; }
  413. .scan-dropdown-item.selected .scan-check { border-color: var(--accent); background: var(--accent); color: #fff; }
  414. .gen-controls .field { gap: 6px; }
  415. .gen-controls .btn { width: 100%; min-height: 32px; }
  416. @media (max-width: 1080px) {
  417. .gen-overview { flex-direction: column; gap: 12px; }
  418. .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  419. .metric { min-height: 96px; padding: 16px; }
  420. .metric-value { font-size: 30px; }
  421. .metric-icon { width: 72px; height: 72px; right: -6px; bottom: -10px; }
  422. .gen-controls { flex-basis: auto; }
  423. }
  424. /* shop-cards */
  425. .shop-cards { display: flex; flex-direction: column; gap: 16px; }
  426. .shop-cards:has(.empty-hint) { min-height: clamp(340px, calc(100vh - 300px), 620px); }
  427. .shop-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
  428. /* Complete visual generation workflow */
  429. .workflow-card { overflow: visible; box-shadow: 0 1px 2px rgba(31,27,24,.04); }
  430. .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); }
  431. .workflow-card.collapsed .workflow-head { border-bottom-color: transparent; }
  432. .workflow-card.collapsed .workflow-body { display: none; }
  433. .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; }
  434. .workflow-toggle:hover { border-color: var(--accent); color: var(--accent); }
  435. .workflow-toggle svg { width: 14px; height: 14px; transition: transform .18s var(--ease-out); }
  436. .workflow-card.collapsed .workflow-toggle svg { transform: rotate(0); }
  437. .workflow-card:not(.collapsed) .workflow-toggle svg { transform: rotate(90deg); }
  438. .workflow-info { min-width: 0; display: flex; align-items: center; gap: 10px; }
  439. .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; }
  440. .shop-name-input:hover { border-color: var(--border); background: #fff; }
  441. .shop-name-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  442. .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; }
  443. .workflow-actions { display: flex; gap: 8px; }
  444. .workflow-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
  445. .workflow-step { padding: 14px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 12px; }
  446. .step-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
  447. .step-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  448. .step-head-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  449. .step-head h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 720; line-height: 1.2; }
  450. .step-head span { color: var(--text-3); font-size: 11.5px; line-height: 1.3; }
  451. .step-head-text { position: relative; padding-right: 30px; }
  452. .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; }
  453. .step-toggle:hover { border-color: var(--accent); color: var(--accent); }
  454. .step-toggle svg { width: 12px; height: 12px; transition: transform .18s var(--ease-out); }
  455. .step-collapsed .step-toggle svg { transform: rotate(0); }
  456. .workflow-step:not(.step-collapsed) .step-toggle svg { transform: rotate(90deg); }
  457. .step-collapsed .step-body { display: none; }
  458. .step-collapsed { padding-bottom: 12px; }
  459. .step-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  460. .step-body.single { grid-template-columns: minmax(0, 1fr); }
  461. .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); }
  462. .asset-editor { min-width: 0; display: flex; flex-direction: column; }
  463. .asset-result { min-width: 0; display: flex; flex-direction: column; }
  464. .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; }
  465. .step-body.single .asset-actions { margin-top: 0; }
  466. .prompt-modal-overlay { z-index: 10000; }
  467. .prompt-modal { width: min(920px, 88vw); }
  468. .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; }
  469. .prompt-modal-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  470. .prompt-preview-label { display: block; margin-top: 12px; color: var(--text-2); font-size: 11.5px; font-weight: 680; }
  471. .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; }
  472. .asset-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
  473. .asset-panel-head h4 { margin: 0; color: var(--text); font-size: 13px; font-weight: 680; }
  474. .asset-spec { color: var(--text-3); font-size: 10.5px; white-space: nowrap; }
  475. .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; }
  476. .prompt-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  477. .dish-override { min-height: 64px; margin-top: 8px; }
  478. .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; }
  479. .asset-actions select:focus, .overlay-row select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  480. .reference-field label { color: var(--text-2); font-size: 11.5px; font-weight: 600; }
  481. .ref-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  482. .ref-strip:empty::after { content: "无参考菜品"; color: var(--text-3); font-size: 11px; padding: 6px 0; }
  483. .ref-thumb { position: relative; flex: 0 0 auto; width: 50px; height: 50px; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
  484. .ref-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .72; }
  485. .ref-thumb input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  486. .ref-thumb.checked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  487. .ref-thumb.checked::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  488. .ref-thumb.checked img { opacity: 1; }
  489. .overlay-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 7px; align-items: center; margin-top: 8px; }
  490. .overlay-row + .overlay-row { margin-top: 7px; }
  491. .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; }
  492. .checkbox-label.compact { background: transparent; border: 0; padding: 0; }
  493. .checkbox-label input { width: 14px; height: 14px; accent-color: var(--accent); margin: 0; }
  494. .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; }
  495. .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; }
  496. .step-body.single .asset-panel { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 14px; align-items: stretch; }
  497. .step-body.single .asset-editor { gap: 9px; }
  498. .step-body.single .asset-editor .asset-panel-head { margin-bottom: 0; }
  499. .step-body.single .asset-editor .prompt-input { margin-top: 0; }
  500. .step-body.single .asset-editor .compact-controls { margin: 0; }
  501. .step-body.single .asset-editor .reference-field { flex: 1; }
  502. .step-body.single .asset-editor .ref-strip { min-height: 56px; align-items: stretch; }
  503. .step-body.single .asset-editor .btn { align-self: flex-start; }
  504. .step-body.single .asset-editor .guard-hint { margin-top: 0; }
  505. .step-body.single .asset-result { display: flex; align-items: flex-start; justify-content: stretch; }
  506. .step-body.single .asset-result .result-area { flex: 1 1 auto; width: 100%; height: auto; min-height: 0; margin-top: 0; align-items: center; }
  507. .step-body.single .asset-result .result-area:not(:has(.result-preview)) { aspect-ratio: 1 / 1; }
  508. .step-body.single .asset-result .result-preview { width: 100%; display: flex; flex-direction: column; justify-content: center; }
  509. .step-body.single .asset-result .result-thumb-holder { width: 100%; aspect-ratio: 1 / 1; height: auto; max-height: none; margin: 0 auto; }
  510. .step-body.single .asset-result .result-thumb-holder img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  511. .result-empty { color: var(--text-3); font-size: 11.5px; }
  512. .result-preview { width: 100%; }
  513. .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; }
  514. .result-thumb-holder.transparent-bg { display: block; }
  515. .result-thumb-holder img { width: 100%; max-height: 230px; object-fit: contain; display: block; }
  516. .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); }
  517. .result-download-icon svg { width: 14px; height: 14px; display: block; }
  518. .result-thumb-holder:hover .result-download-icon, .creation-frame:hover .result-download-icon, .result-download-icon:focus-visible, .result-download-icon:hover { opacity: 1; }
  519. .result-download-icon:hover { background: var(--accent); transform: translateY(-1px); }
  520. .step-body.single .asset-result .link-btn { justify-self: end; white-space: nowrap; }
  521. .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; }
  522. .status-line.is-error { color: var(--fail); }
  523. .status-line.is-warning { color: #8b6508; }
  524. .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; }
  525. .hover-zoom-preview img { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; }
  526. .poster-crop-panel { margin-top: 8px; padding: 9px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 8px; }
  527. .crop-actions { display: flex; gap: 8px; margin-top: 7px; }
  528. .dish-config-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  529. .dish-work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
  530. .dish-work-card { min-width: 0; padding: 10px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; }
  531. .dish-config { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border-light); }
  532. .dish-config-title { color: var(--text); font-size: 11.5px; font-weight: 680; }
  533. .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; }
  534. .dish-prompt-status.inherit { color: var(--accent-dark); }
  535. .dish-config-actions { display: grid; gap: 6px; margin-top: 7px; }
  536. .dish-config-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  537. .dish-config-actions .btn { width: 100%; }
  538. .dish-config .overlay-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px 5px; margin-top: 0; }
  539. .dish-config .prompt-input { min-height: 84px; margin-top: 8px; font-size: 11px; line-height: 1.45; }
  540. .dish-config .guard-hint { margin-top: 7px; }
  541. .batch-dish-modal { width: min(760px, 92vw); }
  542. .batch-dish-modal .modal-body { padding: 18px 20px 6px; max-height: min(74vh, 680px); overflow: auto; }
  543. .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; }
  544. .batch-summary::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  545. .batch-controls { padding: 10px; margin-bottom: 14px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 10px; }
  546. .batch-controls .overlay-row { grid-template-columns: minmax(96px, auto) minmax(0, 1fr) minmax(0, 1fr); gap: 7px; margin-top: 0; }
  547. .batch-config-label { display: block; margin-bottom: 8px; }
  548. .batch-controls .overlay-row + .overlay-row { margin-top: 7px; }
  549. .batch-prompt { width: 100%; min-height: 240px; margin-top: 6px; font-size: 12px; line-height: 1.6; }
  550. .batch-config-label, .batch-prompt-label { margin-bottom: 7px; color: var(--text-2); font-size: 11.5px; font-weight: 680; }
  551. .batch-prompt-label:not(:first-child) { margin-top: 12px; }
  552. .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; }
  553. .dish-work-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
  554. .dish-name-input { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  555. .dish-work-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
  556. .dish-frame { margin: 0; min-width: 0; }
  557. .dish-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; border: 1px solid var(--border-light); display: block; }
  558. .dish-frame > img { cursor: zoom-in; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
  559. .dish-frame > img:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(31,27,24,.12); z-index: 1; }
  560. .dish-frame figcaption { margin-top: 4px; color: var(--text-3); font-size: 10.5px; text-align: center; }
  561. .dish-frame .dish-result-area { min-height: 104px; margin-top: 0; overflow: hidden; background: transparent; border: 0; border-radius: 0; }
  562. .dish-frame .result-preview { width: 100%; }
  563. .dish-frame .result-thumb-holder { width: 100%; aspect-ratio: 1; height: auto; max-height: none; border: 1px solid var(--border-light); border-radius: 7px; }
  564. .dish-frame .result-thumb-holder img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
  565. .link-btn { color: var(--accent); background: transparent; border: 0; padding: 0; font-size: 11.5px; font-weight: 650; cursor: pointer; text-decoration: none; }
  566. .link-btn:hover { color: var(--accent-dark); }
  567. @media (max-width: 1440px) { .step-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  568. @media (max-width: 1080px) {
  569. .workflow-head { grid-template-columns: 1fr; align-items: stretch; }
  570. .step-body, .step-body.single { grid-template-columns: 1fr; }
  571. .step-body.single .asset-panel { grid-template-columns: 1fr; }
  572. .step-body.single .asset-result .result-area { min-height: 240px; }
  573. .overlay-row { grid-template-columns: 1fr; }
  574. }
  575. .shop-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
  576. .shop-head .shop-info { flex: 1; min-width: 0; }
  577. .shop-head .shop-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  578. .shop-head .shop-path { font-size: 12px; color: var(--text-3); margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  579. .shop-head .shop-actions { display: flex; gap: 8px; flex-shrink: 0; }
  580. /* brand-section */
  581. .brand-section { padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
  582. .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; }
  583. .brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  584. .brand-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  585. .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); }
  586. .brand-cell .thumb img { width: 100%; height: 100%; object-fit: cover; }
  587. .brand-cell .thumb .corner-badge { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 1px 6px; }
  588. .brand-cell .thumb.is-pending { border-style: dashed; font-weight: 500; }
  589. .brand-cell .meta { font-size: 11px; color: var(--text-2); display: flex; justify-content: space-between; gap: 6px; }
  590. .brand-cell .meta .name { color: var(--text); font-weight: 500; }
  591. .brand-cell .meta .status { font-variant-numeric: tabular-nums; }
  592. /* dish-section */
  593. .dish-section { padding: 14px 18px 18px; }
  594. .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; }
  595. .dish-section .section-title .count { color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
  596. .dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  597. .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; }
  598. .dish-card:hover { border-color: var(--accent); }
  599. .dish-card .dish-thumb { aspect-ratio: 1 / 1; width: 100%; display: block; object-fit: cover; }
  600. .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; }
  601. .dish-card .meta-row { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 8px; }
  602. .dish-card .meta-row .name { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  603. .dish-card .meta-row .price { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
  604. /* history gallery */
  605. .tasks-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; margin-bottom: 14px; }
  606. .tasks-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; flex: 1 1 auto; min-width: 0; }
  607. .task-stat { min-width: 0; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 12px; background: linear-gradient(135deg, #fff, #faf8f5); }
  608. .task-stat span { display: block; color: var(--text-3); font-size: 11px; font-weight: 600; }
  609. .task-stat strong { display: block; margin-top: 5px; color: var(--text); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
  610. .task-stat.running strong { color: var(--info); }
  611. .task-stat.queued strong { color: var(--warn); }
  612. .task-stat.success strong { color: var(--ok); }
  613. .task-stat.failed strong { color: var(--fail); }
  614. .tasks-filters { flex: 0 0 auto; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; max-width: 330px; }
  615. .task-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 60px; }
  616. .task-list.empty { min-height: clamp(360px, calc(100vh - 320px), 640px); }
  617. .task-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 12px; transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), transform .15s var(--ease-out); }
  618. .task-card:hover { border-color: var(--border); box-shadow: 0 10px 24px rgba(31,27,24,.07); transform: translateY(-1px); }
  619. .task-main { flex: 1 1 auto; min-width: 0; }
  620. .task-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  621. .task-title { color: var(--text); font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  622. .task-badge { flex: 0 0 auto; }
  623. .task-badge.running, .task-badge.submitted { background: var(--info-bg); color: var(--info); }
  624. .task-badge.queued { background: var(--warn-bg); color: var(--warn); }
  625. .task-badge.success { background: var(--ok-bg); color: var(--ok); }
  626. .task-badge.failed, .task-badge.timeout { background: var(--fail-bg); color: var(--fail); }
  627. .task-progress { height: 4px; margin: 10px 0 8px; border-radius: 999px; background: var(--border-light); overflow: hidden; }
  628. .task-progress-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); transition: width .3s var(--ease-out); }
  629. .task-meta { color: var(--text-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
  630. .task-notice { margin-top: 7px; padding: 7px 9px; border-radius: 8px; font-size: 11.5px; line-height: 1.4; }
  631. .task-notice.warning { background: var(--warn-bg); color: #8b6508; }
  632. .task-notice.error { background: var(--fail-bg); color: var(--fail); }
  633. .task-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
  634. .task-status-detail { color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  635. .task-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; text-align: center; }
  636. .task-empty-icon { width: 76px; height: 76px; margin: 0 auto 16px; color: var(--text-3); opacity: .16; }
  637. .task-empty-icon svg { width: 100%; height: 100%; }
  638. .task-empty p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; }
  639. .task-empty small { display: block; margin-top: 6px; color: var(--text-3); font-size: 11.5px; }
  640. .history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 14px; }
  641. .history-search { position: relative; flex: 0 1 320px; min-width: 220px; }
  642. .history-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
  643. .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; }
  644. .history-search input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  645. .history-filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  646. .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); }
  647. .history-filter:hover { color: var(--text); border-color: var(--border); background: #fff; }
  648. .history-filter.active { border-color: rgba(255,107,53,.18); background: rgba(255,107,53,.08); color: var(--accent); }
  649. .history-summary { padding: 0 28px 12px; color: var(--text-3); font-size: 12px; }
  650. .history-gallery { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: start; gap: 14px; padding: 0 28px 60px; }
  651. .history-gallery.empty { display: flex; min-height: clamp(360px, calc(100vh - 330px), 620px); }
  652. .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); }
  653. .creation-card:hover { transform: translateY(-2px); border-color: var(--border); box-shadow: 0 12px 28px rgba(31,27,24,.08); }
  654. .creation-frame { position: relative; overflow: hidden; cursor: zoom-in; background: var(--bg); }
  655. .creation-frame img { display: block; width: 100%; max-height: 250px; object-fit: cover; transition: transform .25s var(--ease-out); }
  656. .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; }
  657. .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); }
  658. .creation-card figcaption { padding: 10px 12px 12px; }
  659. .creation-title { color: var(--text); font-size: 12.5px; font-weight: 650; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  660. .creation-shop { margin-top: 3px; color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  661. .creation-meta { margin-top: 5px; color: var(--text-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
  662. .history-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; text-align: center; }
  663. .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; }
  664. .history-empty-icon svg { width: 100%; height: 100%; }
  665. .history-empty p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; }
  666. .history-empty small { display: block; margin-top: 6px; color: var(--text-3); font-size: 11.5px; }
  667. @media (max-width: 1080px) {
  668. .history-toolbar { align-items: stretch; flex-direction: column; }
  669. .history-search { flex-basis: auto; }
  670. .history-filters { justify-content: flex-start; }
  671. }
  672. /* ═══════════════════════════════════════════════════════════════
  673. 数据报表 · 淘宝闪购经营数据中台
  674. ═══════════════════════════════════════════════════════════════ */
  675. .entity-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  676. .entity-tabs-empty { font-size: var(--font-size-body); color: var(--text-3); padding: 10px 0; }
  677. .entity-tab {
  678. display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  679. background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-pill);
  680. color: var(--text-2); font-size: var(--font-size-body); cursor: pointer;
  681. transition: border-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
  682. }
  683. .entity-tab:hover { border-color: var(--accent); color: var(--text); }
  684. .entity-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  685. .entity-tab.active .entity-meta { color: rgba(255, 255, 255, 0.8); }
  686. .entity-tab .entity-name { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  687. .entity-tab .entity-meta { font-size: var(--font-size-small); color: var(--text-3); }
  688. .report-toolbar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; }
  689. .report-field-sm { width: 130px; flex: 0 0 auto; }
  690. .report-field-md { width: 240px; flex: 0 0 auto; }
  691. .report-field-lg { width: 220px; flex: 0 0 auto; }
  692. .report-field-grow { flex: 1 1 160px; min-width: 140px; }
  693. .report-date-range { display: flex; align-items: center; gap: 6px; }
  694. .report-date-range input { min-width: 0; flex: 1; }
  695. .report-toolbar-actions { display: flex; gap: 8px; margin-left: auto; }
  696. #reportKpis { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 14px; }
  697. #reportKpis .metric { min-height: 84px; padding: 14px 16px; }
  698. @media (max-width: 1280px) { #reportKpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  699. .report-table-panel { min-height: clamp(320px, calc(100vh - 430px), 640px); }
  700. .report-table-wrap { overflow: auto; flex: 1; min-height: 0; }
  701. .report-table { min-width: 1080px; }
  702. .report-table th { position: sticky; top: 0; z-index: 2; cursor: pointer; user-select: none; white-space: nowrap; }
  703. .report-table th:hover { color: var(--accent); }
  704. .report-table .col-num { text-align: right; font-variant-numeric: tabular-nums; }
  705. .report-table td.col-date, .report-table td.col-text { white-space: nowrap; }
  706. .report-table td.col-money, .report-table td.col-int { color: var(--text); }
  707. .report-table td.col-reserved { color: var(--text-3); }
  708. .val-good { color: var(--ok); font-weight: 650; }
  709. .val-warn { color: var(--warn); font-weight: 650; }
  710. .val-bad { color: var(--fail); font-weight: 650; }
  711. .colcfg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; max-height: 46vh; overflow-y: auto; padding: 4px 2px; }
  712. .colcfg-item { display: flex; align-items: center; gap: 8px; font-size: var(--font-size-body); color: var(--text); cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm); }
  713. .colcfg-item:hover { background: #f6f4f2; }
  714. .colcfg-item input { margin: 0; }
  715. .colcfg-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  716. .colcfg-reserved { font-size: 10px; font-style: normal; color: var(--text-3); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0 6px; }
  717. .modal-wide { width: min(520px, calc(100vw - 48px)); }
  718. .modal-body .badge { margin-bottom: 12px; }
  719. .sync-progress-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
  720. .sync-progress-bar { flex: 1; height: 8px; border-radius: var(--radius-pill); background: #f1efec; overflow: hidden; }
  721. .sync-progress-bar span { display: block; height: 100%; width: 0; border-radius: var(--radius-pill); background: var(--accent); transition: width var(--duration-slow) var(--ease-out); }
  722. .sync-stat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  723. .sync-steps { max-height: 150px; overflow-y: auto; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
  724. .sync-step { display: flex; align-items: baseline; gap: 8px; font-size: var(--font-size-small); }
  725. .sync-step span { flex: 0 0 auto; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
  726. .sync-step em { font-style: normal; color: var(--text-3); }
  727. .sync-step.ok em { color: var(--ok); }
  728. .sync-step.fail em { color: var(--fail); }
  729. /* ── 分段控制器(数据报表 · 视图切换) ───────────────────── */
  730. .seg-control { display: inline-flex; align-items: stretch; padding: 3px; gap: 2px; background: #f1efec; border-radius: var(--radius-pill); }
  731. .seg-control button {
  732. min-height: 26px; min-width: 0; padding: 4px 14px; border: 0; border-radius: var(--radius-pill);
  733. background: transparent; color: var(--text-2); font-size: var(--font-size-body); font-weight: 500; line-height: 1.4;
  734. cursor: pointer; transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
  735. white-space: nowrap;
  736. }
  737. .seg-control button:hover { color: var(--text); }
  738. .seg-control button.active { background: var(--card-bg); color: var(--accent); font-weight: 600; box-shadow: 0 1px 3px rgba(31, 27, 24, .12); }
  739. .seg-control button:disabled { opacity: .5; cursor: not-allowed; }
  740. /* ── 智能问数 + 图表面板 ─────────────────────────────────── */
  741. .ask-panel { padding: 14px 16px; margin-bottom: 14px; }
  742. .ask-row { display: flex; align-items: center; gap: 10px; }
  743. .ask-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent); white-space: nowrap; }
  744. .ask-label svg { width: 16px; height: 16px; }
  745. .ask-row input[type="text"] { flex: 1; min-width: 0; }
  746. .ask-row .btn { flex: 0 0 auto; }
  747. .ask-reply { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: var(--font-size-body); }
  748. .ask-reply .badge { flex: 0 0 auto; margin-top: 1px; }
  749. .ask-chart { width: 100%; height: 300px; margin-top: 8px; }
  750. .ask-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
  751. .ask-error { margin-top: 10px; }
  752. .help-inline { font-weight: 400; color: var(--text-3); font-size: 11px; margin-left: 6px; }
  753. .settings-link-btn { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; border: 0; background: transparent; color: var(--info); font-size: var(--font-size-small); padding: 4px 6px; border-radius: var(--radius-sm); }
  754. .settings-link-btn:hover { background: var(--info-bg); }
  755. .settings-link-btn svg { width: 12px; height: 12px; }
  756. .settings-link-btn:disabled { opacity: .5; cursor: not-allowed; }
  757. .charts-panel { padding: 16px; margin-bottom: 14px; }
  758. .chart-metric-select { max-width: 170px; }
  759. .charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  760. .chart-box { min-width: 0; }
  761. .chart-title { font-size: var(--font-size-small); color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
  762. .chart { width: 100%; height: 260px; }
  763. @media (max-width: 1080px) { .charts-grid { grid-template-columns: 1fr; } .ask-chart { height: 240px; } }
  764. /* ── 设置页 · API 设置面板 tab ──────────────────────────── */
  765. .settings-api-tabs { margin-left: auto; }
  766. .settings-api-tabs button { min-height: 24px; padding: 3px 12px; font-size: var(--font-size-small); }
  767. .settings-tab-body[hidden] { display: none; }
  768. .label-links { display: inline-flex; align-items: center; gap: 10px; }
  769. /* ── 客户端连接排查 · ? 弹窗 ─────────────────────────────── */
  770. .conn-help-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
  771. .help-btn {
  772. width: 18px; height: 18px; min-width: 0; min-height: 0; padding: 0;
  773. border-radius: 50%; border: 1px solid var(--border);
  774. background: var(--card-bg); color: var(--text-2);
  775. font-size: 11px; font-weight: 700; line-height: 1;
  776. display: inline-flex; align-items: center; justify-content: center;
  777. cursor: pointer; transition: color var(--duration-base), border-color var(--duration-base), background var(--duration-base);
  778. }
  779. .help-btn:hover, .help-btn.active { color: #fff; background: var(--accent); border-color: var(--accent); }
  780. .help-popover {
  781. position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  782. width: min(460px, calc(100vw - 64px));
  783. background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  784. box-shadow: 0 18px 44px rgba(31, 27, 24, .16);
  785. padding: 16px 18px; text-align: left;
  786. font-size: var(--font-size-body); color: var(--text);
  787. }
  788. .help-popover::before {
  789. content: ""; position: absolute; top: -6px; right: 14px; width: 10px; height: 10px;
  790. background: var(--card-bg); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  791. transform: rotate(45deg);
  792. }
  793. .help-popover-title { font-weight: 700; font-size: var(--font-size-h2); margin-bottom: 8px; }
  794. .help-popover-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
  795. .help-popover-steps li { line-height: 1.55; }
  796. .help-popover-steps code, .help-popover-note code {
  797. background: #f6f4f2; border: 1px solid var(--border-light); border-radius: 4px;
  798. padding: 1px 5px; font-size: 11px; word-break: break-all;
  799. }
  800. .help-popover-note {
  801. margin-top: 10px; padding: 8px 10px; border-radius: 8px;
  802. background: var(--warn-bg); color: var(--warn); font-size: var(--font-size-small);
  803. }
  804. /* ── KPI 卡 · 数值自适应不截断 ──────────────────────────── */
  805. #reportKpis .metric { padding: 12px 14px; }
  806. #reportKpis .metric-body { gap: 6px; }
  807. #reportKpis .metric-value {
  808. font-size: clamp(15px, 1.35vw, 26px);
  809. white-space: nowrap;
  810. overflow: hidden;
  811. text-overflow: ellipsis;
  812. max-width: 100%;
  813. }
  814. @media (max-width: 1500px) { #reportKpis .metric-value { font-size: clamp(14px, 1.15vw, 20px); } }
  815. /* 空状态徽章不占位,保证测试按钮与图像模型 tab 同样居中 */
  816. .badge:empty { display: none; }
  817. /* ── 趋势图表 · 环比指标条 ──────────────────────────────── */
  818. .delta-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  819. .delta-card {
  820. background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 12px;
  821. padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  822. }
  823. .delta-label { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
  824. .delta-value { font-size: 17px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  825. .delta-line { display: flex; align-items: center; gap: 5px; font-size: 11px; min-height: 15px; flex-wrap: wrap; }
  826. .delta { font-weight: 700; }
  827. .delta.up { color: var(--ok); }
  828. .delta.down { color: var(--fail); }
  829. .delta-flat { color: var(--text-3); }
  830. .delta-none { color: var(--text-3); }
  831. .delta-sub { color: var(--text-3); font-size: 10px; }
  832. @media (max-width: 1280px) { .delta-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  833. /* ── 趋势图表 · 四图网格 ────────────────────────────────── */
  834. .ana-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 40px; }
  835. .ana-cell { min-width: 0; }
  836. .ana-span2 { grid-column: span 2; }
  837. .chart-lg { width: 100%; height: 300px; }
  838. .ana-compare-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: var(--font-size-body); color: var(--text-2); cursor: pointer; padding-bottom: 2px; white-space: nowrap; }
  839. .ana-compare-toggle input { margin: 0; }
  840. @media (max-width: 1080px) { .ana-grid { grid-template-columns: 1fr; } .ana-span2 { grid-column: span 1; } }
  841. /* ── 智能问数 · 机器人 FAB + 对话弹窗 ───────────────────── */
  842. .chatbot-fab {
  843. position: fixed; right: 26px; bottom: 48px; z-index: 90;
  844. width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  845. background: linear-gradient(135deg, var(--accent) 0%, #ff8a5c 100%);
  846. color: #fff; display: flex; align-items: center; justify-content: center;
  847. box-shadow: 0 10px 26px rgba(255, 107, 53, .4);
  848. transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
  849. }
  850. .chatbot-fab svg { width: 26px; height: 26px; }
  851. .chatbot-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 32px rgba(255, 107, 53, .48); }
  852. .chatbot-fab.active { box-shadow: 0 0 0 3px var(--focus-ring), 0 10px 26px rgba(255, 107, 53, .4); }
  853. .chatbot-fab[hidden] { display: none; }
  854. .chatbot-panel {
  855. position: fixed; right: 26px; bottom: 114px; z-index: 95;
  856. width: min(400px, calc(100vw - 40px)); height: min(600px, calc(100vh - 140px));
  857. display: flex; flex-direction: column; overflow: hidden;
  858. background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  859. box-shadow: 0 24px 60px rgba(31, 27, 24, .22);
  860. }
  861. .chatbot-panel[hidden] { display: none; }
  862. .chatbot-head {
  863. display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  864. border-bottom: 1px solid var(--border-light); background: linear-gradient(135deg, #fff 0%, #faf8f5 100%);
  865. }
  866. .chatbot-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: var(--font-size-h2); color: var(--text); }
  867. .chatbot-title svg { width: 18px; height: 18px; color: var(--accent); }
  868. .chatbot-sub { flex: 1; font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  869. .chatbot-icon-btn {
  870. width: 26px; height: 26px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 7px;
  871. background: transparent; color: var(--text-2); cursor: pointer;
  872. display: inline-flex; align-items: center; justify-content: center;
  873. }
  874. .chatbot-icon-btn:hover { background: #f1efec; color: var(--text); }
  875. .chatbot-icon-btn svg { width: 15px; height: 15px; }
  876. .chatbot-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #faf9f7; }
  877. .chatbot-msg { display: flex; }
  878. .chatbot-msg.user { justify-content: flex-end; }
  879. .chatbot-msg.bot { justify-content: flex-start; }
  880. .chatbot-bubble {
  881. max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.55;
  882. background: #fff; border: 1px solid var(--border-light); color: var(--text); word-break: break-word;
  883. }
  884. .chatbot-msg.user .chatbot-bubble { background: var(--accent); border-color: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
  885. .chatbot-msg.bot .chatbot-bubble { border-bottom-left-radius: 4px; }
  886. .chatbot-msg .chatbot-bubble.error { background: var(--fail-bg); border-color: transparent; color: var(--fail); }
  887. .chatbot-bubble.typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
  888. .chatbot-bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: chatblink 1.2s infinite; }
  889. .chatbot-bubble.typing span:nth-child(2) { animation-delay: .2s; }
  890. .chatbot-bubble.typing span:nth-child(3) { animation-delay: .4s; }
  891. @keyframes chatblink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
  892. .chatbot-chart { width: 100%; height: 220px; margin-top: 8px; border: 1px solid var(--border-light); border-radius: 10px; background: #fff; }
  893. .chatbot-msg-actions { margin-top: 6px; }
  894. .chatbot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 4px; }
  895. .chatbot-chips button {
  896. border: 1px solid var(--border); background: #fff; color: var(--text-2);
  897. font-size: 11px; padding: 4px 10px; border-radius: var(--radius-pill); cursor: pointer;
  898. }
  899. .chatbot-chips button:hover { border-color: var(--accent); color: var(--accent); }
  900. .chatbot-input-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border-light); background: #fff; }
  901. .chatbot-input-row input {
  902. flex: 1; min-width: 0; min-height: 36px;
  903. padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  904. background: #faf9f7; color: var(--text); font-size: 12.5px; font-family: inherit;
  905. outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
  906. }
  907. .chatbot-input-row input::placeholder { color: var(--text-3); }
  908. .chatbot-input-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); background: #fff; }
  909. .chatbot-input-row .btn {
  910. flex: 0 0 auto; width: 36px; min-width: 36px; height: 36px; padding: 0;
  911. border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  912. }
  913. .chatbot-input-row .btn svg { width: 16px; height: 16px; }
  914. /* 图标按钮(视觉生成 · 保存弹层) */
  915. .btn.icon-btn { width: 34px; min-width: 34px; padding: 0; justify-content: center; }
  916. .btn.icon-btn svg { width: 16px; height: 16px; display: block; }
  917. /* ── 系统设置 · 两列布局 + 面板独立保存 ─────────────────── */
  918. .settings-col > .panel { padding: 18px; }
  919. .panel-save-row { display: flex; align-items: center; gap: 10px; padding-top: 4px; border-top: 1px dashed var(--border-light); margin-top: 2px; }
  920. .panel-save-row .badge:empty { display: none; }
  921. @media (max-width: 1080px) { .settings-workspace { grid-template-columns: 1fr; } }
  922. /* ── 数据中台 ─────────────────────────────────────────────── */
  923. #lakeKpis { margin-bottom: 14px; }
  924. #lakeKpis .metric { min-height: 92px; padding: 14px 16px; }
  925. #lakeKpis .metric-body { gap: 6px; }
  926. #lakeKpis .metric-value { font-size: clamp(15px, 1.3vw, 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  927. #lakeKpis .metric-sub { font-size: var(--font-size-small); color: var(--text-3); line-height: 1.35; }
  928. .data-table .empty-cell { color: var(--text-3); text-align: center; padding: 28px 12px; }
  929. /* ── 报表分页条 ───────────────────────────────────────────── */
  930. .report-pager { display: flex; align-items: center; gap: 10px; padding: 10px 12px 2px; flex-wrap: wrap; }
  931. .report-pager:empty { display: none; }
  932. .pager-info { font-size: var(--font-size-small); color: var(--text-2); }
  933. .pager-note { color: var(--text-3); margin-left: auto; }
  934. /* 全部字段模式:列宽随内容自适应,容器横向滚动 */
  935. .report-table.raw-cols { min-width: max-content; }
  936. .report-table.raw-cols th, .report-table.raw-cols td { white-space: nowrap; }
  937. /* 中台页内 tab 条(湖全景/明细数据) */
  938. .lake-tabs { margin-bottom: 14px; max-width: fit-content; }