/*
 * 金奢易垂直AI系统 - 悬浮助手样式
 * 零圆角扁平设计；金 #A8781A + 近黑 #26282B + 米白 #FAF8F4
 */

#aiAsstBall{position:fixed;left:24px;bottom:24px;width:52px;height:52px;background:#A8781A;cursor:pointer;z-index:999998;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(38,40,43,.25);transition:background .2s}
#aiAsstBall:hover{background:#8a6516}
#aiAsstBall svg{display:block}

#aiAsstPanel{position:fixed;left:24px;bottom:88px;width:380px;height:560px;background:#FAF8F4;border:1px solid #26282B;z-index:999999;display:none;flex-direction:column;font:14px/1.6 "Microsoft YaHei",sans-serif;color:#26282B;box-shadow:0 4px 16px rgba(38,40,43,.2)}
#aiAsstPanel.open{display:flex}

#aiAsstPanel .aah{background:#26282B;color:#FAF8F4;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
#aiAsstPanel .aah b{font-size:14px;font-weight:600}
#aiAsstPanel .aah .aac{cursor:pointer;color:#A8781A;font-size:18px;line-height:1;padding:2px 6px}
#aiAsstPanel .aah .aac:hover{color:#FAF8F4}

#aiAsstPanel .aam{flex:1;overflow-y:auto;padding:12px;background:#FAF8F4}
#aiAsstPanel .aam::-webkit-scrollbar{width:6px}
#aiAsstPanel .aam::-webkit-scrollbar-thumb{background:#c8c0b0}

#aiAsstPanel .msg{margin-bottom:12px;display:flex;flex-direction:column}
#aiAsstPanel .msg .bub{max-width:88%;padding:8px 12px;word-wrap:break-word;white-space:pre-wrap}
#aiAsstPanel .msg.u{align-items:flex-end}
#aiAsstPanel .msg.u .bub{background:#A8781A;color:#FAF8F4}
#aiAsstPanel .msg.a{align-items:flex-start}
#aiAsstPanel .msg.a .bub{background:#fff;border:1px solid #e0d8c8}
#aiAsstPanel .msg .cit{margin-top:4px;max-width:88%;font-size:12px}
#aiAsstPanel .msg .cit a{display:block;color:#A8781A;text-decoration:none;padding:2px 0}
#aiAsstPanel .msg .cit a:hover{text-decoration:underline}
#aiAsstPanel .msg .cit .cit-txt{display:block;color:#777;padding:2px 0}
#aiAsstPanel .msg .ai-status{font-size:12px;color:#A8781A;padding:2px 0 0}
#aiAsstPanel .msg .fb{margin-top:4px;font-size:12px;color:#999}
#aiAsstPanel .msg .fb span{cursor:pointer;margin-right:10px;padding:1px 6px;border:1px solid #ddd;background:#fff}
#aiAsstPanel .msg .fb span:hover{border-color:#A8781A;color:#A8781A}
#aiAsstPanel .msg .fb span.done{color:#A8781A;border-color:#A8781A;cursor:default}

#aiAsstPanel .aaq{padding:6px 12px;background:#fff;border-top:1px solid #e0d8c8;flex-shrink:0;display:flex;flex-wrap:wrap;gap:6px}
#aiAsstPanel .aaq button{border:1px solid #A8781A;background:#fff;color:#A8781A;font-size:12px;padding:3px 10px;cursor:pointer}
#aiAsstPanel .aaq button:hover{background:#A8781A;color:#fff}

#aiAsstPanel .aai{display:flex;border-top:1px solid #26282B;flex-shrink:0}
#aiAsstPanel .aai textarea{flex:1;border:0;padding:10px;height:44px;resize:none;font:14px/1.4 "Microsoft YaHei",sans-serif;background:#fff;color:#26282B;outline:none}
#aiAsstPanel .aai button{width:72px;border:0;background:#A8781A;color:#fff;font-size:14px;cursor:pointer}
#aiAsstPanel .aai button:hover{background:#8a6516}
#aiAsstPanel .aai button:disabled{background:#c8c0b0;cursor:not-allowed}

#aiAsstPanel .aaf{padding:6px 12px;font-size:11px;color:#999;background:#f0ece2;flex-shrink:0;border-top:1px solid #e0d8c8}

#aiAsstPanel .typing{display:inline-block;width:6px;height:6px;background:#A8781A;margin-right:3px;animation:aiAsstBlink 1s infinite}
#aiAsstPanel .typing:nth-child(2){animation-delay:.2s}
#aiAsstPanel .typing:nth-child(3){animation-delay:.4s}
@keyframes aiAsstBlink{0%,100%{opacity:.2}50%{opacity:1}}

/* 移动端：全屏面板 + 13px */
@media (max-width:768px){
  #aiAsstBall{left:16px;bottom:76px;width:48px;height:48px}
  #aiAsstPanel{right:0;bottom:0;left:0;top:0;width:auto;height:auto;border:0;font-size:13px}
  #aiAsstPanel .aai textarea{font-size:13px}
  #aiAsstPanel .msg .bub{max-width:92%}
}
