Files
fpv-rid-workbench/crates/web-ui/public/app.css
T
JiuContinent 7d2e37a0ef ```text
chore: 新增项目规则文档、构建别名及忽略规则

添加 AGENTS.md 项目规则文件,涵盖语言与工具链、模块设计、
Git 提交规范及验证流程等内容。

变更要点:
- .cargo/config.toml 新增 xtask 命令别名
- .gitignore 忽略运行时地图缓存、接收器配置文件、
  构建锁文件及本地 docs/ 目录
- 新增 AGENTS.md 定义项目编码、提交与审查规则
```
2026-10-21 16:23:47 +08:00

961 lines
19 KiB
CSS

/* Mission Control Apple-style Translucent Dark Theme for Registration */
:root {
--mc-bg: #060b14;
--mc-shell-bg: rgba(8, 15, 28, 0.82);
--mc-panel-bg: rgba(9, 18, 36, 0.82);
--mc-panel-raised: rgba(14, 26, 48, 0.88);
--mc-panel-dense: rgba(7, 13, 24, 0.94);
--mc-panel-blur: blur(28px) saturate(190%);
--mc-border: rgba(48, 85, 140, 0.38);
--mc-border-light: rgba(255, 255, 255, 0.1);
--mc-border-glow: rgba(26, 114, 255, 0.45);
--mc-accent: #38bdf8;
--mc-accent-dark: #1557b0;
--mc-accent-glow: rgba(26, 114, 255, 0.3);
--mc-success: #30d158;
--mc-warning: #ff9f0a;
--mc-danger: #ff453a;
--mc-text: #f8fafc;
--mc-text-muted: #94a3b8;
--mc-text-dim: #64748b;
--mc-radius-lg: 14px;
--mc-radius-md: 10px;
--mc-radius-sm: 8px;
--mc-radius-pill: 9999px;
--mc-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
color-scheme: dark;
}
*, *::before, *::after {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
background-color: var(--mc-bg);
background-image:
radial-gradient(circle at 50% 0%, rgba(26, 114, 255, 0.12) 0%, transparent 60%),
radial-gradient(circle at 85% 90%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
background-attachment: fixed;
color: var(--mc-text);
min-height: 100vh;
}
button, input, select {
font: inherit;
}
button {
cursor: pointer;
}
/* Custom Scrollbars */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.18);
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(48, 182, 245, 0.5);
}
.shell {
max-width: 1360px;
margin: 0 auto;
min-height: 100vh;
background: var(--mc-shell-bg);
backdrop-filter: var(--mc-panel-blur);
-webkit-backdrop-filter: var(--mc-panel-blur);
border-left: 1px solid var(--mc-border);
border-right: 1px solid var(--mc-border);
box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
display: flex;
flex-direction: column;
}
/* Topbar */
.topbar {
height: 64px;
background: rgba(10, 18, 32, 0.85);
backdrop-filter: var(--mc-panel-blur);
-webkit-backdrop-filter: var(--mc-panel-blur);
border-bottom: 1px solid var(--mc-border);
display: flex;
align-items: center;
padding: 0 40px;
gap: 16px;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.topbar .brand-mark {
width: 38px;
height: 38px;
object-fit: contain;
border-radius: var(--mc-radius-md);
padding: 4px;
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 0 16px rgba(48, 182, 245, 0.4);
}
.brand-copy {
display: flex;
flex-direction: column;
line-height: 1.2;
}
.brand-copy strong {
font-size: 17px;
letter-spacing: 0.04em;
color: #fff;
font-weight: 750;
}
.brand-copy small {
color: var(--mc-text-muted);
font-size: 12px;
}
.brand-copy small a {
color: var(--mc-accent);
text-decoration: none;
font-weight: 600;
margin-left: 4px;
transition: all 0.2s ease;
}
.brand-copy small a:hover {
color: #fff;
text-shadow: 0 0 8px var(--mc-accent);
}
.top-status {
margin-left: auto;
border: 1px solid rgba(0, 230, 118, 0.35);
background: rgba(0, 230, 118, 0.12);
border-radius: var(--mc-radius-pill);
color: var(--mc-success);
font-size: 12px;
font-weight: 700;
padding: 6px 14px;
display: inline-flex;
align-items: center;
gap: 6px;
box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}
.top-status i {
display: inline-block;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--mc-success);
box-shadow: 0 0 8px var(--mc-success);
}
main {
padding: 32px 40px 48px;
flex: 1;
}
/* Hero Section */
.hero {
margin-bottom: 26px;
}
.hero h1 {
font-size: 28px;
font-weight: 750;
letter-spacing: -0.01em;
color: #fff;
margin: 0 0 8px 0;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.hero p {
color: var(--mc-text-muted);
font-size: 14px;
line-height: 1.6;
max-width: 780px;
margin: 0;
}
/* Two Columns (Form + QR Result) */
.columns {
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
gap: 24px;
}
/* Panels */
.panel {
background: var(--mc-panel-bg);
backdrop-filter: var(--mc-panel-blur);
-webkit-backdrop-filter: var(--mc-panel-blur);
border: 1px solid var(--mc-border);
border-radius: var(--mc-radius-lg);
box-shadow: var(--mc-shadow);
padding: 26px 28px;
}
.panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
padding-bottom: 20px;
border-bottom: 1px solid var(--mc-border-light);
margin-bottom: 22px;
}
.panel-head > div {
display: flex;
align-items: center;
gap: 12px;
}
.panel-head h2 {
font-size: 17px;
font-weight: 700;
color: #fff;
margin: 0;
}
.step {
width: 32px;
height: 32px;
border-radius: var(--mc-radius-sm);
background: rgba(26, 114, 255, 0.25);
border: 1px solid rgba(56, 140, 248, 0.4);
color: #38bdf8;
font-weight: 700;
font-size: 13px;
display: grid;
place-items: center;
}
.step.muted {
background: rgba(255, 255, 255, 0.08);
border-color: var(--mc-border-light);
color: var(--mc-text-muted);
box-shadow: none;
}
.subtle {
color: var(--mc-text-dim);
font-size: 12px;
}
/* Form Styles */
label {
font-size: 13px;
font-weight: 600;
display: block;
margin: 0 0 8px;
color: #e2e8f0;
}
label em {
color: var(--mc-danger);
font-size: 11px;
font-style: normal;
margin-left: 6px;
}
label .optional {
color: var(--mc-text-dim);
font-size: 11px;
font-weight: normal;
}
input {
height: 42px;
width: 100%;
border: 1px solid var(--mc-border-light);
border-radius: var(--mc-radius-sm);
background: rgba(6, 12, 22, 0.65);
padding: 0 14px;
color: #fff;
outline: none;
transition: all 0.2s ease;
}
input:focus {
border-color: var(--mc-accent);
box-shadow: 0 0 0 3px rgba(48, 182, 245, 0.2);
background: rgba(8, 16, 28, 0.85);
}
input::placeholder {
color: var(--mc-text-dim);
}
.hint {
margin: 6px 0 20px;
color: var(--mc-text-dim);
font-size: 11px;
line-height: 1.5;
}
.field-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.input-prefix {
height: 42px;
display: flex;
border: 1px solid var(--mc-border-light);
border-radius: var(--mc-radius-sm);
overflow: hidden;
background: rgba(6, 12, 22, 0.65);
transition: all 0.2s ease;
}
.input-prefix span {
display: grid;
place-items: center;
width: 58px;
background: rgba(14, 26, 46, 0.8);
color: var(--mc-accent);
font-weight: 800;
font-size: 13px;
border-right: 1px solid var(--mc-border-light);
}
.input-prefix input {
border: 0;
border-radius: 0;
background: transparent;
height: 40px;
}
.input-prefix:focus-within {
border-color: var(--mc-accent);
box-shadow: 0 0 0 3px rgba(48, 182, 245, 0.2);
}
.photo-fields {
margin-top: 4px;
}
.photo-fields input[type=file] {
padding: 8px 10px;
height: auto;
min-height: 42px;
font-size: 11px;
color: var(--mc-text-muted);
}
.photo-fields + .hint {
margin-bottom: 22px;
}
/* Primary Submit Button */
.primary {
height: 46px;
width: 100%;
border: 1px solid rgba(147, 197, 253, 0.35);
border-radius: var(--mc-radius-sm);
background: linear-gradient(180deg, #1d68cf 0%, #1557b0 100%);
color: #fff;
font-weight: 600;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
box-shadow: 0 4px 14px rgba(21, 87, 176, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary:hover:not(:disabled) {
background: linear-gradient(180deg, #2575e6 0%, #1a62c6 100%);
box-shadow: 0 6px 18px rgba(21, 87, 176, 0.55);
transform: translateY(-1px);
}
.primary:disabled {
opacity: 0.5;
cursor: wait;
}
.form-message {
min-height: 18px;
margin: 12px 0 0;
font-size: 12px;
color: var(--mc-success);
}
.form-message.error {
color: var(--mc-danger);
}
/* Empty State */
.empty-state {
height: 400px;
border: 1px dashed rgba(64, 150, 255, 0.3);
border-radius: var(--mc-radius-md);
background: rgba(6, 12, 22, 0.4);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: var(--mc-text-dim);
gap: 10px;
text-align: center;
padding: 24px;
}
.empty-state b {
font-size: 15px;
color: var(--mc-text-muted);
}
.empty-state span {
font-size: 12px;
max-width: 260px;
line-height: 1.6;
}
.empty-glyph {
height: 64px;
width: 64px;
border-radius: var(--mc-radius-lg);
background: rgba(14, 26, 46, 0.6);
border: 1px solid var(--mc-border-light);
color: var(--mc-accent);
display: grid;
place-items: center;
font-size: 32px;
margin-bottom: 6px;
box-shadow: 0 0 20px rgba(48, 182, 245, 0.2);
}
/* Record Result Panel */
.record-result {
display: flex;
align-items: center;
flex-direction: column;
}
.record-result[hidden], .empty-state[hidden], #history-empty[hidden] {
display: none !important;
}
.qr-stage {
width: 210px;
height: 210px;
display: grid;
place-items: center;
background: #ffffff;
border: 2px solid var(--mc-border-glow);
border-radius: var(--mc-radius-md);
padding: 10px;
box-shadow: 0 10px 32px rgba(48, 182, 245, 0.25), inset 0 0 10px rgba(0,0,0,0.1);
}
.qr-stage svg {
max-width: 100%;
max-height: 100%;
}
.record-kicker {
font-size: 11px;
color: var(--mc-success);
font-weight: 800;
margin-top: 16px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.uas-display {
font-size: 26px;
font-weight: 850;
letter-spacing: 0.04em;
margin: 4px 0 16px;
color: var(--mc-accent);
text-shadow: 0 0 12px rgba(48, 182, 245, 0.35);
}
.result-fields {
width: 100%;
margin: 0;
border-top: 1px solid var(--mc-border-light);
border-bottom: 1px solid var(--mc-border-light);
}
.result-fields div {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 9px 0;
font-size: 12px;
}
.result-fields dt {
color: var(--mc-text-muted);
}
.result-fields dd {
margin: 0;
font-weight: 700;
text-align: right;
color: #fff;
overflow-wrap: anywhere;
}
.saved-photos {
align-self: stretch;
display: flex;
gap: 12px;
margin-top: 14px;
}
.saved-photos[hidden], .saved-photos a[hidden] {
display: none;
}
.saved-photos a {
width: 50%;
border: 1px solid var(--mc-border-light);
border-radius: var(--mc-radius-sm);
overflow: hidden;
text-align: center;
color: var(--mc-accent);
text-decoration: none;
font-size: 11px;
padding: 6px;
background: rgba(6, 12, 22, 0.5);
transition: all 0.2s ease;
}
.saved-photos a:hover {
border-color: var(--mc-accent);
background: rgba(14, 26, 46, 0.7);
}
.saved-photos img {
width: 100%;
height: 90px;
object-fit: contain;
background: rgba(0, 0, 0, 0.4);
border-radius: 4px;
display: block;
}
.saved-photos span {
display: block;
margin-top: 4px;
}
.url-box {
align-self: stretch;
background: rgba(6, 12, 22, 0.7);
border: 1px solid var(--mc-border-light);
border-radius: var(--mc-radius-sm);
margin-top: 16px;
padding: 10px 14px;
font-size: 11px;
}
.url-box span {
display: block;
color: var(--mc-text-dim);
margin-bottom: 4px;
}
.url-box code {
overflow-wrap: anywhere;
color: var(--mc-accent);
font-family: monospace;
}
.result-actions {
display: flex;
width: 100%;
gap: 12px;
margin-top: 14px;
}
.secondary, .ghost {
height: 38px;
border-radius: var(--mc-radius-sm);
font-size: 12px;
font-weight: 700;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
}
.secondary {
background: rgba(32, 65, 199, 0.25);
color: #fff;
border: 1px solid var(--mc-border);
}
.secondary:hover {
background: rgba(32, 65, 199, 0.45);
border-color: var(--mc-accent);
}
.ghost {
background: rgba(255, 255, 255, 0.06);
color: var(--mc-text-muted);
border: 1px solid var(--mc-border-light);
}
.ghost:hover {
background: rgba(255, 255, 255, 0.12);
color: #fff;
}
.action-link {
text-decoration: none;
}
.result-tip {
font-size: 11px;
color: var(--mc-text-dim);
line-height: 1.55;
align-self: stretch;
margin: 14px 0 0;
}
/* History Panel */
.history-panel {
margin-top: 28px;
}
.history-head {
padding-bottom: 16px;
}
.history-controls {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 12px;
}
.history-search {
position: relative;
width: 280px;
flex: 0 1 280px;
}
.history-search input {
height: 36px;
padding: 0 66px 0 12px;
font-size: 12px;
background: rgba(6, 12, 22, 0.7);
border: 1px solid var(--mc-border-light);
border-radius: var(--mc-radius-sm);
color: #fff;
}
.history-search #search-count {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--mc-text-dim);
font-size: 11px;
white-space: nowrap;
pointer-events: none;
}
.select-all {
display: inline-flex;
align-items: center;
gap: 6px;
margin: 0;
color: var(--mc-text-muted);
white-space: nowrap;
font-size: 12px;
cursor: pointer;
}
.select-all input, .archive-select input {
width: 16px;
height: 16px;
accent-color: var(--mc-accent);
cursor: pointer;
}
.export-button {
height: 36px;
padding: 0 14px;
border: 1px solid var(--mc-border);
border-radius: var(--mc-radius-sm);
background: rgba(14, 26, 46, 0.6);
color: var(--mc-accent);
font-size: 12px;
font-weight: 700;
transition: all 0.2s ease;
}
.export-button:hover:not(:disabled) {
background: rgba(32, 65, 199, 0.4);
color: #fff;
}
.export-button:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.text-button {
border: 0;
background: none;
color: var(--mc-accent);
font-size: 12px;
font-weight: 700;
padding: 6px 10px;
cursor: pointer;
}
.text-button:hover {
text-decoration: underline;
}
.history-message {
font-size: 12px;
line-height: 1.55;
color: var(--mc-text-dim);
margin: 0 0 16px;
}
.history-message.error {
color: var(--mc-danger);
}
.history-empty {
color: var(--mc-text-dim);
font-size: 13px;
padding: 30px 0;
text-align: center;
}
.history-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
gap: 16px;
}
.archive-card {
border: 1px solid var(--mc-border-light);
border-radius: var(--mc-radius-md);
padding: 16px;
background: rgba(8, 16, 28, 0.6);
transition: all 0.2s ease;
position: relative;
}
.archive-card:hover {
border-color: var(--mc-accent);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(48, 182, 245, 0.2);
transform: translateY(-2px);
}
.archive-card.selected {
border-color: var(--mc-accent);
background: rgba(14, 26, 46, 0.8);
box-shadow: 0 0 0 2px rgba(48, 182, 245, 0.3);
}
.archive-card h3 {
font-size: 15px;
font-weight: 700;
margin: 0 0 4px;
color: #fff;
overflow-wrap: anywhere;
}
.archive-card strong {
color: var(--mc-accent);
font-size: 13px;
}
.archive-card p {
color: var(--mc-text-muted);
font-size: 11px;
line-height: 1.5;
margin: 8px 0 12px;
}
.archive-thumbs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.archive-thumbs > div {
height: 100px;
border: 1px solid var(--mc-border-light);
border-radius: 6px;
background: rgba(0, 0, 0, 0.4);
display: grid;
place-items: center;
color: var(--mc-text-dim);
font-size: 11px;
overflow: hidden;
}
.archive-thumbs img {
height: 100%;
width: 100%;
object-fit: contain;
}
.archive-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 14px;
}
.archive-actions a, .archive-actions button {
background: rgba(255, 255, 255, 0.06);
color: var(--mc-text);
border: 1px solid var(--mc-border-light);
border-radius: 6px;
padding: 6px 10px;
font-size: 11px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: all 0.15s ease;
}
.archive-actions a:hover, .archive-actions button:hover {
background: rgba(48, 182, 245, 0.2);
border-color: var(--mc-accent);
color: #fff;
}
.archive-actions .delete-record {
background: rgba(239, 68, 68, 0.15);
color: var(--mc-danger);
border-color: rgba(239, 68, 68, 0.3);
}
.archive-actions .delete-record:hover {
background: rgba(239, 68, 68, 0.3);
}
.pagination {
display: flex;
gap: 12px;
justify-content: flex-end;
align-items: center;
flex-wrap: wrap;
margin-top: 22px;
color: var(--mc-text-muted);
font-size: 12px;
}
.pagination button, .archive-warning button {
padding: 6px 14px;
border: 1px solid var(--mc-border-light);
border-radius: var(--mc-radius-sm);
background: rgba(255, 255, 255, 0.08);
color: #fff;
cursor: pointer;
transition: all 0.2s ease;
}
.pagination button:hover:not(:disabled) {
background: rgba(48, 182, 245, 0.25);
border-color: var(--mc-accent);
}
.pagination button:disabled {
opacity: 0.35;
cursor: default;
}
.archive-warning {
padding: 14px 18px;
background: rgba(255, 159, 10, 0.15);
border: 1px solid rgba(255, 159, 10, 0.35);
color: var(--mc-warning);
border-radius: var(--mc-radius-sm);
margin-top: 16px;
}
/* Edit Dialog Apple Glass Modal */
dialog {
border: 1px solid var(--mc-border);
border-radius: var(--mc-radius-lg);
padding: 30px;
max-width: 650px;
width: calc(100% - 32px);
max-height: 90vh;
overflow: auto;
color: #fff;
background: rgba(11, 22, 39, 0.92);
backdrop-filter: blur(28px) saturate(190%);
-webkit-backdrop-filter: blur(28px) saturate(190%);
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
dialog::backdrop {
background: rgba(4, 8, 16, 0.75);
backdrop-filter: blur(8px);
}
dialog h2 {
margin-top: 0;
font-size: 20px;
font-weight: 750;
color: #fff;
}
dialog p {
font-size: 13px;
line-height: 1.6;
color: var(--mc-text-muted);
}
dialog .edit-help {
color: var(--mc-text-dim);
}
.edit-photos {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-top: 20px;
}
.edit-photos fieldset {
min-width: 0;
border: 1px solid var(--mc-border-light);
border-radius: var(--mc-radius-sm);
background: rgba(6, 12, 22, 0.5);
padding: 12px;
}
.edit-photos legend {
font-size: 12px;
font-weight: 700;
color: var(--mc-accent);
padding: 0 6px;
}
.edit-photos img {
width: 100%;
height: 130px;
object-fit: contain;
background: rgba(0, 0, 0, 0.5);
border-radius: 4px;
margin-bottom: 8px;
}
.edit-photos input[type=file] {
width: 100%;
font-size: 11px;
}
.edit-delete {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
font-size: 11px;
color: var(--mc-danger);
}
footer {
border-top: 1px solid var(--mc-border-light);
padding: 18px 40px;
color: var(--mc-text-dim);
font-size: 12px;
display: flex;
justify-content: flex-end;
}
@media (max-width: 850px) {
.topbar { padding: 0 20px; }
main { padding: 24px 18px; }
.columns { grid-template-columns: 1fr; }
.history-controls { width: 100%; justify-content: flex-start; }
.history-search { flex: 1 1 240px; }
}