// GrandClaw 设计系统 - 主样式文件 // 导入设计系统模块 @use 'variables' as *; @use 'mixins' as *; @use 'base' as *; @use 'components' as *; @use 'layout' as *; @use 'pages' as *; /* ============================================ 原始样式内容(待进一步拆分) ============================================ */ /* ============ 布局 - 管理控制台 ============ */ .layout { display: flex; height: 100vh; overflow: hidden; } /* 侧边栏 - 现代白色 */ .sidebar { width: var(--sidebar-width); background: var(--color-bg-1); border-right: 1px solid var(--color-border-2); position: fixed; height: 100vh; overflow-y: auto; overflow-x: hidden; z-index: 101; display: flex; flex-direction: column; } .sidebar-header { height: var(--header-height); display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--color-border-2); flex-shrink: 0; } .sidebar-brand { display: flex; align-items: center; gap: 10px; } .sidebar-logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; } .sidebar-logo-icon::before { content: ''; position: absolute; width: 14px; height: 10px; background: rgba(255, 255, 255, 0.95); border-radius: 4px 4px 2px 2px; top: 5px; } .sidebar-logo-icon::after { content: ''; position: absolute; width: 18px; height: 10px; background: rgba(255, 255, 255, 0.85); border-radius: 2px 2px 4px 4px; bottom: 4px; } .sidebar-logo-icon span { position: absolute; width: 3px; height: 3px; background: rgba(59, 130, 246, 0.9); border-radius: 50%; top: 9px; z-index: 1; } .sidebar-logo-icon span:nth-child(1) { left: 9px; } .sidebar-logo-icon span:nth-child(2) { right: 9px; } .sidebar-brand-text { display: flex; flex-direction: column; gap: 2px; } .sidebar-logo { font-size: 18px; font-weight: 700; color: var(--color-text-1); letter-spacing: -0.3px; line-height: 1.2; } .chat-logo::before { content: ''; width: 28px; height: 28px; background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; } .chat-logo::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 4px; transform: rotate(45deg); } .chat-logo > span::before, .chat-logo + span::before { content: ''; position: absolute; width: 6px; height: 6px; background: rgba(255, 255, 255, 0.95); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); z-index: 1; } .sidebar-menu { padding: 16px 12px; flex: 1; } .sidebar-divider { height: 1px; background: var(--color-border-2); margin: 12px 0; } .sidebar-subtitle { font-size: 13px; color: var(--color-text-3); font-weight: 600; line-height: 1.2; } .menu-item { display: flex; align-items: center; padding: 11px 14px; margin: 2px 0; color: var(--color-text-2); cursor: pointer; border-radius: var(--radius-md); transition: all var(--transition); position: relative; font-weight: 500; } .menu-item:hover { color: var(--color-text-1); background: var(--color-bg-2); } .menu-item.active { color: var(--color-primary); background: var(--color-primary-light); font-weight: 600; } .menu-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--color-primary); border-radius: 0 4px 4px 0; } .menu-item-icon { margin-right: 12px; width: 20px; text-align: center; font-size: 18px; } /* 主内容区 */ .main-content { flex: 1; display: flex; flex-direction: column; height: 100%; overflow: hidden; } /* 顶部栏 */ .header { height: var(--header-height); background: var(--color-bg-1); border-bottom: 1px solid var(--color-border-2); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 100; } .header-left { display: flex; align-items: center; gap: 16px; } .header-title { font-size: 15px; font-weight: 600; color: var(--color-text-1); } .user-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; } /* 页面内容 */ .page-content { flex: 1; padding: 24px; overflow-y: auto; } .page-content-full { flex: 1; padding: 0; overflow: hidden; display: flex; flex-direction: column; } /* ============ 卡片组件 ============ */ .card { background: var(--color-bg-1); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: 20px; border: 1px solid var(--color-border-2); overflow: hidden; } .card-header { padding: 18px 22px; border-bottom: 1px solid var(--color-border-2); display: flex; align-items: center; justify-content: space-between; background: var(--color-bg-1); } .card-title { font-size: 15px; font-weight: 700; color: var(--color-text-1); display: flex; align-items: center; gap: 8px; } .card-body { padding: 22px; } /* ============ 按钮组件 ============ */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; font-size: 14px; font-weight: 600; border-radius: var(--radius-md); border: 1px solid var(--color-border-3); background: var(--color-bg-1); color: var(--color-text-1); cursor: pointer; transition: all var(--transition); white-space: nowrap; } .btn:hover { background: var(--color-bg-2); border-color: var(--color-border-3); transform: translateY(-1px); } .btn:active { transform: translateY(0); } .btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25); } .btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #FFFFFF; box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35); } .btn-success { background: var(--color-success); border-color: var(--color-success); color: #FFFFFF; } .btn-success:hover { background: #059669; border-color: #059669; color: #FFFFFF; } .btn-danger { background: var(--color-danger); border-color: var(--color-danger); color: #FFFFFF; } .btn-danger:hover { background: #DC2626; border-color: #DC2626; color: #FFFFFF; } .btn-sm { padding: 6px 12px; font-size: 13px; font-weight: 600; } /* 文字按钮 */ .text-btn { padding: 2px 6px; font-size: 13px; background: transparent; border: none; color: #475569; cursor: pointer; font-weight: 500; transition: color 0.2s; } .text-btn:hover { color: #3B82F6; } .text-btn-primary { color: #3B82F6; } .text-btn-primary:hover { color: #2563EB; } .text-btn-success { color: #10B981; } .text-btn-success:hover { color: #059669; } .text-btn-danger { color: #EF4444; } .text-btn-danger:hover { color: #DC2626; } .btn-group { display: flex; gap: 8px; align-items: center; } /* ============ 表格组件 ============ */ .table-wrapper { overflow-x: auto; margin: -22px; padding: 22px; } .table { width: 100%; border-collapse: collapse; font-size: 14px; } .table th, .table td { padding: 14px 16px; text-align: left; } .table th { background: var(--color-bg-2); font-weight: 700; color: var(--color-text-2); font-size: 13px; letter-spacing: 0.2px; border-bottom: 1px solid var(--color-border-3); } .table td { border-bottom: 1px solid var(--color-border-2); color: var(--color-text-1); } .table tr:last-child td { border-bottom: none; } .table tbody tr { transition: background var(--transition); } .table tbody tr:hover td { background: var(--color-bg-2); } /* ============ 状态标签组件 ============ */ .status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; } .status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; } .status-running { background: var(--color-success-light); color: var(--color-success); } .status-running::before { background: var(--color-success); } .status-stopped { background: var(--color-bg-3); color: var(--color-text-3); } .status-stopped::before { background: var(--color-text-4); } .status-starting { background: var(--color-warning-light); color: var(--color-warning); } .status-starting::before { background: var(--color-warning); animation: pulse 1.5s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } } .status-error { background: var(--color-danger-light); color: var(--color-danger); } .status-error::before { background: var(--color-danger); } .status-warning { background: var(--color-warning-light); color: var(--color-warning); } .status-warning::before { background: var(--color-warning); } /* 成员角色标签 */ .role-admin { background: var(--color-primary-light); color: var(--color-primary); } .role-admin::before { background: var(--color-primary); } .role-member { background: var(--color-bg-3); color: var(--color-text-2); } .role-member::before { background: var(--color-text-3); } .role-developer { background: #FEF3C7; color: #D97706; } .role-developer::before { background: #D97706; } /* 开关按钮 */ .switch { position: relative; display: inline-block; width: 44px; height: 22px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--color-text-4); transition: 0.3s; border-radius: 22px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background-color: white; transition: 0.3s; border-radius: 50%; } input:checked + .slider { background-color: var(--color-primary); } input:checked + .slider:before { transform: translateX(22px); } /* 列表选择器 */ .list-selector { margin-bottom: 16px; } .list-selector-input { padding: 6px 10px; font-size: 13px; margin-bottom: 10px; } .list-selector-tag { padding: 6px 10px; background: var(--color-primary-light); border-radius: 6px; display: flex; align-items: center; justify-content: space-between; color: var(--color-primary); font-weight: 500; font-size: 13px; margin-bottom: 10px; } .list-selector-tag-close { cursor: pointer; color: var(--color-text-3); } .list-selector-tag-close:hover { color: var(--color-text-1); } .list-selector-table { max-height: 200px; overflow-y: auto; } /* ============ 表单组件 ============ */ .form-group { margin-bottom: 22px; } .form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--color-text-2); font-size: 14px; } .form-label.required::after { content: ' *'; color: var(--color-danger); } .form-control { width: 100%; padding: 9px 12px; font-size: 14px; line-height: 1.6; border: 1px solid var(--color-border-3); border-radius: var(--radius-md); background: var(--color-bg-1); color: var(--color-text-1); transition: all var(--transition); } .form-control:hover { border-color: #94A3B8; } .form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .form-control::placeholder { color: var(--color-text-4); } .form-control[readonly] { background: var(--color-bg-2); color: var(--color-text-3); cursor: not-allowed; } .form-row { display: flex; gap: 20px; } .form-col { flex: 1; } .tag-input-container { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border: 1px solid var(--color-border-3); border-radius: var(--radius-md); background: var(--color-bg-1); min-height: 42px; align-items: center; } .tag-input-container:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .tag-item { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--color-primary-light); color: var(--color-primary); border-radius: 999px; font-size: 13px; font-weight: 500; } .tag-remove { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; transition: background 0.2s; } .tag-remove:hover { background: rgba(59, 130, 246, 0.2); } .tag-input { flex: 1; min-width: 120px; border: none; outline: none; font-size: 14px; background: transparent; color: var(--color-text-1); } .tag-input::placeholder { color: var(--color-text-4); } /* 技能多选列表 */ .skill-checkbox-list { border: 1px solid var(--color-border-3); border-radius: var(--radius-md); max-height: 320px; overflow-y: auto; } .skill-checkbox-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--color-border-2); } .skill-checkbox-item:last-child { border-bottom: none; } .skill-checkbox-item:hover { background: var(--color-bg-2); } .skill-checkbox-item input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; } .skill-checkbox-label { flex: 1; font-weight: 500; font-size: 14px; color: var(--color-text-1); } /* ============ 搜索栏 ============ */ .search-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 8px; align-items: flex-end; } .search-bar-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; } .search-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .search-item-inline { display: flex; align-items: center; gap: 10px; } .search-item label { color: var(--color-text-2); font-size: 13px; font-weight: 600; } .search-actions { display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border-2); } /* ============ 分页组件 ============ */ .pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 20px; } .pagination-item { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border-3); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition); font-size: 13px; font-weight: 500; color: var(--color-text-2); background: var(--color-bg-1); } .pagination-item:hover { border-color: var(--color-primary); color: var(--color-primary); } .pagination-item.active { background: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; } /* ============ 技能 卡片 ============ */ .skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; } .skill-card { background: var(--color-bg-1); border: 1px solid var(--color-border-2); border-radius: var(--radius-lg); padding: 20px; transition: all var(--transition); cursor: pointer; display: flex; flex-direction: column; height: 100%; } .skill-card:hover { border-color: var(--color-border-3); box-shadow: var(--shadow-2); transform: translateY(-2px); } .skill-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; } .skill-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%); display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 24px; flex-shrink: 0; } .skill-info { flex: 1; min-width: 0; } .skill-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--color-text-1); } .skill-author { font-size: 13px; color: var(--color-text-3); } .skill-desc { color: var(--color-text-2); font-size: 14px; margin-bottom: 14px; line-height: 1.6; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; max-height: 60px; overflow: hidden; } .skill-tag { padding: 3px 10px; background: var(--color-bg-2); border-radius: 999px; font-size: 12px; color: var(--color-text-3); font-weight: 500; } .skill-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--color-border-2); margin-top: auto; } .skill-stats { display: flex; gap: 16px; font-size: 13px; color: var(--color-text-3); font-weight: 500; } /* ============ 统计卡片 ============ */ .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; } .stat-card { background: var(--color-bg-1); border-radius: var(--radius-lg); padding: 22px; border: 1px solid var(--color-border-2); position: relative; overflow: hidden; } .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-primary) 0%, #8B5CF6 100%); } .stat-title { font-size: 14px; color: var(--color-text-3); margin-bottom: 8px; font-weight: 600; } .stat-value { font-size: 32px; font-weight: 800; color: var(--color-text-1); line-height: 1.2; letter-spacing: -0.5px; } .stat-trend { font-size: 13px; margin-top: 10px; display: flex; align-items: center; gap: 4px; font-weight: 600; } .stat-trend.up { color: var(--color-success); } /* ============ 实例交互页面样式 ============ */ .chat-layout { display: flex; flex-direction: column; height: 100%; background: var(--color-bg-1); } /* 聊天顶部栏 */ .chat-header { height: var(--header-height); background: var(--color-bg-1); border-bottom: 1px solid var(--color-border-2); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; } .chat-header-left { display: flex; align-items: center; gap: 16px; } .chat-logo { font-size: 17px; font-weight: 700; color: var(--color-text-1); display: flex; align-items: center; gap: 10px; } /* 聊天主区域 */ .chat-main { flex: 1; display: flex; overflow: hidden; } /* 会话列表 */ .chat-sidebar { width: 260px; background: var(--color-bg-2); border-right: 1px solid var(--color-border-2); display: flex; flex-direction: column; flex-shrink: 0; height: 100%; overflow: hidden; } .chat-sidebar-header { padding: 16px; border-bottom: 1px solid var(--color-border-2); } .chat-sidebar-content { flex: 1; overflow-y: auto; padding: 12px; } /* 聊天侧边栏底部导航 */ .chat-sidebar-nav { border-top: 1px solid var(--color-border-2); padding: 8px 12px; background: var(--color-bg-1); } .chat-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer; transition: background 0.2s; color: var(--color-text-2); font-size: 14px; font-weight: 500; } .chat-nav-item:hover { background: var(--color-bg-2); color: var(--color-text-1); } .chat-nav-item.active { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; } .chat-nav-item:hover { background: var(--color-bg-2); color: var(--color-text-1); } .chat-nav-item.active { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; } /* 侧边栏用户状态区域 */ .chat-sidebar-user { display: flex; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--color-border-2); background: var(--color-bg-1); cursor: pointer; transition: background 0.2s; } .chat-sidebar-user:hover { background: var(--color-bg-2); } .chat-sidebar-user-info { flex: 1; min-width: 0; } .chat-sidebar-user-name { font-size: 14px; font-weight: 600; color: var(--color-text-1); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-sidebar-user-role { font-size: 12px; color: var(--color-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 侧边栏项目切换区域 */ .chat-sidebar-project { padding: 16px; border-top: 1px solid var(--color-border-2); background: var(--color-bg-1); } .chat-sidebar-project-label { display: block; font-size: 12px; font-weight: 600; color: var(--color-text-3); margin-bottom: 6px; } .chat-sidebar-project-select { width: 100%; font-size: 13px; } .chat-nav-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 16px; } .chat-nav-text { flex: 1; } .conversation-item { padding: 12px 14px; border-radius: var(--radius-md); cursor: pointer; margin-bottom: 4px; transition: all var(--transition); border: 1px solid transparent; } .conversation-item:hover { background: var(--color-bg-1); border-color: var(--color-border-2); } .conversation-item.active { background: var(--color-bg-1); border-color: var(--color-primary); box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08); } .conversation-title { font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--color-text-1); } .conversation-time { font-size: 12px; color: var(--color-text-3); } /* 聊天内容区 */ .chat-content { flex: 1; display: flex; flex-direction: column; background: var(--color-bg-1); } .chat-messages { flex: 1; overflow-y: auto; padding: 24px; min-height: 0; } /* 欢迎消息 */ .welcome-section { max-width: 820px; margin: 40px auto 0; text-align: center; } .welcome-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; color: var(--color-text-1); } .welcome-desc { color: var(--color-text-3); font-size: 16px; margin-bottom: 40px; } .welcome-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 640px; margin: 0 auto; } .welcome-action { padding: 18px 20px; background: var(--color-bg-2); border: 1px solid var(--color-border-2); border-radius: var(--radius-lg); text-align: left; cursor: pointer; transition: all var(--transition); } .welcome-action:hover { border-color: var(--color-primary); background: var(--color-primary-light); transform: translateY(-2px); } .welcome-action-title { font-weight: 700; margin-bottom: 4px; font-size: 15px; color: var(--color-text-1); } .welcome-action-desc { font-size: 13px; color: var(--color-text-3); } /* 消息气泡 */ .message { display: flex; gap: 14px; margin-bottom: 28px; max-width: 900px; margin-left: auto; margin-right: auto; } .message.user { flex-direction: row-reverse; } .message-avatar { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; } .message-avatar.assistant { background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%); color: #FFFFFF; } .message-avatar.user { background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%); color: #FFFFFF; } .message-content { max-width: 72%; } .message-bubble { padding: 14px 18px; border-radius: 14px; line-height: 1.7; font-size: 15px; } .message.assistant .message-bubble { background: var(--color-bg-2); border-bottom-left-radius: 4px; } .message.user .message-bubble { background: linear-gradient(135deg, var(--color-primary) 0%, #60A5FA 100%); color: #FFFFFF; border-bottom-right-radius: 4px; } .message-time { font-size: 12px; color: var(--color-text-4); margin-top: 8px; padding: 0 4px; } /* AI 思考过程 */ .message-thinking { margin-bottom: 12px; border: 1px solid var(--color-border-3); border-radius: 12px; overflow: hidden; background: #FFFBEB; } .message-thinking-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; user-select: none; border-bottom: 1px solid rgba(0, 0, 0, 0.05); background: rgba(255, 255, 255, 0.5); font-size: 13px; color: #92400E; font-weight: 500; } .message-thinking-header:hover { background: rgba(255, 255, 255, 0.8); } .message-thinking-icon { transition: transform 0.2s ease; font-size: 12px; } .message-thinking.expanded .message-thinking-icon { transform: rotate(90deg); } .message-thinking-content { padding: 12px 14px; font-size: 14px; line-height: 1.6; color: #78350F; display: none; } .message-thinking.expanded .message-thinking-content { display: block; } .message-thinking-content ul { margin: 8px 0 0 0; padding-left: 20px; } .message-thinking-content li { margin-bottom: 4px; } /* 输入区 - 现代设计 */ .chat-input-wrapper { padding: 16px 24px 24px; border-top: none; background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.95) 15%, #F8FAFC 100%); position: relative; flex-shrink: 0; } .chat-input-wrapper::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--color-border-3), transparent); } .chat-input-container { max-width: 860px; margin: 0 auto; } .chat-input-box { border: 1px solid var(--color-border-3); border-radius: 16px; overflow: hidden; background: var(--color-bg-1); transition: all var(--transition); box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04); } .chat-input-box:hover { border-color: #CBD5E1; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06); } .chat-input-box:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 6px 20px rgba(15, 23, 42, 0.08); } .chat-input-main { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 10px 14px; } .chat-input { flex: 1; padding: 6px 2px; border: none; outline: none; font-size: 15px; resize: none; min-height: 24px; max-height: 200px; line-height: 1.6; background: transparent; color: var(--color-text-1); } .chat-input::placeholder { color: var(--color-text-4); } .chat-input-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } .chat-input-tools { display: flex; gap: 2px; padding-right: 6px; border-right: 1px solid var(--color-border-2); } .chat-input-tool { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; color: var(--color-text-3); transition: all var(--transition); font-size: 16px; } .chat-input-tool:hover { background: var(--color-bg-2); color: var(--color-text-1); } .chat-send-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--color-primary) 0%, #60A5FA 100%); color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all var(--transition); flex-shrink: 0; box-shadow: 0 3px 10px rgba(59, 130, 246, 0.25); } .chat-send-btn:hover { transform: scale(1.06); box-shadow: 0 5px 14px rgba(59, 130, 246, 0.35); } .chat-send-btn:active { transform: scale(0.97); } .chat-input-footer { display: flex; align-items: center; justify-content: center; padding: 6px 16px 10px; background: transparent; border-top: none; } .chat-input-hint { font-size: 11px; color: var(--color-text-4); } /* 实例未启动状态 */ .instance-stopped { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 40px; } .instance-stopped-icon { width: 96px; height: 96px; border-radius: 24px; background: var(--color-bg-2); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--color-text-3); margin-bottom: 28px; } .instance-stopped-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--color-text-1); } .instance-stopped-desc { color: var(--color-text-3); margin-bottom: 28px; font-size: 15px; } /* 对话未运行状态 */ .conversation-stopped-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 60px 40px; text-align: center; } .stopped-state-icon-wrapper { position: relative; margin-bottom: 28px; } .stopped-state-icon { width: 88px; height: 88px; border-radius: 22px; background: linear-gradient(135deg, var(--color-bg-2) 0%, var(--color-bg-3) 100%); display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--color-text-3); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); border: 2px solid var(--color-border-2); } .stopped-state-badge { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--color-text-3); color: #FFFFFF; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; } .stopped-state-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--color-text-1); } .stopped-state-desc { color: var(--color-text-3); margin-bottom: 28px; font-size: 15px; line-height: 1.6; } .stopped-state-info { display: flex; gap: 32px; margin-bottom: 32px; padding: 20px 28px; background: var(--color-bg-2); border-radius: 12px; border: 1px solid var(--color-border-2); } .stopped-state-info-item { display: flex; flex-direction: column; gap: 6px; } .stopped-state-info-label { font-size: 12px; color: var(--color-text-3); font-weight: 500; } .stopped-state-info-value { font-size: 18px; font-weight: 700; color: var(--color-text-1); } .stopped-state-btn { padding: 12px 32px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; } /* 对话启动中状态 */ .conversation-starting-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 60px 40px; text-align: center; } .starting-state-icon-wrapper { margin-bottom: 28px; } .starting-state-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--color-text-1); } .starting-state-desc { color: var(--color-text-3); margin-bottom: 32px; font-size: 15px; } .starting-state-progress { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 320px; } .starting-state-progress-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--color-bg-2); border-radius: 10px; border: 1px solid var(--color-border-2); } .starting-state-progress-item.active { background: var(--color-primary-light); border-color: var(--color-primary); } .starting-state-progress-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-success); font-size: 14px; font-weight: 700; } .starting-state-progress-item.active .starting-state-progress-icon { color: var(--color-primary); } .starting-state-progress-text { flex: 1; text-align: left; font-size: 14px; font-weight: 500; color: var(--color-text-2); } .starting-state-progress-item.active .starting-state-progress-text { color: var(--color-primary); font-weight: 600; } .starting-state-spinner { display: inline-block; border: 2px solid var(--color-primary); border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; } /* 启动中动画 */ .starting-animation { display: flex; flex-direction: column; align-items: center; justify-content: center; } /* 启动中状态 */ .instance-starting { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 40px; } .spinner { width: 44px; height: 44px; border: 3px solid var(--color-border-3); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 24px; } @keyframes spin { to { transform: rotate(360deg); } } /* ============ 响应式设计 ============ */ @media (max-width: 768px) { :root { --header-height: 56px; } /* 管理控制台 - 移动端 */ .sidebar { transform: translateX(-100%); transition: transform var(--transition); z-index: 1001; } .sidebar.show { transform: translateX(0); } .page-content { padding: 16px; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-value { font-size: 26px; } /* 聊天页面 - 移动端 */ .chat-sidebar { position: fixed; left: 0; top: 0; height: 100%; z-index: 101; transform: translateX(-100%); transition: transform var(--transition); } .chat-sidebar.show { transform: translateX(0); } .chat-header { padding: 0 16px; } .chat-messages { padding: 16px; } .message-content { max-width: 82%; } .welcome-actions { grid-template-columns: 1fr; } .chat-input-wrapper { padding: 12px 16px 16px; } .skill-grid { grid-template-columns: 1fr; } .form-row { flex-direction: column; gap: 0; } .header-title { display: none; } .mobile-menu-btn { display: flex !important; } .card-body { padding: 16px; } .table-wrapper { margin: -16px; padding: 16px; } } .mobile-menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius-md); } .mobile-menu-btn:hover { background: var(--color-bg-2); } /* 侧边栏遮罩 */ .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.45); z-index: 1000; backdrop-filter: blur(2px); } .sidebar-overlay.show { display: block; } /* 空状态 */ .empty-state { text-align: center; padding: 60px 24px; color: var(--color-text-3); } .empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.6; } .empty-state-text { font-size: 14px; } /* ===== Console page inline styles ===== */ .instance-actions { display: flex; gap: 6px; } .skill-back-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #3B82F6; font-weight: 600; margin-bottom: 16px; } .skill-detail-header { display: flex; gap: 20px; align-items: flex-start; } .skill-detail-icon { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; flex-shrink: 0; } .skill-detail-main { flex: 1; } .skill-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; } .skill-detail-tag { padding: 4px 12px; background: #F1F5F9; border-radius: 999px; font-size: 13px; color: #64748B; } .skill-detail-stats { display: flex; gap: 24px; color: #64748B; font-size: 14px; } .skill-detail-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid #E2E8F0; } .skill-detail-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; } .file-list-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #F8FAFC; border-radius: 8px; margin-bottom: 8px; } .file-icon { width: 32px; height: 32px; background: #E8F3FF; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #3B82F6; } .file-info { flex: 1; } .file-name { font-weight: 600; font-size: 14px; } .file-size { font-size: 12px; color: #94A3B8; } .version-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 8px; margin-bottom: 8px; } .version-info { display: flex; align-items: center; gap: 12px; } .version-tag { padding: 3px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12px; font-weight: 600; } .version-tag.current { background: #E8F3FF; color: #3B82F6; } .version-desc { color: #64748B; font-size: 14px; } .version-date { color: #94A3B8; font-size: 13px; } /* ===== Admin page inline styles ===== */ .admin-sidebar { width: 240px; background: var(--color-bg-1); border-right: 1px solid var(--color-border-2); display: flex; flex-direction: column; flex-shrink: 0; height: 100%; } .admin-sidebar-header { padding: 16px; border-bottom: 1px solid var(--color-border-2); } .admin-sidebar-nav { flex: 1; overflow-y: auto; padding: 12px; } .admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer; transition: background 0.2s; color: var(--color-text-2); font-size: 14px; font-weight: 500; margin-bottom: 2px; } .admin-nav-item:hover { background: var(--color-bg-2); color: var(--color-text-1); } .admin-nav-item.active { background: var(--color-primary-light); color: var(--color-primary); } .admin-nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .admin-nav-text { flex: 1; } .admin-sidebar-user { display: flex; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--color-border-2); background: var(--color-bg-2); cursor: pointer; transition: background 0.2s; } .admin-sidebar-user:hover { background: var(--color-bg-3); } .admin-sidebar-user-info { flex: 1; min-width: 0; } .admin-sidebar-user-name { font-size: 14px; font-weight: 600; color: var(--color-text-1); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .admin-sidebar-user-role { font-size: 12px; color: var(--color-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 成员选择样式 */ .member-selection { border: 1px solid var(--color-border-3); border-radius: var(--radius-md); max-height: 240px; overflow-y: auto; } .member-checkbox-item, .member-radio-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--color-border-2); } .member-checkbox-item:last-child, .member-radio-item:last-child { border-bottom: none; } .member-checkbox-item:hover, .member-radio-item:hover { background: var(--color-bg-2); } .member-checkbox-item input[type="checkbox"], .member-radio-item input[type="radio"] { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; } .member-checkbox-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; } .member-checkbox-info { flex: 1; display: flex; flex-direction: column; gap: 2px; } .member-checkbox-name { font-weight: 600; font-size: 14px; color: var(--color-text-1); } .member-checkbox-dept { font-size: 12px; color: var(--color-text-3); } /* ===== Developer page inline styles ===== */ .dev-back-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #3B82F6; font-weight: 600; margin-bottom: 16px; } .dev-detail-header { display: flex; gap: 20px; align-items: flex-start; } .dev-detail-icon { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; flex-shrink: 0; } .dev-detail-main { flex: 1; } .dev-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; } .dev-detail-tag { padding: 4px 12px; background: #F1F5F9; border-radius: 999px; font-size: 13px; color: #64748B; } .dev-detail-stats { display: flex; gap: 24px; color: #64748B; font-size: 14px; } .dev-detail-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid #E2E8F0; } .dev-detail-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; } .dev-info-row { display: flex; margin-bottom: 16px; } .dev-info-label { width: 100px; flex-shrink: 0; color: #64748B; font-size: 14px; font-weight: 500; } .dev-info-value { flex: 1; color: #1E293B; font-size: 14px; } /* ===== Home page inline styles ===== */ .home-layout { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%); position: relative; overflow: hidden; } .home-layout::before { content: ''; position: absolute; top: -30%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%); pointer-events: none; } .home-layout::after { content: ''; position: absolute; bottom: -20%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 60%); pointer-events: none; } .home-header { padding: 0 48px; height: 68px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; border-bottom: 1px solid var(--color-border-2); background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); } .home-logo { font-size: 18px; font-weight: 800; color: var(--color-text-1); display: flex; align-items: center; gap: 10px; letter-spacing: -0.3px; } .home-logo .sidebar-logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; } .home-logo .sidebar-logo-icon::before { content: ''; position: absolute; width: 14px; height: 10px; background: rgba(255, 255, 255, 0.95); border-radius: 4px 4px 2px 2px; top: 5px; } .home-logo .sidebar-logo-icon::after { content: ''; position: absolute; width: 18px; height: 10px; background: rgba(255, 255, 255, 0.85); border-radius: 2px 2px 4px 4px; bottom: 4px; } .home-logo .sidebar-logo-icon span { position: absolute; width: 3px; height: 3px; background: rgba(59, 130, 246, 0.9); border-radius: 50%; top: 9px; z-index: 1; } .home-logo .sidebar-logo-icon span:nth-child(1) { left: 9px; } .home-logo .sidebar-logo-icon span:nth-child(2) { right: 9px; } .home-nav { display: flex; gap: 6px; } .home-nav a { color: var(--color-text-2); text-decoration: none; padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; gap: 6px; } .home-nav a:hover { color: var(--color-text-1); background: var(--color-bg-2); } .home-nav a svg, .home-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; } .home-nav a.home-nav-login { color: #3B82F6; font-weight: 600; } .home-nav a.home-nav-login:hover { color: #2563EB; background: #EFF6FF; } .home-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; position: relative; z-index: 1; } .home-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--color-primary-light); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 999px; color: var(--color-primary); font-size: 13px; font-weight: 700; margin-bottom: 28px; } .home-badge-dot { width: 8px; height: 8px; background: var(--color-success); border-radius: 50%; } .home-title { font-size: 56px; font-weight: 800; color: var(--color-text-1); margin-bottom: 14px; line-height: 1.15; letter-spacing: -1.2px; } .home-title span { background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .home-desc { font-size: 18px; color: var(--color-text-3); margin-bottom: 44px; max-width: 640px; line-height: 1.7; } .home-buttons { display: flex; gap: 14px; } .home-btn { padding: 13px 30px; font-size: 15px; font-weight: 700; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .home-btn svg { width: 18px; height: 18px; } .home-btn.primary { background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%); color: #FFFFFF; border: none; box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25); } .home-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35); } .home-btn.secondary { background: #FFFFFF; color: var(--color-text-1); border: 1px solid var(--color-border-3); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); } .home-btn.secondary:hover { background: var(--color-bg-2); border-color: #94A3B8; transform: translateY(-1px); } .home-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin-top: 64px; } .home-feature { padding: 24px; background: #FFFFFF; border: 1px solid var(--color-border-2); border-radius: 14px; text-align: left; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .home-feature:hover { border-color: var(--color-border-3); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); transform: translateY(-2px); } .home-feature-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; } .home-feature-icon svg { width: 24px; height: 24px; color: var(--color-primary); } .home-feature-title { font-size: 16px; font-weight: 800; color: var(--color-text-1); margin-bottom: 8px; } .home-feature-desc { font-size: 14px; color: var(--color-text-3); line-height: 1.6; } .home-footer { padding: 28px; text-align: center; color: var(--color-text-4); font-size: 13px; font-weight: 500; position: relative; z-index: 1; } @media (max-width: 768px) { .home-header { padding: 0 16px; } .home-title { font-size: 36px; } .home-desc { font-size: 16px; } .home-buttons { flex-direction: column; width: 100%; max-width: 280px; } .home-btn { width: 100%; justify-content: center; } .home-features { grid-template-columns: 1fr; } .home-nav { display: none; } } /* 添加深度思考区域的可点击样式 */ .message-thinking { cursor: pointer; }