Files
doubao-clone/app/src/app.css
l f056bcf45a 豆包复刻:原生安卓(Compose + 内嵌 Termux)+ Web / Windows
一个界面照着豆包抠的 AI 助手。主力是安卓端,完全离线自主:不依赖电脑、
不需要另外装 Termux。

安卓端
- 原生 Jetpack Compose,7 个页面,配色/圆角/间距对着真机截图量出来的
- 完整动效:抽屉滑入、页面切换、气泡淡入上移、面板底部升起、typing 三点、按钮回弹
- 内置 Termux:bash/apt/pkg 388 个命令、真 pty 终端;
  pty 不可用的 ROM 上自动降级成命令控制台
- APK 内嵌 CPython 3.13(Chaquopy),AI 内核跑在手机上
- 设备能力:定位 / 陀螺仪 / 加速度计 / 光线 / 电量 / 剪贴板
- 语音:朗读 + 语音输入,火山豆包音色 / OpenAI 兼容 / 设备自带三级引擎

AI 能力
- 10 家 OpenAI 兼容提供商:方舟 / OpenAI / DeepSeek / Kimi / 智谱 /
  通义 / 硅基流动 / OpenRouter / 本地 Ollama / 自定义
- 思考强度按各家支持情况发不同字段(thinking / reasoning_effort / 不发),
  认不出来的一律不发,避免给不支持的厂商发字段直接 400
- MCP 三种传输(http / stdio / inproc)、工具热加载、文件上传、权限模式

跨端
- 安卓走原生 Compose,Web / Windows 走 Lynx
- Node 与 Python 两份内核接口逐字段一致,关键路径都有对拍脚本

自检脚本(都不需要真 Key)
- verify-phone.mjs          设备端 24 项验收
- verify-speech.mjs         语音链路 31 项,两份内核各跑一遍
- parity-thinking.mjs       思考强度映射对拍
- probe-settings-wipe.mjs   设置防清空攻击测试
- mock-llm.mjs              假的 OpenAI + 火山语音服务

许可 MIT;第三方组件(Termux Apache-2.0、Chaquopy、Compose、LynxJS、Electron)
的授权见 LICENSE。
2026-10-09 14:09:36 +08:00

1753 lines
27 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* ============================================================
豆包复刻 · 全局样式
注意 Lynx 的几个硬约束:
1) display 默认是 linear,需要 flex 就得显式写
2) 不支持 overflow: scroll,滚动只能用 <scroll-view>
3) 文字必须在 <text> 里
4) 不支持 !important
============================================================ */
.app {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
background-color: #ffffff;
position: relative;
}
.page {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
background-color: #ffffff;
}
/* ---------------- 通用图标尺寸 ---------------- */
.icon {
width: 24px;
height: 24px;
}
.icon-sm {
width: 20px;
height: 20px;
}
.icon-lg {
width: 26px;
height: 26px;
}
.icon-xl {
width: 30px;
height: 30px;
}
/* ============================================================
聊天页
============================================================ */
.chat-header {
display: flex;
flex-direction: row;
align-items: center;
height: 52px;
padding-left: 8px;
padding-right: 8px;
background-color: #ffffff;
}
.hdr-btn {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}
.hdr-title {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
}
.hdr-title-row {
display: flex;
flex-direction: row;
align-items: center;
}
.hdr-title-text {
font-size: 17px;
font-weight: 600;
color: #1f2329;
}
.hdr-caret {
font-size: 15px;
color: #b6bac2;
margin-left: 4px;
}
.hdr-sub {
font-size: 11px;
color: #a3a8b3;
margin-top: 2px;
}
.chat-body {
flex: 1;
width: 100%;
}
.chat-body-inner {
display: flex;
flex-direction: column;
padding-left: 16px;
padding-right: 16px;
padding-bottom: 16px;
}
.hero {
display: flex;
align-items: center;
justify-content: center;
padding-top: 72px;
padding-bottom: 16px;
}
.hero-avatar {
width: 168px;
height: 168px;
border-radius: 84px;
background-color: #dbe8ff;
}
.bubble {
display: flex;
flex-direction: column;
padding: 14px 16px;
border-radius: 18px;
margin-bottom: 18px;
}
.bubble-bot {
background-color: #f4f5f7;
align-self: flex-start;
max-width: 86%;
}
.bubble-user {
background-color: #2b7bff;
align-self: flex-end;
max-width: 86%;
}
.bubble-text {
font-size: 17px;
line-height: 26px;
color: #1f2329;
}
.bubble-text-user {
font-size: 17px;
line-height: 26px;
color: #ffffff;
}
.bubble-error {
background-color: #fff1f0;
}
.bubble-error .bubble-text {
color: #d4380d;
}
.typing {
display: flex;
flex-direction: row;
align-items: center;
}
.typing-dot {
width: 7px;
height: 7px;
border-radius: 4px;
background-color: #c2c7d0;
margin-right: 5px;
}
.trace {
display: flex;
flex-direction: column;
margin-bottom: 14px;
padding: 10px 12px;
border-radius: 12px;
background-color: #f7f8fa;
border: 1px solid #eceef2;
max-width: 86%;
align-self: flex-start;
}
.trace-row {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 4px;
}
.trace-title {
font-size: 12px;
font-weight: 600;
color: #5b6270;
}
.trace-text {
font-size: 12px;
line-height: 18px;
color: #8a8f99;
}
/* 底部快捷入口 */
.quick-row {
display: flex;
flex-direction: row;
align-items: center;
padding-left: 12px;
padding-right: 12px;
padding-bottom: 10px;
}
.chip {
display: flex;
flex-direction: row;
align-items: center;
height: 38px;
padding-left: 12px;
padding-right: 14px;
margin-right: 8px;
border-radius: 12px;
border: 1px solid #e8eaee;
background-color: #ffffff;
flex-shrink: 0;
}
.chip-text {
font-size: 15px;
color: #1f2329;
margin-left: 6px;
lines: 1;
flex-shrink: 0;
}
.quick-row {
flex-shrink: 0;
}
/* 输入栏 */
.input-bar {
display: flex;
flex-direction: row;
align-items: center;
padding-left: 12px;
padding-right: 12px;
padding-bottom: 18px;
padding-top: 4px;
background-color: #ffffff;
}
.input-pill {
display: flex;
flex-direction: row;
align-items: center;
flex: 1;
height: 52px;
border-radius: 26px;
background-color: #ffffff;
border: 1px solid #e8eaee;
box-shadow: 0px 2px 10px rgba(31, 35, 41, 0.06);
padding-left: 12px;
padding-right: 8px;
}
.input-field {
flex: 1;
height: 40px;
font-size: 16px;
color: #1f2329;
margin-left: 8px;
margin-right: 4px;
}
.input-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
}
/* ============================================================
抽屉(会话列表)
============================================================ */
.drawer-mask {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.35);
z-index: 20;
}
.drawer {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 86%;
background-color: #ffffff;
display: flex;
flex-direction: column;
padding-left: 12px;
padding-right: 12px;
}
.drawer-header {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 56px;
padding-left: 12px;
padding-right: 4px;
}
.drawer-title {
font-size: 24px;
font-weight: 700;
color: #1f2329;
}
.drawer-menu {
display: flex;
flex-direction: column;
padding-top: 4px;
padding-bottom: 6px;
}
.menu-item {
display: flex;
flex-direction: row;
align-items: center;
height: 46px;
padding-left: 12px;
border-radius: 12px;
}
.menu-item-text {
font-size: 17px;
color: #1f2329;
margin-left: 14px;
}
.section-head {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 34px;
padding-left: 12px;
padding-right: 6px;
}
.section-label {
font-size: 14px;
color: #a3a8b3;
}
.conv-item {
display: flex;
flex-direction: row;
align-items: center;
height: 50px;
padding-left: 12px;
padding-right: 8px;
border-radius: 12px;
}
.conv-item-active {
background-color: #f2f3f5;
}
.conv-avatar {
width: 32px;
height: 32px;
border-radius: 16px;
}
.conv-title {
font-size: 17px;
color: #1f2329;
margin-left: 12px;
flex: 1;
lines: 1;
text-overflow: ellipsis;
}
.drawer-spacer {
flex: 1;
}
.drawer-bottom {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 56px;
padding-left: 6px;
padding-right: 6px;
border-top: 1px solid #f0f1f3;
}
.user-pill {
display: flex;
flex-direction: row;
align-items: center;
height: 38px;
padding-left: 6px;
padding-right: 10px;
border-radius: 19px;
background-color: #f2f3f5;
}
.user-pill-avatar {
width: 28px;
height: 28px;
border-radius: 14px;
margin-right: 6px;
}
.user-pill-text {
font-size: 16px;
color: #1f2329;
}
.bell-wrap {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}
.bell-dot {
position: absolute;
right: 6px;
top: 6px;
width: 10px;
height: 10px;
border-radius: 5px;
background-color: #ff3b30;
border: 1.5px solid #ffffff;
}
/* ============================================================
我的页
============================================================ */
.profile-page {
background-color: #f5f6f7;
}
.profile-header {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 48px;
padding-left: 8px;
padding-right: 8px;
}
.profile-hero {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 18px;
padding-bottom: 18px;
}
.avatar-row {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.avatar-add {
display: flex;
align-items: center;
justify-content: center;
width: 52px;
height: 52px;
border-radius: 26px;
background-color: #ffffff;
margin-right: -18px;
}
.avatar-main-big {
width: 96px;
height: 96px;
border-radius: 48px;
background-color: #dbe8ff;
}
.avatar-photo-big {
width: 52px;
height: 52px;
border-radius: 26px;
margin-left: -18px;
border: 2px solid #f5f6f7;
}
.profile-name {
font-size: 20px;
font-weight: 600;
color: #1f2329;
margin-top: 12px;
}
.profile-id {
font-size: 13px;
color: #a3a8b3;
margin-top: 6px;
}
.account-btn {
display: flex;
align-items: center;
justify-content: center;
height: 40px;
padding-left: 20px;
padding-right: 20px;
border-radius: 20px;
background-color: #ffffff;
margin-top: 14px;
}
.account-btn-text {
font-size: 16px;
color: #1f2329;
}
.profile-card {
display: flex;
flex-direction: column;
background-color: #ffffff;
border-radius: 16px;
margin-left: 12px;
margin-right: 12px;
margin-bottom: 12px;
padding-left: 14px;
padding-right: 14px;
}
.profile-row {
display: flex;
flex-direction: row;
align-items: center;
height: 60px;
}
.profile-row-icon {
width: 30px;
height: 30px;
}
.profile-row-text {
flex: 1;
font-size: 17px;
color: #1f2329;
margin-left: 14px;
}
.profile-row-value {
font-size: 15px;
color: #a3a8b3;
margin-right: 2px;
}
.row-divider {
height: 1px;
background-color: #f2f3f5;
margin-left: 44px;
}
/* ============================================================
设置 / 技能页(通用列表与表单)
============================================================ */
.sub-header {
display: flex;
flex-direction: row;
align-items: center;
height: 52px;
padding-left: 8px;
padding-right: 12px;
background-color: #ffffff;
}
.sub-header-title {
flex: 1;
font-size: 17px;
font-weight: 600;
color: #1f2329;
}
.back-btn {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 40px;
}
.form-scroll {
flex: 1;
width: 100%;
}
.form-inner {
display: flex;
flex-direction: column;
padding: 12px;
padding-bottom: 40px;
}
.form-card {
display: flex;
flex-direction: column;
background-color: #ffffff;
border-radius: 16px;
padding: 14px;
margin-bottom: 12px;
}
.form-label {
font-size: 13px;
color: #8a8f99;
margin-bottom: 6px;
}
.form-input {
height: 42px;
border-radius: 10px;
background-color: #f4f5f7;
padding-left: 12px;
padding-right: 12px;
font-size: 15px;
color: #1f2329;
}
.form-textarea {
height: 190px;
border-radius: 10px;
background-color: #f4f5f7;
padding: 10px 12px;
font-size: 14px;
line-height: 21px;
color: #1f2329;
}
.form-hint {
font-size: 12px;
line-height: 18px;
color: #a3a8b3;
margin-top: 6px;
}
.segment {
display: flex;
flex-direction: row;
background-color: #f4f5f7;
border-radius: 10px;
padding: 3px;
}
/* 提供商现在有十来家,一行排不下,让它换行 */
.segment-wrap {
flex-wrap: wrap;
row-gap: 4px;
}
.segment-wrap .segment-item {
flex: 0 0 auto;
min-width: 76px;
padding: 0 12px;
}
.segment-item {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
height: 34px;
border-radius: 8px;
}
.segment-item-active {
background-color: #ffffff;
/* 白底压在浅灰上对比太弱,加一点描边和投影才看得出选了哪个 */
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.segment-text {
font-size: 14px;
color: #5b6270;
}
.segment-text-active {
color: #2b7bff;
font-weight: 600;
}
.chip-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin-top: 8px;
}
.model-chip {
display: flex;
align-items: center;
height: 30px;
padding-left: 10px;
padding-right: 10px;
border-radius: 8px;
background-color: #f4f5f7;
margin-right: 8px;
margin-bottom: 8px;
}
.model-chip-text {
font-size: 12px;
color: #5b6270;
}
.model-chip-active {
background-color: #e8f1ff;
}
.model-chip-text-active {
color: #2b7bff;
}
.switch-row {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 52px;
}
.switch-label {
font-size: 16px;
color: #1f2329;
}
.switch {
width: 48px;
height: 28px;
border-radius: 14px;
background-color: #e3e5e9;
display: flex;
flex-direction: row;
align-items: center;
padding-left: 2px;
padding-right: 2px;
}
.switch-on {
background-color: #2b7bff;
justify-content: flex-end;
}
.switch-knob {
width: 24px;
height: 24px;
border-radius: 12px;
background-color: #ffffff;
}
.primary-btn {
display: flex;
align-items: center;
justify-content: center;
height: 46px;
border-radius: 23px;
background-color: #2b7bff;
margin-top: 4px;
}
.primary-btn-text {
font-size: 16px;
font-weight: 600;
color: #ffffff;
}
.ghost-btn {
display: flex;
align-items: center;
justify-content: center;
height: 38px;
padding-left: 16px;
padding-right: 16px;
border-radius: 19px;
border: 1px solid #e3e5e9;
background-color: #ffffff;
}
.ghost-btn-text {
font-size: 14px;
color: #1f2329;
}
.tool-item {
display: flex;
flex-direction: column;
padding-top: 12px;
padding-bottom: 12px;
border-bottom: 1px solid #f2f3f5;
}
.tool-name {
font-size: 15px;
font-weight: 600;
color: #1f2329;
}
.tool-desc {
font-size: 12px;
line-height: 18px;
color: #8a8f99;
margin-top: 4px;
}
.tool-meta {
font-size: 11px;
color: #b6bac2;
margin-top: 4px;
}
.tool-actions {
display: flex;
flex-direction: row;
align-items: center;
margin-top: 10px;
}
.badge {
display: flex;
align-items: center;
height: 22px;
padding-left: 8px;
padding-right: 8px;
border-radius: 11px;
background-color: #f2f3f5;
margin-left: 8px;
}
.badge-ok {
background-color: #e8f7ee;
}
.badge-text {
font-size: 11px;
color: #5b6270;
}
.badge-text-ok {
color: #12a150;
}
.result-box {
margin-top: 10px;
padding: 10px;
border-radius: 10px;
background-color: #f7f8fa;
}
.result-text {
font-size: 12px;
line-height: 18px;
color: #5b6270;
}
.empty-tip {
font-size: 13px;
color: #a3a8b3;
padding-top: 12px;
padding-bottom: 12px;
}
/* ============================================================
动画
============================================================ */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideInLeft {
from {
transform: translateX(-100%);
}
to {
transform: translateX(0);
}
}
@keyframes dotBounce {
0%,
70%,
100% {
transform: translateY(0);
opacity: 0.45;
}
35% {
transform: translateY(-5px);
opacity: 1;
}
}
@keyframes popIn {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes breathe {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.04);
}
}
.bubble-enter {
animation: fadeInUp 0.24s ease-out;
}
.fade-in-up {
animation: fadeInUp 0.26s ease-out;
}
.drawer-slide {
animation: slideInLeft 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.drawer-fade {
animation: fadeIn 0.22s ease-out;
}
.typing-dot {
animation: dotBounce 1.1s infinite ease-in-out;
}
.dot-1 {
animation-delay: 0s;
}
.dot-2 {
animation-delay: 0.15s;
}
.dot-3 {
animation-delay: 0.3s;
}
/* 头像的呼吸动画:部分模拟器(雷电)GL 合成有问题会导致图片不绘制,这里只做很轻的动效 */
.hero-avatar {
background-color: #dbe8ff;
}
.attach-tile,
.send-btn,
.avatar-choice-on {
animation: popIn 0.18s ease-out;
}
/* ============================================================
智能体 / 消息操作 / 附件
============================================================ */
.icon-xs {
width: 12px;
height: 12px;
}
.icon-sm.active {
/* 点赞/点踩选中态:换成蓝色描边图做不到,用底色块表示 */
background-color: #e8f1ff;
border-radius: 6px;
}
.round {
border-radius: 999px;
}
.hdr-agent-avatar {
width: 20px;
height: 20px;
border-radius: 10px;
margin-right: 6px;
}
/* 助手消息整块(气泡 + 操作栏) */
.bubble-group {
display: flex;
flex-direction: column;
align-self: flex-start;
max-width: 86%;
margin-bottom: 4px;
}
.bubble-group .bubble {
max-width: 100%;
margin-bottom: 8px;
}
.msg-actions {
display: flex;
flex-direction: row;
align-items: center;
padding-bottom: 14px;
}
.msg-action {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 30px;
border-radius: 9px;
margin-right: 6px;
background-color: #f4f5f7;
}
.msg-action-right {
margin-left: auto;
margin-right: 0;
}
/* ===== 应用内终端 ===== */
.terminal-page {
padding: 0;
}
.term-head {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
}
.back-flip {
transform: rotate(180deg);
}
.term-title {
font-size: 17px;
font-weight: 600;
color: #1f2329;
}
.term-chip {
background-color: #fff7e6;
border-radius: 10px;
padding: 8px 10px;
margin: 0 12px 8px 12px;
}
.term-chip-ok {
background-color: #eaf7ef;
}
.term-chip-text {
font-size: 12px;
line-height: 18px;
color: #6b6250;
}
.term-presets {
display: flex;
flex-direction: row;
padding: 0 12px 8px 12px;
}
.term-body {
flex: 1;
background-color: #14161a;
margin: 0 12px;
border-radius: 12px;
padding: 10px;
}
.term-line {
font-size: 12px;
line-height: 18px;
color: #d7dae0;
margin-bottom: 3px;
}
.term-cmd {
color: #7fd1a0;
}
.term-err {
color: #ff8f8f;
}
.term-note {
color: #8a93a0;
}
.term-input-bar {
display: flex;
flex-direction: row;
align-items: center;
padding: 10px 12px 16px 12px;
}
.term-input {
flex: 1;
height: 40px;
background-color: #f2f4f7;
border-radius: 20px;
padding: 0 14px;
font-size: 14px;
color: #1f2329;
margin-right: 8px;
}
/* ===== 抽屉里的「模型」一栏 + 模型选择面板 ===== */
.menu-item-model {
justify-content: flex-start;
}
.menu-model-value {
font-size: 13px;
color: #8a9099;
margin-left: auto;
margin-right: 6px;
}
.menu-caret {
font-size: 14px;
color: #b8bec7;
margin-bottom: 6px;
}
.sheet-mask {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.35);
display: flex;
flex-direction: column;
justify-content: flex-end;
z-index: 60;
}
.sheet {
background-color: #ffffff;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
padding: 16px 16px 24px 16px;
display: flex;
flex-direction: column;
max-height: 78%;
}
.model-sheet {
animation: fadeInUp 0.22s ease-out;
}
.sheet-head {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.sheet-title {
font-size: 17px;
font-weight: 600;
color: #1f2329;
}
.sheet-section {
font-size: 12px;
color: #9aa0a8;
margin: 12px 0 8px 2px;
}
.model-tip-row {
display: flex;
flex-direction: row;
align-items: center;
background-color: #f2f5fa;
border-radius: 10px;
padding: 8px 10px;
}
.model-tip {
font-size: 12px;
color: #6b7280;
margin-left: 6px;
flex: 1;
}
.model-list {
display: flex;
flex-direction: column;
}
.model-option {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-radius: 12px;
border: 1px solid #eef1f5;
margin-bottom: 8px;
}
.model-option-active {
border-color: #2b7bff;
background-color: #f2f7ff;
}
.model-option-text {
display: flex;
flex-direction: column;
}
.model-name {
font-size: 15px;
color: #1f2329;
font-weight: 500;
}
.model-id {
font-size: 11px;
color: #a3a9b1;
margin-top: 2px;
lines: 1;
text-overflow: ellipsis;
}
.copy-hint {
align-self: center;
font-size: 12px;
color: #ffffff;
background-color: rgba(31, 35, 41, 0.78);
border-radius: 12px;
padding: 5px 12px;
margin-bottom: 10px;
animation: fadeIn 0.2s ease-out;
}
/* 思维链:正文里只放一个入口,点开是底部「思考过程」弹层 */
.think-entry {
display: flex;
flex-direction: row;
align-items: center;
align-self: flex-start;
background-color: #f4f6fa;
border-radius: 14px;
padding: 6px 12px;
margin-bottom: 8px;
animation: fadeInUp 0.24s ease-out;
}
.think-entry-text {
font-size: 13px;
color: #5a6472;
margin-left: 6px;
margin-right: 4px;
}
/* 工具步骤 */
.steps {
display: flex;
flex-direction: column;
margin-bottom: 8px;
}
.step-item {
display: flex;
flex-direction: column;
}
.step-row {
display: flex;
flex-direction: row;
align-items: center;
background-color: #f7f8fa;
border-radius: 10px;
padding: 8px 10px;
margin-bottom: 6px;
}
.step-name {
font-size: 13px;
color: #3c4450;
margin-left: 6px;
}
.step-badge {
font-size: 11px;
color: #34a853;
margin-left: auto;
margin-right: 6px;
}
.step-badge-bad {
color: #e5484d;
}
.step-result {
font-size: 12px;
line-height: 18px;
color: #6b7280;
background-color: #fbfcfd;
border-radius: 10px;
padding: 8px 10px;
margin: -2px 0 8px 0;
}
/* 思考过程弹层 */
.think-sheet {
max-height: 72%;
}
.think-head {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.think-close {
width: 34px;
height: 34px;
border-radius: 17px;
background-color: #f2f4f7;
display: flex;
align-items: center;
justify-content: center;
}
.think-title {
font-size: 17px;
font-weight: 600;
color: #1f2329;
}
.think-scroll {
height: 380px;
}
.think-facts {
display: flex;
flex-direction: column;
margin-bottom: 10px;
}
.think-fact {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 6px;
}
.think-fact-text {
font-size: 13px;
color: #4b5563;
margin-left: 6px;
}
.think-body {
font-size: 13px;
line-height: 21px;
color: #5f6672;
}
/* 思维链(深度思考) */
.reason-box {
display: flex;
flex-direction: column;
background-color: #fbfaf5;
border: 1px solid #f0ead6;
border-radius: 12px;
padding: 10px 12px;
margin-bottom: 8px;
animation: fadeInUp 0.24s ease-out;
}
.reason-head {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.reason-title {
font-size: 12px;
font-weight: 600;
color: #9a7b28;
}
.reason-toggle {
font-size: 12px;
color: #b6a165;
}
.reason-text {
font-size: 12px;
line-height: 19px;
color: #7a6a44;
margin-top: 8px;
lines: 60;
}
/* 用户气泡里的附件 */
.bubble-files {
display: flex;
flex-direction: column;
margin-bottom: 6px;
}
.bubble-file {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 4px;
}
.bubble-file-img {
width: 120px;
height: 120px;
border-radius: 12px;
margin-bottom: 6px;
}
.bubble-file-name {
font-size: 13px;
color: #ffffff;
margin-left: 4px;
lines: 1;
}
/* 输入框上方的附件条 */
.attach-strip {
display: flex;
flex-direction: row;
align-items: flex-end;
padding-left: 16px;
padding-right: 16px;
padding-bottom: 8px;
}
.attach-tile {
position: relative;
width: 64px;
height: 64px;
border-radius: 12px;
margin-right: 10px;
background-color: #f4f5f7;
overflow: hidden;
}
.attach-thumb {
width: 64px;
height: 64px;
}
.attach-file {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
}
.attach-file-name {
font-size: 10px;
color: #5b6270;
margin-top: 2px;
lines: 1;
}
.attach-file-size {
font-size: 9px;
color: #a3a8b3;
}
.attach-remove {
position: absolute;
right: 0;
top: 0;
width: 18px;
height: 18px;
border-radius: 9px;
background-color: rgba(31, 35, 41, 0.7);
display: flex;
align-items: center;
justify-content: center;
}
.attach-add {
width: 64px;
height: 64px;
border-radius: 12px;
border: 1px dashed #cfd4dc;
display: flex;
align-items: center;
justify-content: center;
background-color: #fafbfc;
}
.attach-add-plus {
font-size: 26px;
color: #a3a8b3;
}
.send-btn {
width: 36px;
height: 36px;
border-radius: 18px;
background-color: #2b7bff;
display: flex;
align-items: center;
justify-content: center;
}
/* 智能体列表 */
.agent-item {
display: flex;
flex-direction: row;
align-items: center;
padding-top: 12px;
padding-bottom: 12px;
border-bottom: 1px solid #f2f3f5;
}
.agent-avatar {
width: 44px;
height: 44px;
border-radius: 22px;
}
.agent-info {
flex: 1;
display: flex;
flex-direction: column;
margin-left: 12px;
margin-right: 8px;
}
.agent-name-row {
display: flex;
flex-direction: row;
align-items: center;
}
.agent-name {
font-size: 16px;
font-weight: 600;
color: #1f2329;
}
.agent-tagline {
font-size: 12px;
color: #8a8f99;
margin-top: 3px;
lines: 1;
}
.avatar-picker {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.avatar-choice {
width: 48px;
height: 48px;
border-radius: 24px;
margin-right: 10px;
margin-bottom: 10px;
border: 2px solid transparent;
}
.avatar-choice-on {
border: 2px solid #2b7bff;
}
.avatar-choice-img {
width: 44px;
height: 44px;
border-radius: 22px;
}
/* 抽屉里的会话条目:标题 + 预览 + 时间 */
.conv-item {
height: 62px;
}
.conv-text {
flex: 1;
display: flex;
flex-direction: column;
margin-left: 12px;
margin-right: 6px;
}
.conv-title {
font-size: 16px;
color: #1f2329;
lines: 1;
margin-left: 0px;
}
.conv-preview {
font-size: 11px;
color: #a3a8b3;
margin-top: 3px;
lines: 1;
}
.conv-time {
font-size: 11px;
color: #b6bac2;
}
.conv-del {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
}
.drawer-list {
flex: 1;
}
/* MCP 图形化编辑 */
.server-card {
display: flex;
flex-direction: column;
border: 1px solid #eceef2;
border-radius: 12px;
padding: 12px;
margin-bottom: 12px;
background-color: #fbfcfd;
}
.server-head {
display: flex;
flex-direction: row;
align-items: center;
}
.server-name {
flex: 1;
margin-right: 10px;
}
/* 工具授权勾选 */
.tool-picker {
display: flex;
flex-direction: column;
margin-top: 10px;
border: 1px solid #eceef2;
border-radius: 12px;
padding: 6px 10px;
max-height: 320px;
}
.tool-pick-row {
display: flex;
flex-direction: row;
align-items: center;
padding-top: 8px;
padding-bottom: 8px;
}
.checkbox {
width: 18px;
height: 18px;
border-radius: 5px;
border: 1.5px solid #cfd4dc;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}
.checkbox-on {
background-color: #2b7bff;
border: 1.5px solid #2b7bff;
}
.checkbox-tick {
font-size: 12px;
color: #ffffff;
}
.tool-pick-name {
flex: 1;
font-size: 13px;
color: #1f2329;
lines: 1;
}
.tool-pick-tag {
font-size: 10px;
color: #12a150;
background-color: #e8f7ee;
border-radius: 8px;
padding: 1px 6px;
}