:root{--primary: #07c160;--primary-dark: #06ad56;--bg: #ededed;--header-bg: #f7f7f7;--text: #1a1a1a;--bubble-user: #95ec69;--bubble-ai: #ffffff;--border: #d9d9d9}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;background:var(--bg);color:var(--text)}.chat-container{display:flex;flex-direction:column;height:100%;max-width:720px;margin:0 auto;background:#f5f5f5;box-shadow:0 0 20px #00000014}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:var(--header-bg);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.chat-title{font-size:17px;font-weight:600}.status{font-size:12px;padding:3px 8px;border-radius:10px}.status.on{color:#07c160;background:#e8f8ef}.status.off{color:#999;background:#f0f0f0}.message-list{flex:1;overflow-y:auto;padding:16px 12px;display:flex;flex-direction:column;gap:12px}.empty-hint{text-align:center;color:#999;font-size:14px;margin-top:60px}.msg-row{display:flex;align-items:flex-start;gap:10px;max-width:100%}.msg-row.user{flex-direction:row-reverse}.avatar{width:40px;height:40px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:#fff}.user-avatar{background:#5b8def}.assistant-avatar{background:var(--primary)}.bubble{padding:10px 14px;border-radius:8px;font-size:15px;line-height:1.5;word-break:break-word;max-width:75%;white-space:pre-wrap}.user-bubble{background:var(--bubble-user);border-top-right-radius:2px}.assistant-bubble{background:var(--bubble-ai);border-top-left-radius:2px;box-shadow:0 1px 2px #0000000d}.bubble-text{white-space:pre-wrap}.bubble-image{max-width:220px;max-height:300px;border-radius:6px;display:block}.bubble-file{color:#07c160;text-decoration:none;font-size:14px}.bubble-emoji{font-size:40px;line-height:1}.typing-dots{display:inline-flex;gap:4px;padding:4px 0}.typing-dots span{width:6px;height:6px;border-radius:50%;background:#999;animation:blink 1.2s infinite}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.3}40%{opacity:1}}.error-banner{padding:8px 16px;background:#fff1f0;color:#d4380d;font-size:13px;border-top:1px solid #ffccc7}.message-input{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;background:#f7f7f7;border-top:1px solid var(--border)}.input-area{flex:1;resize:none;min-height:40px;max-height:120px;padding:10px 12px;border:1px solid #e0e0e0;border-radius:6px;font-size:15px;font-family:inherit;line-height:1.4;outline:none}.input-area:focus{border-color:var(--primary)}.send-btn{flex-shrink:0;height:40px;padding:0 20px;border:none;border-radius:6px;background:var(--primary);color:#fff;font-size:15px;cursor:pointer}.send-btn:disabled{background:#ccc;cursor:not-allowed}.send-btn:not(:disabled):hover{background:var(--primary-dark)}@media(max-width:480px){.chat-container{max-width:100%;box-shadow:none}.bubble{max-width:82%}}.login-container{display:flex;align-items:center;justify-content:center;height:100%;background:var(--bg)}.login-card{background:#fff;padding:40px 32px;border-radius:12px;box-shadow:0 4px 20px #0000001a;width:320px;max-width:90%;text-align:center}.login-title{font-size:22px;font-weight:600;color:#333}.login-subtitle{margin:12px 0 20px;font-size:14px;color:#999}.login-input{width:100%;padding:10px 12px;border:1px solid #e0e0e0;border-radius:6px;font-size:15px;outline:none;box-sizing:border-box}.login-input:focus{border-color:var(--primary)}.login-error{margin-top:10px;font-size:13px;color:#d4380d}.login-btn{margin-top:16px;width:100%;height:42px;border:none;border-radius:6px;background:var(--primary);color:#fff;font-size:15px;cursor:pointer}.login-btn:disabled{background:#ccc;cursor:not-allowed}
