/* ========================================================================= 爱马仕 · AI — Hermès Orange + Liquid Glass 风格库: ~/Projects/research/20260305-网页风格库/13-Liquid-Glass.md 主色: Hermès Orange #FF6900 ========================================================================= */ * { box-sizing: border-box; } :root { --orange: #ff6900; --orange-2: #ff8830; --orange-3: #ffa85a; --orange-dim: rgba(255,105,0,0.35); --orange-soft: rgba(255,105,0,0.10); /* 暗色(默认) */ --bg-0: #0c0e12; --bg-1: #141720; --bg-2: #1c2030; --aurora-a: #1a2040; --aurora-b: #241a36; --blob-1: #3b6eff; --blob-2: #6b3dff; --blob-3: #ff6900; --blob-4: #2b9efc; --blob-opa: 0.5; --panel-bg: rgba(255,255,255,0.04); --panel-border: rgba(255,255,255,0.10); --panel-border-strong: rgba(255,255,255,0.18); --panel-shadow: 0 10px 40px rgba(0,0,0,0.4); --panel-inset: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(255,255,255,0.04); --text: #f5f6f8; --text-dim: rgba(245,246,248,0.72); --text-dim2: rgba(245,246,248,0.48); --text-dim3: rgba(245,246,248,0.28); --line: rgba(255,255,255,0.10); --line-strong: rgba(255,255,255,0.18); --card-bg: rgba(255,255,255,0.03); --card-hover-bg: rgba(255,255,255,0.06); --input-bg: rgba(0,0,0,0.25); --msg-user-avatar: rgba(255,255,255,0.12); --ok: #6ef08d; --warn: #ffc83a; --err: #ff5d7a; } /* 明亮色 */ [data-theme="light"] { --bg-0: #f5f6fa; --bg-1: #eaecf3; --bg-2: #dfe3ee; --aurora-a: #e0e7ff; --aurora-b: #f1e5ff; --blob-1: #93b9ff; --blob-2: #c9a8ff; --blob-3: #ffb57a; --blob-4: #9fd4ff; --blob-opa: 0.55; --panel-bg: rgba(255,255,255,0.65); --panel-border: rgba(15,22,40,0.08); --panel-border-strong: rgba(15,22,40,0.14); --panel-shadow: 0 10px 40px rgba(60,80,120,0.18); --panel-inset: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(255,255,255,0.35); --text: #141a24; --text-dim: rgba(20,26,36,0.70); --text-dim2: rgba(20,26,36,0.48); --text-dim3: rgba(20,26,36,0.30); --line: rgba(15,22,40,0.08); --line-strong: rgba(15,22,40,0.14); --card-bg: rgba(255,255,255,0.55); --card-hover-bg: rgba(255,255,255,0.8); --input-bg: rgba(255,255,255,0.7); --msg-user-avatar: rgba(15,22,40,0.08); } html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg-0); overflow: hidden; -webkit-font-smoothing: antialiased; } a { color: var(--orange-3); text-decoration: none; } /* ========== 小卡片内部滚动 ========== */ :is(.card, .agent-card, .flow-card, .cron-item, .tool-chip, .stat, .top-agent-card, .day-detail, .cluster-col, .studio-stage, .help-card) { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255,105,0,0.45) transparent; } :is(.card, .agent-card, .flow-card, .cron-item, .tool-chip, .stat, .top-agent-card, .day-detail, .cluster-col, .studio-stage, .help-card)::-webkit-scrollbar { width: 8px; } :is(.card, .agent-card, .flow-card, .cron-item, .tool-chip, .stat, .top-agent-card, .day-detail, .cluster-col, .studio-stage, .help-card)::-webkit-scrollbar-track { background: transparent; } :is(.card, .agent-card, .flow-card, .cron-item, .tool-chip, .stat, .top-agent-card, .day-detail, .cluster-col, .studio-stage, .help-card)::-webkit-scrollbar-thumb { background: rgba(255,105,0,0.34); border: 2px solid transparent; border-radius: 999px; background-clip: content-box; } :is(.card, .agent-card, .flow-card, .cron-item, .tool-chip, .stat, .top-agent-card, .day-detail, .cluster-col, .studio-stage, .help-card):hover::-webkit-scrollbar-thumb { background: rgba(255,105,0,0.56); border: 2px solid transparent; background-clip: content-box; } /* ========== Aurora 背景 ========== */ .bg-aurora { position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse at 15% 15%, var(--aurora-a) 0%, var(--bg-0) 55%), radial-gradient(ellipse at 85% 85%, var(--aurora-b) 0%, transparent 60%); overflow: hidden; transition: background 0.4s ease; } .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--blob-opa); mix-blend-mode: screen; animation: float 60s ease-in-out infinite; transition: background 0.4s ease; } @media (prefers-reduced-motion: reduce) { .blob { animation: none; } } .blob-1 { width: 520px; height: 520px; top: -120px; left: -80px; background: var(--blob-1); } .blob-2 { width: 620px; height: 620px; bottom: -180px; right: -120px; background: var(--blob-2); animation-delay: -15s; } .blob-3 { display: none; } .blob-4 { display: none; } [data-theme="light"] .blob { mix-blend-mode: multiply; opacity: 0.35; } [data-theme="light"] body { background: var(--bg-0); } @keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 25% { transform: translate3d(60px, -40px, 0) scale(1.08); } 50% { transform: translate3d(-30px, 50px, 0) scale(0.95); } 75% { transform: translate3d(40px, 30px, 0) scale(1.05); } } /* ========== 主布局 ========== */ .app-shell { display: flex; height: 100vh; width: 100vw; padding: 14px; gap: 14px; min-width: 0; min-height: 0; overflow: hidden; } /* ========== 侧栏 (磨砂玻璃) ========== */ .sidebar { width: clamp(200px, 20vw, 250px); flex: 0 0 auto; display: flex; flex-direction: column; padding: 18px 14px; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 22px; backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: var(--panel-shadow), var(--panel-inset); transition: background 0.3s; min-height: 0; overflow: hidden; } .side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; } .hermes-tag { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 11px 7px; background: var(--orange); color: #111; border-radius: 4px; line-height: 1; letter-spacing: 1.8px; font-family: "Didot", "Bodoni 72", "SF Pro Display", -apple-system, serif; font-weight: 700; box-shadow: 0 2px 14px rgba(255,105,0,0.55); } .hermes-tag-top { font-size: 11px; } .hermes-tag-mid { font-size: 7px; margin-top: 2px; opacity: 0.8; letter-spacing: 1px; } .side-brand-text { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.3px; } .side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; } .side-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; background: transparent; color: var(--text-dim); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; border-radius: 12px; transition: all 0.2s; text-align: left; } .side-item svg { width: 18px; height: 18px; flex: 0 0 18px; } .side-item:hover { background: rgba(255,180,120,0.08); color: var(--text); } .side-item.active { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #1a0f08; box-shadow: 0 4px 14px rgba(255,105,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35); } /* 侧栏搜索 */ .side-search { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px 9px 34px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 10px; flex: 0 0 auto; transition: border-color 0.2s; } [data-theme="light"] .side-search { background: rgba(15,22,40,0.04); } .side-search:focus-within { border-color: var(--orange-dim); background: rgba(255,105,0,0.06); } .side-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-dim2); pointer-events: none; } .side-search input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-size: 12.5px; font-family: inherit; min-width: 0; } .side-search input::placeholder { color: var(--text-dim3); } .search-clear { background: transparent; border: 0; color: var(--text-dim2); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 4px; } .search-clear:hover { color: var(--text); } /* 会话历史列表 */ .side-history { flex: 1 1 auto; min-height: 0; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; } .side-history::-webkit-scrollbar { width: 4px; } .side-history::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 2px; } .side-history-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim3); font-weight: 700; padding: 6px 10px 8px; } .history-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: transparent; color: var(--text-dim); font-size: 13px; font-family: inherit; cursor: pointer; border-radius: 10px; transition: all 0.15s; text-align: left; position: relative; } .history-item:hover { background: rgba(255,255,255,0.06); color: var(--text); } [data-theme="light"] .history-item:hover { background: rgba(15,22,40,0.06); } .history-item.active { background: rgba(255,105,0,0.12); color: var(--text); box-shadow: inset 2px 0 0 var(--orange); } .history-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; } .history-del { flex: 0 0 auto; opacity: 0; background: transparent; border: 0; color: var(--text-dim2); font-size: 14px; line-height: 1; cursor: pointer; padding: 2px 4px; border-radius: 4px; transition: opacity 0.15s; } .history-item:hover .history-del { opacity: 1; } .history-del:hover { color: var(--err); background: rgba(255,93,122,0.12); } .history-empty { padding: 12px 10px; font-size: 12px; color: var(--text-dim3); text-align: center; } .history-item { flex-direction: column; align-items: stretch; gap: 4px; } .history-item-main { display: flex; align-items: center; gap: 8px; } .history-item-main .history-title { flex: 1; min-width: 0; } .history-item-tags { display: flex; gap: 4px; flex-wrap: wrap; padding-left: 2px; } .history-tag { font-size: 9px; padding: 1px 6px; background: rgba(255,105,0,0.14); color: var(--orange-3); border-radius: 6px; border: 1px solid rgba(255,105,0,0.25); font-weight: 600; } .history-act { display: flex; gap: 2px; margin-left: 4px; opacity: 0; transition: opacity 0.15s; } .history-item:hover .history-act { opacity: 1; } .history-act button { background: transparent; border: 0; padding: 2px 4px; color: var(--text-dim2); cursor: pointer; border-radius: 4px; line-height: 1; font-size: 14px; } .history-act button:hover { color: var(--text); background: rgba(255,255,255,0.08); } [data-theme="light"] .history-act button:hover { background: rgba(15,22,40,0.08); } .history-act button.danger:hover { color: var(--err); background: rgba(255,93,122,0.12); } /* Emoji / 品牌图标 选择器 */ .modal-md { max-width: 560px; } .emoji-input-wrap { display: flex; align-items: center; gap: 12px; flex: 1; } .emoji-preview { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,105,0,0.2), rgba(255,136,48,0.08)); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 26px; cursor: pointer; transition: transform 0.15s; flex: 0 0 48px; overflow: hidden; } .emoji-preview:hover { transform: scale(1.05); border-color: var(--orange); } .emoji-preview svg { width: 100%; height: 100%; display: block; } .emoji-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim2); font-weight: 700; padding: 4px 2px 10px; } .emoji-search-wrap { margin-bottom: 12px; } .emoji-search-wrap input { width: 100%; background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text); padding: 9px 14px; border-radius: 10px; font-family: inherit; font-size: 13px; outline: none; } .emoji-search-wrap input:focus { border-color: var(--orange); } .emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; margin-bottom: 14px; padding-right: 4px; } .emoji-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: all 0.15s; background: transparent; overflow: hidden; } .emoji-cell:hover { background: rgba(255,105,0,0.12); border-color: var(--orange-dim); transform: scale(1.08); } .emoji-cell svg { width: 80%; height: 80%; display: block; } .brand-grid .emoji-cell { background: var(--card-bg); border: 1px solid var(--line); aspect-ratio: 1.1; font-size: 18px; font-weight: 800; font-family: "Didot", "Bodoni 72", serif; } .brand-grid .emoji-cell.brand-hermes { background: var(--orange); color: #1a0f08; border-color: var(--orange); } .brand-grid .emoji-cell.brand-milejoy { background: linear-gradient(135deg, #1a4fff, #3b6eff); color: #fff; border-color: #3b6eff; font-family: "SF Pro Display", -apple-system, sans-serif; } .brand-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); } /* Skills picker */ .skills-picker { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; } .skill-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid var(--line-strong); background: var(--card-bg); color: var(--text-dim); border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; transition: all 0.2s; user-select: none; } .skill-chip:hover { color: var(--text); background: var(--card-hover-bg); } .skill-chip.on { background: rgba(255,105,0,0.14); border-color: var(--orange-dim); color: var(--orange-3); box-shadow: inset 0 0 0 1px rgba(255,105,0,0.25); } .skill-chip .skill-ico { font-size: 14px; line-height: 1; } .skill-chip.custom { border-style: dashed; } .skill-chip.custom.on { border-style: solid; } .skill-chip .skill-edit { margin-left: 4px; padding: 0 4px; font-size: 11px; color: var(--text-dim2); border-radius: 4px; transition: all 0.15s; } .skill-chip .skill-edit:hover { color: var(--orange); background: rgba(255,105,0,0.15); } .skill-chip.skill-add { border-style: dashed; color: var(--text-dim2); background: transparent; } .skill-chip.skill-add:hover { color: var(--orange-3); border-color: var(--orange-dim); background: rgba(255,105,0,0.08); } .skill-chip.skill-add .skill-ico { font-weight: 800; } /* Skill 选中状态下的序号 + 上下移动 */ .skill-chip.on .skill-order { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; background: var(--orange); color: #1a0f08; border-radius: 50%; font-size: 10px; font-weight: 800; margin-right: 2px; } .skill-chip .skill-order { display: none; } .skill-chip .skill-move { display: none; gap: 1px; margin-left: 4px; } .skill-chip.on .skill-move { display: inline-flex; } .skill-chip .skill-move button { background: transparent; border: 0; color: var(--text-dim2); font-size: 10px; width: 14px; height: 14px; line-height: 1; cursor: pointer; padding: 0; border-radius: 3px; } .skill-chip .skill-move button:hover { color: var(--orange); background: rgba(255,105,0,0.15); } /* Skill 分区标题 */ .skills-section-label { flex: 1 0 100%; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim3); font-weight: 700; padding: 6px 2px 2px; margin: 0; } .skills-section-label:first-child { padding-top: 0; } /* Flow (编排) */ .flow-intro { font-size: 12px; color: var(--text-dim); line-height: 1.6; padding: 10px 14px; background: rgba(255,105,0,0.06); border: 1px solid rgba(255,105,0,0.18); border-radius: 10px; margin-bottom: 14px; } .flow-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; } .flow-list, .flow-apply-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; } .flow-card { padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; transition: all 0.2s; cursor: pointer; display: flex; flex-direction: column; gap: 8px; max-height: min(240px, 42vh); /* 卡片层不再单独磨砂 */ } .flow-card:hover { background: var(--card-hover-bg); border-color: var(--orange-dim); transform: translateY(-2px); } .flow-card-head { display: flex; align-items: center; gap: 10px; } .flow-card-emoji { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, rgba(255,105,0,0.22), rgba(255,136,48,0.08)); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 36px; } .flow-card-meta { flex: 1; min-width: 0; } .flow-card-name { font-size: 14px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; } .flow-card-desc { font-size: 11px; color: var(--text-dim2); margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; } .flow-card-skills { display: flex; flex-wrap: wrap; gap: 4px; } .flow-card-skills .mini-skill { font-size: 10px; padding: 2px 7px; background: rgba(255,105,0,0.1); color: var(--orange-3); border: 1px solid rgba(255,105,0,0.25); border-radius: 5px; font-weight: 600; overflow-wrap: anywhere; } .flow-card-actions { display: flex; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); } .flow-card-actions button { flex: 1; padding: 6px 8px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); background: transparent; color: var(--text-dim); border-radius: 7px; cursor: pointer; font-family: inherit; } .flow-card-actions button:hover { color: var(--text); background: var(--card-hover-bg); } .flow-card-actions button.danger:hover { color: var(--err); border-color: rgba(255,93,122,0.4); background: rgba(255,93,122,0.08); } .flow-card.builtin .flow-card-actions button.edit, .flow-card.builtin .flow-card-actions button.danger { display: none; } .flow-card.builtin::after { content: "内建"; position: absolute; top: 12px; right: 12px; font-size: 9px; padding: 1px 6px; background: rgba(255,255,255,0.08); color: var(--text-dim2); border-radius: 4px; font-weight: 700; } .flow-card { position: relative; } /* ========== Skill Studio (全屏 3 栏编排) ========== */ .studio-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; gap: 14px; overflow: hidden; } @media (max-width: 1200px) { .studio-grid { grid-template-columns: 240px minmax(0, 1fr); } .studio-preview-col { display: none; } } @media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; } .studio-library { max-height: 260px; } } .studio-col { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-height: 0; min-width: 0; } .studio-col-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex: 0 0 auto; flex-wrap: wrap; } .studio-tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; } .studio-tab { padding: 6px 11px; background: transparent; border: 0; color: var(--text-dim2); font-size: 11px; font-weight: 700; font-family: inherit; cursor: pointer; border-radius: 8px; white-space: nowrap; } .studio-tab:hover { color: var(--text); background: rgba(255,255,255,0.06); } .studio-tab.active { color: #1a0f08; background: var(--orange); } .studio-search { background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 11px; font-family: inherit; outline: none; width: 100%; margin-top: 4px; } .studio-search:focus { border-color: var(--orange); } .studio-list { flex: 1 1 auto; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; } .studio-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim3); font-weight: 800; padding: 10px 8px 4px; } .studio-skill-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: all 0.15s; background: transparent; } .studio-skill-item:hover { background: rgba(255,255,255,0.05); border-color: var(--line); } .studio-skill-item.active { background: rgba(255,105,0,0.12); border-color: var(--orange-dim); } .studio-skill-icon { width: 26px; height: 26px; flex: 0 0 26px; display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: 7px; background: linear-gradient(135deg, rgba(255,105,0,0.2), rgba(255,136,48,0.06)); border: 1px solid var(--line-strong); } .studio-skill-meta { flex: 1; min-width: 0; } .studio-skill-name { font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .studio-skill-desc { font-size: 10.5px; color: var(--text-dim2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .studio-skill-src { font-size: 9px; padding: 1px 6px; background: rgba(255,255,255,0.06); color: var(--text-dim3); border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; } /* 画布 */ .studio-canvas-col .studio-col-head { flex-wrap: wrap; gap: 6px; } .studio-flow-title { flex: 1 1 200px; background: transparent; border: 0; color: var(--text); font-size: 16px; font-weight: 800; font-family: inherit; outline: none; padding: 4px 0; } .studio-flow-title::placeholder { color: var(--text-dim3); } .studio-flow-meta { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; } .studio-flow-emoji { width: 34px !important; height: 34px !important; font-size: 18px !important; flex: 0 0 34px !important; } .studio-desc { flex: 1; background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); padding: 6px 10px; font-size: 11px; font-family: inherit; outline: none; } .studio-desc:focus { border-color: var(--orange); } .studio-canvas { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; align-items: stretch; } .studio-stage { background: rgba(255,255,255,0.03); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 14px 18px 16px; min-height: 100px; max-height: min(250px, 38vh); transition: border-color 0.15s, background 0.15s; } .studio-stage.drop-hover { border-color: var(--orange); background: rgba(255,105,0,0.08); } .studio-stage-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .studio-stage-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #1a0f08; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: 0 0 26px; } .studio-stage-name { font-size: 14px; font-weight: 800; color: var(--text); } .studio-stage-desc { font-size: 11px; color: var(--text-dim2); flex: 1; text-align: right; } .studio-stage-slots { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; padding: 6px; background: rgba(0,0,0,0.15); border-radius: 10px; } [data-theme="light"] .studio-stage-slots { background: rgba(15,22,40,0.04); } .studio-slot-empty { font-size: 11px; color: var(--text-dim3); padding: 8px 12px; font-style: italic; } .studio-slot-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(255,105,0,0.15); border: 1px solid var(--orange-dim); color: var(--orange-3); border-radius: 8px; font-size: 11px; font-weight: 700; cursor: grab; } .studio-slot-chip .slot-order { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: var(--orange); color: #1a0f08; border-radius: 50%; font-size: 9px; font-weight: 800; } .studio-slot-chip .slot-del { background: transparent; border: 0; color: inherit; padding: 0 2px; cursor: pointer; font-size: 14px; line-height: 1; opacity: 0.6; } .studio-slot-chip .slot-del:hover { opacity: 1; color: var(--err); } .studio-stage-arrow { text-align: center; color: var(--orange-dim); font-size: 18px; font-weight: 800; padding: 6px 0; } /* 预览 */ .studio-preview { flex: 1 1 auto; overflow-y: auto; padding: 16px 18px; } .studio-preview h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--text); } .studio-preview .studio-preview-desc { font-size: 12px; color: var(--text-dim2); margin-bottom: 12px; } .studio-preview .studio-preview-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; } .studio-preview-tags .tag { font-size: 10px; padding: 2px 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 4px; color: var(--text-dim); } .studio-preview-body { font-size: 12px; line-height: 1.7; color: var(--text-dim); white-space: pre-wrap; word-wrap: break-word; max-height: calc(100% - 120px); overflow-y: auto; padding: 12px; background: rgba(0,0,0,0.15); border-radius: 8px; border: 1px solid var(--line); font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; } [data-theme="light"] .studio-preview-body { background: rgba(15,22,40,0.04); } .studio-preview-add { margin-top: 12px; width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--orange-dim); background: rgba(255,105,0,0.1); color: var(--orange-3); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; } .studio-preview-add:hover { background: var(--orange); color: #1a0f08; } /* flow-skill-picker: 在 flow 编辑 modal 里用 */ .flow-skill-picker { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; padding: 12px; background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: 10px; min-height: 60px; } /* Agent card 上的 skill 小标 */ .agent-skills { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 4px; } .agent-skills .mini-skill { font-size: 11px; padding: 2px 8px; background: rgba(255,105,0,0.1); color: var(--orange-3); border: 1px solid rgba(255,105,0,0.25); border-radius: 6px; font-weight: 600; overflow-wrap: anywhere; } /* Agent picker 列表 */ .agent-picker-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; padding-right: 4px; } .agent-picker-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: all 0.15s; } .agent-picker-item:hover { background: rgba(255,105,0,0.08); border-color: var(--orange-dim); transform: translateX(2px); } .agent-picker-item.active { border-color: var(--orange); background: rgba(255,105,0,0.12); } .agent-picker-item .ap-emoji { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, rgba(255,105,0,0.22), rgba(255,136,48,0.08)); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 40px; } .agent-picker-item .ap-body { flex: 1; min-width: 0; } .agent-picker-item .ap-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .agent-picker-item .ap-desc { font-size: 12px; color: var(--text-dim2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .agent-picker-item .ap-check { margin-left: auto; font-size: 18px; color: var(--orange); } /* 聊天顶部当前智能体徽章 */ .chat-agent-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; background: rgba(255,105,0,0.12); border: 1px solid var(--orange-dim); border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--orange-3); transition: all 0.15s; } .chat-agent-badge:hover { background: rgba(255,105,0,0.22); } .chat-agent-badge .ag-emoji { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 13px; } .side-bottom { padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; } /* 主题切换按钮 */ .theme-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 600; font-family: inherit; border-radius: 12px; cursor: pointer; transition: all 0.2s; } .theme-toggle:hover { background: rgba(255,255,255,0.06); color: var(--text); } [data-theme="light"] .theme-toggle:hover { background: rgba(15,22,40,0.06); } .theme-toggle svg { width: 16px; height: 16px; flex: 0 0 16px; } .theme-toggle .icon-sun { display: none; } .theme-toggle .icon-moon { display: inline-block; } [data-theme="light"] .theme-toggle .icon-sun { display: inline-block; } [data-theme="light"] .theme-toggle .icon-moon { display: none; } [data-theme="light"] .theme-toggle .theme-label::before { content: "暗色"; } .theme-toggle .theme-label::before { content: "明亮"; } .theme-toggle .theme-label { color: inherit; } .theme-toggle .theme-label:empty::before { content: inherit; } .side-new { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border: 1px solid var(--line-strong); background: rgba(255,105,0,0.08); color: var(--orange-3); font-size: 13px; font-weight: 700; font-family: inherit; border-radius: 12px; cursor: pointer; transition: all 0.2s; } .side-new svg { width: 14px; height: 14px; } .side-new:hover { background: rgba(255,105,0,0.16); color: var(--text); } .side-status { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 11px; color: var(--text-dim2); font-weight: 500; } .side-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px currentColor; transition: background .3s; } .side-status.ok .dot { background: var(--ok); } .side-status.err .dot { background: var(--err); } /* ========== 主区 (磨砂玻璃) ========== */ .main { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 22px; backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: var(--panel-shadow), var(--panel-inset); overflow: hidden; position: relative; transition: background 0.3s; } .tab-panel { display: none; flex: 1 1 auto; flex-direction: column; padding: 22px 28px; overflow: hidden; min-width: 0; min-height: 0; } .tab-panel.active { display: flex; } @keyframes fadeIn { from{opacity:0} to{opacity:1} } .panel-head { padding: 4px 4px 18px; flex: 0 0 auto; } .panel-head h2 { margin: 0 0 4px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.3px; } .panel-head p { margin: 0; color: var(--text-dim); font-size: 13px; } /* ========== Chat ========== */ .chat-topbar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); flex: 0 0 auto; flex-wrap: wrap; } .chat-topbar-title { font-size: 15px; font-weight: 700; flex: 1 1 180px; color: var(--text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-model-pick select { background: var(--input-bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 14px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; outline: none; } .chat-model-pick select:focus { border-color: var(--orange); } .chat-clear { background: transparent; border: 1px solid var(--line-strong); color: var(--text-dim); border-radius: 10px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; } .chat-clear:hover { color: var(--text); background: rgba(255,105,0,0.08); border-color: var(--orange-dim); } .gpt-messages { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 20px 6px 20px 4px; display: flex; flex-direction: column; gap: 24px; scroll-behavior: smooth; min-height: 0; min-width: 0; } .gpt-messages::-webkit-scrollbar { width: 8px; } .gpt-messages::-webkit-scrollbar-thumb { background: rgba(255,180,120,0.12); border-radius: 4px; } .gpt-messages::-webkit-scrollbar-thumb:hover { background: rgba(255,180,120,0.24); } /* GPT 式消息行 */ .msg { display: flex; gap: 14px; align-items: flex-start; max-width: 820px; width: 100%; margin: 0 auto; } /* 只对 "新加进来" 的最后一条做淡入,历史渲染不播动画 */ .msg.msg-in { animation: msgIn 0.25s ease-out; } @keyframes msgIn { from { opacity:0; transform: translateY(4px); } to { opacity:1; transform: translateY(0);} } .msg-avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; user-select: none; } .msg.user .msg-avatar { background: var(--msg-user-avatar); color: var(--text); } .msg.assistant .msg-avatar { background: var(--orange); color: #1a0f08; font-family: "Didot", "Bodoni 72", serif; font-size: 16px; box-shadow: 0 2px 10px rgba(255,105,0,0.5); } .msg-body { flex: 1; min-width: 0; } .msg-name { font-size: 12px; font-weight: 700; color: var(--text-dim2); margin-bottom: 6px; letter-spacing: 0.3px; } .msg.assistant .msg-name { color: var(--orange-3); } .msg-content { font-size: 15px; line-height: 1.75; color: var(--text); word-wrap: break-word; white-space: pre-wrap; } .msg.error { justify-content: center; } .msg.error .msg-content { display: inline-block; background: rgba(255,93,122,0.1); border: 1px solid rgba(255,93,122,0.3); color: #ffb6c3; font-size: 13px; padding: 10px 16px; border-radius: 12px; } .thinking { display: inline-flex; gap: 4px; padding: 8px 0; } .thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-3); animation: dot 1.4s infinite; } .thinking span:nth-child(2) { animation-delay: 0.2s; } .thinking span:nth-child(3) { animation-delay: 0.4s; } @keyframes dot { 0%,60%,100%{opacity:0.3;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} } /* 消息底部操作按钮 */ .msg-actions { display: flex; gap: 6px; margin-top: 8px; opacity: 0; transition: opacity 0.2s; } .msg:hover .msg-actions { opacity: 1; } .msg-action-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); background: transparent; color: var(--text-dim2); border-radius: 8px; cursor: pointer; font-family: inherit; transition: all 0.15s; } .msg-action-btn:hover { color: var(--orange-3); border-color: var(--orange-dim); background: rgba(255,105,0,0.08); } .msg-content.streaming::after { content: "▋"; display: inline-block; color: var(--orange); animation: blink 1s infinite; margin-left: 2px; } /* 空对话品牌欢迎页 */ .welcome-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; } .welcome-hermes-tag { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 38px 22px; background: var(--orange); color: #111; border-radius: 6px; line-height: 1; font-family: "Didot", "Bodoni 72", "SF Pro Display", serif; font-weight: 700; box-shadow: 0 16px 50px rgba(255,105,0,0.4), 0 0 0 1px rgba(26,15,8,0.2); margin-bottom: 36px; position: relative; } .welcome-hermes-tag::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(26,15,8,0.35); border-radius: 3px; pointer-events: none; } .welcome-hermes-tag .wh-top { font-size: 38px; letter-spacing: 6px; } .welcome-hermes-tag .wh-mid { font-size: 11px; margin-top: 8px; letter-spacing: 4px; opacity: 0.78; } .welcome-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; background: linear-gradient(135deg, var(--text), var(--text-dim)); -webkit-background-clip: text; background-clip: text; color: transparent; } .welcome-sub { font-size: 13px; color: var(--text-dim2); margin-bottom: 32px; } .welcome-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 680px; } .welcome-chips .chip { padding: 11px 18px; font-size: 13px; font-weight: 500; background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; color: var(--text-dim); transition: all 0.2s; } .welcome-chips .chip:hover { background: rgba(255,105,0,0.1); border-color: var(--orange-dim); color: var(--orange-3); transform: translateY(-2px); } @keyframes blink { 0%,50%{opacity:1} 51%,100%{opacity:0} } /* 输入框 */ .gpt-input-wrap { flex: 0 0 auto; padding: 10px 0 0; max-width: 820px; margin: 0 auto; width: 100%; } .gpt-input-box { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 12px 20px; background: var(--input-bg); border: 1px solid var(--panel-border-strong); border-radius: 22px; box-shadow: 0 6px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08); transition: all 0.2s; /* blur 已在外壳统一处理,内部卡片不再单独磨砂以降低合成成本 */ } .gpt-input-box:focus-within { border-color: var(--orange); box-shadow: 0 6px 22px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,105,0,0.15); } .gpt-input-box textarea { flex: 1; background: transparent; border: 0; resize: none; outline: none; color: var(--text); font-size: 15px; font-family: inherit; line-height: 1.5; padding: 8px 0; max-height: 200px; } .gpt-input-box textarea::placeholder { color: var(--text-dim3); } .send-btn { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--orange); color: #1a0f08; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 2.2); box-shadow: 0 3px 12px rgba(255,105,0,0.45); } .send-btn:hover { transform: scale(1.08); background: var(--orange-2); } .send-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; background: rgba(255,255,255,0.15); box-shadow: none; color: var(--text-dim); } .gpt-footnote { text-align: center; margin-top: 10px; padding-bottom: 4px; font-size: 11px; color: var(--text-dim3); } /* 输入框左侧 @ 按钮 */ .input-at { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-dim2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; transition: all 0.2s; align-self: flex-end; } .input-at:hover { color: var(--orange); border-color: var(--orange-dim); background: rgba(255,105,0,0.1); } .input-at.active { color: #1a0f08; background: var(--orange); border-color: var(--orange); } /* 本次使用 agent 提示条 */ .pending-agent-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; margin-bottom: 8px; background: rgba(255,105,0,0.1); border: 1px solid var(--orange-dim); border-radius: 12px; font-size: 12px; color: var(--orange-3); } .pending-agent-bar .pa-label { font-weight: 700; opacity: 0.85; } .pending-agent-bar .pa-emoji { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(255,255,255,0.14); font-size: 13px; } .pending-agent-bar .pa-name { font-weight: 700; color: var(--text); } .pending-agent-bar .pa-clear { margin-left: auto; background: transparent; border: 0; color: var(--text-dim); font-size: 16px; cursor: pointer; padding: 2px 8px; border-radius: 6px; } .pending-agent-bar .pa-clear:hover { background: rgba(255,255,255,0.1); color: var(--text); } /* 消息上的 agent 标识(非默认 assistant) */ .msg.assistant[data-agent] .msg-name::after { content: ""; } /* ========== 研究 ========== */ .grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; overflow-y: auto; padding-right: 6px; flex: 1 1 auto; min-height: 0; align-content: start; } .card { padding: 24px 22px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; transition: transform 0.2s, border-color 0.2s; max-height: min(280px, 42vh); } .card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--card-hover-bg); box-shadow: 0 12px 30px rgba(0,0,0,0.25); } .card-icon { font-size: 28px; margin-bottom: 12px; } .card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); overflow-wrap: anywhere; } .card-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; overflow-wrap: anywhere; } .glass-btn-sm { margin-top: 14px; padding: 8px 18px; font-size: 12px; font-weight: 700; border: 1px solid var(--orange-dim); border-radius: 10px; background: rgba(255,105,0,0.1); color: var(--orange-3); cursor: pointer; transition: all 0.25s; font-family: inherit; } .glass-btn-sm:hover { background: var(--orange); color: #1a0f08; border-color: var(--orange); } /* ========== 仪表盘 ========== */ .dash-scroll { flex: 1; overflow-y: auto; padding-right: 6px; } .dash-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim2); font-weight: 700; padding: 18px 4px 12px; } /* Hero 大区块 */ .dash-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; padding: clamp(20px, 3vw, 32px) clamp(22px, 3vw, 36px); margin-bottom: 18px; background: linear-gradient(135deg, rgba(255,105,0,0.12), rgba(255,105,0,0.03) 60%, rgba(255,255,255,0.04)); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; position: relative; } .dash-hero::before { content: ""; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%; background: radial-gradient(ellipse, rgba(255,105,0,0.18), transparent 70%); pointer-events: none; } [data-theme="light"] .dash-hero { background: linear-gradient(135deg, rgba(255,105,0,0.1), rgba(255,255,255,0.6) 60%, rgba(255,255,255,0.4)); } .dash-hero-main { position: relative; z-index: 1; } .dash-hero-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim2); font-weight: 700; margin-bottom: 10px; } .dash-hero-num { font-size: clamp(48px, 7vw, 88px); font-weight: 900; line-height: 1; letter-spacing: -3px; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #ff6900 0%, #ff8830 50%, #ffa85a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 4px 0 14px; } .dash-hero-sub { font-size: 14px; color: var(--text-dim); font-weight: 500; } .dash-hero-dot { margin: 0 8px; color: var(--text-dim3); } .dash-hero-side { display: flex; flex-direction: column; gap: 14px; justify-content: center; position: relative; z-index: 1; } .hero-side-item { padding: 12px 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); } [data-theme="light"] .hero-side-item { background: rgba(255,255,255,0.55); } .hero-side-num { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; line-height: 1.1; } .hero-side-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim2); font-weight: 700; margin-top: 2px; } .hero-side-sub { font-size: 11px; color: var(--text-dim3); margin-top: 1px; } /* 大号 stat 卡片带图标 */ .dash-grid-lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding-right: 0; margin-bottom: 18px; } .stat-lg { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px !important; } .stat-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,105,0,0.18), rgba(255,136,48,0.08)); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--orange-3); } .stat-body { flex: 1; min-width: 0; } .pill-ok { font-size: 12px; color: var(--ok); margin-left: 4px; } /* 最常用智能体大卡 */ .top-agent-card { display: flex; align-items: flex-start; gap: 18px; padding: 22px 26px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 18px; max-height: min(190px, 34vh); /* blur 已在外壳统一处理,内部卡片不再单独磨砂以降低合成成本 */ } .top-agent-avatar { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: linear-gradient(135deg, rgba(255,105,0,0.22), rgba(255,136,48,0.1)); border: 1px solid var(--line-strong); flex: 0 0 58px; } .top-agent-info { flex: 1; min-width: 0; } .top-agent-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim2); font-weight: 700; margin-bottom: 4px; } .top-agent-name { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; overflow-wrap: anywhere; } .top-agent-sub { font-size: 12px; color: var(--text-dim); margin-top: 3px; overflow-wrap: anywhere; } /* 活动热力图 */ .heatmap-wrap { padding: 20px 22px 18px; background: linear-gradient(135deg, rgba(255,105,0,0.08), rgba(255,255,255,0.035) 42%, rgba(255,178,89,0.035)), var(--card-bg); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 18px; overflow: hidden; } [data-theme="light"] .heatmap-wrap { background: linear-gradient(135deg, rgba(255,105,0,0.08), rgba(255,255,255,0.68) 48%, rgba(255,178,89,0.08)), var(--card-bg); } .heatmap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); min-width: 0; } .heatmap-kicker { color: var(--orange-3); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 5px; } .heatmap-head h3 { margin: 0; color: var(--text); font-size: 17px; font-weight: 850; letter-spacing: -0.3px; } .heatmap-head p { margin: 5px 0 0; color: var(--text-dim2); font-size: 12px; line-height: 1.55; } .heatmap-metrics { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; } .heatmap-metrics span { border: 1px solid rgba(255,105,0,0.24); background: rgba(255,105,0,0.08); color: var(--orange-3); border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; } .heatmap-board { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,0.12); overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; } [data-theme="light"] .heatmap-board { background: rgba(15,22,40,0.035); } .heatmap-months { display: grid; grid-template-columns: 28px repeat(var(--hm-cols, 16), minmax(12px, 22px)); gap: 5px; justify-content: space-between; min-width: 420px; margin-bottom: 6px; } .hm-month-label { color: var(--text-dim3); font-size: 10px; font-weight: 800; line-height: 1; white-space: nowrap; overflow: visible; } .hm-month-spacer { min-width: 28px; } .heatmap { display: grid; grid-template-columns: 28px repeat(var(--hm-cols, 16), minmax(12px, 22px)); grid-auto-rows: clamp(13px, 1.8vw, 20px); gap: 5px; justify-content: space-between; width: 100%; min-width: 420px; } .hm-row-label { font-size: 10px; color: var(--text-dim3); font-weight: 800; text-align: right; padding-right: 6px; align-self: center; line-height: 1; } .hm-cell { width: 100%; height: 100%; min-width: 12px; border-radius: 5px; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.07); cursor: pointer; position: relative; transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease; } [data-theme="light"] .hm-cell { background: rgba(15,22,40,0.045); border-color: rgba(15,22,40,0.06); } .hm-cell:hover { transform: translateY(-2px) scale(1.08); border-color: rgba(255,178,89,0.75); box-shadow: 0 8px 18px rgba(0,0,0,0.24), 0 0 0 2px rgba(255,105,0,0.2); filter: saturate(1.08); z-index: 2; } .hm-cell.lvl-1 { background: rgba(255,178,89,0.24); border-color: rgba(255,178,89,0.28); } .hm-cell.lvl-2 { background: rgba(255,136,48,0.42); border-color: rgba(255,136,48,0.46); } .hm-cell.lvl-3 { background: linear-gradient(135deg, rgba(255,105,0,0.72), rgba(255,178,89,0.52)); border-color: rgba(255,136,48,0.76); } .hm-cell.lvl-4 { background: linear-gradient(135deg, #ff6900, #ffb259); border-color: rgba(255,178,89,0.9); box-shadow: 0 0 18px rgba(255,105,0,0.28); } .hm-cell.sel { outline: 2px solid rgba(255,210,150,0.95); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(255,105,0,0.12), 0 12px 22px rgba(0,0,0,0.25); z-index: 3; } .hm-cell.future { opacity: 0.3; cursor: default; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255,255,255,0.035) 4px 8px); border-style: dashed; } .hm-cell.future:hover { transform: none; box-shadow: none; border-color: var(--line); } .heatmap-legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; justify-content: flex-end; font-size: 11px; color: var(--text-dim2); font-weight: 700; } .heatmap-legend .hm-cell { width: 16px; height: 16px; cursor: default; flex: 0 0 16px; min-width: 16px; } .heatmap-legend .hm-cell:hover { transform: none; box-shadow: none; } /* 日详情 */ .day-detail { padding: 18px 20px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; min-height: 100px; max-height: min(340px, 48vh); margin-bottom: 10px; /* 卡片层不再单独磨砂 */ } .day-detail h4 { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; } .day-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 14px; } .day-stat { display: flex; flex-direction: column; } .day-stat .num { font-size: 20px; font-weight: 800; color: var(--orange-3); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; } .day-stat .lbl { font-size: 11px; color: var(--text-dim2); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; margin-top: 2px; } .day-convos { display: flex; flex-direction: column; gap: 8px; } .day-convo-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: all 0.15s; } [data-theme="light"] .day-convo-item { background: rgba(15,22,40,0.03); } .day-convo-item:hover { background: var(--card-hover-bg); border-color: var(--line-strong); } .day-convo-title { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; } .day-convo-meta { font-size: 11px; color: var(--text-dim2); white-space: nowrap; } .dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding-right: 0; align-content: start; margin-bottom: 18px; } .deploy-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; } .deploy-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); transition: border-color 0.2s, background 0.2s, transform 0.2s; min-width: 0; } .deploy-link:hover { border-color: var(--orange-3); background: var(--card-hover-bg); transform: translateY(-1px); } .deploy-link-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, rgba(255,105,0,0.18), rgba(255,136,48,0.08)); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--orange-3); } .deploy-link-body { flex: 1 1 auto; min-width: 0; } .deploy-link-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim2); font-weight: 700; margin-bottom: 3px; } .deploy-link-url { font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; } .deploy-link-arrow { flex: 0 0 14px; color: var(--text-dim2); transition: color 0.2s; } .deploy-link:hover .deploy-link-arrow { color: var(--orange-3); } .stat { padding: 20px 22px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.2s, background 0.2s; max-height: min(190px, 34vh); } .stat:hover { border-color: var(--line-strong); background: var(--card-hover-bg); } .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim2); font-weight: 700; } .stat-value { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin: 6px 0; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .stat-sub { font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; } /* ========== 机器人集成 ========== */ .integrations-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 8px 8px 0; display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; align-content: start; } .integration-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; } .integration-channel-card, .integration-panel { background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; min-width: 0; } .integration-channel-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s, background 0.2s; } .integration-channel-card.active { border-color: rgba(255,105,0,0.4); background: rgba(255,105,0,0.08); box-shadow: inset 0 0 0 1px rgba(255,105,0,0.12); } .integration-channel-card.muted { opacity: 0.72; } .integration-channel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } .integration-channel-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,105,0,0.18), rgba(255,136,48,0.06)); border: 1px solid var(--line-strong); color: var(--orange-3); display: flex; align-items: center; justify-content: center; flex: 0 0 38px; } .integration-channel-icon svg { width: 20px; height: 20px; } .integration-status { flex: 0 0 auto; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; } .integration-status.ready { border: 1px solid rgba(80,220,140,0.32); background: rgba(80,220,140,0.1); color: #68d391; } .integration-status.pending { border: 1px solid var(--line); background: rgba(255,255,255,0.035); color: var(--text-dim2); } .integration-channel-title { color: var(--text); font-size: 15px; font-weight: 800; letter-spacing: -0.2px; } .integration-channel-desc { color: var(--text-dim2); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; } .integration-panel { display: flex; flex-direction: column; min-height: 0; } .integration-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 16px; border-bottom: 1px solid var(--line); min-width: 0; } .integration-panel-title { color: var(--text); font-size: 16px; font-weight: 800; letter-spacing: -0.25px; } .integration-panel-desc { color: var(--text-dim2); font-size: 12px; line-height: 1.45; margin-top: 3px; } .integration-panel-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; } @media (max-width: 980px) { .integrations-scroll { grid-template-columns: 1fr; } .integration-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } } /* ========== 设置 ========== */ .settings-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 10px 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; align-items: start; gap: 16px; } .settings-group.wide { grid-column: 1 / -1; } .settings-group { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; flex: 0 0 auto; display: flex; flex-direction: column; min-width: 0; min-height: auto; overflow: visible; } .settings-group.wide { min-height: auto; } .settings-group-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); min-width: 0; } .settings-group-head > div:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; } .settings-group-icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,105,0,0.2), rgba(255,136,48,0.08)); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--orange-3); flex: 0 0 40px; } .settings-group-icon svg { width: 20px; height: 20px; } .settings-group-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .settings-group-desc { font-size: 12px; color: var(--text-dim2); margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; } .settings-group-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow: visible; } .settings-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; } .settings-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .settings-field > label { font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.2px; } .settings-field.toggle-field { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; } .settings-field.toggle-field > div:first-child { flex: 1 1 200px; min-width: 0; } .settings-field input[type="text"], .settings-field input[type="password"], .settings-field select, .settings-field textarea { width: 100%; max-width: 100%; box-sizing: border-box; background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text); padding: 11px 14px; border-radius: 10px; font-family: inherit; font-size: 13px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; } .settings-field input:disabled { cursor: not-allowed; opacity: 0.7; color: var(--text-dim2); } .settings-field textarea { min-height: 220px; resize: vertical; line-height: 1.55; font-family: "SF Mono", ui-monospace, Menlo, monospace; } .settings-field input:focus, .settings-field select:focus, .settings-field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,105,0,0.12); } .settings-subpanel { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.025); padding: 14px; display: flex; flex-direction: column; gap: 14px; min-width: 0; } .settings-subpanel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-width: 0; } .settings-subtitle { font-size: 13px; font-weight: 800; color: var(--text); line-height: 1.35; } .model-profile-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; } .model-profile-card { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.035); padding: 12px; min-width: 0; display: flex; flex-direction: column; gap: 10px; } .model-profile-card.active { border-color: rgba(255,122,26,0.55); background: rgba(255,122,26,0.08); } .model-profile-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .model-profile-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; font-weight: 800; color: var(--text); } .model-profile-model { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; } .model-profile-meta { display: flex; flex-wrap: wrap; gap: 6px; } .model-profile-meta span, .model-profile-badge { border: 1px solid var(--line); border-radius: 999px; padding: 3px 7px; font-size: 10px; color: var(--text-dim2); max-width: 100%; overflow-wrap: anywhere; } .model-profile-badge { color: #1a0f08; background: var(--orange); border-color: transparent; } .model-profile-badge.off { color: var(--text-dim2); background: rgba(255,255,255,0.06); border-color: var(--line); } .model-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; } .model-profile-actions button { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.04); color: var(--text-dim); padding: 6px 9px; cursor: pointer; font-size: 11px; } .model-profile-actions button:hover { color: var(--text); border-color: var(--line-strong); } .model-profile-actions button.danger:hover { color: var(--err); border-color: rgba(255,93,122,0.45); } .model-profile-form { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; } .model-profile-checks { justify-content: center; } .settings-checkline { display: flex; align-items: center; gap: 8px; min-height: 32px; color: var(--text-dim); cursor: pointer; } .settings-checkline input { width: auto; } .settings-help { font-size: 11px; color: var(--text-dim2); line-height: 1.55; word-wrap: break-word; overflow-wrap: break-word; } .settings-help code { display: inline-block; padding: 1px 6px; background: rgba(255,105,0,0.12); border: 1px solid rgba(255,105,0,0.2); border-radius: 4px; color: var(--orange-3); font-size: 10.5px; font-family: "SF Mono", ui-monospace, Menlo, monospace; word-break: break-all; max-width: 100%; } .theme-chip { padding: 8px 16px; font-size: 12px; font-weight: 600; background: rgba(255,105,0,0.1); border: 1px solid var(--orange-dim); color: var(--orange-3); border-radius: 10px; cursor: pointer; font-family: inherit; transition: all 0.2s; } .theme-chip:hover { background: var(--orange); color: #1a0f08; } .settings-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .settings-actions .settings-help { flex: 1 1 280px; min-width: 220px; } .settings-actions .glass-btn-sm { margin: 0; padding: 10px 16px; font-size: 12px; } .weekly-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .weekly-toolbar .settings-help { flex: 1 1 280px; } .weekly-report-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; } .weekly-report-card { border: 1px solid var(--line); background: rgba(255,255,255,0.04); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; } [data-theme="light"] .weekly-report-card { background: rgba(15,22,40,0.035); } .weekly-report-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; } .weekly-report-title { font-size: 13px; line-height: 1.45; font-weight: 800; color: var(--text); overflow-wrap: anywhere; } .weekly-report-meta { margin-top: 3px; font-size: 11px; color: var(--text-dim2); } .weekly-report-badge { flex: 0 0 auto; border: 1px solid rgba(255,178,89,0.32); background: rgba(255,178,89,0.1); color: var(--orange-3); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; } .weekly-report-section { border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,0.12); padding: 10px; min-width: 0; } [data-theme="light"] .weekly-report-section { background: rgba(15,22,40,0.04); } .weekly-report-label { font-size: 10px; font-weight: 800; color: var(--text-dim2); margin-bottom: 5px; } .weekly-report-text { font-size: 12px; line-height: 1.65; color: var(--text-dim); overflow-wrap: anywhere; } .weekly-report-actions { display: flex; flex-wrap: wrap; gap: 8px; } .weekly-report-actions .glass-btn-sm { margin: 0; padding: 8px 11px; font-size: 11px; } .feishu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .feishu-toolbar .settings-help { flex: 1 1 280px; } .feishu-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; } .feishu-app-card { border: 1px solid var(--line); background: rgba(255,255,255,0.04); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; } [data-theme="light"] .feishu-app-card { background: rgba(15,22,40,0.035); } .feishu-app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; } .feishu-app-title { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; } .feishu-app-meta { margin-top: 3px; font-size: 11px; color: var(--text-dim2); } .feishu-app-actions { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; } .feishu-status { flex: 0 0 auto; border: 1px solid rgba(80,220,140,0.32); background: rgba(80,220,140,0.1); color: #68d391; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; } .feishu-callback { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,0.18); } [data-theme="light"] .feishu-callback { background: rgba(15,22,40,0.04); } .feishu-callback span { flex: 1 1 auto; min-width: 0; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-dim); overflow-wrap: anywhere; } .icon-btn-mini { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255,105,0,0.08); color: var(--orange-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .icon-btn-mini:hover { background: rgba(255,105,0,0.16); } .icon-btn-mini.danger { background: rgba(255,84,84,0.08); color: #ff8585; } .icon-btn-mini.danger:hover { background: rgba(255,84,84,0.16); } .feishu-app-foot { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-dim2); font-size: 11px; } .feishu-app-foot span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.035); } .feishu-form { border-top: 1px solid var(--line); padding-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; } .feishu-form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .feishu-form-actions .glass-btn-sm { margin: 0; } .danger-btn { border-color: rgba(255,93,122,0.3) !important; color: var(--err) !important; background: rgba(255,93,122,0.08) !important; } .danger-btn:hover { background: rgba(255,93,122,0.18) !important; border-color: var(--err) !important; } .about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; } .about-item { padding: 12px 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 10px; } [data-theme="light"] .about-item { background: rgba(15,22,40,0.03); } .about-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim2); font-weight: 700; } .about-val { font-size: 13px; color: var(--text); font-weight: 600; margin-top: 3px; } .settings-save-bar { display: flex; flex: 0 0 auto; justify-content: flex-end; padding: 10px 0 0; } .settings-save-bar .glass-btn-sm { padding: 12px 24px; font-size: 13px; } /* 兼容旧的 setting-row (agent modal 里还在用) */ .setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); } .setting-row label { font-size: 13px; color: var(--text-dim); font-weight: 600; flex: 0 0 120px; } .setting-row input[type="text"], .setting-row input[type="password"] { flex: 1; background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text); padding: 10px 14px; border-radius: 10px; font-family: inherit; font-size: 13px; outline: none; transition: border-color 0.2s; } .setting-row input:focus { border-color: var(--orange); } .switch { position: relative; display: inline-block; width: 44px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.14); border-radius: 24px; transition: 0.3s; } .slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.3s; } .switch input:checked + .slider { background: var(--orange); } .switch input:checked + .slider::before { transform: translateX(20px); } .about { margin-top: 28px; font-size: 12px; color: var(--text-dim3); line-height: 1.8; } /* ========== Agent / Cluster ========== */ .panel-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .panel-head-actions { display: flex; gap: 8px; } .glass-btn-sm.primary { background: var(--orange); border-color: var(--orange); color: #1a0f08; } .glass-btn-sm.primary:hover { background: var(--orange-2); border-color: var(--orange-2); color: #1a0f08; } .glass-btn-sm svg { vertical-align: middle; margin-right: 4px; } .agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; overflow-y: auto; padding-right: 6px; align-content: start; flex: 1 1 auto; min-height: 0; } .agent-card { padding: 22px 20px 18px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; transition: transform 0.2s, border-color 0.2s, background 0.2s; display: flex; flex-direction: column; gap: 10px; position: relative; max-height: min(300px, 46vh); } .agent-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--card-hover-bg); box-shadow: 0 12px 30px rgba(0,0,0,0.25); } .agent-card-head { display: flex; align-items: center; gap: 12px; } .agent-avatar { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,105,0,0.18), rgba(255,136,48,0.1)); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: 0 0 44px; } .agent-meta { flex: 1; min-width: 0; } .agent-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; overflow-wrap: anywhere; } .agent-model { font-size: 11px; color: var(--text-dim3); font-weight: 600; letter-spacing: 0.3px; } .agent-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; flex: 1; overflow-wrap: anywhere; } .agent-actions { display: flex; gap: 6px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); } .agent-actions button { flex: 1; padding: 7px 10px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-strong); background: transparent; color: var(--text-dim); border-radius: 8px; font-family: inherit; cursor: pointer; transition: all 0.2s; } .agent-actions button:hover { color: var(--text); background: var(--card-hover-bg); } .agent-actions button.chat { background: rgba(255,105,0,0.1); color: var(--orange-3); border-color: var(--orange-dim); } .agent-actions button.chat:hover { background: var(--orange); color: #1a0f08; border-color: var(--orange); } .agent-actions button.danger:hover { color: var(--err); border-color: rgba(255,93,122,0.4); background: rgba(255,93,122,0.08); } /* ========== Modal ========== */ .modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s ease; } .modal-mask.open { display: flex; } [data-theme="light"] .modal-mask { background: rgba(60,80,120,0.32); } .modal { background: var(--panel-bg); border: 1px solid var(--panel-border-strong); border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--panel-inset); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); width: 100%; max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; animation: scaleIn 0.25s cubic-bezier(0.22, 1, 0.36, 1); } .modal-lg { max-width: 880px; } @keyframes scaleIn { from{opacity:0;transform:scale(0.96)} to{opacity:1;transform:scale(1)} } .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); } .modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; } .modal-close { background: transparent; border: 0; color: var(--text-dim); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 10px; border-radius: 8px; } .modal-close:hover { color: var(--text); background: var(--card-hover-bg); } .modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; } .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); } .setting-row-full { flex-direction: column; align-items: flex-start; gap: 8px; } .setting-row-full label { flex: none; } .setting-row-full textarea, .setting-row textarea { width: 100%; background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text); padding: 10px 14px; border-radius: 10px; font-family: inherit; font-size: 13px; line-height: 1.6; outline: none; resize: vertical; transition: border-color 0.2s; } .setting-row textarea:focus, .setting-row input:focus, .setting-row select:focus { border-color: var(--orange); } .setting-row select { flex: 1; background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text); padding: 10px 14px; border-radius: 10px; font-family: inherit; font-size: 13px; outline: none; cursor: pointer; } /* Cluster */ .cluster-pick { margin-bottom: 16px; } .cluster-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim2); font-weight: 700; margin-bottom: 10px; } .cluster-agent-list { display: flex; flex-wrap: wrap; gap: 8px; } .cluster-pick-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--card-bg); color: var(--text-dim); border-radius: 10px; cursor: pointer; transition: all 0.2s; } .cluster-pick-chip:hover { color: var(--text); background: var(--card-hover-bg); } .cluster-pick-chip.on { background: rgba(255,105,0,0.14); border-color: var(--orange-dim); color: var(--orange-3); } .cluster-input { display: flex; gap: 10px; align-items: stretch; margin-bottom: 16px; } .cluster-input textarea { flex: 1; background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text); padding: 12px 14px; border-radius: 12px; font-family: inherit; font-size: 13px; outline: none; resize: none; } .cluster-input textarea:focus { border-color: var(--orange); } .cluster-input .glass-btn-sm { align-self: flex-end; white-space: nowrap; } .cluster-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; max-height: 52vh; overflow-y: auto; padding-right: 4px; } .cluster-col { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; max-height: min(420px, 52vh); } .cluster-col-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .cluster-col-avatar { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, rgba(255,105,0,0.2), rgba(255,136,48,0.1)); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 14px; } .cluster-col-name { font-size: 13px; font-weight: 700; flex: 1; } .cluster-col-status { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; } .cluster-col-status.running { background: rgba(255,200,58,0.18); color: var(--warn); } .cluster-col-status.done { background: rgba(110,240,141,0.18); color: var(--ok); } .cluster-col-status.err { background: rgba(255,93,122,0.18); color: var(--err); } .cluster-col-body { font-size: 13px; line-height: 1.65; color: var(--text); white-space: pre-wrap; word-wrap: break-word; min-height: 0; overflow-y: auto; padding-right: 4px; } /* ========== Cron 定时任务 ========== */ .cron-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 10px; } .cron-item { padding: 16px 20px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 14px; align-items: start; transition: border-color 0.2s, background 0.2s; max-height: min(220px, 42vh); } .cron-item:hover { border-color: var(--line-strong); background: var(--card-hover-bg); } .cron-item.disabled { opacity: 0.55; } .cron-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255,105,0,0.2), rgba(255,136,48,0.08)); border: 1px solid var(--line-strong); color: var(--orange-3); flex: 0 0 38px; } .cron-icon svg { width: 18px; height: 18px; } .cron-body { min-width: 0; } .cron-name { font-size: 14px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; } .cron-meta { font-size: 11px; color: var(--text-dim2); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; } .cron-meta code { font-family: "SF Mono", ui-monospace, Menlo, monospace; background: rgba(255,105,0,0.1); color: var(--orange-3); padding: 1px 6px; border-radius: 4px; font-size: 10.5px; overflow-wrap: anywhere; } .cron-prompt-preview { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; max-width: 560px; line-height: 1.55; overflow-wrap: anywhere; } .cron-pill { font-size: 10px; padding: 3px 10px; border-radius: 50px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; } .cron-pill.on { background: rgba(110,240,141,0.15); color: var(--ok); border: 1px solid rgba(110,240,141,0.3); } .cron-pill.off { background: rgba(255,255,255,0.06); color: var(--text-dim2); border: 1px solid var(--line); } .cron-btn { padding: 6px 12px; font-size: 11px; font-weight: 700; border: 1px solid var(--line-strong); background: transparent; color: var(--text-dim); border-radius: 8px; font-family: inherit; cursor: pointer; transition: all 0.15s; white-space: nowrap; } .cron-btn:hover { color: var(--text); background: var(--card-hover-bg); } .cron-btn.run:hover { color: var(--orange-3); border-color: var(--orange-dim); background: rgba(255,105,0,0.08); } @media (max-width: 720px) { .cron-item { grid-template-columns: auto 1fr; grid-auto-flow: row; } .cron-item > .cron-pill, .cron-item > .cron-btn { grid-column: 2; justify-self: start; } } /* ========== Memory ========== */ .memory-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; overflow: hidden; } @media (max-width: 960px) { .memory-grid { grid-template-columns: 1fr; overflow: auto; } } .memory-pane { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 0; } .memory-pane-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.3px; flex: 0 0 auto; } .memory-body { flex: 1 1 auto; overflow: auto; padding: 16px 20px; margin: 0; font-size: 12px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-wrap: break-word; font-family: "SF Mono", ui-monospace, Menlo, monospace; } .memory-sessions { flex: 1 1 auto; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; } .session-row { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: default; transition: background 0.15s, border-color 0.15s, transform 0.15s; } .session-row.clickable { cursor: pointer; } .session-row:hover { background: var(--card-hover-bg); border-color: var(--line-strong); } .session-row.clickable:hover { border-color: var(--orange-dim); background: rgba(255,105,0,0.06); transform: translateX(2px); } .session-row-action { margin-left: auto; color: var(--orange-3); font-weight: 700; opacity: 0; transition: opacity 0.15s; } .session-row.clickable:hover .session-row-action { opacity: 1; } .session-row-meta { align-items: center; } .session-row-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; } .session-row-meta { font-size: 10px; color: var(--text-dim2); display: flex; gap: 10px; font-weight: 600; } /* ========== Tools ========== */ .models-scroll { grid-template-columns: 1fr; } #tab-models, #tab-providers, #tab-tools { overflow: hidden; } #tab-models .settings-subpanel { border: 0; border-radius: 0; background: transparent; padding: 0; } .tools-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 6px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); align-items: start; gap: 16px; } .tools-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; align-content: start; } .tools-scroll .tools-grid { overflow: visible; padding-right: 0; } .tools-mcp-group { grid-column: auto; position: sticky; top: 0; } .tools-mcp-group .settings-field textarea { min-height: min(360px, 42vh); } @media (max-width: 1180px) { .tools-scroll { grid-template-columns: 1fr; } .tools-mcp-group { position: static; } } .tool-chip { padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 12px; transition: border-color 0.2s, background 0.2s; max-height: min(150px, 30vh); } .tool-chip:hover { background: var(--card-hover-bg); border-color: var(--line-strong); } .tool-chip.off { opacity: 0.5; } .tool-chip .tool-ico { font-size: 22px; flex: 0 0 28px; text-align: center; } .tool-chip .tool-meta { flex: 1; min-width: 0; } .tool-chip .tool-name { font-size: 13px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; } .tool-chip .tool-desc { font-size: 11px; color: var(--text-dim2); margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; } .tool-chip .tool-status { font-size: 9px; padding: 2px 8px; border-radius: 50px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; } .tool-chip .tool-status.on { background: rgba(110,240,141,0.15); color: var(--ok); border: 1px solid rgba(110,240,141,0.3); } .tool-chip .tool-status.off { background: rgba(255,255,255,0.05); color: var(--text-dim3); border: 1px solid var(--line); } .tools-section-label { grid-column: 1 / -1; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim3); font-weight: 800; padding: 8px 4px 2px; } /* ========== 异步任务 Runs ========== */ .runs-layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; overflow: hidden; } @media (max-width: 900px) { .runs-layout { grid-template-columns: 1fr; overflow: auto; } } .runs-left, .runs-right { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 0; } .runs-input-head, .runs-events-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.3px; flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; } .runs-meta { font-size: 10px; color: var(--text-dim3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .runs-meta.running { color: var(--warn); } .runs-meta.done { color: var(--ok); } .runs-meta.err { color: var(--err); } #runPrompt { flex: 1 1 auto; min-height: 160px; background: var(--input-bg); border: 0; color: var(--text); padding: 18px 20px; font-family: inherit; font-size: 14px; line-height: 1.6; resize: none; outline: none; } #runPrompt::placeholder { color: var(--text-dim3); } .runs-hint { font-size: 11px; color: var(--text-dim2); padding: 10px 16px; border-top: 1px solid var(--line); background: rgba(255,105,0,0.04); flex: 0 0 auto; } .runs-active { padding: 12px 16px; font-size: 11px; color: var(--text-dim2); border-top: 1px solid var(--line); font-family: "SF Mono", ui-monospace, Menlo, monospace; flex: 0 0 auto; min-height: 36px; } .runs-active code { color: var(--orange-3); } .runs-events { flex: 1 1 auto; overflow-y: auto; padding: 14px 18px; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; line-height: 1.7; } .run-evt { display: grid; grid-template-columns: 60px auto 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); align-items: baseline; } [data-theme="light"] .run-evt { border-bottom-color: rgba(15,22,40,0.08); } .run-evt .t { color: var(--text-dim3); font-size: 10px; } .run-evt .tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; } .run-evt .tag.start { background: rgba(110,240,141,0.14); color: var(--ok); border: 1px solid rgba(110,240,141,0.3); } .run-evt .tag.delta { background: rgba(255,105,0,0.12); color: var(--orange-3); border: 1px solid var(--orange-dim); } .run-evt .tag.tool { background: rgba(124,170,255,0.14); color: #7caaff; border: 1px solid rgba(124,170,255,0.3); } .run-evt .tag.ok { background: rgba(110,240,141,0.14); color: var(--ok); border: 1px solid rgba(110,240,141,0.3); } .run-evt .tag.err { background: rgba(255,93,122,0.14); color: var(--err); border: 1px solid rgba(255,93,122,0.3); } .run-evt .tag.info { background: rgba(255,255,255,0.06); color: var(--text-dim); border: 1px solid var(--line); } .run-evt .body { color: var(--text); white-space: pre-wrap; word-wrap: break-word; word-break: break-word; overflow: hidden; } .run-evt.delta .body { color: var(--text-dim); } /* ========== Markdown 渲染(消息/记忆/帮助) ========== */ .msg-content h1, .msg-content h2, .msg-content h3, .msg-content h4, .msg-content h5, .msg-content h6 { margin: 18px 0 8px; font-weight: 800; color: var(--text); letter-spacing: -0.2px; } .msg-content h1 { font-size: 22px; } .msg-content h2 { font-size: 18px; } .msg-content h3 { font-size: 16px; } .msg-content h4 { font-size: 14px; } .msg-content h1:first-child, .msg-content h2:first-child, .msg-content h3:first-child { margin-top: 2px; } .msg-content p { margin: 6px 0; line-height: 1.75; } .msg-content p:first-child { margin-top: 0; } .msg-content p:last-child { margin-bottom: 0; } .msg-content ul, .msg-content ol { margin: 8px 0; padding-left: 22px; } .msg-content ul li, .msg-content ol li { margin: 4px 0; line-height: 1.7; } .msg-content blockquote { margin: 8px 0; padding: 6px 14px; border-left: 3px solid var(--orange); background: rgba(255,105,0,0.06); color: var(--text-dim); border-radius: 0 8px 8px 0; } .msg-content code { background: rgba(255,105,0,0.12); color: var(--orange-3); padding: 1px 7px; border-radius: 4px; font-size: 0.92em; font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace; border: 1px solid rgba(255,105,0,0.18); } .msg-content a { color: var(--orange-3); text-decoration: underline; } .msg-content strong { color: var(--text); font-weight: 800; } .msg-content .md-pre { position: relative; margin: 10px 0; padding: 14px 16px; background: rgba(0,0,0,0.35); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; } [data-theme="light"] .msg-content .md-pre { background: rgba(15,22,40,0.06); } .msg-content .md-pre code { background: transparent; border: 0; color: var(--text); padding: 0; font-size: 12px; line-height: 1.65; white-space: pre; } .msg-content .md-code-lang { position: absolute; top: 6px; right: 10px; font-size: 10px; color: var(--text-dim3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; } .msg-content .md-table { width: 100%; margin: 10px 0; border-collapse: collapse; font-size: 12.5px; } .msg-content .md-table th, .msg-content .md-table td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; } .msg-content .md-table th { background: rgba(255,105,0,0.08); color: var(--orange-3); font-weight: 800; } .msg-content .md-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); } /* Tool calls 展示 */ .msg-toolcalls { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); } .msg-toolcalls .tc-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(124,170,255,0.1); border: 1px solid rgba(124,170,255,0.28); border-radius: 8px; color: #7caaff; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; } .msg-toolcalls .tc-toggle:hover { background: rgba(124,170,255,0.2); } .msg-toolcalls .tc-body { display: none; margin-top: 8px; flex-direction: column; gap: 6px; } .msg-toolcalls.open .tc-body { display: flex; } .msg-toolcalls .tc-item { padding: 8px 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 8px; } [data-theme="light"] .msg-toolcalls .tc-item { background: rgba(15,22,40,0.04); } .msg-toolcalls .tc-name { font-size: 11px; font-weight: 800; color: var(--orange-3); font-family: "SF Mono", ui-monospace, Menlo, monospace; margin-bottom: 4px; } .msg-toolcalls .tc-args { margin: 0; font-size: 10.5px; line-height: 1.55; color: var(--text-dim); white-space: pre-wrap; word-break: break-all; font-family: "SF Mono", ui-monospace, Menlo, monospace; } /* 帮助 tab · 官方 Console iframe */ .help-iframe { flex: 1 1 auto; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #000; min-height: 0; } /* 帮助 tab 老版本文档卡(隐藏但保留样式以防恢复) */ .help-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 16px; } .help-card { padding: 22px 26px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; } .help-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; } .help-card p { margin: 6px 0; font-size: 13px; line-height: 1.7; color: var(--text-dim); } .help-card ul { margin: 8px 0; padding-left: 20px; } .help-card ul li { margin: 4px 0; font-size: 13px; line-height: 1.7; color: var(--text-dim); } .help-card pre.md-pre { background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 11.5px; line-height: 1.6; color: var(--text); } .help-card .md-table { width: 100%; margin: 10px 0; border-collapse: collapse; font-size: 12.5px; } .help-card .md-table th, .help-card .md-table td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; } .help-card .md-table th { background: rgba(255,105,0,0.08); color: var(--orange-3); } /* ========== 响应式 ========== */ @media (max-width: 1024px) { .dash-hero { grid-template-columns: 1fr; } .dash-hero-side { flex-direction: row; flex-wrap: wrap; } .dash-hero-side .hero-side-item { flex: 1 1 120px; } } @media (max-width: 860px) { .app-shell { flex-direction: column; padding: 10px; gap: 10px; height: 100vh; } .sidebar { width: 100%; flex: 0 0 auto; flex-direction: row; padding: 10px 12px; border-radius: 18px; } .side-brand { border-bottom: 0; margin-bottom: 0; padding: 0 10px 0 4px; border-right: 1px solid var(--line); margin-right: 10px; } .side-brand-text { display: none; } .side-nav { flex-direction: row; flex: 1; overflow-x: auto; padding: 0; border: 0; margin: 0; } .side-history { display: none; } .side-item { padding: 8px 12px; } .side-item span { display: none; } .side-bottom { flex-direction: row; border: 0; padding: 0; margin-left: 10px; gap: 6px; } .side-status { display: none; } .side-new span, .theme-toggle .theme-label { display: none; } .side-new, .theme-toggle { padding: 8px 12px; } .tab-panel { padding: 16px 14px; } .msg { max-width: 100%; } .panel-head-row { flex-direction: column; align-items: stretch; } .panel-head-actions { justify-content: flex-end; } .dash-hero-num { font-size: 48px; letter-spacing: -2px; } } @media (max-width: 560px) { .hermes-tag-mid { display: none; } .chat-topbar-title { flex: 1 1 100%; } } /* ========== 卡片内容裁切兜底 ========== 放在文件末尾,压过前面为布局性能写的 overflow:hidden / ellipsis。 */ :is( .card, .agent-card, .flow-card, .cron-item, .tool-chip, .stat, .top-agent-card, .day-detail, .day-convo-item, .cluster-col, .studio-col, .studio-stage, .studio-skill-item, .memory-pane, .session-row, .runs-left, .runs-right, .heatmap-wrap, .hero-side-item, .about-item, .help-card ) { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 12px; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; } :is( .card, .agent-card, .flow-card, .cron-item, .tool-chip, .stat, .top-agent-card, .day-detail, .day-convo-item, .cluster-col, .studio-col, .studio-stage, .studio-skill-item, .memory-pane, .session-row, .runs-left, .runs-right, .heatmap-wrap, .hero-side-item, .about-item, .help-card ) :is( .card-title, .card-desc, .agent-name, .agent-desc, .agent-model, .flow-card-name, .flow-card-desc, .mini-skill, .cron-name, .cron-meta, .cron-prompt-preview, .tool-name, .tool-desc, .stat-value, .stat-sub, .top-agent-name, .top-agent-sub, .day-convo-title, .studio-skill-name, .studio-skill-desc, .studio-stage-name, .studio-stage-desc, .session-row-title, .session-row-meta, .about-val ) { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; word-break: break-word; } .memory-pane, .runs-left, .runs-right, .studio-col { max-height: 100%; } .session-row, .day-convo-item, .studio-skill-item, .hero-side-item, .about-item { max-height: min(180px, 32vh); } /* 设置页采用独立表单网格,避免全局卡片滚动规则压扁卡片内容。 */ #tab-settings { overflow: hidden; } #tab-settings .settings-scroll { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; align-items: start; gap: 16px; height: auto; min-height: 0; overflow-x: hidden; overflow-y: auto; } #tab-settings .settings-group { display: flex; flex-direction: column; flex: none; width: 100%; min-height: auto; height: auto; max-height: none; overflow: visible; scrollbar-gutter: auto; margin: 0; contain: none; } #tab-settings .settings-group.wide { grid-column: 1 / -1; } #tab-settings .settings-connection-group { grid-column: 1 / -1; } #tab-settings .settings-connection-group .settings-group-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } #tab-settings .settings-connection-group .settings-actions { grid-column: 1 / -1; } #tab-settings .settings-group-body { display: flex; flex-direction: column; height: auto; min-height: auto; max-height: none; overflow: visible; scrollbar-gutter: auto; contain: none; } #tab-settings .about-item { max-height: none; overflow: visible; scrollbar-gutter: auto; } #tab-settings .settings-save-bar { margin-top: 4px; grid-column: 1 / -1; } @media (max-width: 1100px) { .settings-scroll, #tab-settings .settings-scroll { grid-template-columns: 1fr; } .settings-group.wide, #tab-settings .settings-group.wide, #tab-settings .settings-connection-group { grid-column: auto; } } @media (max-width: 640px) { .settings-scroll { padding-right: 0; gap: 12px; } .settings-group-head { padding: 14px 16px 12px; gap: 12px; } .settings-group-icon { width: 36px; height: 36px; flex-basis: 36px; } .settings-group-body { padding: 14px 16px 16px; gap: 14px; } #tab-settings .settings-connection-group .settings-group-body { display: flex; } .settings-actions { align-items: stretch; } .settings-actions .glass-btn-sm, .settings-save-bar .glass-btn-sm { flex: 1 1 100%; justify-content: center; } .settings-actions .settings-help { flex-basis: 100%; min-width: 0; } .settings-field textarea { min-height: 190px; } .settings-save-bar { justify-content: stretch; } } .boot-issue { position: fixed; right: 18px; bottom: 18px; z-index: 9999; width: min(420px, calc(100vw - 28px)); max-height: min(420px, calc(100vh - 28px)); overflow: auto; padding: 14px; border: 1px solid rgba(255,93,122,0.45); border-radius: 12px; background: rgba(22, 24, 28, 0.96); box-shadow: 0 18px 60px rgba(0,0,0,0.35); color: var(--text); } .boot-issue-title { font-size: 13px; font-weight: 800; color: var(--err); margin-bottom: 6px; } .boot-issue-msg { font-size: 12px; line-height: 1.5; color: var(--text-dim); overflow-wrap: anywhere; } .boot-issue button { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.05); color: var(--text); padding: 7px 10px; cursor: pointer; } .boot-issue details { margin-top: 10px; font-size: 11px; color: var(--text-dim2); } .boot-issue pre { white-space: pre-wrap; overflow-wrap: anywhere; }