@@ -1,58 +1,28 @@
< template >
< div class = "app" >
< aside class = "sidebar" >
< div class = "brand" >
< div class = "brand-icon" > SS < / div >
< div > < div class = "brand-text" > 本体平台 < / div > < div class = "brand-sub" > 导入核对工作台 < / div > < / div >
< / div >
< nav class = "nav " >
< div class = "nav -title" > 分类 < / div >
< div class = "nav-item" : class = "{active: currentFilter==='all'}" @click ="currentFilter='all'" > < span > 全部 < / span > < span class = "count" > { { counts . all } } < / span > < / div >
< div class = "nav-item" : class = "{active: currentFilter==='missing-type'}" @click ="currentFilter='missing-type'" > < span > 缺失元原语 < / span > < span class = "count" > { { counts [ 'missing-type' ] } } < / span > < / div >
< div class = "nav-item" : class = "{active: currentFilter==='missing-instance'}" @click ="currentFilter='missing-instance'" > < span > 缺实例 < / span > < span class = "count" > { { counts [ 'missing-instance' ] } } < / span > < / div >
< div class = "nav-item" : class = "{active: currentFilter==='stale'}" @click ="currentFilter='stale'" > < span > 过期不一致 < / span > < span class = "count" > { { counts . stale } } < / span > < / div >
< div class = "nav-item" : class = "{active: currentFilter==='relation'}" @click ="currentFilter='relation'" > < span > 缺关系 < / span > < span class = "count" > { { counts . relation } } < / span > < / div >
< div class = "nav-item" : class = "{active: currentFilter==='__other'}" @click ="currentFilter='__other'" > < span > 其他 < / span > < span class = "count" > { { counts [ '__other' ] } } < / span > < / div >
< div class = "nav-title" style = "margin-top:14px" > 执行方式 < / div >
< div class = "nav-item" : class = "{active: currentFilter==='__op'}" @click ="currentFilter='__op'" > < span > 操作项 ( 直连 ) < / span > < span class = "count op" > { { counts [ '__op' ] } } < / span > < / div >
< div class = "nav-item" : class = "{active: currentFilter==='__doc'}" @click ="currentFilter='__doc'" > < span > 文档项 ( 导入 ) < / span > < span class = "count doc" > { { counts [ '__doc' ] } } < / span > < / div >
< / nav >
< div class = "progress-box" >
< div class = "progress-ring" >
< svg width = "120" height = "120" viewBox = "0 0 120 120" >
< circle class = "progress-ring-bg" cx = "60" cy = "60" r = "52" > < / circle >
< circle class = "progress-ring-fill" cx = "60" cy = "60" r = "52" stroke -dasharray = " 326.73 " :stroke-dashoffset = "progressOffset" > < / circle >
< / svg >
< div class = "progress-text" > < div class = "progress-pct" > { { progressPct } } % < / div > < div class = "progress-label" > 已完成 < / div > < / div >
< / div >
< div class = "progress-stats" >
< div class = "progress-stat" > < div class = "num" > { { counts . applied } } < / div > < div class = "lbl" > 已应用 < / div > < / div >
< div class = "progress-stat" > < div class = "num" > { { counts . pending } } < / div > < div class = "lbl" > 待处理 < / div > < / div >
< / div >
< / div >
< div class = "sidebar-foot" >
< p > 管理员打开即 < b > 内置 < / b > 一份核对清单 ( 同源示例 ) ; 同事用 scan . py 生成的清单也可 「 导入 JSON 」 载入 。 < / p >
< button class = "btn" @click ="reloadBuiltin" > 重新加载内置清单 < / button >
< / div >
< / aside >
< header class = "header" >
< div class = "header-left" >
< div > < div class = "page-title" > 导入核对清单 < / div > < div class = "page-sub" > { { pageSub } } < / div > < / div >
<!-- 修复 : 原版是 dark - theme SPA ( 自带的 sidebar + brand + 进度环 + header + main ) , 被
ReviewView stub 直接渲染时与其它 9 个 tab 的 page - title + card 风格完全割裂 。
现在去掉 app shell ( sidebar / brand / progress ) , 只保留 header + main , 分类筛选折叠成
顶部一行 filter - bar ; 外层 ReviewView 套 page - title + card 即可与全局风格统一 。 -- >
< div class = "wb" >
< header class = "wb-header" >
< div class = "wb-header-left " >
< div class = "wb -title" > { { pageSub } } < / div >
< span v-if = "conn.canWrite!==null" class="mode-pill" :class="conn.canWrite?'mode-exec':'mode-export'" > {{ conn.canWrite ? ' 可执行 ' : ' 只读 ( 导出 ) ' }} < / span >
< / div >
< div class = "connection" >
< div class = "status-line" > < span class = "status-dot" : class = "{ok:connState==='ok', err:connState==='err'}" > < / span > < label > MCP URL < / label > < / div >
< div class = "wb- connection" >
< span class = "status-dot" : class = "{ok:connState==='ok', err:connState==='err'}" > < / span >
< label class = "muted" > MCP URL < / label >
< input class = "url" v-model = "mcpUrl" placeholder="http://127.0.0.1:8081/api/v1/mcp" list="mcp-url-list" / >
< datalist id = "mcp-url-list" >
< option value = "http://127.0.0.1:8081/api/v1/mcp" / >
< option value = "http://127.0.0.1:9333/api/v1/mcp" / >
< option value = "http://localhost:9333/api/v1/mcp" / >
< / datalist >
< label > Key < / label > < input class = "key" v-model = "mcpKey" type="password" placeholder="任意主体的 API Key" autocomplete="off" / >
< label class = "muted" > Key < / label >
< input class = "key" v-model = "mcpKey" type="password" placeholder="任意主体的 API Key" autocomplete="off" / >
< button class = "btn" @click ="testConnection" > 测试连接 < / button >
< / div >
< div style = "display:flex;align-items:center;gap:10px " >
< div class = "wb-actions " >
< button class = "btn" @click ="fileInput?.click()" > 导入 JSON < / button >
< input type = "file" ref = "fileInput" accept = ".json,application/json" style = "display:none" @change ="onFile" / >
< button class = "btn" @click ="exportMd" > 导出报告 MD < / button >
@@ -61,94 +31,112 @@
< / div >
< / header >
< main class = "main" >
< div class = "stats" >
< div class = "stat-card primary" > < div class = "stat-info" > < div class = "num" > { { statRate } } % < / div > < div class = "lbl" > 整体完成率 < / div > < / div > < div class = "stat-icon" > ✓ < / div > < / div >
< div class = "stat-card warning" > < div class = "stat-info" > < div class = "num" > { { statTodo } } < / div > < div class = "lbl" > 待处理 / 处理中 < / div > < / div > < div class = "stat-icon" > ! < / div > < / div >
< div class = "stat-card success" > < div class = "stat-info" > < div class = "num" > { { statDone } } < / div > < div class = "lbl" > 已应用 < / div > < / div > < div class = "stat-icon" > ↓ < / div > < / div >
< div class = "stat-card danger" > < div class = "stat-info" > < div class = "num" > { { statFail } } < / div > < div class = "lbl" > 失败 / 需手工 < / div > < / div > < div class = "stat-icon" > × < / div > < / div >
< ! - - 顶部 4 张统计卡 ( 原 sidebar 的 progress -ring + stats 平移上来 ) - - >
< div class = "wb- stats" >
< div class = "stat primary" > < div class = "num" > { { statRate } } % < / div > < div class = "lbl" > 整体完成率 < / div > < / div >
< div class = "stat warning" > < div class = "num" > { { statTodo } } < / div > < div class = "lbl" > 待处理 / 处理中 < / div > < / div >
< div class = "stat success" > < div class = "num" > { { statDone } } < / div > < div class = "lbl" > 已应用 < / div > < / div >
< div class = "stat danger" > < div class = "num" > { { statFail } } < / div > < div class = "lbl" > 失败 / 需手工 < / div > < / div >
< / div >
<!-- 分类筛选 ( 原 sidebar 的两级 nav 折叠成单行 filter ) -- >
< div class = "wb-filterbar" >
< span class = "muted" > 分类 < / span >
< button class = "filter-btn" :class = "{active:currentFilter==='all'}" @click ="currentFilter='all'" > 全部 < em > { { counts . all } } < / em > < / button >
< button class = "filter-btn" :class = "{active:currentFilter==='missing-type'}" @click ="currentFilter='missing-type'" > 缺失元原语 < em > { { counts [ 'missing-type' ] } } < / em > < / button >
< button class = "filter-btn" :class = "{active:currentFilter==='missing-instance'}" @click ="currentFilter='missing-instance'" > 缺实例 < em > { { counts [ 'missing-instance' ] } } < / em > < / button >
< button class = "filter-btn" :class = "{active:currentFilter==='stale'}" @click ="currentFilter='stale'" > 过期不一致 < em > { { counts . stale } } < / em > < / button >
< button class = "filter-btn" :class = "{active:currentFilter==='relation'}" @click ="currentFilter='relation'" > 缺关系 < em > { { counts . relation } } < / em > < / button >
< button class = "filter-btn" :class = "{active:currentFilter==='__other'}" @click ="currentFilter='__other'" > 其他 < em > { { counts [ '__other' ] } } < / em > < / button >
< span class = "sep" > < / span >
< button class = "filter-btn" :class = "{active:currentFilter==='__op'}" @click ="currentFilter='__op'" > 操作项 < em class = "op" > { { counts [ '__op' ] } } < / em > < / button >
< button class = "filter-btn" :class = "{active:currentFilter==='__doc'}" @click ="currentFilter='__doc'" > 文档项 < em class = "doc" > { { counts [ '__doc' ] } } < / em > < / button >
< / div >
< div v-if = "banner" class="banner" :class="banner.cls" v-html="banner.html" > < / div >
< ! - - 状态筛选条 - - >
< div class = "wb-toolbar" >
< div class = "wb-toolbar-left" >
< span class = "muted" > 状态 < / span >
< button class = "filter-btn" :class = "{active:currentStatus==='all'}" @click ="currentStatus='all'" > 全部 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='pending'}" @click ="currentStatus='pending'" > 待核对 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='reviewing'}" @click ="currentStatus='reviewing'" > 修订 / 补充 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='applied'}" @click ="currentStatus='applied'" > 已应用 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='skipped'}" @click ="currentStatus='skipped'" > 已跳过 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='failed'}" @click ="currentStatus='failed'" > 失败 < / button >
< / div >
< div v-if = "banner" class="banner" :class="banner.cls" v-html="banner.htm l" > < / div >
< div class = "toolbar" >
< div class = "toolbar-left" >
< button class = "filter-btn" :class = "{active:currentStatus==='all'}" @click ="currentStatus='all'" > 全部 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='pending'}" @click ="currentStatus='pending'" > 待核对 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='reviewing'}" @click ="currentStatus='reviewing'" > 修订 / 补充 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='applied'}" @click ="currentStatus='applied'" > 已应用 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='skipped'}" @click ="currentStatus='skipped'" > 已跳过 < / button >
< button class = "filter-btn" :class = "{active:currentStatus==='failed'}" @click ="currentStatus='failed'" > 失败 < / button >
< / div >
< div class = "toolbar-right" >
< button class = "btn btn-ghost" @click ="selectAll" > 全选 < / button >
< button class = "btn btn-ghost" @click ="clearSelection" > 清空 < / button >
< button class = "btn btn-ghost" @click ="resetStatus" > 重置状态 < / button >
< / div >
< div class = "wb-toolbar-right" >
< button class = "btn btn-ghost" @click ="selectAl l"> 全选 < / button >
< button class = "btn btn-ghost" @click ="clearSelection" > 清空 < / button >
< button class = "btn btn-ghost" @click ="resetStatus" > 重置状态 < / button >
< button class = "btn btn-ghost" @click ="reloadBuiltin" > 重新加载内置清单 < / button >
< / div >
< / div >
< div class = "table-wrap " >
< div v-if = "items.length===0" class="empty-state" >
< div class = "big" > 📭 < / div >
< div > 未载入清单 。 点 「 导入 JSON 」 选择 scan . py 产物 , 或点 「 重新加载内置清单 」 。 < / div >
< / div >
< template v-else >
< div class = "table-head" > < div > < / div > < div > 序号 < / div > < div > 名称 / 分类 < / div > < div > 引用 < / div > < div > 执行方式 < / div > < div > 摘要 < / div > < div > 状态 < / div > < div > 操作 < / div > < / div >
< div class = "table-body" >
< div v-for = "it in filteredItems" :key="it.id" class="item" :class="{selected:checkedIds.has(it.id), expanded:expandedDetails.has('detail-'+it.id)}" @click="toggleDetail(it.id)" >
< div class = "item-check" > < input type = "checkbox" :checked = "checkedIds.has(it.id)" @change.stop ="toggleSelect(it.id)" / > < / div >
< div class = "item-num" > < div class = "severity-bar" :class = "'sev-'+it.severity" > < / div > # { { pad ( it . id ) } } < / div >
< div class = "item-name" > { { it . name } } < span v-if = "it.kind==='operation'" class="tag act-operation">操作 · {{methodLabel(it.method)}}</span><span v-else class="tag act-document" > 文档 · 导入 < / span > < / div >
< div class = "item-ref" > < code > { { it . ref } } < / code > < / div >
< div class = "item-action" > < span class = "act" :class = "it.kind==='operation'?'act-operation':'act-document'" > { { it . kind === 'operation' ? methodLabel ( it . method ) : 'Markdown 导入' } } < / span > < / div >
< div class = "item-summary" > { { it . description } } < / div >
< div class = "item-status" >
< select :value = "it.status" @change.stop ="setStatus(it.id, $event.target.value) " >
< option value = "pending" > ⏸ 待核对 < / option >
< option value = "reviewing" > 🔍 修订 / 补充 < / option >
< option value = "applied" > ✓ 已应用 < / option >
< option value = "skipped" > ⏭ 跳过 < / option >
< option value = "failed" > ✗ 失败 < / option >
< / select >
< / div >
< div class = "item-actions" >
< button class = "btn btn-primary" :disabled = "conn.canWrite!==true" :title = "conn.canWrite!==true?'当前身份无写权限,请导出清单交管理员执行':''" @click.stop ="applyItem(it.id)" > {{ it.kind = = = ' operation ' ? ' 应用 ( MCP ) ' : ' 导入文档 ' }} < / button >
< / div >
< div v-if = "expandedDetails.has('detail-'+it.id)" class="detail"><div class="detail-inner" >
< div class = "detail-cols" >
< div class = "detail-block" > < h4 > 现状 < / h4 > < p > { { it . now || '(操作项无现状字段)' } } < / p > < / div >
< div class = "detail-block" > < h4 > 应有 < / h4 > < p > { { it . should || '(操作项无应有字段)' } } < / p > < / div >
< div class = "detail-block" > < h4 > 影响 / 理由 < / h4 > < p > { { it . rationale || '(见描述)' } } < / p > < / div >
< / div >
< div class = "detail-full" v-if = "it.kind==='operation'" >
< div class = "detail-row" > < label > 方法 ( method ) < / label > < input type = "text" :value = "it.method" readonly / > < / div >
< div class = "detail-row" > < label > 参数 ( params ) < / label > < textarea readonly :value = "JSON.stringify(it.params,null,2)" > < / textarea > < / div >
< / div >
< div class = "detail-full" v-else >
< div class = "detail-row" > < label > 文件名 < / label > < input type = "text" :value = "it.filename" readonly / > < / div >
< div class = "detail-row" > < label > Markdown 内容 < / label > < textarea readonly :value = "it.markdown" > < / textarea > < / div >
< / div >
< div class = "detail-actions" >
< button class = "btn btn-primary" :disabled = "conn.canWrite!==true" @click.stop ="applyItem(it.id)" > ▶ {{ it.kind = = = ' operation ' ? ' 直接应用 ( MCP ) ' : ' 导入文档 ' }} < / button >
< button class = "btn btn-ghost" @click.stop ="setStatus(it.id,'applied')" > 标记完成 < / button >
< button class = "btn btn-ghost" @click.stop ="setStatus(it.id,'skipped')" > 标记跳过 < / button >
< button v-if = "it.result" class="btn btn-ghost" @click.stop="viewResult(it.id)" > 查看结果 < / button >
< / div >
< / div > < / div >
< div class = "wb- table" >
< div v-if = "items.length===0" class="empty-state" >
< div class = "big" > 📭 < / div >
< div > 未载入清单 。 点 「 导入 JSON 」 选择 scan . py 产物 , 或点 「 重新加载内置清单 」 。 < / div >
< / div >
< template v-else >
< div class = "table-head" > < div > < / div > < div > 序号 < / div > < div > 名称 / 分类 < / div > < div > 引用 < / div > < div > 执行方式 < / div > < div > 摘要 < / div > < div > 状态 < / div > < div > 操作 < / div > < / div >
< div class = "table-body" >
< div v-for = "it in filteredItems" :key="it.id" class="item" :class="{selected:checkedIds.has(it.id), expanded:expandedDetails.has('detail-'+it.id)}" @click="toggleDetail(it.id)" >
< div class = "item-check" > < input type = "checkbox" :checked = "checkedIds.has(it.id)" @change.stop ="toggleSelect(it.id)" / > < / div >
< div class = "item-num" > < div class = "severity-bar" :class = "'sev-'+it.severity" > < / div > # { { pad ( it . id ) } } < / div >
< div class = "item-name" > { { it . name } } < span v-if = "it.kind==='operation'" class="tag act-operation">操作 · {{methodLabel(it.method)}}</span><span v-else class="tag act-document" > 文档 · 导入 < / span > < / div >
< div class = "item-ref" > < code > { { it . ref } } < / code > < / div >
< div class = "item-action" > < span class = "act" :class = "it.kind==='operation'?'act-operation':'act-document'" > { { it . kind === 'operation' ? methodLabel ( it . method ) : 'Markdown 导入' } } < / span > < / div >
< div class = "item-summary" > { { it . description } } < / div >
< div class = "item-status" >
< el-select :model- value = "it.status" size = "small" @change.stop ="(v) => setStatus(it.id, v)" style = "width:100% ">
< el-option label = "⏸ 待核对" value = "pending" / >
< el-option label = "🔍 修订/补充" value = "reviewing" / >
< el-option label = "✓ 已应用" value = "applied" / >
< el-option label = "⏭ 跳过" value = "skipped" / >
< el-option label = "✗ 失败" value = "failed" / >
< / el-select >
< / div >
< div v-if = "filteredItems.length===0" class="empty-state" style="padding:30px 20px" > < div > 无匹配项 < / div > < / div >
< div class = "item-actions" >
< el-button size = "small" type = "primary" :disabled = "conn.canWrite!==true" :title = "conn.canWrite!==true?'当前身份无写权限,请导出清单交管理员执行':''" @click.stop ="applyItem(it.id)" > {{ it.kind = = = ' operation ' ? ' 应用 ( MCP ) ' : ' 导入文档 ' }} < / el -button >
< / div >
< div v-if = "expandedDetails.has('detail-'+it.id)" class="detail"><div class="detail-inner" >
< div class = "detail-cols" >
< div class = "detail-block" > < h4 > 现状 < / h4 > < p > { { it . now || '(操作项无现状字段)' } } < / p > < / div >
< div class = "detail-block" > < h4 > 应有 < / h4 > < p > { { it . should || '(操作项无应有字段)' } } < / p > < / div >
< div class = "detail-block" > < h4 > 影响 / 理由 < / h4 > < p > { { it . rationale || '(见描述)' } } < / p > < / div >
< / div >
< div class = "detail-full" v-if = "it.kind==='operation'" >
< div class = "detail-row" > < label > 方法 ( method ) < / label > < input type = "text" :value = "it.method" readonly / > < / div >
< div class = "detail-row" > < label > 参数 ( params ) < / label > < textarea readonly :value = "JSON.stringify(it.params,null,2)" > < / textarea > < / div >
< / div >
< div class = "detail-full" v-else >
< div class = "detail-row" > < label > 文件名 < / label > < input type = "text" :value = "it.filename" readonly / > < / div >
< div class = "detail-row" > < label > Markdown 内容 < / label > < textarea readonly :value = "it.markdown" > < / textarea > < / div >
< / div >
< div class = "detail-actions" >
< el-button size = "small" type = "primary" :disabled = "conn.canWrite!==true" @click.stop ="applyItem(it.id)" > ▶ {{ it.kind = = = ' operation ' ? ' 直接应用 ( MCP ) ' : ' 导入文档 ' }} < / el -button >
< el-button size = "small" @click.stop ="setStatus(it.id,'applied')" > 标记完成 < / el -button >
< el-button size = "small" @click.stop ="setStatus(it.id,'skipped')" > 标记跳过 < / el -button >
< / div >
< / div > < / div >
< / div >
< / template >
< / div >
< div class = "log-panel" >
< div class = "log-head" > < span > 执行日志 < / span > < button class = "btn btn-ghost" style = "padding:4px 10px;font-size:11px" @click ="logs=[]" > 清空 < / button > < / div >
< div class = "log-body" >
< div v-for = "(l,i) in logs" :key="i" class="log-line" :class="l.type" > [ {{ l.t }} ] {{ l.msg }} < / div >
< div v-if = "logs.length===0" class="log-line" > 等待操作 … < / div >
< div v-if = "filteredItems.length===0" class="empty-state" style="padding:30px 20px" > < div > 无匹配项 < / div > < / div >
< / div >
< / template >
< / div >
< div class = "wb-log" >
< div class = "log-head" >
< span > 执行日志 < / span >
< button class = "btn btn-ghost" @click ="logs=[]" > 清空 < / button >
< / div >
< / main >
< div class = "log-body" >
< div v-for = "(l,i) in logs" :key="i" class="log-line" :class="l.type" > [ {{ l.t }} ] {{ l.msg }} < / div >
< div v-if = "logs.length===0" class="log-line muted" > 等待操作 … < / div >
< / div >
< / div >
< / div >
< / template >
@@ -159,7 +147,7 @@ const wb = useReviewWorkbench()
const {
items , checkedIds , expandedDetails , currentFilter , currentStatus , logs , conn , connState ,
mcpUrl , mcpKey , fileInput ,
counts , progressPct , progressOffset , statRate , statTodo , statDone , statFail , pageSub , banner , filteredItems ,
counts , statRate , statTodo , statDone , statFail , pageSub , banner , filteredItems ,
toggleSelect , toggleDetail , setStatus , selectAll , clearSelection , resetStatus ,
testConnection , applyItem , batchApply , exportJson , exportMd , onFile , reloadBuiltin ,
methodLabel , pad
@@ -167,135 +155,162 @@ const {
< / script >
< style scoped >
. app {
-- bg : # 030712 ; -- surface : # 111827 ; -- surface - hover : # 1 f2937 ; -- surface - raised : # 18212 f ;
-- border : # 374151 ; -- border - light : # 4 b5563 ;
-- text : # f9fafb ; -- text - secondary : # 9 ca3af ; -- text - muted : # 6 b7280 ;
-- primary : # 2563 eb ; -- primary - hover : # 1 d4ed8 ; -- primary - soft : rgba ( 37 , 99 , 235 , .12 ) ;
-- accent : # 06 b6d4 ; -- accent - soft : rgba ( 6 , 182 , 212 , .12 ) ;
-- success : # 059669 ; -- success - soft : rgba ( 5 , 150 , 105 , .12 ) ;
-- warning : # d97706 ; -- warning - soft : rgba ( 217 , 119 , 6 , .12 ) ;
-- danger : # dc2626 ; -- danger - soft : rgba ( 220 , 38 , 38 , .12 ) ;
-- purple : # 7 c3aed ; -- purple - soft : rgba ( 124 , 58 , 237 , .12 ) ;
-- radius : 8 px ; -- shadow : 0 10 px 30 px - 10 px rgba ( 0 , 0 , 0 , .5 ) ;
display : grid ; grid - template - columns : 248 px 1 fr ; grid - template - rows : 64 px 1 fr ; grid - template - areas : "sidebar header" "sidebar main" ;
height : 100 % ; min - height : 600 px ; overflow : hidden ; background : var ( -- bg ) ; color : var ( -- text ) ;
font - family : - apple - system , BlinkMacSystemFont , "Segoe UI" , Roboto , "PingFang SC" , "Microsoft YaHei" , sans - serif ; font - size : 13 px ; line - height : 1.5 ;
. wb {
/* 跟随外层平台风格,不定义 dark 自有主题 */
display : flex ; flex - direction : column ; gap : 14 px ;
}
* { box - sizing : border - box }
. sidebar { grid - area : sidebar ; background : var ( -- surface ) ; border - right : 1 px solid var ( -- border ) ; display : flex ; flex - direction : column ; padding : 20 px 0 ; overflow - y : auto }
. brand { display : flex ; align - items : center ; gap : 12 px ; padding : 0 20 px 24 px ; border - bottom : 1 px solid var ( -- border ) }
. brand - icon { width : 32 px ; height : 32 px ; border - radius : var ( -- radius ) ; background : linear - gradient ( 135 deg , var ( -- primary ) , var ( -- accent ) ) ; display : flex ; align - items : center ; justify - content : center ; font - weight : 700 ; font - size : 14 px ; color : # fff }
. brand - text { font - weight : 600 ; font - size : 15 px ; letter - spacing : .2 px }
. brand - sub { font - size : 11 px ; color : var ( -- text - muted ) ; margin - top : 2 px }
. nav { padding : 16 px 12 px ; display : flex ; flex - direction : column ; gap : 4 px ; flex : 1 }
. nav - title { font - size : 10 px ; text - transform : uppercase ; letter - spacing : 1 px ; color : var ( -- text - muted ) ; padding : 0 10 px ; margin - bottom : 6 px ; font - weight : 600 }
. nav - item { display : flex ; align - items : center ; justify - content : space - between ; padding : 9 px 12 px ; border - radius : 6 px ; cursor : pointer ; color : var ( -- text - secondary ) ; transition : all .15 s }
. nav - item : hover { background : var ( -- surface - hover ) ; color : var ( -- text ) }
. nav - item . active { background : var ( -- primary - soft ) ; color : var ( -- primary ) ; font - weight : 500 }
. nav - item . count { font - size : 11 px ; background : var ( -- surface - raised ) ; padding : 2 px 7 px ; border - radius : 99 px ; color : var ( -- text - muted ) }
. nav - item . active . count { background : rgba ( 37 , 99 , 235 , .2 ) ; color : var ( -- primary ) }
. nav - item . count . op { background : rgba ( 5 , 150 , 105 , .18 ) ; color : # 6 ee7b7 }
. nav - item . count . doc { background : rgba ( 6 , 182 , 212 , .18 ) ; color : # 67 e8f9 }
. progress - box { padding : 20 px ; border - top : 1 px solid var ( -- border ) }
. progress - ring { position : relative ; width : 120 px ; height : 120 px ; margin : 0 auto 14 px }
. progress - ring svg { transform : rotate ( - 90 deg ) }
. progress - ring - bg { fill : none ; stroke : var ( -- surface - raised ) ; stroke - width : 8 }
. progress - ring - fill { fill : none ; stroke : var ( -- primary ) ; stroke - width : 8 ; stroke - linecap : round ; transition : stroke - dashoffset .4 s ease }
. progress - text { position : absolute ; inset : 0 ; display : flex ; flex - direction : column ; align - items : center ; justify - content : center }
. progress - pct { font - size : 26 px ; font - weight : 700 ; line - height : 1 }
. progress - label { font - size : 10 px ; color : var ( -- text - muted ) ; margin - top : 4 px }
. progress - stats { display : grid ; grid - template - columns : 1 fr 1 fr ; gap : 8 px ; font - size : 11 px }
. progress - stat { background : var ( -- surface - raised ) ; padding : 8 px ; border - radius : 6 px }
. progress - stat . num { font - size : 15 px ; font - weight : 600 ; color : var ( -- text ) }
. progress - stat . lbl { color : var ( -- text - muted ) ; margin - top : 2 px }
. sidebar - foot { padding : 0 20 px ; font - size : 11 px ; color : var ( -- text - muted ) ; line - height : 1.7 }
. sidebar - foot . btn { margin - top : 10 px ; width : 100 % ; justify - content : center }
. header { grid - area : header ; background : var ( -- surface ) ; border - bottom : 1 px solid var ( -- border ) ; display : flex ; align - items : center ; justify - content : space - between ; padding : 0 24 px ; gap : 16 px ; flex - wrap : wrap }
. header - left { display : flex ; align - items : center ; gap : 16 px }
. page - title { font - size : 16 px ; font - weight : 600 }
. page - sub { font - size : 12 px ; color : var ( -- text - muted ) ; margin - top : 2 px }
. connection { display : flex ; align - items : center ; gap : 10 px ; font - size : 12 px ; flex - wrap : wrap }
. connection . status - line { display : flex ; align - items : center ; gap : 6 px }
. connection label { color : var ( -- text - muted ) ; font - size : 11 px ; white - space : nowrap }
. connection input { background : var ( -- bg ) ; border : 1 px solid var ( -- border ) ; color : var ( -- text ) ; padding : 7 px 10 px ; border - radius : 6 px ; font - size : 12 px ; outline : none ; transition : border .15 s }
. connection input : focus { border - color : var ( -- primary ) }
. connection input . url { width : 300 px }
. connection input . key { width : 130 px }
. btn { display : inline - flex ; align - items : center ; gap : 6 px ; padding : 7 px 14 px ; border - radius : 6 px ; border : 1 px solid var ( -- border ) ; background : var ( -- surface - raised ) ; color : var ( -- text ) ; font - size : 12 px ; font - weight : 500 ; cursor : pointer ; transition : all .15 s ; white - space : nowrap }
. btn : hover { border - color : var ( -- border - light ) ; background : var ( -- surface - hover ) }
. btn - primary { background : var ( -- primary ) ; border - color : var ( -- primary ) ; color : # fff }
. btn - primary : hover { background : var ( -- primary - hover ) }
. btn - success { background : var ( -- success ) ; border - color : var ( -- success ) ; color : # fff }
. btn - success : hover { background : # 047857 }
. btn - ghost { background : transparent ; border - color : transparent ; color : var ( -- text - secondary ) }
. btn - ghost : hover { background : var ( -- surface - hover ) ; color : var ( -- text ) }
. btn : disabled { opacity : .45 ; cursor : not - allowed }
. status - dot { width : 8 px ; height : 8 px ; border - radius : 50 % ; background : var ( -- text - muted ) }
. status - dot . ok { background : var ( -- success ) }
. status - dot . err { background : var ( -- danger ) }
. mode - pill { font - size : 11 px ; font - weight : 600 ; padding : 3 px 10 px ; border - radius : 99 px }
. mode - exec { background : var ( -- success - soft ) ; color : # 6 ee7b7 }
. mode - export { background : var ( -- warning - soft ) ; color : # fcd34d }
. main { grid - area : main ; overflow : auto ; padding : 24 px }
. stats { display : grid ; grid - template - columns : repeat ( 4 , 1 fr ) ; gap : 16 px ; margin - bottom : 20 px }
. stat - card { background : var ( -- surface ) ; border : 1 px solid var ( -- border ) ; border - radius : var ( -- radius ) ; padding : 18 px 20 px ; display : flex ; align - items : center ; justify - content : space - between }
. stat - info . num { font - size : 28 px ; font - weight : 700 ; line - height : 1 }
. stat - info . lbl { font - size : 12 px ; color : var ( -- text - muted ) ; margin - top : 6 px }
. stat - icon { width : 40 px ; height : 40 px ; border - radius : var ( -- radius ) ; display : flex ; align - items : center ; justify - content : center ; font - size : 18 px }
. stat - card . primary . stat - icon { background : var ( -- primary - soft ) ; color : var ( -- primary ) }
. stat - card . success . stat - icon { background : var ( -- success - soft ) ; color : var ( -- success ) }
. stat - card . warning . stat - icon { background : var ( -- warning - soft ) ; color : var ( -- warning ) }
. stat - card . danger . stat - icon { background : var ( -- danger - soft ) ; color : var ( -- danger ) }
. banner { display : flex ; align - items : center ; gap : 10 px ; padding : 12 px 16 px ; border - radius : var ( -- radius ) ; font - size : 12 px ; margin - bottom : 16 px }
. banner . exec { background : var ( -- success - soft ) ; border : 1 px solid rgba ( 5 , 150 , 105 , .25 ) ; color : # 6 ee7b7 }
. banner . export { background : var ( -- warning - soft ) ; border : 1 px solid rgba ( 217 , 119 , 6 , .25 ) ; color : # fcd34d }
. banner . info { background : var ( -- primary - soft ) ; border : 1 px solid rgba ( 37 , 99 , 235 , .25 ) ; color : # 93 c5fd }
. toolbar { display : flex ; align - items : center ; justify - content : space - between ; gap : 12 px ; margin - bottom : 16 px ; flex - wrap : wrap }
. toolbar - left , . toolbar - right { display : flex ; align - items : center ; gap : 8 px ; flex - wrap : wrap }
. filter - btn { padding : 6 px 12 px ; border - radius : 6 px ; border : 1 px solid var ( -- border ) ; background : var ( -- surface ) ; color : var ( -- text - secondary ) ; font - size : 12 px ; cursor : pointer }
. filter - btn . active { background : var ( -- primary - soft ) ; border - color : rgba ( 37 , 99 , 235 , .3 ) ; color : var ( -- primary ) }
. table - wrap { background : var ( -- surface ) ; border : 1 px solid var ( -- border ) ; border - radius : var ( -- radius ) ; overflow : hidden }
. table - head { display : grid ; grid - template - columns : 40 px 56 px 1.2 fr .9 fr 1.1 fr 1.4 fr 120 px 130 px ; gap : 12 px ; padding : 12 px 16 px ; background : var ( -- surface - raised ) ; border - bottom : 1 px solid var ( -- border ) ; font - size : 11 px ; font - weight : 600 ; color : var ( -- text - muted ) ; text - transform : uppercase ; letter - spacing : .5 px }
. table - body { max - height : calc ( 100 vh - 430 px ) ; overflow - y : auto }
. item { display : grid ; grid - template - columns : 40 px 56 px 1.2 fr .9 fr 1.1 fr 1.4 fr 120 px 130 px ; gap : 12 px ; padding : 14 px 16 px ; border - bottom : 1 px solid var ( -- border ) ; align - items : center ; transition : background .15 s ; cursor : pointer }
. item : hover { background : var ( -- surface - hover ) }
. item . selected { background : rgba ( 37 , 99 , 235 , .08 ) }
. item . expanded { background : var ( -- surface - raised ) }
/* ===== header ===== */
. wb - header {
display : flex ; align - items : center ; justify - content : space - between ; gap : 14 px ; flex - wrap : wrap ;
padding : 12 px 16 px ; background : # fff ; border - radius : 10 px ; box - shadow : 0 1 px 4 px rgba ( 20 , 40 , 80 , .05 ) ;
}
. wb - header - left { display : flex ; align - items : center ; gap : 12 px }
. wb - title { font - size : 14 px ; font - weight : 600 ; color : # 1 f2430 }
. mode - pill { font - size : 11 px ; font - weight : 600 ; padding : 3 px 10 px ; border - radius : 99 px }
. mode - exec { background : # ecfdf5 ; color : # 059669 }
. mode - export { background : # fef3c7 ; color : # d97706 }
. wb - connection { display : flex ; align - items : center ; gap : 8 px ; font - size : 12 px ; flex - wrap : wrap }
. wb - connection . status - dot { width : 8 px ; height : 8 px ; border - radius : 50 % ; background : # cbd5e1 ; flex - shrink : 0 }
. wb - connection . status - dot . ok { background : # 059669 }
. wb - connection . status - dot . err { background : # dc2626 }
. wb - connection label { color : # 8 a93a6 ; font - size : 11 px ; white - space : nowrap }
. wb - connection input {
border : 1 px solid # dbe1ed ; background : # fff ; padding : 5 px 10 px ; border - radius : 6 px ;
font - size : 12 px ; color : # 1 f2430 ; outline : none ; transition : border .15 s ;
}
. wb - connection input : focus { border - color : # 2 f6bff }
. wb - connection input . url { width : 280 px }
. wb - connection input . key { width : 130 px }
. wb - actions { display : flex ; align - items : center ; gap : 8 px ; flex - wrap : wrap }
/* ===== 通用按钮(沿用平台样式基调) ===== */
. btn {
display : inline - flex ; align - items : center ; gap : 6 px ; padding : 6 px 14 px ; border - radius : 6 px ;
border : 1 px solid # dbe1ed ; background : # fff ; color : # 1 f2430 ; font - size : 12 px ;
font - weight : 500 ; cursor : pointer ; transition : all .15 s ; white - space : nowrap ;
}
. btn : hover { border - color : # b6c2dd ; background : # f8fafc }
. btn - primary { background : # 2 f6bff ; border - color : # 2 f6bff ; color : # fff }
. btn - primary : hover { background : # 1 b3f9c ; border - color : # 1 b3f9c }
. btn - success { background : # 059669 ; border - color : # 059669 ; color : # fff }
. btn - success : hover { background : # 047857 ; border - color : # 047857 }
. btn - ghost { background : transparent ; border - color : transparent ; color : # 4 a5b8c }
. btn - ghost : hover { background : # eef1f7 ; color : # 1 f2430 }
. btn : disabled { opacity : .45 ; cursor : not - allowed }
/* ===== 顶部统计卡(4 列,跟首页/概览风格一致) ===== */
. wb - stats { display : grid ; grid - template - columns : repeat ( 4 , 1 fr ) ; gap : 12 px }
. stat {
background : # fff ; border - radius : 10 px ; padding : 14 px 16 px ;
box - shadow : 0 1 px 4 px rgba ( 20 , 40 , 80 , .05 ) ;
display : flex ; flex - direction : column ; gap : 4 px ;
border - left : 3 px solid # cbd5e1 ;
}
. stat . num { font - size : 24 px ; font - weight : 700 ; color : # 1 f2430 ; line - height : 1 }
. stat . lbl { font - size : 12 px ; color : # 8 a93a6 }
. stat . primary { border - left - color : # 2 f6bff }
. stat . success { border - left - color : # 059669 }
. stat . warning { border - left - color : # d97706 }
. stat . danger { border - left - color : # dc2626 }
/* ===== 分类筛选 ===== */
. wb - filterbar {
display : flex ; align - items : center ; gap : 6 px ; flex - wrap : wrap ;
padding : 10 px 14 px ; background : # fff ; border - radius : 10 px ; box - shadow : 0 1 px 4 px rgba ( 20 , 40 , 80 , .05 ) ;
}
. wb - filterbar . sep { width : 1 px ; height : 18 px ; background : # dbe1ed ; margin : 0 4 px }
. filter - btn {
display : inline - flex ; align - items : center ; gap : 4 px ;
padding : 4 px 10 px ; border - radius : 14 px ;
border : 1 px solid # dbe1ed ; background : # fff ; color : # 4 a5b8c ; font - size : 12 px ; cursor : pointer ;
}
. filter - btn em { font - style : normal ; background : # f1f4fa ; padding : 1 px 6 px ; border - radius : 8 px ; font - size : 11 px ; color : # 6 b7693 }
. filter - btn em . op { background : # ecfdf5 ; color : # 059669 }
. filter - btn em . doc { background : # ecfeff ; color : # 06 b6d4 }
. filter - btn . active { background : # eff3fc ; border - color : # b6c8f0 ; color : # 1 b3f9c ; font - weight : 500 }
. filter - btn . active em { background : # dbe4f5 ; color : # 1 b3f9c }
/* ===== banner ===== */
. banner { display : flex ; align - items : center ; gap : 10 px ; padding : 10 px 14 px ; border - radius : 8 px ; font - size : 12 px }
. banner . exec { background : # ecfdf5 ; border : 1 px solid # a7f3d0 ; color : # 065 f46 }
. banner . export { background : # fef3c7 ; border : 1 px solid # fde68a ; color : # 92400 e }
. banner . info { background : # eff6ff ; border : 1 px solid # bfdbfe ; color : # 1 e3a8a }
/* ===== 状态筛选条 ===== */
. wb - toolbar {
display : flex ; align - items : center ; justify - content : space - between ; gap : 12 px ; flex - wrap : wrap ;
padding : 10 px 14 px ; background : # fff ; border - radius : 10 px ; box - shadow : 0 1 px 4 px rgba ( 20 , 40 , 80 , .05 ) ;
}
. wb - toolbar - left , . wb - toolbar - right { display : flex ; align - items : center ; gap : 6 px ; flex - wrap : wrap }
/* ===== 表格 ===== */
. wb - table {
background : # fff ; border - radius : 10 px ; box - shadow : 0 1 px 4 px rgba ( 20 , 40 , 80 , .05 ) ;
overflow : hidden ;
}
. table - head {
display : grid ; grid - template - columns : 36 px 56 px 1.2 fr .9 fr 1 fr 1.4 fr 130 px 110 px ; gap : 12 px ;
padding : 10 px 14 px ; background : # f7f9fc ; border - bottom : 1 px solid # eef1f7 ;
font - size : 11 px ; font - weight : 600 ; color : # 8 a93a6 ;
}
. table - body { max - height : calc ( 100 vh - 480 px ) ; overflow - y : auto }
. item {
display : grid ; grid - template - columns : 36 px 56 px 1.2 fr .9 fr 1 fr 1.4 fr 130 px 110 px ; gap : 12 px ;
padding : 12 px 14 px ; border - bottom : 1 px solid # eef1f7 ; align - items : center ;
transition : background .15 s ; cursor : pointer ;
}
. item : hover { background : # fafbfd }
. item . selected { background : # eff3fc }
. item . expanded { background : # f7f9fc }
. item : last - child { border - bottom : none }
. item - check { display : flex ; align - items : center ; justify - content : center }
. item - check input { width : 16 px ; height : 16 px ; accent - color : var ( -- primary ) ; cursor : pointer }
. item - num { font - size : 12 px ; color : var ( -- text - muted ) ; font - variant - numeric : tabular - nums ; display : flex ; align - items : center ; gap : 6 px }
. severity - bar { width : 3 px ; height : 36 px ; border - radius : 2 px }
. sev - red { background : var ( -- danger ) } . sev - amber { background : var ( -- warning ) } . sev - orange { background : # ea580c } . sev - emerald { background : var ( -- success ) } . sev - blue { background : var ( -- primary ) }
. item - name { font - weight : 500 ; color : var ( -- text ) ; line - height : 1.4 }
. item - name . tag { display : inline - block ; font - size : 10 px ; font - weight : 500 ; padding : 2 px 7 px ; border - radius : 4 px ; margin - left : 8 px ; vertical - align : middle }
. item - ref { font - size : 12 px ; color : var ( -- text - secondary ) }
. item - ref code { background : var ( -- bg ) ; padding : 2 px 5 px ; border - radius : 4 px ; font - size : 11 px }
. item - check { display : flex ; align - items : center ; justify - content : center }
. item - check input { width : 16 px ; height : 16 px ; accent - color : # 2 f6bff ; cursor : pointer }
. item - num { font - size : 12 px ; color : # 6 b7693 ; font - variant - numeric : tabular - nums ; display : flex ; align - items : center ; gap : 6 px }
. severity - bar { width : 3 px ; height : 32 px ; border - radius : 2 px }
. sev - red { background : # dc2626 } . sev - amber { background : # d97706 } . sev - orange { background : # ea580c } . sev - emerald { background : # 059669 } . sev - blue { background : # 2 f6bff }
. item - name { font - weight : 500 ; color : # 1 f2430 ; line - height : 1.4 }
. item - name . tag { display : inline - block ; font - size : 10 px ; font - weight : 500 ; padding : 2 px 7 px ; border - radius : 4 px ; margin - left : 8 px ; vertical - align : middle }
. item - name . tag . act - operation { background : # fee2e2 ; color : # b91c1c }
. item - name . tag . act - document { background : # cffafe ; color : # 0 e7490 }
. item - ref { font - size : 12 px ; color : # 4 a5b8c }
. item - ref code { background : # f1f4fa ; padding : 2 px 6 px ; border - radius : 4 px ; font - size : 11 px ; color : # 1 f2430 }
. item - action { font - size : 11 px }
. item - action . act { display : inline - block ; padding : 3 px 8 px ; border - radius : 4 px ; font - weight : 500 }
. act - operation { background : var ( -- danger - soft ) ; color : # fca5a5 }
. act - document { background : var ( -- accent - soft ) ; color : # 67 e8f9 }
. item - summary { font - size : 12 px ; color : var ( -- text - secondary ) ; line - height : 1.5 ; overflow : hidden ; display : - webkit - box ; - webkit - line - clamp : 2 ; - webkit - box - orient : vertical }
. item - status select { background : var ( -- bg ) ; border : 1 px solid var ( -- border ) ; color : var ( -- text ) ; padding : 6 px 8 px ; border - radius : 6 px ; font - size : 12 px ; width : 100 % ; outline : none ; cursor : pointer }
. item - actions { display : flex ; gap : 6 px }
. item - actions . btn { padding : 5 px 10 px ; font - size : 11 px }
. detail { grid - column : 1 / - 1 ; background : var ( -- bg ) ; border - top : 1 px dashed var ( -- border ) ; padding : 0 }
. detail - inner { padding : 18 px 16 px 20 px 112 px }
. detail - cols { display : grid ; grid - template - columns : repeat ( 3 , 1 fr ) ; gap : 20 px ; margin - bottom : 18 px }
. detail - block h4 { font - size : 11 px ; text - transform : uppercase ; letter - spacing : .5 px ; color : var ( -- text - muted ) ; margin : 0 0 8 px ; font - weight : 600 }
. detail - block p { margin : 0 ; font - size : 12 px ; color : var ( -- text - secondary ) ; line - height : 1.7 }
. detail - row { display : grid ; grid - template - columns : 200 px 1 fr ; gap : 12 px ; align - items : start ; margin - bottom : 12 px }
. detail - row label { font - size : 11 px ; color : var ( -- text - muted ) ; padding - top : 7 px }
. detail - row input , . detail - row textarea { background : var ( -- surface ) ; border : 1 px solid var ( -- border ) ; color : var ( -- text ) ; padding : 7 px 10 px ; border - radius : 6 px ; font - size : 12 px ; outline : none ; width : 100 % }
. detail - row input : focus , . detail - row textarea : focus { border - color : var ( -- primary ) }
. detail - row textarea { min - height : 80 px ; resize : vertical ; font - family : inherit ; line - height : 1.6 }
. detail - actions { display : flex ; gap : 10 px ; margin - top : 16 px ; padding - top : 16 px ; border - top : 1 px solid var ( -- border ) ; flex - wrap : wrap }
. log - panel { background : var ( -- surface ) ; border : 1 px solid var ( -- border ) ; border - radius : var ( -- radius ) ; margin - top : 20 px ; max - height : 240 px ; display : flex ; flex - direction : column }
. log - head { display : flex ; align - items : center ; justify - content : space - between ; padding : 10 px 14 px ; border - bottom : 1 px solid var ( -- border ) ; font - size : 12 px ; font - weight : 600 }
. log - body { flex : 1 ; overflow : auto ; padding : 10 px 14 px ; font - family : ui - monospace , SFMono - Regular , Menlo , monospace ; font - size : 11 px ; line - height : 1.6 }
. log - line { margin - bottom : 6 px ; color : var ( -- text - secondary ) }
. log - line . ok { color : var ( -- success ) } . log - line . err { color : # fca5a5 } . log - line . warn { color : # fcd34d } . log - line . info { color : var ( -- accent ) }
. empty - state { text - align : center ; padding : 60 px 20 px ; color : var ( -- text - muted ) }
. empty - state . big { font - size : 40 px ; margin - bottom : 12 px }
. item - action . act { display : inline - block ; padding : 3 px 8 px ; border - radius : 4 px ; font - weight : 500 }
. act - operation { background : # fee2e2 ; color : # b91c1c }
. act - document { background : # cffafe ; color : # 0 e7490 }
. item - summary { font - size : 12 px ; color : # 4 a5b8c ; line - height : 1.5 ; overflow : hidden ; display : - webkit - box ; - webkit - line - clamp : 2 ; - webkit - box - orient : vertical }
. item - actions { display : flex ; gap : 6 px }
. item - actions : deep ( . el - button ) { padding : 5 px 10 px ! important ; font - size : 11 px ! important }
/* ===== 展开详情 ===== */
. detail { grid - column : 1 / - 1 ; background : # fafbfd ; border - top : 1 px dashed # eef1f7 }
. detail - inner { padding : 16 px 14 px 18 px 90 px }
. detail - cols { display : grid ; grid - template - columns : repeat ( 3 , 1 fr ) ; gap : 18 px ; margin - bottom : 16 px }
. detail - block h4 { font - size : 11 px ; text - transform : uppercase ; letter - spacing : .5 px ; color : # 8 a93a6 ; margin : 0 0 6 px ; font - weight : 600 }
. detail - block p { margin : 0 ; font - size : 12 px ; color : # 4 a5b8c ; line - height : 1.7 }
. detail - row { display : grid ; grid - template - columns : 160 px 1 fr ; gap : 12 px ; align - items : start ; margin - bottom : 10 px }
. detail - row label { font - size : 11 px ; color : # 6 b7693 ; padding - top : 7 px }
. detail - row input , . detail - row textarea {
border : 1 px solid # dbe1ed ; background : # fff ; padding : 6 px 10 px ; border - radius : 6 px ;
font - size : 12 px ; color : # 1 f2430 ; outline : none ; width : 100 % ;
}
. detail - row input : focus , . detail - row textarea : focus { border - color : # 2 f6bff }
. detail - row textarea { min - height : 80 px ; resize : vertical ; font - family : inherit ; line - height : 1.6 }
. detail - actions { display : flex ; gap : 10 px ; margin - top : 14 px ; padding - top : 14 px ; border - top : 1 px solid # eef1f7 ; flex - wrap : wrap }
/* ===== 日志 ===== */
. wb - log {
background : # fff ; border - radius : 10 px ; box - shadow : 0 1 px 4 px rgba ( 20 , 40 , 80 , .05 ) ;
max - height : 240 px ; display : flex ; flex - direction : column ;
}
. log - head { display : flex ; align - items : center ; justify - content : space - between ; padding : 10 px 14 px ; border - bottom : 1 px solid # eef1f7 ; font - size : 12 px ; font - weight : 600 ; color : # 1 f2430 }
. log - body { flex : 1 ; overflow : auto ; padding : 10 px 14 px ; font - family : ui - monospace , SFMono - Regular , Menlo , monospace ; font - size : 11 px ; line - height : 1.6 }
. log - line { margin - bottom : 4 px ; color : # 4 a5b8c }
. log - line . ok { color : # 059669 } . log - line . err { color : # dc2626 } . log - line . warn { color : # d97706 } . log - line . info { color : # 06 b6d4 }
. log - line . muted { color : # 8 a93a6 }
/* ===== 空状态 ===== */
. empty - state { text - align : center ; padding : 60 px 20 px ; color : # 8 a93a6 }
. empty - state . big { font - size : 36 px ; margin - bottom : 10 px }
. muted { color : # 8 a93a6 }
< / style >