:root { /* light, fresh palette: mint + sky + orange */ --bg: #f4fbf9; --bg-soft: #f7fbfa; --panel: #ffffff; --panel-2: #f6fbfa; --line: #e2eef0; --line-soft: #edf5f5; --text: #173a43; --muted: #6b8a93; --brand: #34d399; --brand-2: #10b981; --brand-soft: rgba(52, 211, 153, 0.14); --sky: #38bdf8; --sky-2: #0ea5e9; --sky-soft: rgba(56, 189, 248, 0.14); --orange: #fb923c; --orange-2: #f97316; --orange-soft: rgba(251, 146, 60, 0.16); --danger: #ef4444; --danger-soft: rgba(239, 68, 68, 0.1); --warn: #fb923c; --radius: 14px; --radius-sm: 10px; --shadow-sm: 0 1px 2px rgba(23, 58, 67, 0.04), 0 6px 16px rgba(23, 58, 67, 0.05); --shadow: 0 20px 48px rgba(23, 58, 67, 0.14); color-scheme: light; } * { box-sizing: border-box; } html, body, #app { height: 100%; margin: 0; } body { color: var(--text); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; /* soft mint / sky / orange blobs on a near white canvas */ background: radial-gradient(820px 520px at 8% -8%, rgba(52, 211, 153, 0.22), transparent 62%), radial-gradient(760px 520px at 96% 0%, rgba(56, 189, 248, 0.2), transparent 60%), radial-gradient(620px 460px at 78% 100%, rgba(251, 146, 60, 0.12), transparent 62%), var(--bg); background-attachment: fixed; -webkit-font-smoothing: antialiased; } ::selection { background: rgba(52, 211, 153, 0.3); } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #cfe6e4; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-thumb:hover { background: #b4d8d7; background-clip: content-box; border: 3px solid transparent; } ::-webkit-scrollbar-track { background: transparent; } a { color: var(--sky-2); text-decoration: none; } button, input, select, textarea { font: inherit; color: inherit; } /* ---------- layout ---------- */ .app { display: grid; grid-template-columns: 236px 1fr; min-height: 100%; } .sidebar { display: flex; flex-direction: column; gap: 22px; padding: 20px 14px; background: rgba(255, 255, 255, 0.82); border-right: 1px solid var(--line); backdrop-filter: blur(12px); position: sticky; top: 0; height: 100vh; } .brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; } .brand-mark { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--sky) 100%); box-shadow: 0 8px 18px rgba(52, 211, 153, 0.32); } .brand-text b { display: block; letter-spacing: 0.3px; font-size: 15px; } .brand-text span { color: var(--muted); font-size: 11px; } .nav { display: flex; flex-direction: column; gap: 6px; } .nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: none; color: #5b7c85; cursor: pointer; text-align: left; transition: 0.16s ease; } .nav-item svg { width: 17px; height: 17px; flex: none; } .nav-item:hover { color: var(--text); background: #f1f9f8; } .nav-item.active { color: #0f766e; font-weight: 600; background: linear-gradient(90deg, rgba(52, 211, 153, 0.2), rgba(56, 189, 248, 0.12)); border-color: rgba(52, 211, 153, 0.35); box-shadow: inset 3px 0 0 var(--brand); } .sidebar-foot { margin-top: auto; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(56, 189, 248, 0.1)); color: #5b7c85; font-size: 12px; line-height: 1.8; } .main { min-width: 0; display: flex; flex-direction: column; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.72); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); } .topbar h1 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.2px; } .topbar .sub { margin-top: 4px; color: var(--muted); font-size: 12px; } .content { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px 48px; } /* ---------- primitives ---------- */ .card { position: relative; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-sm); } .card h2, .card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 650; } .card .hint { margin: 0 0 14px; color: var(--muted); font-size: 12px; } .grid { display: grid; gap: 16px; } .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (max-width: 1100px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-2 { grid-template-columns: 1fr; } } @media (max-width: 720px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr; } } .stat { display: flex; flex-direction: column; gap: 8px; overflow: hidden; } /* colorful top edge keeps the dashboard lively without heavy chrome */ .grid.cols-4 > .stat:nth-child(1)::before, .grid.cols-4 > .stat:nth-child(2)::before, .grid.cols-4 > .stat:nth-child(3)::before, .grid.cols-4 > .stat:nth-child(4)::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; } .grid.cols-4 > .stat:nth-child(1)::before { background: linear-gradient(90deg, var(--brand), var(--brand-2)); } .grid.cols-4 > .stat:nth-child(2)::before { background: linear-gradient(90deg, var(--sky), var(--sky-2)); } .grid.cols-4 > .stat:nth-child(3)::before { background: linear-gradient(90deg, var(--orange), var(--orange-2)); } .grid.cols-4 > .stat:nth-child(4)::before { background: linear-gradient(90deg, #a78bfa, #8b5cf6); } /* Six-up dashboard: CPU / memory / disk first, then site counters. */ .grid.cols-3 > .stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); } .grid.cols-3 > .stat:nth-child(2)::before { background: linear-gradient(90deg, var(--sky), var(--sky-2)); } .grid.cols-3 > .stat:nth-child(3)::before { background: linear-gradient(90deg, var(--orange), var(--orange-2)); } .grid.cols-3 > .stat:nth-child(4)::before { background: linear-gradient(90deg, #a78bfa, #8b5cf6); } .grid.cols-3 > .stat:nth-child(5)::before { background: linear-gradient(90deg, #f9a8d4, #ec4899); } .grid.cols-3 > .stat:nth-child(6)::before { background: linear-gradient(90deg, #94a3b8, #64748b); } .stat .label { color: var(--muted); font-size: 12px; } .stat .value { font-size: 27px; font-weight: 700; letter-spacing: -0.6px; color: #10333c; } .stat .meta { color: var(--muted); font-size: 12px; } .bar { height: 8px; border-radius: 999px; background: #eef6f6; overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--sky)); transition: width 0.4s ease; } .bar.warn > i { background: linear-gradient(90deg, #fbbf24, var(--orange-2)); } .bar.danger > i { background: linear-gradient(90deg, #f87171, var(--danger)); } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; white-space: nowrap; transition: 0.16s ease; box-shadow: 0 1px 2px rgba(23, 58, 67, 0.04); } .btn:hover:not(:disabled) { border-color: #c9e5e2; color: #0f766e; background: #f4fbf9; transform: translateY(-1px); } .btn:disabled { opacity: 0.55; cursor: not-allowed; } .btn-primary { border-color: transparent; color: #fff; font-weight: 600; background: linear-gradient(135deg, var(--brand), var(--sky-2)); box-shadow: 0 8px 18px rgba(56, 189, 248, 0.28); } .btn-primary:hover:not(:disabled) { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--sky-2)); box-shadow: 0 10px 22px rgba(52, 211, 153, 0.34); } .btn-ghost { background: rgba(255, 255, 255, 0.7); } .btn-danger { border-color: rgba(239, 68, 68, 0.28); background: #fff5f5; color: #dc2626; } .btn-danger:hover:not(:disabled) { border-color: rgba(239, 68, 68, 0.45); background: #feecec; color: #b91c1c; } .btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; } .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .spacer { flex: 1; } label.field { display: flex; flex-direction: column; gap: 6px; color: #5b7c85; font-size: 12px; } .input, .select, .textarea { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fbfefd; color: var(--text); outline: none; transition: 0.15s ease; } .input::placeholder, .textarea::placeholder { color: #a9c1c6; } .input:focus, .select:focus, .textarea:focus { background: #fff; border-color: rgba(52, 211, 153, 0.7); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14); } .textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; line-height: 1.6; } .check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; cursor: pointer; user-select: none; } .check input { width: 15px; height: 15px; accent-color: var(--brand-2); } .table { width: 100%; border-collapse: collapse; font-size: 13px; } .table th { padding: 10px 12px; text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; background: #f7fcfb; border-bottom: 1px solid var(--line); white-space: nowrap; } .table th:first-child { border-top-left-radius: 10px; } .table th:last-child { border-top-right-radius: 10px; } .table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; } .table tbody tr { transition: background 0.14s ease; } .table tbody tr:hover { background: #f7fcfb; } .table tr:last-child td { border-bottom: none; } .badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(56, 189, 248, 0.28); background: var(--sky-soft); color: #0284c7; font-size: 11.5px; line-height: 1.4; } .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.75; } .badge.ok { border-color: rgba(16, 185, 129, 0.3); background: var(--brand-soft); color: #047857; } .badge.off { border-color: #e2eef0; background: #f4f8f8; color: #7b98a1; } .badge.err { border-color: rgba(239, 68, 68, 0.3); background: var(--danger-soft); color: #dc2626; } .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; } .muted { color: var(--muted); } .empty { padding: 36px 16px; border-radius: var(--radius); border: 1px dashed #cfe3e4; background: #fbfefd; color: var(--muted); text-align: center; } /* ---------- modal ---------- */ .overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(23, 58, 67, 0.32); backdrop-filter: blur(5px); animation: fade-in 0.16s ease; } .modal { width: min(720px, 100%); max-height: 88vh; overflow: auto; padding: 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.8); background: #fff; box-shadow: var(--shadow); animation: pop-in 0.18s ease; } .modal.wide { width: min(980px, 100%); } .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .modal-head h3 { margin: 0; font-size: 16px; } .modal-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; } .icon-btn { padding: 4px 8px; border: none; border-radius: 8px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; } .icon-btn:hover { color: var(--text); background: #f1f9f8; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form-grid .full { grid-column: 1 / -1; } @media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } } /* ---------- tabs ---------- */ .tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; } .tab { padding: 10px 14px; border: none; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; transition: 0.15s ease; } .tab:hover { color: var(--sky-2); } .tab.active { color: #0f766e; font-weight: 600; border-bottom-color: var(--brand); } .log { height: 420px; overflow: auto; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f7fcfb; color: #2c5058; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-all; } .kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; } /* ---------- login ---------- */ .login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(520px 380px at 12% 18%, rgba(52, 211, 153, 0.35), transparent 60%), radial-gradient(560px 420px at 88% 10%, rgba(56, 189, 248, 0.32), transparent 62%), radial-gradient(480px 360px at 72% 92%, rgba(251, 146, 60, 0.25), transparent 62%), #f4fbf9; } .login-card { width: min(400px, 100%); padding: 32px 28px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.92); box-shadow: 0 24px 60px rgba(23, 58, 67, 0.14), 0 2px 6px rgba(23, 58, 67, 0.04); backdrop-filter: blur(10px); } .login-card .brand { margin-bottom: 22px; } .login-card h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.3px; } .login-card .hint { margin: 0 0 22px; color: var(--muted); font-size: 12.5px; } .login-card form { display: flex; flex-direction: column; gap: 14px; } .login-card .btn-primary { width: 100%; padding: 11px 16px; font-size: 14px; } /* 登录方式切换:账号密码 / 扫码 */ .login-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: #eef6f5; } .login-tab { flex: 1; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-family: inherit; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; } .login-tab:hover:not(.active) { color: #173a43; } .login-tab.active { background: #fff; color: #173a43; font-weight: 600; box-shadow: 0 1px 3px rgba(23, 58, 67, 0.08); } .qr-stage { position: relative; display: grid; place-items: center; padding: 6px; margin-bottom: 8px; } .qr-placeholder { width: 196px; height: 196px; display: grid; place-items: center; border-radius: 14px; border: 1px dashed #cfe3e6; } .qr-veil { position: absolute; inset: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-radius: 14px; background: rgba(244, 251, 249, 0.93); backdrop-filter: blur(2px); } .qr-veil .btn { width: auto; padding: 7px 16px; font-size: 12.5px; } .qr-veil-text { color: #173a43; font-size: 12.5px; font-weight: 600; } .qr-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 12px; min-height: 18px; } .qr-state { color: var(--muted); font-size: 12px; } .qr-state.active { color: #047857; font-weight: 600; } .qr-timer { font-size: 12px; color: #173a43; } .login-card .qr-help { margin: 14px 0 12px; line-height: 1.6; } .qr-switch { width: 100%; } .alert { padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(239, 68, 68, 0.25); background: #fff5f5; color: #dc2626; font-size: 12.5px; } .alert.ok { border-color: rgba(16, 185, 129, 0.28); background: #f0fdf7; color: #047857; } .alert.danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; } .reboot-btn { color: #b91c1c; } .reboot-btn:hover { background: #fef2f2; border-color: #fecaca; } .reboot-btn svg { width: 14px; height: 14px; } .update-btn { border-color: rgba(16, 185, 129, 0.35); background: #f0fdf7; color: #047857; font-weight: 600; } .update-btn:hover:not(:disabled) { border-color: rgba(16, 185, 129, 0.6); background: #ecfdf5; color: #047857; } .update-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); } /* ---------- toast ---------- */ .toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; } .toast { min-width: 240px; max-width: 420px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--sky); background: #fff; box-shadow: 0 14px 30px rgba(23, 58, 67, 0.12); font-size: 13px; animation: slide-in 0.18s ease; } .toast.error { border-left-color: var(--danger); color: #b91c1c; } .toast.ok { border-left-color: var(--brand-2); color: #047857; } @keyframes slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } /* ---------- misc ---------- */ .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(23, 58, 67, 0.15); border-top-color: var(--brand-2); border-radius: 50%; animation: spin 0.7s linear infinite; } .btn-primary .spin { border-color: rgba(255, 255, 255, 0.4); border-top-color: #fff; } @keyframes spin { to { transform: rotate(360deg); } } .code { max-height: 460px; overflow: auto; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #f7fcfb; color: #2c5058; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; white-space: pre; } .file-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .file-list button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; cursor: pointer; transition: 0.15s ease; } .file-list button:hover { color: var(--sky-2); border-color: rgba(56, 189, 248, 0.4); } .file-list button.active { color: #0f766e; border-color: rgba(52, 211, 153, 0.45); background: var(--brand-soft); } /* ---------- shared form / table helpers ---------- */ .alert.warn { border-color: rgba(245, 158, 11, 0.35); background: #fffbeb; color: #b45309; } .toast.warn { border-left-color: #f59e0b; color: #b45309; } .input-group { display: flex; gap: 8px; align-items: stretch; } .input-group .input, .input-group .select { flex: 1; min-width: 0; } .input-group .btn { flex: none; } .tip { color: var(--muted); font-size: 12px; line-height: 1.5; } .tiny { font-size: 11.5px; } .table-wrap { width: 100%; overflow-x: auto; } .ops { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .hint code, p.hint code { padding: 1px 5px; border-radius: 5px; background: #f1f9f8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; } .empty p { margin: 0 0 10px; } .empty .btn { margin-top: 2px; } label.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334e55; } label.check input[type='checkbox'] { width: 16px; height: 16px; accent-color: #10b981; } @media (max-width: 720px) { .topbar .sub { display: none; } .content { padding-bottom: 32px; } .toasts { left: 12px; right: 12px; bottom: 12px; } .toast { max-width: none; } }