feat: 扩展中心支持多模态消息、HTML 渲染、一级导航与应用内通知

This commit is contained in:
Wxw-Gu committed 2026-12-01 14:49:41 +08:00
1 parent b20e514c90
commit 4ea73c3414
63 files changed
+8360 -644

No files matched your search

@@ -0,0 +1,225 @@
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
background: #f5f7fa;
color: #18212f;
}
.page {
max-width: 960px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 16px;
}
.hero {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
background: #ffffff;
border: 1px solid #e5e9f0;
border-radius: 14px;
padding: 20px;
}
.kicker {
font-size: 12px;
color: #2563eb;
font-weight: 600;
margin-bottom: 4px;
}
.hero h1 {
margin: 0 0 6px;
font-size: 22px;
}
.subtitle {
margin: 0;
font-size: 13px;
color: #64748b;
}
.hero-actions {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.btn {
padding: 8px 14px;
border-radius: 8px;
border: 1px solid #cbd5e1;
background: #ffffff;
color: #1e293b;
font-size: 13px;
cursor: pointer;
}
.btn.primary {
background: #2563eb;
border-color: #2563eb;
color: #ffffff;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.banner {
padding: 10px 14px;
border-radius: 10px;
font-size: 13px;
background: #eff6ff;
color: #1d4ed8;
border: 1px solid #bfdbfe;
}
.banner[data-tone="error"] {
background: #fef2f2;
color: #b91c1c;
border-color: #fecaca;
}
.banner[data-tone="ok"] {
background: #f0fdf4;
color: #15803d;
border-color: #bbf7d0;
}
.grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.card {
background: #ffffff;
border: 1px solid #e5e9f0;
border-radius: 14px;
padding: 18px;
display: flex;
flex-direction: column;
gap: 12px;
}
.card h2 {
margin: 0;
font-size: 15px;
}
.card h3 {
margin: 8px 0 0;
font-size: 14px;
}
.field {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
}
.field input,
.field select {
padding: 8px 10px;
border-radius: 8px;
border: 1px solid #cbd5e1;
font-size: 13px;
}
.field-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.check-row {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
cursor: pointer;
}
.group-list {
max-height: 220px;
overflow: auto;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 6px;
display: flex;
flex-direction: column;
gap: 4px;
}
.group-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 8px;
border-radius: 6px;
font-size: 13px;
cursor: pointer;
}
.group-item:hover {
background: #f8fafc;
}
.result-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.result-body {
font-size: 13px;
line-height: 1.65;
white-space: pre-wrap;
background: #f8fafc;
border-radius: 10px;
padding: 14px;
}
.result-body.empty {
color: #64748b;
}
.preview-wrap {
margin-top: 14px;
padding: 12px;
border-radius: 12px;
background: #f8fafc;
border: 1px solid #e2e8f0;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.preview-caption {
font-size: 12px;
color: #64748b;
word-break: break-all;
align-self: flex-start;
}
.preview-img {
max-width: 100%;
width: 460px;
height: auto;
border-radius: 10px;
border: 1px solid #cbd5e1;
box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
background: #ffffff;
}