app.scss 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789
  1. // 全局样式
  2. html,
  3. body,
  4. #app {
  5. min-height: 100%;
  6. }
  7. body {
  8. font-family:
  9. Inter,
  10. -apple-system,
  11. BlinkMacSystemFont,
  12. 'Segoe UI',
  13. Roboto,
  14. sans-serif;
  15. font-size: 14px;
  16. line-height: 1.5;
  17. color: var(--mint-text);
  18. background: var(--mint-bg-page);
  19. }
  20. :root {
  21. --theme-color: var(--mint-primary);
  22. --default-bg-color: var(--mint-bg-page);
  23. --default-box-color: var(--mint-surface);
  24. --art-card-border: var(--mint-border);
  25. --custom-radius: 16px;
  26. }
  27. // 顶部进度条颜色
  28. #nprogress .bar {
  29. z-index: 2400;
  30. background-color: var(--mint-primary);
  31. }
  32. #nprogress .peg {
  33. box-shadow:
  34. 0 0 10px var(--theme-color),
  35. 0 0 5px var(--theme-color) !important;
  36. }
  37. #nprogress .spinner-icon {
  38. border-top-color: var(--theme-color) !important;
  39. border-left-color: var(--theme-color) !important;
  40. }
  41. // 处理移动端组件兼容性
  42. @media screen and (max-width: 640px) {
  43. * {
  44. cursor: default !important;
  45. }
  46. }
  47. // 背景滤镜
  48. *,
  49. ::before,
  50. ::after {
  51. --tw-backdrop-blur: ;
  52. --tw-backdrop-brightness: ;
  53. --tw-backdrop-contrast: ;
  54. --tw-backdrop-grayscale: ;
  55. --tw-backdrop-hue-rotate: ;
  56. --tw-backdrop-invert: ;
  57. --tw-backdrop-opacity: ;
  58. --tw-backdrop-saturate: ;
  59. --tw-backdrop-sepia: ;
  60. }
  61. // 色弱模式
  62. .color-weak {
  63. filter: invert(80%);
  64. -webkit-filter: invert(80%);
  65. }
  66. #noop {
  67. display: none;
  68. }
  69. // 语言切换选中样式
  70. .langDropDownStyle {
  71. // 选中项背景颜色
  72. .is-selected {
  73. background-color: var(--art-el-active-color) !important;
  74. }
  75. // 语言切换按钮菜单样式优化
  76. .lang-btn-item {
  77. .el-dropdown-menu__item {
  78. padding-left: 13px !important;
  79. padding-right: 6px !important;
  80. margin-bottom: 3px !important;
  81. }
  82. &:last-child {
  83. .el-dropdown-menu__item {
  84. margin-bottom: 0 !important;
  85. }
  86. }
  87. .menu-txt {
  88. min-width: 60px;
  89. display: block;
  90. }
  91. i {
  92. font-size: 10px;
  93. margin-left: 10px;
  94. }
  95. }
  96. }
  97. // 盒子默认边框
  98. .page-content {
  99. border: 1px solid var(--mint-border) !important;
  100. border-radius: var(--mint-radius) !important;
  101. box-shadow: var(--mint-shadow) !important;
  102. }
  103. @mixin art-card-base($border-color, $shadow: none, $radius-diff: 4px) {
  104. background: var(--default-box-color);
  105. border: 1px solid #{$border-color} !important;
  106. border-radius: calc(var(--custom-radius) + #{$radius-diff}) !important;
  107. box-shadow: #{$shadow} !important;
  108. --el-card-border-color: var(--default-border) !important;
  109. }
  110. .art-card,
  111. .art-card-sm,
  112. .art-card-xs {
  113. border: 1px solid var(--art-card-border);
  114. }
  115. // 盒子边框
  116. [data-box-mode='border-mode'] {
  117. .page-content,
  118. .art-table-card {
  119. border: 1px solid var(--art-card-border) !important;
  120. }
  121. .art-card {
  122. @include art-card-base(var(--art-card-border), none, 4px);
  123. }
  124. .art-card-sm {
  125. @include art-card-base(var(--art-card-border), none, 0px);
  126. }
  127. .art-card-xs {
  128. @include art-card-base(var(--art-card-border), none, -4px);
  129. }
  130. }
  131. // 盒子阴影
  132. [data-box-mode='shadow-mode'] {
  133. .page-content,
  134. .art-table-card {
  135. box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.04) !important;
  136. border: 1px solid var(--art-gray-200) !important;
  137. }
  138. .layout-sidebar {
  139. border-right: 1px solid var(--art-card-border) !important;
  140. }
  141. .art-card {
  142. @include art-card-base(
  143. var(--art-gray-200),
  144. (0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.08)),
  145. 4px
  146. );
  147. }
  148. .art-card-sm {
  149. @include art-card-base(
  150. var(--art-gray-200),
  151. (0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.08)),
  152. 2px
  153. );
  154. }
  155. .art-card-xs {
  156. @include art-card-base(
  157. var(--art-gray-200),
  158. (0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 1px -1px rgba(0, 0, 0, 0.08)),
  159. -4px
  160. );
  161. }
  162. }
  163. // 元素全屏
  164. .el-full-screen {
  165. position: fixed;
  166. top: 0;
  167. left: 0;
  168. right: 0;
  169. width: 100vw !important;
  170. height: 100% !important;
  171. z-index: 2300;
  172. margin-top: 0;
  173. padding: 15px;
  174. box-sizing: border-box;
  175. background-color: var(--default-box-color);
  176. display: flex;
  177. flex-direction: column;
  178. }
  179. // 表格卡片
  180. .art-table-card {
  181. flex: 1;
  182. display: flex;
  183. flex-direction: column;
  184. margin-top: 12px;
  185. border-radius: var(--mint-radius) !important;
  186. border: 1px solid var(--mint-border) !important;
  187. box-shadow: var(--mint-shadow) !important;
  188. .el-card__body {
  189. height: 100%;
  190. overflow: hidden;
  191. }
  192. }
  193. // 容器全高
  194. .art-full-height {
  195. height: var(--art-full-height);
  196. display: flex;
  197. flex-direction: column;
  198. @media (max-width: 640px) {
  199. height: auto;
  200. }
  201. }
  202. // 徽章样式
  203. .art-badge {
  204. position: absolute;
  205. top: 0;
  206. right: 20px;
  207. bottom: 0;
  208. width: 6px;
  209. height: 6px;
  210. margin: auto;
  211. background: #ff3860;
  212. border-radius: 50%;
  213. animation: breathe 1.5s ease-in-out infinite;
  214. &.art-badge-horizontal {
  215. right: 0;
  216. }
  217. &.art-badge-mixed {
  218. right: 0;
  219. }
  220. &.art-badge-dual {
  221. right: 5px;
  222. top: 5px;
  223. bottom: auto;
  224. }
  225. }
  226. // 文字徽章样式
  227. .art-text-badge {
  228. position: absolute;
  229. top: 0;
  230. right: 12px;
  231. bottom: 0;
  232. min-width: 20px;
  233. height: 18px;
  234. line-height: 17px;
  235. padding: 0 5px;
  236. margin: auto;
  237. font-size: 10px;
  238. color: #fff;
  239. text-align: center;
  240. background: #fd4e4e;
  241. border-radius: 4px;
  242. &--zero {
  243. background: #94a3b8;
  244. }
  245. &--dual {
  246. min-width: 34px;
  247. padding: 0 6px;
  248. letter-spacing: -0.02em;
  249. }
  250. }
  251. @keyframes breathe {
  252. 0% {
  253. opacity: 0.7;
  254. transform: scale(1);
  255. }
  256. 50% {
  257. opacity: 1;
  258. transform: scale(1.1);
  259. }
  260. 100% {
  261. opacity: 0.7;
  262. transform: scale(1);
  263. }
  264. }
  265. // 修复老机型 loading 定位问题
  266. .art-loading-fix {
  267. position: fixed !important;
  268. top: 0 !important;
  269. left: 0 !important;
  270. right: 0 !important;
  271. bottom: 0 !important;
  272. width: 100vw !important;
  273. height: 100vh !important;
  274. display: flex !important;
  275. align-items: center !important;
  276. justify-content: center !important;
  277. }
  278. .art-loading-fix .el-loading-spinner {
  279. position: static !important;
  280. top: auto !important;
  281. left: auto !important;
  282. transform: none !important;
  283. }
  284. // 去除移动端点击背景色
  285. @media screen and (max-width: 1180px) {
  286. * {
  287. -webkit-tap-highlight-color: transparent;
  288. }
  289. }
  290. .page-head {
  291. margin-bottom: 16px;
  292. h1 {
  293. margin: 0 0 4px;
  294. font-size: 20px;
  295. font-weight: 700;
  296. letter-spacing: -0.02em;
  297. color: var(--mint-text);
  298. }
  299. .page-desc,
  300. .desc {
  301. margin: 0;
  302. color: var(--mint-text-muted);
  303. font-size: 13px;
  304. line-height: 1.45;
  305. max-width: 720px;
  306. }
  307. }
  308. .panel {
  309. background: var(--mint-surface);
  310. border: 1px solid var(--mint-border);
  311. border-radius: var(--mint-radius);
  312. box-shadow: var(--mint-shadow);
  313. /* 不要用 overflow:hidden:会导致 el-table 右侧固定列(fixed="right")无法正确粘贴/层级错乱 */
  314. overflow: visible;
  315. }
  316. .panel-top {
  317. display: flex;
  318. align-items: center;
  319. justify-content: space-between;
  320. flex-wrap: wrap;
  321. gap: 8px;
  322. padding: 10px 16px;
  323. border-bottom: 1px solid var(--mint-border);
  324. h2,
  325. h3 {
  326. display: inline-flex;
  327. align-items: center;
  328. gap: 2px;
  329. margin: 0;
  330. font-size: 14px;
  331. font-weight: 600;
  332. color: var(--mint-text);
  333. }
  334. h2 .title-ic,
  335. h3 .title-ic {
  336. width: 22px;
  337. height: 22px;
  338. border-radius: 8px;
  339. display: inline-flex;
  340. align-items: center;
  341. justify-content: center;
  342. background: var(--mint-primary-bg);
  343. color: var(--mint-primary-dark);
  344. border: 1px solid rgba(4, 120, 87, 0.16);
  345. margin-right: 4px;
  346. flex-shrink: 0;
  347. }
  348. h2 .title-ic::before,
  349. h3 .title-ic::before {
  350. content: '';
  351. width: 14px;
  352. height: 14px;
  353. background-color: currentColor;
  354. opacity: 0.95;
  355. mask: var(--panel-title-icon-mask) center / contain no-repeat;
  356. -webkit-mask: var(--panel-title-icon-mask) center / contain no-repeat;
  357. }
  358. h2.title-bar-heading {
  359. gap: 8px;
  360. }
  361. h2.title-bar-heading .title-ic {
  362. display: none !important;
  363. }
  364. h2.title-bar-heading::before {
  365. content: '';
  366. width: 4px;
  367. height: 14px;
  368. border-radius: 999px;
  369. background: var(--mint-primary, #047857);
  370. flex-shrink: 0;
  371. }
  372. }
  373. // 面板级胶囊分段 Tab(薄荷绿渐变轨道 + 主色选中,对齐渠道管理等页)
  374. .panel-pill-tabs {
  375. // 自定义按钮结构(质检物料库等)
  376. &:not(.el-tabs) {
  377. display: flex;
  378. justify-content: center;
  379. margin: 12px 24px 4px;
  380. }
  381. &--start:not(.el-tabs) {
  382. justify-content: flex-start;
  383. }
  384. &--lg:not(.el-tabs) {
  385. margin: 16px 24px 8px;
  386. .panel-pill-tabs__track {
  387. gap: 6px;
  388. padding: 5px;
  389. border-radius: 10px;
  390. }
  391. .panel-pill-tabs__btn {
  392. min-width: 140px;
  393. padding: 10px 28px;
  394. border-radius: 8px;
  395. font-size: 14px;
  396. }
  397. }
  398. &__track {
  399. display: inline-flex;
  400. gap: 4px;
  401. padding: 4px;
  402. background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
  403. border: 1px solid #d1fae5;
  404. border-radius: 8px;
  405. }
  406. &__btn {
  407. position: relative;
  408. display: inline-flex;
  409. align-items: center;
  410. justify-content: center;
  411. min-width: 108px;
  412. padding: 8px 20px;
  413. border: none;
  414. border-radius: 6px;
  415. background: transparent;
  416. font-size: 13px;
  417. font-weight: 500;
  418. line-height: 1.4;
  419. text-align: center;
  420. color: var(--mint-text-muted, #64748b);
  421. cursor: pointer;
  422. white-space: nowrap;
  423. transition:
  424. background 0.15s,
  425. color 0.15s,
  426. box-shadow 0.15s;
  427. &:hover:not(.is-active) {
  428. color: #065f46;
  429. }
  430. &.is-active {
  431. background: var(--primary, #10b981);
  432. color: #fff;
  433. box-shadow: 0 1px 3px rgba(16, 185, 129, 0.28);
  434. font-weight: 500;
  435. &:hover {
  436. color: #fff;
  437. background: var(--primary, #10b981);
  438. }
  439. }
  440. }
  441. &__badge {
  442. position: absolute;
  443. top: -5px;
  444. right: -4px;
  445. display: inline-flex;
  446. align-items: center;
  447. justify-content: center;
  448. min-width: 18px;
  449. height: 18px;
  450. padding: 0 5px;
  451. border-radius: 999px;
  452. background: #d97706;
  453. color: #fff;
  454. font-size: 11px;
  455. font-weight: 600;
  456. line-height: 1;
  457. border: 2px solid #d1fae5;
  458. pointer-events: none;
  459. box-sizing: border-box;
  460. }
  461. &__btn.is-active &__badge {
  462. border-color: var(--primary, #10b981);
  463. }
  464. &__badge--zero {
  465. background: #94a3b8;
  466. }
  467. &__badge--dual {
  468. min-width: 34px;
  469. padding: 0 6px;
  470. font-size: 10px;
  471. letter-spacing: -0.02em;
  472. }
  473. // 质检工单 / 我的质检任务 / 生产工单 / 我的生产任务 — Tab 待办角标红色
  474. &--alert-badge {
  475. .panel-pill-tabs__badge:not(.panel-pill-tabs__badge--zero) {
  476. background: #ef4444;
  477. color: #fff;
  478. }
  479. }
  480. &__btn.is-active &__badge--zero {
  481. background: rgba(255, 255, 255, 0.92);
  482. color: var(--primary-dark, #059669);
  483. border-color: var(--primary, #10b981);
  484. }
  485. // el-tabs 结构
  486. &.el-tabs {
  487. > .el-tabs__header {
  488. display: flex;
  489. justify-content: center;
  490. margin: 12px 24px 4px;
  491. padding: 0;
  492. border: none;
  493. }
  494. .el-tabs__nav-wrap {
  495. flex: 0 1 auto;
  496. &::after {
  497. display: none;
  498. }
  499. }
  500. .el-tabs__nav-scroll {
  501. display: flex;
  502. justify-content: center;
  503. }
  504. .el-tabs__nav {
  505. display: inline-flex;
  506. gap: 4px;
  507. float: none;
  508. padding: 4px;
  509. background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
  510. border: 1px solid #d1fae5;
  511. border-radius: 8px;
  512. }
  513. .el-tabs__active-bar {
  514. display: none;
  515. }
  516. .el-tabs__item {
  517. display: inline-flex !important;
  518. align-items: center !important;
  519. justify-content: center !important;
  520. box-sizing: border-box;
  521. min-width: 108px;
  522. height: auto !important;
  523. margin: 0 !important;
  524. padding: 8px 20px !important;
  525. border: none !important;
  526. border-radius: 6px;
  527. font-size: 13px;
  528. font-weight: 500;
  529. line-height: 1.4;
  530. text-align: center !important;
  531. color: var(--mint-text-muted, #64748b);
  532. transition:
  533. background 0.15s,
  534. color 0.15s,
  535. box-shadow 0.15s;
  536. &:hover:not(.is-active) {
  537. color: #065f46;
  538. }
  539. &.is-active {
  540. background: var(--primary, #10b981);
  541. color: #fff;
  542. box-shadow: 0 1px 3px rgba(16, 185, 129, 0.28);
  543. font-weight: 500;
  544. &:hover {
  545. color: #fff;
  546. background: var(--primary, #10b981);
  547. }
  548. }
  549. }
  550. }
  551. &--start.el-tabs {
  552. > .el-tabs__header {
  553. justify-content: flex-start;
  554. }
  555. .el-tabs__nav-scroll {
  556. justify-content: flex-start;
  557. }
  558. }
  559. &--lg.el-tabs {
  560. > .el-tabs__header {
  561. margin: 16px 24px 8px;
  562. }
  563. .el-tabs__nav {
  564. gap: 6px;
  565. padding: 5px;
  566. border-radius: 10px;
  567. }
  568. .el-tabs__item {
  569. min-width: 140px;
  570. padding: 10px 28px !important;
  571. border-radius: 8px;
  572. font-size: 14px;
  573. }
  574. }
  575. }
  576. // 缴退费财务确认 — 待确认 / 已确认分区标题(背景与 panel-pill-tabs 轨道一致)
  577. .finance-section-head {
  578. display: inline-flex;
  579. align-items: center;
  580. width: fit-content;
  581. max-width: 100%;
  582. margin: 4px 24px 0;
  583. padding: 10px 14px;
  584. background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
  585. border: 1px solid #d1fae5;
  586. border-radius: 8px;
  587. }
  588. .finance-section-title {
  589. display: flex;
  590. align-items: center;
  591. gap: 8px;
  592. margin: 0;
  593. font-size: 14px;
  594. font-weight: 600;
  595. color: var(--text, #1e293b);
  596. line-height: 1.4;
  597. &::before {
  598. content: '';
  599. width: 4px;
  600. height: 12px;
  601. border-radius: 999px;
  602. background: var(--primary-dark, #059669);
  603. }
  604. }
  605. .finance-section-head--pending .finance-section-title::before {
  606. background: #d97706;
  607. }
  608. .finance-section-count {
  609. display: inline-flex;
  610. align-items: center;
  611. justify-content: center;
  612. min-width: 22px;
  613. height: 22px;
  614. padding: 0 6px;
  615. border-radius: 999px;
  616. background: #f1f5f9;
  617. font-size: 12px;
  618. font-weight: 600;
  619. color: var(--mint-text-muted, #64748b);
  620. }
  621. .finance-section-head--pending .finance-section-count {
  622. background: #fffbeb;
  623. color: #d97706;
  624. }
  625. // 弹窗内 Sticky 胶囊 Tab(detail-tabs / detail-tab,与 panel-pill-tabs 视觉一致)
  626. .detail-tabs {
  627. display: flex;
  628. gap: 4px;
  629. padding: 4px;
  630. background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
  631. border: 1px solid #d1fae5;
  632. border-radius: 8px;
  633. width: fit-content;
  634. box-shadow: none;
  635. }
  636. .dialog-form-body > .detail-tabs,
  637. .protocol-view-body > .detail-tabs,
  638. .application-detail-body > .detail-tabs,
  639. .donation-view-body > .detail-tabs,
  640. .channel-view-body > .detail-tabs,
  641. .channel-dialog-body > .detail-tabs,
  642. .dialog-scroll > .detail-tabs {
  643. position: sticky;
  644. top: 0;
  645. z-index: 1000;
  646. margin: 0 28px 16px;
  647. isolation: isolate;
  648. }
  649. .detail-tab {
  650. padding: 10px 20px;
  651. cursor: pointer;
  652. border-radius: 6px;
  653. font-size: 14px;
  654. color: #606266;
  655. transition:
  656. background 0.15s,
  657. color 0.15s,
  658. box-shadow 0.15s;
  659. &.active {
  660. background: var(--primary, #10b981);
  661. color: #fff;
  662. font-weight: 500;
  663. box-shadow: 0 1px 3px rgba(16, 185, 129, 0.28);
  664. }
  665. &:hover:not(.active):not(.is-disabled) {
  666. color: #065f46;
  667. }
  668. &.is-disabled {
  669. cursor: default;
  670. opacity: 0.65;
  671. pointer-events: none;
  672. }
  673. }
  674. // 面板级步骤胶囊 Tab(样本信息管理 / 采集协议单 / 中试·基础实验申请单等)
  675. .pill-tab-nav {
  676. padding: 16px 20px 0;
  677. display: flex;
  678. flex-direction: column;
  679. align-items: center;
  680. }
  681. .pill-tab-nav__rail {
  682. display: flex;
  683. align-items: center;
  684. width: 70%;
  685. max-width: 100%;
  686. margin-inline: auto;
  687. background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
  688. border: 1px solid #d1fae5;
  689. border-radius: 10px;
  690. padding: 6px;
  691. position: relative;
  692. overflow: hidden;
  693. box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
  694. }
  695. .pill-tab-nav__progress {
  696. position: absolute;
  697. top: 6px;
  698. bottom: 6px;
  699. left: 6px;
  700. background: var(--primary, #10b981);
  701. border: 1px solid var(--primary-dark, #059669);
  702. border-radius: 8px;
  703. box-shadow: 0 1px 3px rgb(16 185 129 / 24%);
  704. transition:
  705. transform 0.25s ease,
  706. width 0.25s ease;
  707. z-index: 0;
  708. }
  709. .pill-tab-nav__step {
  710. flex: 1;
  711. position: relative;
  712. z-index: 1;
  713. display: flex;
  714. align-items: center;
  715. justify-content: center;
  716. gap: 8px;
  717. min-width: 0;
  718. min-height: 44px;
  719. padding: 8px 10px;
  720. border: none;
  721. background: transparent;
  722. cursor: pointer;
  723. border-radius: 8px;
  724. transition: color 0.2s ease;
  725. }
  726. .pill-tab-nav__index {
  727. width: 22px;
  728. height: 22px;
  729. border-radius: 50%;
  730. background: #e2e8f0;
  731. color: var(--mint-text-muted, #334155);
  732. font-size: 11px;
  733. font-weight: 700;
  734. display: flex;
  735. align-items: center;
  736. justify-content: center;
  737. flex-shrink: 0;
  738. transition: all 0.2s ease;
  739. }
  740. .pill-tab-nav__text {
  741. display: flex;
  742. flex-direction: column;
  743. align-items: flex-start;
  744. min-width: 0;
  745. text-align: left;
  746. }
  747. .pill-tab-nav__title {
  748. font-size: 13px;
  749. font-weight: 600;
  750. color: var(--mint-text-muted, #64748b);
  751. white-space: nowrap;
  752. }
  753. .pill-tab-nav__desc {
  754. font-size: 11px;
  755. color: var(--mint-text-muted, #334155);
  756. white-space: nowrap;
  757. overflow: hidden;
  758. text-overflow: ellipsis;
  759. max-width: 100%;
  760. }
  761. .pill-tab-nav__step.is-active .pill-tab-nav__index {
  762. background: #fff;
  763. color: var(--primary-dark, #059669);
  764. }
  765. .pill-tab-nav__step.is-active .pill-tab-nav__title,
  766. .pill-tab-nav__step.is-active .pill-tab-nav__desc {
  767. color: #fff;
  768. }
  769. .pill-tab-nav__step.is-done .pill-tab-nav__index {
  770. background: var(--primary-bg, #ecfdf5);
  771. color: var(--primary-dark, #059669);
  772. border: 1px solid var(--mint-border, #c5e0d4);
  773. }
  774. .pill-tab-nav__step.is-done .pill-tab-nav__title {
  775. color: var(--text, #1e293b);
  776. }
  777. @media (width <= 960px) {
  778. .pill-tab-nav__desc {
  779. display: none;
  780. }
  781. .pill-tab-nav__text {
  782. align-items: center;
  783. }
  784. }
  785. @media (width <= 720px) {
  786. .pill-tab-nav {
  787. overflow-x: auto;
  788. -webkit-overflow-scrolling: touch;
  789. align-items: stretch;
  790. }
  791. .pill-tab-nav__rail {
  792. width: 100%;
  793. min-width: 680px;
  794. }
  795. }
  796. // 面板级左对齐下划线 Tab(对齐 docs/my-material-usage-tab-demos/04-left-underline)
  797. .panel-underline-tabs {
  798. &:not(.el-tabs) {
  799. margin: 12px 24px 0;
  800. border-bottom: 2px solid var(--mint-border, #e2e8f0);
  801. }
  802. &__track {
  803. display: flex;
  804. gap: 0;
  805. }
  806. &__btn {
  807. padding: 14px 28px;
  808. margin-bottom: -2px;
  809. border: none;
  810. background: transparent;
  811. font-size: 15px;
  812. font-weight: 500;
  813. line-height: 1.4;
  814. color: var(--mint-text-muted, #64748b);
  815. cursor: pointer;
  816. border-bottom: 3px solid transparent;
  817. transition:
  818. color 0.15s,
  819. border-color 0.15s,
  820. background 0.15s;
  821. &:hover:not(.is-active) {
  822. color: var(--mint-text-muted, #334155);
  823. background: #f8fafc;
  824. }
  825. &.is-active {
  826. color: var(--primary-dark, #059669);
  827. font-weight: 600;
  828. border-bottom-color: var(--primary, #10b981);
  829. }
  830. }
  831. // el-tabs 结构
  832. &.el-tabs {
  833. > .el-tabs__header {
  834. display: flex;
  835. justify-content: flex-start;
  836. margin: 12px 24px 0;
  837. padding: 0;
  838. border: none;
  839. border-bottom: 2px solid var(--mint-border, #e2e8f0);
  840. }
  841. .el-tabs__nav-wrap {
  842. flex: 0 1 auto;
  843. &::after {
  844. display: none;
  845. }
  846. }
  847. .el-tabs__nav-scroll {
  848. display: flex;
  849. justify-content: flex-start;
  850. }
  851. .el-tabs__nav {
  852. float: none;
  853. gap: 0;
  854. padding: 0;
  855. border: none;
  856. background: transparent;
  857. }
  858. .el-tabs__active-bar {
  859. display: none;
  860. }
  861. .el-tabs__item {
  862. display: inline-flex !important;
  863. align-items: center !important;
  864. justify-content: center !important;
  865. box-sizing: border-box;
  866. height: auto !important;
  867. margin: 0 0 -2px !important;
  868. padding: 14px 28px !important;
  869. border: none !important;
  870. border-bottom: 3px solid transparent !important;
  871. border-radius: 0;
  872. background: transparent;
  873. font-size: 15px;
  874. font-weight: 500;
  875. line-height: 1.4;
  876. text-align: center !important;
  877. color: var(--mint-text-muted, #64748b);
  878. transition:
  879. color 0.15s,
  880. border-color 0.15s,
  881. background 0.15s;
  882. &:hover:not(.is-active) {
  883. color: var(--mint-text-muted, #334155);
  884. background: #f8fafc;
  885. }
  886. &.is-active {
  887. color: var(--primary-dark, #059669);
  888. font-weight: 600;
  889. border-bottom-color: var(--primary, #10b981) !important;
  890. background: transparent;
  891. }
  892. }
  893. }
  894. }
  895. .page-container
  896. :is(
  897. .panel-top h2,
  898. .panel-top h3,
  899. .storage-content-header h3,
  900. .storage-aside__head h2,
  901. .user-dept-aside__head h2
  902. ).auto-title-tenant,
  903. .console-container .panel-top h2.auto-title-tenant {
  904. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4'/%3E%3Cpath d='M10 10h4'/%3E%3Cpath d='M10 14h4'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
  905. }
  906. .page-container
  907. :is(
  908. .panel-top h2,
  909. .panel-top h3,
  910. .storage-content-header h3,
  911. .storage-aside__head h2,
  912. .user-dept-aside__head h2
  913. ).auto-title-dict,
  914. .console-container .panel-top h2.auto-title-dict {
  915. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
  916. }
  917. .page-container
  918. :is(
  919. .panel-top h2,
  920. .panel-top h3,
  921. .storage-content-header h3,
  922. .storage-aside__head h2,
  923. .user-dept-aside__head h2
  924. ).auto-title-role,
  925. .console-container .panel-top h2.auto-title-role {
  926. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  927. }
  928. .page-container
  929. :is(
  930. .panel-top h2,
  931. .panel-top h3,
  932. .storage-content-header h3,
  933. .storage-aside__head h2,
  934. .user-dept-aside__head h2
  935. ).auto-title-menu,
  936. .console-container .panel-top h2.auto-title-menu {
  937. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
  938. }
  939. .page-container
  940. :is(
  941. .panel-top h2,
  942. .panel-top h3,
  943. .storage-content-header h3,
  944. .storage-aside__head h2,
  945. .user-dept-aside__head h2
  946. ).auto-title-post,
  947. .console-container .panel-top h2.auto-title-post {
  948. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2'/%3E%3C/svg%3E");
  949. }
  950. .page-container
  951. :is(
  952. .panel-top h2,
  953. .panel-top h3,
  954. .storage-content-header h3,
  955. .storage-aside__head h2,
  956. .user-dept-aside__head h2
  957. ).auto-title-unit,
  958. .console-container .panel-top h2.auto-title-unit {
  959. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpath d='M3.3 7L12 12l8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
  960. }
  961. .page-container
  962. :is(
  963. .panel-top h2,
  964. .panel-top h3,
  965. .storage-content-header h3,
  966. .storage-aside__head h2,
  967. .user-dept-aside__head h2
  968. ).auto-title-express,
  969. .console-container .panel-top h2.auto-title-express {
  970. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
  971. }
  972. .page-container
  973. :is(
  974. .panel-top h2,
  975. .panel-top h3,
  976. .storage-content-header h3,
  977. .storage-aside__head h2,
  978. .user-dept-aside__head h2
  979. ).auto-title-dept,
  980. .console-container .panel-top h2.auto-title-dept {
  981. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='6' cy='19' r='2'/%3E%3Ccircle cx='18' cy='19' r='2'/%3E%3Cpath d='M12 7v4'/%3E%3Cpath d='m7 15 5-4 5 4'/%3E%3C/svg%3E");
  982. }
  983. .page-container
  984. :is(
  985. .panel-top h2,
  986. .panel-top h3,
  987. .storage-content-header h3,
  988. .storage-aside__head h2,
  989. .user-dept-aside__head h2
  990. ).auto-title-list,
  991. .console-container .panel-top h2.auto-title-list {
  992. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
  993. }
  994. .page-container .storage-content-header h3 {
  995. display: inline-flex;
  996. align-items: center;
  997. gap: 2px;
  998. margin: 0;
  999. font-size: 14px;
  1000. font-weight: 600;
  1001. color: var(--mint-text);
  1002. .title-ic {
  1003. width: 22px;
  1004. height: 22px;
  1005. border-radius: 8px;
  1006. display: inline-flex;
  1007. align-items: center;
  1008. justify-content: center;
  1009. background: var(--mint-primary-bg);
  1010. color: var(--mint-primary-dark);
  1011. border: 1px solid rgba(4, 120, 87, 0.16);
  1012. margin-right: 4px;
  1013. flex-shrink: 0;
  1014. }
  1015. .title-ic::before {
  1016. content: '';
  1017. width: 14px;
  1018. height: 14px;
  1019. background-color: currentColor;
  1020. opacity: 0.95;
  1021. mask: var(--panel-title-icon-mask) center / contain no-repeat;
  1022. -webkit-mask: var(--panel-title-icon-mask) center / contain no-repeat;
  1023. }
  1024. }
  1025. .page-container
  1026. :is(
  1027. .panel-top h2,
  1028. .panel-top h3,
  1029. .storage-content-header h3,
  1030. .storage-aside__head h2,
  1031. .user-dept-aside__head h2
  1032. ).auto-title-operation,
  1033. .console-container .panel-top h2.auto-title-operation {
  1034. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
  1035. }
  1036. .page-container
  1037. :is(
  1038. .panel-top h2,
  1039. .panel-top h3,
  1040. .storage-content-header h3,
  1041. .storage-aside__head h2,
  1042. .user-dept-aside__head h2
  1043. ).auto-title-location,
  1044. .console-container .panel-top h2.auto-title-location {
  1045. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-7-11a7 7 0 1 1 14 0c0 6.5-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  1046. }
  1047. .page-container
  1048. :is(
  1049. .panel-top h2,
  1050. .panel-top h3,
  1051. .storage-content-header h3,
  1052. .storage-aside__head h2,
  1053. .user-dept-aside__head h2
  1054. ).auto-title-garment,
  1055. .console-container .panel-top h2.auto-title-garment {
  1056. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z'/%3E%3C/svg%3E");
  1057. }
  1058. .page-container
  1059. :is(
  1060. .panel-top h2,
  1061. .panel-top h3,
  1062. .storage-content-header h3,
  1063. .storage-aside__head h2,
  1064. .user-dept-aside__head h2
  1065. ).auto-title-user,
  1066. .console-container .panel-top h2.auto-title-user {
  1067. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  1068. }
  1069. .page-container
  1070. :is(
  1071. .panel-top h2,
  1072. .panel-top h3,
  1073. .storage-content-header h3,
  1074. .storage-aside__head h2,
  1075. .user-dept-aside__head h2
  1076. ).auto-title-route,
  1077. .console-container .panel-top h2.auto-title-route {
  1078. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Cpath d='M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3C/svg%3E");
  1079. }
  1080. .page-container
  1081. :is(
  1082. .panel-top h2,
  1083. .panel-top h3,
  1084. .storage-content-header h3,
  1085. .storage-aside__head h2,
  1086. .user-dept-aside__head h2
  1087. ).auto-title-process,
  1088. .console-container .panel-top h2.auto-title-process {
  1089. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E%3C/svg%3E");
  1090. }
  1091. .page-container
  1092. :is(
  1093. .panel-top h2,
  1094. .panel-top h3,
  1095. .storage-content-header h3,
  1096. .storage-aside__head h2,
  1097. .user-dept-aside__head h2
  1098. ).auto-title-settings,
  1099. .console-container .panel-top h2.auto-title-settings {
  1100. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-1.5 2.6-0.2-.1a2 2 0 0 0-2.1.4 1.8 1.8 0 0 0-.6 2v.2H9.6v-.2a1.8 1.8 0 0 0-.6-2 2 2 0 0 0-2.1-.4l-.2.1-1.5-2.6.1-.1A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.6-1.1H3v-3h.0a1.7 1.7 0 0 0 1.6-1.1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 1.5-2.6.2.1a2 2 0 0 0 2.1-.4 1.8 1.8 0 0 0 .6-2V2h4.8v.2a1.8 1.8 0 0 0 .6 2 2 2 0 0 0 2.1.4l.2-.1 1.5 2.6-.1.1a1.7 1.7 0 0 0-.3 1.9A1.7 1.7 0 0 0 21 10.9h.0v3H21a1.7 1.7 0 0 0-1.6 1.1z'/%3E%3C/svg%3E");
  1101. }
  1102. .page-container
  1103. :is(
  1104. .panel-top h2,
  1105. .panel-top h3,
  1106. .storage-content-header h3,
  1107. .storage-aside__head h2,
  1108. .user-dept-aside__head h2
  1109. ).auto-title-category,
  1110. .console-container .panel-top h2.auto-title-category {
  1111. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E");
  1112. }
  1113. .page-container
  1114. :is(
  1115. .panel-top h2,
  1116. .panel-top h3,
  1117. .storage-content-header h3,
  1118. .storage-aside__head h2,
  1119. .user-dept-aside__head h2
  1120. ).auto-title-box,
  1121. .console-container .panel-top h2.auto-title-box {
  1122. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpath d='M3.3 7L12 12l8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
  1123. }
  1124. .page-container
  1125. :is(
  1126. .panel-top h2,
  1127. .panel-top h3,
  1128. .storage-content-header h3,
  1129. .storage-aside__head h2,
  1130. .user-dept-aside__head h2
  1131. ).auto-title-receipt,
  1132. .console-container .panel-top h2.auto-title-receipt {
  1133. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12v20l-2-1-2 1-2-1-2 1-2-1-2 1V2z'/%3E%3Cpath d='M8 6h8'/%3E%3Cpath d='M8 10h8'/%3E%3Cpath d='M8 14h6'/%3E%3C/svg%3E");
  1134. }
  1135. .page-container
  1136. :is(
  1137. .panel-top h2,
  1138. .panel-top h3,
  1139. .storage-content-header h3,
  1140. .storage-aside__head h2,
  1141. .user-dept-aside__head h2
  1142. ).auto-title-file,
  1143. .console-container .panel-top h2.auto-title-file {
  1144. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
  1145. }
  1146. .page-container
  1147. :is(
  1148. .panel-top h2,
  1149. .panel-top h3,
  1150. .storage-content-header h3,
  1151. .storage-aside__head h2,
  1152. .user-dept-aside__head h2
  1153. ).auto-title-quote,
  1154. .console-container .panel-top h2.auto-title-quote {
  1155. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H7l-4 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E");
  1156. }
  1157. .page-container
  1158. :is(
  1159. .panel-top h2,
  1160. .panel-top h3,
  1161. .storage-content-header h3,
  1162. .storage-aside__head h2,
  1163. .user-dept-aside__head h2
  1164. ).auto-title-calc,
  1165. .console-container .panel-top h2.auto-title-calc {
  1166. --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M9 6h6'/%3E%3Cpath d='M8 10h2'/%3E%3Cpath d='M14 10h2'/%3E%3Cpath d='M8 14h2'/%3E%3Cpath d='M14 14h2'/%3E%3Cpath d='M8 18h8'/%3E%3C/svg%3E");
  1167. }
  1168. .page-container,
  1169. .console-container {
  1170. .filter-block {
  1171. padding: 12px 16px 10px;
  1172. background: var(--mint-surface);
  1173. border-bottom: 1px solid var(--mint-border);
  1174. }
  1175. .filter-grid {
  1176. display: grid;
  1177. grid-template-columns: repeat(4, minmax(0, 1fr));
  1178. gap: 10px 14px;
  1179. margin-bottom: 0;
  1180. }
  1181. .filter-actions-row {
  1182. margin-top: 10px;
  1183. padding-top: 10px;
  1184. display: flex;
  1185. align-items: center;
  1186. justify-content: space-between;
  1187. gap: 10px;
  1188. }
  1189. .filter-actions-end,
  1190. .toolbar-actions {
  1191. display: flex;
  1192. align-items: center;
  1193. gap: 8px;
  1194. flex-wrap: wrap;
  1195. margin-left: auto;
  1196. }
  1197. .search-bar {
  1198. background: var(--mint-surface);
  1199. border: 1px solid var(--mint-border);
  1200. border-radius: var(--mint-radius);
  1201. box-shadow: var(--mint-shadow);
  1202. }
  1203. .detail-hero {
  1204. margin-bottom: 14px;
  1205. padding: 14px 16px;
  1206. border: 1px solid var(--mint-border);
  1207. border-radius: var(--mint-radius);
  1208. background: var(--mint-primary-bg);
  1209. }
  1210. .detail-hero-title {
  1211. font-size: 16px;
  1212. font-weight: 700;
  1213. color: var(--mint-text);
  1214. }
  1215. .detail-hero-meta {
  1216. margin-top: 6px;
  1217. color: var(--mint-text-muted);
  1218. font-size: 13px;
  1219. }
  1220. .detail-section {
  1221. border-radius: var(--mint-radius);
  1222. overflow: hidden;
  1223. margin-bottom: 14px;
  1224. }
  1225. }
  1226. /* 主列表页 + append-to-body 弹窗内嵌列表共用(OpenSpec:弹窗内列表风格一致) */
  1227. .page-container,
  1228. .console-container,
  1229. .el-dialog {
  1230. .list-toolbar,
  1231. .toolbar {
  1232. padding: 0;
  1233. background: var(--mint-table-head);
  1234. border-bottom: 1px solid var(--mint-border);
  1235. }
  1236. .list-toolbar-row,
  1237. .toolbar {
  1238. padding: 8px 16px;
  1239. gap: 8px;
  1240. display: flex;
  1241. align-items: center;
  1242. flex-wrap: wrap;
  1243. justify-content: flex-start;
  1244. }
  1245. /* 列表工具栏按钮间距统一由 gap 控制,清除 Element 默认相邻按钮 margin */
  1246. .list-toolbar-row .el-button + .el-button,
  1247. .toolbar .el-button + .el-button,
  1248. .toolbar-right .el-button + .el-button,
  1249. .toolbar-actions .el-button + .el-button,
  1250. .filter-actions-end .el-button + .el-button {
  1251. margin-left: 0 !important;
  1252. }
  1253. .list-toolbar-selected,
  1254. .toolbar-left {
  1255. display: inline-flex;
  1256. align-items: center;
  1257. min-height: 36px;
  1258. padding: 0 10px 0 0;
  1259. margin-right: 4px;
  1260. border-right: 1px solid var(--mint-border);
  1261. font-size: 12px;
  1262. color: var(--mint-text-muted);
  1263. font-weight: 600;
  1264. }
  1265. .sel-num {
  1266. color: var(--mint-primary-dark);
  1267. font-weight: 700;
  1268. margin: 0 2px;
  1269. }
  1270. .list-body {
  1271. border-top: 1px solid var(--mint-border);
  1272. }
  1273. .list-wrap {
  1274. border-radius: 0 0 var(--mint-radius) var(--mint-radius);
  1275. overflow: visible;
  1276. }
  1277. .pagination.list-pager-bar,
  1278. .list-footer {
  1279. margin-top: 0;
  1280. padding: 10px 16px 12px;
  1281. border-top: 1px solid var(--mint-border);
  1282. background: var(--mint-surface);
  1283. border-radius: 0 0 var(--mint-radius) var(--mint-radius);
  1284. }
  1285. .pagination {
  1286. display: flex;
  1287. justify-content: flex-end;
  1288. margin-top: 0;
  1289. padding: 10px 16px 12px;
  1290. border-top: 1px solid var(--mint-border);
  1291. background: var(--mint-surface);
  1292. }
  1293. }
  1294. @media (max-width: 1100px) {
  1295. .page-container,
  1296. .console-container {
  1297. .filter-grid {
  1298. grid-template-columns: repeat(2, minmax(0, 1fr));
  1299. }
  1300. }
  1301. }
  1302. @media (max-width: 560px) {
  1303. .page-container,
  1304. .console-container {
  1305. .filter-grid {
  1306. grid-template-columns: 1fr;
  1307. }
  1308. .filter-actions-row {
  1309. align-items: stretch;
  1310. flex-direction: column;
  1311. }
  1312. }
  1313. }
  1314. /* 弹窗表单栅格(与 docs/web-admin-ui-spec-fresh-mint.md §9.3.1 / §10.3 一致) */
  1315. .form-grid-2 {
  1316. display: grid;
  1317. grid-template-columns: repeat(2, minmax(0, 1fr));
  1318. gap: 12px 20px;
  1319. }
  1320. .form-grid-3 {
  1321. display: grid;
  1322. grid-template-columns: repeat(3, minmax(0, 1fr));
  1323. gap: 12px 16px;
  1324. }
  1325. .form-grid-4 {
  1326. display: grid;
  1327. grid-template-columns: repeat(4, minmax(0, 1fr));
  1328. gap: 12px 14px;
  1329. }
  1330. .form-grid-5 {
  1331. display: grid;
  1332. grid-template-columns: repeat(5, minmax(0, 1fr));
  1333. gap: 12px 12px;
  1334. }
  1335. /* 纵向间距交给 gap,避免与 el-form-item 默认 margin-bottom 叠加 */
  1336. .form-grid,
  1337. .form-grid-2,
  1338. .form-grid-3,
  1339. .form-grid-4,
  1340. .form-grid-5 {
  1341. > .el-form-item,
  1342. > .el-form-item.el-form-item--label-top {
  1343. margin-bottom: 0;
  1344. }
  1345. }
  1346. .form-col-span-2 {
  1347. grid-column: 1 / -1;
  1348. }
  1349. .sort-field {
  1350. display: flex;
  1351. align-items: center;
  1352. }
  1353. .form-tip {
  1354. margin-left: 8px;
  1355. color: var(--mint-text-muted);
  1356. font-size: 12px;
  1357. }
  1358. .form-label-tip {
  1359. margin-left: 4px;
  1360. color: var(--mint-text-muted);
  1361. font-size: 12px;
  1362. font-weight: 400;
  1363. }
  1364. @media (max-width: 900px) {
  1365. .form-grid-3 {
  1366. grid-template-columns: repeat(2, minmax(0, 1fr));
  1367. }
  1368. .form-grid-4,
  1369. .form-grid-5 {
  1370. grid-template-columns: repeat(2, minmax(0, 1fr));
  1371. }
  1372. }
  1373. @media (max-width: 560px) {
  1374. .form-grid-2,
  1375. .form-grid-3,
  1376. .form-grid-4,
  1377. .form-grid-5 {
  1378. grid-template-columns: 1fr;
  1379. }
  1380. }
  1381. /* 查看弹窗键值对:label 在上、value 在下(与 ProtocolViewDialog data-label/data-value 一致) */
  1382. .view-kv-grid {
  1383. display: grid;
  1384. grid-template-columns: repeat(2, minmax(0, 1fr));
  1385. gap: 12px 20px;
  1386. }
  1387. .view-kv-grid--cols-3 {
  1388. grid-template-columns: repeat(3, minmax(0, 1fr));
  1389. }
  1390. .view-kv-grid--cols-4 {
  1391. grid-template-columns: repeat(4, minmax(0, 1fr));
  1392. }
  1393. .view-kv,
  1394. [class$='-view-kv']:not([class*='-view-kv-grid']) {
  1395. min-width: 0;
  1396. display: flex;
  1397. flex-direction: column;
  1398. align-items: flex-start;
  1399. gap: 4px;
  1400. font-size: 13px;
  1401. dt {
  1402. margin: 0;
  1403. font-size: 12px;
  1404. color: var(--mint-text-muted, #334155);
  1405. font-weight: 500;
  1406. }
  1407. dd {
  1408. margin: 0;
  1409. color: #1e293b;
  1410. word-break: break-word;
  1411. > .el-tag {
  1412. width: fit-content;
  1413. max-width: 100%;
  1414. }
  1415. }
  1416. }
  1417. .view-kv-span-2 {
  1418. grid-column: 1 / -1;
  1419. }
  1420. .readonly-item {
  1421. display: flex;
  1422. flex-direction: column;
  1423. align-items: flex-start;
  1424. gap: 4px;
  1425. min-width: 0;
  1426. font-size: 14px;
  1427. line-height: 1.5;
  1428. > .label {
  1429. display: block;
  1430. min-width: 0;
  1431. margin: 0;
  1432. font-size: 12px;
  1433. font-weight: 500;
  1434. color: var(--mint-text-muted, #64748b);
  1435. &::after {
  1436. content: none !important;
  1437. }
  1438. }
  1439. > .el-tag {
  1440. width: fit-content;
  1441. max-width: 100%;
  1442. }
  1443. }
  1444. .qc-work-order-card__meta-item {
  1445. align-items: flex-start;
  1446. dd > .el-tag {
  1447. width: fit-content;
  1448. max-width: 100%;
  1449. }
  1450. }
  1451. .data-value > .el-tag {
  1452. width: fit-content;
  1453. max-width: 100%;
  1454. }
  1455. @media (max-width: 900px) {
  1456. .view-kv-grid--cols-4 {
  1457. grid-template-columns: repeat(3, minmax(0, 1fr));
  1458. }
  1459. }
  1460. @media (max-width: 640px) {
  1461. .view-kv-grid,
  1462. .view-kv-grid--cols-3,
  1463. .view-kv-grid--cols-4 {
  1464. grid-template-columns: 1fr;
  1465. }
  1466. }
  1467. /* 标准 CRUD 弹窗:相对视口上下各保留至少 50px 可视留白,正文区纵向滚动(不占满视口高度) */
  1468. .el-dialog.dialog-form-layout {
  1469. display: flex;
  1470. flex-direction: column;
  1471. max-height: calc(100vh - 100px);
  1472. overflow: hidden;
  1473. }
  1474. .el-dialog.dialog-form-layout .el-dialog__header {
  1475. flex-shrink: 0;
  1476. }
  1477. .el-dialog.dialog-form-layout .el-dialog__body {
  1478. flex: 1;
  1479. min-height: 0;
  1480. overflow-y: auto;
  1481. padding: 18px 22px;
  1482. }
  1483. .el-dialog.dialog-form-layout .el-dialog__footer {
  1484. flex-shrink: 0;
  1485. }
  1486. /* label-top 弹窗:无栅格时也收紧默认 18px 行距 */
  1487. .el-dialog.dialog-form-layout .el-form--label-top > .el-form-item,
  1488. .el-dialog.dialog-form-layout .el-form--label-top > .el-row .el-form-item {
  1489. margin-bottom: 12px;
  1490. }
  1491. .el-dialog.dialog-form-layout .el-form--label-top .form-grid .el-form-item,
  1492. .el-dialog.dialog-form-layout .el-form--label-top .form-grid-2 .el-form-item,
  1493. .el-dialog.dialog-form-layout .el-form--label-top .form-grid-3 .el-form-item,
  1494. .el-dialog.dialog-form-layout .el-form--label-top .form-grid-4 .el-form-item,
  1495. .el-dialog.dialog-form-layout .el-form--label-top .form-grid-5 .el-form-item {
  1496. margin-bottom: 0;
  1497. }
  1498. /* 标准 CRUD / 大表单弹窗遮罩:顶对齐留白,避免 align-center 高弹窗与顶栏贴齐(protocol-dialog-mask 同构,全局兜底) */
  1499. .protocol-dialog-mask,
  1500. .lab-test-item-dialog-mask,
  1501. .el-overlay:has(.el-dialog.dialog-form-layout),
  1502. .el-overlay:has(.el-dialog.system-view-dialog),
  1503. .el-overlay:has(.el-dialog.order-module-dialog) {
  1504. align-items: flex-start !important;
  1505. backdrop-filter: none !important;
  1506. .el-overlay-dialog {
  1507. margin-top: 16px;
  1508. margin-bottom: auto;
  1509. }
  1510. .el-dialog.dialog-form-layout,
  1511. .el-dialog.order-module-dialog {
  1512. max-width: calc(100vw - 48px);
  1513. }
  1514. }
  1515. /* 弹窗异步加载:骨架占位,减轻先小后大 */
  1516. .dialog-scroll.is-view-loading,
  1517. .dialog-form-body.is-dialog-loading,
  1518. .protocol-view-body.is-detail-loading,
  1519. .donation-view-body.is-detail-loading,
  1520. .product-form-container.is-view-loading {
  1521. min-height: min(360px, calc(100vh - 220px));
  1522. }
  1523. #app-header > div {
  1524. background: var(--mint-surface) !important;
  1525. }
  1526. #app-header .relative.box-border.flex-b {
  1527. height: 56px !important;
  1528. line-height: 56px !important;
  1529. padding: 0 var(--mint-content-padding);
  1530. }
  1531. #app-header .header-brand {
  1532. display: flex;
  1533. flex-shrink: 0;
  1534. gap: 12px;
  1535. align-items: center;
  1536. margin-right: 12px;
  1537. padding-right: 16px;
  1538. cursor: pointer;
  1539. border-right: 1px solid var(--mint-border);
  1540. .art-logo img {
  1541. display: block;
  1542. }
  1543. }
  1544. #app-header .header-brand__title {
  1545. max-width: 180px;
  1546. margin: 0;
  1547. font-size: 16px;
  1548. font-weight: 700;
  1549. line-height: 1.35;
  1550. color: var(--mint-text, #0f172a);
  1551. white-space: normal;
  1552. }
  1553. #app-header .flex-c.gap-2\.5 {
  1554. gap: 10px !important;
  1555. }
  1556. #app-content .worktab-strip.w-full {
  1557. margin-bottom: 0 !important;
  1558. padding: 0 24px 4px !important;
  1559. }
  1560. #app-sidebar .layout-sidebar {
  1561. border-right: 1px solid var(--mint-border) !important;
  1562. background: var(--mint-surface);
  1563. }
  1564. #app-sidebar .menu-left .header {
  1565. height: 56px;
  1566. line-height: 56px;
  1567. border-bottom: 1px solid var(--mint-border);
  1568. }
  1569. /* 附件上传拖拽落区高亮(方案 1:卡片化附件 + 行内纸质材料) */
  1570. .attachment-upload.is-dragover {
  1571. border: 1px dashed var(--primary, #10b981);
  1572. border-radius: 8px;
  1573. background: var(--primary-bg, #ecfdf5);
  1574. box-shadow: inset 0 0 0 1px rgb(16 185 129 / 15%);
  1575. }
  1576. .paper-att-list.is-dragover {
  1577. border: 1px dashed var(--primary, #10b981);
  1578. border-radius: 8px;
  1579. background: var(--primary-bg, #ecfdf5);
  1580. }
  1581. .paper-att-cards.is-dragover {
  1582. border: 1px dashed var(--primary, #10b981);
  1583. border-radius: 8px;
  1584. background: var(--primary-bg, #ecfdf5);
  1585. }