604 lines
33 KiB
HTML
604 lines
33 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title>37du 壳子前端 · 重设计提案(Soft Precision)</title>
|
||
<style>
|
||
/* ============================================================
|
||
提案稿 · Soft Precision(精密工作台 × 克制的奶油残留)
|
||
单文件自包含 · 双主题 · 仅供设计评审
|
||
============================================================ */
|
||
:root {
|
||
/* 中性色(冷灰,替代奶油底) */
|
||
--canvas: #F4F6F9;
|
||
--surface: #FFFFFF;
|
||
--surface-2: #F1F4F8;
|
||
--surface-3: #E9EDF3;
|
||
--border: #E4E9F0;
|
||
--border-strong: #CDD6E1;
|
||
--text: #182230;
|
||
--text-sub: #5A6674;
|
||
--text-faint: #7C8896;
|
||
/* 主色:保留天蓝家族,但压深到 AA 可读 */
|
||
--primary: #1E6FA8;
|
||
--primary-strong: #17608F;
|
||
--primary-tint: #E9F2FA;
|
||
--primary-ring: rgba(30, 111, 168, .16);
|
||
/* 语义色:可读优先 */
|
||
--ok: #1F8A4C; --ok-tint: #E7F5EC;
|
||
--err: #D64545; --err-tint: #FBEBEB;
|
||
--warn: #B26B00; --warn-tint: #FBF3E0;
|
||
/* 结构 */
|
||
--r-frame: 14px; --r-card: 12px; --r-ctl: 8px;
|
||
--sh-sm: 0 1px 2px rgba(15, 23, 42, .05);
|
||
--sh-md: 0 8px 24px -12px rgba(15, 23, 42, .14);
|
||
--font: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
|
||
--mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
|
||
}
|
||
.frame[data-theme="dark"] {
|
||
--canvas: #0E1116;
|
||
--surface: #151A21;
|
||
--surface-2: #1B222B;
|
||
--surface-3: #222B37;
|
||
--border: #27303D;
|
||
--border-strong: #39465A;
|
||
--text: #E8EDF4;
|
||
--text-sub: #9AA7B5;
|
||
--text-faint: #6E7C8C;
|
||
--primary: #3E93CF;
|
||
--primary-strong: #5FA9DE;
|
||
--primary-tint: #14304A;
|
||
--primary-ring: rgba(94, 169, 222, .22);
|
||
--ok: #4CC38A; --ok-tint: #12291C;
|
||
--err: #E5726F; --err-tint: #2E1717;
|
||
--warn: #DFA63E; --warn-tint: #2D2312;
|
||
--sh-sm: 0 1px 2px rgba(0, 0, 0, .3);
|
||
--sh-md: 0 10px 28px -14px rgba(0, 0, 0, .55);
|
||
}
|
||
|
||
* { box-sizing: border-box; }
|
||
body {
|
||
margin: 0; background: #E9ECF1; color: #182230;
|
||
font-family: var(--font); font-size: 14px; line-height: 1.6;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
.dark body, body.dark { background: #0B0E12; color: #E8EDF4; }
|
||
|
||
/* ---------- 顶部说明条 ---------- */
|
||
.intro {
|
||
max-width: 1240px; margin: 0 auto; padding: 28px 24px 8px;
|
||
display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
|
||
}
|
||
.intro h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .01em; }
|
||
.intro p { margin: 4px 0 0; font-size: 12.5px; color: #5A6674; }
|
||
body.dark .intro p { color: #9AA7B5; }
|
||
.theme-toggle {
|
||
border: 1px solid #CDD6E1; background: #fff; color: #182230;
|
||
border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer;
|
||
font-family: inherit; transition: all .15s ease; white-space: nowrap;
|
||
}
|
||
.theme-toggle:hover { border-color: #1E6FA8; color: #1E6FA8; }
|
||
body.dark .theme-toggle { background: #1B222B; border-color: #39465A; color: #E8EDF4; }
|
||
body.dark .theme-toggle:hover { border-color: #3E93CF; color: #3E93CF; }
|
||
|
||
/* ---------- 应用框架 ---------- */
|
||
.stage { max-width: 1240px; margin: 20px auto 0; padding: 0 24px; }
|
||
.frame {
|
||
border-radius: var(--r-frame);
|
||
background: var(--canvas);
|
||
border: 1px solid var(--border);
|
||
box-shadow: var(--sh-md);
|
||
overflow: hidden;
|
||
display: flex; flex-direction: column;
|
||
height: 780px;
|
||
transition: background .2s ease, border-color .2s ease;
|
||
}
|
||
|
||
/* 标题栏(提案:frameless 自绘,替换系统标题栏 + 页内 topbar 的双层结构) */
|
||
.titlebar {
|
||
height: 40px; flex-shrink: 0;
|
||
display: flex; align-items: center; gap: 10px;
|
||
padding: 0 0 0 14px;
|
||
background: var(--surface);
|
||
border-bottom: 1px solid var(--border);
|
||
-webkit-app-region: drag;
|
||
}
|
||
.titlebar .mark {
|
||
width: 20px; height: 20px; border-radius: 6px;
|
||
display: grid; place-items: center;
|
||
background: var(--primary); color: #fff;
|
||
font: 700 9px/1 var(--mono); letter-spacing: .02em;
|
||
}
|
||
.titlebar .tname { font-size: 12.5px; font-weight: 600; }
|
||
.titlebar .tver {
|
||
font: 500 10.5px/1 var(--mono); color: var(--text-faint);
|
||
border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px;
|
||
}
|
||
.titlebar .tsp { flex: 1; }
|
||
.win-ctl { display: flex; height: 100%; -webkit-app-region: no-drag; }
|
||
.win-ctl span {
|
||
width: 44px; display: grid; place-items: center;
|
||
color: var(--text-faint); font-size: 11px; cursor: default;
|
||
}
|
||
.win-ctl span:hover { background: var(--surface-2); }
|
||
.win-ctl span.close:hover { background: var(--err); color: #fff; }
|
||
|
||
/* 主体三栏 */
|
||
.shell { flex: 1; display: flex; min-height: 0; }
|
||
|
||
/* 左侧导航轨 */
|
||
.rail {
|
||
width: 212px; flex-shrink: 0;
|
||
background: var(--surface);
|
||
border-right: 1px solid var(--border);
|
||
display: flex; flex-direction: column;
|
||
padding: 12px 10px;
|
||
}
|
||
.nav-sec { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
|
||
.nav-item {
|
||
display: flex; align-items: center; gap: 10px;
|
||
height: 34px; padding: 0 10px; border-radius: var(--r-ctl);
|
||
font-size: 13px; color: var(--text-sub); cursor: pointer;
|
||
position: relative; transition: background .12s ease, color .12s ease;
|
||
}
|
||
.nav-item:hover { background: var(--surface-2); color: var(--text); }
|
||
.nav-item.active { background: var(--primary-tint); color: var(--primary); font-weight: 600; }
|
||
.nav-item.active::before {
|
||
content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px;
|
||
width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
|
||
}
|
||
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
|
||
.nav-item .nv-badge {
|
||
margin-left: auto; font: 500 10.5px/1 var(--mono);
|
||
color: var(--text-faint); background: var(--surface-2);
|
||
border-radius: 999px; padding: 2px 7px;
|
||
}
|
||
.nav-item.active .nv-badge { background: transparent; color: var(--primary); }
|
||
|
||
.rail-head {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
padding: 0 10px 8px;
|
||
font-size: 11px; font-weight: 700; letter-spacing: .06em;
|
||
color: var(--text-faint);
|
||
}
|
||
.rail-head .cnt { font: 500 10.5px/1 var(--mono); background: var(--surface-2); border-radius: 999px; padding: 2px 7px; }
|
||
.scene-nav { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 1px; }
|
||
.sn-item {
|
||
display: flex; align-items: center; gap: 9px;
|
||
height: 34px; padding: 0 10px; border-radius: var(--r-ctl);
|
||
cursor: pointer; transition: background .12s ease;
|
||
}
|
||
.sn-item:hover { background: var(--surface-2); }
|
||
.sn-item.active { background: var(--primary-tint); }
|
||
.sn-item.active .sn-name { color: var(--primary); font-weight: 600; }
|
||
.sn-dot { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; }
|
||
.sn-dot.c1 { background: var(--primary-tint); color: var(--primary); }
|
||
.sn-dot.c2 { background: var(--warn-tint); color: var(--warn); }
|
||
.sn-dot.c3 { background: var(--ok-tint); color: var(--ok); }
|
||
.sn-dot.c4 { background: var(--err-tint); color: var(--err); }
|
||
.sn-name { flex: 1; font-size: 12.5px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.sn-item.active .sn-name { color: var(--primary); }
|
||
.sn-ver { font: 400 10px/1 var(--mono); color: var(--text-faint); }
|
||
.rail-foot {
|
||
border-top: 1px solid var(--border);
|
||
padding: 10px 10px 2px; margin-top: 8px;
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
font-size: 11px; color: var(--text-faint);
|
||
}
|
||
.rail-foot a { color: var(--primary); text-decoration: none; font-size: 11px; cursor: pointer; }
|
||
|
||
/* 内容区 */
|
||
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
||
.page { flex: 1; min-height: 0; overflow: auto; padding: 22px 26px; }
|
||
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
|
||
.page-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .01em; }
|
||
.page-head .sub { margin: 4px 0 0; font-size: 12.5px; color: var(--text-faint); }
|
||
.conn-pill {
|
||
display: inline-flex; align-items: center; gap: 7px;
|
||
font-size: 11.5px; color: var(--ok);
|
||
background: var(--ok-tint); border: 1px solid transparent;
|
||
padding: 5px 12px; border-radius: 999px; font-weight: 500;
|
||
}
|
||
.conn-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
|
||
|
||
/* 统计行 */
|
||
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
|
||
.stat {
|
||
background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
|
||
padding: 14px 16px; box-shadow: var(--sh-sm);
|
||
display: flex; align-items: center; gap: 12px;
|
||
}
|
||
.st-ic {
|
||
width: 34px; height: 34px; border-radius: var(--r-ctl); flex-shrink: 0;
|
||
display: grid; place-items: center;
|
||
}
|
||
.st-ic svg { width: 16px; height: 16px; }
|
||
.st-ic.sky { background: var(--primary-tint); color: var(--primary); }
|
||
.st-ic.ok { background: var(--ok-tint); color: var(--ok); }
|
||
.st-ic.warn { background: var(--warn-tint); color: var(--warn); }
|
||
.st-ic.err { background: var(--err-tint); color: var(--err); }
|
||
.st-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
|
||
.st-meta b { font: 600 20px/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
|
||
.st-meta b em { font-style: normal; font-size: 12px; color: var(--text-faint); font-weight: 500; }
|
||
.st-meta span { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
|
||
/* 分节 */
|
||
.sec { margin-bottom: 20px; }
|
||
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
|
||
.sec-head h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
|
||
.sec-head .more { font-size: 12px; color: var(--primary); cursor: pointer; }
|
||
.sec-head .note { font-size: 11.5px; color: var(--text-faint); }
|
||
|
||
/* 场景卡 */
|
||
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
|
||
.sc {
|
||
background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
|
||
box-shadow: var(--sh-sm);
|
||
padding: 14px 16px; display: flex; align-items: center; gap: 13px;
|
||
cursor: pointer; transition: border-color .13s ease, box-shadow .13s ease;
|
||
font-family: inherit; text-align: left;
|
||
}
|
||
.sc:hover { border-color: var(--border-strong); box-shadow: var(--sh-md); }
|
||
.sc-ic { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
|
||
.sc-ic.c1 { background: var(--primary-tint); color: var(--primary); }
|
||
.sc-ic.c2 { background: var(--warn-tint); color: var(--warn); }
|
||
.sc-ic.c3 { background: var(--ok-tint); color: var(--ok); }
|
||
.sc-ic.c4 { background: var(--err-tint); color: var(--err); }
|
||
.sc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
||
.sc-body b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.sc-desc { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.sc-meta { font-size: 10.5px; color: var(--text-faint); display: flex; align-items: center; gap: 7px; }
|
||
.sc-meta .ver { font-family: var(--mono); }
|
||
.sc-meta .plat { color: var(--ok); }
|
||
.sc-meta .plat.off { color: var(--warn); }
|
||
.sc-run {
|
||
flex-shrink: 0; font-size: 12px; font-weight: 600;
|
||
color: var(--primary); border: 1px solid var(--border-strong);
|
||
background: var(--surface); border-radius: var(--r-ctl);
|
||
padding: 6px 14px; transition: all .13s ease;
|
||
}
|
||
.sc:hover .sc-run { background: var(--primary); border-color: var(--primary); color: #fff; }
|
||
|
||
/* 最近运行 */
|
||
.recent { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-sm); padding: 4px 6px; }
|
||
.rec {
|
||
display: flex; align-items: center; gap: 11px; width: 100%;
|
||
padding: 9px 10px; border: none; background: transparent; border-radius: var(--r-ctl);
|
||
font-family: inherit; cursor: pointer; text-align: left;
|
||
}
|
||
.rec:hover { background: var(--surface-2); }
|
||
.rec-ic { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
|
||
.rec-ic.ok { background: var(--ok-tint); color: var(--ok); }
|
||
.rec-ic.err { background: var(--err-tint); color: var(--err); }
|
||
.rec-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
|
||
.rec-msg { flex: 1; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.rec-msg.err { color: var(--err); }
|
||
.rec-time { font: 400 11px/1 var(--mono); color: var(--text-faint); }
|
||
|
||
/* 底部日志抽屉(可折叠,替代常驻 230px) */
|
||
.logdock {
|
||
flex-shrink: 0; background: var(--surface);
|
||
border-top: 1px solid var(--border);
|
||
display: flex; flex-direction: column;
|
||
}
|
||
.logdock-head {
|
||
height: 38px; display: flex; align-items: center; gap: 10px;
|
||
padding: 0 12px 0 16px; cursor: pointer;
|
||
}
|
||
.logdock-head .lt { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
|
||
.live {
|
||
font: 600 9.5px/1 var(--mono); letter-spacing: .08em;
|
||
color: var(--ok); background: var(--ok-tint);
|
||
padding: 3px 8px; border-radius: 999px;
|
||
}
|
||
.lv-tabs { display: flex; gap: 2px; margin-left: 8px; }
|
||
.lv-tab {
|
||
font-size: 11px; color: var(--text-faint); padding: 4px 10px;
|
||
border-radius: 999px; cursor: pointer; border: 1px solid transparent;
|
||
}
|
||
.lv-tab.on { background: var(--surface-2); color: var(--text); border-color: var(--border); }
|
||
.lv-tab:hover { color: var(--text); }
|
||
.logdock-head .sp { flex: 1; }
|
||
.logdock-head .tool { font-size: 11.5px; color: var(--text-faint); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
|
||
.logdock-head .tool:hover { background: var(--surface-2); color: var(--text); }
|
||
.chev { transition: transform .18s ease; color: var(--text-faint); }
|
||
.logdock.collapsed .chev { transform: rotate(180deg); }
|
||
.logdock.collapsed .logdock-body { display: none; }
|
||
.logdock-body {
|
||
height: 150px; overflow: auto; padding: 2px 16px 12px;
|
||
font: 400 12px/1.85 var(--mono);
|
||
}
|
||
.logline { display: flex; gap: 12px; }
|
||
.logline .t { color: var(--text-faint); flex-shrink: 0; }
|
||
.logline .lv { font-weight: 600; flex-shrink: 0; width: 46px; }
|
||
.logline .lv.i { color: var(--primary); }
|
||
.logline .lv.w { color: var(--warn); }
|
||
.logline .lv.e { color: var(--err); }
|
||
.logline .m { color: var(--text); word-break: break-all; }
|
||
.logline.hl { background: var(--surface-2); border-radius: 6px; }
|
||
.logline.hl .m { color: var(--ok); font-weight: 600; }
|
||
|
||
/* 状态栏 */
|
||
.statusbar {
|
||
height: 28px; flex-shrink: 0;
|
||
display: flex; align-items: center; gap: 18px;
|
||
padding: 0 16px; font-size: 11px; color: var(--text-faint);
|
||
background: var(--surface); border-top: 1px solid var(--border);
|
||
}
|
||
.statusbar .si { display: inline-flex; align-items: center; gap: 6px; }
|
||
.statusbar i { width: 6px; height: 6px; border-radius: 50%; }
|
||
.statusbar i.on { background: var(--ok); }
|
||
.statusbar i.mid { background: var(--warn); }
|
||
.statusbar .sp { flex: 1; }
|
||
.statusbar .mono { font-family: var(--mono); }
|
||
|
||
/* ---------- Tokens 图鉴 ---------- */
|
||
.tokens { max-width: 1240px; margin: 40px auto 60px; padding: 0 24px; }
|
||
.tokens h2 { font-size: 16px; margin: 0 0 14px; }
|
||
.tok-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
||
.tok-card { background: #fff; border: 1px solid #E4E9F0; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
|
||
.tok-card h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .06em; color: #7C8896; text-transform: uppercase; }
|
||
body.dark .tok-card { background: #151A21; border-color: #27303D; }
|
||
body.dark .tok-card h4 { color: #6E7C8C; }
|
||
.swatches { display: flex; flex-direction: column; gap: 6px; }
|
||
.sw-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
|
||
.sw { width: 44px; height: 26px; border-radius: 6px; border: 1px solid rgba(15,23,42,.08); flex-shrink: 0; }
|
||
.sw-name { width: 130px; color: #5A6674; font-family: var(--mono); font-size: 11.5px; }
|
||
body.dark .sw-name { color: #9AA7B5; }
|
||
.sw-note { color: #7C8896; font-size: 11.5px; }
|
||
.type-row { display: flex; align-items: baseline; gap: 14px; padding: 7px 0; border-bottom: 1px dashed #E4E9F0; }
|
||
body.dark .type-row { border-color: #27303D; }
|
||
.type-row:last-child { border-bottom: none; }
|
||
.type-tag { width: 92px; flex-shrink: 0; font: 500 11px/1 var(--mono); color: #7C8896; }
|
||
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 12.5px; }
|
||
.vs .col { border-radius: 10px; padding: 14px 16px; }
|
||
.vs .old { background: #FBF9F4; border: 1px dashed #E0D9C9; }
|
||
.vs .new { background: #F4F8FB; border: 1px solid #CBE0EF; }
|
||
.vs h5 { margin: 0 0 8px; font-size: 12px; }
|
||
.vs .old h5 { color: #9C9589; }
|
||
.vs .new h5 { color: #1E6FA8; }
|
||
.vs ul { margin: 0; padding-left: 16px; color: #5A6674; display: flex; flex-direction: column; gap: 4px; }
|
||
.foot-note { max-width: 1240px; margin: 0 auto 40px; padding: 0 24px; font-size: 11.5px; color: #7C8896; text-align: center; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="intro">
|
||
<div>
|
||
<h1>37du 壳子前端 · 重设计提案 <span style="color:#7C8896;font-weight:500;font-size:13px">Soft Precision</span></h1>
|
||
<p>精密工作台的秩序 × 天蓝品牌延续 × 奶油感收束为点缀 —— 右上角可切换深浅主题预览</p>
|
||
</div>
|
||
<button class="theme-toggle" onclick="document.body.classList.toggle('dark');document.querySelectorAll('.frame').forEach(f=>f.dataset.theme=document.body.classList.contains('dark')?'dark':'light')">◐ 切换深 / 浅主题</button>
|
||
</div>
|
||
|
||
<div class="stage">
|
||
<div class="frame" data-theme="light">
|
||
<!-- 标题栏:替代「系统标题栏 + 页内 topbar」双层 -->
|
||
<div class="titlebar">
|
||
<span class="mark">37</span>
|
||
<span class="tname">自动化工作台</span>
|
||
<span class="tver">v2.3.1</span>
|
||
<span class="tsp"></span>
|
||
<div class="win-ctl"><span>—</span><span>▢</span><span class="close">✕</span></div>
|
||
</div>
|
||
|
||
<div class="shell">
|
||
<!-- 左轨:主导航 + 场景库 -->
|
||
<aside class="rail">
|
||
<div class="nav-sec">
|
||
<div class="nav-item active">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 10.5 12 3l9 7.5"/><path d="M5 9.5V21h14V9.5"/></svg>
|
||
<span>工作台</span>
|
||
</div>
|
||
<div class="nav-item">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>
|
||
<span>定时任务</span>
|
||
<span class="nv-badge">3</span>
|
||
</div>
|
||
</div>
|
||
<div class="rail-head"><span>场景库</span><span class="cnt">6</span></div>
|
||
<div class="scene-nav">
|
||
<div class="sn-item active"><span class="sn-dot c1">考</span><span class="sn-name">考勤月报封存检查</span><span class="sn-ver">1.4.0</span></div>
|
||
<div class="sn-item"><span class="sn-dot c2">假</span><span class="sn-name">请假单批量补录</span><span class="sn-ver">0.9.2</span></div>
|
||
<div class="sn-item"><span class="sn-dot c3">周</span><span class="sn-name">周报数据汇总</span><span class="sn-ver">2.1.0</span></div>
|
||
<div class="sn-item"><span class="sn-dot c4">邮</span><span class="sn-name">邮件定时巡检</span><span class="sn-ver">1.0.3</span></div>
|
||
<div class="sn-item"><span class="sn-dot c1">薪</span><span class="sn-name">薪酬条分发</span><span class="sn-ver">1.2.7</span></div>
|
||
<div class="sn-item"><span class="sn-dot c3">档</span><span class="sn-name">档案归档巡检</span><span class="sn-ver">0.6.1</span></div>
|
||
</div>
|
||
<div class="rail-foot"><span>壳子 v2.3.1</span><a>检查更新</a></div>
|
||
</aside>
|
||
|
||
<!-- 主内容 -->
|
||
<div class="content">
|
||
<div class="page">
|
||
<div class="page-head">
|
||
<div>
|
||
<h2>早上好,张三</h2>
|
||
<p class="sub">2025年12月11日 星期四 · 6 个可用场景 · 昨日自动执行 12 次</p>
|
||
</div>
|
||
<span class="conn-pill"><i></i>服务已连接</span>
|
||
</div>
|
||
|
||
<div class="stats">
|
||
<div class="stat">
|
||
<span class="st-ic sky"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><rect x="14" y="14" width="7" height="7" rx="1.5"/></svg></span>
|
||
<div class="st-meta"><b>6</b><span>可用场景</span></div>
|
||
</div>
|
||
<div class="stat">
|
||
<span class="st-ic sky"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg></span>
|
||
<div class="st-meta"><b>3</b><span>定时任务</span></div>
|
||
</div>
|
||
<div class="stat">
|
||
<span class="st-ic ok"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>
|
||
<div class="st-meta"><b>2<em>/2</em></b><span>平台在线</span></div>
|
||
</div>
|
||
<div class="stat">
|
||
<span class="st-ic ok"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M8.5 12.5l2.5 2.5 4.5-5"/></svg></span>
|
||
<div class="st-meta"><b style="font-size:15px;line-height:1.3">执行成功</b><span>考勤月报 · 14:02</span></div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="sec">
|
||
<div class="sec-head"><h3>常用场景</h3><span class="more">全部场景 →</span></div>
|
||
<div class="scenes">
|
||
<button class="sc">
|
||
<span class="sc-ic c1">考</span>
|
||
<span class="sc-body">
|
||
<b>考勤月报封存检查</b>
|
||
<span class="sc-desc">抓取当月 OA 考勤原始表,校验异常并封存归档</span>
|
||
<span class="sc-meta"><span class="ver">v1.4.0</span>·<span class="plat">OA 已登录</span></span>
|
||
</span>
|
||
<span class="sc-run">执行</span>
|
||
</button>
|
||
<button class="sc">
|
||
<span class="sc-ic c2">假</span>
|
||
<span class="sc-body">
|
||
<b>请假单批量补录</b>
|
||
<span class="sc-desc">按名单批量补录历史请假单并回写审批状态</span>
|
||
<span class="sc-meta"><span class="ver">v0.9.2</span>·<span class="plat off">HR 未登录</span></span>
|
||
</span>
|
||
<span class="sc-run">执行</span>
|
||
</button>
|
||
<button class="sc">
|
||
<span class="sc-ic c3">周</span>
|
||
<span class="sc-body">
|
||
<b>周报数据汇总</b>
|
||
<span class="sc-desc">拉取各部门周报并生成汇总看板快照</span>
|
||
<span class="sc-meta"><span class="ver">v2.1.0</span>·<span class="plat">OA 已登录</span></span>
|
||
</span>
|
||
<span class="sc-run">执行</span>
|
||
</button>
|
||
<button class="sc">
|
||
<span class="sc-ic c4">邮</span>
|
||
<span class="sc-body">
|
||
<b>邮件定时巡检</b>
|
||
<span class="sc-desc">巡检公共邮箱未读工单并推送提醒</span>
|
||
<span class="sc-meta"><span class="ver">v1.0.3</span>·<span class="plat">MAIL 已登录</span></span>
|
||
</span>
|
||
<span class="sc-run">执行</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="sec">
|
||
<div class="sec-head"><h3>最近动态</h3><span class="note">最近 3 次执行</span></div>
|
||
<div class="recent">
|
||
<button class="rec">
|
||
<span class="rec-ic ok">✓</span><span class="rec-name">考勤月报封存检查</span>
|
||
<span class="rec-msg">执行完成 · 生成报表 1 份,2 行异常待复核</span>
|
||
<span class="rec-time">14:02</span>
|
||
</button>
|
||
<button class="rec">
|
||
<span class="rec-ic ok">✓</span><span class="rec-name">周报数据汇总</span>
|
||
<span class="rec-msg">执行完成 · 已同步快照至中心机</span>
|
||
<span class="rec-time">09:31</span>
|
||
</button>
|
||
<button class="rec">
|
||
<span class="rec-ic err">✕</span><span class="rec-name">请假单批量补录</span>
|
||
<span class="rec-msg err">登录态失效:HR 会话已过期,请重新登录平台</span>
|
||
<span class="rec-time">09:12</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 日志抽屉:可折叠,不再常驻占高 -->
|
||
<div class="logdock" id="logdock">
|
||
<div class="logdock-head" onclick="document.getElementById('logdock').classList.toggle('collapsed')">
|
||
<span class="lt">运行日志 <span class="live">● LIVE</span></span>
|
||
<div class="lv-tabs" onclick="event.stopPropagation()">
|
||
<span class="lv-tab on">全部</span><span class="lv-tab">INFO</span><span class="lv-tab">WARN</span><span class="lv-tab">ERROR</span>
|
||
</div>
|
||
<span class="sp"></span>
|
||
<span class="tool">复制</span><span class="tool">清空</span>
|
||
<svg class="chev" viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="m6 14 6-6 6 6"/></svg>
|
||
</div>
|
||
<div class="logdock-body">
|
||
<div class="logline"><span class="t">14:02:01</span><span class="lv i">INFO</span><span class="m">[考勤月报] 启动 Chrome 会话,加载 OA 首页</span></div>
|
||
<div class="logline"><span class="t">14:02:07</span><span class="lv i">INFO</span><span class="m">登录态校验通过(cookie 有效)</span></div>
|
||
<div class="logline"><span class="t">14:02:09</span><span class="lv i">INFO</span><span class="m">进入 考勤月报 → 2025-11,开始抓取表格</span></div>
|
||
<div class="logline"><span class="t">14:02:24</span><span class="lv w">WARN</span><span class="m">抓取到 2 行异常打卡,已标记待人工复核</span></div>
|
||
<div class="logline"><span class="t">14:02:31</span><span class="lv i">INFO</span><span class="m">报表封存完成,已生成 ZIP 并回传中心机</span></div>
|
||
<div class="logline hl"><span class="t">14:02:32</span><span class="lv i">INFO</span><span class="m">===== 执行完成 =====(耗时 31s)</span></div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 状态栏:收纳原 topbar 里的零散芯片 -->
|
||
<div class="statusbar">
|
||
<span class="si"><i class="on"></i>服务已连接</span>
|
||
<span class="si"><i class="on"></i>Chrome 131 已就绪</span>
|
||
<span class="si"><i class="mid"></i>授权剩余 5 天</span>
|
||
<span class="sp"></span>
|
||
<span class="mono">插件同步 2 分钟前</span>
|
||
<span class="mono">127.0.0.1:8765</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- ---------- Tokens 图鉴 ---------- -->
|
||
<div class="tokens">
|
||
<h2>设计 Token 图鉴</h2>
|
||
<div class="tok-grid">
|
||
<div class="tok-card">
|
||
<h4>色彩 · 主色与语义(全部过 AA 对比度)</h4>
|
||
<div class="swatches">
|
||
<div class="sw-row"><span class="sw" style="background:#17608F"></span><span class="sw-name">primary-strong</span><span class="sw-note">按钮底色,白字 5.9:1</span></div>
|
||
<div class="sw-row"><span class="sw" style="background:#1E6FA8"></span><span class="sw-name">primary</span><span class="sw-note">链接 / 激活态 / 图标</span></div>
|
||
<div class="sw-row"><span class="sw" style="background:#E9F2FA"></span><span class="sw-name">primary-tint</span><span class="sw-note">选中底 / 色块容器</span></div>
|
||
<div class="sw-row"><span class="sw" style="background:#1F8A4C"></span><span class="sw-name">ok</span><span class="sw-note">成功 · 白字 4.8:1</span></div>
|
||
<div class="sw-row"><span class="sw" style="background:#D64545"></span><span class="sw-name">err</span><span class="sw-note">错误 · 替代过浅的 #E58B8B</span></div>
|
||
<div class="sw-row"><span class="sw" style="background:#B26B00"></span><span class="sw-name">warn</span><span class="sw-note">警告 · 白字 5.1:1</span></div>
|
||
</div>
|
||
</div>
|
||
<div class="tok-card">
|
||
<h4>字体 · 收敛为 7 档,数字一律等宽</h4>
|
||
<div class="type-row"><span class="type-tag">28 / 700</span><span style="font-size:28px;font-weight:700;letter-spacing:-.02em">28 页面大数字</span></div>
|
||
<div class="type-row"><span class="type-tag">20 / 700</span><span style="font-size:20px;font-weight:700">20 页面标题</span></div>
|
||
<div class="type-row"><span class="type-tag">16 / 600</span><span style="font-size:16px;font-weight:600">16 卡片区块标题</span></div>
|
||
<div class="type-row"><span class="type-tag">14 / 600</span><span style="font-size:14px;font-weight:600">14 列表主文本</span></div>
|
||
<div class="type-row"><span class="type-tag">13 / 400</span><span style="font-size:13px">13 正文基准</span></div>
|
||
<div class="type-row"><span class="type-tag">12 / 400</span><span style="font-size:12px;color:#5A6674">12 辅助说明(下限)</span></div>
|
||
<div class="type-row"><span class="type-tag">mono</span><span style="font-family:var(--mono);font-size:13px">v1.4.0 · 0 8 * * * · 14:02:31</span></div>
|
||
</div>
|
||
<div class="tok-card">
|
||
<h4>结构 · 发丝线优先,阴影只做两层</h4>
|
||
<div class="swatches">
|
||
<div class="sw-row"><span class="sw" style="background:#fff;border:1px solid #E4E9F0"></span><span class="sw-name">surface + hairline</span><span class="sw-note">1px 边线替代大部分投影</span></div>
|
||
<div class="sw-row"><span class="sw" style="background:#F1F4F8;border:1px solid #E4E9F0"></span><span class="sw-name">surface-2</span><span class="sw-note">hover / 次级容器</span></div>
|
||
<div class="sw-row"><span class="sw" style="background:linear-gradient(180deg,#fff,#FBFCFE);box-shadow:0 8px 24px -12px rgba(15,23,42,.14)"></span><span class="sw-name">shadow-md</span><span class="sw-note">仅悬浮卡片与弹层使用</span></div>
|
||
<div class="sw-row"><span class="sw" style="border-radius:12px"></span><span class="sw-name">radius 12 / 8</span><span class="sw-note">卡片 12 · 控件 8(从 16-22 收敛)</span></div>
|
||
</div>
|
||
</div>
|
||
<div class="tok-card">
|
||
<h4>方向对照 · 为什么改</h4>
|
||
<div class="vs">
|
||
<div class="col old">
|
||
<h5>现状 · 奶油治愈风</h5>
|
||
<ul>
|
||
<li>登录页=科技终端,工作台=可爱手账,身份分裂</li>
|
||
<li>主按钮浅蓝底白字 ≈2:1,对比度不达标</li>
|
||
<li>10.5px 小字遍地、字号 17 档碎片化</li>
|
||
<li>窗口卡片套卡片,四层圆角互相打架</li>
|
||
<li>浮动涂鸦 + 面板 hover 上浮,工具感被稀释</li>
|
||
</ul>
|
||
</div>
|
||
<div class="col new">
|
||
<h5>提案 · Soft Precision</h5>
|
||
<ul>
|
||
<li>冷灰画布 + 发丝线,主色压深保品牌色相</li>
|
||
<li>一套 token 管到底,深浅主题同源切换</li>
|
||
<li>自绘标题栏 + 状态栏,像原生桌面应用</li>
|
||
<li>日志改可折叠抽屉,状态芯片收进状态栏</li>
|
||
<li>动效只留 120-180ms 交互反馈,去掉常驻漂浮</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<p class="foot-note">提案稿 · 静态预览(单文件 HTML,数据为虚构示例)· 评审通过后按「token 层 → 布局壳 → 组件」三步落地到 Vue 组件</p>
|
||
</body>
|
||
</html>
|