style.css 109 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340
  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-beta { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 2px 6px; border-radius: var(--radius-pill); color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.14); }
  74. .nav-item.active .nav-beta { color: #ffd9c7; background: rgba(255, 107, 53, 0.18); border-color: rgba(255, 107, 53, 0.35); }
  75. .nav-item:hover { background: var(--sidebar-hover-bg); color: #f0ede8; }
  76. .nav-item.active { background: var(--sidebar-active-bg); color: var(--accent); font-weight: 600; }
  77. .nav-item .ico { width: 16px; display: inline-flex; align-items: center; justify-content: center; opacity: 0.9; }
  78. .nav-item .ico svg { width: 16px; height: 16px; display: block; }
  79. .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; gap: 8px; }
  80. .sidebar-bottom span { white-space: nowrap; }
  81. .sidebar-powered { height: 14px; opacity: 0.4; }
  82. .main-wrap { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; }
  83. /* ── Page Header ───────────────────────────────────────── */
  84. .page-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
  85. .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); }
  86. .page-header .sub { font-size: var(--font-size-small); color: var(--text-2); margin-top: 4px; }
  87. .page-header .toolbar { display: flex; gap: 8px; }
  88. /* ── Content Area ──────────────────────────────────────── */
  89. main.content { padding: var(--page-padding-y) var(--page-padding-x) var(--page-padding-bottom); }
  90. .view { display: none; }
  91. .view.active { display: block; }
  92. /* ── Crawl Grid (双栏) ─────────────────────────────────── */
  93. .crawl-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
  94. .left-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  95. .right-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  96. #viewCrawl.active { display: flex; height: 100%; min-height: 0; }
  97. #viewCrawl .content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; }
  98. #viewCrawl .crawl-grid { flex: 1; min-height: 0; align-items: stretch; }
  99. #viewCrawl .left-col, #viewCrawl .right-col { min-height: 0; }
  100. #viewCrawl .panel-progress { flex: 1; min-height: 180px; height: auto; }
  101. #viewCrawl .panel-shops { flex: 1; min-height: 0; height: auto; }
  102. @media (max-width: 900px) {
  103. .crawl-grid { grid-template-columns: 1fr !important; }
  104. .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  105. #viewCrawl.active { display: block; height: auto; }
  106. #viewCrawl .crawl-grid { flex: none; }
  107. #viewCrawl .panel-progress, #viewCrawl .panel-shops { flex: none; height: 320px; }
  108. }
  109. /* ── Panel ─────────────────────────────────────────────── */
  110. .panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
  111. .panel-narrow { padding: 16px; }
  112. .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; }
  113. .panel-title .actions { display: flex; gap: 8px; align-items: center; }
  114. .panel-body { display: flex; flex-direction: column; gap: 12px; }
  115. .panel-hint { font-size: var(--font-size-small); color: var(--text-3); margin-top: -4px; }
  116. /* Fixed-height panels (right column) */
  117. .panel-fixed { overflow: hidden; display: flex; flex-direction: column; }
  118. .panel-fixed .panel-title { flex-shrink: 0; }
  119. .panel-shops { height: 380px; }
  120. .panel-shops > div:last-child { flex: 1; display: flex; flex-direction: column; overflow: auto; min-height: 0; }
  121. .panel-progress { height: 260px; }
  122. .panel-progress #progressList { display: flex; flex-direction: column; overflow-y: auto; flex: 1; min-height: 0; }
  123. .panel-log { height: 240px; }
  124. .panel-log .log-box { flex: 1; min-height: 0; max-height: none; }
  125. .stage-marker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: var(--font-size-h2); font-weight: 600; color: var(--text); }
  126. .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; }
  127. /* ── Form Fields ───────────────────────────────────────── */
  128. .field { display: flex; flex-direction: column; gap: 5px; }
  129. .field label { font-size: var(--font-size-small); color: var(--text-2); font-weight: 500; }
  130. .field .req { color: var(--fail); margin-left: 2px; }
  131. .field input, .field select, .field textarea {
  132. padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  133. background: #faf9f7; color: var(--text); font-size: var(--font-size-body); font-family: inherit;
  134. outline: none; transition: border-color 0.15s, box-shadow 0.15s; min-height: 32px; box-sizing: border-box;
  135. resize: vertical;
  136. }
  137. .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); background: #fff; }
  138. .field input:disabled {
  139. background: #efece8;
  140. border-color: var(--border-light);
  141. color: var(--text-3);
  142. cursor: not-allowed;
  143. opacity: 1;
  144. }
  145. .help { font-size: 11px; color: var(--text-3); }
  146. .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  147. .field-row .field input { width: 100%; min-width: 0; }
  148. .field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  149. .field-label-row label { flex: 1 1 auto; margin: 0; }
  150. .settings-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1240px; }
  151. .settings-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  152. /* 显式定位:1 API设置 左上,2 采集配置 右列纵跨两行,3 安全设置 紧贴 1 下方(避免行对齐把 3 推远) */
  153. .settings-forms .field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
  154. /* 钉钉 AI 表格三张表名:一行三列(窄屏自动换行) */
  155. .sheet-names-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 6px; }
  156. .settings-forms .panel,
  157. .panel-designed,
  158. .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); }
  159. .settings-forms .panel { padding: 18px; }
  160. .panel-designed { padding: 18px; }
  161. .panel-designed .panel-body { position: relative; z-index: 1; }
  162. .panel-designed .panel-watermark { right: -42px; bottom: -46px; width: 118px; height: 118px; color: rgba(255, 107, 53, .08); }
  163. .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); }
  164. .stage-icon svg { width: 15px; height: 15px; display: block; }
  165. .panel-watermark { position: absolute; right: -26px; bottom: -30px; width: 104px; height: 104px; color: rgba(255, 107, 53, .12); pointer-events: none; }
  166. .settings-forms .panel-body { position: relative; z-index: 1; }
  167. .panel-watermark svg { width: 100%; height: 100%; display: block; }
  168. .log-watermark { right: -10px; bottom: auto; top: -26px; width: 110px; height: 110px; color: rgba(255, 107, 53, .08); }
  169. .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); }
  170. .settings-log .panel-title,
  171. .settings-log .log-box { position: relative; z-index: 1; }
  172. .settings-actions { display: flex; align-items: center; gap: 8px; }
  173. .settings-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  174. .settings-link {
  175. display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  176. min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  177. background: #fff; color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1;
  178. text-decoration: none; transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
  179. }
  180. .settings-link svg { width: 13px; height: 13px; flex-shrink: 0; }
  181. .settings-link:hover {
  182. border-color: var(--accent); color: var(--accent); background: #fff;
  183. box-shadow: 0 0 0 2px var(--focus-ring);
  184. }
  185. .settings-link-compact { flex: 0 0 auto; min-height: 24px; padding: 0 8px; color: var(--accent); font-size: 11px; }
  186. .settings-link-compact:hover { transform: translateY(-1px); }
  187. .settings-log { height: auto; min-height: 360px; }
  188. .settings-log .log-box { min-height: 0; }
  189. /* 系统日志独立页:面板占满内容区高度 */
  190. #viewLogs.active { display: flex; height: 100%; min-height: 0; }
  191. #viewLogs .content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; }
  192. #viewLogs .settings-log { flex: 1; min-height: 0; height: auto; }
  193. @media (max-width: 960px) {
  194. .settings-forms { grid-template-columns: 1fr; }
  195. .settings-forms > .panel:nth-child(1),
  196. .settings-forms > .panel:nth-child(2),
  197. .settings-forms > .panel:nth-child(3),
  198. .settings-forms > .panel:nth-child(4) { grid-column: auto; grid-row: auto; }
  199. #viewLogs.active { display: block; height: auto; }
  200. #viewLogs .content { min-height: 0; }
  201. #viewLogs .settings-log { flex: none; height: auto; min-height: 420px; }
  202. }
  203. /* ── Buttons ───────────────────────────────────────────── */
  204. .btn {
  205. padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  206. background: transparent; color: var(--text); font-size: 13px; font-weight: 600;
  207. cursor: pointer; transition: background 0.15s, transform 0.05s, border-color 0.15s;
  208. display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px;
  209. }
  210. .btn:hover { filter: brightness(0.96); }
  211. .btn:active { transform: scale(0.97); }
  212. .btn:disabled { opacity: 0.5; cursor: not-allowed; }
  213. .btn-primary { background: var(--accent); color: #fff; }
  214. .btn-primary:hover { background: var(--accent-dark); }
  215. .btn-ghost { background: #f1efec; color: var(--text); border-color: transparent; }
  216. .btn-ghost:hover { background: #ebe7e1; }
  217. .btn-danger { background: var(--fail); color: #fff; }
  218. .btn-danger:hover { background: #b03826; }
  219. .btn-small { padding: 5px 10px; font-size: 12px; min-height: 28px; }
  220. .btn-block { width: 100%; }
  221. .btn svg { width: 12px; height: 12px; display: block; flex-shrink: 0; }
  222. .btn #startBtnIcon, .btn #scanIcon { display: inline-flex; align-items: center; }
  223. .badge svg { width: 10px; height: 10px; display: block; }
  224. /* ── Data Table ────────────────────────────────────────── */
  225. .data-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-body); }
  226. .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); }
  227. .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
  228. .data-table tr:last-child td { border-bottom: none; }
  229. .data-table tbody tr:hover td { background: #faf9f7; }
  230. .data-table .col-actions { text-align: right; white-space: nowrap; }
  231. .data-table .shop-name { font-weight: 600; color: var(--text); }
  232. .data-table .col-folder .badge { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
  233. .data-table .shop-meta { font-size: var(--font-size-small); color: var(--text-3); margin-top: 2px; }
  234. .data-table .num { font-variant-numeric: tabular-nums; }
  235. /* ── Badge ─────────────────────────────────────────────── */
  236. .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); }
  237. .badge-ok { background: var(--ok-bg); color: var(--ok); }
  238. .badge-warn { background: var(--warn-bg); color: var(--warn); }
  239. .badge-fail { background: var(--fail-bg); color: var(--fail); }
  240. .badge-info { background: var(--info-bg); color: var(--info); }
  241. /* ── Progress ──────────────────────────────────────────── */
  242. .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); }
  243. .progress-row:last-child { border-bottom: none; }
  244. .progress-row .left { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
  245. .progress-row .left .badge { flex-shrink: 0; }
  246. .progress-row .left .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  247. .progress-row .left .meta { color: var(--text-3); font-size: var(--font-size-small); flex-shrink: 0; }
  248. .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; }
  249. .progress-bar { display: inline-block; flex: 1; min-width: 56px; height: 6px; background: var(--border-light); border-radius: var(--radius-pill); overflow: hidden; }
  250. .progress-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
  251. /* ── Collapse / Accordion ──────────────────────────────── */
  252. .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); }
  253. .collapse-trigger:hover { color: var(--text); }
  254. .collapse-trigger .chev { display: inline-flex; transition: transform var(--duration-base) var(--ease-out); }
  255. .collapse-trigger .chev svg { width: 10px; height: 10px; display: block; }
  256. .collapse-trigger[aria-expanded="true"] .chev { transform: rotate(90deg); }
  257. /* ── Log ───────────────────────────────────────────────── */
  258. .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; }
  259. .log-line { display: flex; gap: 8px; align-items: baseline; color: #d8d4cd; }
  260. .log-line .log-ts { color: #8a8580; font-variant-numeric: tabular-nums; flex-shrink: 0; }
  261. .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; }
  262. .log-line .log-source.system { background: rgba(124, 179, 232, 0.12); color: #7cb3e8; }
  263. .log-line .log-source.task { background: rgba(255, 107, 53, 0.12); color: #ffa475; }
  264. .log-line .log-lvl { font-weight: 700; flex-shrink: 0; width: 36px; text-align: right; }
  265. .log-line .log-lvl.info { color: #7cb3e8; }
  266. .log-line .log-lvl.ok { color: #5cba7d; }
  267. .log-line .log-lvl.warn { color: #e0a832; }
  268. .log-line .log-lvl.error { color: #e86a5e; }
  269. .log-line .log-msg { word-break: break-all; min-width: 0; }
  270. /* ── Toast ─────────────────────────────────────────────── */
  271. .toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 9999; }
  272. .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; }
  273. .toast.toast-success { background: #1a8a4c; }
  274. .toast.toast-error { background: var(--fail); }
  275. @keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  276. /* ── Modal ─────────────────────────────────────────────── */
  277. .modal-overlay {
  278. position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  279. background: rgba(0, 0, 0, 0.4);
  280. display: flex; align-items: center; justify-content: center;
  281. z-index: 9998;
  282. }
  283. .modal-overlay[hidden] { display: none; }
  284. .modal {
  285. background: var(--card-bg);
  286. border-radius: var(--radius-lg);
  287. box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.24);
  288. width: 460px;
  289. max-width: 90vw;
  290. animation: modal-in var(--duration-base) var(--ease-out) both;
  291. }
  292. @keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  293. .modal-header {
  294. display: flex; align-items: center; justify-content: space-between;
  295. padding: 16px 20px;
  296. border-bottom: 1px solid var(--border-light);
  297. font-size: var(--font-size-h2); font-weight: 600;
  298. }
  299. .modal-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
  300. .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); }
  301. .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; }
  302. .modal-status-icon svg { width: 16px; height: 16px; display: block; }
  303. .modal-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  304. .modal-close {
  305. border: none; background: transparent; cursor: pointer;
  306. font-size: 20px; color: var(--text-3);
  307. width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  308. border-radius: var(--radius-sm);
  309. }
  310. .modal-close:hover { background: #f1efec; color: var(--text); }
  311. .modal-body { padding: 20px; }
  312. .modal-body .field textarea { width: 100%; }
  313. .modal-footer {
  314. display: flex; justify-content: flex-end; gap: 8px;
  315. padding: 12px 20px 16px;
  316. }
  317. /* ── Splash Screen ─────────────────────────────────────── */
  318. .splash {
  319. position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  320. background: var(--sidebar-bg);
  321. display: flex; flex-direction: column; align-items: center; justify-content: center;
  322. z-index: 99999;
  323. transition: opacity 0.4s ease, visibility 0.4s ease;
  324. }
  325. .splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
  326. .splash-logo {
  327. width: 96px; height: 96px; border-radius: 20px; object-fit: contain;
  328. background: #fff; padding: 8px;
  329. animation: splash-pop 0.6s var(--ease-out) both;
  330. }
  331. .splash-name {
  332. font-size: 20px; font-weight: 700; color: #f0ede8; margin-top: 16px;
  333. animation: splash-fade 0.5s 0.2s var(--ease-out) both;
  334. }
  335. .splash-sub {
  336. font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px;
  337. animation: splash-fade 0.5s 0.35s var(--ease-out) both;
  338. }
  339. .splash-bar {
  340. width: 160px; height: 3px; background: rgba(255,255,255,0.1);
  341. border-radius: 999px; margin-top: 24px; overflow: hidden;
  342. animation: splash-fade 0.5s 0.45s var(--ease-out) both;
  343. }
  344. .splash-bar span {
  345. display: block; height: 100%; background: var(--accent); border-radius: inherit;
  346. animation: splash-load 1.2s 0.5s var(--ease-out) both;
  347. }
  348. @keyframes splash-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
  349. @keyframes splash-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  350. @keyframes splash-load { from { width: 0; } to { width: 100%; } }
  351. .splash-powered {
  352. display: flex; align-items: center; gap: 6px; margin-top: 20px;
  353. animation: splash-fade 0.5s 0.6s var(--ease-out) both;
  354. }
  355. .splash-powered span { font-size: 11px; color: rgba(255,255,255,0.35); }
  356. .splash-powered img { height: 18px; opacity: 0.6; }
  357. /* ── Empty State ───────────────────────────────────────── */
  358. .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); }
  359. .panel-progress .empty-hint,
  360. .panel-shops .empty-hint { min-height: 0; }
  361. .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; }
  362. .empty-icon svg { width: 100%; height: 100%; display: block; }
  363. .empty-hint p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; line-height: 1.45; }
  364. .empty-hint small { display: block; margin-top: 6px; color: var(--text-3); font-size: var(--font-size-small); font-weight: 450; }
  365. /* ── Visual Gen Page ───────────────────────────────────── */
  366. .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; }
  367. .select-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
  368. /* compact generation overview */
  369. .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; }
  370. .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; flex: 1; min-width: 0; }
  371. .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); }
  372. .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; }
  373. .metric:hover { transform: translateY(-1px); border-color: var(--border); box-shadow: 0 10px 24px rgba(31, 27, 24, 0.06); }
  374. .metric:hover::before { opacity: 1; }
  375. .metric.accent { border-color: rgba(255, 107, 53, 0.16); }
  376. .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; }
  377. .metric.ok { border-color: rgba(26, 138, 76, 0.14); }
  378. .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; }
  379. .metric.warn { border-color: rgba(184, 134, 11, 0.14); }
  380. .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; }
  381. .metric.fail { border-color: rgba(200, 64, 46, 0.14); }
  382. .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; }
  383. .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; }
  384. .metric-icon svg { width: 100%; height: 100%; display: block; stroke-width: 1.4; }
  385. .metric.accent .metric-icon { color: var(--accent); }
  386. .metric.ok .metric-icon { color: var(--ok); }
  387. .metric.warn .metric-icon { color: var(--warn); }
  388. .metric.fail .metric-icon { color: var(--fail); }
  389. .metric:hover .metric-icon { opacity: 0.16; }
  390. .metric-body { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; gap: 10px; }
  391. .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; }
  392. .metric-label::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--text-3); }
  393. .metric.accent .metric-label::before { background: var(--accent); }
  394. .metric.ok .metric-label::before { background: var(--ok); }
  395. .metric.warn .metric-label::before { background: var(--warn); }
  396. .metric.fail .metric-label::before { background: var(--fail); }
  397. .metric-value { font-size: 38px; font-weight: 770; color: var(--text); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  398. .metric-value small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
  399. .metric .stat-delta { min-height: 14px; font-size: 12px; color: var(--text-3); font-weight: 600; line-height: 1.2; }
  400. .metric.ok .stat-delta { color: var(--ok); }
  401. .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; }
  402. .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%; }
  403. .gen-controls select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); background: #fff; }
  404. .scan-dropdown { position: relative; }
  405. .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; }
  406. .scan-dropdown-trigger:hover { border-color: var(--accent); }
  407. .scan-dropdown-trigger.active { border-color: var(--accent); background: rgba(255, 107, 53, 0.05); }
  408. .scan-dropdown-trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
  409. .scan-dropdown-trigger > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
  410. .scan-dropdown-trigger svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-3); }
  411. .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; }
  412. .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; }
  413. .scan-dropdown-item:hover { background: #f6f4f2; }
  414. .scan-dropdown-item > span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  415. .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; }
  416. .scan-check svg { width: 10px; height: 10px; }
  417. .scan-dropdown-item.selected { background: rgba(255, 107, 53, .07); color: var(--accent); font-weight: 600; }
  418. .scan-dropdown-item.selected .scan-check { border-color: var(--accent); background: var(--accent); color: #fff; }
  419. .gen-controls .field { gap: 6px; }
  420. .gen-controls .btn { width: 100%; min-height: 32px; }
  421. @media (max-width: 1080px) {
  422. .gen-overview { flex-direction: column; gap: 12px; }
  423. .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  424. .metric { min-height: 96px; padding: 16px; }
  425. .metric-value { font-size: 30px; }
  426. .metric-icon { width: 72px; height: 72px; right: -6px; bottom: -10px; }
  427. .gen-controls { flex-basis: auto; }
  428. }
  429. /* shop-cards */
  430. .shop-cards { display: flex; flex-direction: column; gap: 16px; }
  431. .shop-cards:has(.empty-hint) { min-height: clamp(340px, calc(100vh - 300px), 620px); }
  432. .shop-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
  433. /* Complete visual generation workflow */
  434. .workflow-card { overflow: visible; box-shadow: 0 1px 2px rgba(31,27,24,.04); }
  435. .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); }
  436. .workflow-card.collapsed .workflow-head { border-bottom-color: transparent; }
  437. .workflow-card.collapsed .workflow-body { display: none; }
  438. .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; }
  439. .workflow-toggle:hover { border-color: var(--accent); color: var(--accent); }
  440. .workflow-toggle svg { width: 14px; height: 14px; transition: transform .18s var(--ease-out); }
  441. .workflow-card.collapsed .workflow-toggle svg { transform: rotate(0); }
  442. .workflow-card:not(.collapsed) .workflow-toggle svg { transform: rotate(90deg); }
  443. .workflow-info { min-width: 0; display: flex; align-items: center; gap: 10px; }
  444. .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; }
  445. .shop-name-input:hover { border-color: var(--border); background: #fff; }
  446. .shop-name-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  447. .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; }
  448. .workflow-actions { display: flex; gap: 8px; }
  449. .workflow-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
  450. .workflow-step { padding: 14px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 12px; }
  451. .step-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
  452. .step-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  453. .step-head-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  454. .step-head h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 720; line-height: 1.2; }
  455. .step-head span { color: var(--text-3); font-size: 11.5px; line-height: 1.3; }
  456. .step-head-text { position: relative; padding-right: 30px; }
  457. .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; }
  458. .step-toggle:hover { border-color: var(--accent); color: var(--accent); }
  459. .step-toggle svg { width: 12px; height: 12px; transition: transform .18s var(--ease-out); }
  460. .step-collapsed .step-toggle svg { transform: rotate(0); }
  461. .workflow-step:not(.step-collapsed) .step-toggle svg { transform: rotate(90deg); }
  462. .step-collapsed .step-body { display: none; }
  463. .step-collapsed { padding-bottom: 12px; }
  464. .step-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  465. .step-body.single { grid-template-columns: minmax(0, 1fr); }
  466. .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); }
  467. .asset-editor { min-width: 0; display: flex; flex-direction: column; }
  468. .asset-result { min-width: 0; display: flex; flex-direction: column; }
  469. .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; }
  470. .step-body.single .asset-actions { margin-top: 0; }
  471. .prompt-modal-overlay { z-index: 10000; }
  472. .prompt-modal { width: min(920px, 88vw); }
  473. .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; }
  474. .prompt-modal-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  475. .prompt-preview-label { display: block; margin-top: 12px; color: var(--text-2); font-size: 11.5px; font-weight: 680; }
  476. .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; }
  477. .asset-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
  478. .asset-panel-head h4 { margin: 0; color: var(--text); font-size: 13px; font-weight: 680; }
  479. .asset-spec { color: var(--text-3); font-size: 10.5px; white-space: nowrap; }
  480. .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; }
  481. .prompt-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  482. .dish-override { min-height: 64px; margin-top: 8px; }
  483. .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; }
  484. .asset-actions select:focus, .overlay-row select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  485. .reference-field label { color: var(--text-2); font-size: 11.5px; font-weight: 600; }
  486. .ref-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  487. .ref-strip:empty::after { content: "无参考菜品"; color: var(--text-3); font-size: 11px; padding: 6px 0; }
  488. .ref-thumb { position: relative; flex: 0 0 auto; width: 50px; height: 50px; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
  489. .ref-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .72; }
  490. .ref-thumb input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  491. .ref-thumb.checked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  492. .ref-thumb.checked::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  493. .ref-thumb.checked img { opacity: 1; }
  494. .overlay-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 7px; align-items: center; margin-top: 8px; }
  495. .overlay-row + .overlay-row { margin-top: 7px; }
  496. .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; }
  497. .checkbox-label.compact { background: transparent; border: 0; padding: 0; }
  498. .checkbox-label input { width: 14px; height: 14px; accent-color: var(--accent); margin: 0; }
  499. .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; }
  500. .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; }
  501. .step-body.single .asset-panel { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 14px; align-items: stretch; }
  502. .step-body.single .asset-editor { gap: 9px; }
  503. .step-body.single .asset-editor .asset-panel-head { margin-bottom: 0; }
  504. .step-body.single .asset-editor .prompt-input { margin-top: 0; }
  505. .step-body.single .asset-editor .compact-controls { margin: 0; }
  506. .step-body.single .asset-editor .reference-field { flex: 1; }
  507. .step-body.single .asset-editor .ref-strip { min-height: 56px; align-items: stretch; }
  508. .step-body.single .asset-editor .btn { align-self: flex-start; }
  509. .step-body.single .asset-editor .guard-hint { margin-top: 0; }
  510. .step-body.single .asset-result { display: flex; align-items: flex-start; justify-content: stretch; }
  511. .step-body.single .asset-result .result-area { flex: 1 1 auto; width: 100%; height: auto; min-height: 0; margin-top: 0; align-items: center; }
  512. .step-body.single .asset-result .result-area:not(:has(.result-preview)) { aspect-ratio: 1 / 1; }
  513. .step-body.single .asset-result .result-preview { width: 100%; display: flex; flex-direction: column; justify-content: center; }
  514. .step-body.single .asset-result .result-thumb-holder { width: 100%; aspect-ratio: 1 / 1; height: auto; max-height: none; margin: 0 auto; }
  515. .step-body.single .asset-result .result-thumb-holder img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  516. .result-empty { color: var(--text-3); font-size: 11.5px; }
  517. .result-preview { width: 100%; }
  518. .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; }
  519. .result-thumb-holder.transparent-bg { display: block; }
  520. .result-thumb-holder img { width: 100%; max-height: 230px; object-fit: contain; display: block; }
  521. .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); }
  522. .result-download-icon svg { width: 14px; height: 14px; display: block; }
  523. .result-thumb-holder:hover .result-download-icon, .creation-frame:hover .result-download-icon, .result-download-icon:focus-visible, .result-download-icon:hover { opacity: 1; }
  524. .result-download-icon:hover { background: var(--accent); transform: translateY(-1px); }
  525. .step-body.single .asset-result .link-btn { justify-self: end; white-space: nowrap; }
  526. .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; }
  527. .status-line.is-error { color: var(--fail); }
  528. .status-line.is-warning { color: #8b6508; }
  529. .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; }
  530. .hover-zoom-preview img { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; }
  531. .poster-crop-panel { margin-top: 8px; padding: 9px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 8px; }
  532. .crop-actions { display: flex; gap: 8px; margin-top: 7px; }
  533. .dish-config-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  534. .dish-work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
  535. .dish-work-card { min-width: 0; padding: 10px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; }
  536. .dish-config { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border-light); }
  537. .dish-config-title { color: var(--text); font-size: 11.5px; font-weight: 680; }
  538. .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; }
  539. .dish-prompt-status.inherit { color: var(--accent-dark); }
  540. .dish-config-actions { display: grid; gap: 6px; margin-top: 7px; }
  541. .dish-config-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  542. .dish-config-actions .btn { width: 100%; }
  543. .dish-config .overlay-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px 5px; margin-top: 0; }
  544. .dish-config .prompt-input { min-height: 84px; margin-top: 8px; font-size: 11px; line-height: 1.45; }
  545. .dish-config .guard-hint { margin-top: 7px; }
  546. .batch-dish-modal { width: min(760px, 92vw); }
  547. .batch-dish-modal .modal-body { padding: 18px 20px 6px; max-height: min(74vh, 680px); overflow: auto; }
  548. .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; }
  549. .batch-summary::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  550. .batch-controls { padding: 10px; margin-bottom: 14px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 10px; }
  551. .batch-controls .overlay-row { grid-template-columns: minmax(96px, auto) minmax(0, 1fr) minmax(0, 1fr); gap: 7px; margin-top: 0; }
  552. .batch-config-label { display: block; margin-bottom: 8px; }
  553. .batch-controls .overlay-row + .overlay-row { margin-top: 7px; }
  554. .batch-prompt { width: 100%; min-height: 240px; margin-top: 6px; font-size: 12px; line-height: 1.6; }
  555. .batch-config-label, .batch-prompt-label { margin-bottom: 7px; color: var(--text-2); font-size: 11.5px; font-weight: 680; }
  556. .batch-prompt-label:not(:first-child) { margin-top: 12px; }
  557. .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; }
  558. .dish-work-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
  559. .dish-name-input { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  560. .dish-work-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
  561. .dish-frame { margin: 0; min-width: 0; }
  562. .dish-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; border: 1px solid var(--border-light); display: block; }
  563. .dish-frame > img { cursor: zoom-in; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
  564. .dish-frame > img:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(31,27,24,.12); z-index: 1; }
  565. .dish-frame figcaption { margin-top: 4px; color: var(--text-3); font-size: 10.5px; text-align: center; }
  566. .dish-frame .dish-result-area { min-height: 104px; margin-top: 0; overflow: hidden; background: transparent; border: 0; border-radius: 0; }
  567. .dish-frame .result-preview { width: 100%; }
  568. .dish-frame .result-thumb-holder { width: 100%; aspect-ratio: 1; height: auto; max-height: none; border: 1px solid var(--border-light); border-radius: 7px; }
  569. .dish-frame .result-thumb-holder img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
  570. .link-btn { color: var(--accent); background: transparent; border: 0; padding: 0; font-size: 11.5px; font-weight: 650; cursor: pointer; text-decoration: none; }
  571. .link-btn:hover { color: var(--accent-dark); }
  572. @media (max-width: 1440px) { .step-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  573. @media (max-width: 1080px) {
  574. .workflow-head { grid-template-columns: 1fr; align-items: stretch; }
  575. .step-body, .step-body.single { grid-template-columns: 1fr; }
  576. .step-body.single .asset-panel { grid-template-columns: 1fr; }
  577. .step-body.single .asset-result .result-area { min-height: 240px; }
  578. .overlay-row { grid-template-columns: 1fr; }
  579. }
  580. .shop-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
  581. .shop-head .shop-info { flex: 1; min-width: 0; }
  582. .shop-head .shop-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  583. .shop-head .shop-path { font-size: 12px; color: var(--text-3); margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  584. .shop-head .shop-actions { display: flex; gap: 8px; flex-shrink: 0; }
  585. /* brand-section */
  586. .brand-section { padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
  587. .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; }
  588. .brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  589. .brand-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  590. .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); }
  591. .brand-cell .thumb img { width: 100%; height: 100%; object-fit: cover; }
  592. .brand-cell .thumb .corner-badge { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 1px 6px; }
  593. .brand-cell .thumb.is-pending { border-style: dashed; font-weight: 500; }
  594. .brand-cell .meta { font-size: 11px; color: var(--text-2); display: flex; justify-content: space-between; gap: 6px; }
  595. .brand-cell .meta .name { color: var(--text); font-weight: 500; }
  596. .brand-cell .meta .status { font-variant-numeric: tabular-nums; }
  597. /* dish-section */
  598. .dish-section { padding: 14px 18px 18px; }
  599. .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; }
  600. .dish-section .section-title .count { color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
  601. .dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  602. .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; }
  603. .dish-card:hover { border-color: var(--accent); }
  604. .dish-card .dish-thumb { aspect-ratio: 1 / 1; width: 100%; display: block; object-fit: cover; }
  605. .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; }
  606. .dish-card .meta-row { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 8px; }
  607. .dish-card .meta-row .name { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  608. .dish-card .meta-row .price { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
  609. /* history gallery */
  610. .tasks-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; margin-bottom: 14px; }
  611. .tasks-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; flex: 1 1 auto; min-width: 0; }
  612. .task-stat { min-width: 0; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 12px; background: linear-gradient(135deg, #fff, #faf8f5); }
  613. .task-stat span { display: block; color: var(--text-3); font-size: 11px; font-weight: 600; }
  614. .task-stat strong { display: block; margin-top: 5px; color: var(--text); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
  615. .task-stat.running strong { color: var(--info); }
  616. .task-stat.queued strong { color: var(--warn); }
  617. .task-stat.success strong { color: var(--ok); }
  618. .task-stat.failed strong { color: var(--fail); }
  619. .tasks-filters { flex: 0 0 auto; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; max-width: 330px; }
  620. .task-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 60px; }
  621. .task-list.empty { min-height: clamp(360px, calc(100vh - 320px), 640px); }
  622. .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); }
  623. .task-card:hover { border-color: var(--border); box-shadow: 0 10px 24px rgba(31,27,24,.07); transform: translateY(-1px); }
  624. .task-main { flex: 1 1 auto; min-width: 0; }
  625. .task-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  626. .task-title { color: var(--text); font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  627. .task-badge { flex: 0 0 auto; }
  628. .task-badge.running, .task-badge.submitted { background: var(--info-bg); color: var(--info); }
  629. .task-badge.queued { background: var(--warn-bg); color: var(--warn); }
  630. .task-badge.success { background: var(--ok-bg); color: var(--ok); }
  631. .task-badge.failed, .task-badge.timeout { background: var(--fail-bg); color: var(--fail); }
  632. .task-progress { height: 4px; margin: 10px 0 8px; border-radius: 999px; background: var(--border-light); overflow: hidden; }
  633. .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); }
  634. .task-meta { color: var(--text-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
  635. .task-notice { margin-top: 7px; padding: 7px 9px; border-radius: 8px; font-size: 11.5px; line-height: 1.4; }
  636. .task-notice.warning { background: var(--warn-bg); color: #8b6508; }
  637. .task-notice.error { background: var(--fail-bg); color: var(--fail); }
  638. .task-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
  639. .task-status-detail { color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  640. .task-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; text-align: center; }
  641. .task-empty-icon { width: 76px; height: 76px; margin: 0 auto 16px; color: var(--text-3); opacity: .16; }
  642. .task-empty-icon svg { width: 100%; height: 100%; }
  643. .task-empty p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; }
  644. .task-empty small { display: block; margin-top: 6px; color: var(--text-3); font-size: 11.5px; }
  645. .history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 14px; }
  646. .history-search { position: relative; flex: 0 1 320px; min-width: 220px; }
  647. .history-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
  648. .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; }
  649. .history-search input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
  650. .history-filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  651. .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); }
  652. .history-filter:hover { color: var(--text); border-color: var(--border); background: #fff; }
  653. .history-filter.active { border-color: rgba(255,107,53,.18); background: rgba(255,107,53,.08); color: var(--accent); }
  654. .history-summary { padding: 0 28px 12px; color: var(--text-3); font-size: 12px; }
  655. .history-gallery { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: start; gap: 14px; padding: 0 28px 60px; }
  656. .history-gallery.empty { display: flex; min-height: clamp(360px, calc(100vh - 330px), 620px); }
  657. .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); }
  658. .creation-card:hover { transform: translateY(-2px); border-color: var(--border); box-shadow: 0 12px 28px rgba(31,27,24,.08); }
  659. .creation-frame { position: relative; overflow: hidden; cursor: zoom-in; background: var(--bg); }
  660. .creation-frame img { display: block; width: 100%; max-height: 250px; object-fit: cover; transition: transform .25s var(--ease-out); }
  661. .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; }
  662. .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); }
  663. .creation-card figcaption { padding: 10px 12px 12px; }
  664. .creation-title { color: var(--text); font-size: 12.5px; font-weight: 650; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  665. .creation-shop { margin-top: 3px; color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  666. .creation-meta { margin-top: 5px; color: var(--text-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
  667. .history-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; text-align: center; }
  668. .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; }
  669. .history-empty-icon svg { width: 100%; height: 100%; }
  670. .history-empty p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; }
  671. .history-empty small { display: block; margin-top: 6px; color: var(--text-3); font-size: 11.5px; }
  672. @media (max-width: 1080px) {
  673. .history-toolbar { align-items: stretch; flex-direction: column; }
  674. .history-search { flex-basis: auto; }
  675. .history-filters { justify-content: flex-start; }
  676. }
  677. /* ═══════════════════════════════════════════════════════════════
  678. 数据报表 · 淘宝闪购经营数据中台
  679. ═══════════════════════════════════════════════════════════════ */
  680. /* 主体(账号)搜索式选择器:账号多时不再无限换行,三处页面共用 */
  681. .entity-select { width: min(340px, 100%); margin-bottom: 14px; }
  682. .entity-select-menu { left: 0; right: auto; width: 100%; max-height: 300px; }
  683. .entity-select-search {
  684. width: 100%; margin-bottom: 6px; padding: 7px 10px;
  685. border: 1px solid var(--border); border-radius: 7px; background: #fff;
  686. font-size: var(--font-size-body); color: var(--text); outline: none;
  687. }
  688. .entity-select-search:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
  689. .entity-select-item-meta { margin-left: auto; flex: 0 0 auto; font-size: 11.5px; color: var(--text-3); }
  690. .entity-select-menu .scan-dropdown-item > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  691. .entity-select-menu .scan-dropdown-item > span:last-child { flex: 0 0 auto; overflow: visible; text-overflow: clip; }
  692. .entity-select-no-match { padding: 10px; font-size: var(--font-size-small); color: var(--text-3); text-align: center; }
  693. .entity-select-empty { font-size: var(--font-size-body); color: var(--text-3); padding: 10px 0; }
  694. .entity-select .scan-dropdown-trigger.is-empty span { color: var(--text-3); }
  695. .entity-select-guide { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; }
  696. .entity-select-guide-steps { font-size: var(--font-size-small); color: var(--text-2); line-height: 1.6; white-space: normal; }
  697. .entity-select-guide-btn { align-self: flex-start; }
  698. .report-toolbar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; }
  699. .report-field-sm { width: 130px; flex: 0 0 auto; }
  700. .report-field-md { width: 240px; flex: 0 0 auto; }
  701. .report-field-lg { width: 220px; flex: 0 0 auto; }
  702. .report-field-grow { flex: 1 1 160px; min-width: 140px; }
  703. .report-date-range { display: flex; align-items: center; gap: 6px; }
  704. .report-date-range input { min-width: 0; flex: 1; }
  705. .report-toolbar-actions { display: flex; gap: 8px; margin-left: auto; }
  706. #reportKpis { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 14px; }
  707. #reportKpis .metric { min-height: 84px; padding: 14px 16px; }
  708. @media (max-width: 1280px) { #reportKpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  709. .report-table-panel { min-height: clamp(320px, calc(100vh - 430px), 640px); }
  710. .report-table-wrap { overflow: auto; flex: 1; min-height: 0; }
  711. .report-table { min-width: 1080px; }
  712. .report-table th { position: sticky; top: 0; z-index: 2; cursor: pointer; user-select: none; white-space: nowrap; }
  713. .report-table th:hover { color: var(--accent); }
  714. .report-table .col-num { text-align: right; font-variant-numeric: tabular-nums; }
  715. .report-table td.col-date, .report-table td.col-text { white-space: nowrap; }
  716. .report-table td.col-money, .report-table td.col-int { color: var(--text); }
  717. .report-table td.col-reserved { color: var(--text-3); }
  718. .val-good { color: var(--ok); font-weight: 650; }
  719. .val-warn { color: var(--warn); font-weight: 650; }
  720. .val-bad { color: var(--fail); font-weight: 650; }
  721. .colcfg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; max-height: 46vh; overflow-y: auto; padding: 4px 2px; }
  722. .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); }
  723. .colcfg-item:hover { background: #f6f4f2; }
  724. .colcfg-item input { margin: 0; }
  725. .colcfg-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  726. .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; }
  727. .modal-wide { width: min(520px, calc(100vw - 48px)); }
  728. .modal-body .badge { margin-bottom: 12px; }
  729. .sync-progress-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
  730. .sync-progress-bar { flex: 1; height: 8px; border-radius: var(--radius-pill); background: #f1efec; overflow: hidden; }
  731. .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); }
  732. .sync-stat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  733. .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; }
  734. .sync-step { display: flex; align-items: baseline; gap: 8px; font-size: var(--font-size-small); }
  735. .sync-step span { flex: 0 0 auto; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
  736. .sync-step em { font-style: normal; color: var(--text-3); }
  737. .sync-step.ok em { color: var(--ok); }
  738. .sync-step.fail em { color: var(--fail); }
  739. /* ── 分段控制器(数据报表 · 视图切换) ───────────────────── */
  740. .seg-control { display: inline-flex; align-items: stretch; padding: 3px; gap: 2px; background: #f1efec; border-radius: var(--radius-pill); }
  741. .seg-control button {
  742. min-height: 26px; min-width: 0; padding: 4px 14px; border: 0; border-radius: var(--radius-pill);
  743. background: transparent; color: var(--text-2); font-size: var(--font-size-body); font-weight: 500; line-height: 1.4;
  744. cursor: pointer; transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
  745. white-space: nowrap;
  746. }
  747. .seg-control button:hover { color: var(--text); }
  748. .seg-control button.active { background: var(--card-bg); color: var(--accent); font-weight: 600; box-shadow: 0 1px 3px rgba(31, 27, 24, .12); }
  749. .seg-control button:disabled { opacity: .5; cursor: not-allowed; }
  750. /* ── 智能问数 + 图表面板 ─────────────────────────────────── */
  751. .ask-panel { padding: 14px 16px; margin-bottom: 14px; }
  752. .ask-row { display: flex; align-items: center; gap: 10px; }
  753. .ask-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent); white-space: nowrap; }
  754. .ask-label svg { width: 16px; height: 16px; }
  755. .ask-row input[type="text"] { flex: 1; min-width: 0; }
  756. .ask-row .btn { flex: 0 0 auto; }
  757. .ask-reply { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: var(--font-size-body); }
  758. .ask-reply .badge { flex: 0 0 auto; margin-top: 1px; }
  759. .ask-chart { width: 100%; height: 300px; margin-top: 8px; }
  760. .ask-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
  761. .ask-error { margin-top: 10px; }
  762. .help-inline { font-weight: 400; color: var(--text-3); font-size: 11px; margin-left: 6px; }
  763. .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); }
  764. .settings-link-btn:hover { background: var(--info-bg); }
  765. .settings-link-btn svg { width: 12px; height: 12px; }
  766. .settings-link-btn:disabled { opacity: .5; cursor: not-allowed; }
  767. .charts-panel { padding: 16px; margin-bottom: 14px; }
  768. .chart-metric-select { max-width: 170px; }
  769. .charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  770. .chart-box { min-width: 0; }
  771. .chart-title { font-size: var(--font-size-small); color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
  772. .chart { width: 100%; height: 260px; }
  773. @media (max-width: 1080px) { .charts-grid { grid-template-columns: 1fr; } .ask-chart { height: 240px; } }
  774. /* ── 设置页 · API 设置面板 tab ──────────────────────────── */
  775. .settings-api-tabs { margin-left: auto; }
  776. .settings-api-tabs button { min-height: 24px; padding: 3px 12px; font-size: var(--font-size-small); }
  777. .settings-tab-body[hidden] { display: none; }
  778. .label-links { display: inline-flex; align-items: center; gap: 10px; }
  779. /* ── 客户端连接排查 · ? 弹窗 ─────────────────────────────── */
  780. .conn-help-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
  781. .help-btn {
  782. width: 18px; height: 18px; min-width: 0; min-height: 0; padding: 0;
  783. border-radius: 50%; border: 1px solid var(--border);
  784. background: var(--card-bg); color: var(--text-2);
  785. font-size: 11px; font-weight: 700; line-height: 1;
  786. display: inline-flex; align-items: center; justify-content: center;
  787. cursor: pointer; transition: color var(--duration-base), border-color var(--duration-base), background var(--duration-base);
  788. }
  789. .help-btn:hover, .help-btn.active { color: #fff; background: var(--accent); border-color: var(--accent); }
  790. .help-popover {
  791. position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  792. width: min(460px, calc(100vw - 64px));
  793. background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  794. box-shadow: 0 18px 44px rgba(31, 27, 24, .16);
  795. padding: 16px 18px; text-align: left;
  796. font-size: var(--font-size-body); color: var(--text);
  797. }
  798. .help-popover::before {
  799. content: ""; position: absolute; top: -6px; right: 14px; width: 10px; height: 10px;
  800. background: var(--card-bg); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  801. transform: rotate(45deg);
  802. }
  803. .help-popover.pop-left { left: 0; right: auto; }
  804. .help-popover.pop-left::before { left: 14px; right: auto; }
  805. .help-popover-title { font-weight: 700; font-size: var(--font-size-h2); margin-bottom: 8px; }
  806. .help-popover-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
  807. .help-popover-steps li { line-height: 1.55; }
  808. .help-popover-steps code, .help-popover-note code {
  809. background: #f6f4f2; border: 1px solid var(--border-light); border-radius: 4px;
  810. padding: 1px 5px; font-size: 11px; word-break: break-all;
  811. }
  812. .help-popover-note {
  813. margin-top: 10px; padding: 8px 10px; border-radius: 8px;
  814. background: var(--warn-bg); color: var(--warn); font-size: var(--font-size-small);
  815. }
  816. /* 同步弹窗 · 连接失败分步指引(与 help-popover 同一设计语言) */
  817. .conn-steps-title { font-weight: 700; font-size: 12.5px; margin-bottom: 8px; }
  818. .conn-steps-list { display: flex; flex-direction: column; gap: 7px; }
  819. .conn-step { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
  820. .conn-step-idx {
  821. flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px;
  822. border: 1px solid var(--border-light); border-radius: 50%;
  823. background: #f6f4f2; color: var(--text-3); font-size: 10.5px; font-weight: 600;
  824. display: inline-flex; align-items: center; justify-content: center;
  825. }
  826. .conn-step-text { min-width: 0; }
  827. .conn-step-text code {
  828. background: #f6f4f2; border: 1px solid var(--border-light); border-radius: 4px;
  829. padding: 1px 5px; font-size: 11px; word-break: break-all;
  830. }
  831. .conn-step-text a { color: var(--accent); word-break: break-all; }
  832. .conn-steps-note {
  833. margin-top: 9px; padding: 7px 10px; border-radius: 8px;
  834. background: var(--warn-bg); color: var(--warn); font-size: 11px; line-height: 1.5;
  835. }
  836. /* ── KPI 卡 · 数值自适应不截断 ──────────────────────────── */
  837. #reportKpis .metric { padding: 12px 14px; }
  838. #reportKpis .metric-body { gap: 6px; }
  839. #reportKpis .metric-value {
  840. font-size: clamp(15px, 1.35vw, 26px);
  841. white-space: nowrap;
  842. overflow: hidden;
  843. text-overflow: ellipsis;
  844. max-width: 100%;
  845. }
  846. @media (max-width: 1500px) { #reportKpis .metric-value { font-size: clamp(14px, 1.15vw, 20px); } }
  847. /* 空状态徽章不占位,保证测试按钮与图像模型 tab 同样居中 */
  848. .badge:empty { display: none; }
  849. /* ── 趋势图表 · 环比指标条 ──────────────────────────────── */
  850. .delta-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  851. .delta-card {
  852. background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 12px;
  853. padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  854. }
  855. .delta-label { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
  856. .delta-value { font-size: 17px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  857. .delta-line { display: flex; align-items: center; gap: 5px; font-size: 11px; min-height: 15px; flex-wrap: wrap; }
  858. .delta { font-weight: 700; }
  859. .delta.up { color: var(--ok); }
  860. .delta.down { color: var(--fail); }
  861. .delta-flat { color: var(--text-3); }
  862. .delta-none { color: var(--text-3); }
  863. .delta-sub { color: var(--text-3); font-size: 10px; }
  864. @media (max-width: 1280px) { .delta-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  865. /* ── 趋势图表 · 四图网格 ────────────────────────────────── */
  866. .ana-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 40px; }
  867. .ana-cell { min-width: 0; }
  868. .ana-span2 { grid-column: span 2; }
  869. .ana-span3 { grid-column: 1 / -1; }
  870. .chart-lg { width: 100%; height: 300px; }
  871. .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; }
  872. .ana-compare-toggle input { margin: 0; }
  873. @media (max-width: 1080px) { .ana-grid { grid-template-columns: 1fr; } .ana-span2, .ana-span3 { grid-column: span 1; } }
  874. /* ── 趋势图表 · 分析模板 ────────────────────────────────── */
  875. .ana-tpl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
  876. .ana-tpl-group { font-size: var(--font-size-small); color: var(--text-3); font-weight: var(--font-weight-h3); flex-shrink: 0; }
  877. .ana-tpl-bar .seg-control { background: var(--border-light); }
  878. #anaTplDesc { margin: 0 2px 10px; }
  879. .ana-note { font-size: var(--font-size-small); color: var(--text-3); margin: 0 2px; }
  880. .panel .ana-note { margin-top: -4px; }
  881. .ana-empty { min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: var(--font-size-body); text-align: center; padding: 0 20px; }
  882. .ana-table-scroll { max-height: 316px; overflow: auto; }
  883. .ana-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-body); }
  884. .ana-table th { position: sticky; top: 0; z-index: 1; background: var(--card-bg); text-align: right; padding: 7px 8px; font-size: var(--font-size-small); font-weight: var(--font-weight-h3); color: var(--text-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
  885. .ana-table td { text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--border-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
  886. .ana-table th:first-child, .ana-table td:first-child { text-align: left; }
  887. .ana-help { font-size: var(--font-size-small); color: var(--text-2); line-height: 1.8; margin: 0; padding-left: 16px; }
  888. .ana-help b { color: var(--text); font-weight: var(--font-weight-h3); }
  889. .diag-steps { display: flex; flex-direction: column; gap: 8px; }
  890. .diag-step { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 10px; }
  891. .diag-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
  892. .diag-step-name { font-size: var(--font-size-small); font-weight: var(--font-weight-h3); color: var(--text-2); }
  893. .diag-step-val { font-size: 16px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
  894. .diag-step-meta { font-size: var(--font-size-small); color: var(--text-3); }
  895. .diag-conclusion { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-md); padding: 8px 10px; font-size: var(--font-size-body); line-height: 1.5; margin-top: 8px; }
  896. /* ── 智能问数 · 独立页面(副驾式:左会话栏 + 右舞台 + 底部大输入卡) ── */
  897. #viewAsk.active { display: block; height: 100vh; }
  898. #viewAsk > main.content-ask { height: 100%; display: flex; flex-direction: column; padding: 14px 18px 0; min-height: 0; }
  899. .ask-shell { flex: 1; min-height: 0; display: flex; gap: 14px; padding-bottom: 14px; }
  900. /* 左侧会话栏 */
  901. .ask-side { width: 244px; flex: 0 0 244px; display: flex; flex-direction: column; min-height: 0; background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 12px 10px 10px; }
  902. .ask-side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
  903. .ask-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--text); }
  904. .ask-brand svg { width: 16px; height: 16px; color: var(--accent); }
  905. .ask-new-btn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border-light); background: #fff; color: var(--text-2); font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  906. .ask-new-btn:hover { color: var(--accent); border-color: var(--accent); }
  907. .ask-search { padding: 0 2px 10px; }
  908. .ask-search input { width: 100%; box-sizing: border-box; min-height: 32px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: #faf9f7; font-size: 12px; font-family: inherit; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
  909. .ask-search input::placeholder { color: var(--text-3); }
  910. .ask-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); background: #fff; }
  911. .ask-side-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
  912. .ask-sessions-empty { color: var(--text-3); font-size: var(--font-size-small); text-align: center; padding: 18px 0; }
  913. .ask-session-item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 30px 8px 10px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
  914. .ask-session-item:hover { background: #f5f3f0; }
  915. .ask-session-item.active { background: #fff7f3; border-color: #ffd9c7; }
  916. .ask-session-title { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  917. .ask-session-preview { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  918. .ask-session-del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border: none; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; opacity: .4; }
  919. .ask-session-del svg { width: 13px; height: 13px; }
  920. .ask-session-item:hover .ask-session-del { opacity: 1; }
  921. .ask-session-del:hover { background: #fdecec; color: var(--fail); opacity: 1; }
  922. /* 右侧舞台 */
  923. .ask-stage { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-light); border-radius: 14px; }
  924. .ask-stage-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 2px; }
  925. .ask-stage-title { font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  926. .ask-stage-badge { flex: 0 0 auto; font-size: 11px; color: var(--text-2); background: #f5f3f0; border-radius: var(--radius-pill); padding: 2px 10px; }
  927. .ask-stage-sub { padding: 2px 18px 12px; font-size: 11.5px; color: var(--text-3); }
  928. .ask-stream { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; background: #faf9f7; border-radius: 0 0 14px 14px; }
  929. /* 居中空态(给问数一个目标) */
  930. .ask-hero { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 540px; text-align: center; padding: 40px 16px; }
  931. .ask-hero-title { font-size: 22px; font-weight: 700; color: var(--text); }
  932. .ask-hero-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
  933. .ask-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
  934. .ask-chips button {
  935. border: 1px solid var(--border); background: #fff; color: var(--text-2);
  936. font-size: 11px; padding: 4px 10px; border-radius: var(--radius-pill); cursor: pointer;
  937. }
  938. .ask-chips button:hover { border-color: var(--accent); color: var(--accent); }
  939. /* 对话流 */
  940. .ask-run { display: flex; flex-direction: column; gap: 6px; }
  941. .ask-q {
  942. align-self: flex-end; max-width: 86%; padding: 8px 12px; border-radius: 12px; border-bottom-right-radius: 4px;
  943. background: var(--accent); color: #fff; font-size: 12.5px; line-height: 1.55; word-break: break-word;
  944. }
  945. .ask-card {
  946. align-self: stretch; display: flex; flex-direction: column; gap: 8px;
  947. background: #fff; border: 1px solid var(--border-light); border-radius: 12px; border-bottom-left-radius: 4px;
  948. padding: 12px 14px; font-size: 12.5px; line-height: 1.6; color: var(--text); word-break: break-word;
  949. }
  950. .ask-card-error { background: var(--fail-bg); border-color: transparent; color: var(--fail); }
  951. /* 编排时间线(Worked · N 个工具 + 逐步骤:思考·Turn N / 工具调用) */
  952. .ask-meta { font-size: 10.5px; color: var(--text-3); letter-spacing: .05em; margin-bottom: 2px; }
  953. .ask-worked { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--text); }
  954. .ask-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: 0 0 auto; }
  955. .ask-dot.running { background: var(--accent); animation: askpulse 1.1s ease-in-out infinite; }
  956. .ask-dot.failed { background: var(--fail); }
  957. @keyframes askpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
  958. .ask-steps { display: flex; flex-direction: column; margin-top: 10px; }
  959. .ask-step { position: relative; margin: 0 0 10px 3px; padding-left: 18px; }
  960. .ask-step::before { content: ''; position: absolute; left: 3.5px; top: 10px; bottom: -8px; width: 1px; background: var(--border-light); }
  961. .ask-step:last-child::before { display: none; }
  962. .ask-step .ask-dot { position: absolute; left: 0; top: 4px; }
  963. .ask-step-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); }
  964. .ask-step-head b { font-weight: 650; }
  965. .ask-step-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
  966. .ask-step-body { margin-top: 4px; color: var(--text-2); font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
  967. .ask-tool { margin-top: 4px; }
  968. .ask-tool summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 2px 0; color: var(--text-2); font-size: 11px; }
  969. .ask-tool summary::-webkit-details-marker { display: none; }
  970. .ask-tool summary::before { content: '▸'; font-size: 10px; color: var(--text-3); }
  971. .ask-tool[open] summary::before { content: '▾'; }
  972. /* 晨报横幅(每日自动同步后的确定性体检+环比结论) */
  973. .ask-digest { border-bottom: 1px solid var(--border-light); background: #fffaf5; }
  974. .ask-digest[hidden] { display: none; }
  975. .ask-digest-bar { display: flex; align-items: center; gap: 8px; padding: 8px 18px; cursor: pointer; }
  976. .ask-digest-bar:hover { background: #fff5ec; }
  977. .ask-digest-label { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--accent); }
  978. .ask-digest-headline { flex: 1; min-width: 0; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  979. .ask-digest-toggle { flex: 0 0 auto; font-size: 11px; color: var(--text-3); }
  980. .ask-digest-body { padding: 4px 18px 12px; display: flex; flex-direction: column; gap: 8px; }
  981. /* verdict 卡(数据体检/层间核对/恒等式等校验结论) */
  982. .ask-verdicts { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
  983. .ask-verdict {
  984. display: flex; align-items: baseline; gap: 8px; padding: 6px 10px;
  985. border: 1px solid var(--border-light); border-left-width: 3px; border-radius: 8px;
  986. background: #faf9f7; font-size: 11.5px; line-height: 1.5;
  987. }
  988. .ask-verdict.ok { border-left-color: var(--ok); }
  989. .ask-verdict.warn { border-left-color: var(--warn, #d97706); }
  990. .ask-verdict.fail { border-left-color: var(--fail); background: var(--fail-bg, #fdf1f0); }
  991. .ask-verdict-status { flex: 0 0 auto; font-weight: 700; }
  992. .ask-verdict.ok .ask-verdict-status { color: var(--ok); }
  993. .ask-verdict.warn .ask-verdict-status { color: var(--warn, #d97706); }
  994. .ask-verdict.fail .ask-verdict-status { color: var(--fail); }
  995. .ask-verdict-check { flex: 0 0 auto; font-weight: 600; color: var(--text); }
  996. .ask-verdict-detail { color: var(--text-3); min-width: 0; }
  997. /* 数字溯源警示(不阻断) */
  998. .ask-provenance { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: #fff8e6; color: #9a6b00; font-size: 11.5px; line-height: 1.6; word-break: break-word; }
  999. .ask-fb { gap: 6px; }
  1000. .ask-fb .btn { padding: 2px 8px; font-size: 11px; }
  1001. .ask-pre {
  1002. margin: 4px 0 0; padding: 8px 10px; background: #faf9f7; border: 1px solid var(--border-light);
  1003. border-radius: 8px; font-size: 11.5px; line-height: 1.6; color: var(--text-2);
  1004. white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow-y: auto; font-family: inherit;
  1005. }
  1006. .ask-typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
  1007. .ask-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: askblink 1.2s infinite; }
  1008. .ask-typing span:nth-child(2) { animation-delay: .2s; }
  1009. .ask-typing span:nth-child(3) { animation-delay: .4s; }
  1010. @keyframes askblink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
  1011. .ask-error { background: var(--fail-bg); color: var(--fail); border-radius: 8px; padding: 8px 10px; }
  1012. .ask-note { color: var(--text-3); font-size: 11.5px; }
  1013. /* 答案区:markdown 渲染排版(renderMarkdown 产出 p/ul/table/pre 等结构) */
  1014. .ask-answer { font-size: 13.5px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
  1015. .ask-answer > :first-child { margin-top: 0; }
  1016. .ask-answer > :last-child { margin-bottom: 0; }
  1017. .ask-answer p { margin: 8px 0; }
  1018. .ask-answer h3, .ask-answer h4, .ask-answer h5, .ask-answer h6 { margin: 14px 0 6px; font-size: 13.5px; font-weight: 700; }
  1019. .ask-answer h3 { font-size: 15px; }
  1020. .ask-answer ul.md-list, .ask-answer ol.md-list { margin: 8px 0; padding-left: 20px; display: grid; gap: 4px; }
  1021. .ask-answer blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--border); color: var(--text-2); background: var(--border-light); border-radius: 0 8px 8px 0; }
  1022. .ask-answer code { padding: 1px 5px; border-radius: 5px; background: var(--border-light); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  1023. .ask-answer .md-code { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--sidebar-bg); color: var(--bg); font-size: 12px; overflow: auto; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  1024. .ask-answer .md-table { margin: 10px 0; border-collapse: collapse; font-size: 12.5px; width: 100%; }
  1025. .ask-answer .md-table th, .ask-answer .md-table td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
  1026. .ask-answer .md-table th { background: var(--border-light); font-weight: 650; white-space: nowrap; }
  1027. .ask-answer hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
  1028. .ask-answer a { color: var(--accent); }
  1029. .ask-answer strong { font-weight: 700; }
  1030. /* 思考过程:Codex 式一行摘要,默认收起 */
  1031. .ask-loop { margin-top: 10px; }
  1032. .ask-loop > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; list-style: none; font-size: 12px; color: var(--text-2); padding: 5px 10px; border-radius: 8px; background: var(--border-light); }
  1033. .ask-loop > summary::-webkit-details-marker { display: none; }
  1034. .ask-loop > summary:hover { color: var(--text); }
  1035. .ask-loop > summary .ask-dot { flex: 0 0 auto; }
  1036. .ask-loop[open] > summary { margin-bottom: 10px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  1037. .ask-loop .ask-steps { padding: 2px 10px 4px; border: 1px solid var(--border-light); border-top: none; border-radius: 0 0 8px 8px; margin: 0; }
  1038. /* 运行过程时间线:状态点 + 元信息胶囊 + 思考/工具卡 */
  1039. .ask-step { padding-left: 22px; }
  1040. .ask-step .ask-dot { top: 5px; }
  1041. .ask-step-head b { font-size: 13px; }
  1042. .ask-step-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
  1043. .ask-chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--border-light); color: var(--text-2); font-size: 11px; line-height: 1.7; }
  1044. .ask-step-body { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--border-light); color: var(--text-2); font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
  1045. .ask-tool { margin-top: 6px; }
  1046. .ask-tool summary { cursor: pointer; font-size: 11.5px; color: var(--text-3); user-select: none; }
  1047. .ask-tool summary:hover { color: var(--text-2); }
  1048. .ask-chart { width: 100%; height: 240px; margin-top: 4px; border: 1px solid var(--border-light); border-radius: 10px; background: #fff; }
  1049. .ask-chart-title { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 4px; }
  1050. .ask-actions { margin-top: 4px; }
  1051. /* 底部大输入卡 */
  1052. .ask-composer { margin: 0 20px 16px; padding: 10px 12px 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 24px rgba(31, 27, 24, .06); transition: border-color .15s, box-shadow .15s; }
  1053. .ask-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
  1054. .ask-composer textarea { width: 100%; box-sizing: border-box; border: none; outline: none; resize: none; background: transparent; font-family: inherit; font-size: 12.5px; line-height: 1.6; color: var(--text); min-height: 22px; max-height: 120px; padding: 2px 4px; }
  1055. .ask-composer textarea::placeholder { color: var(--text-3); }
  1056. .ask-composer-bar { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
  1057. .ask-ent-select { min-height: 28px; max-width: 190px; padding: 0 8px; border: 1px solid var(--border-light); border-radius: var(--radius-pill); background: #faf9f7; font-size: 11.5px; color: var(--text-2); font-family: inherit; }
  1058. .ask-composer-spacer { flex: 1; }
  1059. .ask-send-btn { width: 34px; height: 34px; border: none; border-radius: 50%; cursor: pointer; background: linear-gradient(135deg, var(--accent) 0%, #ff8a5c 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(255, 107, 53, .35); }
  1060. .ask-send-btn svg { width: 16px; height: 16px; }
  1061. .ask-send-btn:disabled { opacity: .5; cursor: not-allowed; }
  1062. @media (max-width: 900px) { .ask-side { display: none; } }
  1063. /* 图标按钮(视觉生成 · 保存弹层) */
  1064. .btn.icon-btn { width: 34px; min-width: 34px; padding: 0; justify-content: center; }
  1065. .btn.icon-btn svg { width: 16px; height: 16px; display: block; }
  1066. /* ── 系统设置 · 两列布局 + 面板独立保存 ─────────────────── */
  1067. .settings-col > .panel { padding: 18px; }
  1068. .panel-save-row { display: flex; align-items: center; gap: 10px; padding-top: 4px; border-top: 1px dashed var(--border-light); margin-top: 2px; }
  1069. .panel-save-row .badge:empty { display: none; }
  1070. @media (max-width: 1080px) { .settings-workspace { grid-template-columns: 1fr; } }
  1071. /* ── 数据中台 ─────────────────────────────────────────────── */
  1072. #lakeKpis { margin-bottom: 14px; }
  1073. #lakeKpis .metric { min-height: 92px; padding: 14px 16px; }
  1074. #lakeKpis .metric-body { gap: 6px; }
  1075. #lakeKpis .metric-value { font-size: clamp(15px, 1.3vw, 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  1076. #lakeKpis .metric-sub { font-size: var(--font-size-small); color: var(--text-3); line-height: 1.35; }
  1077. .data-table .empty-cell { color: var(--text-3); text-align: center; padding: 28px 12px; }
  1078. /* ── 报表分页条 ───────────────────────────────────────────── */
  1079. .report-pager { display: flex; align-items: center; gap: 10px; padding: 10px 12px 2px; flex-wrap: wrap; }
  1080. .report-pager:empty { display: none; }
  1081. .pager-info { font-size: var(--font-size-small); color: var(--text-2); }
  1082. .pager-note { color: var(--text-3); margin-left: auto; }
  1083. /* 全部字段模式:列宽随内容自适应,容器横向滚动 */
  1084. .report-table.raw-cols { min-width: max-content; }
  1085. .report-table.raw-cols th, .report-table.raw-cols td { white-space: nowrap; }
  1086. /* 中台页内 tab 条(湖全景/明细数据) */
  1087. .lake-tabs { margin-bottom: 14px; max-width: fit-content; }
  1088. /* ── 取数诊断弹窗(隐藏入口:连点侧边栏版本号 5 次) ───────── */
  1089. #modalNaposDiagnose .modal { width: min(720px, calc(100vw - 48px)); }
  1090. .diagnose-summary { display: grid; gap: 12px; font-size: 13px; }
  1091. .diagnose-block { display: grid; gap: 6px; }
  1092. .diagnose-k { display: inline-block; min-width: 110px; color: var(--text-2); }
  1093. .diagnose-table { margin: 2px 0; font-size: 12.5px; }
  1094. .diagnose-table th, .diagnose-table td { white-space: nowrap; }
  1095. .diagnose-conclusion { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--border); font-size: 13px; }
  1096. .diagnose-raw { margin-top: 12px; font-size: 12.5px; }
  1097. .diagnose-raw summary { cursor: pointer; color: var(--text-2); }
  1098. .diagnose-raw pre { max-height: 300px; overflow: auto; margin-top: 8px; padding: 10px; border-radius: 8px; background: var(--border-light); white-space: pre-wrap; word-break: break-all; font-size: 12px; }
  1099. .ask-phase { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; line-height: 1.7; }
  1100. .ask-phase.phase-查询 { background: var(--info-bg); color: var(--info); }
  1101. .ask-phase.phase-提取 { background: var(--warn-bg); color: var(--warn); }
  1102. .ask-phase.phase-计算 { background: var(--ok-bg); color: var(--ok); }
  1103. /* 定向采集结果表 */
  1104. .harvest-path { max-width: 380px; white-space: normal !important; word-break: break-all; font-size: 12px; color: var(--text-2); }
  1105. #harvestSummary details summary { cursor: pointer; font-size: 12px; color: var(--text-3); }
  1106. #harvestSummary details pre { max-width: 420px; max-height: 160px; overflow: auto; margin: 4px 0 0; padding: 8px; border-radius: 8px; background: var(--border-light); white-space: pre-wrap; word-break: break-all; font-size: 11.5px; }
  1107. /* ── 店铺运营(上传解析) ───────────────────────────────── */
  1108. .ops-bar { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; padding: 14px 16px; margin-bottom: 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
  1109. .ops-bar-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
  1110. .ops-bar-right { margin-left: auto; }
  1111. .ops-bar-label { font-size: var(--font-size-small); color: var(--text-3); white-space: nowrap; }
  1112. .ops-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  1113. .ops-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: 12.5px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: all .15s var(--ease-out); }
  1114. .ops-chip:hover { border-color: var(--border-strong, var(--border)); color: var(--text); }
  1115. .ops-chip.on { color: #fff; background: var(--accent); border-color: var(--accent); }
  1116. .ops-chip em { font-style: normal; opacity: .7; font-size: 11px; }
  1117. .ops-seg { display: inline-flex; padding: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; }
  1118. .ops-seg button { padding: 5px 12px; font-size: 12.5px; color: var(--text-2); background: none; border: 0; border-radius: 7px; cursor: pointer; }
  1119. .ops-seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(31,27,24,.08); }
  1120. .ops-input { height: 30px; padding: 0 8px; font-size: 12.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
  1121. .ops-tilde { color: var(--text-3); }
  1122. .ops-block { margin-bottom: 26px; }
  1123. .ops-block-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
  1124. .ops-block-head h2 { margin: 0; font-size: 15px; font-weight: 650; color: var(--text); }
  1125. .ops-block-head span { font-size: 12px; color: var(--text-3); }
  1126. .ops-table-wrap { overflow: auto; max-height: 68vh; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
  1127. .ops-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
  1128. .ops-table th, .ops-table td { padding: 7px 9px; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
  1129. .ops-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg); color: var(--text-2); font-weight: 600; text-align: center; }
  1130. .ops-table thead tr:nth-child(2) th { top: 30px; }
  1131. .ops-school-col { border-left: 2px solid var(--border); }
  1132. .ops-date-col { font-variant-numeric: tabular-nums; min-width: 56px; }
  1133. .ops-shop-col, .ops-shop-cell { position: sticky; left: 0; z-index: 3; min-width: 180px; max-width: 220px; background: var(--card-bg); text-align: left; overflow: hidden; text-overflow: ellipsis; }
  1134. .ops-table thead .ops-shop-col { z-index: 4; background: var(--bg); }
  1135. .ops-table:not(.ops-table-wide) tbody tr:hover td { background: #faf9f7; }
  1136. .ops-table:not(.ops-table-wide) tbody tr:hover .ops-shop-cell { background: #faf9f7; }
  1137. .ops-num { text-align: right; font-variant-numeric: tabular-nums; }
  1138. .ops-null { color: var(--text-3); }
  1139. .ops-warn { margin-left: 3px; color: var(--warn); cursor: help; font-size: 10px; }
  1140. .ops-subtotal-row td { background: #fbfaf8; font-weight: 600; }
  1141. .ops-subtotal { color: var(--text-2); }
  1142. .ops-status { margin-left: 6px; }
  1143. .ops-cards { display: flex; flex-direction: column; gap: 22px; }
  1144. .ops-card-group h3 { margin: 0 0 10px; font-size: 14px; font-weight: 650; color: var(--text); }
  1145. .ops-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; }
  1146. .ops-card { padding: 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow .18s var(--ease-out), transform .18s var(--ease-out); }
  1147. .ops-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31,27,24,.06); }
  1148. .ops-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
  1149. .ops-card-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  1150. .ops-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-bottom: 8px; }
  1151. .ops-card-metric span { display: block; font-size: 11px; color: var(--text-3); }
  1152. .ops-card-metric b { font-size: 15px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
  1153. .ops-spark { width: 100%; height: 34px; display: block; }
  1154. .ops-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  1155. .ops-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; text-align: center; color: var(--text-2); background: var(--bg); border: 1.5px dashed var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: border-color .15s, background .15s; }
  1156. .ops-drop.on, .ops-drop:hover { border-color: var(--accent); background: #fff8f4; }
  1157. .ops-drop small { color: var(--text-3); }
  1158. .ops-file-name { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
  1159. .ops-field { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
  1160. .ops-field label { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
  1161. .ops-field small { color: var(--text-3); font-size: 11.5px; }
  1162. .ops-upload-result { margin-top: 14px; font-size: 12.5px; line-height: 1.6; }
  1163. .ops-ok { padding: 10px 12px; color: var(--text); background: #f4fbf6; border: 1px solid #cfe9d8; border-radius: 10px; }
  1164. .ops-error { color: #c0392b; }
  1165. .ops-muted { color: var(--text-3); }
  1166. .ops-warn-list { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); }
  1167. .ops-upload-modal { width: min(560px, 92vw); }
  1168. .ops-records-modal { width: min(900px, 94vw); }
  1169. .ops-records-modal .modal-body { max-height: 70vh; overflow: auto; }
  1170. .ops-empty { min-height: 320px; }
  1171. .ops-school-row td { background: #f7f5f2; font-weight: 650; color: var(--text-2); border-top: 1px solid var(--border); }
  1172. .ops-school-row em { font-style: normal; margin-left: 8px; font-weight: 450; color: var(--text-3); font-size: 11.5px; }
  1173. .ops-select { width: 360px; max-width: 100%; height: 32px; }
  1174. #opsSchoolCustom { width: 360px; max-width: 100%; }
  1175. .ops-field .ops-input[type="number"] { width: 140px; }
  1176. .ops-file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow: auto; }
  1177. .ops-file-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 12.5px; background: var(--bg); border: 1px solid var(--border-light); border-radius: 8px; }
  1178. .ops-file-name2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
  1179. .ops-file-size { flex: 0 0 auto; color: var(--text-3); font-size: 11.5px; }
  1180. .ops-file-item em { font-style: normal; flex: 0 0 auto; font-size: 11.5px; }
  1181. .ops-done-text { color: #2e7d4f; }
  1182. .ops-file-del { flex: 0 0 auto; width: 20px; height: 20px; line-height: 1; padding: 0; color: var(--text-3); background: none; border: 0; border-radius: 50%; cursor: pointer; }
  1183. .ops-file-del:hover { color: var(--text); background: var(--border-light); }
  1184. .ops-check { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
  1185. .ops-check input { accent-color: var(--accent); }
  1186. /* ── 校区地图 ─────────────────────────────────────────── */
  1187. .schools-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
  1188. .schools-map-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 6px; }
  1189. .schools-map { width: 100%; height: clamp(420px, 68vh, 640px); }
  1190. .schools-side { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
  1191. .schools-side-head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-size: 13px; color: var(--text); }
  1192. .schools-side-head span { font-size: 11.5px; color: var(--text-3); }
  1193. .schools-list { max-height: clamp(420px, 68vh, 640px); overflow: auto; }
  1194. .schools-group { padding: 10px 14px 4px; font-size: 11.5px; color: var(--text-3); background: #fbfaf8; }
  1195. .schools-group em { font-style: normal; margin-left: 6px; opacity: .8; }
  1196. .schools-item { padding: 10px 14px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background .15s; }
  1197. .schools-item:hover { background: #faf9f7; }
  1198. .schools-item.on { background: #fff6f1; box-shadow: inset 3px 0 0 var(--accent); }
  1199. .schools-item-name { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
  1200. .schools-item-name .badge { font-weight: 500; }
  1201. .schools-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 53, .16); }
  1202. .schools-dot.off { background: #b8b2ad; box-shadow: none; }
  1203. .schools-item-meta { margin-top: 4px; padding-left: 15px; display: flex; gap: 10px; font-size: 11.5px; color: var(--text-3); }
  1204. @media (max-width: 1100px) {
  1205. .schools-layout { grid-template-columns: minmax(0, 1fr); }
  1206. .schools-list { max-height: 340px; }
  1207. }
  1208. .ops-metric-col { text-align: right; min-width: 92px; }
  1209. .ops-table-wide .ops-date-col { min-width: 52px; text-align: center; }
  1210. .ops-table-wide .ops-date-cell { text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
  1211. .ops-subtotal-label { color: var(--text-2); font-weight: 600; }
  1212. .ops-table-wide tbody tr.ops-subtotal-row td { border-top: 1px solid var(--border); }
  1213. /* 店铺分块:斑马底 + 块间距 + 整块悬停 */
  1214. .ops-table-wide .ops-shop-cell { vertical-align: top; padding-top: 11px; background: var(--card-bg); }
  1215. .ops-table-wide tbody tr.ops-block-alt td { background: #fbf9f6; }
  1216. .ops-table-wide tbody tr.ops-block-alt .ops-shop-cell { background: #f7f4ef; }
  1217. .ops-table-wide tbody tr.ops-block-start td { border-top: 6px solid var(--bg); }
  1218. .ops-table-wide tbody tr.ops-block-start .ops-shop-cell { border-top: 6px solid var(--bg); }
  1219. .ops-table-wide tbody tr.ops-hover td { background: #fff3ec; }
  1220. .ops-table-wide tbody tr.ops-hover .ops-shop-cell { background: #ffe9dc; }
  1221. .ops-table-wide tbody tr.ops-hover .ops-date-cell { color: var(--text); }
  1222. /* 多选下拉(字段 / 店铺) */
  1223. .ops-multi { position: relative; }
  1224. .ops-multi-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; font-size: 12.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; max-width: 260px; }
  1225. .ops-multi-btn:hover { background: #fff; }
  1226. .ops-multi-btn em { font-style: normal; color: var(--accent); font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  1227. .ops-multi-caret { color: var(--text-3); font-size: 10px; }
  1228. .ops-multi-menu { position: absolute; z-index: 30; top: 34px; left: 0; width: 280px; max-height: 380px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(31,27,24,.14); overflow: hidden; }
  1229. .ops-multi-menu[hidden] { display: none; }
  1230. .ops-multi-search { margin: 8px; padding: 6px 8px; font-size: 12.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; outline: none; }
  1231. .ops-multi-search:focus { border-color: var(--accent); background: #fff; }
  1232. .ops-multi-list { overflow: auto; max-height: 270px; padding: 0 6px 6px; }
  1233. .ops-multi-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text); }
  1234. .ops-multi-item:hover { background: #faf7f3; }
  1235. .ops-multi-item input { accent-color: var(--accent); flex: 0 0 auto; }
  1236. .ops-multi-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  1237. .ops-multi-item em { font-style: normal; color: var(--text-3); font-size: 11px; flex: 0 0 auto; }
  1238. .ops-multi-foot { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--border-light); }
  1239. .ops-multi-foot button { flex: 1; padding: 5px 0; font-size: 12px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
  1240. .ops-multi-foot button:hover { color: var(--text); background: #fff; }
  1241. .ops-multi-empty { padding: 14px; text-align: center; color: var(--text-3); font-size: 12px; }
  1242. .ops-table thead th.ops-col-num { text-align: right; }
  1243. .ops-table thead th.ops-col-text { text-align: left; }
  1244. .ops-text-cell { text-align: left; color: var(--text); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
  1245. /* 报表列宽:固定布局,店铺 240 / 日期 72 定宽,指标列均分剩余宽度 */
  1246. .ops-table-wide { width: 100%; table-layout: fixed; }
  1247. .ops-table-wide th.ops-shop-col,
  1248. .ops-table-wide td.ops-shop-cell { width: 240px; border-right: 1px solid var(--border-light); }
  1249. .ops-table-wide th.ops-date-col,
  1250. .ops-table-wide td.ops-date-cell { width: 72px; }
  1251. .ops-table-wide th.ops-metric-col,
  1252. .ops-table-wide td.ops-num,
  1253. .ops-table-wide td.ops-text-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  1254. .ops-table-wide th.ops-metric-col { padding-left: 18px; padding-right: 18px; }
  1255. .ops-table-wide td.ops-num,
  1256. .ops-table-wide td.ops-text-cell { padding-left: 18px; padding-right: 18px; }
  1257. .ops-table-wide tbody td { border-bottom-color: #f0ece7; }
  1258. .ops-shop-name { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }