/* 思考过程容器样式 */ .thought-container { position: relative; margin: 10px 0; padding: 15px 15px 15px 20px; background-color: rgba(0, 0, 0, 0.03); border-radius: 8px; font-size: 14px; color: #666; line-height: 1.6; width: 100%; box-sizing: border-box; overflow-wrap: break-word; word-wrap: break-word; word-break: normal; white-space: normal; hyphens: auto; transition: max-height 0.3s ease; text-align: left; } /* 思考过程容器的内容区域 */ .thought-container-content { display: block; width: 100%; } .thought-container p { margin: 0; padding: 0; display: inline; white-space: normal; overflow-wrap: break-word; word-wrap: break-word; word-break: normal; } /* 给每个段落之间添加空格 */ .thought-container p:after { content: " "; white-space: normal; } .thought-container br { display: none; } .thought-container::before { content: "思考中..."; display: block; font-size: 0.9rem; color: #7952b3; font-weight: 600; margin-bottom: 8px; font-style: normal; letter-spacing: 0.03em; } .thought-container p:last-child { margin-bottom: 0; } /* 思考过程切换按钮 */ .thought-toggle { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; background: rgba(255, 255, 255, 0.7); border: 1px solid #ddd; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: all 0.2s ease; z-index: 20; } .thought-toggle:hover { background: rgba(255, 255, 255, 0.9); transform: scale(1.05); } .thought-toggle:focus { outline: none; box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); } .thought-toggle svg { width: 16px; height: 16px; color: #666; transition: transform 0.2s ease; } /* 暗色模式适配 */ @media (prefers-color-scheme: dark) { .thought-container { background-color: rgba(255, 255, 255, 0.05); color: #aaa; } .thought-toggle { background: rgba(0, 0, 0, 0.3); border-color: #444; } .thought-toggle:hover { background: rgba(0, 0, 0, 0.4); } .thought-toggle svg { color: #aaa; } }