jim800121chen c54f16fca0 Initial commit: visionA monorepo with local-tool subproject
local-tool/: visionA-local desktop app
- M1: Wails shell + Go server + Next.js UI + Mock mode (macOS dmg ready)
- M2: i18n (zh-TW/en) + Settings 4-tab refactor
- M3: Embedded Python 3.12 runtime (python-build-standalone) + KneronPLUS wheels
- M4: Windows Inno Setup script (build on Windows runner)
- M5: Linux AppImage script + udev rule (build on Linux runner)
- M6: ffmpeg (GPL, pending legal review) + yt-dlp bundled
- Lifecycle: watchServer health check, fatal native dialog,
            Wails IPC raise endpoint, stale process cleanup

.autoflow/: full PRD / Design Spec / Architecture / Testing docs
            (4 rounds tri-party discussion + cross review)
.github/workflows/: macOS / Windows / Linux build CI

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:10:38 +08:00

509 lines
12 KiB
CSS

/* Edge AI Platform Installer — Modernized v0.2 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--primary: #6366f1;
--primary-hover: #4f46e5;
--primary-light: #e0e7ff;
--bg: #fafbff;
--surface: #ffffff;
--border: #e2e8f0;
--text: #1e293b;
--text-secondary: #64748b;
--success: #10b981;
--warning: #f59e0b;
--error: #ef4444;
--danger: #dc2626;
--danger-hover: #b91c1c;
--radius: 10px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
background: var(--bg);
color: var(--text);
height: 100vh;
overflow: hidden;
user-select: none;
-webkit-user-select: none;
}
#app {
display: flex;
flex-direction: column;
height: 100vh;
}
/* ── Header ─────────────────────────── */
#wizard-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 24px;
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
color: white;
--wails-draggable: drag;
gap: 16px;
}
.header-left { display: flex; flex-direction: column; gap: 2px; min-width: 140px; }
.logo-text { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.version-text { font-size: 10px; opacity: 0.5; }
.header-center { flex: 1; display: flex; justify-content: center; }
.header-right { min-width: 100px; display: flex; justify-content: flex-end; }
.step-indicators { display: flex; align-items: center; gap: 4px; }
.step-dot {
width: 28px; height: 28px;
border-radius: 50%;
border: 2px solid rgba(255,255,255,0.25);
display: flex; align-items: center; justify-content: center;
font-size: 11px; font-weight: 700;
color: rgba(255,255,255,0.35);
transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-dot.active {
border-color: var(--primary);
background: var(--primary);
color: white;
box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
transform: scale(1.1);
}
.step-dot.completed {
border-color: var(--success);
background: var(--success);
color: white;
}
.step-line {
width: 14px; height: 2px;
background: rgba(255,255,255,0.15);
border-radius: 1px;
transition: background 0.3s;
}
/* ── Language Switcher ─────────────── */
.lang-switch {
display: flex;
align-items: center;
gap: 6px;
--wails-draggable: no-drag;
}
.lang-sep {
color: rgba(255,255,255,0.3);
font-size: 12px;
}
.lang-btn {
background: transparent;
border: 1px solid rgba(255,255,255,0.25);
color: rgba(255,255,255,0.6);
padding: 3px 10px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.lang-btn:hover {
border-color: rgba(255,255,255,0.5);
color: rgba(255,255,255,0.9);
}
.lang-btn.active {
background: rgba(255,255,255,0.15);
border-color: rgba(255,255,255,0.4);
color: white;
}
/* ── Main Content ───────────────────── */
main {
flex: 1;
position: relative;
overflow: hidden;
}
.step {
position: absolute;
inset: 0;
padding: 32px 36px;
display: none;
flex-direction: column;
overflow-y: auto;
opacity: 0;
transform: translateX(20px);
transition: opacity 0.35s ease, transform 0.35s ease;
}
.step.active {
display: flex;
opacity: 1;
transform: translateX(0);
}
h1 {
font-size: 22px;
font-weight: 700;
margin-bottom: 6px;
color: var(--text);
}
.subtitle {
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 24px;
line-height: 1.6;
}
/* ── Info Card ──────────────────────── */
.info-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px 18px;
margin-bottom: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.info-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 7px 0;
}
.info-row + .info-row { border-top: 1px solid var(--border); }
.info-label { font-size: 13px; color: var(--text-secondary); }
.info-value { font-size: 13px; font-weight: 500; }
.status-ok { color: var(--success); }
.status-installed { color: var(--success); }
.status-warn { color: var(--warning); }
.status-err { color: var(--error); }
.status-skipped { color: var(--text-secondary); }
/* ── Warning Card ───────────────────── */
.warning-card {
background: #fef3c7;
border: 1px solid #f59e0b;
border-radius: var(--radius);
padding: 14px 18px;
margin-bottom: 20px;
font-size: 13px;
}
.warning-card p { margin: 6px 0; color: #92400e; }
.existing-path { font-family: "SF Mono", Menlo, monospace; font-size: 12px; }
/* ── Buttons ────────────────────────── */
.actions {
margin-top: auto;
padding-top: 20px;
display: flex;
justify-content: flex-end;
gap: 10px;
}
.btn {
padding: 9px 22px;
border: none;
border-radius: var(--radius);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
outline: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
background: var(--primary);
color: white;
box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover:not(:disabled) {
background: var(--primary-hover);
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
transform: translateY(-1px);
}
.btn-secondary {
background: var(--border);
color: var(--text);
}
.btn-secondary:hover:not(:disabled) { background: #cbd5e1; }
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
background: var(--surface);
color: var(--text);
border-color: #cbd5e1;
}
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: var(--danger-hover); }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover:not(:disabled) { background: #d97706; }
/* ── Form Groups ───────────────────── */
.form-group {
margin-bottom: 18px;
}
.field-label {
display: block;
font-size: 13px;
font-weight: 600;
color: var(--text);
margin-bottom: 6px;
}
.field-hint {
font-size: 12px;
color: var(--text-secondary);
margin-top: 4px;
line-height: 1.5;
font-style: italic;
}
/* ── Path Input ─────────────────────── */
.path-input-group {
display: flex;
gap: 8px;
margin-bottom: 8px;
}
.input-field {
flex: 1;
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 13px;
background: var(--surface);
color: var(--text);
transition: border-color 0.2s, box-shadow 0.2s;
outline: none;
}
.input-field:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.input-field::placeholder {
color: #94a3b8;
}
.status-text {
font-size: 12px;
color: var(--text-secondary);
margin-bottom: 12px;
min-height: 18px;
}
.status-text.error { color: var(--error); }
/* ── Component List ─────────────────── */
.component-list {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 20px;
}
.component-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px 14px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
transition: border-color 0.2s, box-shadow 0.2s;
}
.component-item:hover {
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}
.component-item.required { opacity: 0.85; }
.component-check {
display: flex;
align-items: center;
padding-top: 1px;
}
.component-check input[type="checkbox"] { margin: 0; }
.component-info { display: flex; flex-direction: column; gap: 3px; }
.component-name { font-size: 13px; font-weight: 600; }
.component-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
/* ── Progress ───────────────────────── */
.progress-container {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 10px;
}
.progress-bar {
flex: 1;
height: 10px;
background: var(--border);
border-radius: 5px;
overflow: hidden;
position: relative;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary), #818cf8, var(--primary));
background-size: 200% 100%;
border-radius: 5px;
transition: width 0.4s ease;
animation: progress-pulse 2s ease-in-out infinite;
}
@keyframes progress-pulse {
0%, 100% { background-position: 0% 0%; }
50% { background-position: 100% 0%; }
}
.progress-percent {
font-size: 14px;
font-weight: 700;
color: var(--primary);
min-width: 40px;
text-align: right;
}
.progress-message {
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 14px;
}
.log-area {
flex: 1;
min-height: 120px;
max-height: 220px;
background: #0f172a;
color: #94a3b8;
border-radius: var(--radius);
padding: 12px 14px;
font-family: "SF Mono", "Menlo", "Cascadia Code", monospace;
font-size: 11px;
line-height: 1.7;
overflow-y: auto;
box-shadow: inset 0 1px 4px rgba(0,0,0,0.2);
}
.log-area .log-line { color: #94a3b8; }
.log-area .log-error { color: var(--error); }
.log-area .log-success { color: var(--success); }
/* ── Hardware List ──────────────────── */
.hardware-list { margin-bottom: 20px; }
.device-card {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 18px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
transition: border-color 0.2s;
}
.device-card:hover { border-color: var(--primary); }
.device-card .device-icon {
width: 40px; height: 40px;
background: var(--primary-light);
border-radius: 10px;
display: flex; align-items: center; justify-content: center;
font-size: 18px;
color: var(--primary);
}
.device-card .device-info { display: flex; flex-direction: column; gap: 3px; }
.device-card .device-name { font-size: 14px; font-weight: 600; }
.device-card .device-detail { font-size: 11px; color: var(--text-secondary); }
.device-scanning {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 32px;
color: var(--text-secondary);
font-size: 13px;
}
.spinner {
width: 28px; height: 28px;
border: 3px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.no-devices {
text-align: center;
padding: 28px;
color: var(--text-secondary);
font-size: 13px;
}
/* ── Complete Icon ──────────────────── */
.complete-icon {
text-align: center;
margin-bottom: 12px;
color: var(--success);
animation: checkmark-pop 0.5s ease;
}
@keyframes checkmark-pop {
0% { transform: scale(0.5); opacity: 0; }
60% { transform: scale(1.1); }
100% { transform: scale(1); opacity: 1; }
}
/* ── Summary List ──────────────────── */
.summary-list {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px 18px;
margin-bottom: 20px;
}
/* ── Scrollbar ──────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
/* ── Step transition for newly shown steps ── */
@keyframes step-enter {
from {
opacity: 0;
transform: translateX(24px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.step.active {
animation: step-enter 0.35s ease forwards;
}