.llm-result-container { margin-bottom: 14px; max-height: 300px; min-height: 60px; overflow: auto; border: 1px solid #e0e9f4; border-radius: 10px; padding: 16px 20px; background: #f8fbff; display: flex; flex-direction: column; resize: vertical; box-shadow: 0 2px 8px #cdd2fa2c; } .llm-title { position: sticky; top: 0; background: #f8fbff; font-weight: bold; color: #2453b5; margin: 0 -12px 8px -12px; padding: 8px 12px 6px 12px; font-size: 14px; border-bottom: 1px solid #e0e9f4; z-index: 2; } .llm-result-content { flex: 1; overflow-y: auto; min-height: 44px; font-size: 14px; color: #233; line-height: 1.7; word-break: break-all; white-space: pre-wrap; padding-left: 4px; padding-right: 4px; } .llm-input-bar { display: flex; gap: 8px; margin-top: 8px; padding-bottom: 2px; align-items: center; } #llmInput { flex: 1; padding: 6px 10px; border: 1px solid #c9dafc; border-radius: 5px; font-size: 14px; outline: none; min-height: 34px; max-height: 120px; line-height: 1.6; resize: none; /* 禁止用户直接拖动 */ box-sizing: border-box; background: #fff; transition: border 0.18s; overflow-y: auto; } #llmSendBtn { padding: 6px 14px; background: #4179f6; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; transition: background 0.2s; } #llmSendBtn:hover { background: #2350b8; } .llm-msg-item.llm-assistant { color: #233; background: #e7eefb; border-radius: 5px; margin: 3px 0 9px 0; padding: 7px 8px; word-break: break-all; font-weight: 500; border: 1px solid #b3cdfb; } .assistant-label { color: #2560de; font-weight: bold; margin-right: 3px; } .llm-think { background: #fffbe6; color: #8d7a24; font-size: 13px; font-style: italic; border-left: 3px solid #ffe16a; border-radius: 5px; margin-bottom: 6px; padding: 7px 10px 7px 12px; white-space: pre-wrap; } .tab-bar { display: flex; margin-bottom: 12px; border-bottom: 1.5px solid #e2e7f4; background: #f8fbff; } .tab-btn { flex: 1; padding: 9px 0; border: none; background: #f7faff; color: #2764bb; font-weight: bold; cursor: pointer; border-bottom: 2.5px solid transparent; font-size: 15px; transition: background 0.2s, border-color 0.2s; border-radius: 12px 12px 0 0; margin: 0 3px; } .tab-btn.active { background: #e7eefb; color: #2050b0; border-bottom: 2.5px solid #3070ed; } .tab-content { display: none; } .tab-content.active { display: block; } body.fullscreen #tabContentAi .llm-result-container { resize: vertical; overflow: auto; min-height: 160px; max-height: 80vh; } #tabContentAi .llm-result-container, #tabContentEs { margin-top: 8px; margin-bottom: 8px; } body.fullscreen #tabContentAi.tab-content.active { flex: 1 1 0; min-height: 0; display: flex !important; flex-direction: column; height: 100%; } .llm-md { font-size: 14.2px; line-height: 1.48; color: #222d3b; background: #fcfcfe; border-radius: 7px; box-shadow: 0 1.5px 6px #e6ebfa33; border: 1px solid #e7eaf5; padding: 18px 18px 13px 18px; margin: 9px 0 7px 0; overflow-x: auto; } /* 块级元素 margin 清零,只靠外部统一间距 */ .llm-md p, .llm-md ul, .llm-md ol, .llm-md pre, .llm-md blockquote, .llm-md table, .llm-md h1, .llm-md h2, .llm-md h3, .llm-md h4, .llm-md h5, .llm-md h6 { margin: 0; padding: 0; } /* 统一块间距 */ .llm-md > * + * { margin-top: 0.12em; } /* 特殊:列表或段落后直接跟标题时,间距更窄 */ .llm-md ul + h1, .llm-md ul + h2, .llm-md ul + h3, .llm-md ul + h4, .llm-md ul + h5, .llm-md ul + h6, .llm-md ol + h1, .llm-md ol + h2, .llm-md ol + h3, .llm-md ol + h4, .llm-md ol + h5, .llm-md ol + h6, .llm-md p + h1, .llm-md p + h2, .llm-md p + h3, .llm-md p + h4, .llm-md p + h5, .llm-md p + h6 { margin-top: 0.02em !important; } /* ---- 列表优化区 ---- */ .llm-md ul, .llm-md ol { padding-left: 1.18em; margin-left: 0; line-height: 1.17; /* 极紧凑,适合 IM/文档区块 */ } .llm-md li { display: list-item; margin: 0; padding: 0; line-height: 1.17; word-break: break-word; /* 避免多余空间 */ } /* 如果 markdown 渲染成
  • ...

  • ,强制清空 p 的 margin */ .llm-md li > p { margin: 0; padding: 0; display: inline; } /* ---- 其他样式保持原样 ---- */ .llm-md blockquote { background: #f6f9fd; border-left: 4px solid #a4c0f0; padding: 7px 15px; color: #395fa9; font-size: 13.5px; border-radius: 6px; } .llm-md pre { background: #f5f7fa; color: #26324b; border-radius: 8px; padding: 12px 15px 12px 13px; font-size: 13.3px; overflow-x: auto; box-shadow: 0 2px 8px #e0eaf422; position: relative; border: 1px solid #e3e8f2; font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', 'monospace'; } .llm-md pre code { background: none; color: inherit; padding: 0; font-size: inherit; font-family: inherit; white-space: pre; } .llm-md code { background: #f7f6f4; color: #a72543; border-radius: 3.5px; padding: 2px 6px; font-size: 92%; font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', 'monospace'; } .llm-md hr { border: none; border-top: 1px dashed #d1d7e6; margin: 4px 0 4px 0; } .llm-md hr + h1, .llm-md hr + h2, .llm-md hr + h3, .llm-md hr + h4, .llm-md hr + h5, .llm-md hr + h6 { margin-top: 0.03em !important; } .llm-md a { color: #2560de; text-decoration: underline dotted; word-break: break-all; transition: color 0.16s; } .llm-md a:hover { color: #183b8e; background: #e8f1ff; }