.intelligent-service{height:100%;display:flex;background:#f0f2f5}.sidebar{width:260px;background:#fff;border-right:1px solid #e8e8e8;display:flex;flex-direction:column;transition:width .3s ease;flex-shrink:0;position:relative}.sidebar.collapsed{width:56px}.expand-btn{position:absolute;right:-16px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:1px solid #e8e8e8;border-radius:50%;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;color:#666;box-shadow:0 2px 8px rgba(0,0,0,.1);transition:all .2s;z-index:100}.expand-btn:hover{background:#1677ff;color:#fff;border-color:#1677ff}.sidebar-header{padding:16px;justify-content:space-between;border-bottom:1px solid #f0f0f0}.sidebar-header,.sidebar-title{display:flex;align-items:center}.sidebar-title{gap:8px}.sidebar-title .icon{font-size:20px}.sidebar-title .title-text{font-size:14px;font-weight:600;color:#333}.sidebar-actions{display:flex;gap:4px}.action-btn{width:28px;height:28px;border:none;border-radius:6px;background:#f5f5f5;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;color:#666;transition:all .2s}.action-btn:hover{background:#e6f0ff;color:#1677ff}.chat-history{flex:1;overflow-y:auto;padding:8px}.chat-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;cursor:pointer;transition:background .2s;margin-bottom:4px;position:relative}.chat-item:hover{background:#f5f7fa}.chat-item.active{background:#e6f0ff}.chat-icon{width:32px;height:32px;border-radius:6px;background:#f0f2f5;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}.chat-info{flex:1;min-width:0;overflow:hidden}.chat-title{font-size:13px;font-weight:500;color:#333}.chat-preview,.chat-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-preview{font-size:12px;color:#999;margin-top:2px}.delete-chat{width:20px;height:20px;border:none;border-radius:50%;background:transparent;cursor:pointer;font-size:16px;color:#ccc;opacity:0;transition:all .2s}.chat-item:hover .delete-chat{opacity:1}.delete-chat:hover{background:#ff4d4f;color:#fff}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.service-header{padding:16px 24px;background:linear-gradient(135deg,#1677ff,#0958d9);font-weight:600;letter-spacing:1px;display:flex;justify-content:space-between;align-items:center}.service-header,.title{color:#fff;font-size:18px}.title{margin:0}.status{display:flex;align-items:center;gap:8px}.status-dot{width:8px;height:8px;border-radius:50%;background:#52c41a;animation:pulse 2s infinite}.status-text{color:hsla(0,0%,100%,.85);font-size:14px}@keyframes pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.chat-container{padding:0;overflow:hidden;height:100%}.chat-container,.messages{flex:1;display:flex;flex-direction:column}.messages{overflow-y:auto;padding:20px 24px;gap:16px}.welcome-container{margin-bottom:auto}.message-row{display:flex;align-items:flex-start;gap:10px}.message-row.user{flex-direction:row-reverse}.message-row.user .bubble{background:#1677ff;color:#fff;border-top-right-radius:2px}.message-row.bot .bubble{background:#f5f5f5;color:#333;border-top-left-radius:2px;max-width:92%}.avatar{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}.user-avatar{background:#1677ff;color:#fff}.bot-avatar{background:#f0f2f5;color:#333}.bubble{max-width:80%;padding:12px 16px;border-radius:12px;font-size:14px;line-height:1.7;word-break:break-word;white-space:pre-wrap;overflow-x:auto}.welcome-message h3{margin:0 0 8px 0;color:#1890ff}.welcome-message ul{margin:8px 0;padding-left:20px}.welcome-message li{margin:4px 0}.thinking{color:#999;font-style:italic}.thinking .dot-loading:after{content:"";animation:dots 1.5s steps(3) infinite}@keyframes dots{0%{content:""}33%{content:"."}66%{content:".."}to{content:"..."}}.cursor{display:inline-block;width:2px;height:14px;background:#555;margin-left:2px;vertical-align:middle;animation:blink .8s infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.bubble table{border-collapse:collapse;font-size:13px;margin-top:8px;background:#fff;min-width:100%}.bubble td,.bubble th{border:1px solid #d9d9d9;padding:6px 10px;text-align:center;white-space:nowrap;vertical-align:middle}.bubble th{background:#e6f0ff;font-weight:600;color:#1890ff}.bubble tr:nth-child(2n) td{background:#f9fbff}.bubble .report-summary{margin-bottom:8px;white-space:pre-wrap;font-size:13px;color:#555}.bubble .report-analysis{margin-top:8px;margin-bottom:0;white-space:pre-wrap;font-size:13px;color:#555}.bubble .message-link{color:#1677ff;text-decoration:underline;cursor:pointer}.bubble .message-link:hover{color:#0958d9}.bubble .chart-box{width:100%;height:320px;margin:12px 0;background:#fff;border:1px solid #e5e6eb;border-radius:8px;padding:8px}.bubble .chart-fallback,.bubble .chart-loading,.bubble .table-loading{margin:8px 0;padding:8px;background:#fff7e6;border:1px solid #ffd591;border-radius:6px;color:#8a4b00;white-space:pre-wrap}.bubble .chart-loading,.bubble .table-loading{background:#f0f7ff;border-color:#91caff;color:#0958d9}.input-area{padding:16px 24px;border-top:1px solid #f0f0f0;background:#fff;display:flex;gap:10px;flex-shrink:0}.input-container{display:flex;gap:10px;align-items:stretch;flex:1}.chat-textarea{flex:1;resize:none;border:1px solid #d9d9d9;border-radius:8px;padding:10px 14px;font-size:14px;font-family:inherit;line-height:1.5;outline:none;transition:border-color .2s;height:44px;max-height:120px;overflow-y:auto;background:#fff;color:#333}.chat-textarea:focus{border-color:#1677ff}.chat-textarea:disabled{background:#f5f5f5;cursor:not-allowed;color:#999}.chat-textarea::-moz-placeholder{color:silver;font-size:14px}.chat-textarea::placeholder{color:silver;font-size:14px}.send-button{padding:0 22px!important;background:#1677ff!important;color:#fff!important;border:none!important;border-radius:8px!important;font-size:14px!important;cursor:pointer;transition:background .2s!important;height:44px!important;white-space:nowrap;display:flex!important;align-items:center!important;justify-content:center!important}.send-button:hover:not(:disabled){background:#0958d9!important}.send-button:disabled{background:#b0c4f8!important;cursor:not-allowed}@media screen and (max-width:768px){.sidebar{display:none}.main-content{width:100%;display:flex;flex-direction:column;height:100vh}.service-header{padding:12px 16px;flex-shrink:0}.title{font-size:16px}.chat-container{flex:1;display:flex;flex-direction:column;padding:0;overflow:hidden}.messages{padding:12px;gap:10px;padding-bottom:70px}.message-row{gap:6px;width:100%}.avatar{width:30px;height:30px;font-size:13px}.bubble{max-width:90%;padding:10px 12px;font-size:14px;line-height:1.6;border-radius:10px}.message-row.user .bubble{border-top-right-radius:2px}.message-row.bot .bubble{border-top-left-radius:2px}.bubble table{font-size:12px}.bubble td,.bubble th{padding:4px 8px}.bubble .chart-box{height:220px}.bubble .report-analysis,.bubble .report-summary{font-size:12px}.input-area{position:fixed;bottom:0;left:0;right:0;padding:10px 12px;gap:8px;background:#fff;border-top:1px solid #f0f0f0;box-shadow:0 -2px 10px rgba(0,0,0,.05);z-index:100}.input-container{gap:8px;max-width:100%}.chat-textarea{padding:8px 12px;font-size:14px;height:40px}.send-button{padding:0 16px!important;font-size:14px!important;height:40px!important}.cursor{height:12px}.thinking{font-size:13px}}@media screen and (max-width:480px){.service-header{padding:10px 12px}.title{font-size:15px}.status-text{font-size:12px}.messages{padding:12px;gap:10px}.message-row{gap:6px}.avatar{width:28px;height:28px;font-size:12px}.bubble{max-width:88%;padding:8px 12px;font-size:12px;line-height:1.5;border-radius:8px}.bubble table{font-size:11px}.bubble td,.bubble th{padding:3px 6px}.bubble .chart-box{height:200px}.bubble .report-analysis,.bubble .report-summary{font-size:11px}.input-area{padding:10px 12px;gap:6px}.input-container{gap:6px}.chat-textarea{padding:6px 10px;font-size:12px;height:36px}.send-button{padding:0 12px!important;font-size:12px!important;height:36px!important}.cursor{height:11px}.thinking{font-size:12px}}