/* ======================================================================== Mobile App Shell Constraints & Overrides ======================================================================== */ .mobile-app-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; width: 100vw; max-width: 600px; margin: 0 auto; background: #f8fafc; overflow: hidden; position: relative; box-shadow: 0 0 20px rgba(0,0,0,0.05); /* Soft border for desktop view */ } /* --- Top Bar --- */ .top-bar { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 var(--space-lg); background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.05); z-index: 10; flex-shrink: 0; } .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--color-text-primary); } .avatar-btn { background: none; border: none; padding: 0; cursor: pointer; } .avatar-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary-dark); display: flex; justify-content: center; align-items: center; font-weight: 700; border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .fullscreen-btn { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary-light); padding: 4px 10px; border-radius: 20px; font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; transition: all 0.2s; margin-right: 12px; } .fullscreen-btn:active, .fullscreen-btn:hover { background: var(--color-primary-light); } .main-content { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 140px; /* Room for pill */ } /* --- Capsule Bottom Navigation (Pill Style) --- */ .pill-nav-container { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: 100%; display: flex; flex-direction: column; align-items: center; z-index: 50; pointer-events: none; /* Touches pass through to main content */ } .pill-nav { pointer-events: auto; /* Re-enable touch for the nav itself */ display: flex; align-items: stretch; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 100px; box-shadow: 0 8px 30px rgba(0,0,0,0.08), inset 0 1px 1px rgba(255,255,255,1); padding: 6px; border: 1px solid rgba(255,255,255,0.6); width: calc(100% - 64px); max-width: 340px; gap: 8px; } .pill-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--color-text-secondary); text-decoration: none; border-radius: 50px; padding: 10px 0; transition: all 0.2s; } .pill-item:active { background: rgba(0,0,0,0.05); } .pill-item.active { color: var(--color-primary-dark); font-weight: 700; background: rgba(37, 99, 235, 0.05); } .pill-item svg { margin-bottom: 2px; } .pill-item span { font-size: 10px; } .pill-action { flex: 1.2; display: flex; justify-content: center; align-items: center; } .mic-bubble { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 50px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; width: 100%; height: 100%; color: var(--color-text-primary); font-weight: 800; font-size: 13px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); transition: all 0.2s; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } .mic-bubble:active { background: #e2e8f0; transform: scale(0.96); box-shadow: inset 0 4px 6px rgba(0,0,0,0.05); } .pill-tip { margin-top: 8px; font-size: 10px; color: var(--color-text-tertiary); font-weight: 600; background: rgba(255,255,255,0.8); padding: 4px 12px; border-radius: 12px; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); } /* --- Action Sheet Overlay --- */ .action-sheet-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: flex-end; } .action-sheet-overlay.show { opacity: 1; pointer-events: auto; } .action-sheet-panel { background: white; width: 100%; border-radius: 24px 24px 0 0; padding: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2); display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); } .action-sheet-panel.show { transform: translateY(0); } .sheet-drag-handle { width: 40px; height: 5px; border-radius: 3px; background: #cbd5e1; margin: 0 auto 24px; } /* Recording State UI */ .rec-timer { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 48px; font-family: monospace; font-weight: 800; color: #0f172a; margin-bottom: 8px; letter-spacing: -1px; } .red-dot { width: 14px; height: 14px; background: #ef4444; border-radius: 50%; box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); } .rec-subtitle { text-align: center; color: #64748b; font-size: 13px; margin-bottom: 32px; font-weight: 500; } .rec-triplet-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; background: #f8fafc; padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0; } .form-label { font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 4px; } .rec-triplet-form input { border: 1px solid #cbd5e1; background: white; padding: 12px 14px; border-radius: 8px; font-size: 14px; outline: none; transition: all 0.2s; color: #0f172a; font-weight: 600; } .rec-triplet-form input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); } .stop-btn { background: #ef4444; color: white; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 16px; font-weight: 700; border: none; font-size: 16px; box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); transition: transform 0.2s; cursor: pointer; } .stop-btn:active { transform: scale(0.96); } @keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } } .animate-pulse { animation: pulse 1.5s infinite ease-in-out; } /* Processing / Relay Bar State */ .process-title { text-align: center; font-size: 18px; font-weight: 800; margin-bottom: 32px; color: var(--color-text-primary); } .relay-nodes { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-md) 0; margin-bottom: 24px; } .agent-node { display: flex; flex-direction: column; align-items: center; position: relative; flex: 1; } .node-icon-wrapper { width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg); display: flex; align-items: center; justify-content: center; color: #94a3b8; border: 2px solid var(--color-border); position: relative; z-index: 2; transition: all 0.3s ease; } .agent-node.active .node-icon-wrapper { border-color: var(--color-primary); background: white; color: var(--color-primary); transform: scale(1.1); box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2); } .agent-node.done .node-icon-wrapper { border-color: var(--color-success); background: var(--color-success); color: white; } .node-name { font-size: 11px; font-weight: 700; margin-top: 12px; color: var(--color-text-secondary); text-align: center; } .agent-node.active .node-name { color: var(--color-primary); } .connector { position: absolute; top: 22px; left: 50%; width: 100%; height: 2px; background: var(--color-border); z-index: 1; transition: background 0.4s; } .connector.active { background: var(--color-success); } .pulse-ring { position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 50%; border: 2px solid var(--color-primary); animation: pulse 1.5s infinite; pointer-events: none; } .cost-hint { font-size: 12px; color: var(--color-text-tertiary); font-weight: 600; } /* --- Billing & Profile Modal Overrides --- */ .modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 200; display: flex; justify-content: center; align-items: center; padding: var(--space-lg); opacity: 0; pointer-events: none; transition: opacity 0.3s; } .modal-overlay.show { opacity: 1; pointer-events: auto; } .billing-modal { background: white; border-radius: var(--radius-lg); width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; max-height: 90vh; } .modal-overlay.show .billing-modal { transform: translateY(0); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg); border-bottom: 1px solid var(--color-border-light); } .modal-header.multi-tab { padding: 8px 16px; min-height: 56px; } .tab-selectors { display: flex; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 12px; } .modal-tab-btn { background: transparent; border: none; padding: 6px 16px; font-size: 14px; font-weight: 700; color: #64748b; border-radius: 8px; cursor: pointer; transition: all 0.2s; } .modal-tab-btn.active { background: white; color: var(--color-primary-dark); box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .header-titles h3 { margin: 0; font-size: var(--text-lg); font-weight: 800; color: var(--color-text-primary); } .badge-pro { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 800; margin-top: 4px; display: inline-block; } .close-btn { background: none; border: none; font-size: 24px; color: var(--color-text-tertiary); cursor: pointer; display: flex; } .modal-body { padding: var(--space-xl) var(--space-lg); overflow-y: auto; } .points-card { text-align: center; margin-bottom: var(--space-xl); padding: var(--space-lg); background: #f8fafc; border-radius: var(--radius-md); border: 1px solid var(--color-border); } .points-card .subtitle { font-size: var(--text-sm); color: var(--color-text-secondary); font-weight: 600; } .points-card .points-val { font-size: 36px; font-weight: 800; color: var(--color-primary-dark); margin-top: 8px; letter-spacing: -1px; } .quota-blocks { margin-bottom: var(--space-xl); } .progress-bar { height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; } .progress-fill { height: 100%; background: var(--color-success); border-radius: 5px; } .free-quota { font-size: 12px; color: var(--color-text-secondary); text-align: center; font-weight: 600; } .modal-actions { display: flex; gap: var(--space-md); flex-shrink: 0; } /* Profile Form Elements */ .profile-body { padding: 20px 24px; } .profile-form-group { margin-bottom: 20px; } .profile-form-group label { display: block; font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 8px; } .profile-row { display: flex; gap: 16px; } .avatar-edit-wrapper { display: flex; align-items: center; gap: 16px; background: #f8fafc; padding: 12px; border-radius: 12px; border: 1px solid #e2e8f0; } .avatar-large { width: 56px; height: 56px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; } .avatar-hint { font-size: 12px; color: #64748b; font-weight: 500; line-height: 1.4; } .profile-input { width: 100%; border: 1px solid #cbd5e1; background: white; padding: 10px 14px; border-radius: 8px; font-size: 14px; outline: none; transition: all 0.2s; color: #0f172a; font-weight: 600; box-sizing: border-box; } .profile-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); } .role-pills { display: flex; gap: 8px; background: #f1f5f9; padding: 4px; border-radius: 8px; } .role-pill { flex: 1; border: none; padding: 8px 0; background: transparent; color: #64748b; font-size: 13px; font-weight: 700; border-radius: 6px; cursor: pointer; transition: all 0.2s; } .role-pill.active { background: white; color: var(--color-primary-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.05); } .voice-box { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 16px; background: #fafafa; } .voice-record-btn { display: flex; align-items: center; justify-content: center; padding: 12px; background: white; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-weight: 700; color: #3b82f6; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: all 0.2s; } .voice-record-btn:active { transform: scale(0.98); } .voice-recording-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 12px; background: #fee2e2; border: 1px solid #fca5a5; border-radius: 8px; font-size: 13px; font-weight: 700; color: #ef4444; cursor: pointer; transition: all 0.2s; } .voice-recording-btn.with-progress { border-color: transparent; background: #f1f5f9; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.2); } .progress-fill-bg { position: absolute; left: 0; top: 0; height: 100%; transition: width 0.1s linear, background-color 0.3s ease; z-index: 1; } .content-relative { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; } .voice-ready { display: flex; align-items: center; font-size: 13px; font-weight: 600; color: #0f172a; } .btn-text-danger { background: none; border: none; color: #ef4444; font-size: 12px; font-weight: 700; cursor: pointer; } .voice-loading { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: #64748b; padding: 12px; } .spinner { width: 16px; height: 16px; border: 2px solid #cbd5e1; border-top-color: #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* --- Chat Specific UI (Report Page) --- */ .chat-pill-wrapper { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 600px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 100px; box-shadow: 0 8px 30px rgba(0,0,0,0.1), inset 0 1px 1px rgba(255,255,255,1); border: 1px solid rgba(0,0,0,0.05); padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 12px; z-index: 50; cursor: text; transition: transform 0.2s; } .chat-pill-wrapper:active:not(.disabled-chat) { transform: translateX(-50%) scale(0.98); } .chat-pill-wrapper.disabled-chat { background: var(--color-bg-tertiary); box-shadow: none; cursor: not-allowed; opacity: 0.8; } .chat-pill-wrapper.disabled-chat span.placeholder { color: #cbd5e1; } .chat-pill-wrapper.disabled-chat .send-btn-mock { background: #cbd5e1; } .chat-pill-wrapper span.placeholder { flex: 1; color: #94a3b8; font-size: 15px; font-weight: 500; user-select: none; } .send-btn-mock { width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); color: white; display: flex; justify-content: center; align-items: center; border: none; box-shadow: 0 4px 10px rgba(37,99,235,0.3); } .chat-header { border-bottom: 1px solid var(--color-border); padding-bottom: 12px; margin-bottom: 16px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .chat-header h4 { margin: 0 0 4px 0; font-size: 16px; font-weight: 800; color: var(--color-text-primary); } .chat-header p { margin: 0; font-size: 12px; color: var(--color-primary); font-weight: 600; background: var(--color-primary-light); padding: 2px 10px; border-radius: 12px; } .chat-history { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 8px 0; } .chat-message { display: flex; justify-content: flex-start; gap: 8px; } .chat-message.user { justify-content: flex-end; gap: 8px; } .msg-avatar { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; } /* AI: 方形圆角 + 品牌蓝渐变 */ .ai-avatar { border-radius: 8px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; } /* 用户: 圆形 + 淡紫 */ .user-avatar { border-radius: 50%; background: #f3e8ff; color: #7c3aed; } .chat-message.user .msg-bubble { background: var(--color-primary); color: white; border-bottom-right-radius: 4px; font-weight: 600;} .chat-message:not(.user) .msg-bubble { background: #f1f5f9; color: var(--color-text-primary); border-top-left-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); line-height: 1.5; font-size: 13px;} .msg-bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 14px; word-break: break-word;} /* 流式打字效果 */ .msg-bubble.streaming::after { content: '▋'; animation: blink 1s infinite; color: var(--color-primary); margin-left: 2px; } @keyframes blink { 50% { opacity: 0; } } .chat-input-area { flex-shrink: 0; display: flex; gap: 8px; align-items: center; margin-top: 16px; background: #f8fafc; padding: 6px; border-radius: 30px; border: 1px solid #e2e8f0; } .chat-input-area input { flex: 1; border: none; background: transparent; padding: 8px 16px; font-size: 14px; outline: none; } .chat-send-btn { background: var(--color-primary); color: white; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.2s; } .chat-send-btn:disabled { background: #cbd5e1; color: #f1f5f9; } /* Markdown in Chat */ .markdown-body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; font-size: 15px; color: #1e293b; letter-spacing: 0.01em; } .markdown-body p { margin-bottom: 12px; } .markdown-body p:last-child { margin-bottom: 0; } .markdown-body strong { font-weight: 700; color: #0f172a; } .markdown-body ul, .markdown-body ol { padding-left: 24px !important; margin-bottom: 12px; margin-top: 4px; } .markdown-body ul { list-style-type: disc !important; list-style-position: outside !important; } .markdown-body ol { list-style-type: decimal !important; list-style-position: outside !important; } .markdown-body li { margin-bottom: 6px; display: list-item !important; padding-left: 4px; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { margin-top: 16px; margin-bottom: 10px; font-weight: 700; line-height: 1.3; color: #0f172a; } .markdown-body h3, .markdown-body h4 { font-size: 16px; }