| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658 |
- :root {
- --primary: #10b981;
- --primary-dark: #059669;
- --primary-bg: #ecfdf5;
- --success: #059669;
- --success-bg: #ecfdf5;
- --warning: #d97706;
- --warning-bg: #fffbeb;
- --danger: #dc2626;
- --danger-bg: #fef2f2;
- --info: #64748b;
- --info-bg: #f8fafc;
- --text: #1e293b;
- --text-muted: #64748b;
- --border: #d9e8e2;
- --bg-page: #fefefe;
- --surface: #ffffff;
- --table-head: #f8fafc;
- --row-alt: #fafafa;
- --row-hover: #f1f5f9;
- --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
- --radius: 10px;
- --radius-md: 8px;
- --control-h: 36px;
- /* Element Plus 全局主题色(fresh-mint-green 对齐) */
- --el-color-primary: var(--primary);
- --el-color-primary-dark-2: var(--primary-dark);
- --el-color-primary-light-3: #34d399;
- --el-color-primary-light-5: #66d9b3;
- --el-color-primary-light-7: #99e9cb;
- --el-color-primary-light-8: #c5f3e2;
- --el-color-primary-light-9: var(--primary-bg);
- --el-color-success: var(--success);
- --el-color-success-dark-2: #0b5e58;
- --el-color-success-light-3: #34b6ad;
- --el-color-success-light-5: #7dd3c7;
- --el-color-success-light-7: #a7f3d0;
- --el-color-success-light-8: #d1fae5;
- --el-color-success-light-9: var(--success-bg);
- --el-color-warning: var(--warning);
- --el-color-warning-dark-2: #b45309;
- --el-color-warning-light-3: #f59e0b;
- --el-color-warning-light-5: #fbbf24;
- --el-color-warning-light-7: #fde68a;
- --el-color-warning-light-8: #fef3c7;
- --el-color-warning-light-9: var(--warning-bg);
- --el-color-danger: var(--danger);
- --el-color-danger-dark-2: #b91c1c;
- --el-color-danger-light-3: #ef4444;
- --el-color-danger-light-5: #f87171;
- --el-color-danger-light-7: #fca5a5;
- --el-color-danger-light-8: #fecaca;
- --el-color-danger-light-9: var(--danger-bg);
- --el-color-info: var(--info);
- --el-color-info-dark-2: #115e59;
- --el-color-info-light-3: #14b8a6;
- --el-color-info-light-5: #2dd4bf;
- --el-color-info-light-7: #5eead4;
- --el-color-info-light-8: #99f6e4;
- --el-color-info-light-9: var(--info-bg);
- --el-text-color-primary: var(--text);
- --el-text-color-regular: var(--text-muted);
- --el-border-color: var(--border);
- --el-border-color-light: #edf0f3;
- --el-fill-color-light: #f8fafc;
- --el-bg-color: var(--surface);
- }
- * {
- box-sizing: border-box;
- }
- button,
- [role="button"],
- .el-button,
- a,
- .menu-link,
- .tab-chip,
- .tab-close,
- .icon-btn,
- .bx-btn,
- .bx-op-btn,
- summary,
- .nav-details > summary {
- cursor: default;
- }
- body {
- margin: 0;
- min-height: 100vh;
- font-family: Inter, -apple-system, sans-serif;
- font-size: 14px;
- line-height: 1.5;
- color: var(--text);
- background: var(--bg-page);
- }
- #app {
- min-height: 100vh;
- }
- .bx-layout {
- display: flex;
- min-height: 100vh;
- }
- .sidebar {
- width: 220px;
- flex-shrink: 0;
- background: var(--surface);
- border-right: 1px solid var(--border);
- padding: 24px 16px;
- transition: width 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
- overflow: hidden;
- }
- .sidebar.collapsed {
- width: 0;
- padding-left: 0;
- padding-right: 0;
- border-right-color: transparent;
- }
- .logo {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
- font-size: 16px;
- font-weight: 700;
- color: var(--text-muted);
- padding: 0 12px 20px;
- margin-bottom: 8px;
- border-bottom: 1px solid var(--border);
- }
- .logo-mark {
- flex-shrink: 0;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- max-height: 40px;
- }
- .logo-img {
- display: block;
- height: 36px;
- width: auto;
- max-width: min(100%, 180px);
- object-fit: contain;
- }
- .logo-title {
- color: var(--primary);
- font-weight: 700;
- letter-spacing: 0.02em;
- font-size: 18px;
- line-height: 1.2;
- text-align: center;
- }
- .nav-tree {
- padding-bottom: 8px;
- }
- .nav-details {
- border: none;
- margin: 0 0 4px;
- padding: 0;
- }
- .nav-details > summary {
- list-style: none;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 8px 12px;
- margin: 0;
- border-radius: var(--radius);
- font-size: 12px;
- font-weight: 700;
- color: var(--text-muted);
- letter-spacing: 0.02em;
- user-select: none;
- }
- .nav-details > summary::-webkit-details-marker {
- display: none;
- }
- .nav-details > summary::after {
- content: "";
- width: 6px;
- height: 6px;
- border-right: 2px solid var(--text-muted);
- border-bottom: 2px solid var(--text-muted);
- transform: rotate(-45deg);
- transition: transform 0.2s ease, border-color 0.15s ease;
- }
- .nav-details[open] > summary::after {
- transform: rotate(45deg);
- margin-top: -2px;
- }
- .nav-details > summary:hover {
- background: var(--row-alt);
- color: var(--text);
- }
- .nav-details > summary:hover::after {
- border-right-color: var(--text);
- border-bottom-color: var(--text);
- }
- .nav-summary-main {
- display: flex;
- align-items: center;
- gap: 8px;
- min-width: 0;
- flex: 1;
- }
- .nav-summary-text {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .nav-summary-ico {
- flex-shrink: 0;
- font-size: 16px;
- color: var(--text-muted);
- }
- .nav-details > summary:hover .nav-summary-ico {
- color: var(--text);
- }
- .nav-sub {
- padding: 2px 0 6px 4px;
- margin-left: 4px;
- border-left: 2px solid var(--border);
- }
- .nav-sub .nav-sub {
- margin-left: 10px;
- padding-left: 8px;
- border-left-style: dashed;
- border-left-width: 1px;
- }
- .nav-sub .nav-details > summary {
- font-size: 12px;
- font-weight: 600;
- padding: 6px 10px;
- }
- .menu-link {
- display: flex;
- align-items: center;
- gap: 8px;
- margin: 2px 0;
- padding: 8px 12px 8px 14px;
- border-radius: var(--radius);
- color: var(--text-muted);
- text-decoration: none;
- font-size: 13px;
- font-weight: 500;
- }
- .menu-link-ico {
- flex-shrink: 0;
- font-size: 16px;
- color: var(--text-muted);
- }
- .menu-link-text {
- min-width: 0;
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .menu-link:hover {
- background: var(--row-alt);
- color: var(--text);
- }
- .menu-link:hover .menu-link-ico {
- color: var(--text);
- }
- .menu-link.active {
- background: var(--primary-bg);
- color: var(--primary-dark);
- font-weight: 600;
- }
- .menu-link.active .menu-link-ico {
- color: var(--primary-dark);
- }
- .main {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- }
- .main > .header {
- height: 56px;
- padding: 0 24px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background: var(--primary-dark);
- border-bottom: 1px solid #047857;
- }
- .main > .header .crumb {
- color: rgba(255, 255, 255, 0.82);
- }
- .main > .header .crumb b {
- color: #fff;
- }
- .main > .header .icon-btn {
- color: rgba(255, 255, 255, 0.88);
- }
- .main > .header .icon-btn:hover {
- color: #fff;
- background: rgba(255, 255, 255, 0.14);
- }
- .main > .header .user-trigger {
- color: #fff;
- background: transparent;
- }
- .main > .header .user-trigger:hover {
- background: transparent;
- }
- .main > .header .user-avatar {
- box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
- }
- .header-left {
- display: flex;
- align-items: center;
- gap: 3px;
- min-width: 0;
- }
- .header-actions {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- flex-shrink: 0;
- }
- .icon-btn {
- appearance: none;
- border: none;
- color: var(--text-muted);
- width: 32px;
- height: 32px;
- border-radius: 8px;
- padding: 0;
- margin: 0;
- box-shadow: none;
- background: transparent;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- }
- .icon-btn:hover {
- color: var(--text);
- background: var(--row-alt);
- }
- .icon-btn .el-icon {
- width: auto;
- height: auto;
- padding: 0;
- margin: 0;
- line-height: 1;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- flex: 0 0 auto;
- }
- .icon-btn .el-icon svg {
- width: 20px;
- height: 20px;
- padding: 0;
- margin: 0;
- display: block;
- }
- .crumb {
- font-size: 13px;
- color: var(--text-muted);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .crumb b {
- color: var(--text);
- font-weight: 600;
- }
- .header-right {
- position: relative;
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .user-trigger {
- appearance: none;
- border: none;
- color: var(--text);
- font-size: 13px;
- font-weight: 600;
- padding: 4px 8px 4px 4px;
- border-radius: 999px;
- background: transparent;
- box-shadow: none;
- margin: 0;
- min-height: auto;
- display: inline-flex;
- align-items: center;
- gap: 8px;
- cursor: pointer;
- }
- .user-trigger:hover {
- background: var(--row-alt);
- }
- .user-avatar {
- width: 24px;
- height: 24px;
- border-radius: 50%;
- color: #fff;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- font-size: 12px;
- font-weight: 700;
- }
- .user-name {
- font-size: 13px;
- font-weight: 600;
- line-height: 1;
- }
- .content {
- flex: 1;
- min-height: 0;
- padding: 24px;
- background: var(--bg-page);
- }
- .tabs-strip {
- display: flex;
- flex-wrap: wrap;
- align-items: flex-end;
- gap: 4px;
- margin: 0 0 16px;
- padding: 0 2px 10px;
- border-bottom: 1px solid var(--border);
- }
- .tab-chip {
- border: 1px solid var(--border);
- background: var(--surface);
- color: var(--text-muted);
- font-size: 13px;
- font-weight: 600;
- padding: 8px 14px;
- border-radius: 8px 8px 0 0;
- margin-bottom: -11px;
- display: inline-flex;
- align-items: center;
- gap: 6px;
- max-width: 220px;
- cursor: pointer;
- }
- .tab-chip:hover {
- color: var(--text);
- background: var(--row-alt);
- }
- .tab-chip.active {
- color: var(--primary-dark);
- border-bottom-color: var(--surface);
- box-shadow: 0 -2px 0 var(--primary) inset;
- }
- .tab-chip .tab-close:hover {
- opacity: 1;
- background: rgba(100, 116, 139, 0.14);
- }
- .tab-label {
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .tab-close {
- width: 16px;
- height: 16px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: inherit;
- opacity: 0.7;
- cursor: pointer;
- padding: 0;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- }
- .tab-close .el-icon {
- width: 12px;
- height: 12px;
- }
- .tab-context-menu {
- position: fixed;
- z-index: 1000;
- width: max-content;
- border: 1px solid var(--border);
- border-radius: 10px;
- background: var(--surface);
- box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
- padding: 6px;
- }
- .menu-item {
- width: auto;
- display: block;
- border: 0;
- background: transparent;
- text-align: left;
- color: var(--text);
- padding: 8px 10px;
- border-radius: 8px;
- font-size: 13px;
- cursor: pointer;
- white-space: nowrap;
- }
- .menu-item:hover {
- background: var(--row-alt);
- }
- .page-head {
- margin-bottom: 16px;
- }
- .page-head h1 {
- margin: 0 0 4px;
- font-size: 20px;
- font-weight: 700;
- }
- .desc {
- margin: 0;
- color: var(--text-muted);
- font-size: 13px;
- }
- .stats {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
- gap: 12px;
- margin-bottom: 16px;
- }
- .stat {
- background: #fff;
- border: 1px solid var(--border);
- border-radius: var(--radius);
- padding: 12px 14px;
- box-shadow: var(--shadow);
- }
- .stat .k {
- margin: 0 0 8px;
- font-size: 14px;
- font-weight: 600;
- }
- .stat .v {
- margin: 0;
- font-size: 22px;
- font-weight: 700;
- color: var(--primary-dark);
- }
- .visual-check {
- margin-bottom: 16px;
- padding: 12px 14px;
- border: 1px solid var(--border);
- border-radius: var(--radius-md);
- background: var(--surface);
- }
- .visual-check-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 8px;
- margin-bottom: 10px;
- }
- .visual-check-head h3 {
- margin: 0;
- font-size: 14px;
- font-weight: 600;
- color: var(--text);
- }
- .visual-check-group {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 8px;
- margin-bottom: 8px;
- }
- .visual-check-alerts .el-alert {
- max-width: 220px;
- }
- .visual-check-label {
- min-width: 42px;
- font-size: 12px;
- font-weight: 600;
- color: var(--text-muted);
- }
- .visual-check-switch-text {
- font-size: 12px;
- color: var(--text-muted);
- }
- .panel {
- background: #fff;
- border: 1px solid var(--border);
- border-radius: var(--radius);
- box-shadow: var(--shadow);
- overflow: hidden;
- margin-bottom: 16px;
- }
- .panel :is(.el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td) {
- background: var(--primary-bg) !important;
- border-top: 2px solid var(--primary);
- font-weight: 600;
- }
- .simple-panel {
- padding: 16px;
- }
- .panel-top {
- padding: 10px 16px;
- border-bottom: 1px solid var(--border);
- font-size: 14px;
- font-weight: 600;
- }
- .table-scroll {
- overflow-x: auto;
- overflow-y: hidden;
- }
- .table-scroll .bx-table {
- min-width: 920px;
- }
- .filter-block {
- padding: 12px 16px 10px;
- border-bottom: 1px solid var(--border);
- }
- .filter-actions {
- padding-top: 10px;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- gap: 10px;
- }
- .btn-link.el-button {
- height: 36px;
- padding: 0 8px;
- color: var(--primary-dark);
- }
- .btn-link.el-button:hover {
- background: var(--primary-bg);
- border-radius: 8px;
- }
- .filter-actions-end {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- /* 无「展开更多条件」时仍把重置/查询固定在行尾 */
- margin-left: auto;
- }
- /* 检索栏右侧按钮(重置/查询)按标准固定样式 */
- .filter-actions-end .filter-reset.el-button,
- .filter-actions-end .filter-search.el-button {
- height: 36px;
- padding: 0 14px;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 600;
- margin: 0;
- }
- .filter-actions-end .filter-reset.el-button {
- border: 1px solid var(--border);
- background: var(--surface);
- color: var(--text);
- }
- .filter-actions-end .filter-reset.el-button:hover {
- background: var(--row-alt);
- }
- /* 查询:主色描边(无背景)+ 带搜索 icon */
- .filter-actions-end .filter-search.el-button {
- border: 1px solid var(--primary);
- background: transparent;
- color: var(--primary-dark);
- }
- .filter-actions-end .filter-search.el-button:hover {
- border-color: var(--primary-dark);
- }
- .filter-grid {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: 10px 14px;
- margin-bottom: 10px;
- }
- @media (max-width: 1100px) {
- .filter-grid {
- grid-template-columns: repeat(2, 1fr);
- }
- }
- @media (max-width: 560px) {
- .filter-grid {
- grid-template-columns: 1fr;
- }
- }
- .filter-field label {
- display: block;
- font-size: 11px;
- font-weight: 500;
- color: var(--text-muted);
- margin-bottom: 4px;
- }
- .filter-field :is(.bx-input, .bx-select, .bx-date-picker) {
- width: 100%;
- min-width: 0;
- }
- .list-toolbar {
- background: var(--table-head);
- border-bottom: 1px solid var(--border);
- padding: 0;
- }
- .list-toolbar-row {
- padding: 8px 16px;
- display: flex;
- align-items: center;
- gap: 8px;
- flex-wrap: wrap;
- }
- .list-toolbar-selected {
- font-size: 12px;
- font-weight: 600;
- color: var(--text-muted);
- min-height: 36px;
- display: inline-flex;
- align-items: center;
- border-right: 1px solid var(--border);
- padding-right: 12px;
- margin-right: 4px;
- }
- .list-toolbar-selected .sel-num {
- color: var(--primary-dark);
- font-weight: 700;
- margin: 0 2px;
- }
- .list-toolbar-actions {
- display: inline-flex;
- flex-wrap: wrap;
- gap: 8px;
- align-items: center;
- }
- .list-toolbar-actions .bx-btn.el-button:not(.el-button--primary) {
- background: var(--surface);
- border-color: var(--border);
- color: var(--text);
- }
- .list-toolbar-actions .bx-btn.el-button:not(.el-button--primary):hover {
- background: var(--row-alt);
- }
- .list-pager {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: space-between;
- gap: 10px 12px;
- padding: 8px 16px;
- border-top: 1px solid var(--border);
- background: var(--surface);
- color: var(--text-muted);
- font-size: 13px;
- }
- .list-range {
- white-space: nowrap;
- }
- .list-pager-right {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: 8px;
- }
- .pager-size-label,
- .pager-size-suffix {
- font-size: 13px;
- color: var(--text-muted);
- margin: 0;
- white-space: nowrap;
- }
- .list-pager .el-pagination {
- --el-pagination-button-height: 32px;
- --el-pagination-button-width: 36px;
- --el-pagination-font-size: 13px;
- color: var(--text-muted);
- display: inline-flex;
- align-items: center;
- gap: 3px;
- }
- .list-pager .el-pagination button,
- .list-pager .el-pagination .el-pager li {
- min-width: 36px;
- height: 32px;
- line-height: 32px;
- border-radius: 8px;
- }
- .list-pager .el-pagination .btn-prev,
- .list-pager .el-pagination .btn-next,
- .list-pager .el-pagination .el-pager li {
- border: 1px solid var(--border);
- background: var(--surface);
- margin: 0;
- }
- .list-pager .el-pagination .el-pager {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- margin: 0;
- }
- .list-pager .el-pagination .btn-prev,
- .list-pager .el-pagination .btn-next {
- padding: 0 10px;
- min-width: 68px;
- }
- .list-pager .el-pagination .el-pager li.is-active {
- background: var(--primary);
- border-color: var(--primary);
- color: #fff;
- }
- .list-pager .el-pagination .el-pager li.is-active:hover {
- background: var(--primary-dark);
- border-color: var(--primary-dark);
- }
- .list-pager .el-pagination .el-pagination__sizes .el-select__wrapper {
- min-height: 32px;
- border-radius: 8px;
- min-width: 72px;
- }
- .panel :is(.el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td) {
- background: var(--primary-bg) !important;
- border-top: 2px solid var(--primary);
- font-weight: 600;
- padding-top: 14px;
- padding-bottom: 14px;
- }
- .panel :is(.el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td) .cell {
- white-space: nowrap;
- text-align: center;
- }
- /* 合计行吸底固定(跟随列表滚动容器) */
- .panel .el-table__footer-wrapper,
- .panel .el-table__fixed-footer-wrapper {
- position: sticky;
- bottom: 0;
- z-index: 4;
- }
- .ic {
- width: 16px;
- height: 16px;
- }
- .ic-sm {
- width: 14px;
- height: 14px;
- }
- .bx-input.el-input,
- .bx-select.el-select,
- .bx-date-picker.el-date-editor {
- width: 100%;
- }
- .bx-input .el-input__wrapper,
- .bx-select .el-select__wrapper,
- .bx-date-picker .el-input__wrapper {
- min-height: var(--control-h);
- border-radius: var(--radius-md);
- box-shadow: none;
- border: 1px solid var(--border);
- background: var(--surface);
- }
- .bx-input .el-input__wrapper.is-focus,
- .bx-select .el-select__wrapper.is-focus,
- .bx-date-picker .el-input__wrapper.is-focus {
- border-color: var(--primary);
- box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
- }
- .bx-input .el-input__inner {
- height: var(--control-h);
- font-size: 14px;
- }
- .bx-select .el-select__placeholder,
- .bx-select .el-input__inner {
- font-size: 14px;
- }
- .bx-table.el-table {
- --el-table-border-color: var(--border);
- --el-table-header-bg-color: var(--table-head);
- --el-table-row-hover-bg-color: var(--row-hover);
- --el-table-text-color: var(--text);
- --el-table-header-text-color: var(--text-muted);
- --el-table-bg-color: var(--surface);
- --el-table-tr-bg-color: var(--surface);
- }
- .bx-table .el-table__header-wrapper th {
- font-size: 12px;
- font-weight: 600;
- color: var(--text-muted);
- }
- .bx-table .el-table__cell {
- padding: 10px 12px;
- }
- .bx-table.el-table--border {
- border: none;
- }
- .bx-table .el-table__inner-wrapper::before {
- background-color: var(--border);
- }
- .bx-table .el-table__cell {
- border-bottom: 1px solid var(--border);
- }
- .bx-table .el-table__header-wrapper th {
- background: var(--table-head) !important;
- }
- .bx-table .el-table__row td {
- background: var(--surface) !important;
- }
- /* 列表:除金额列(col-money)外单元格居中;金额列右对齐 */
- .bx-table .el-table__cell .cell,
- .view-detail-table .el-table__cell .cell,
- .dlg-view .el-table .el-table__cell .cell,
- .bx-dialog .el-dialog__body .el-table .el-table__cell .cell,
- .form-section .el-table .el-table__cell .cell {
- text-align: center;
- }
- .bx-table .col-money .cell,
- .view-detail-table .col-money .cell,
- .dlg-view .el-table .col-money .cell,
- .bx-dialog .el-dialog__body .el-table .col-money .cell,
- .form-section .el-table .col-money .cell {
- text-align: right;
- font-variant-numeric: tabular-nums;
- }
- /* 合计行:金额列强制右对齐(覆盖表尾默认居中) */
- .bx-table .el-table__footer-wrapper td.col-money .cell,
- .bx-table .el-table__fixed-footer-wrapper td.col-money .cell,
- .view-detail-table .el-table__footer-wrapper td.col-money .cell,
- .view-detail-table .el-table__fixed-footer-wrapper td.col-money .cell,
- .dlg-view .el-table .el-table__footer-wrapper td.col-money .cell,
- .bx-dialog .el-dialog__body .el-table .el-table__footer-wrapper td.col-money .cell,
- .form-section .el-table .el-table__footer-wrapper td.col-money .cell {
- text-align: right !important;
- font-variant-numeric: tabular-nums;
- }
- .bx-table .col-actions .cell {
- white-space: nowrap;
- display: inline-flex;
- flex-wrap: nowrap;
- align-items: center;
- gap: 6px;
- justify-content: flex-start;
- }
- /* 列表「当前节点」为空:无标签,占位与次要色 */
- .node-current-empty {
- color: var(--text-muted);
- }
- /* 列表合计:第 4 列显示「本页合计(n单)」加粗 */
- .table-scroll.table-page-summary .el-table__footer-wrapper td:nth-child(4) .cell {
- font-weight: 600;
- color: var(--text);
- }
- .bx-table .col-actions .cell > * {
- vertical-align: middle;
- }
- .bx-table .el-table__body tr:hover > td {
- background: var(--row-hover) !important;
- }
- /* 列表偶数行浅底(整行同色;不按列斑马) */
- .bx-table .el-table__body tr.el-table__row:nth-child(even) > td.el-table__cell {
- background: var(--row-alt) !important;
- }
- .bx-table .el-table__body tr:hover td {
- background: var(--row-hover) !important;
- }
- .bx-tag {
- display: inline-flex;
- align-items: center;
- padding: 3px 10px;
- border-radius: 999px;
- font-size: 12px;
- font-weight: 600;
- background: #fff;
- border: 1px solid transparent;
- white-space: nowrap;
- }
- .bx-tag--pending { color: #475569; border-color: #cbd5e1; }
- .bx-tag--processing { color: #00a874; border-color: #66d9b3; }
- .bx-tag--done { color: #0f766e; border-color: #5eead4; }
- /* 审批中等:浅底表格上需可见描边,勿用近白/透明边 */
- .bx-tag--warning {
- color: #b45309;
- background: #fffbeb;
- border-color: #f59e0b;
- }
- /* 历史误用 tone=warn 时与 warning 对齐 */
- .bx-tag--warn {
- color: #b45309;
- background: #fffbeb;
- border-color: #f59e0b;
- }
- .bx-tag--error { color: #dc2626; border-color: #fca5a5; }
- .bx-tag--info { color: #0f766e; border-color: #5eead4; }
- .bx-btn.el-button {
- height: var(--control-h);
- border-radius: var(--radius-md);
- font-size: 14px;
- font-weight: 600;
- gap: 2px;
- }
- .bx-btn.el-button--primary {
- background: var(--primary);
- border-color: var(--primary);
- }
- .bx-btn.el-button--primary:hover {
- background: var(--primary-dark);
- border-color: var(--primary-dark);
- }
- /* 列表工具栏首按钮:主色描边(无背景) */
- .bx-btn.el-button--primary.is-plain {
- background: transparent;
- border-color: var(--primary);
- color: var(--primary-dark);
- }
- .bx-btn.el-button--primary.is-plain:hover {
- background: transparent;
- border-color: var(--primary-dark);
- color: var(--primary-dark);
- }
- .bx-op-btn.el-button {
- height: 28px;
- padding: 0 8px;
- font-size: 12px;
- font-weight: 600;
- gap: 2px;
- border-radius: 8px;
- border: 1px solid var(--border);
- background: var(--surface);
- color: var(--text);
- }
- .bx-op-btn.el-button.primary {
- border-color: var(--primary);
- background: transparent;
- color: var(--primary-dark);
- }
- .bx-op-btn.el-button.primary:hover {
- border-color: var(--primary-dark);
- background: transparent;
- color: var(--primary-dark);
- }
- .bx-op-btn.el-button:not(.primary):hover {
- background: var(--row-alt);
- }
- .el-table .el-button + .el-button {
- margin-left: 8px;
- }
- /* 按钮内所有 icon(含 loading)颜色跟随文字 currentColor */
- .el-button .el-icon {
- color: currentColor;
- }
- .el-button .el-icon svg {
- fill: currentColor;
- stroke: currentColor;
- }
- .el-button.is-loading .el-icon {
- color: currentColor;
- }
- .bx-dialog .el-dialog {
- border: 1px solid var(--border);
- border-radius: var(--radius);
- box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
- overflow: hidden;
- display: flex;
- flex-direction: column;
- max-height: calc(100vh - 64px);
- }
- .bx-dialog .el-dialog__header {
- padding: 16px 22px;
- border-bottom: 1px solid var(--border);
- flex-shrink: 0;
- }
- .bx-dialog .el-dialog__title {
- font-size: 18px;
- font-weight: 700;
- color: var(--text);
- letter-spacing: -0.02em;
- }
- .bx-dialog .el-dialog__body {
- padding: 20px 22px;
- overflow-y: auto;
- flex: 1;
- max-height: calc(100vh - 200px);
- }
- .bx-dialog .el-dialog__footer {
- padding: 12px 22px;
- border-top: 1px solid var(--border);
- background: var(--table-head);
- display: flex;
- justify-content: flex-end;
- gap: 8px;
- flex-shrink: 0;
- }
- .bx-dialog .el-dialog__headerbtn {
- width: 32px;
- height: 32px;
- border-radius: 8px;
- top: 12px;
- right: 14px;
- }
- .bx-dialog .el-dialog__headerbtn:hover {
- background: var(--row-alt);
- }
- .bx-dialog .el-dialog__close {
- color: var(--text-muted);
- }
- .bx-dialog .el-dialog__headerbtn:hover .el-dialog__close {
- color: var(--text);
- }
- .dlg-view {
- padding: 0;
- }
- .dlg-view-hero {
- padding: 20px 22px;
- background: linear-gradient(135deg, var(--primary-bg) 0%, var(--surface) 55%);
- border-bottom: 1px solid var(--border);
- }
- .dlg-view-hero-top {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- flex-wrap: wrap;
- }
- .dlg-view-title {
- margin: 0;
- font-size: 18px;
- font-weight: 700;
- letter-spacing: -0.02em;
- }
- .dlg-view-tags {
- display: inline-flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 8px;
- }
- .dlg-view-meta {
- margin: 10px 0 0;
- font-size: 13px;
- color: var(--text-muted);
- line-height: 1.5;
- }
- .dlg-view-section {
- padding: 20px 22px;
- border-bottom: 1px solid var(--border);
- }
- .dlg-view-section:last-child {
- border-bottom: none;
- }
- .dlg-kv {
- display: grid;
- grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr);
- gap: 14px 28px;
- font-size: 13px;
- align-items: start;
- }
- .dlg-kv .v .clamp-wrap {
- width: 100%;
- }
- .dialog-view-xl .el-dialog,
- .bx-dialog.dialog-view-xl .el-dialog {
- width: min(920px, calc(100vw - 32px)) !important;
- }
- .money-em {
- color: var(--primary-dark);
- font-weight: 700;
- }
- .section-gap-tight {
- margin-top: 10px;
- }
- .inline-row {
- display: flex;
- gap: 8px;
- margin-bottom: 10px;
- align-items: center;
- }
- .inline-grow {
- flex: 1;
- min-width: 0;
- }
- .field-no-margin {
- margin: 0;
- }
- .form-section-last {
- border-bottom: none !important;
- margin-bottom: 0 !important;
- padding-bottom: 0 !important;
- }
- .section-title-tight {
- margin-bottom: 8px;
- }
- .tag-list {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- }
- .desc-tight {
- margin-bottom: 12px;
- }
- .fill-100 {
- width: 100%;
- }
- .tree-panel {
- max-height: 400px;
- overflow: auto;
- border: 1px solid var(--el-border-color-light);
- border-radius: 6px;
- padding: 8px;
- }
- .center-pad-lg {
- text-align: center;
- padding: 32px 0;
- }
- .muted {
- color: var(--text-muted);
- }
- .align-right {
- display: flex;
- justify-content: flex-end;
- margin-top: 8px;
- }
- .img-preview-wrap {
- text-align: center;
- }
- .img-preview {
- max-width: 100%;
- max-height: 60vh;
- }
- .dlg-kv .k {
- color: var(--text-muted);
- font-size: 12px;
- font-weight: 600;
- line-height: 1.5;
- word-break: break-word;
- }
- .dlg-kv .v {
- color: var(--text);
- font-weight: 500;
- min-width: 0;
- line-height: 1.5;
- word-break: break-word;
- }
- /* kv-full:仅适合紧跟「行首 col1 的 .k」;若前面已是 k,v,k 占满三列,下一值请用普通 .v。 */
- .dlg-kv .v.kv-full {
- grid-column: 2 / -1;
- }
- .dlg-kv.dlg-kv--triple {
- grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr);
- }
- @media (max-width: 1280px) {
- .dlg-kv {
- grid-template-columns: 90px minmax(0, 1fr) 90px minmax(0, 1fr);
- gap: 10px 16px;
- }
- .dlg-kv.dlg-kv--triple {
- grid-template-columns: 90px minmax(0, 1fr) 90px minmax(0, 1fr);
- }
- }
- @media (max-width: 900px) {
- .dlg-kv {
- grid-template-columns: 90px minmax(0, 1fr);
- }
- .dlg-kv.dlg-kv--triple {
- grid-template-columns: 90px minmax(0, 1fr);
- }
- .dlg-kv .v.kv-full {
- grid-column: auto;
- }
- }
- .dlg-note {
- margin: 0 0 16px;
- font-size: 13px;
- color: var(--text-muted);
- }
- .flow-scroll {
- max-height: 320px;
- overflow-y: auto;
- padding-right: 4px;
- }
- @media (max-width: 900px) {
- .flow-scroll {
- max-height: 260px;
- }
- }
- .sr-only {
- position: absolute;
- width: 1px;
- height: 1px;
- padding: 0;
- margin: -1px;
- overflow: hidden;
- clip: rect(0, 0, 0, 0);
- white-space: nowrap;
- border: 0;
- }
- .wf-info-bar {
- padding: 12px 16px;
- display: flex;
- gap: 24px;
- align-items: center;
- background: var(--primary-bg);
- border-bottom: 1px solid var(--border);
- }
- .field {
- margin-bottom: 12px;
- }
- .field label {
- display: block;
- font-size: 13px;
- font-weight: 500;
- margin-bottom: 6px;
- color: var(--text);
- }
- .form-section {
- margin-bottom: 20px;
- padding-bottom: 16px;
- border-bottom: 1px dashed var(--border);
- }
- .form-section:last-of-type {
- border-bottom: none;
- margin-bottom: 0;
- padding-bottom: 0;
- }
- .form-section h4 {
- margin: 0 0 12px;
- font-size: 13px;
- font-weight: 700;
- color: var(--text-muted);
- letter-spacing: 0.04em;
- }
- .form-grid-2 {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 12px 16px;
- }
- @media (max-width: 560px) {
- .form-grid-2 {
- grid-template-columns: 1fr;
- }
- }
- /* Element Plus 组件语义色视觉对齐(fresh-mint-green) */
- .el-tag {
- border-radius: 999px;
- padding: 3px 10px;
- font-size: 12px;
- font-weight: 600;
- line-height: 1.3;
- background: #fff;
- }
- .el-tag.el-tag--success {
- color: #0f766e;
- border-color: #5eead4;
- background: #fff;
- }
- .el-tag.el-tag--warning {
- color: #d97706;
- border-color: #f6c453;
- background: #fff;
- }
- .el-tag.el-tag--danger {
- color: #dc2626;
- border-color: #fca5a5;
- background: #fff;
- }
- .el-tag.el-tag--info {
- color: #0f766e;
- border-color: #5eead4;
- background: #fff;
- }
- .el-alert {
- border-radius: var(--radius-md);
- border: 1px solid transparent;
- }
- .el-alert--success {
- background: var(--success-bg);
- border-color: #a7f3d0;
- color: #0f766e;
- }
- .el-alert--warning {
- background: var(--warning-bg);
- border-color: #fde68a;
- color: #b45309;
- }
- .el-alert--error {
- background: var(--danger-bg);
- border-color: #fecaca;
- color: #b91c1c;
- }
- .el-alert--info {
- background: var(--info-bg);
- border-color: #99f6e4;
- color: #115e59;
- }
- .el-message {
- border-radius: var(--radius-md);
- border: 1px solid transparent;
- box-shadow: var(--shadow);
- }
- .el-message--success {
- background: var(--success-bg);
- border-color: #a7f3d0;
- }
- .el-message--warning {
- background: var(--warning-bg);
- border-color: #fde68a;
- }
- .el-message--error {
- background: var(--danger-bg);
- border-color: #fecaca;
- }
- .el-message--info {
- background: var(--info-bg);
- border-color: #99f6e4;
- }
- .el-switch {
- --el-switch-on-color: var(--primary);
- --el-switch-off-color: #d1d5db;
- }
- /* 工作流配置信息栏 */
- .wf-info-bar {
- padding: 12px 16px;
- display: flex;
- gap: 24px;
- align-items: center;
- background: var(--primary-bg);
- border-bottom: 1px solid var(--border);
- }
|