:root, [data-theme='light'] { --color-bg: #faf9f5; --color-surface: #ffffff; --color-surface-2: #f4f2ea; --color-surface-3: #ece9de; --color-border: #ebe7da; --color-border-strong: #d8d2c0; --color-border-focus: #c2541f; --color-text: #2a2622; --color-text-secondary: #6b6660; --color-text-tertiary: #a09a8e; --color-brand: #c2541f; --color-brand-hover: #a64419; --color-brand-soft: #fdf2ea; --color-brand-soft-2: #fae3d2; --color-success: #4f8a4d; --color-success-soft: #ecf3ec; --color-warning: #b8782a; --color-warning-soft: #fdf3e3; --color-danger: #c0392b; --color-danger-soft: #fbeae8; --color-info: #4a6fa5; --color-info-soft: #ecf1f8; --shadow-xs: 0 1px 2px rgba(40, 30, 20, 0.04); --shadow-sm: 0 1px 2px rgba(40, 30, 20, 0.04), 0 1px 3px rgba(40, 30, 20, 0.05); --shadow-md: 0 2px 4px rgba(40, 30, 20, 0.04), 0 6px 16px rgba(40, 30, 20, 0.06); --shadow-lg: 0 4px 12px rgba(40, 30, 20, 0.06), 0 16px 40px rgba(40, 30, 20, 0.08); --shadow-xl: 0 8px 24px rgba(40, 30, 20, 0.08), 0 24px 60px rgba(40, 30, 20, 0.12); --shadow-focus: 0 0 0 3px rgba(194, 84, 31, 0.18); --gradient-brand: linear-gradient(135deg, #c2541f, #e07b3e); --gradient-hero: radial-gradient(1200px 600px at 0% 0%, #fae3d2 0%, transparent 60%), radial-gradient(900px 500px at 100% 0%, #f0e8d6 0%, transparent 55%), linear-gradient(180deg, #faf9f5 0%, #f4f2ea 100%); } [data-theme='dark'] { --color-bg: #1a1816; --color-surface: #221f1c; --color-surface-2: #2b2824; --color-surface-3: #36322c; --color-border: #36322c; --color-border-strong: #4a443c; --color-border-focus: #e07b3e; --color-text: #f3efe6; --color-text-secondary: #b6afa3; --color-text-tertiary: #7e7869; --color-brand: #e07b3e; --color-brand-hover: #f0935a; --color-brand-soft: #2d2017; --color-brand-soft-2: #3a2a1c; --color-success: #7fb87d; --color-success-soft: #1e2a1d; --color-warning: #d49a4a; --color-warning-soft: #2c2316; --color-danger: #e07060; --color-danger-soft: #2a1a17; --color-info: #8aa9d6; --color-info-soft: #1a2230; --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2); --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3); --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.35); --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45); --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.55); --shadow-focus: 0 0 0 3px rgba(224, 123, 62, 0.25); --gradient-brand: linear-gradient(135deg, #c2541f, #e07b3e); --gradient-hero: radial-gradient(1200px 600px at 0% 0%, #3a2a1c 0%, transparent 60%), radial-gradient(900px 500px at 100% 0%, #2a2620 0%, transparent 55%), linear-gradient(180deg, #1a1816 0%, #221f1c 100%); } * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--color-bg); color: var(--color-text); } body { transition: background-color 0.2s ease, color 0.2s ease; } .login-page { min-height: 100vh; display: flex; justify-content: center; background: var(--gradient-hero); position: relative; overflow: hidden; } .login-deco { position: absolute; border-radius: 50%; filter: blur(40px); } .login-deco-1 { top: -160px; right: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(224, 123, 62, 0.18), transparent 60%); } .login-deco-2 { bottom: -180px; left: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(194, 84, 31, 0.16), transparent 60%); } .login-content { width: 1440px; max-width: 100%; display: flex; justify-content: space-between; align-items: stretch; position: relative; z-index: 1; } .login-brand-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 60px 80px; } .login-brand-header { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; } .login-brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; box-shadow: var(--shadow-md); } .login-brand-name { font-size: 18px; font-weight: 700; color: var(--color-text); } .login-title { font-size: 48px; line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; color: var(--color-text); margin: 0; max-width: 520px; } .login-title-highlight { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .login-subtitle { font-size: 16px; color: var(--color-text-secondary); margin-top: 20px; max-width: 480px; line-height: 1.7; } .login-features { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; } .login-feature-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-secondary); } .login-feature-icon { color: var(--color-brand); } .login-form-panel { width: 480px; display: flex; align-items: center; justify-content: center; padding: 40px; } .login-card { width: 100%; max-width: 380px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow-xl); } .login-card-header { margin-bottom: 24px; } .login-card-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--color-text); letter-spacing: -0.01em; } .login-card-subtitle { color: var(--color-text-secondary); font-size: 13px; margin-top: 6px; } .login-form { margin-top: 8px; } .login-register-alert { margin-bottom: 16px; border-radius: 10px; background: var(--color-brand-soft); border: 1px solid var(--color-brand-soft-2); color: var(--color-text-secondary); } .login-submit-btn { margin-top: 4px; height: 44px; font-weight: 600; } .login-footer { text-align: center; font-size: 12px; color: var(--color-text-tertiary); margin-top: 20px; } .layout-shell { display: flex; height: 100vh; background: var(--color-bg); } .main { flex: 1; overflow: auto; background: var(--color-bg); } .main-chat { overflow: hidden; } .sidebar { width: 248px; background: var(--color-surface); border-right: 1px solid var(--color-border); color: var(--color-text); display: flex; flex-direction: column; padding: 14px 12px; } .sidebar .brand { font-size: 15px; font-weight: 700; color: var(--color-text); padding: 6px 10px 18px; display: flex; align-items: center; gap: 10px; } .sidebar .brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--gradient-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: var(--shadow-sm); } .sidebar .nav-section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-tertiary); padding: 14px 12px 6px; } .sidebar .nav-item { padding: 7px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 10px; margin-bottom: 1px; color: var(--color-text-secondary); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: background 0.15s ease, color 0.15s ease; } .sidebar .nav-item:hover { background: var(--color-surface-2); color: var(--color-text); } .sidebar .nav-item.active { background: var(--color-brand-soft); color: var(--color-brand); font-weight: 600; } .sidebar .nav-item .nav-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; } .sidebar .kbd { font-size: 10.5px; color: var(--color-text-tertiary); background: var(--color-surface-2); border: 1px solid var(--color-border); padding: 1px 5px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } .sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; border-radius: 10px; background: var(--color-surface-2); border: 1px solid var(--color-border); } .agent-card { background: var(--color-surface); border-radius: 14px; padding: 20px; border: 1px solid var(--color-border); height: 100%; display: flex; flex-direction: column; gap: 12px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; box-shadow: var(--shadow-xs); } .agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); } .agent-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; overflow: hidden; box-shadow: var(--shadow-sm); } .agent-card .desc { color: var(--color-text-secondary); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; line-height: 1.55; } .empty-state { text-align: center; padding: 60px 0; color: var(--color-text-tertiary); } .page-hero { background: var(--gradient-hero); border-bottom: 1px solid var(--color-border); padding: 56px 32px 40px; } .page-hero .hero-title { font-size: 32px; font-weight: 700; color: var(--color-text); margin: 0 0 8px; } .page-hero .hero-subtitle { font-size: 15px; color: var(--color-text-secondary); margin: 0; max-width: 640px; } .chat-shell { display: flex; height: 100vh; background: var(--color-bg); } .chat-side { width: 280px; border-right: 1px solid var(--color-border); padding: 16px; overflow: hidden; display: flex; flex-direction: column; height: 100%; background: var(--color-surface); } .chat-main { flex: 1; display: flex; flex-direction: column; background: var(--color-bg); min-width: 0; } .chat-header { height: 60px; padding: 0 24px; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; background: var(--color-surface); } .chat-body { flex: 1; overflow-y: auto; background: var(--color-bg); } .chat-body .messages-container { max-width: 780px; width: 100%; margin: 0 auto; padding: 28px 24px 100px; } .bubble { max-width: 78%; padding: 14px 18px; border-radius: 14px; margin-bottom: 14px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.65; font-size: 14.5px; } .bubble.user { background: var(--color-brand-soft); color: var(--color-text); margin-left: auto; border-bottom-right-radius: 5px; } .bubble.assistant { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-bottom-left-radius: 5px; box-shadow: var(--shadow-xs); } .bubble.assistant p { margin: 0 0 10px; } .bubble.assistant p:last-child { margin-bottom: 0; } .chat-input-wrapper { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 24px 24px; } .chat-input-card { width: 100%; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; padding: 14px 16px 12px; min-height: 110px; box-shadow: var(--shadow-sm); } .chat-input-card:focus-within { border-color: var(--color-border-focus); box-shadow: var(--shadow-focus); } .chat-input-textarea { border: none !important; box-shadow: none !important; padding: 10px 4px !important; font-size: 16px; line-height: 1.7; resize: none; background: transparent !important; color: var(--color-text) !important; } .monica-editor-column { height: 100%; overflow-y: auto; padding: 24px; } .monica-section-title { font-size: 15px; font-weight: 600; color: var(--color-text); margin-bottom: 14px; } .monica-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; margin-bottom: 16px; } .monica-header { height: 56px; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: var(--color-surface); } .agent-editor-shell { background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.08), transparent 24%), radial-gradient(circle at top right, rgba(59, 130, 246, 0.07), transparent 22%), var(--color-bg); } .agent-editor-header { height: 72px; padding: 0 28px; border-bottom: 1px solid var(--color-border); background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(14px); } .agent-editor-workbench { display: flex; gap: 14px; padding: 14px; min-height: 0; } .agent-editor-pane { min-width: 0; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(252,252,253,1) 100%); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045); overflow: hidden; } .agent-editor-pane-body { height: 100%; overflow-y: auto; padding: 22px; } .agent-editor-pane-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; } .agent-editor-pane-title { font-size: 18px; font-weight: 700; color: var(--color-text); margin: 0 0 6px; letter-spacing: -0.02em; } .agent-editor-pane-subtitle { font-size: 13px; line-height: 1.7; color: var(--color-text-secondary); margin: 0; } .agent-editor-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(8, 145, 178, 0.08); color: var(--color-brand); font-size: 12px; font-weight: 600; white-space: nowrap; } .agent-editor-intro { border-radius: 18px; padding: 16px 18px; background: linear-gradient(135deg, rgba(236,253,245,0.92) 0%, rgba(240,249,255,0.92) 100%); border: 1px solid rgba(8, 145, 178, 0.12); margin-bottom: 16px; } .agent-editor-intro-title { font-size: 14px; font-weight: 700; color: var(--color-text); margin-bottom: 6px; } .agent-editor-intro-text { font-size: 12.5px; line-height: 1.7; color: var(--color-text-secondary); } .agent-editor-surface { border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.14); background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.88) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.65); } .agent-editor-prompt-wrap { padding: 12px; } .agent-editor-prompt { border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.12); background: rgba(255,255,255,0.72); } .agent-editor-preview-shell { height: 100%; display: flex; flex-direction: column; } .agent-editor-modal-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; margin-bottom: 20px; } .agent-editor-modal-card { border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.14); background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.88) 100%); } .agent-editor-avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(248,250,252,0.9) 0%, rgba(255,255,255,0.92) 100%); border: 1px solid rgba(148, 163, 184, 0.12); max-height: 280px; overflow-y: auto; } .page-container { max-width: 1240px; margin: 0 auto; padding: 40px 32px 60px; } .page-header { margin-bottom: 32px; } .page-title { font-size: 28px; font-weight: 700; color: var(--color-text); margin: 0 0 6px; } .page-subtitle { font-size: 14px; color: var(--color-text-secondary); margin: 0; } .create-card { min-height: 240px; height: 100%; border: 1.5px dashed var(--color-border-strong); border-radius: 14px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 20px; gap: 12px; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease; background: var(--color-surface); box-shadow: var(--shadow-xs); } .create-card:hover { transform: translateY(-2px); border-color: var(--color-brand); background: var(--color-brand-soft); box-shadow: var(--shadow-md); } .create-card .create-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--color-surface); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); color: var(--color-brand); font-size: 22px; border: 1px solid var(--color-border); } .theme-toggle { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-secondary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .theme-toggle:hover { border-color: var(--color-border-strong); color: var(--color-text); background: var(--color-surface-2); } .flex { display: flex; } .flex-col { flex-direction: column; } .flex-row { flex-direction: row; } .flex-1 { flex: 1; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-start { justify-content: flex-start; } .justify-end { justify-content: flex-end; } .h-full { height: 100%; } .w-full { width: 100%; } .overflow-hidden { overflow: hidden; } .overflow-auto { overflow: auto; } .object-cover { object-fit: cover; } .fixed { position: fixed; } .absolute { position: absolute; } .relative { position: relative; } .inset-0 { top: 0; right: 0; bottom: 0; left: 0; } .z-100 { z-index: 100; } .p-4 { padding: 1rem; } .p-2 { padding: 0.5rem; } .px-1 { padding-left: 0.25rem; padding-right: 0.25rem; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mt-2 { margin-top: 0.5rem; } .mt-6 { margin-top: 1.5rem; } .gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } .rounded-full { border-radius: 9999px; } .rounded-lg { border-radius: 0.5rem; } .text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.875rem; } .text-lg { font-size: 1.125rem; } .font-bold { font-weight: 700; } .font-medium { font-weight: 500; } .bg-white { background: var(--color-surface); } .bg-gray-50 { background: var(--color-surface-2); } .text-gray-400 { color: var(--color-text-tertiary); } .text-gray-500 { color: var(--color-text-secondary); } .text-gray-700 { color: var(--color-text); } .text-gray-800 { color: var(--color-text); } .border-none { border: none; } .border-t { border-top: 1px solid var(--color-border); } .border-l { border-left: 1px solid var(--color-border); } .shadow-lg { box-shadow: var(--shadow-lg); } .ant-btn-primary { box-shadow: 0 1px 2px rgba(194, 84, 31, 0.18) !important; } .ant-input, .ant-input-affix-wrapper, .ant-input-number, .ant-select-selector, .ant-picker { background: var(--color-surface) !important; border-color: var(--color-border) !important; color: var(--color-text) !important; } .ant-input::placeholder { color: var(--color-text-tertiary) !important; } .ant-input-affix-wrapper:hover, .ant-input:hover, .ant-select:hover .ant-select-selector, .ant-picker:hover { border-color: var(--color-border-strong) !important; } .ant-input-affix-wrapper-focused, .ant-input:focus, .ant-select-focused .ant-select-selector, .ant-picker-focused { border-color: var(--color-brand) !important; box-shadow: var(--shadow-focus) !important; } .ant-card { background: var(--color-surface) !important; border-color: var(--color-border) !important; } .ant-modal-content, .ant-modal-header, .ant-drawer-content { background: var(--color-surface) !important; } .ant-modal-title, .ant-collapse-header { color: var(--color-text) !important; } .ant-divider, .ant-drawer-header, .ant-collapse, .ant-collapse-item, .ant-collapse-content { border-color: var(--color-border) !important; } .ant-collapse-content { background: var(--color-surface) !important; color: var(--color-text) !important; } .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn { color: var(--color-brand) !important; } .ant-tabs-ink-bar { background: var(--color-brand) !important; } [data-theme='dark'] .ant-btn-default { background: var(--color-surface-2) !important; border-color: var(--color-border) !important; color: var(--color-text) !important; } [data-theme='dark'] .ant-btn-default:hover { background: var(--color-surface-3) !important; border-color: var(--color-border-strong) !important; } [data-theme='dark'] .ant-tag { background: var(--color-surface-2); border-color: var(--color-border); color: var(--color-text-secondary); } /* Avatar Hover Overlay */ .avatar-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.5); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s ease-in-out; } .avatar-container:hover .avatar-overlay { opacity: 1; } .avatar-overlay-text { font-size: 10px; color: white; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }