18c9354095
- 注入数据库、运行时配置、统一响应、文件存储和平台 AI 能力,补充业务读写工具与客户快捷操作契约。 - 移除模块内重复的组织、客户、工单、标签、技能、旧工作流、MCP 和迁移实现,将身份权限与业务主体交由宿主管理。 - 使用 libSQL 重构向量存储,并完善图片消息、访客身份、排队调度、企业微信和支持聊天页面。 - 统一 HTTP、DTO 与 WebSocket 的 snake_case 协议,补齐模块初始化、业务动作和公共载荷等回归测试。
55 lines
8.4 KiB
CSS
55 lines
8.4 KiB
CSS
:root { color-scheme: light dark; font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; color: #101828; background: #f5f7fc; font-synthesis: none; }
|
|
* { box-sizing: border-box; }
|
|
html, body { min-width: 320px; min-height: 100%; margin: 0; }
|
|
body { min-height: 100vh; min-height: 100svh; overflow-x: hidden; background: #f5f7fc; }
|
|
button { font: inherit; }
|
|
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
[hidden] { display: none !important; }
|
|
.demo-app { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: radial-gradient(circle at 8% 8%, rgba(37,99,235,.13), transparent 30%), radial-gradient(circle at 92% 14%, rgba(109,93,252,.12), transparent 28%), #f5f7fc; }
|
|
.demo-header { position: relative; z-index: 2; border-bottom: 1px solid rgba(255,255,255,.84); background: rgba(255,255,255,.76); box-shadow: 0 6px 24px rgba(15,23,42,.035); backdrop-filter: blur(20px) saturate(1.2); }
|
|
.demo-header__inner { width: min(1120px, calc(100% - 40px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
|
|
.demo-brand { display: flex; align-items: center; gap: 12px; }
|
|
.demo-brand__mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#4f7df3,#6d5dfc); box-shadow: 0 10px 24px rgba(61,105,235,.24); }
|
|
.demo-brand__mark svg { width: 20px; height: 20px; }
|
|
.demo-brand > span:last-child { display: flex; flex-direction: column; }
|
|
.demo-brand strong { font-size: 15px; line-height: 21px; }
|
|
.demo-brand small { color: #667085; font-size: 11px; line-height: 16px; }
|
|
.demo-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #b7ebd0; border-radius: 999px; color: #087a55; background: rgba(236,253,245,.88); box-shadow: 0 3px 10px rgba(16,185,129,.08); font-size: 12px; font-weight: 600; }
|
|
.demo-status i { width: 8px; height: 8px; border-radius: 50%; background: #24b47e; box-shadow: 0 0 0 4px rgba(36,180,126,.12); }
|
|
.demo-status.error { color: #b42318; border-color: #fecaca; background: #fff1f2; }
|
|
.demo-status.error i { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
|
|
.demo-hero { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); min-height: calc(100svh - 72px); margin: 0 auto; padding: 76px 0 92px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(340px,.75fr); align-items: center; gap: 72px; }
|
|
.demo-eyebrow { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid rgba(37,99,235,.18); border-radius: 999px; color: #2463d4; background: rgba(239,246,255,.82); box-shadow: 0 3px 10px rgba(37,99,235,.06); font-size: 12px; font-weight: 600; }
|
|
.demo-eyebrow svg { width: 14px; height: 14px; }
|
|
.demo-hero h1 { max-width: 650px; margin: 22px 0 0; font-size: clamp(38px, 4.2vw, 58px); font-weight: 700; line-height: 1.13; letter-spacing: -.045em; }
|
|
.demo-hero__copy > p { max-width: 640px; margin: 22px 0 0; color: #5e6b80; font-size: 17px; line-height: 1.75; }
|
|
.demo-hero code { padding: 2px 5px; border-radius: 6px; color: #335fbd; background: rgba(37,99,235,.07); font-size: .88em; }
|
|
.identity-grid { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
|
|
.identity-grid > div { min-width: 150px; max-width: 260px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.9); border-radius: 13px; background: rgba(255,255,255,.76); box-shadow: 0 5px 18px rgba(15,23,42,.055); backdrop-filter: blur(12px); }
|
|
.identity-grid span { display: block; color: #98a2b3; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
|
|
.identity-grid strong { display: block; margin-top: 4px; overflow: hidden; color: #475467; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
|
|
.action-hint { width: fit-content; max-width: 100%; margin-top: 28px; padding: 12px 15px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.9); border-radius: 16px; color: #5e6b80; background: rgba(255,255,255,.82); box-shadow: 0 12px 34px rgba(15,23,42,.075); font-size: 13px; backdrop-filter: blur(16px); }
|
|
.action-hint > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #2563eb; background: #eff6ff; }
|
|
.action-hint svg { width: 17px; height: 17px; }
|
|
.feature-list { display: grid; gap: 16px; }
|
|
.feature-list article { padding: 21px; display: flex; gap: 16px; border: 1px solid rgba(255,255,255,.92); border-radius: 21px; background: rgba(255,255,255,.84); box-shadow: 0 16px 42px rgba(15,23,42,.075); backdrop-filter: blur(18px); }
|
|
.feature-list i { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; }
|
|
.feature-list i svg { width: 19px; height: 19px; }
|
|
.feature-list .blue { color: #2563eb; background: #eff6ff; }
|
|
.feature-list .violet { color: #7c3aed; background: #f5f3ff; }
|
|
.feature-list .green { color: #059669; background: #ecfdf5; }
|
|
.feature-list h2 { margin: 1px 0 0; font-size: 15px; line-height: 22px; }
|
|
.feature-list p { margin: 5px 0 0; color: #667085; font-size: 13px; line-height: 21px; }
|
|
.widget-launcher { position: fixed; z-index: 30; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 64px; height: 64px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#3974ec,#605cf5); box-shadow: 0 18px 42px rgba(37,99,235,.28); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
|
|
.widget-launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(37,99,235,.34); }
|
|
.widget-launcher:disabled { opacity: .5; cursor: not-allowed; transform: none; }
|
|
.widget-launcher svg { width: 23px; height: 23px; }
|
|
.widget-launcher span { font-size: 12px; font-weight: 650; }
|
|
.widget-frame-shell { position: fixed; z-index: 29; right: max(12px, env(safe-area-inset-right)); bottom: max(96px, calc(80px + env(safe-area-inset-bottom))); width: min(380px, calc(100vw - 24px)); height: min(720px, calc(100dvh - 112px)); overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(15,35,65,.26); transform-origin: right bottom; animation: frame-in .24s cubic-bezier(.22,1,.36,1); }
|
|
.widget-frame-shell iframe { width: 100%; height: 100%; display: block; border: 0; background: #fff; }
|
|
@keyframes frame-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
|
|
@media (max-width: 820px) { .demo-hero { padding-top: 48px; grid-template-columns: 1fr; gap: 42px; } .feature-list { grid-template-columns: repeat(3,minmax(0,1fr)); } .feature-list article { display: block; } .feature-list article > div { margin-top: 12px; } }
|
|
@media (max-width: 620px) { .demo-header__inner, .demo-hero { width: min(100% - 28px, 1120px); } .demo-status span { display: none; } .demo-status { width: 32px; height: 32px; padding: 0; justify-content: center; } .demo-status i { width: 9px; height: 9px; } .demo-hero { padding: 42px 0 110px; } .demo-hero h1 { font-size: 36px; } .demo-hero h1 br { display: none; } .demo-hero__copy > p { font-size: 15px; } .feature-list { grid-template-columns: 1fr; } .feature-list article { display: flex; } .feature-list article > div { margin-top: 0; } .widget-launcher { right: 16px; bottom: 16px; } .widget-frame-shell { right: 8px; bottom: 88px; width: calc(100vw - 16px); height: calc(100dvh - 104px); } }
|
|
@media (prefers-color-scheme: dark) { :root { color: #f8fafc; background: #0f1726; } body, .demo-app { background: radial-gradient(circle at 8% 8%,rgba(37,99,235,.16),transparent 30%),radial-gradient(circle at 92% 14%,rgba(109,93,252,.13),transparent 28%),#0f1726; } .demo-header { border-color: rgba(255,255,255,.07); background: rgba(15,23,38,.78); } .demo-brand small, .demo-hero__copy > p, .feature-list p, .action-hint { color: #9aa7ba; } .identity-grid > div, .action-hint, .feature-list article { border-color: rgba(255,255,255,.08); background: rgba(22,31,48,.78); } .identity-grid strong { color: #cbd5e1; } .widget-frame-shell { border-color: rgba(255,255,255,.1); background: #111827; } }
|
|
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
|