Files
HyperNode-AI/web/styles.css
T
2026-10-10 22:20:45 +08:00

360 lines
8.0 KiB
CSS

:root {
--bg: #08090d;
--ink: #f4efe6;
--muted: #a3988a;
--gold: #e0c07a;
--gold-deep: #a88345;
--line: rgba(224, 192, 122, 0.18);
--panel: rgba(16, 18, 24, 0.82);
--panel-solid: #12141b;
--online: #8ed0b5;
--offline: #d08a78;
--danger: #e09888;
--shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
--serif: "Fraunces", "Palatino Linotype", Palatino, serif;
--sans: "Manrope", "Segoe UI", sans-serif;
--mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
color: var(--ink);
font-family: var(--sans);
background:
radial-gradient(980px 520px at 0% -10%, rgba(224, 192, 122, 0.16), transparent 58%),
radial-gradient(760px 480px at 100% 0%, rgba(126, 164, 196, 0.12), transparent 52%),
var(--bg);
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
background-image:
linear-gradient(rgba(244, 239, 230, 0.035) 1px, transparent 1px),
linear-gradient(90deg, rgba(244, 239, 230, 0.035) 1px, transparent 1px);
background-size: 84px 84px;
mask-image: radial-gradient(circle at 20% 10%, #000 0%, transparent 72%);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
.shell {
min-height: 100%;
display: grid;
grid-template-columns: 248px 1fr;
}
.rail {
position: sticky;
top: 0;
height: 100vh;
padding: 28px 20px;
display: flex;
flex-direction: column;
border-right: 1px solid var(--line);
background: rgba(8, 9, 13, 0.72);
backdrop-filter: blur(16px);
}
.brand {
display: flex;
gap: 12px;
align-items: center;
color: inherit;
text-decoration: none;
}
.mark {
width: 44px;
height: 44px;
display: grid;
place-items: center;
color: var(--gold);
border: 1px solid var(--line);
border-radius: 14px;
background: linear-gradient(180deg, rgba(224, 192, 122, 0.16), transparent);
}
.brand strong {
display: block;
font-family: var(--serif);
font-size: 22px;
font-weight: 560;
letter-spacing: -0.03em;
}
.brand em {
display: block;
margin-top: 2px;
color: var(--muted);
font-style: normal;
font-size: 11px;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.nav {
display: grid;
gap: 6px;
margin-top: 36px;
}
.nav button {
text-align: left;
border: 0;
background: transparent;
color: var(--muted);
border-radius: 12px;
padding: 12px 14px;
letter-spacing: 0.04em;
}
.nav button.active,
.nav button:hover {
color: var(--ink);
background: rgba(224, 192, 122, 0.08);
}
.nav button.active { box-shadow: inset 2px 0 0 var(--gold); }
.rail-foot {
margin-top: auto;
display: flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 13px;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--muted);
}
.dot.on {
background: var(--online);
box-shadow: 0 0 0 4px rgba(142, 208, 181, 0.15);
}
.stage { min-width: 0; padding: 32px 40px 56px; }
.top {
display: flex;
justify-content: space-between;
gap: 24px;
align-items: flex-end;
margin-bottom: 28px;
}
.eyebrow {
color: var(--gold);
font-size: 12px;
letter-spacing: 0.22em;
text-transform: uppercase;
}
h1 {
margin-top: 6px;
font-family: var(--serif);
font-size: 48px;
font-weight: 560;
letter-spacing: -0.04em;
}
.top-meta { display: flex; align-items: center; gap: 16px; }
.clock {
text-align: right;
}
.clock span {
display: block;
color: var(--muted);
font-size: 11px;
letter-spacing: 0.14em;
}
.clock strong {
font-family: var(--mono);
font-size: 20px;
font-weight: 500;
}
.ghost, .gold, .texty {
border-radius: 999px;
border: 1px solid var(--line);
background: transparent;
padding: 10px 16px;
}
.ghost:hover, .texty:hover { border-color: var(--gold); }
.gold {
border-color: transparent;
background: linear-gradient(180deg, #f0d7a2, #c4964e);
color: #24180b;
font-weight: 700;
}
.gold:hover { filter: brightness(1.05); }
.texty { padding: 6px 10px; color: var(--gold); }
.metrics {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
.metric, .panel, .table-wrap, .drawer {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 22px;
box-shadow: var(--shadow);
}
.metric { padding: 22px 22px 18px; }
.metric span {
color: var(--muted);
font-size: 12px;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.metric strong {
display: block;
margin-top: 14px;
font-family: var(--serif);
font-size: 40px;
font-weight: 560;
letter-spacing: -0.04em;
font-variant-numeric: tabular-nums;
}
.metric em {
display: block;
margin-top: 8px;
color: var(--muted);
font-style: normal;
font-size: 13px;
}
.layout, .forms {
display: grid;
gap: 16px;
margin-top: 16px;
align-items: start;
}
.layout { grid-template-columns: 1.4fr 0.8fr; }
.forms { grid-template-columns: 1fr 1fr; }
.panel { padding: 22px; }
.panel h2 {
font-family: var(--serif);
font-size: 28px;
font-weight: 560;
letter-spacing: -0.03em;
}
.sub {
margin: 6px 0 18px;
color: var(--muted);
font-size: 14px;
}
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select {
width: 100%;
border: 1px solid var(--line);
background: rgba(8, 9, 13, 0.55);
border-radius: 12px;
padding: 12px 14px;
outline: none;
}
input:focus, select:focus { border-color: var(--gold); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(224, 192, 122, 0.08); font-size: 14px; }
th {
color: var(--muted);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
}
td input { width: 148px; padding: 8px 10px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: rgba(224, 192, 122, 0.04); }
.mono { font-family: var(--mono); font-size: 13px; }
.pill {
display: inline-flex;
align-items: center;
gap: 6px;
border-radius: 999px;
padding: 4px 10px;
border: 1px solid var(--line);
font-size: 12px;
}
.pill i {
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
}
.pill.online { color: var(--online); }
.pill.offline, .pill.rejected, .pill.failed { color: var(--offline); }
.pill.pending { color: var(--gold); }
.pill.completed, .pill.settled { color: var(--online); }
.empty {
padding: 48px 20px;
text-align: center;
color: var(--muted);
}
.toolbar {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: end;
margin-bottom: 16px;
}
.toolbar .grow { min-width: 240px; flex: 1; }
.mask {
position: fixed;
inset: 0;
background: rgba(5, 6, 8, 0.62);
display: grid;
justify-items: end;
z-index: 5;
}
.drawer {
width: min(460px, 100%);
height: 100%;
border-radius: 0;
border-right: 0;
padding: 28px;
overflow: auto;
background: #101218;
}
.drawer header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; margin: 22px 0; font-size: 14px; }
.kv span { color: var(--muted); }
.toast {
position: fixed;
left: 50%;
bottom: 24px;
transform: translateX(-50%) translateY(12px);
opacity: 0;
pointer-events: none;
background: #1b1e27;
border: 1px solid var(--line);
color: var(--ink);
padding: 12px 16px;
border-radius: 999px;
transition: 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 1100px) {
.metrics, .forms { grid-template-columns: 1fr 1fr; }
.layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
.shell { grid-template-columns: 1fr; }
.rail {
position: relative;
height: auto;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.nav { grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.rail-foot { display: none; }
.stage { padding: 22px 16px 40px; }
h1 { font-size: 36px; }
.metrics, .layout, .forms { grid-template-columns: 1fr; }
.top { align-items: start; }
}