Files
Renderive/webapp/styles.css
T
2026-08-10 21:05:36 +08:00

246 lines
14 KiB
CSS

:root {
color-scheme: dark;
--bg: #02050c;
--panel: #07101d;
--panel-soft: #0a1524;
--line: rgba(128, 157, 196, 0.15);
--line-strong: rgba(128, 157, 196, 0.28);
--text: #e9f1fb;
--muted: #7890ad;
--faint: #4e627d;
--cyan: #38bdf8;
--green: #39e0b1;
--yellow: #f4cf58;
--danger: #fb7185;
--radius: 15px;
font-family: Inter, "Segoe UI", "Microsoft YaHei UI", sans-serif;
}
* { box-sizing: border-box; }
html, body {
width: 100%;
min-width: 320px;
min-height: 100%;
margin: 0;
background: var(--bg);
color: var(--text);
}
body {
overflow: hidden;
background:
radial-gradient(circle at 72% 15%, rgba(21, 97, 130, 0.14), transparent 32%),
radial-gradient(circle at 15% 80%, rgba(24, 119, 94, 0.09), transparent 28%),
#02050c;
}
button, input { font: inherit; }
button { color: inherit; }
.app-shell {
display: grid;
grid-template-rows: 74px minmax(0, 1fr);
width: 100vw;
height: 100vh;
min-height: 620px;
}
.topbar {
display: grid;
grid-template-columns: minmax(240px, 1fr) auto minmax(280px, 1fr);
align-items: center;
gap: 26px;
padding: 0 24px;
border-bottom: 1px solid var(--line);
background: rgba(3, 8, 16, 0.92);
box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
backdrop-filter: blur(18px);
z-index: 5;
}
.brand-block, .connection-summary, .transport-strip,
.frequency-stepper, .section-heading, .receiver-header,
.receiver-footer, .switch-row { display: flex; align-items: center; }
.brand-block { gap: 13px; }
.brand-mark {
display: flex;
align-items: flex-end;
gap: 3px;
width: 34px;
height: 34px;
padding: 7px;
border: 1px solid rgba(56, 189, 248, 0.35);
border-radius: 9px;
background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(57, 224, 177, 0.04));
box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.06);
}
.brand-mark span { width: 4px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 8px rgba(56, 189, 248, 0.55); }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 19px; background: var(--green); }
.brand-mark span:nth-child(3) { height: 13px; }
.brand-name { font-size: 15px; font-weight: 760; letter-spacing: 0.2em; }
.brand-caption { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: 0.16em; }
.transport-strip { gap: 10px; color: #8297b0; font-family: Consolas, monospace; font-size: 9px; letter-spacing: 0.1em; }
.transport-strip i { width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--faint)); position: relative; }
.transport-strip i::after { content: ""; position: absolute; right: 0; top: -2px; border-left: 4px solid var(--faint); border-top: 2px solid transparent; border-bottom: 2px solid transparent; }
.connection-summary { justify-self: end; gap: 11px; min-width: 272px; justify-content: flex-end; }
.connection-summary strong { display: block; font-size: 11px; letter-spacing: 0.08em; }
.connection-summary small { display: block; margin-top: 3px; color: var(--muted); font: 9px Consolas, monospace; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 14px rgba(244, 207, 88, 0.55); }
.connection-dot.online { background: var(--green); box-shadow: 0 0 14px rgba(57, 224, 177, 0.65); }
.connection-dot.offline { background: var(--danger); box-shadow: 0 0 14px rgba(251, 113, 133, 0.45); }
.icon-button {
width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 8px;
background: rgba(255, 255, 255, 0.025); cursor: pointer; transition: 160ms ease;
}
.icon-button:hover { border-color: rgba(56, 189, 248, 0.55); color: var(--cyan); background: rgba(56, 189, 248, 0.08); }
.workspace {
display: grid;
grid-template-columns: 286px minmax(0, 1fr);
gap: 14px;
min-height: 0;
padding: 14px;
}
.control-deck, .receiver-panel {
border: 1px solid var(--line);
border-radius: var(--radius);
background: linear-gradient(160deg, rgba(10, 21, 36, 0.97), rgba(5, 12, 22, 0.97));
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.27), inset 0 1px rgba(255, 255, 255, 0.025);
}
.control-deck { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.frequency-card { padding: 22px 20px 19px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(56, 189, 248, 0.065), transparent 65%); }
.section-kicker { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.17em; }
.frequency-readout { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 15px; }
.frequency-readout span { color: #f1f8ff; font: 32px/1 Consolas, "SFMono-Regular", monospace; letter-spacing: -0.06em; text-shadow: 0 0 22px rgba(56, 189, 248, 0.19); }
.frequency-readout em { color: var(--cyan); font: normal 10px Consolas, monospace; }
.frequency-stepper { justify-content: space-between; gap: 8px; }
.frequency-stepper button {
width: 37px; height: 30px; border: 1px solid var(--line-strong); border-radius: 8px;
background: rgba(255, 255, 255, 0.025); font-size: 18px; cursor: pointer;
}
.frequency-stepper button:hover { border-color: var(--cyan); color: var(--cyan); }
.frequency-stepper span { color: var(--faint); font-size: 8px; letter-spacing: 0.08em; }
.frequency-stepper strong { color: #a8bbd1; font-weight: 600; }
.control-section { padding: 17px 20px; border-bottom: 1px solid var(--line); }
.section-heading { justify-content: space-between; margin-bottom: 13px; color: #adbed2; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; }
.section-heading small, .section-heading output { color: var(--cyan); font: 9px Consolas, monospace; letter-spacing: 0; }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mode-button {
height: 32px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,0.02);
color: #7188a5; font: 10px Consolas, monospace; cursor: pointer; transition: 150ms ease;
}
.mode-button:hover { color: #c9d9ea; border-color: var(--line-strong); }
.mode-button.active { border-color: rgba(57, 224, 177, 0.48); color: var(--green); background: rgba(57, 224, 177, 0.09); box-shadow: inset 0 0 16px rgba(57, 224, 177, 0.04); }
.range-section input { width: 100%; accent-color: var(--green); cursor: pointer; }
input[type="range"] { height: 3px; margin: 3px 0 9px; }
.range-scale { display: flex; justify-content: space-between; color: #465b74; font: 8px Consolas, monospace; }
.switch-list { padding-top: 6px; padding-bottom: 6px; }
.switch-row { justify-content: space-between; width: 100%; padding: 10px 0; border: 0; background: none; cursor: pointer; text-align: left; }
.switch-row + .switch-row { border-top: 1px solid rgba(128, 157, 196, 0.08); }
.switch-row span b { display: block; color: #aabed4; font-size: 9px; letter-spacing: 0.11em; }
.switch-row span small { display: block; margin-top: 3px; color: var(--faint); font-size: 9px; }
.switch-row > i { position: relative; width: 31px; height: 16px; border: 1px solid #304259; border-radius: 10px; background: #0a111b; transition: 160ms ease; }
.switch-row > i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #647892; transition: 160ms ease; }
.switch-row.active > i { border-color: rgba(57, 224, 177, 0.55); background: rgba(57, 224, 177, 0.12); }
.switch-row.active > i::after { left: 16px; background: var(--green); box-shadow: 0 0 8px rgba(57, 224, 177, 0.65); }
.deck-actions { display: grid; grid-template-columns: 1fr 88px; gap: 8px; margin-top: auto; padding: 15px 20px; }
.deck-actions button { height: 36px; border-radius: 8px; cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }
.secondary-action { border: 1px solid var(--line-strong); background: rgba(255,255,255,0.025); color: #8da2ba; }
.secondary-action:hover { color: var(--cyan); border-color: rgba(56, 189, 248, 0.45); }
.live-action { border: 1px solid rgba(57, 224, 177, 0.38); background: rgba(57, 224, 177, 0.075); color: var(--green); }
.live-action.paused { border-color: rgba(244, 207, 88, 0.4); background: rgba(244, 207, 88, 0.08); color: var(--yellow); }
.live-pulse { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.receiver-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) 45px; min-width: 0; min-height: 0; overflow: hidden; }
.receiver-header { justify-content: space-between; gap: 25px; min-height: 76px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.receiver-header h1 { margin: 5px 0 0; font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }
.interaction-hint { margin-top: 5px; color: #526983; font-size: 8px; letter-spacing: 0.04em; }
.metric-rack { display: grid; grid-template-columns: repeat(4, minmax(92px, auto)); }
.metric-rack > div { padding: 2px 16px; border-left: 1px solid var(--line); }
.metric-rack small { display: block; color: var(--faint); font-size: 8px; letter-spacing: 0.1em; }
.metric-rack strong { display: block; margin-top: 5px; color: #bfd0e3; font: 10px Consolas, monospace; white-space: nowrap; }
.metric-rack > div:first-child strong { color: var(--green); }
.canvas-stage {
position: relative;
min-width: 0;
min-height: 0;
margin: 12px;
overflow: hidden;
border: 1px solid rgba(90, 122, 162, 0.2);
border-radius: 11px;
background:
linear-gradient(rgba(50, 81, 118, 0.06) 1px, transparent 1px),
linear-gradient(90deg, rgba(50, 81, 118, 0.06) 1px, transparent 1px),
#030812;
background-size: 32px 32px;
box-shadow: inset 0 0 45px rgba(0,0,0,0.32);
}
#render-canvas { display: block; width: 100%; height: 100%; outline: none; image-rendering: auto; cursor: crosshair; }
#render-canvas:focus { box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.32); }
.stage-label { position: absolute; right: 13px; z-index: 2; display: flex; align-items: center; gap: 7px; color: #637b98; font: 8px Consolas, monospace; letter-spacing: 0.08em; pointer-events: none; }
.stage-label span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(57,224,177,0.5); }
.spectrum-label { top: 10px; }
.waterfall-label { top: 51%; }
.waterfall-label span { background: var(--cyan); box-shadow: 0 0 8px rgba(56,189,248,0.55); }
.stream-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: rgba(3, 8, 18, 0.77); backdrop-filter: blur(3px); transition: opacity 220ms ease, visibility 220ms ease; z-index: 3; }
.stream-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.stream-overlay strong { color: #c7d7e8; font-size: 12px; letter-spacing: 0.06em; }
.stream-overlay span { color: var(--muted); font-size: 10px; }
.loader-ring { width: 28px; height: 28px; border: 2px solid rgba(56, 189, 248, 0.14); border-top-color: var(--cyan); border-radius: 50%; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.receiver-footer { gap: 24px; padding: 0 17px; border-top: 1px solid var(--line); color: var(--muted); }
.receiver-footer > div { display: flex; align-items: center; gap: 7px; }
.receiver-footer strong { color: #a4b8ce; font: 9px Consolas, monospace; }
.receiver-footer small { color: var(--faint); font-size: 8px; }
.footer-led { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(57,224,177,.6); }
.signal-meter { height: 18px; gap: 3px !important; margin-left: auto; align-items: flex-end !important; }
.signal-meter span { width: 3px; border-radius: 2px; background: linear-gradient(var(--green), #147b69); animation: meter 1.4s ease-in-out infinite alternate; }
.signal-meter span:nth-child(1), .signal-meter span:nth-child(8) { height: 4px; }
.signal-meter span:nth-child(2), .signal-meter span:nth-child(7) { height: 7px; animation-delay: -0.5s; }
.signal-meter span:nth-child(3), .signal-meter span:nth-child(6) { height: 11px; animation-delay: -0.8s; }
.signal-meter span:nth-child(4), .signal-meter span:nth-child(5) { height: 16px; animation-delay: -0.2s; }
@keyframes meter { to { transform: scaleY(.45); opacity: .45; } }
.footer-note { color: #455a73; font: 8px Consolas, monospace; letter-spacing: 0.1em; }
@media (max-width: 1050px) {
.topbar { grid-template-columns: 1fr auto; }
.transport-strip { display: none; }
.metric-rack { grid-template-columns: repeat(2, minmax(100px, auto)); row-gap: 8px; }
.workspace { grid-template-columns: 250px minmax(0, 1fr); }
.control-section { padding-left: 16px; padding-right: 16px; }
.frequency-card, .deck-actions { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 760px) {
body { overflow: auto; }
.app-shell { height: auto; min-height: 100vh; grid-template-rows: auto 1fr; }
.topbar { min-height: 68px; grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
.connection-summary { justify-self: stretch; justify-content: flex-start; min-width: 0; }
.connection-summary .icon-button { margin-left: auto; }
.workspace { grid-template-columns: 1fr; padding: 9px; }
.control-deck { overflow: visible; }
.receiver-panel { min-height: 620px; }
.receiver-header { align-items: flex-start; flex-direction: column; }
.metric-rack { width: 100%; grid-template-columns: repeat(2, 1fr); }
.metric-rack > div { padding-left: 10px; }
.canvas-stage { min-height: 460px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}