        * {margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", sans-serif;}
        html, body {height: 100%; min-height: 100vh; background: #f5f7fa;}
        body {padding: 0; margin: 0;}
        .chat-container {width: 92%; max-width: 800px; height: 100%; min-height: 100vh; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; display: flex; flex-direction: column;}
        .chat-history {flex: 1; padding: 20px; overflow-y: auto; background: #f9fafb; scrollbar-width: thin;}
        .chat-history::-webkit-scrollbar {width: 4px;}
        .chat-history::-webkit-scrollbar-thumb {background: #ddd; border-radius: 2px;}
        .msg-item {margin-bottom: 18px; max-width: 80%;}
        .user-msg {text-align: right; margin-left: auto;}
        .ai-msg {text-align: left; margin-right: auto;}
        .msg-content {display: inline-block; padding: 12px 18px; border-radius: 18px; line-height: 1.8; font-size: 16px;}
        .user-msg .msg-content {background: #2f80ed; color: #fff; border-bottom-right-radius: 4px;}
        .ai-msg .msg-content {background: #fff; border: 1px solid #eee; color: #333; border-bottom-left-radius: 4px;}
        /* 畜牧业回答排版优化 */
        .ai-msg p {margin: 0 0 8px 0;}
        .ai-msg p:last-child {margin-bottom: 0;}
        .ai-msg strong {color: #2f80ed; font-weight: 600;}
        .ai-msg a {color: #2f80ed; text-decoration: none;}
        .ai-msg a:hover {text-decoration: underline;}
        
        /* 相关问题推荐样式 */
        .related-questions {margin-top: 15px; padding: 10px; background: #f0f8ff; border-radius: 8px; border: 1px solid #d0e6ff; animation: fadeIn 0.5s ease-in-out; opacity: 1;}
        .related-questions h4 {margin: 0 0 10px 0; color: #2f80ed; font-size: 14px; font-weight: bold;}
        .related-questions-grid {display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;}
        .related-questions .related-q {display: block; padding: 8px 10px; background: #e8f0fe; color: #2f80ed; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all 0.2s ease; text-align: center; white-space: normal; word-break: break-word; line-height: 1.3;}
        .related-questions .related-q:hover {background: #2f80ed; color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(47,128,237,0.2);}
        @keyframes fadeIn {from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); }}

        /* 养殖快捷问题栏 */
        .faq-list {text-align: center; padding: 12px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; margin: 0 10px;}
        .faq-list span {padding: 5px 12px; background: #e8f0fe; color: #2f80ed; border-radius: 20px; font-size: 14px; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; margin: 0 3px;}
        .faq-list span:hover {background: #2f80ed; color: #fff;}

        /* 输入框区域 - 重构布局 */
        .chat-input {padding: 15px; background: #fff; border-top: 1px solid #f0f0f0;}
        #question-input {width: 100%; height: 80px; /* 两行高度 */ padding: 12px 18px; border: 1px solid #e5e7eb; border-radius: 12px; outline: none; font-size: 16px; resize: none; line-height: 1.5;}
        #question-input:focus {border-color: #2f80ed;}
        /* 操作按钮区域（图片+发送） */
        .input-actions {display: flex; align-items: center; gap: 10px; margin-top: 10px;}
        .upload-btn {display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 24px; cursor: pointer; transition: all 0.2s ease;}
        .upload-btn:hover {background: #e8f0fe; border-color: #2f80ed;}
        .upload-btn svg {width: 24px; height: 24px; color: #6b7280;}
        .upload-btn:hover svg {color: #2f80ed;}
        #image-input {display: none;}
        #send-btn {flex: 1; height: 48px; background: #2f80ed; color: #fff; border: none; border-radius: 24px; cursor: pointer; font-size: 16px; transition: background 0.2s ease;}
        #send-btn:disabled {background: #d1d5db; cursor: not-allowed;}
        #send-btn:hover:not(:disabled) {background: #1e70d8;}
        /* 图片预览样式 */
        .image-preview {margin-top: 10px; max-width: 200px; max-height: 200px; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; display: none;}
        .image-preview img {width: 100%; height: 100%; object-fit: cover;}
        .preview-close {position: relative; top: -25px; left: calc(100% - 25px); width: 24px; height: 24px; background: rgba(0,0,0,0.5); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px;}
        /* 加载/错误提示专属样式 */
        .loading-msg {color: #6b7280 !important; background: #f3f4f6 !important; border-color: #e5e7eb !important;}
        .error-msg {color: #dc2626 !important; font-weight: 500;}
        /* 底部版权提示 */
        .copyright {text-align: center; padding: 8px 0; font-size: 12px; color: #9ca3af; background: #f9fafb; border-top: 1px solid #f0f0f0;}
        /* 移动端极致适配 */
        @media (max-width: 600px) {
            .chat-container {width: 100%; height: 100%; min-height: 100vh; border-radius: 0;}
            .msg-item {max-width: 95%; margin-bottom: 15px;}
            .msg-content {font-size: 15px; padding: 11px 16px; line-height: 1.7; border-radius: 16px;}
            .faq-list span {font-size: 13px; padding: 4px 10px;}
            .related-questions-grid {grid-template-columns: 1fr; gap: 6px;}
            .related-questions .related-q {font-size: 12px; padding: 6px 8px;}
            #question-input {height: 70px; font-size: 15px; padding: 10px 15px;}
            .upload-btn {width: 45px; height: 45px;}
            #send-btn {height: 45px; font-size: 15px;}
            .chat-history {padding: 15px;}
            .chat-input {padding: 12px;}
            .copyright {font-size: 11px; padding: 6px 0;}
            .image-preview {max-width: 150px; max-height: 150px;}      }
