index.css 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738
  1. :root {
  2. --primary: #10b981;
  3. --primary-dark: #059669;
  4. --primary-bg: #ecfdf5;
  5. --success: #059669;
  6. --success-bg: #ecfdf5;
  7. --warning: #d97706;
  8. --warning-bg: #fffbeb;
  9. --danger: #dc2626;
  10. --danger-bg: #fef2f2;
  11. --info: #64748b;
  12. --info-bg: #f8fafc;
  13. --text: #1e293b;
  14. --text-muted: #64748b;
  15. --border: #d9e8e2;
  16. --bg-page: #fefefe;
  17. --surface: #ffffff;
  18. --table-head: #f8fafc;
  19. --row-alt: #fafafa;
  20. --row-hover: #f1f5f9;
  21. --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  22. --radius: 10px;
  23. --radius-md: 8px;
  24. --control-h: 36px;
  25. /* Element Plus 全局主题色(fresh-mint-green 对齐) */
  26. --el-color-primary: var(--primary);
  27. --el-color-primary-dark-2: var(--primary-dark);
  28. --el-color-primary-light-3: #34d399;
  29. --el-color-primary-light-5: #66d9b3;
  30. --el-color-primary-light-7: #99e9cb;
  31. --el-color-primary-light-8: #c5f3e2;
  32. --el-color-primary-light-9: var(--primary-bg);
  33. --el-color-success: var(--success);
  34. --el-color-success-dark-2: #0b5e58;
  35. --el-color-success-light-3: #34b6ad;
  36. --el-color-success-light-5: #7dd3c7;
  37. --el-color-success-light-7: #a7f3d0;
  38. --el-color-success-light-8: #d1fae5;
  39. --el-color-success-light-9: var(--success-bg);
  40. --el-color-warning: var(--warning);
  41. --el-color-warning-dark-2: #b45309;
  42. --el-color-warning-light-3: #f59e0b;
  43. --el-color-warning-light-5: #fbbf24;
  44. --el-color-warning-light-7: #fde68a;
  45. --el-color-warning-light-8: #fef3c7;
  46. --el-color-warning-light-9: var(--warning-bg);
  47. --el-color-danger: var(--danger);
  48. --el-color-danger-dark-2: #b91c1c;
  49. --el-color-danger-light-3: #ef4444;
  50. --el-color-danger-light-5: #f87171;
  51. --el-color-danger-light-7: #fca5a5;
  52. --el-color-danger-light-8: #fecaca;
  53. --el-color-danger-light-9: var(--danger-bg);
  54. --el-color-info: var(--info);
  55. --el-color-info-dark-2: #115e59;
  56. --el-color-info-light-3: #14b8a6;
  57. --el-color-info-light-5: #2dd4bf;
  58. --el-color-info-light-7: #5eead4;
  59. --el-color-info-light-8: #99f6e4;
  60. --el-color-info-light-9: var(--info-bg);
  61. --el-text-color-primary: var(--text);
  62. --el-text-color-regular: var(--text-muted);
  63. --el-border-color: var(--border);
  64. --el-border-color-light: #edf0f3;
  65. --el-fill-color-light: #f8fafc;
  66. --el-bg-color: var(--surface);
  67. }
  68. * {
  69. box-sizing: border-box;
  70. }
  71. button,
  72. [role="button"],
  73. .el-button,
  74. a,
  75. .menu-link,
  76. .tab-chip,
  77. .tab-close,
  78. .icon-btn,
  79. .bx-btn,
  80. .bx-op-btn,
  81. summary,
  82. .nav-details > summary {
  83. cursor: default;
  84. }
  85. body {
  86. margin: 0;
  87. min-height: 100vh;
  88. font-family: Inter, -apple-system, sans-serif;
  89. font-size: 14px;
  90. line-height: 1.5;
  91. color: var(--text);
  92. background: var(--bg-page);
  93. }
  94. #app {
  95. min-height: 100vh;
  96. }
  97. .bx-layout {
  98. display: flex;
  99. height: 100vh;
  100. min-height: 0;
  101. overflow: hidden;
  102. }
  103. .sidebar {
  104. width: 220px;
  105. flex-shrink: 0;
  106. display: flex;
  107. flex-direction: column;
  108. min-height: 0;
  109. background: var(--surface);
  110. border-right: 1px solid var(--border);
  111. padding: 24px 16px;
  112. transition: width 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
  113. overflow: hidden;
  114. }
  115. /* 侧栏菜单区单独纵向滚动(logo 固定) */
  116. .sidebar > .el-scrollbar {
  117. flex: 1;
  118. min-height: 0;
  119. }
  120. .sidebar.collapsed {
  121. width: 0;
  122. padding-left: 0;
  123. padding-right: 0;
  124. border-right-color: transparent;
  125. }
  126. .logo {
  127. flex-shrink: 0;
  128. display: flex;
  129. flex-direction: column;
  130. align-items: center;
  131. gap: 8px;
  132. font-size: 16px;
  133. font-weight: 700;
  134. color: var(--text-muted);
  135. padding: 0 12px 20px;
  136. margin-bottom: 8px;
  137. border-bottom: 1px solid var(--border);
  138. }
  139. .logo-mark {
  140. flex-shrink: 0;
  141. display: inline-flex;
  142. align-items: center;
  143. justify-content: center;
  144. width: 100%;
  145. max-height: 40px;
  146. }
  147. .logo-img {
  148. display: block;
  149. height: 36px;
  150. width: auto;
  151. max-width: min(100%, 180px);
  152. object-fit: contain;
  153. }
  154. .logo-title {
  155. color: var(--primary);
  156. font-weight: 700;
  157. letter-spacing: 0.02em;
  158. font-size: 18px;
  159. line-height: 1.2;
  160. text-align: center;
  161. }
  162. .nav-tree {
  163. padding-bottom: 8px;
  164. }
  165. .nav-details {
  166. border: none;
  167. margin: 0 0 4px;
  168. padding: 0;
  169. }
  170. .nav-details > summary {
  171. list-style: none;
  172. cursor: pointer;
  173. display: flex;
  174. align-items: center;
  175. justify-content: space-between;
  176. padding: 8px 12px;
  177. margin: 0;
  178. border-radius: var(--radius);
  179. font-size: 12px;
  180. font-weight: 700;
  181. color: var(--text-muted);
  182. letter-spacing: 0.02em;
  183. user-select: none;
  184. }
  185. .nav-details > summary::-webkit-details-marker {
  186. display: none;
  187. }
  188. .nav-details > summary::after {
  189. content: "";
  190. width: 6px;
  191. height: 6px;
  192. border-right: 2px solid var(--text-muted);
  193. border-bottom: 2px solid var(--text-muted);
  194. transform: rotate(-45deg);
  195. transition: transform 0.2s ease, border-color 0.15s ease;
  196. }
  197. .nav-details[open] > summary::after {
  198. transform: rotate(45deg);
  199. margin-top: -2px;
  200. }
  201. .nav-details > summary:hover {
  202. background: var(--row-alt);
  203. color: var(--text);
  204. }
  205. .nav-details > summary:hover::after {
  206. border-right-color: var(--text);
  207. border-bottom-color: var(--text);
  208. }
  209. .nav-summary-main {
  210. display: flex;
  211. align-items: center;
  212. gap: 8px;
  213. min-width: 0;
  214. flex: 1;
  215. }
  216. .nav-summary-text {
  217. overflow: hidden;
  218. text-overflow: ellipsis;
  219. white-space: nowrap;
  220. }
  221. .nav-summary-ico {
  222. flex-shrink: 0;
  223. font-size: 16px;
  224. color: var(--text-muted);
  225. }
  226. .nav-details > summary:hover .nav-summary-ico {
  227. color: var(--text);
  228. }
  229. .nav-sub {
  230. padding: 2px 0 6px 4px;
  231. margin-left: 4px;
  232. border-left: 2px solid var(--border);
  233. }
  234. .nav-sub .nav-sub {
  235. margin-left: 10px;
  236. padding-left: 8px;
  237. border-left-style: dashed;
  238. border-left-width: 1px;
  239. }
  240. .nav-sub .nav-details > summary {
  241. font-size: 12px;
  242. font-weight: 600;
  243. padding: 6px 10px;
  244. }
  245. .menu-link {
  246. display: flex;
  247. align-items: center;
  248. gap: 8px;
  249. margin: 2px 0;
  250. padding: 8px 12px 8px 14px;
  251. border-radius: var(--radius);
  252. color: var(--text-muted);
  253. text-decoration: none;
  254. font-size: 13px;
  255. font-weight: 500;
  256. }
  257. .menu-link-ico {
  258. flex-shrink: 0;
  259. font-size: 16px;
  260. color: var(--text-muted);
  261. }
  262. .menu-link-text {
  263. min-width: 0;
  264. flex: 1;
  265. overflow: hidden;
  266. text-overflow: ellipsis;
  267. white-space: nowrap;
  268. }
  269. .menu-link:hover {
  270. background: var(--row-alt);
  271. color: var(--text);
  272. }
  273. .menu-link:hover .menu-link-ico {
  274. color: var(--text);
  275. }
  276. .menu-link.active {
  277. background: var(--primary-bg);
  278. color: var(--primary-dark);
  279. font-weight: 600;
  280. }
  281. .menu-link.active .menu-link-ico {
  282. color: var(--primary-dark);
  283. }
  284. /* 根级单菜单(无二级,如首页) */
  285. .menu-link.menu-link--l1-root {
  286. margin: 0 0 4px;
  287. padding: 8px 12px;
  288. font-size: 12px;
  289. font-weight: 700;
  290. letter-spacing: 0.02em;
  291. }
  292. .main {
  293. flex: 1;
  294. min-width: 0;
  295. min-height: 0;
  296. display: flex;
  297. flex-direction: column;
  298. overflow: hidden;
  299. }
  300. .main > .header {
  301. flex-shrink: 0;
  302. height: 56px;
  303. padding: 0 24px;
  304. display: flex;
  305. align-items: center;
  306. justify-content: space-between;
  307. background: var(--primary-dark);
  308. border-bottom: 1px solid #047857;
  309. }
  310. .main > .header .crumb {
  311. color: rgba(255, 255, 255, 0.82);
  312. }
  313. .main > .header .crumb b {
  314. color: #fff;
  315. }
  316. .main > .header .icon-btn {
  317. color: rgba(255, 255, 255, 0.88);
  318. }
  319. .main > .header .icon-btn:hover {
  320. color: #fff;
  321. background: rgba(255, 255, 255, 0.14);
  322. }
  323. .main > .header .user-trigger {
  324. color: #fff;
  325. background: transparent;
  326. }
  327. .main > .header .user-trigger:hover {
  328. background: transparent;
  329. }
  330. .main > .header .user-avatar {
  331. box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  332. }
  333. .header-left {
  334. display: flex;
  335. align-items: center;
  336. gap: 3px;
  337. min-width: 0;
  338. }
  339. .header-actions {
  340. display: inline-flex;
  341. align-items: center;
  342. gap: 3px;
  343. flex-shrink: 0;
  344. }
  345. .icon-btn {
  346. appearance: none;
  347. border: none;
  348. color: var(--text-muted);
  349. width: 32px;
  350. height: 32px;
  351. border-radius: 8px;
  352. padding: 0;
  353. margin: 0;
  354. box-shadow: none;
  355. background: transparent;
  356. display: inline-flex;
  357. align-items: center;
  358. justify-content: center;
  359. cursor: pointer;
  360. }
  361. .icon-btn:hover {
  362. color: var(--text);
  363. background: var(--row-alt);
  364. }
  365. .icon-btn .el-icon {
  366. width: auto;
  367. height: auto;
  368. padding: 0;
  369. margin: 0;
  370. line-height: 1;
  371. display: inline-flex;
  372. align-items: center;
  373. justify-content: center;
  374. flex: 0 0 auto;
  375. }
  376. .icon-btn .el-icon svg {
  377. width: 20px;
  378. height: 20px;
  379. padding: 0;
  380. margin: 0;
  381. display: block;
  382. }
  383. .crumb {
  384. font-size: 13px;
  385. color: var(--text-muted);
  386. white-space: nowrap;
  387. overflow: hidden;
  388. text-overflow: ellipsis;
  389. }
  390. .crumb b {
  391. color: var(--text);
  392. font-weight: 600;
  393. }
  394. .header-right {
  395. position: relative;
  396. display: flex;
  397. align-items: center;
  398. gap: 10px;
  399. }
  400. .user-trigger {
  401. appearance: none;
  402. border: none;
  403. color: var(--text);
  404. font-size: 13px;
  405. font-weight: 600;
  406. padding: 4px 8px 4px 4px;
  407. border-radius: 999px;
  408. background: transparent;
  409. box-shadow: none;
  410. margin: 0;
  411. min-height: auto;
  412. display: inline-flex;
  413. align-items: center;
  414. gap: 8px;
  415. cursor: pointer;
  416. }
  417. .user-trigger:hover {
  418. background: var(--row-alt);
  419. }
  420. .user-avatar {
  421. width: 24px;
  422. height: 24px;
  423. border-radius: 50%;
  424. color: #fff;
  425. display: inline-flex;
  426. align-items: center;
  427. justify-content: center;
  428. font-size: 12px;
  429. font-weight: 700;
  430. }
  431. .user-name {
  432. font-size: 13px;
  433. font-weight: 600;
  434. line-height: 1;
  435. }
  436. .content {
  437. flex: 1;
  438. min-height: 0;
  439. display: flex;
  440. flex-direction: column;
  441. overflow: hidden;
  442. padding: 24px;
  443. background: var(--bg-page);
  444. }
  445. /* 右侧业务内容区单独纵向滚动(页签条固定在上) */
  446. .content-scroll {
  447. flex: 1;
  448. min-height: 0;
  449. overflow-x: hidden;
  450. overflow-y: auto;
  451. }
  452. .tabs-strip {
  453. display: flex;
  454. flex-wrap: wrap;
  455. align-items: flex-end;
  456. gap: 4px;
  457. margin: 0 0 16px;
  458. padding: 0 2px 10px;
  459. border-bottom: 1px solid var(--border);
  460. }
  461. .tab-chip {
  462. border: 1px solid var(--border);
  463. background: var(--surface);
  464. color: var(--text-muted);
  465. font-size: 13px;
  466. font-weight: 600;
  467. padding: 8px 14px;
  468. border-radius: 8px 8px 0 0;
  469. margin-bottom: -11px;
  470. display: inline-flex;
  471. align-items: center;
  472. gap: 6px;
  473. max-width: 220px;
  474. cursor: pointer;
  475. }
  476. .tab-chip:hover {
  477. color: var(--text);
  478. background: var(--row-alt);
  479. }
  480. .tab-chip.active {
  481. color: var(--primary-dark);
  482. border-bottom-color: var(--surface);
  483. box-shadow: 0 -2px 0 var(--primary) inset;
  484. }
  485. .tab-chip .tab-close:hover {
  486. opacity: 1;
  487. background: rgba(100, 116, 139, 0.14);
  488. }
  489. .tab-label {
  490. min-width: 0;
  491. overflow: hidden;
  492. text-overflow: ellipsis;
  493. white-space: nowrap;
  494. }
  495. .tab-close {
  496. width: 16px;
  497. height: 16px;
  498. border: none;
  499. border-radius: 4px;
  500. background: transparent;
  501. color: inherit;
  502. opacity: 0.7;
  503. cursor: pointer;
  504. padding: 0;
  505. display: inline-flex;
  506. align-items: center;
  507. justify-content: center;
  508. }
  509. .tab-close .el-icon {
  510. width: 12px;
  511. height: 12px;
  512. }
  513. .tab-context-menu {
  514. position: fixed;
  515. z-index: 1000;
  516. width: max-content;
  517. border: 1px solid var(--border);
  518. border-radius: 10px;
  519. background: var(--surface);
  520. box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  521. padding: 6px;
  522. }
  523. .menu-item {
  524. width: auto;
  525. display: block;
  526. border: 0;
  527. background: transparent;
  528. text-align: left;
  529. color: var(--text);
  530. padding: 8px 10px;
  531. border-radius: 8px;
  532. font-size: 13px;
  533. cursor: pointer;
  534. white-space: nowrap;
  535. }
  536. .menu-item:hover {
  537. background: var(--row-alt);
  538. }
  539. .page-head {
  540. margin-bottom: 16px;
  541. }
  542. .page-head h1 {
  543. margin: 0 0 4px;
  544. font-size: 20px;
  545. font-weight: 700;
  546. }
  547. .desc {
  548. margin: 0;
  549. color: var(--text-muted);
  550. font-size: 13px;
  551. }
  552. /* 各页顶部统计卡:单行不换行,窄屏卡片等分变窄(原 grid auto-fit 会换行) */
  553. .stats {
  554. display: flex;
  555. flex-direction: row;
  556. flex-wrap: nowrap;
  557. align-items: stretch;
  558. width: 100%;
  559. min-width: 0;
  560. gap: clamp(6px, 1.2vw, 12px);
  561. margin-bottom: 16px;
  562. }
  563. .stats > .stat {
  564. flex: 1 1 0;
  565. min-width: 0;
  566. max-width: 100%;
  567. box-sizing: border-box;
  568. padding: clamp(8px, 1.8vw, 12px) clamp(6px, 1.2vw, 14px);
  569. overflow: hidden;
  570. }
  571. .stats > .stat .k {
  572. margin: 0 0 6px;
  573. font-size: clamp(11px, 2.4vw, 14px);
  574. overflow: hidden;
  575. text-overflow: ellipsis;
  576. white-space: nowrap;
  577. }
  578. .stats > .stat .v {
  579. margin: 0;
  580. font-size: clamp(13px, 3.8vw, 22px);
  581. font-weight: 700;
  582. color: var(--primary-dark);
  583. overflow: hidden;
  584. text-overflow: ellipsis;
  585. white-space: nowrap;
  586. }
  587. .stat {
  588. background: #fff;
  589. border: 1px solid var(--border);
  590. border-radius: var(--radius);
  591. padding: 12px 14px;
  592. box-shadow: var(--shadow);
  593. }
  594. .stat .k {
  595. margin: 0 0 8px;
  596. font-size: 14px;
  597. font-weight: 600;
  598. }
  599. .stat .v {
  600. margin: 0;
  601. font-size: 22px;
  602. font-weight: 700;
  603. color: var(--primary-dark);
  604. }
  605. .visual-check {
  606. margin-bottom: 16px;
  607. padding: 12px 14px;
  608. border: 1px solid var(--border);
  609. border-radius: var(--radius-md);
  610. background: var(--surface);
  611. }
  612. .visual-check-head {
  613. display: flex;
  614. align-items: center;
  615. justify-content: space-between;
  616. gap: 8px;
  617. margin-bottom: 10px;
  618. }
  619. .visual-check-head h3 {
  620. margin: 0;
  621. font-size: 14px;
  622. font-weight: 600;
  623. color: var(--text);
  624. }
  625. .visual-check-group {
  626. display: flex;
  627. align-items: center;
  628. flex-wrap: wrap;
  629. gap: 8px;
  630. margin-bottom: 8px;
  631. }
  632. .visual-check-alerts .el-alert {
  633. max-width: 220px;
  634. }
  635. .visual-check-label {
  636. min-width: 42px;
  637. font-size: 12px;
  638. font-weight: 600;
  639. color: var(--text-muted);
  640. }
  641. .visual-check-switch-text {
  642. font-size: 12px;
  643. color: var(--text-muted);
  644. }
  645. .panel {
  646. background: #fff;
  647. border: 1px solid var(--border);
  648. border-radius: var(--radius);
  649. box-shadow: var(--shadow);
  650. overflow: hidden;
  651. margin-bottom: 16px;
  652. }
  653. .panel :is(.el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td) {
  654. background: var(--primary-bg) !important;
  655. border-top: 2px solid var(--primary);
  656. font-weight: 600;
  657. }
  658. .simple-panel {
  659. padding: 16px;
  660. }
  661. .panel-top {
  662. padding: 10px 16px;
  663. border-bottom: 1px solid var(--border);
  664. font-size: 14px;
  665. font-weight: 600;
  666. }
  667. .table-scroll {
  668. overflow-x: auto;
  669. overflow-y: hidden;
  670. }
  671. .table-scroll .bx-table {
  672. min-width: 920px;
  673. }
  674. .filter-block {
  675. padding: 12px 16px 10px;
  676. border-bottom: 1px solid var(--border);
  677. }
  678. .filter-actions {
  679. padding-top: 10px;
  680. display: flex;
  681. justify-content: flex-start;
  682. align-items: center;
  683. gap: 10px;
  684. }
  685. .btn-link.el-button {
  686. height: 36px;
  687. padding: 0 8px;
  688. color: var(--primary-dark);
  689. }
  690. .btn-link.el-button:hover {
  691. background: var(--primary-bg);
  692. border-radius: 8px;
  693. }
  694. .filter-actions-end {
  695. display: inline-flex;
  696. align-items: center;
  697. gap: 8px;
  698. /* 无「展开更多条件」时仍把重置/查询固定在行尾 */
  699. margin-left: auto;
  700. }
  701. /* 检索栏右侧按钮(重置/查询)按标准固定样式 */
  702. .filter-actions-end .filter-reset.el-button,
  703. .filter-actions-end .filter-search.el-button {
  704. height: 36px;
  705. padding: 0 14px;
  706. border-radius: 8px;
  707. font-size: 14px;
  708. font-weight: 600;
  709. margin: 0;
  710. }
  711. .filter-actions-end .filter-reset.el-button {
  712. border: 1px solid var(--border);
  713. background: var(--surface);
  714. color: var(--text);
  715. }
  716. .filter-actions-end .filter-reset.el-button:hover {
  717. background: var(--row-alt);
  718. }
  719. /* 查询:主色描边(无背景)+ 带搜索 icon */
  720. .filter-actions-end .filter-search.el-button {
  721. border: 1px solid var(--primary);
  722. background: transparent;
  723. color: var(--primary-dark);
  724. }
  725. .filter-actions-end .filter-search.el-button:hover {
  726. border-color: var(--primary-dark);
  727. }
  728. .filter-grid {
  729. display: grid;
  730. grid-template-columns: repeat(4, 1fr);
  731. gap: 10px 14px;
  732. margin-bottom: 10px;
  733. }
  734. @media (max-width: 1100px) {
  735. .filter-grid {
  736. grid-template-columns: repeat(2, 1fr);
  737. }
  738. }
  739. @media (max-width: 560px) {
  740. .filter-grid {
  741. grid-template-columns: 1fr;
  742. }
  743. }
  744. .filter-field label {
  745. display: block;
  746. font-size: 11px;
  747. font-weight: 500;
  748. color: var(--text-muted);
  749. margin-bottom: 4px;
  750. }
  751. .filter-field :is(.bx-input, .bx-select, .bx-date-picker) {
  752. width: 100%;
  753. min-width: 0;
  754. }
  755. .list-toolbar {
  756. background: var(--table-head);
  757. border-bottom: 1px solid var(--border);
  758. padding: 0;
  759. }
  760. .list-toolbar-row {
  761. padding: 8px 16px;
  762. display: flex;
  763. align-items: center;
  764. gap: 8px;
  765. flex-wrap: wrap;
  766. }
  767. .list-toolbar-selected {
  768. font-size: 12px;
  769. font-weight: 600;
  770. color: var(--text-muted);
  771. min-height: 36px;
  772. display: inline-flex;
  773. align-items: center;
  774. border-right: 1px solid var(--border);
  775. padding-right: 12px;
  776. margin-right: 4px;
  777. }
  778. .list-toolbar-selected .sel-num {
  779. color: var(--primary-dark);
  780. font-weight: 700;
  781. margin: 0 2px;
  782. }
  783. .list-toolbar-actions {
  784. display: inline-flex;
  785. flex-wrap: wrap;
  786. gap: 8px;
  787. align-items: center;
  788. }
  789. .list-toolbar-actions .bx-btn.el-button:not(.el-button--primary) {
  790. background: var(--surface);
  791. border-color: var(--border);
  792. color: var(--text);
  793. }
  794. .list-toolbar-actions .bx-btn.el-button:not(.el-button--primary):hover {
  795. background: var(--row-alt);
  796. }
  797. .list-pager {
  798. display: flex;
  799. flex-wrap: wrap;
  800. align-items: center;
  801. justify-content: space-between;
  802. gap: 10px 12px;
  803. padding: 8px 16px;
  804. border-top: 1px solid var(--border);
  805. background: var(--surface);
  806. color: var(--text-muted);
  807. font-size: 13px;
  808. }
  809. .list-range {
  810. white-space: nowrap;
  811. }
  812. .list-pager-right {
  813. display: flex;
  814. flex-wrap: wrap;
  815. align-items: center;
  816. gap: 8px;
  817. }
  818. .pager-size-label,
  819. .pager-size-suffix {
  820. font-size: 13px;
  821. color: var(--text-muted);
  822. margin: 0;
  823. white-space: nowrap;
  824. }
  825. .list-pager .el-pagination {
  826. --el-pagination-button-height: 32px;
  827. --el-pagination-button-width: 36px;
  828. --el-pagination-font-size: 13px;
  829. color: var(--text-muted);
  830. display: inline-flex;
  831. align-items: center;
  832. gap: 3px;
  833. }
  834. .list-pager .el-pagination button,
  835. .list-pager .el-pagination .el-pager li {
  836. min-width: 36px;
  837. height: 32px;
  838. line-height: 32px;
  839. border-radius: 8px;
  840. }
  841. .list-pager .el-pagination .btn-prev,
  842. .list-pager .el-pagination .btn-next,
  843. .list-pager .el-pagination .el-pager li {
  844. border: 1px solid var(--border);
  845. background: var(--surface);
  846. margin: 0;
  847. }
  848. .list-pager .el-pagination .el-pager {
  849. display: inline-flex;
  850. align-items: center;
  851. gap: 3px;
  852. margin: 0;
  853. }
  854. .list-pager .el-pagination .btn-prev,
  855. .list-pager .el-pagination .btn-next {
  856. padding: 0 10px;
  857. min-width: 68px;
  858. }
  859. .list-pager .el-pagination .el-pager li.is-active {
  860. background: var(--primary);
  861. border-color: var(--primary);
  862. color: #fff;
  863. }
  864. .list-pager .el-pagination .el-pager li.is-active:hover {
  865. background: var(--primary-dark);
  866. border-color: var(--primary-dark);
  867. }
  868. .list-pager .el-pagination .el-pagination__sizes .el-select__wrapper {
  869. min-height: 32px;
  870. border-radius: 8px;
  871. min-width: 72px;
  872. }
  873. .panel :is(.el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td) {
  874. background: var(--primary-bg) !important;
  875. border-top: 2px solid var(--primary);
  876. font-weight: 600;
  877. padding-top: 14px;
  878. padding-bottom: 14px;
  879. }
  880. .panel :is(.el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td) .cell {
  881. white-space: nowrap;
  882. text-align: center;
  883. }
  884. /* 合计行吸底固定(跟随列表滚动容器) */
  885. .panel .el-table__footer-wrapper,
  886. .panel .el-table__fixed-footer-wrapper {
  887. position: sticky;
  888. bottom: 0;
  889. z-index: 4;
  890. }
  891. .ic {
  892. width: 16px;
  893. height: 16px;
  894. }
  895. .ic-sm {
  896. width: 14px;
  897. height: 14px;
  898. }
  899. .bx-input.el-input,
  900. .bx-select.el-select,
  901. .bx-date-picker.el-date-editor {
  902. width: 100%;
  903. }
  904. .bx-input .el-input__wrapper,
  905. .bx-select .el-select__wrapper,
  906. .bx-date-picker .el-input__wrapper {
  907. min-height: var(--control-h);
  908. border-radius: var(--radius-md);
  909. box-shadow: none;
  910. border: 1px solid var(--border);
  911. background: var(--surface);
  912. }
  913. .bx-input .el-input__wrapper.is-focus,
  914. .bx-select .el-select__wrapper.is-focus,
  915. .bx-date-picker .el-input__wrapper.is-focus {
  916. border-color: var(--primary);
  917. box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  918. }
  919. .bx-input .el-input__inner {
  920. height: var(--control-h);
  921. font-size: 14px;
  922. }
  923. .bx-select .el-select__placeholder,
  924. .bx-select .el-input__inner {
  925. font-size: 14px;
  926. }
  927. .bx-table.el-table {
  928. --el-table-border-color: var(--border);
  929. --el-table-header-bg-color: var(--table-head);
  930. --el-table-row-hover-bg-color: var(--row-hover);
  931. --el-table-text-color: var(--text);
  932. --el-table-header-text-color: var(--text-muted);
  933. --el-table-bg-color: var(--surface);
  934. --el-table-tr-bg-color: var(--surface);
  935. }
  936. .bx-table .el-table__header-wrapper th {
  937. font-size: 12px;
  938. font-weight: 600;
  939. color: var(--text-muted);
  940. }
  941. .bx-table .el-table__cell {
  942. padding: 10px 12px;
  943. }
  944. .bx-table.el-table--border {
  945. border: none;
  946. }
  947. .bx-table .el-table__inner-wrapper::before {
  948. background-color: var(--border);
  949. }
  950. .bx-table .el-table__cell {
  951. border-bottom: 1px solid var(--border);
  952. }
  953. .bx-table .el-table__header-wrapper th {
  954. background: var(--table-head) !important;
  955. }
  956. .bx-table .el-table__row td {
  957. background: var(--surface) !important;
  958. }
  959. /* 列表:除金额列(col-money)外单元格居中;金额列右对齐 */
  960. .bx-table .el-table__cell .cell,
  961. .view-detail-table .el-table__cell .cell,
  962. .dlg-view .el-table .el-table__cell .cell,
  963. .bx-dialog .el-dialog__body .el-table .el-table__cell .cell,
  964. .form-section .el-table .el-table__cell .cell {
  965. text-align: center;
  966. }
  967. .bx-table .col-money .cell,
  968. .view-detail-table .col-money .cell,
  969. .dlg-view .el-table .col-money .cell,
  970. .bx-dialog .el-dialog__body .el-table .col-money .cell,
  971. .form-section .el-table .col-money .cell {
  972. text-align: right;
  973. font-variant-numeric: tabular-nums;
  974. }
  975. /* 合计行:金额列强制右对齐(覆盖表尾默认居中) */
  976. .bx-table .el-table__footer-wrapper td.col-money .cell,
  977. .bx-table .el-table__fixed-footer-wrapper td.col-money .cell,
  978. .view-detail-table .el-table__footer-wrapper td.col-money .cell,
  979. .view-detail-table .el-table__fixed-footer-wrapper td.col-money .cell,
  980. .dlg-view .el-table .el-table__footer-wrapper td.col-money .cell,
  981. .bx-dialog .el-dialog__body .el-table .el-table__footer-wrapper td.col-money .cell,
  982. .form-section .el-table .el-table__footer-wrapper td.col-money .cell {
  983. text-align: right !important;
  984. font-variant-numeric: tabular-nums;
  985. }
  986. .bx-table .col-actions .cell {
  987. white-space: nowrap;
  988. display: inline-flex;
  989. flex-wrap: nowrap;
  990. align-items: center;
  991. gap: 6px;
  992. justify-content: flex-start;
  993. }
  994. /* 列表「当前节点」为空:无标签,占位与次要色 */
  995. .node-current-empty {
  996. color: var(--text-muted);
  997. }
  998. /* 列表合计:第 4 列常为「本页合计(n单)」加粗(备用金申请页除外,见下条) */
  999. .table-scroll.table-page-summary:not(.advance-apply-summary-merge)
  1000. .el-table__footer-wrapper
  1001. td:nth-child(4)
  1002. .cell {
  1003. font-weight: 600;
  1004. color: var(--text);
  1005. }
  1006. /* 备用金申请:合计行首格 colspan=4 合并多选+序号+单号+申请人 */
  1007. .table-scroll.table-page-summary.advance-apply-summary-merge
  1008. .el-table__footer-wrapper
  1009. td:first-child
  1010. .cell {
  1011. font-weight: 600;
  1012. color: var(--text);
  1013. text-align: center;
  1014. }
  1015. .bx-table .col-actions .cell > * {
  1016. vertical-align: middle;
  1017. }
  1018. .bx-table .el-table__body tr:hover > td {
  1019. background: var(--row-hover) !important;
  1020. }
  1021. /* 列表偶数行浅底(整行同色;不按列斑马) */
  1022. .bx-table .el-table__body tr.el-table__row:nth-child(even) > td.el-table__cell {
  1023. background: var(--row-alt) !important;
  1024. }
  1025. .bx-table .el-table__body tr:hover td {
  1026. background: var(--row-hover) !important;
  1027. }
  1028. .bx-tag {
  1029. display: inline-flex;
  1030. align-items: center;
  1031. padding: 3px 10px;
  1032. border-radius: 999px;
  1033. font-size: 12px;
  1034. font-weight: 600;
  1035. background: #fff;
  1036. border: 1px solid transparent;
  1037. white-space: nowrap;
  1038. }
  1039. .bx-tag--pending { color: #475569; border-color: #cbd5e1; }
  1040. .bx-tag--processing { color: #00a874; border-color: #66d9b3; }
  1041. .bx-tag--done { color: #0f766e; border-color: #5eead4; }
  1042. /* 审批中等:浅底表格上需可见描边,勿用近白/透明边 */
  1043. .bx-tag--warning {
  1044. color: #b45309;
  1045. background: #fffbeb;
  1046. border-color: #f59e0b;
  1047. }
  1048. /* 历史误用 tone=warn 时与 warning 对齐 */
  1049. .bx-tag--warn {
  1050. color: #b45309;
  1051. background: #fffbeb;
  1052. border-color: #f59e0b;
  1053. }
  1054. .bx-tag--error { color: #dc2626; border-color: #fca5a5; }
  1055. .bx-tag--info { color: #0f766e; border-color: #5eead4; }
  1056. .bx-btn.el-button {
  1057. height: var(--control-h);
  1058. border-radius: var(--radius-md);
  1059. font-size: 14px;
  1060. font-weight: 600;
  1061. gap: 2px;
  1062. }
  1063. .bx-btn.el-button--primary {
  1064. background: var(--primary);
  1065. border-color: var(--primary);
  1066. }
  1067. .bx-btn.el-button--primary:hover {
  1068. background: var(--primary-dark);
  1069. border-color: var(--primary-dark);
  1070. }
  1071. /* 列表工具栏首按钮:主色描边(无背景) */
  1072. .bx-btn.el-button--primary.is-plain {
  1073. background: transparent;
  1074. border-color: var(--primary);
  1075. color: var(--primary-dark);
  1076. }
  1077. .bx-btn.el-button--primary.is-plain:hover {
  1078. background: transparent;
  1079. border-color: var(--primary-dark);
  1080. color: var(--primary-dark);
  1081. }
  1082. .bx-op-btn.el-button {
  1083. height: 28px;
  1084. padding: 0 8px;
  1085. font-size: 12px;
  1086. font-weight: 600;
  1087. gap: 2px;
  1088. border-radius: 8px;
  1089. border: 1px solid var(--border);
  1090. background: var(--surface);
  1091. color: var(--text);
  1092. }
  1093. .bx-op-btn.el-button.primary {
  1094. border-color: var(--primary);
  1095. background: transparent;
  1096. color: var(--primary-dark);
  1097. }
  1098. .bx-op-btn.el-button.primary:hover {
  1099. border-color: var(--primary-dark);
  1100. background: transparent;
  1101. color: var(--primary-dark);
  1102. }
  1103. .bx-op-btn.el-button:not(.primary):hover {
  1104. background: var(--row-alt);
  1105. }
  1106. .el-table .el-button + .el-button {
  1107. margin-left: 8px;
  1108. }
  1109. /* 按钮内所有 icon(含 loading)颜色跟随文字 currentColor */
  1110. .el-button .el-icon {
  1111. color: currentColor;
  1112. }
  1113. .el-button .el-icon svg {
  1114. fill: currentColor;
  1115. stroke: currentColor;
  1116. }
  1117. .el-button.is-loading .el-icon {
  1118. color: currentColor;
  1119. }
  1120. .bx-dialog .el-dialog {
  1121. border: 1px solid var(--border);
  1122. border-radius: var(--radius);
  1123. box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  1124. overflow: hidden;
  1125. display: flex;
  1126. flex-direction: column;
  1127. max-height: calc(100vh - 64px);
  1128. }
  1129. .bx-dialog .el-dialog__header {
  1130. padding: 16px 22px;
  1131. border-bottom: 1px solid var(--border);
  1132. flex-shrink: 0;
  1133. }
  1134. .bx-dialog .el-dialog__title {
  1135. font-size: 18px;
  1136. font-weight: 700;
  1137. color: var(--text);
  1138. letter-spacing: -0.02em;
  1139. }
  1140. .bx-dialog .el-dialog__body {
  1141. padding: 20px 22px;
  1142. overflow-y: auto;
  1143. flex: 1;
  1144. max-height: calc(100vh - 200px);
  1145. }
  1146. .bx-dialog .el-dialog__footer {
  1147. padding: 12px 22px;
  1148. border-top: 1px solid var(--border);
  1149. background: var(--table-head);
  1150. display: flex;
  1151. justify-content: flex-end;
  1152. gap: 8px;
  1153. flex-shrink: 0;
  1154. }
  1155. .bx-dialog .el-dialog__headerbtn {
  1156. width: 32px;
  1157. height: 32px;
  1158. border-radius: 8px;
  1159. top: 12px;
  1160. right: 14px;
  1161. }
  1162. .bx-dialog .el-dialog__headerbtn:hover {
  1163. background: var(--row-alt);
  1164. }
  1165. .bx-dialog .el-dialog__close {
  1166. color: var(--text-muted);
  1167. }
  1168. .bx-dialog .el-dialog__headerbtn:hover .el-dialog__close {
  1169. color: var(--text);
  1170. }
  1171. .dlg-view {
  1172. padding: 0;
  1173. }
  1174. .dlg-view-hero {
  1175. padding: 20px 22px;
  1176. background: linear-gradient(135deg, var(--primary-bg) 0%, var(--surface) 55%);
  1177. border-bottom: 1px solid var(--border);
  1178. }
  1179. .dlg-view-hero-top {
  1180. display: flex;
  1181. align-items: center;
  1182. justify-content: space-between;
  1183. gap: 12px;
  1184. flex-wrap: wrap;
  1185. }
  1186. .dlg-view-title {
  1187. margin: 0;
  1188. font-size: 18px;
  1189. font-weight: 700;
  1190. letter-spacing: -0.02em;
  1191. }
  1192. .dlg-view-tags {
  1193. display: inline-flex;
  1194. align-items: center;
  1195. flex-wrap: wrap;
  1196. gap: 8px;
  1197. }
  1198. .dlg-view-meta {
  1199. margin: 10px 0 0;
  1200. font-size: 13px;
  1201. color: var(--text-muted);
  1202. line-height: 1.5;
  1203. }
  1204. .dlg-view-section {
  1205. padding: 20px 22px;
  1206. border-bottom: 1px solid var(--border);
  1207. }
  1208. .dlg-view-section:last-child {
  1209. border-bottom: none;
  1210. }
  1211. .dlg-kv {
  1212. display: grid;
  1213. grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr);
  1214. gap: 14px 28px;
  1215. font-size: 13px;
  1216. align-items: start;
  1217. }
  1218. .dlg-kv .v .clamp-wrap {
  1219. width: 100%;
  1220. }
  1221. .dialog-view-xl .el-dialog,
  1222. .bx-dialog.dialog-view-xl .el-dialog {
  1223. width: min(920px, calc(100vw - 32px)) !important;
  1224. }
  1225. .money-em {
  1226. color: var(--primary-dark);
  1227. font-weight: 700;
  1228. }
  1229. .section-gap-tight {
  1230. margin-top: 10px;
  1231. }
  1232. .inline-row {
  1233. display: flex;
  1234. gap: 8px;
  1235. margin-bottom: 10px;
  1236. align-items: center;
  1237. }
  1238. .inline-grow {
  1239. flex: 1;
  1240. min-width: 0;
  1241. }
  1242. .field-no-margin {
  1243. margin: 0;
  1244. }
  1245. .form-section-last {
  1246. border-bottom: none !important;
  1247. margin-bottom: 0 !important;
  1248. padding-bottom: 0 !important;
  1249. }
  1250. .section-title-tight {
  1251. margin-bottom: 8px;
  1252. }
  1253. .tag-list {
  1254. display: flex;
  1255. flex-wrap: wrap;
  1256. gap: 8px;
  1257. }
  1258. .desc-tight {
  1259. margin-bottom: 12px;
  1260. }
  1261. .fill-100 {
  1262. width: 100%;
  1263. }
  1264. .tree-panel {
  1265. max-height: 400px;
  1266. overflow: auto;
  1267. border: 1px solid var(--el-border-color-light);
  1268. border-radius: 6px;
  1269. padding: 8px;
  1270. }
  1271. .center-pad-lg {
  1272. text-align: center;
  1273. padding: 32px 0;
  1274. }
  1275. .muted {
  1276. color: var(--text-muted);
  1277. }
  1278. .align-right {
  1279. display: flex;
  1280. justify-content: flex-end;
  1281. margin-top: 8px;
  1282. }
  1283. .img-preview-wrap {
  1284. text-align: center;
  1285. }
  1286. .img-preview {
  1287. max-width: 100%;
  1288. max-height: 60vh;
  1289. }
  1290. .dlg-kv .k {
  1291. color: var(--text-muted);
  1292. font-size: 12px;
  1293. font-weight: 600;
  1294. line-height: 1.5;
  1295. word-break: break-word;
  1296. }
  1297. .dlg-kv .v {
  1298. color: var(--text);
  1299. font-weight: 500;
  1300. min-width: 0;
  1301. line-height: 1.5;
  1302. word-break: break-word;
  1303. }
  1304. /* kv-full:仅适合紧跟「行首 col1 的 .k」;若前面已是 k,v,k 占满三列,下一值请用普通 .v。 */
  1305. .dlg-kv .v.kv-full {
  1306. grid-column: 2 / -1;
  1307. }
  1308. .dlg-kv.dlg-kv--triple {
  1309. grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr);
  1310. }
  1311. @media (max-width: 1280px) {
  1312. .dlg-kv {
  1313. grid-template-columns: 90px minmax(0, 1fr) 90px minmax(0, 1fr);
  1314. gap: 10px 16px;
  1315. }
  1316. .dlg-kv.dlg-kv--triple {
  1317. grid-template-columns: 90px minmax(0, 1fr) 90px minmax(0, 1fr);
  1318. }
  1319. }
  1320. @media (max-width: 900px) {
  1321. .dlg-kv {
  1322. grid-template-columns: 90px minmax(0, 1fr);
  1323. }
  1324. .dlg-kv.dlg-kv--triple {
  1325. grid-template-columns: 90px minmax(0, 1fr);
  1326. }
  1327. .dlg-kv .v.kv-full {
  1328. grid-column: auto;
  1329. }
  1330. }
  1331. .dlg-note {
  1332. margin: 0 0 16px;
  1333. font-size: 13px;
  1334. color: var(--text-muted);
  1335. }
  1336. .flow-scroll {
  1337. max-height: 320px;
  1338. overflow-y: auto;
  1339. padding-right: 4px;
  1340. }
  1341. @media (max-width: 900px) {
  1342. .flow-scroll {
  1343. max-height: 260px;
  1344. }
  1345. }
  1346. .sr-only {
  1347. position: absolute;
  1348. width: 1px;
  1349. height: 1px;
  1350. padding: 0;
  1351. margin: -1px;
  1352. overflow: hidden;
  1353. clip: rect(0, 0, 0, 0);
  1354. white-space: nowrap;
  1355. border: 0;
  1356. }
  1357. .wf-info-bar {
  1358. padding: 12px 16px;
  1359. display: flex;
  1360. gap: 24px;
  1361. align-items: center;
  1362. background: var(--primary-bg);
  1363. border-bottom: 1px solid var(--border);
  1364. }
  1365. .field {
  1366. margin-bottom: 12px;
  1367. }
  1368. .field label {
  1369. display: block;
  1370. font-size: 13px;
  1371. font-weight: 500;
  1372. margin-bottom: 6px;
  1373. color: var(--text);
  1374. }
  1375. .form-section {
  1376. margin-bottom: 20px;
  1377. padding-bottom: 16px;
  1378. border-bottom: 1px dashed var(--border);
  1379. }
  1380. .form-section:last-of-type {
  1381. border-bottom: none;
  1382. margin-bottom: 0;
  1383. padding-bottom: 0;
  1384. }
  1385. .form-section h4 {
  1386. margin: 0 0 12px;
  1387. font-size: 13px;
  1388. font-weight: 700;
  1389. color: var(--text-muted);
  1390. letter-spacing: 0.04em;
  1391. }
  1392. .form-grid-2 {
  1393. display: grid;
  1394. grid-template-columns: 1fr 1fr;
  1395. gap: 12px 16px;
  1396. }
  1397. @media (max-width: 560px) {
  1398. .form-grid-2 {
  1399. grid-template-columns: 1fr;
  1400. }
  1401. }
  1402. /* Element Plus 组件语义色视觉对齐(fresh-mint-green) */
  1403. .el-tag {
  1404. border-radius: 999px;
  1405. padding: 3px 10px;
  1406. font-size: 12px;
  1407. font-weight: 600;
  1408. line-height: 1.3;
  1409. background: #fff;
  1410. }
  1411. .el-tag.el-tag--success {
  1412. color: #0f766e;
  1413. border-color: #5eead4;
  1414. background: #fff;
  1415. }
  1416. .el-tag.el-tag--warning {
  1417. color: #d97706;
  1418. border-color: #f6c453;
  1419. background: #fff;
  1420. }
  1421. .el-tag.el-tag--danger {
  1422. color: #dc2626;
  1423. border-color: #fca5a5;
  1424. background: #fff;
  1425. }
  1426. .el-tag.el-tag--info {
  1427. color: #0f766e;
  1428. border-color: #5eead4;
  1429. background: #fff;
  1430. }
  1431. .el-alert {
  1432. border-radius: var(--radius-md);
  1433. border: 1px solid transparent;
  1434. }
  1435. .el-alert--success {
  1436. background: var(--success-bg);
  1437. border-color: #a7f3d0;
  1438. color: #0f766e;
  1439. }
  1440. .el-alert--warning {
  1441. background: var(--warning-bg);
  1442. border-color: #fde68a;
  1443. color: #b45309;
  1444. }
  1445. .el-alert--error {
  1446. background: var(--danger-bg);
  1447. border-color: #fecaca;
  1448. color: #b91c1c;
  1449. }
  1450. .el-alert--info {
  1451. background: var(--info-bg);
  1452. border-color: #99f6e4;
  1453. color: #115e59;
  1454. }
  1455. .el-message {
  1456. border-radius: var(--radius-md);
  1457. border: 1px solid transparent;
  1458. box-shadow: var(--shadow);
  1459. }
  1460. .el-message--success {
  1461. background: var(--success-bg);
  1462. border-color: #a7f3d0;
  1463. }
  1464. .el-message--warning {
  1465. background: var(--warning-bg);
  1466. border-color: #fde68a;
  1467. }
  1468. .el-message--error {
  1469. background: var(--danger-bg);
  1470. border-color: #fecaca;
  1471. }
  1472. .el-message--info {
  1473. background: var(--info-bg);
  1474. border-color: #99f6e4;
  1475. }
  1476. .el-switch {
  1477. --el-switch-on-color: var(--primary);
  1478. --el-switch-off-color: #d1d5db;
  1479. }
  1480. /* 工作流配置信息栏 */
  1481. .wf-info-bar {
  1482. padding: 12px 16px;
  1483. display: flex;
  1484. gap: 24px;
  1485. align-items: center;
  1486. background: var(--primary-bg);
  1487. border-bottom: 1px solid var(--border);
  1488. }