:root { --bg: #16181d; --bg2: #1c1f26; --bg3: #23272f; --line: #2e333d; --fg: #e6e8ec; --dim: #8b93a3; --accent: #4a9eff; --green: #3fb950; --amber: #d29922; --red: #f85149; --radius: 8px; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 13px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; } .app { display: flex; flex-direction: column; height: 100%; } /* ---------- 顶栏 ---------- */ .bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: linear-gradient(180deg, var(--bg2), var(--bg)); border-bottom: 1px solid var(--line); -webkit-app-region: drag; } .bar .actions { -webkit-app-region: no-drag; display: flex; gap: 8px; } .brand { display: flex; align-items: center; gap: 10px; } .logo { font-size: 22px; } .bar h1 { margin: 0; font-size: 14px; font-weight: 600; } .sub { margin: 0; font-size: 11px; color: var(--dim); } /* ---------- 按钮 ---------- */ .btn { background: var(--bg3); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 13px; font-size: 12px; cursor: pointer; transition: background .12s, border-color .12s; } .btn:hover:not(:disabled) { background: #2c313a; border-color: #3d4450; } .btn:active:not(:disabled) { transform: translateY(1px); } .btn:disabled { opacity: .4; cursor: default; } .btn.primary { background: var(--accent); border-color: var(--accent); color: #04121f; font-weight: 600; } .btn.primary:hover:not(:disabled) { background: #62acff; } .btn.danger { color: var(--red); } .btn.icon { padding: 6px 9px; } .mini { background: none; border: 1px solid var(--line); color: var(--dim); border-radius: 5px; padding: 2px 8px; font-size: 11px; cursor: pointer; } .mini:hover { color: var(--fg); } /* ---------- 统计条 ---------- */ .stats { display: flex; align-items: center; gap: 18px; padding: 9px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); font-size: 11px; } .stat { display: flex; align-items: baseline; gap: 5px; color: var(--dim); } .stat b { font-size: 14px; color: var(--fg); font-variant-numeric: tabular-nums; } .stat.queued b { color: var(--dim); } .stat.running b { color: var(--accent); } .stat.done b { color: var(--green); } .stat.failed b { color: var(--red); } .progress-wrap { display: flex; align-items: center; gap: 10px; margin-left: auto; } .pbar { width: 200px; height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; } .pbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; } /* ---------- 任务表 ---------- */ .main { flex: 1; overflow: auto; position: relative; } .tasks { width: 100%; border-collapse: collapse; } .tasks thead th { position: sticky; top: 0; z-index: 2; background: var(--bg2); text-align: left; font-weight: 500; color: var(--dim); font-size: 11px; padding: 8px 10px; border-bottom: 1px solid var(--line); } .tasks td { padding: 8px 10px; border-bottom: 1px solid #21252c; vertical-align: middle; } .tasks tr:hover td { background: #1b1e25; } .c-sel { width: 30px; } .c-gid { width: 80px; font-variant-numeric: tabular-nums; color: var(--dim); } .c-prog { width: 190px; } .c-stat { width: 80px; } .c-act { width: 110px; text-align: right; white-space: nowrap; } .title-cell { display: flex; flex-direction: column; gap: 2px; } .title-cell .t { font-size: 12px; } .title-cell .e { font-size: 10.5px; color: var(--red); } .rowprog { display: flex; align-items: center; gap: 8px; } .rowprog .rb { flex: 1; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; } .rowprog .rb i { display: block; height: 100%; background: var(--accent); } .rowprog .rn { font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; min-width: 62px; text-align: right; } .badge { display: inline-block; padding: 2px 7px; border-radius: 20px; font-size: 10.5px; } .b-queued { background: #2a2f38; color: var(--dim); } .b-running { background: rgba(74,158,255,.15); color: var(--accent); } .b-done { background: rgba(63,185,80,.15); color: var(--green); } .b-failed { background: rgba(248,81,73,.15); color: var(--red); } .b-partial { background: rgba(210,153,34,.15); color: var(--amber); } .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; } .empty[hidden] { display: none; } .empty-inner { text-align: center; color: var(--dim); } .empty .big { font-size: 15px; color: var(--fg); margin: 0 0 6px; } .empty code, .hint code { background: var(--bg3); padding: 1px 5px; border-radius: 4px; font-size: 11px; } .dim { font-size: 11px; opacity: .7; } /* ---------- 日志 ---------- */ .logpane { border-top: 1px solid var(--line); background: var(--bg2); flex-shrink: 0; } .log-head { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 11px; color: var(--dim); cursor: pointer; } .log-head .spacer { flex: 1; } .log-count { font-variant-numeric: tabular-nums; } .log-body { height: 0; overflow-y: auto; padding: 0 14px; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; transition: height .18s ease; } .logpane.open .log-body { height: 168px; padding: 4px 14px 10px; } .logpane.open .caret { transform: rotate(90deg); } .log-line { white-space: pre-wrap; word-break: break-all; } .log-line .t { color: #555d6b; margin-right: 7px; } .log-line.info { color: var(--dim); } .log-line.warn { color: var(--amber); } .log-line.error { color: var(--red); } .log-line.ok { color: var(--green); } /* ---------- 弹窗 ---------- */ .modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); } .modal[hidden] { display: none; } .sheet { width: 540px; max-width: 92vw; max-height: 86vh; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); } .sheet.narrow { width: 400px; } .sheet h2 { margin: 0 0 4px; font-size: 15px; } .hint { margin: 0 0 12px; font-size: 11px; color: var(--dim); } #cf-body { font-size: 12px; color: var(--fg); line-height: 1.65; } .btn.danger:disabled { opacity: .35; } .sheet textarea { width: 100%; height: 190px; resize: vertical; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; font: 12px/1.6 ui-monospace, Menlo, monospace; } .sheet textarea:focus, .sheet input:focus, .sheet select:focus { outline: none; border-color: var(--accent); } .row { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .sheet-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 16px; } .sheet-foot .msg { flex: 1; font-size: 11px; color: var(--amber); } .field { display: block; margin-bottom: 16px; } .field > span { display: block; margin-bottom: 6px; font-size: 12px; } .field small { display: block; margin-top: 5px; font-size: 10.5px; color: var(--dim); line-height: 1.5; } .field input[type=text], .field select { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; font-size: 12px; } .field input[type=range] { width: 100%; accent-color: var(--accent); } .field .row input[type=text] { flex: 1; } .presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .presets button { background: var(--bg); color: var(--dim); border: 1px solid var(--line); border-radius: 20px; padding: 3px 11px; font-size: 11px; cursor: pointer; font-family: ui-monospace, Menlo, monospace; } .presets button:hover { color: var(--fg); border-color: var(--accent); } .presets button.on { color: var(--accent); border-color: var(--accent); } #dir-preview { font-family: ui-monospace, Menlo, monospace; color: var(--green) !important; word-break: break-all; } code { background: var(--bg3); padding: 1px 5px; border-radius: 4px; font-size: 10.5px; }