1269 lines
81 KiB
CSS
1269 lines
81 KiB
CSS
/* Codex 插件市场 —— 深色为主,支持浅色。无外部 CDN,系统字体栈。 */
|
|
:root {
|
|
--grad: linear-gradient(135deg, #5B6CFF 0%, #A855F7 100%);
|
|
--accent: #7c85ff;
|
|
--bg: #0f1117;
|
|
--bg-2: #161923;
|
|
--card: #1b1f2b;
|
|
--card-2: #212636;
|
|
--border: #2a3042;
|
|
--text: #e8eaf2;
|
|
--muted: #9aa2b8;
|
|
--danger: #ff6b6b;
|
|
--ok: #4ade80;
|
|
--radius: 14px;
|
|
--shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
|
|
}
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
--bg: #f5f6fb;
|
|
--bg-2: #eceef6;
|
|
--card: #ffffff;
|
|
--card-2: #f3f4fa;
|
|
--border: #e2e5ef;
|
|
--text: #1b1e29;
|
|
--muted: #6b7186;
|
|
--shadow: 0 8px 24px rgba(60, 60, 120, 0.12);
|
|
}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html, body { height: 100%; margin: 0; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
|
|
"Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
font-size: 14px;
|
|
}
|
|
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
|
|
background: var(--card-2); padding: 1px 6px; border-radius: 6px; }
|
|
|
|
/* 顶栏 */
|
|
.topbar {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 12px 20px; background: var(--bg-2);
|
|
border-bottom: 1px solid var(--border);
|
|
/* 窗口用系统原生标题栏(main.js 未设 frame:false),不需要自绘拖拽区。
|
|
-webkit-app-region: drag 会让浏览器进程在 OS 层拦截该区域的鼠标事件用于「拖窗」,
|
|
真实鼠标点击到导航(含标签间隙/品牌区,以及 no-drag 命中不稳的边角)会被吞掉,
|
|
而 CDP Input.dispatchMouseEvent 直接注入渲染进程、绕过该拦截,所以静态与 CDP 都看不出。
|
|
原生边框已提供拖窗,这里移除以杜绝该类「点不动」。 */
|
|
}
|
|
.brand { display: flex; align-items: center; gap: 12px; }
|
|
.logo { width: 40px; height: 40px; display: grid; place-items: center;
|
|
border-radius: 11px; box-shadow: var(--shadow); }
|
|
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .2px; }
|
|
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
|
|
|
|
/* —— 顶部广告:官方推荐中转 —— */
|
|
.promo {
|
|
-webkit-app-region: no-drag;
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 6px 12px; border-radius: 10px; text-decoration: none;
|
|
color: var(--text); font-size: 12px; white-space: nowrap;
|
|
background: linear-gradient(90deg, rgba(91,108,255,.14), rgba(168,85,247,.14));
|
|
border: 1px solid rgba(124,108,255,.35);
|
|
transition: .15s;
|
|
}
|
|
.promo:hover { border-color: rgba(124,108,255,.7);
|
|
background: linear-gradient(90deg, rgba(91,108,255,.22), rgba(168,85,247,.22)); }
|
|
.promo-badge { font-size: 11px; font-weight: 700; color: #fff;
|
|
background: var(--grad); padding: 2px 7px; border-radius: 6px; letter-spacing: .2px; }
|
|
.promo-text { color: var(--muted); }
|
|
.promo-text b { color: var(--text); font-weight: 600; }
|
|
.promo-arrow { color: var(--muted); font-weight: 700; }
|
|
|
|
.tabs { display: flex; gap: 4px; background: var(--card); padding: 4px;
|
|
border-radius: 12px; border: 1px solid var(--border); }
|
|
.tab { border: 0; background: transparent; color: var(--muted);
|
|
padding: 7px 16px; border-radius: 9px; cursor: pointer; font-size: 13px;
|
|
font-weight: 600; transition: .15s; }
|
|
.tab:hover { color: var(--text); }
|
|
.tab.active { color: #fff; background: var(--grad); box-shadow: var(--shadow); }
|
|
|
|
/* 内容区 */
|
|
.content { flex: 1; overflow-y: auto; padding: 22px; }
|
|
.panel { display: none; animation: fade .2s ease; }
|
|
.panel.active { display: block; }
|
|
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
|
|
|
|
.panel-head { display: flex; align-items: flex-end; justify-content: space-between;
|
|
gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
|
|
h2 { margin: 0; font-size: 20px; }
|
|
h3 { margin: 0; font-size: 16px; }
|
|
.muted { color: var(--muted); margin: 4px 0 0; }
|
|
.small { font-size: 12px; }
|
|
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
|
|
|
.search { background: var(--card); border: 1px solid var(--border); color: var(--text);
|
|
border-radius: 10px; padding: 9px 12px; width: 220px; outline: none; }
|
|
.search:focus { border-color: var(--accent); }
|
|
|
|
.segmented { display: flex; background: var(--card); border: 1px solid var(--border);
|
|
border-radius: 10px; padding: 3px; }
|
|
.seg { border: 0; background: transparent; color: var(--muted); padding: 6px 12px;
|
|
border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 600; }
|
|
.seg.active { background: var(--card-2); color: var(--text); }
|
|
|
|
/* 按钮 */
|
|
.btn { border: 1px solid var(--border); background: var(--card); color: var(--text);
|
|
padding: 9px 16px; border-radius: 10px; cursor: pointer; font-size: 13px;
|
|
font-weight: 600; transition: .15s; }
|
|
.btn:hover { border-color: var(--accent); }
|
|
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: var(--shadow); }
|
|
.btn.primary:hover { filter: brightness(1.07); }
|
|
.btn.ghost { background: transparent; }
|
|
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
|
.btn.small { padding: 6px 12px; font-size: 12px; }
|
|
.btn.danger { border-color: var(--danger); color: var(--danger); }
|
|
.btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
|
|
.btn-group { display: flex; gap: 10px; }
|
|
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; opacity: .7; word-break: break-all; }
|
|
|
|
/* 市场网格 */
|
|
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 14px; }
|
|
.plugin-card { background: var(--card); border: 1px solid var(--border);
|
|
border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column;
|
|
gap: 10px; transition: .15s; }
|
|
.plugin-card:hover { transform: translateY(-2px); box-shadow: var(--shadow);
|
|
border-color: var(--accent); }
|
|
.pc-top { display: flex; align-items: center; gap: 10px; }
|
|
.pc-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
|
|
.pc-badge.plugin { background: rgba(124,133,255,.16); color: var(--accent); }
|
|
.pc-badge.skill { background: rgba(74,222,128,.15); color: var(--ok); }
|
|
.pc-badge.plat { background: rgba(245,158,11,.16); color: #f59e0b; }
|
|
.pc-badge.warn { background: rgba(245,158,11,.16); color: #f59e0b; }
|
|
.cl-warn { margin-top: 6px; font-size: 12px; color: #f59e0b;
|
|
background: rgba(245,158,11,.1); border-radius: 8px; padding: 6px 9px; }
|
|
.pc-badge.on { background: rgba(74,222,128,.18); color: var(--ok); }
|
|
.pc-name { font-weight: 700; font-size: 15px; word-break: break-all; }
|
|
.pc-meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px;
|
|
flex-wrap: wrap; }
|
|
.pc-desc { color: var(--muted); font-size: 13px; line-height: 1.5;
|
|
min-height: 20px; flex: 1; }
|
|
.pc-foot { display: flex; align-items: center; justify-content: space-between;
|
|
gap: 10px; margin-top: 2px; }
|
|
.link { color: var(--accent); cursor: pointer; font-size: 12px; text-decoration: none; }
|
|
.link:hover { text-decoration: underline; }
|
|
|
|
/* 勾选列表(备份/还原) */
|
|
.checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
|
|
.cl-group { font-size: 12px; font-weight: 700; color: var(--muted);
|
|
text-transform: uppercase; letter-spacing: .5px; margin: 10px 2px 2px; }
|
|
.cl-item { display: flex; align-items: center; gap: 12px; background: var(--card);
|
|
border: 1px solid var(--border); border-radius: 11px; padding: 11px 14px;
|
|
cursor: pointer; transition: .12s; }
|
|
.cl-item:hover { border-color: var(--accent); }
|
|
.cl-item input { width: 17px; height: 17px; accent-color: var(--accent); }
|
|
.cl-item.is-disabled { cursor: default; opacity: .82; }
|
|
.cl-item.is-disabled:hover { border-color: var(--border); }
|
|
.cl-item input:disabled { cursor: not-allowed; opacity: .45; }
|
|
.cl-item .cl-name { font-weight: 600; }
|
|
.cl-item .cl-src { color: var(--muted); font-size: 12px; }
|
|
.cl-tool-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
|
|
.cl-item .cl-size { margin-left: auto; color: var(--muted); font-size: 12px; }
|
|
|
|
/* 路由分组:按协议族分两栏,各一个单选,可同时激活 */
|
|
#router-groups { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
|
|
.router-col { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 8px; }
|
|
.router-col-head { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 2px; }
|
|
.router-col .empty.small { font-size: 12px; padding: 10px 14px; }
|
|
|
|
/* 子标签 */
|
|
.subtabs { display: flex; gap: 6px; margin-bottom: 18px; }
|
|
.subtab { border: 1px solid var(--border); background: var(--card); color: var(--muted);
|
|
padding: 8px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; }
|
|
.subtab.active { color: var(--text); border-color: var(--accent); background: var(--card-2); }
|
|
.subpanel { display: none; }
|
|
.subpanel.active { display: block; }
|
|
|
|
/* 表单卡片 */
|
|
.card { background: var(--card); border: 1px solid var(--border);
|
|
border-radius: var(--radius); padding: 16px; }
|
|
.action-card { margin-top: 8px; display: flex; flex-direction: column; gap: 14px; }
|
|
.row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
|
|
.row.between { justify-content: space-between; align-items: center; }
|
|
.field { display: flex; flex-direction: column; gap: 6px; }
|
|
.field.grow { flex: 1; min-width: 200px; }
|
|
.field span { font-size: 12px; color: var(--muted); font-weight: 600; }
|
|
.field input { background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
|
|
border-radius: 10px; padding: 10px 12px; outline: none; }
|
|
.field input:focus { border-color: var(--accent); }
|
|
.check-inline { display: flex; align-items: center; gap: 8px; color: var(--muted);
|
|
font-size: 13px; cursor: pointer; }
|
|
.check-inline input { accent-color: var(--accent); width: 16px; height: 16px; }
|
|
|
|
/* 空 / 加载态 */
|
|
.empty { text-align: center; color: var(--muted); padding: 50px 20px;
|
|
border: 1px dashed var(--border); border-radius: var(--radius); }
|
|
.spinner { width: 26px; height: 26px; border: 3px solid var(--border);
|
|
border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite;
|
|
margin: 0 auto 12px; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.hidden { display: none !important; }
|
|
|
|
/* 日志抽屉 */
|
|
.logbar { border-top: 1px solid var(--border); background: var(--bg-2); }
|
|
.log-toggle { width: 100%; text-align: left; border: 0; background: transparent;
|
|
color: var(--muted); padding: 8px 20px; cursor: pointer; font-size: 12px;
|
|
font-weight: 600; display: flex; justify-content: space-between; }
|
|
.log-panel { max-height: 190px; overflow-y: auto; padding: 0 20px 12px; }
|
|
.log-panel pre { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 12px; line-height: 1.6; color: var(--muted); white-space: pre-wrap;
|
|
word-break: break-word; }
|
|
|
|
/* Toast */
|
|
.toast { position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%);
|
|
background: var(--card); border: 1px solid var(--border); color: var(--text);
|
|
padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); z-index: 10060;
|
|
max-width: 80%; font-size: 13px; }
|
|
.toast.ok { border-color: var(--ok); }
|
|
.toast.err { border-color: var(--danger); }
|
|
.toast.warn { border-color: #f5a623; }
|
|
|
|
/* 卡片内按钮忙碌态 */
|
|
.installing { pointer-events: none; opacity: .7; }
|
|
|
|
/* 会话记录:同步横幅 */
|
|
.session-data-dir { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
|
|
margin-bottom: 12px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius);
|
|
background: var(--card-2); }
|
|
.session-data-dir code { min-width: 0; max-width: min(620px, 55vw); overflow: hidden;
|
|
text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
|
|
.sync-banner { display: flex; align-items: center; justify-content: space-between;
|
|
gap: 14px; background: linear-gradient(135deg, rgba(124,133,255,.12), rgba(168,85,247,.10));
|
|
border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px;
|
|
margin-bottom: 12px; }
|
|
.sync-banner .sync-text { display: flex; flex-direction: column; gap: 3px; }
|
|
.sync-banner .sync-text strong { font-size: 14px; }
|
|
.sync-banner .sync-text b { color: var(--danger); }
|
|
.sync-progress { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
|
|
.sync-progress-bar { flex: 1; max-width: 320px; height: 7px; background: var(--card-2);
|
|
border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
|
|
.sync-progress-fill { height: 100%; width: 0%; background: var(--grad);
|
|
border-radius: 999px; transition: width .2s ease; }
|
|
.sync-progress-label { white-space: nowrap; }
|
|
|
|
/* 会话记录:左右两栏 */
|
|
.sess-layout { display: grid; grid-template-columns: 300px 1fr; gap: 14px;
|
|
height: calc(100vh - 240px); min-height: 320px; }
|
|
.sess-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
|
|
padding-right: 4px; }
|
|
.sess-item { background: var(--card); border: 1px solid var(--border);
|
|
border-radius: 11px; padding: 10px 12px; cursor: pointer; transition: .12s; }
|
|
.sess-item:hover { border-color: var(--accent); }
|
|
.sess-item.active { border-color: var(--accent); background: var(--card-2); }
|
|
.sess-item .si-title { font-weight: 600; font-size: 13px; margin-bottom: 3px;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.sess-item .si-meta { color: var(--muted); font-size: 11px; display: flex;
|
|
gap: 8px; flex-wrap: wrap; }
|
|
.si-badge { border: 1px solid var(--border); border-radius: 999px; padding: 1px 6px;
|
|
color: var(--text); background: var(--card-2); font-weight: 700; }
|
|
.sess-reader { background: var(--card); border: 1px solid var(--border);
|
|
border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
|
|
.sess-conv { display: flex; flex-direction: column; height: 100%; }
|
|
.sess-conv-head { display: flex; align-items: center; justify-content: space-between;
|
|
gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
|
|
.sess-conv-actions { display: flex; align-items: center; gap: 7px; }
|
|
.sess-conv-actions .btn.danger { color: var(--danger); border-color: rgba(255,107,107,.38); }
|
|
.sess-conv-actions .btn.danger:hover { background: rgba(255,107,107,.12); border-color: var(--danger); }
|
|
.sess-conv-title { font-weight: 700; font-size: 14px; white-space: nowrap;
|
|
overflow: hidden; text-overflow: ellipsis; }
|
|
.sess-messages { overflow-y: auto; padding: 16px; display: flex;
|
|
flex-direction: column; gap: 14px; }
|
|
.msg { display: flex; flex-direction: column; gap: 4px; }
|
|
.msg .who { font-size: 11px; font-weight: 700; color: var(--muted); }
|
|
.msg .bubble { border-radius: 12px; padding: 10px 13px; font-size: 13px;
|
|
line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
|
|
.msg.user { align-items: flex-end; }
|
|
.msg.user .bubble { background: var(--grad); color: #fff; max-width: 85%; }
|
|
.msg.assistant .bubble { background: var(--card-2); color: var(--text);
|
|
border: 1px solid var(--border); max-width: 92%; }
|
|
.msg.tool .bubble { background: transparent; color: var(--muted); font-size: 12px;
|
|
border: 1px dashed var(--border); padding: 5px 10px; }
|
|
|
|
/* 常驻页脚:版权 / 使用说明 */
|
|
.footer-notice { display: flex; align-items: center; justify-content: space-between;
|
|
gap: 12px; padding: 7px 20px; background: var(--bg-2);
|
|
border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
|
|
.footer-notice .fn-text { flex: 1; min-width: 0; overflow: hidden;
|
|
text-overflow: ellipsis; white-space: nowrap; }
|
|
.footer-notice .fn-links { display: flex; gap: 14px; flex-shrink: 0; }
|
|
.fn-link { border: 0; background: transparent; color: var(--accent); cursor: pointer;
|
|
font-size: 11px; font-weight: 600; padding: 0; }
|
|
.fn-link:hover { text-decoration: underline; }
|
|
|
|
/* 说明弹窗 */
|
|
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5);
|
|
display: flex; align-items: center; justify-content: center; z-index: 10050;
|
|
padding: 24px; animation: fade .15s ease; }
|
|
.modal { background: var(--card); border: 1px solid var(--border);
|
|
border-radius: var(--radius); box-shadow: var(--shadow); max-width: 640px;
|
|
width: 100%; max-height: 82vh; display: flex; flex-direction: column; }
|
|
.modal-head { display: flex; align-items: center; justify-content: space-between;
|
|
padding: 15px 20px; border-bottom: 1px solid var(--border); }
|
|
.modal-head h3 { font-size: 16px; }
|
|
.modal-close { border: 0; background: transparent; color: var(--muted); font-size: 17px;
|
|
cursor: pointer; line-height: 1; padding: 3px 7px; border-radius: 8px; }
|
|
.modal-close:hover { color: var(--text); background: var(--card-2); }
|
|
.modal-body { padding: 18px 22px; overflow-y: auto; line-height: 1.7;
|
|
font-size: 13px; color: var(--text); }
|
|
.modal-body h4 { margin: 18px 0 6px; font-size: 14px; }
|
|
.modal-body h4:first-child { margin-top: 0; }
|
|
.modal-body p { margin: 6px 0; color: var(--muted); }
|
|
.modal-body ul { margin: 6px 0; padding-left: 20px; color: var(--muted); }
|
|
.modal-body li { margin: 4px 0; }
|
|
.modal-body strong { color: var(--text); }
|
|
.modal-body .step { display: flex; gap: 10px; margin: 8px 0; align-items: baseline; }
|
|
.modal-body .step .n { flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px;
|
|
background: var(--grad); color: #fff; font-size: 11px; font-weight: 700;
|
|
display: grid; place-items: center; }
|
|
.cv-media-modal { max-width: min(1120px, 94vw); }
|
|
.cv-media-modal .modal-body { padding: 10px; overflow: hidden; }
|
|
.cv-modal-media { display: block; width: 100%; max-height: 76vh; object-fit: contain;
|
|
background: #000; border-radius: 8px; }
|
|
.grp-select { margin-top: 8px; width: 100%; background: var(--bg-2);
|
|
border: 1px solid var(--border); color: var(--text); border-radius: 10px;
|
|
padding: 9px 12px; outline: none; font-size: 13px; }
|
|
.grp-select:focus { border-color: var(--accent); }
|
|
.grp-purpose { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
|
|
.grp-purpose-pill {
|
|
min-height: 36px; display: inline-flex; align-items: center; gap: 8px; flex: 1 1 0;
|
|
min-width: 112px; padding: 8px 12px; border: 1px solid var(--border);
|
|
border-radius: 10px; background: var(--bg-2); color: var(--text);
|
|
font-size: 13px; font-weight: 600; cursor: pointer; user-select: none;
|
|
}
|
|
.grp-purpose-pill:hover { border-color: var(--accent); background: var(--card-2); }
|
|
.grp-purpose-pill input {
|
|
flex: none; width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer;
|
|
}
|
|
.grp-purpose-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.default-config-modal { max-width: 820px; }
|
|
.default-config-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
|
|
.default-config-summary div { min-width: 0; border: 1px solid var(--border); border-radius: 10px;
|
|
background: var(--bg-2); padding: 9px 11px; color: var(--muted); font-size: 12px; line-height: 1.45; }
|
|
.default-config-summary b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
|
|
.config-textarea { width: 100%; min-height: 180px; resize: vertical; border: 1px solid var(--border);
|
|
border-radius: 10px; background: var(--bg-2); color: var(--text); padding: 10px 12px;
|
|
font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; outline: none; }
|
|
.config-textarea:focus { border-color: var(--accent); }
|
|
.grp-1m-list { margin-top: 8px; display: flex; flex-direction: column; gap: 2px;
|
|
max-height: 180px; overflow-y: auto; border: 1px solid var(--border);
|
|
border-radius: 10px; padding: 6px; background: var(--bg-2); }
|
|
@media (max-width: 720px) { .default-config-summary { grid-template-columns: 1fr; } }
|
|
.grp-1m-item { display: flex; align-items: center; gap: 8px; padding: 5px 7px;
|
|
border-radius: 7px; cursor: pointer; font-size: 13px; }
|
|
.grp-1m-item:hover { background: var(--card); }
|
|
.grp-1m-item input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex: none; }
|
|
.grp-1m-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.claudedesk-block > span:first-child { font-weight: 600; font-size: 13px; }
|
|
.claudedesk-block .btn:disabled { opacity: .45; cursor: not-allowed; }
|
|
.claudedesk-block.hidden { display: none !important; }
|
|
|
|
/* —— 会话记忆 —— */
|
|
.mem-item { background: var(--card); border: 1px solid var(--border);
|
|
border-radius: var(--radius); padding: 13px 16px; margin-bottom: 10px; }
|
|
.mem-item:hover { border-color: var(--accent); }
|
|
.mem-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
.mem-topic { font-weight: 600; }
|
|
.mem-actions { margin-left: auto; display: flex; gap: 6px; }
|
|
.mem-sum { margin-top: 8px; white-space: pre-wrap; font-size: 13px; color: var(--text); opacity: .88; }
|
|
.mem-line { margin-top: 6px; font-size: 12px; color: var(--muted); }
|
|
.mem-line b { color: var(--text); margin-right: 8px; font-weight: 600; }
|
|
|
|
/* ===========================================================================
|
|
技能商店(cocoloop 镜像)—— 高密度目录浏览
|
|
=========================================================================== */
|
|
.store { display: grid; grid-template-columns: 218px 1fr; gap: 14px;
|
|
height: calc(100vh - 150px); min-height: 420px; }
|
|
|
|
/* 左侧分类导航 */
|
|
.store-nav { display: flex; flex-direction: column; background: var(--bg-2);
|
|
border-right: 1px solid var(--border); overflow: hidden; }
|
|
.store-nav-head { display: flex; align-items: baseline; justify-content: space-between;
|
|
padding: 9px 10px 8px; border-bottom: 1px solid var(--border); }
|
|
.store-nav-title { font-size: 12px; font-weight: 700; color: var(--muted);
|
|
letter-spacing: .5px; }
|
|
.store-nav-total { font-size: 11px; color: var(--accent); font-weight: 700; }
|
|
.store-nav-list { flex: 1; overflow-y: auto; padding: 6px; display: flex;
|
|
flex-direction: column; gap: 2px; }
|
|
.store-nav-list::-webkit-scrollbar { width: 8px; }
|
|
.store-nav-list::-webkit-scrollbar-thumb { background: var(--border);
|
|
border-radius: 8px; }
|
|
.store-nav-group { font-size: 10px; font-weight: 700; color: var(--muted);
|
|
text-transform: uppercase; letter-spacing: .6px; padding: 9px 8px 3px; opacity: .7; }
|
|
.nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px;
|
|
border-radius: 7px; cursor: pointer; border: 1px solid transparent; width: 100%;
|
|
text-align: left; font-family: inherit; background: transparent; transition: .12s; color: var(--text); }
|
|
.nav-item:hover { background: var(--card); }
|
|
.nav-item.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(91,108,255,.24); }
|
|
.nav-item.active .nav-count { background: rgba(255,255,255,.22); color: #fff; }
|
|
.nav-ico { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
|
|
.nav-name { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap;
|
|
overflow: hidden; text-overflow: ellipsis; }
|
|
.nav-count { font-size: 11px; font-weight: 700; color: var(--muted);
|
|
background: var(--card-2); padding: 1px 8px; border-radius: 999px; flex-shrink: 0; }
|
|
|
|
/* 右侧主区 */
|
|
.store-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
|
|
.store-head { display: flex; align-items: center; justify-content: space-between;
|
|
gap: 16px; min-height: 42px; }
|
|
.store-heading { min-width: 0; }
|
|
.store-title-row { display: flex; align-items: baseline; gap: 8px; }
|
|
.store-title-row h2 { font-size: 22px; line-height: 1.15; }
|
|
.store-crumb-sep { color: var(--muted); font-weight: 400; }
|
|
.store-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
.store-tools { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
|
|
.store-tools .search { width: min(240px, 25vw); padding: 8px 10px; border-radius: 7px; }
|
|
.store-tools .segmented { border-radius: 7px; padding: 2px; flex-shrink: 0; }
|
|
.store-tools .seg { padding: 5px 9px; border-radius: 5px; white-space: nowrap; }
|
|
.store-sub { margin: 3px 0 0; font-size: 12px; }
|
|
.store-filter-row { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0 12px; }
|
|
.store-filter-label { color: var(--muted); font-size: 12px; line-height: 28px; flex: 0 0 auto; }
|
|
.store-category-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.store-filter-chip { height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px;
|
|
color: var(--muted); background: var(--card); font: 600 12px/1 inherit; cursor: pointer; }
|
|
.store-filter-chip:hover { color: var(--text); border-color: var(--accent); }
|
|
.store-filter-chip.active { border-color: transparent; color: #fff; background: var(--grad); }
|
|
.store-grid { overflow-y: auto; align-content: start; padding: 2px 4px 4px 2px;
|
|
flex: 1; min-height: 0; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }
|
|
.store-grid::-webkit-scrollbar { width: 9px; }
|
|
.store-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9px; }
|
|
|
|
/* 技能卡片 */
|
|
.skill-card { background: var(--card); border: 1px solid var(--border);
|
|
border-radius: 8px; min-height: 188px; padding: 12px; display: flex; flex-direction: column;
|
|
gap: 8px; transition: .15s; position: relative; overflow: hidden; cursor: pointer; }
|
|
.skill-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
|
|
background: var(--grad); opacity: 0; transition: .15s; }
|
|
.skill-card:hover { transform: translateY(-2px); box-shadow: var(--shadow);
|
|
border-color: var(--accent); }
|
|
.skill-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.skill-card:hover::before { opacity: 1; }
|
|
.sk-top { display: flex; align-items: flex-start; gap: 9px; }
|
|
.sk-ico { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center;
|
|
font-size: 19px; background: var(--card-2); border: 1px solid var(--border); border-radius: 7px; }
|
|
.sk-headings { min-width: 0; flex: 1; }
|
|
.sk-name { font-weight: 700; font-size: 14px; line-height: 1.28; word-break: break-word;
|
|
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.sk-author { color: var(--muted); font-size: 12px; margin-top: 2px; }
|
|
.sk-sec { flex-shrink: 0; width: 21px; height: 21px; display: grid; place-items: center;
|
|
border-radius: 5px; font-size: 10px; font-weight: 800; }
|
|
.sk-sec.S { background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff; }
|
|
.sk-sec.A { background: rgba(74,222,128,.16); color: var(--ok); }
|
|
.sk-sec.B { background: var(--card-2); color: var(--muted); }
|
|
.sk-subtitle { font-weight: 600; font-size: 12.5px; line-height: 1.35; color: var(--text);
|
|
display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.sk-brief { color: var(--muted); font-size: 12px; line-height: 1.45; flex: 1;
|
|
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.sk-agents { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
|
|
.store-grid .sk-agents .lab { display: none; }
|
|
.agent-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
|
|
display: inline-flex; align-items: center; gap: 5px; background: var(--card-2);
|
|
border: 1px solid var(--border); }
|
|
.agent-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
|
|
.agent-badge.claude::before { background: #d97757; }
|
|
.agent-badge.codex::before { background: #5b6cff; }
|
|
.agent-badge.openclaw::before { background: #a855f7; }
|
|
.agent-badge.mm { background: rgba(245,158,11,.14); border-color: transparent; color: #f59e0b; }
|
|
.agent-badge.mm::before { display: none; }
|
|
.sk-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px;
|
|
min-width: 0; flex-wrap: nowrap; overflow: hidden; }
|
|
.sk-meta > span { white-space: nowrap; }
|
|
.sk-meta .cred { margin-left: auto; font-size: 10px; font-weight: 700; padding: 1px 7px;
|
|
border: 1px solid var(--border); border-radius: 6px; letter-spacing: .3px; }
|
|
.sk-foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
|
|
.sk-card-actions { display: flex; gap: 4px; margin-left: auto; }
|
|
.sk-card-actions .install { min-width: 58px; }
|
|
|
|
/* 分页 */
|
|
.store-more { display: flex; align-items: center; justify-content: center; gap: 12px;
|
|
padding: 12px 0 2px; color: var(--muted); font-size: 12px; }
|
|
.store-pagination { display: flex; align-items: center; gap: 4px; }
|
|
.store-page-btn { width: 28px; height: 28px; display: grid; place-items: center; padding: 0;
|
|
border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--muted);
|
|
font: 600 12px/1 inherit; cursor: pointer; }
|
|
.store-page-btn:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
|
|
.store-page-btn.active { background: var(--grad); border-color: transparent; color: #fff; }
|
|
.store-page-btn:disabled { opacity: .4; cursor: not-allowed; }
|
|
.store-page-gap { padding: 0 2px; color: var(--muted); }
|
|
|
|
/* 技能详情弹窗内的排版 */
|
|
.sd-hero { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
|
|
.sd-hero .sk-ico { width: 52px; height: 52px; font-size: 27px; }
|
|
.sd-hero h3 { font-size: 18px; }
|
|
.sd-stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; color: var(--muted);
|
|
font-size: 13px; }
|
|
.sd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
|
|
.sd-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
|
|
background: var(--card-2); color: var(--muted); border: 1px solid var(--border); }
|
|
.sd-install-row { display: flex; gap: 10px; margin-top: 8px; }
|
|
|
|
@media (max-width: 820px) {
|
|
.store { grid-template-columns: 1fr; height: auto; }
|
|
.store-nav { max-height: 200px; }
|
|
.store-head { align-items: flex-start; flex-direction: column; }
|
|
.store-tools { width: 100%; }
|
|
.store-tools .search { flex: 1; width: auto; }
|
|
.store-grid { max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
|
|
.store-filter-row { align-items: flex-start; }
|
|
}
|
|
|
|
/* 品牌 logo 图片 */
|
|
.logo img { width: 100%; height: 100%; border-radius: 10px; display: block; object-fit: cover; }
|
|
|
|
/* ===========================================================================
|
|
更新弹窗
|
|
=========================================================================== */
|
|
.update-modal { max-width: 480px; padding: 0; }
|
|
.update-head { display: flex; align-items: center; gap: 13px; padding: 20px 22px 14px; }
|
|
.update-ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
|
|
font-size: 24px; border-radius: 12px; background: var(--grad); }
|
|
.update-head h3 { font-size: 17px; margin: 0; }
|
|
.update-badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 10px;
|
|
border-radius: 999px; }
|
|
.update-badge.force { background: rgba(255,107,107,.16); color: var(--danger); }
|
|
.update-badge.normal { background: rgba(74,222,128,.15); color: var(--ok); }
|
|
.update-notes { margin: 0 22px; padding: 14px 16px; background: var(--bg-2);
|
|
border: 1px solid var(--border); border-radius: 12px; max-height: 300px; overflow-y: auto;
|
|
font-size: 13px; line-height: 1.65; color: var(--text); white-space: pre-wrap;
|
|
word-break: break-word; }
|
|
.update-notes:empty::before { content: "本次更新暂无详细说明。"; color: var(--muted); }
|
|
.update-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px 20px; }
|
|
.update-foot .btn { min-width: 96px; }
|
|
|
|
/* ===========================================================================
|
|
插件市场 —— 内置工具卡片 + 分区标题 + 返回按钮
|
|
=========================================================================== */
|
|
.tools-title { font-size: 13px; font-weight: 700; color: var(--muted);
|
|
letter-spacing: .5px; margin: 6px 2px 12px; }
|
|
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 14px; margin-bottom: 26px; }
|
|
.tool-card { background: var(--card); border: 1px solid var(--border);
|
|
border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column;
|
|
gap: 10px; transition: .15s; }
|
|
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
|
|
.tool-top { display: flex; align-items: center; gap: 11px; }
|
|
.tool-ico { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
|
|
font-size: 21px; background: var(--card-2); border: 1px solid var(--border); border-radius: 11px; }
|
|
.tool-name { font-weight: 700; font-size: 15px; }
|
|
.tool-desc { color: var(--muted); font-size: 13px; line-height: 1.6; flex: 1; }
|
|
.tool-foot { display: flex; justify-content: flex-end; }
|
|
.tool-foot.multi { justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.tool-status { min-height: 18px; line-height: 1.5; }
|
|
.installer-progress { width: 100%; height: 8px; overflow: hidden; border-radius: 999px;
|
|
background: var(--card-2); border: 1px solid var(--border); }
|
|
.installer-progress-bar { width: 0%; height: 100%; border-radius: inherit;
|
|
background: var(--accent); transition: width .18s ease; }
|
|
.installer-cancel-row { display: flex; justify-content: flex-end; margin-top: -2px; }
|
|
.back-btn { margin-right: 8px; vertical-align: middle; padding: 4px 10px; }
|
|
|
|
/* ============================================================
|
|
创意画布(Drawflow 节点画布)
|
|
复用 :root 设计变量,覆写 Drawflow 默认外观,明/暗色协调。
|
|
============================================================ */
|
|
#tab-canvas {
|
|
color-scheme: dark;
|
|
--text: #f6f6f6;
|
|
--muted: #999999;
|
|
--border: rgba(255,255,255,.08);
|
|
--bg: #0a0a0a;
|
|
--card: #161616;
|
|
--card-2: #1d1d1d;
|
|
--cv-accent: #ff6a2c;
|
|
--cv-accent-strong: #ff7f42;
|
|
--cv-accent-soft: rgba(255, 106, 44, .14);
|
|
--cv-blue: #3b82f6;
|
|
--cv-warn: #f59e0b;
|
|
--cv-shell: #0a0a0a;
|
|
--cv-surface: #161616;
|
|
--cv-surface-2: #1d1d1d;
|
|
--cv-panel-glass: rgba(35,35,41,.82);
|
|
--cv-field: #1d1d1d;
|
|
--cv-canvas: #0a0a0a;
|
|
--cv-grid-major: rgba(255,255,255,.055);
|
|
--cv-grid-minor: rgba(255,255,255,.032);
|
|
--cv-shadow-soft: 0 25px 50px -12px rgba(0,0,0,.25);
|
|
--cv-shadow-card: 0 8px 28px rgba(0,0,0,.42);
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
#tab-canvas {
|
|
color-scheme: light;
|
|
}
|
|
}
|
|
|
|
/* 画布面板占满内容区高度:工具条固定 + 画布撑满剩余空间 */
|
|
/* 画布面板占满内容区高度:抵消 .content 的 22px padding,铺满更大气 */
|
|
#tab-canvas.active { display: flex; flex-direction: column; min-height: 0;
|
|
position: relative; margin: -22px; height: calc(100% + 44px); padding: 0; gap: 0;
|
|
overflow: hidden; background: var(--cv-canvas); }
|
|
.cv-toolbar { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 30;
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
gap: 12px; flex-wrap: nowrap; margin-bottom: 0; padding: 0; pointer-events: none; }
|
|
.cv-toolbar-left,
|
|
.cv-toolbar-right { display: flex; align-items: center; gap: 7px; min-height: 34px;
|
|
pointer-events: auto; padding: 4px 6px; border-radius: 999px;
|
|
border: 1px solid var(--border); background: rgba(22,22,22,.96);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,.28); }
|
|
.cv-toolbar-left { min-width: 0; }
|
|
.cv-nav-dot { width: 24px; height: 24px; border: 0; border-radius: 999px; cursor: default;
|
|
background: radial-gradient(circle at 38% 36%, #ffb077, var(--cv-accent));
|
|
box-shadow: 0 0 0 4px rgba(255,138,77,.12); }
|
|
.cv-title { position: relative; display: inline-flex; align-items: center; gap: 8px;
|
|
font-size: 14px; letter-spacing: 0; font-weight: 760; white-space: nowrap; }
|
|
.cv-title::before { content: none; }
|
|
.cv-status { border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
|
|
background: rgba(29,29,29,.9); color: var(--muted); box-shadow: none; }
|
|
.cv-status.on { background: rgba(16,185,129,.10); color: #059669; border-color: rgba(16,185,129,.22); }
|
|
.cv-status.off { background: rgba(255,107,107,.13); color: var(--danger); border-color: rgba(255,107,107,.28); }
|
|
#tab-canvas .cv-toolbar .btn { min-height: 30px; padding: 6px 10px; border-radius: 8px;
|
|
background: rgba(29,29,29,.9); color: var(--text);
|
|
border-color: var(--border); box-shadow: none; }
|
|
#tab-canvas .cv-toolbar .btn:hover { border-color: rgba(255,138,77,.42);
|
|
background: color-mix(in srgb, var(--cv-accent-soft) 46%, var(--cv-surface-2)); }
|
|
#tab-canvas .cv-toolbar .btn.primary { background: var(--cv-blue); border-color: transparent;
|
|
color: #fff; box-shadow: 0 9px 18px rgba(59,130,246,.22); }
|
|
#tab-canvas .cv-toolbar .btn.primary:hover { background: #2563eb; filter: none; }
|
|
.cv-project-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 680;
|
|
padding: 5px 7px; border-radius: 6px; cursor: pointer; }
|
|
.cv-project-name:hover { background: var(--cv-surface-2); }
|
|
|
|
.cv-tool-rail { position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
|
|
z-index: 28; display: flex; flex-direction: column; align-items: center; gap: 4px;
|
|
width: 50px; padding: 7px; box-sizing: border-box;
|
|
border: 1px solid var(--border); border-radius: 26px;
|
|
background: rgba(22,22,22,.96); box-shadow: 0 8px 18px rgba(0,0,0,.24); }
|
|
.cv-rail-btn { width: 36px; height: 36px; border: 0; border-radius: 999px;
|
|
display: grid; place-items: center; color: #8b96a8; background: transparent;
|
|
font-weight: 760; font-size: 13px; cursor: pointer;
|
|
transition: background-color .14s, color .14s; }
|
|
.cv-rail-btn:hover { color: var(--text); background: var(--cv-surface-2); box-shadow: none; }
|
|
|
|
/* 画布舞台:明确高度(Drawflow 容器需要),点阵底纹 */
|
|
.cv-stage { position: relative; flex: 1; min-height: 560px;
|
|
border: 0; border-radius: 0; overflow: hidden; box-shadow: none; background: var(--cv-canvas); }
|
|
.cv-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
|
|
background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.025), transparent 44%);
|
|
box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
|
|
.cv-project-picker { position: absolute; z-index: 40; top: 14px; left: 50%; transform: translateX(-50%);
|
|
width: min(520px, calc(100% - 28px)); max-height: min(620px, calc(100% - 28px)); overflow: auto;
|
|
border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #171717;
|
|
box-shadow: 0 20px 55px rgba(0,0,0,.48); padding: 14px; box-sizing: border-box; }
|
|
.cv-project-picker.hidden { display: none; }
|
|
.cv-project-picker-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
|
|
.cv-project-picker-head b { display: block; color: var(--text); font-size: 15px; }
|
|
.cv-project-picker-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
|
|
.cv-project-close { width: 28px; height: 28px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
|
|
.cv-project-close:hover { color: var(--text); background: var(--cv-surface-2); }
|
|
.cv-project-actions { display: flex; justify-content: flex-end; margin: 12px 0 10px; }
|
|
.cv-project-list { display: grid; gap: 6px; }
|
|
.cv-project-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px;
|
|
border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: #1c1c1c; }
|
|
.cv-project-item.active { border-color: rgba(59,130,246,.58); background: rgba(59,130,246,.08); }
|
|
.cv-project-info { min-width: 0; }
|
|
.cv-project-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13px; font-weight: 680; }
|
|
.cv-project-title-input { width: 100%; height: 30px; box-sizing: border-box; border: 1px solid rgba(59,130,246,.7);
|
|
border-radius: 6px; outline: none; background: #111; color: var(--text); padding: 5px 8px; font: inherit; font-size: 13px; }
|
|
.cv-project-meta { margin-top: 4px; color: var(--muted); font-size: 11px; }
|
|
.cv-project-item-actions { display: flex; align-items: center; gap: 6px; }
|
|
.cv-project-icon { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px;
|
|
background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
|
|
.cv-project-icon:hover { background: var(--cv-surface-2); color: var(--text); }
|
|
.cv-project-icon.ok { color: #6ee7a0; }
|
|
.cv-project-open { min-height: 30px; }
|
|
.cv-project-empty { padding: 24px 8px; text-align: center; color: var(--muted); font-size: 13px; }
|
|
#drawflow { position: absolute; inset: 0; width: 100%; height: 100%;
|
|
z-index: 2; background-color: var(--cv-canvas);
|
|
background-image:
|
|
linear-gradient(var(--cv-grid-major) 1px, transparent 1px),
|
|
linear-gradient(90deg, var(--cv-grid-major) 1px, transparent 1px),
|
|
radial-gradient(var(--cv-grid-minor) 1px, transparent 1px);
|
|
background-size: 112px 112px, 112px 112px, 22px 22px;
|
|
background-position: -1px -1px, -1px -1px, 0 0; }
|
|
|
|
/* 悬浮缩放控件(右下角,覆盖在画布上) */
|
|
.cv-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 15;
|
|
left: 50%; right: auto; transform: translateX(-50%);
|
|
display: flex; align-items: center; justify-content: center; gap: 4px;
|
|
width: min(436px, calc(100vw - 72px)); min-height: 46px; border-radius: 999px; overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
background: rgba(22,22,22,.96);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,.28); padding: 5px; }
|
|
.cv-zoom-btn { border: 0; background: transparent; color: var(--text);
|
|
width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 750;
|
|
line-height: 1; display: flex; align-items: center; justify-content: center;
|
|
transition: background-color .12s, color .12s, transform .12s; user-select: none; }
|
|
.cv-zoom-btn:hover { background: var(--cv-accent); color: #fff; }
|
|
.cv-zoom-btn:active { transform: scale(.94); }
|
|
.cv-zoom-level { font-size: 11px; font-weight: 750; color: var(--text);
|
|
min-width: 56px; padding: 0 8px; background: var(--cv-surface-2);
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 62%, transparent); }
|
|
.cv-zoom-range { width: 128px; height: 18px; accent-color: var(--cv-accent); cursor: pointer; }
|
|
.cv-zoom-range::-webkit-slider-runnable-track { height: 4px; border-radius: 999px;
|
|
background: color-mix(in srgb, var(--border) 64%, var(--cv-accent-soft)); }
|
|
.cv-zoom-range::-webkit-slider-thumb { margin-top: -5px; width: 14px; height: 14px;
|
|
border-radius: 50%; background: var(--cv-accent); border: 2px solid #fff;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,.22); }
|
|
.cv-minimap { position: absolute; left: 18px; bottom: 18px; z-index: 15;
|
|
width: 202px; height: 152px; padding: 9px; border-radius: 12px;
|
|
border: 1px solid var(--border); background: rgba(22,22,22,.92);
|
|
box-shadow: 0 6px 16px rgba(15,23,42,.16); }
|
|
.cv-minimap-view { position: relative; width: 100%; height: 100%; border-radius: 6px;
|
|
background: #101010; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
|
|
.cv-minimap-view span { position: absolute; left: 50%; top: 50%; width: 34px; height: 9px;
|
|
transform: translate(-50%,-50%); border-radius: 2px; background: var(--cv-accent); }
|
|
.cv-empty-hint { position: absolute; left: 50%; top: 37%; z-index: 16;
|
|
display: flex; align-items: center; gap: 12px; transform: translate(-50%, -50%);
|
|
color: var(--muted); font-size: 14px; pointer-events: none; }
|
|
.cv-empty-hint span { display: inline-flex; align-items: center; gap: 5px; height: 34px;
|
|
padding: 0 15px; border-radius: 10px; color: var(--cv-accent-strong); background: var(--cv-surface);
|
|
border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
|
|
.cv-empty-hint b { font-size: 15px; color: var(--muted); font-weight: 660; }
|
|
.cv-quick-menu { position: absolute; z-index: 32; width: 240px; padding: 12px;
|
|
border-radius: 18px; border: 1px solid var(--border);
|
|
background: rgba(22,22,22,.98); box-shadow: 0 12px 32px rgba(0,0,0,.34); }
|
|
.cv-quick-title { color: var(--muted); font-size: 12px; padding: 2px 6px 8px; }
|
|
.cv-quick-menu button { width: 100%; border: 0; background: transparent; color: var(--text);
|
|
display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: 12px;
|
|
font: inherit; font-size: 14px; font-weight: 670; cursor: pointer; text-align: left;
|
|
transition: background-color .14s, color .14s, transform .14s; }
|
|
.cv-quick-menu button span { width: 32px; height: 32px; display: grid; place-items: center;
|
|
border-radius: 10px; color: var(--muted); background: var(--cv-surface-2); font-weight: 780; }
|
|
.cv-quick-menu button:hover { background: var(--cv-surface-2); transform: translateX(2px); }
|
|
.cv-quick-menu button:hover span { color: var(--cv-accent-strong); background: var(--cv-accent-soft); }
|
|
|
|
/* 未就绪遮罩 */
|
|
.cv-mask { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center;
|
|
background: color-mix(in srgb, var(--bg) 86%, transparent); }
|
|
.cv-mask-box { text-align: center; background: var(--card); border: 1px solid var(--border);
|
|
border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); max-width: 380px; }
|
|
.cv-mask-ico { font-size: 34px; }
|
|
.cv-mask-title { font-weight: 700; font-size: 16px; margin: 8px 0 4px; }
|
|
.cv-mask-text { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.6; }
|
|
|
|
/* —— 覆写 Drawflow 节点为卡片风 —— */
|
|
.drawflow .drawflow-node { background: transparent !important; border: 0; padding: 0;
|
|
border-radius: 12px; box-shadow: none; width: 250px; }
|
|
.drawflow .drawflow-node.cv-df-video,
|
|
.drawflow .drawflow-node.cv-df-grokVideo { width: 420px; }
|
|
.drawflow .drawflow-node.cv-df-image { width: 420px; }
|
|
.drawflow .drawflow-node.cv-df-tts,
|
|
.drawflow .drawflow-node.cv-df-text { width: 430px; }
|
|
.drawflow .drawflow-node.selected { background: transparent !important; box-shadow: none; }
|
|
.drawflow .drawflow-node .drawflow_content_node { width: 100%; }
|
|
.cv-node { background: var(--cv-surface); border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
|
|
border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.22);
|
|
transition: border-color .12s; }
|
|
.drawflow-node:hover .cv-node { border-color: rgba(255,255,255,.14);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,.22); }
|
|
.drawflow-node.selected .cv-node { border-color: rgba(255,106,44,.42);
|
|
background: var(--cv-surface) !important;
|
|
box-shadow: 0 0 0 2px rgba(255,106,44,.16), 0 2px 8px rgba(0,0,0,.22); }
|
|
.drawflow .drawflow-node.cv-node-config-open { z-index: 30; }
|
|
.drawflow-node.selected .cv-node-body { background: transparent !important; }
|
|
.cv-node-head { display: flex; align-items: center; gap: 8px;
|
|
padding: 9px 11px; background: linear-gradient(180deg, var(--cv-surface-2), color-mix(in srgb, var(--cv-surface-2) 70%, transparent));
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent); }
|
|
.cv-node-ico { display: grid; place-items: center; width: 22px; height: 22px;
|
|
border-radius: 7px; font-size: 13px; background: var(--cv-accent-soft); }
|
|
.cv-node-name { font-weight: 750; font-size: 13px; color: var(--text); }
|
|
.cv-node-tag { margin-left: auto; font-size: 10px; font-weight: 750; color: var(--cv-warn);
|
|
background: rgba(217,119,6,.14); padding: 2px 7px; border-radius: 999px;
|
|
border: 1px solid rgba(217,119,6,.18); }
|
|
.cv-node-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 11px 11px; }
|
|
.cv-node-hint { color: var(--muted); font-size: 11px; line-height: 1.5; }
|
|
.cv-df-video .cv-node,
|
|
.cv-df-grokVideo .cv-node,
|
|
.cv-df-image .cv-node,
|
|
.cv-df-tts .cv-node,
|
|
.cv-df-text .cv-node { background: transparent !important; border: 0; box-shadow: none;
|
|
overflow: visible; backdrop-filter: none; }
|
|
.cv-df-video .cv-node-head,
|
|
.cv-df-grokVideo .cv-node-head,
|
|
.cv-df-image .cv-node-head,
|
|
.cv-df-tts .cv-node-head,
|
|
.cv-df-text .cv-node-head { display: none; }
|
|
.cv-df-video .cv-node-body,
|
|
.cv-df-grokVideo .cv-node-body,
|
|
.cv-df-image .cv-node-body,
|
|
.cv-df-tts .cv-node-body,
|
|
.cv-df-text .cv-node-body { padding: 0; background: transparent !important; }
|
|
.cv-df-video.drawflow-node.selected .cv-node,
|
|
.cv-df-grokVideo.drawflow-node.selected .cv-node,
|
|
.cv-df-image.drawflow-node.selected .cv-node,
|
|
.cv-df-tts.drawflow-node.selected .cv-node,
|
|
.cv-df-text.drawflow-node.selected .cv-node { background: transparent !important; box-shadow: none !important; }
|
|
.cv-video-compact { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
|
|
padding-top: 14px; }
|
|
.cv-video-label { align-self: center; display: inline-flex; align-items: center; gap: 7px;
|
|
max-width: calc(100% - 44px); padding: 0 8px; color: var(--muted);
|
|
font-size: 13px; font-weight: 650; background: var(--cv-canvas);
|
|
border-radius: 999px; line-height: 1.2; white-space: nowrap; overflow: hidden;
|
|
text-overflow: ellipsis; }
|
|
.cv-video-label span { color: #777; flex: none; }
|
|
.cv-video-frame { width: 276px; max-width: calc(100% - 44px); min-height: 0; border: 1px solid var(--border);
|
|
border-radius: 16px; padding: 8px; background: var(--cv-surface);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,.24); }
|
|
.drawflow-node.selected .cv-video-frame { border-color: rgba(255,106,44,.42);
|
|
box-shadow: 0 0 0 2px rgba(255,106,44,.14), 0 2px 8px rgba(0,0,0,.24); }
|
|
.cv-video-frame-inner { height: auto; aspect-ratio: var(--cv-video-preview-aspect, 16 / 9);
|
|
border-radius: 10px; border: 1px dashed rgba(255,255,255,.12);
|
|
display: grid; place-items: center; color: var(--muted); font-size: 34px; background: #101010;
|
|
overflow: hidden; }
|
|
.cv-video-frame-inner .cv-skeleton { width: 100%; height: 100%; border-radius: inherit; }
|
|
.cv-video-frame-inner .cv-preview-shell { width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
|
|
.cv-video-frame-inner .cv-preview-shell.cv-preview-video { background: #05070b; }
|
|
.cv-video-frame-inner .cv-preview-shell.cv-preview-image { background: #111; }
|
|
.cv-video-frame-inner .cv-preview-video .cv-media { width: 100%; height: 100%; max-height: none; object-fit: contain; background: #05070b; }
|
|
.cv-video-frame-inner .cv-preview-image .cv-media { width: 100%; height: 100%; max-height: none; object-fit: contain; background: #111; }
|
|
.cv-video-frame-inner .cv-meta { display: none; }
|
|
.cv-image-frame { width: 276px; max-width: calc(100% - 44px); min-height: 0; align-self: center; }
|
|
.cv-image-frame[data-ratio="16:9"],
|
|
.cv-image-frame[data-ratio="4:3"],
|
|
.cv-image-frame[data-ratio="3:2"] { width: 276px; max-width: calc(100% - 44px); }
|
|
.cv-image-frame[data-ratio="9:16"],
|
|
.cv-image-frame[data-ratio="3:4"] { width: 276px; max-width: calc(100% - 44px); }
|
|
.cv-image-frame .cv-video-frame-inner { height: auto; aspect-ratio: var(--cv-image-preview-aspect, 1 / 1);
|
|
min-height: 0; border-style: solid; border-color: rgba(255,255,255,.08); background: #111; font-size: 30px; }
|
|
.cv-image-compact .cv-video-foot { width: min(420px, calc(100% - 60px)); margin-top: -6px; }
|
|
.cv-audio-frame .cv-video-frame-inner,
|
|
.cv-text-frame .cv-video-frame-inner { aspect-ratio: 16 / 5; border-style: solid;
|
|
border-color: rgba(255,255,255,.08); font-size: 28px; }
|
|
.cv-video-foot { width: min(420px, 100%); display: flex; align-items: center;
|
|
justify-content: space-between; color: var(--muted); font-size: 12px; pointer-events: none; }
|
|
.cv-video-foot b { padding: 4px 8px; border-radius: 999px; background: var(--cv-accent-soft);
|
|
border: 1px solid rgba(255,106,44,.38); color: var(--cv-accent); font-size: 10px; font-weight: 500; }
|
|
.cv-video-composer { width: min(420px, 100%); min-height: 188px; margin-top: 0; padding: 12px;
|
|
border-radius: 16px; border: 1px solid var(--border);
|
|
background: var(--cv-surface); box-shadow: 0 2px 8px rgba(0,0,0,.24);
|
|
contain: layout paint style; display: none; flex-direction: column; gap: 8px; }
|
|
.cv-video-compact.cv-config-open .cv-video-composer { display: flex; }
|
|
.cv-video-compact.cv-config-open .cv-video-foot { display: none; }
|
|
.cv-tts-compact .cv-video-composer,
|
|
.cv-text-compact .cv-video-composer { min-height: 0; }
|
|
.cv-video-compose-tools { display: flex; align-items: center; gap: 4px; color: var(--muted);
|
|
font-size: 16px; height: 28px; }
|
|
.cv-video-compose-tools .cv-video-expand { margin-left: auto; font-size: 13px; }
|
|
.cv-video-prompt { min-height: 58px; border: 0; box-shadow: none; padding: 6px 0;
|
|
background: transparent; resize: none; color: var(--text); }
|
|
.cv-video-prompt:focus { box-shadow: none; border-color: transparent; }
|
|
.cv-video-chip-row { display: flex; align-items: flex-start; gap: 7px; flex-wrap: wrap; }
|
|
.cv-chip-select, .cv-chip-action, .cv-video-pop > summary { width: auto; min-width: 0; height: 27px;
|
|
border-radius: 999px !important; border: 1px solid var(--border) !important;
|
|
background: var(--cv-surface-2) !important; color: var(--muted) !important; font-size: 11px !important;
|
|
font-weight: 500; padding: 0 10px !important; resize: none; }
|
|
.cv-chip-select.cv-field-group { max-width: 132px; }
|
|
.cv-chip-select.cv-field-model { max-width: 150px; }
|
|
.cv-chip-action { cursor: pointer; }
|
|
.cv-video-pop { position: relative; flex: 0 0 auto; }
|
|
.cv-video-pop > summary { display: inline-flex; align-items: center; cursor: pointer; list-style: none; }
|
|
.cv-video-pop > summary::-webkit-details-marker { display: none; }
|
|
.cv-video-pop[open] { flex-basis: 100%; width: 100%; }
|
|
.cv-video-pop-body { position: static; left: auto; top: auto; transform: none;
|
|
z-index: 42; width: 100%; margin-top: 8px; padding: 12px; border-radius: 14px;
|
|
border: 1px solid var(--border); background: #141414;
|
|
box-shadow: none; contain: layout paint style; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
|
.cv-video-pop[open] > summary { color: var(--cv-accent-strong) !important; background: var(--cv-accent-soft) !important; }
|
|
.cv-video-pop-body label { display: grid; gap: 5px; min-width: 0; color: #7f8da1; font-size: 11px; font-weight: 650; }
|
|
.cv-video-pop-body .cv-pop-wide,
|
|
.cv-video-pop-body .cv-refimg-row,
|
|
.cv-video-pop-body .cv-field-refsource,
|
|
.cv-video-pop-body .cv-pop-close { grid-column: 1 / -1; }
|
|
.cv-video-pop-body .cv-field { height: 34px; border-radius: 10px; background: var(--cv-surface-2); color: var(--text); border-color: var(--border); }
|
|
.cv-video-pop-body .cv-field,
|
|
.cv-video-pop-body select,
|
|
.cv-video-pop-body input,
|
|
.cv-video-pop-body textarea { min-width: 0; width: 100%; box-sizing: border-box; }
|
|
.cv-pop-close { height: 32px; border: 0; border-radius: 10px; background: var(--cv-surface-2);
|
|
color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
|
|
.cv-pop-close:hover { background: #242424; color: var(--text); }
|
|
.cv-video-compact.cv-pop-open .cv-video-foot { display: none !important; }
|
|
.cv-send-run { margin-left: auto; width: 34px; height: 34px; border-radius: 999px;
|
|
padding: 0; display: grid; place-items: center; background: #ffc7b8; color: #f26b2d; }
|
|
.cv-video-materials { margin-top: 8px; }
|
|
.cv-df-video .cv-node-preview,
|
|
.cv-df-grokVideo .cv-node-preview,
|
|
.cv-df-image .cv-node-preview,
|
|
.cv-df-tts .cv-node-preview { margin-top: 10px; }
|
|
|
|
/* 节点内表单控件 */
|
|
.cv-field { width: 100%; background: var(--cv-field); border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
|
|
color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 12px;
|
|
font-family: inherit; outline: none; resize: vertical; }
|
|
.cv-field:focus { border-color: var(--cv-accent); box-shadow: 0 0 0 3px var(--cv-accent-soft); }
|
|
select.cv-field { resize: none; cursor: pointer; }
|
|
|
|
/* 并排两个下拉(比例 + 清晰度 / 音色 + 格式 等) */
|
|
.cv-row2 { display: flex; gap: 8px; }
|
|
.cv-row2 .cv-field { flex: 1; min-width: 0; }
|
|
|
|
/* 模型输入框 + 每节点「拉取」小按钮 */
|
|
.cv-model-row { display: flex; gap: 6px; align-items: stretch; }
|
|
.cv-model-row .cv-field { flex: 1; min-width: 0; }
|
|
.cv-fetch-models { flex: none; border: 1px solid color-mix(in srgb, var(--border) 76%, transparent); background: var(--cv-surface-2);
|
|
color: var(--muted); border-radius: 8px; padding: 0 10px; cursor: pointer;
|
|
font-size: 11px; font-weight: 700; transition: .15s; }
|
|
.cv-fetch-models:hover { border-color: var(--cv-accent); color: var(--cv-accent); }
|
|
.cv-fetch-models:disabled { opacity: .5; cursor: not-allowed; }
|
|
|
|
/* 素材上传控件(图片节点参考图 / 视频节点首帧·尾帧·多参考图)——走自建图床 */
|
|
.cv-refimg-row, .cv-vmat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
.cv-refimg-pick { display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
|
|
border: 1px dashed rgba(255,106,44,.52); color: var(--cv-accent); background: var(--cv-accent-soft);
|
|
border-radius: 8px; padding: 7px 12px; font-size: 11px; font-weight: 700;
|
|
transition: .15s; white-space: nowrap; user-select: none; }
|
|
.cv-refimg-pick:hover { background: var(--cv-accent); color: #fff; }
|
|
.cv-refimg-thumb, .cv-vmat-thumb { flex: none; display: block; width: 42px; height: 42px;
|
|
max-width: 42px; max-height: 42px; object-fit: cover;
|
|
border: 1px solid color-mix(in srgb, var(--border) 76%, transparent); border-radius: 8px; }
|
|
.cv-refimg-clear, .cv-vmat-clear { flex: none; border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
|
|
background: var(--cv-surface-2); color: var(--muted); border-radius: 7px; cursor: pointer;
|
|
width: 24px; height: 24px; font-size: 12px; line-height: 1; padding: 0; transition: .15s; }
|
|
.cv-refimg-clear:hover, .cv-vmat-clear:hover { border-color: var(--danger); color: var(--danger); }
|
|
/* URL 输入 / 提示 / 多图缩略图 各自独占一行 */
|
|
.cv-vmat-url, .cv-vmat-urls { flex: 1 1 100%; }
|
|
.cv-refimg-row .cv-node-hint, .cv-vmat .cv-node-hint { flex: 1 1 100%; }
|
|
.cv-vmat-refs-thumbs { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 100%; }
|
|
.cv-vmat-refs-thumbs img { width: 34px !important; height: 34px !important;
|
|
max-width: 34px !important; max-height: 34px !important; object-fit: cover;
|
|
border-radius: 7px; border: 1px solid color-mix(in srgb, var(--border) 76%, transparent); }
|
|
/* 复选标签(生成音频 / 水印 / 固定镜头)对齐 */
|
|
.cv-check { display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
|
|
color: var(--muted); cursor: pointer; user-select: none; }
|
|
|
|
/* 折叠「高级」区(接口地址覆盖),别把节点撑太高 */
|
|
.cv-adv { border-top: 1px dashed color-mix(in srgb, var(--border) 78%, transparent); padding-top: 6px; }
|
|
.cv-adv > summary { cursor: pointer; color: var(--muted); font-size: 11px;
|
|
font-weight: 600; list-style: none; user-select: none; }
|
|
.cv-adv > summary::-webkit-details-marker { display: none; }
|
|
.cv-adv > summary::before { content: "▸ "; }
|
|
.cv-adv[open] > summary::before { content: "▾ "; }
|
|
.cv-adv[open] > summary { margin-bottom: 6px; }
|
|
|
|
/* 运行按钮(沿用主色渐变观感) */
|
|
.cv-run { align-self: stretch; border: 0; background: var(--cv-accent); color: #fff;
|
|
padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 12px;
|
|
font-weight: 700; transition: .15s; }
|
|
.cv-run:hover { background: var(--cv-accent-strong); filter: none; }
|
|
.cv-run:disabled { opacity: .6; cursor: not-allowed; }
|
|
.cv-video-chip-row .cv-send-run { align-self: auto; flex: none; margin-left: auto;
|
|
width: 34px; height: 34px; border-radius: 999px; padding: 0; display: grid; place-items: center;
|
|
background: var(--cv-accent); color: #0a0a0a; box-shadow: none; overflow: hidden; white-space: nowrap; }
|
|
.cv-video-chip-row .cv-send-run:hover { background: var(--cv-accent-strong); color: #0a0a0a; }
|
|
.cv-video-chip-row .cv-send-run.loading { color: transparent; position: relative; }
|
|
.cv-video-chip-row .cv-send-run.loading::after { content: ""; position: absolute; width: 14px; height: 14px;
|
|
border-radius: 999px; border: 2px solid rgba(242,107,45,.24); border-top-color: #f26b2d;
|
|
animation: cv-rot .7s linear infinite; }
|
|
|
|
/* 错误红字 */
|
|
.cv-node-err { color: var(--danger); font-size: 11px; line-height: 1.5;
|
|
background: rgba(255,107,107,.1); border-radius: 8px; padding: 6px 9px; }
|
|
|
|
/* 预览区(img/video/audio)圆角、限高、加载骨架 */
|
|
.cv-node-preview { border-radius: 9px; overflow: hidden; background: var(--cv-field);
|
|
border: 1px solid color-mix(in srgb, var(--border) 76%, transparent); }
|
|
.cv-preview-shell { position: relative; background: #000; }
|
|
.cv-preview-shell.cv-preview-audio { display: grid; place-items: center; min-height: 92px; background: #111; }
|
|
.cv-preview-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 5px;
|
|
z-index: 2; opacity: .92; }
|
|
.cv-preview-actions button { width: 26px; height: 26px; display: grid; place-items: center;
|
|
border: 1px solid rgba(255,255,255,.22); border-radius: 7px; background: rgba(15,17,23,.78);
|
|
color: #fff; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
|
|
.cv-preview-actions button:hover { background: rgba(255,106,44,.92); border-color: rgba(255,255,255,.4); }
|
|
.cv-media { display: block; width: 100%; max-height: 220px; object-fit: contain;
|
|
background: #000; }
|
|
.cv-media-audio { display: block; width: 100%; }
|
|
.cv-preview-audio .cv-media-audio { width: calc(100% - 16px); margin: 34px 8px 8px; }
|
|
.cv-meta { font-size: 10px; color: var(--muted); padding: 5px 8px;
|
|
border-top: 1px solid var(--border); }
|
|
.cv-skeleton { display: flex; align-items: center; justify-content: center; gap: 8px;
|
|
height: 120px; color: var(--muted); font-size: 12px;
|
|
background: linear-gradient(100deg, var(--bg-2) 30%, var(--card-2) 50%, var(--bg-2) 70%);
|
|
background-size: 200% 100%; animation: cv-shimmer 1.2s linear infinite; }
|
|
@keyframes cv-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
|
|
.cv-spin { width: 13px; height: 13px; border-radius: 50%;
|
|
border: 2px solid var(--border); border-top-color: var(--cv-accent);
|
|
animation: cv-rot .7s linear infinite; }
|
|
@keyframes cv-rot { to { transform: rotate(360deg); } }
|
|
|
|
/* —— 端口与连线用主题色 —— */
|
|
.drawflow .drawflow-node .input,
|
|
.drawflow .drawflow-node .output { width: 28px; height: 28px; border: 0;
|
|
background: transparent; box-shadow: none; opacity: 1; z-index: 8;
|
|
position: absolute !important; top: var(--cv-port-y, 50%) !important; margin-bottom: 0 !important; }
|
|
.drawflow .drawflow-node .input { pointer-events: none; }
|
|
.drawflow .drawflow-node .output { pointer-events: auto; }
|
|
.drawflow .drawflow-node .input { left: var(--cv-port-left, 0) !important; transform: translate(-50%, -50%) !important; }
|
|
.drawflow .drawflow-node .output { left: var(--cv-port-right, 100%) !important; right: auto !important; transform: translate(-50%, -50%) !important; }
|
|
.drawflow .drawflow-node .input::after,
|
|
.drawflow .drawflow-node .output::after { content: "+"; position: absolute; left: 50%; top: 50%;
|
|
display: grid; place-items: center; color: var(--text); font-size: 16px; font-weight: 720; line-height: 1;
|
|
width: 22px; height: 22px; border-radius: 999px; transform: translate(-50%, -50%) scale(.86);
|
|
background: var(--cv-surface-2); border: 1px solid rgba(255,255,255,.16);
|
|
box-shadow: none;
|
|
opacity: 0; pointer-events: none; transition: opacity .10s ease, color .10s ease, border-color .10s ease; }
|
|
.drawflow .drawflow-node.selected .output::after,
|
|
.drawflow .drawflow-node.cv-node-config-open .output::after,
|
|
#drawflow.cv-linking .drawflow-node .input::after,
|
|
#drawflow.cv-linking .drawflow-node .output::after {
|
|
opacity: 1;
|
|
transform: translate(-50%, -50%) scale(1);
|
|
}
|
|
#drawflow.cv-linking .drawflow-node .input::after { opacity: 1; }
|
|
#drawflow.cv-dragging .cv-node,
|
|
#drawflow.cv-dragging .cv-video-frame,
|
|
#drawflow.cv-dragging .cv-video-composer,
|
|
#drawflow.cv-dragging .cv-skeleton,
|
|
#drawflow.cv-dragging .cv-spin,
|
|
#drawflow.cv-dragging .drawflow-node .input::after,
|
|
#drawflow.cv-dragging .drawflow-node .output::after {
|
|
box-shadow: none !important;
|
|
transition: none !important;
|
|
animation-play-state: paused !important;
|
|
}
|
|
#drawflow.cv-dragging .drawflow-node.selected { will-change: transform; }
|
|
#drawflow.cv-linking .drawflow-node .input { pointer-events: auto; }
|
|
#drawflow.cv-linking .drawflow-node .output:hover::after,
|
|
#drawflow.cv-linking .drawflow-node .input:hover::after { color: var(--cv-accent-strong); border-color: var(--cv-accent-strong); }
|
|
.drawflow .connection .main-path { stroke: var(--cv-accent); stroke-width: 2.3px; }
|
|
.drawflow .connection .main-path:hover { stroke: var(--text); }
|
|
.drawflow .connection .point { stroke: var(--cv-accent); fill: var(--cv-surface); }
|
|
|
|
/* —— 沉浸式全屏:fixed 覆盖整个应用窗口(含顶部导航) —— */
|
|
body.cv-noscroll { overflow: hidden; }
|
|
#tab-canvas.cv-fullscreen { position: fixed; inset: 0; z-index: 9999; margin: 0;
|
|
height: auto; padding: 0; background: var(--cv-canvas); }
|
|
#tab-canvas.cv-fullscreen .cv-stage { min-height: 0; border-radius: 11px; }
|
|
#tab-canvas.cv-fullscreen .cv-toolbar { padding: 8px 10px; }
|
|
|
|
/* —— 语音输入面板 —— */
|
|
.voice-body { display: grid; gap: 14px; max-width: 760px; }
|
|
.voice-card { border: 1px solid var(--border, rgba(255,255,255,.1)); border-radius: 12px; padding: 14px 16px; background: var(--card, rgba(255,255,255,.02)); }
|
|
.voice-card-title { font-weight: 600; margin-bottom: 8px; }
|
|
.voice-row { display: flex; gap: 8px; align-items: center; }
|
|
.voice-row .search { flex: 1; }
|
|
.voice-ol { margin: 6px 0 0 18px; line-height: 1.9; color: var(--muted, #9ca3af); font-size: 13px; }
|
|
.voice-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; background: #6b7280; flex: none; }
|
|
.voice-dot[data-state="connected"] { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.7); }
|
|
.voice-dot[data-state="transcribing"], .voice-dot[data-state="recording"] { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.7); }
|
|
.voice-dot[data-state="restarting"], .voice-dot[data-state="waiting_debug_port"], .voice-dot[data-state="connecting"], .voice-dot[data-state="injecting"], .voice-dot[data-state="checking"] { background: #60a5fa; }
|
|
.voice-dot[data-state="error"] { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.7); }
|
|
.voice-dot[data-state="running_no_port"], .voice-dot[data-state="unsupported_packaged"] { background: #f59e0b; }
|
|
.codex-link-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
min-height: 36px;
|
|
padding: 5px 7px 5px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
background: var(--card);
|
|
white-space: nowrap;
|
|
}
|
|
.codex-link-label { font-weight: 700; font-size: 12px; }
|
|
.codex-link-status .btn.small { padding: 5px 10px; }
|
|
|
|
/* ===== 员工团队 ===== */
|
|
#tab-team { padding: 0; }
|
|
.tm-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 16px; height: 100%; padding: 16px 20px; box-sizing: border-box; }
|
|
.tm-input-col { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 4px; }
|
|
.tm-title { font-size: 18px; margin: 0; }
|
|
.tm-sub { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0; }
|
|
.tm-req { width: 100%; min-height: 130px; resize: vertical; box-sizing: border-box;
|
|
background: var(--card); border: 1px solid var(--border); color: var(--text);
|
|
border-radius: 10px; padding: 12px; font-size: 13.5px; line-height: 1.6; font-family: inherit; }
|
|
.tm-req:focus { border-color: var(--accent); outline: none; }
|
|
.tm-field { display: flex; flex-direction: column; gap: 6px; }
|
|
.tm-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
|
|
.tm-hint { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
|
|
.tm-hint strong { color: var(--text); }
|
|
.tm-row { display: flex; gap: 8px; align-items: center; }
|
|
.tm-select, .tm-text { background: var(--card); border: 1px solid var(--border); color: var(--text);
|
|
border-radius: 9px; padding: 8px 10px; font-size: 13px; font-family: inherit; flex: 1; min-width: 0; }
|
|
.tm-select:focus, .tm-text:focus { border-color: var(--accent); outline: none; }
|
|
.tm-chips { display: flex; gap: 6px; }
|
|
.tm-chip { border: 1px solid var(--border); background: var(--card); color: var(--muted);
|
|
padding: 6px 14px; border-radius: 8px; font-size: 12.5px; cursor: pointer; }
|
|
.tm-chip.active { color: #fff; background: var(--grad); border-color: transparent; }
|
|
.tm-gen { margin-top: 4px; padding: 11px; font-size: 14px; }
|
|
|
|
.tm-result-col { display: flex; flex-direction: column; background: var(--bg-2);
|
|
border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 0; }
|
|
.tm-result-head { display: flex; align-items: center; justify-content: space-between;
|
|
padding: 12px 16px; border-bottom: 1px solid var(--border); }
|
|
.tm-result-title { font-weight: 600; font-size: 14px; }
|
|
.tm-result-body { flex: 1; overflow-y: auto; padding: 16px; min-height: 0; }
|
|
.tm-empty, .tm-loading, .tm-error { display: flex; flex-direction: column; align-items: center;
|
|
justify-content: center; text-align: center; height: 100%; gap: 8px; color: var(--muted); }
|
|
.tm-empty-ico { font-size: 34px; }
|
|
.tm-empty-title { font-size: 15px; color: var(--text); margin: 0; }
|
|
.tm-empty-sub { font-size: 12.5px; margin: 0; }
|
|
.tm-error { color: var(--danger); font-size: 13.5px; padding: 20px; }
|
|
.tm-spinner { width: 34px; height: 34px; border: 3px solid var(--border);
|
|
border-top-color: var(--accent); border-radius: 50%; animation: tmspin .8s linear infinite; }
|
|
@keyframes tmspin { to { transform: rotate(360deg); } }
|
|
.tm-loading-text { font-size: 13px; }
|
|
.tm-team-head { margin-bottom: 14px; }
|
|
.tm-team-name { font-size: 18px; font-weight: 700; }
|
|
.tm-team-summary { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }
|
|
.tm-team-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
|
|
.tm-team-models { margin-top: 8px; color: var(--muted); font-size: 12px; }
|
|
.tm-team-models code, .tm-emp-model code { color: var(--text); font-family: ui-monospace, monospace; }
|
|
.tm-stack-chip { background: var(--card-2); border: 1px solid var(--border); color: var(--text);
|
|
padding: 3px 10px; border-radius: 20px; font-size: 11.5px; }
|
|
.tm-conv-card, .tm-emp-card { background: var(--card); border: 1px solid var(--border);
|
|
border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
|
|
.tm-emp-card.lead { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(124,133,255,.25); }
|
|
.tm-conv-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
|
|
.tm-conv-owner { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
|
|
.tm-conv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
.tm-cc-label { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
|
|
.tm-conv-col ul { margin: 0; padding-left: 16px; font-size: 12px; color: var(--muted); line-height: 1.55; }
|
|
.tm-emp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.tm-emp-name { font-weight: 700; font-size: 14.5px; }
|
|
.tm-emp-badge { background: var(--grad); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; }
|
|
.tm-emp-id { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--muted);
|
|
background: var(--card-2); padding: 1px 6px; border-radius: 5px; }
|
|
.tm-emp-duty { font-size: 13px; color: var(--text); margin-top: 5px; line-height: 1.5; }
|
|
.tm-emp-model { margin-top: 5px; color: var(--muted); font-size: 11.5px; }
|
|
.tm-sec-label { font-size: 11.5px; font-weight: 600; color: var(--accent); margin: 10px 0 4px; }
|
|
.tm-resp, .tm-flow { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
|
|
.tm-collab { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
|
|
.tm-ec-row { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
|
|
.tm-ec-k { color: var(--accent); font-weight: 600; min-width: 32px; }
|
|
.tm-ec-row code, .tm-collab code { font-family: ui-monospace, monospace; font-size: 11px;
|
|
background: var(--card-2); padding: 1px 5px; border-radius: 4px; color: var(--text); }
|
|
.tm-cons { display: flex; flex-wrap: wrap; gap: 5px; }
|
|
.tm-con-chip { font-size: 11px; background: var(--card-2); border: 1px solid var(--border);
|
|
color: var(--muted); padding: 2px 8px; border-radius: 6px; }
|
|
.tm-file-block { margin-top: 10px; }
|
|
.tm-file-toggle { border: 1px dashed var(--border); background: transparent; color: var(--accent);
|
|
font-size: 12px; padding: 5px 10px; border-radius: 7px; cursor: pointer; width: 100%; }
|
|
.tm-file-toggle:hover { border-color: var(--accent); }
|
|
.tm-file-view { margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
|
|
.tm-file-head { display: flex; justify-content: space-between; align-items: center;
|
|
padding: 6px 10px; background: var(--card-2); border-bottom: 1px solid var(--border); }
|
|
.tm-file-name { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--muted); }
|
|
.tm-file-copy { border: 1px solid var(--border); background: var(--card); color: var(--text);
|
|
font-size: 11px; padding: 3px 10px; border-radius: 6px; cursor: pointer; }
|
|
.tm-file-pre { margin: 0; padding: 12px; font-family: ui-monospace, monospace; font-size: 11.5px;
|
|
line-height: 1.55; color: var(--text); white-space: pre-wrap; word-break: break-word;
|
|
max-height: 340px; overflow-y: auto; background: var(--bg); }
|
|
@media (max-width: 820px) { .tm-wrap { grid-template-columns: 1fr; } .tm-conv-grid { grid-template-columns: 1fr; } }
|
|
|
|
/* —— ②.⑥ 提示词提取 —— */
|
|
.pm-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 18px; padding: 14px 18px; height: calc(100vh - 220px); overflow: hidden; }
|
|
.pm-input-col { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 4px; }
|
|
.pm-result-col { display: flex; flex-direction: column; overflow: hidden; }
|
|
.pm-result-head { display: flex; align-items: center; gap: 10px; padding: 0 0 8px; border-bottom: 1px solid var(--border); }
|
|
.pm-result-title { font-weight: 600; font-size: 14px; }
|
|
.pm-meta-model { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
|
|
.pm-meta-conf { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
|
|
.pm-conf-high { background: #1a3a1a; color: #4ade80; }
|
|
.pm-conf-medium { background: #3a2e0a; color: #fbbf24; }
|
|
.pm-conf-low { background: #3a1a1a; color: #ff6b6b; }
|
|
|
|
.pm-result-body { flex: 1; overflow-y: auto; padding-right: 4px; }
|
|
|
|
.pm-dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 28px 16px;
|
|
text-align: center; cursor: pointer; transition: border-color .2s; min-height: 150px; display: flex; align-items: center; justify-content: center; }
|
|
.pm-dropzone:hover, .pm-dropzone.drag { border-color: var(--accent); }
|
|
.pm-dz-icon { font-size: 36px; margin-bottom: 8px; }
|
|
.pm-dz-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
|
|
.pm-dz-sub { font-size: 12px; color: var(--muted); }
|
|
.pm-dz-preview { position: relative; }
|
|
.pm-dz-preview img { max-width: 100%; max-height: 200px; border-radius: 10px; object-fit: contain; }
|
|
.pm-dz-clear { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.65); color: #fff;
|
|
border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 14px; cursor: pointer; line-height: 1; }
|
|
|
|
.pm-field { display: flex; flex-direction: column; gap: 4px; }
|
|
.pm-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
|
|
.pm-row { display: flex; gap: 8px; align-items: center; }
|
|
.pm-row .pm-select { flex: 1; min-width: 0; }
|
|
.pm-row .btn { flex-shrink: 0; white-space: nowrap; }
|
|
.pm-select { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border);
|
|
background: var(--card); color: var(--text); font-size: 13px; }
|
|
.pm-hint { font-size: 11px; color: var(--muted); line-height: 1.4; }
|
|
.pm-gen { width: 100%; padding: 12px; font-size: 15px; font-weight: 600; border-radius: 10px; }
|
|
|
|
.pm-empty, .pm-loading, .pm-error { display: flex; flex-direction: column; align-items: center;
|
|
justify-content: center; text-align: center; padding: 40px 20px; }
|
|
.pm-empty-ico { font-size: 48px; margin-bottom: 12px; }
|
|
.pm-empty-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
|
|
.pm-empty-sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
|
|
.pm-empty-feats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
|
|
.pm-empty-feats span { font-size: 11px; background: var(--card-2); border: 1px solid var(--border);
|
|
padding: 3px 10px; border-radius: 14px; color: var(--muted); }
|
|
.pm-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent);
|
|
border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 12px; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.pm-loading-text { font-size: 13px; color: var(--muted); }
|
|
.pm-error { color: var(--danger); font-size: 13px; }
|
|
|
|
.pm-content { display: flex; flex-direction: column; gap: 12px; }
|
|
.pm-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--card); }
|
|
.pm-card.primary { border-color: var(--accent); border-width: 1.5px; }
|
|
.pm-card.subtle { background: var(--card-2); border-style: dashed; }
|
|
.pm-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
|
|
.pm-card-title { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
|
|
.pm-card-title em { font-style: normal; color: var(--accent); font-size: 10px; margin-left: 4px; }
|
|
.pm-prompt-text { font-size: 13.5px; line-height: 1.65; margin: 0; color: var(--text); }
|
|
.pm-prompt-text.mono { font-family: ui-monospace, monospace; font-size: 12px; }
|
|
.pm-prompt-text.zh-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
|
|
.pm-copy-btn { border: 1px solid var(--border); background: var(--card-2); color: var(--text);
|
|
font-size: 11px; padding: 3px 10px; border-radius: 6px; cursor: pointer; }
|
|
.pm-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
|
|
|
|
.pm-tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.pm-tag { font-size: 11px; background: var(--card-2); border: 1px solid var(--border);
|
|
padding: 3px 10px; border-radius: 14px; color: var(--text); }
|
|
|
|
.pm-breakdown { display: flex; flex-direction: column; gap: 6px; }
|
|
.pm-bd-row { display: flex; gap: 12px; padding: 8px 10px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--border); }
|
|
.pm-bd-label { display: flex; flex-direction: column; min-width: 90px; flex-shrink: 0; }
|
|
.pm-bd-label-zh { font-size: 12px; font-weight: 600; color: var(--text); }
|
|
.pm-bd-label-en { font-size: 10px; color: var(--muted); }
|
|
.pm-bd-values { display: flex; flex-direction: column; }
|
|
.pm-bd-zh { font-size: 12px; color: var(--text); line-height: 1.5; }
|
|
.pm-bd-en { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 1px; }
|
|
|
|
.pm-notes { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; padding: 10px 12px;
|
|
border-left: 3px solid var(--accent); background: var(--card-2); border-radius: 0 8px 8px 0; }
|
|
|
|
@media (max-width: 820px) { .pm-wrap { grid-template-columns: 1fr; } }
|
|
|
|
/* —— ②.⑦ Token 用量面板 —— */
|
|
.tk-body { padding: 14px 18px; max-width: 600px; display: flex; flex-direction: column; gap: 14px; }
|
|
.tk-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: var(--card); }
|
|
.tk-card.hero { text-align: center; padding: 28px 16px; border-color: var(--accent); border-width: 1.5px; background: linear-gradient(135deg, var(--card) 0%, var(--card-2) 100%); }
|
|
.tk-hero-num { font-size: 42px; font-weight: 700; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
|
|
.tk-hero-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
|
|
.tk-breakdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--muted); }
|
|
.tk-breakdown span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
|
|
.tk-breakdown b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
.tk-hero-date { font-size: 11px; color: var(--muted); margin-top: 2px; opacity: .7; }
|
|
|
|
.tk-card-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
|
|
|
|
.tk-preview { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
|
|
.tk-preview-bar { display: flex; justify-content: center; align-items: center; padding: 12px 14px; min-height: 58px; background: #211a16; border-bottom: 1px solid var(--border); }
|
|
.tk-preview-meter { position: relative; width: min(424px, 100%); height: 32px; }
|
|
.tk-preview-track { position: absolute; left: 0; right: 0; top: 50%; height: 28px; transform: translateY(-50%); border-radius: 8px; background: #fff; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.92) inset, 0 0 0 1px rgba(15,23,42,.10), 0 5px 16px rgba(0,0,0,.28); }
|
|
.tk-preview-segments { position: absolute; left: 18px; right: 72px; top: 50%; display: grid; grid-template-columns: repeat(8,1fr); gap: 3px; height: 12px; transform: translateY(-50%); }
|
|
.tk-preview-seg { position: relative; overflow: hidden; border-radius: 3px; transform: skewX(-7deg); background: linear-gradient(180deg,rgba(138,217,255,.22),rgba(23,103,204,.22)); box-shadow: 0 0 0 1px rgba(54,157,239,.18) inset; }
|
|
.tk-preview-seg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--tk-preview-seg-fill,0%); border-radius: inherit; background: linear-gradient(180deg,#52c8ff 0%,#2673dd 58%,#1554c5 100%); box-shadow: 0 0 9px rgba(42,163,255,.72), 0 1px 0 rgba(255,255,255,.45) inset; transition: width .6s ease; }
|
|
.tk-preview-badge { position: absolute; right: 18px; top: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px 0 5px; border-radius: 7px; transform: translateY(-50%); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0; white-space: nowrap; background: linear-gradient(180deg,#63c8ff 0%,#2c77df 64%,#1f60c9 100%); box-shadow: 0 0 12px rgba(53,159,246,.75), 0 1px 0 rgba(255,255,255,.45) inset; }
|
|
.tk-preview-check { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; background: #fff; color: #266bd5; font-size: 10px; line-height: 1; }
|
|
.tk-preview-cap { position: absolute; right: 7px; bottom: 4px; width: 10px; height: 12px; border-radius: 3px 3px 4px 4px; background: linear-gradient(180deg,#dcffff 0%,#61ddfb 100%); box-shadow: 0 0 8px rgba(82,222,255,.75); opacity: .95; }
|
|
.tk-preview-cap::before { content: ""; position: absolute; left: 2px; right: 2px; top: -3px; height: 3px; border-radius: 2px 2px 0 0; background: #cfffff; }
|
|
.tk-preview-input { padding: 10px 12px; font-size: 12px; color: var(--muted); }
|
|
.tk-row { display: flex; gap: 10px; align-items: center; }
|
|
.tk-diag { margin-top: 8px; word-break: break-all; }
|