html{font-size:37.5px}@media screen and (max-width:320px){html{font-size:32px}}@media screen and (min-width:375px)and (max-width:414px){html{font-size:41.4px}}@media screen and (min-width:414px)and (max-width:480px){html{font-size:48px}}@media screen and (min-width:480px){html{font-size:50px}}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}*{box-sizing:border-box;margin:0;padding:0}a{font-weight:500;color:#646cff;text-decoration:inherit;-webkit-tap-highlight-color:transparent}a:hover{color:#535bf2}a:active{opacity:.8}body{margin:0;min-height:100vh;width:100%;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-y}h1{font-size:.8533rem;line-height:1.2;font-weight:600}button{border-radius:.2133rem;border:1px solid transparent;padding:.32rem .64rem;font-size:.3733rem;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s,opacity .25s;-webkit-tap-highlight-color:transparent;touch-action:manipulation;-webkit-user-select:none;user-select:none}button:hover{border-color:#646cff}button:active{opacity:.8}button:focus,button:focus-visible{outline:2px solid #646cff;outline-offset:2px}input,textarea{font-size:.3733rem;-webkit-appearance:none;border-radius:.1067rem}img{max-width:100%;height:auto;display:block}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9;color:#213547}}.chat-container{display:flex;flex-direction:column;height:100vh;width:100%;background:linear-gradient(180deg,#f5f7fa,#c3cfe2);overflow:hidden}.chat-header{background:#fff;padding:.4rem .5333rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 .0533rem .1333rem #0000001a;position:sticky;top:0;z-index:100}.chat-title{font-size:.4267rem;font-weight:600;color:#333;margin:0}.chat-header-actions{display:flex;align-items:center;gap:.2667rem}.chat-status{display:flex;align-items:center;gap:.1333rem;font-size:.32rem;color:#666}.api-key-button{background:transparent;border:none;font-size:.4267rem;cursor:pointer;padding:.1333rem;border-radius:.1067rem;transition:background .2s;-webkit-tap-highlight-color:transparent}.api-key-button:active{background:#0000001a}.api-key-container{background:#fff;padding:.5333rem;border-bottom:1px solid #e0e0e0;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-.2667rem)}to{opacity:1;transform:translateY(0)}}.api-key-form{display:flex;flex-direction:column;gap:.2667rem}.api-key-label{font-size:.32rem;color:#666;font-weight:500}.api-key-input{width:100%;padding:.32rem .4267rem;border:1px solid #ddd;border-radius:.2133rem;font-size:.3733rem;font-family:inherit;outline:none;transition:border-color .2s}.api-key-input:focus{border-color:#667eea}.api-key-error{font-size:.2933rem;color:#f44336;padding:.1333rem 0}.api-key-actions{display:flex;gap:.2667rem}.api-key-save,.api-key-cancel{flex:1;padding:.32rem .5333rem;border:none;border-radius:.2133rem;font-size:.3733rem;font-weight:500;cursor:pointer;transition:all .2s;-webkit-tap-highlight-color:transparent}.api-key-save{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.api-key-save:active{transform:scale(.98);opacity:.9}.api-key-cancel{background:#f5f5f5;color:#666}.api-key-cancel:active{background:#e0e0e0}.api-key-hint{font-size:.2933rem;color:#999;margin-top:.1333rem}.api-key-link{color:#667eea;text-decoration:none;margin-left:.1333rem}.api-key-link:active{opacity:.8}.status-dot{width:.16rem;height:.16rem;background:#4caf50;border-radius:50%;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.chat-messages{flex:1;overflow-y:auto;padding:.5333rem;display:flex;flex-direction:column;gap:.4rem;-webkit-overflow-scrolling:touch}.message{display:flex;animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(.1333rem)}to{opacity:1;transform:translateY(0)}}.message-user{justify-content:flex-end}.message-assistant{justify-content:flex-start}.message-content{max-width:75%;display:flex;flex-direction:column;gap:.1067rem}.message-user .message-content{align-items:flex-end}.message-assistant .message-content{align-items:flex-start}.message-text{padding:.32rem .4267rem;border-radius:.2133rem;font-size:.3733rem;line-height:1.5;word-wrap:break-word;word-break:break-all}.message-user .message-text{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom-right-radius:.0533rem}.message-assistant .message-text{background:#fff;color:#333;border-bottom-left-radius:.0533rem;box-shadow:0 .0533rem .1333rem #0000001a}.message-time{font-size:.2667rem;color:#999;padding:0 .1067rem}.typing-indicator{display:flex;gap:.08rem;padding:.32rem .4267rem;background:#fff;border-radius:.2133rem;box-shadow:0 .0533rem .1333rem #0000001a}.typing-indicator span{width:.16rem;height:.16rem;background:#999;border-radius:50%;animation:typing 1.4s infinite}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,60%,to{transform:translateY(0);opacity:.7}30%{transform:translateY(-.1067rem);opacity:1}}.chat-input-container{background:#fff;padding:.4rem .5333rem;padding-bottom:calc(.4rem + env(safe-area-inset-bottom));box-shadow:0 -.0533rem .1333rem #0000001a;position:sticky;bottom:0;z-index:100}.chat-input-wrapper{display:flex;align-items:flex-end;gap:.2667rem;background:#f5f5f5;border-radius:.4267rem;padding:.2133rem}.chat-input{flex:1;border:none;outline:none;background:transparent;font-size:.3733rem;color:#333;resize:none;max-height:2.1333rem;min-height:.5333rem;line-height:1.5;font-family:inherit;padding:.2133rem .2667rem;overflow-y:auto;-webkit-overflow-scrolling:touch}.chat-input::placeholder{color:#999}.chat-send-button{width:.8rem;height:.8rem;border:none;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s;flex-shrink:0;-webkit-tap-highlight-color:transparent}.chat-send-button:active{transform:scale(.95)}.chat-send-button:disabled{background:#ccc;cursor:not-allowed;opacity:.6}.chat-send-button svg{width:.4267rem;height:.4267rem}@media screen and (max-width:375px){.message-content{max-width:80%}.chat-header{padding:.32rem .4267rem}.chat-messages{padding:.4267rem}}@media screen and (orientation:landscape)and (max-height:500px){.chat-container{height:100vh}.chat-messages{padding:.2667rem}}@media(prefers-color-scheme:dark){.chat-container{background:linear-gradient(180deg,#1a1a2e,#16213e)}.chat-header{background:#1e1e1e;color:#fff}.chat-title{color:#fff}.chat-status{color:#ccc}.message-assistant .message-text{background:#2d2d2d;color:#fff}.chat-input-container{background:#1e1e1e}.chat-input-wrapper{background:#2d2d2d}.chat-input{color:#fff}.typing-indicator{background:#2d2d2d}.typing-indicator span{background:#fff}}#root{width:100%;height:100vh;margin:0;padding:0;overflow:hidden}
