* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif; background: #f8f9fa; color: #1a1a1a; line-height: 1.6; } .container { max-width: 900px; margin: 0 auto; padding: 40px 20px; } .chat-area { background: white; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); } /* 消息块 */ .message-block { margin-bottom: 32px; } .message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: #666; } .icon { flex-shrink: 0; } /* 用户消息 */ .user-message { display: flex; flex-direction: column; align-items: flex-end; } .user-message .message-text { background: rgba(0, 0, 0, 0.03); padding: 14px 18px; border-radius: 16px; max-width: 60%; font-size: 15px; line-height: 1.5; } /* AI消息 */ .assistant-message { display: flex; flex-direction: column; align-items: flex-start; } /* 等待动画 */ .generating-placeholder { display: flex; gap: 4px; padding: 12px 0; font-size: 15px; font-weight: 500; color: #999; } .generating-placeholder .letter { display: inline-block; animation: wave 1.6s ease-in-out infinite; opacity: 0.4; } .generating-placeholder .letter:nth-child(1) { animation-delay: 0s; } .generating-placeholder .letter:nth-child(2) { animation-delay: 0.1s; } .generating-placeholder .letter:nth-child(3) { animation-delay: 0.2s; } .generating-placeholder .letter:nth-child(4) { animation-delay: 0.3s; } .generating-placeholder .letter:nth-child(5) { animation-delay: 0.4s; } .generating-placeholder .letter:nth-child(6) { animation-delay: 0.5s; } @keyframes wave { 0%, 100% { opacity: 0.4; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } } /* 摘要包装器 */ .summary-wrapper { display: flex; gap: 12px; cursor: pointer; position: relative; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .summary-wrapper:hover { opacity: 0.7; } /* 摘要时间线 */ .summary-timeline { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; } .summary-icon { color: #999; flex-shrink: 0; margin-top: 2px; } .summary-line { width: 2px; height: 0; background: #e0e0e0; margin-top: 6px; transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1); } .summary-wrapper.expanded .summary-line { height: 20px; } /* 摘要内容 */ .summary-content { flex: 1; min-width: 0; position: relative; } .summary-text { font-size: 13px; color: #999; line-height: 1.6; display: block; } .summary-text.collapsed { position: relative; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; } .summary-text.collapsed::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(to right, transparent, white); pointer-events: none; } .summary-text-full { font-size: 14px; color: #666; line-height: 1.7; } /* 运行中的发光效果(字体颜色变化) */ .summary-wrapper.running .summary-text, .summary-wrapper.running .summary-text-full { animation: textGlow 1.5s ease-in-out infinite; } @keyframes textGlow { 0%, 100% { color: #999; } 50% { color: #6464ff; } } /* 步骤容器 */ .steps-container { opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1); } .steps-container.show { opacity: 1; max-height: 3000px; } /* 步骤项 */ .step-item { display: flex; gap: 12px; opacity: 0; transform: translateY(-8px); transition: opacity 0.25s ease, transform 0.25s ease; } .step-item.instant { animation: fadeInStep 0.15s ease forwards; } .step-item.animated { animation: fadeInStep 0.35s ease forwards; } @keyframes fadeInStep { to { opacity: 1; transform: translateY(0); } } /* 步骤时间线 */ .step-timeline { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; } .step-icon { color: #666; flex-shrink: 0; margin-top: 2px; } .step-line { width: 2px; background: #e0e0e0; margin-top: 6px; transition: height 0.2s ease; } .step-item:last-child .step-line { height: 0 !important; } /* 步骤内容 */ .step-content { flex: 1; min-width: 0; padding-bottom: 16px; } .step-header { font-size: 12px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; } .step-body { font-size: 14px; line-height: 1.6; color: #333; } /* 思考内容 */ .thinking-content { color: #666; font-size: 14px; line-height: 1.7; max-height: 100px; overflow: hidden; position: relative; } .thinking-content-full { color: #666; font-size: 14px; line-height: 1.7; } .show-more-btn, .show-less-btn { display: inline-block; margin-top: 8px; padding: 4px 12px; background: transparent; border: 1px solid #ddd; border-radius: 6px; font-size: 12px; color: #666; cursor: pointer; transition: all 0.2s ease; } .show-more-btn:hover, .show-less-btn:hover { background: #f5f5f5; border-color: #999; } /* 工具内容 */ .tool-intent { font-weight: 500; color: #444; margin-bottom: 12px; } .tool-result { background: #f8f9fa; border-radius: 8px; padding: 12px; } .result-item { padding: 8px 0; border-bottom: 1px solid #e0e0e0; } .result-item:last-child { border-bottom: none; } .result-title { font-weight: 500; color: #333; margin-bottom: 4px; } .result-url { font-size: 12px; color: #999; } /* 命令块 */ .command-block { background: #f8f9fa; border-radius: 8px; overflow: hidden; } .command-header { background: #e9ecef; padding: 8px 12px; font-size: 12px; color: #666; } .command-code { padding: 12px; font-family: 'SF Mono', 'Monaco', 'Consolas', monospace; font-size: 13px; color: #333; overflow-x: auto; } .command-output { padding: 12px; border-top: 1px solid #e0e0e0; } .output-line { font-family: 'SF Mono', 'Monaco', 'Consolas', monospace; font-size: 12px; color: #666; line-height: 1.8; } /* 最终输出 */ .text-output { margin-top: 16px; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; } .text-output.show { opacity: 1; transform: translateY(0); } .text-content { font-size: 15px; line-height: 1.7; color: #333; } .text-content p { margin-bottom: 16px; } .text-content ol { margin-left: 24px; margin-bottom: 16px; } .text-content li { margin-bottom: 12px; } .text-content strong { font-weight: 600; color: #1a1a1a; } /* 控制面板 */ .control-panel { margin-top: 32px; display: flex; gap: 12px; justify-content: center; } .control-btn { padding: 10px 20px; background: #007bff; color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .control-btn:hover { background: #0056b3; transform: translateY(-1px); } .control-btn:active { transform: translateY(0); }