:root{color-scheme:dark;--font:"Noto Sans SC Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;--header-bg:#0a0c10b8;--header-bg-strong:#0a0c10e6;--header-bg-solid:#0a0c10f7;--input-bg:#0a0c1099;--overlay:#0a0c1099;--text-strong:#fff;--paper-hover:#fff;--media-empty:linear-gradient(135deg, #1d2a3f 0%, #0f1826 100%);--panel-gradient:linear-gradient(120deg, #1d2a3f 0%, #0f1826 100%);--code-bg:#0085ff1f;--code-text:#cfe0ff;--paper-text-2:#232f43b8;--paper-text-3:#232f439e;--paper-text-strong:#232f43cc;--surface-03:#ffffff08;--surface-04:#ffffff0a;--surface-05:#ffffff0d;--surface-08:#ffffff14;--surface-12:#ffffff1f;--surface-18:#ffffff2e;--shadow-sm:0 12px 30px #00000073;--shadow-lg:0 18px 56px #0000008c;--shadow-pop:0 10px 22px #00000059;--shadow-bubble:0 14px 34px #00000073, 0 0 24px #738cad47;--glow:#738cad47;--hero-glow:#738cad47;--hero-glow-fade:#738cad00;--success:#8fd3a8;--error:#e6a3a3;--scrollbar:#738cad66;--on-panel:#ede8de}html[data-theme=light]{color-scheme:light;--bg:#f4f1ea;--bg-elev:#fff;--navy:#2b3a52;--line:#232f4324;--line-strong:#232f4347;--paper:#232f43;--paper-text:#ede8de;--paper-line:#ede8de2e;--text:#1a2331;--text-2:#1a2331b3;--text-3:#1a233185;--brand:#4d6d97;--brand-strong:#0069d9;--header-bg:#f4f1ead1;--header-bg-strong:#f4f1eaf0;--header-bg-solid:#f4f1eafc;--input-bg:#fffc;--overlay:#141a2480;--text-strong:#0a0c10;--paper-hover:#33415a;--media-empty:linear-gradient(135deg, #e7eaf0 0%, #d3d9e3 100%);--panel-gradient:linear-gradient(120deg, #2b3a52 0%, #1a2331 100%);--code-bg:#0069d91a;--code-text:#0b4fa6;--paper-text-2:#ede8deb8;--paper-text-3:#ede8de9e;--paper-text-strong:#ede8decc;--surface-03:#232f4308;--surface-04:#232f430a;--surface-05:#232f430d;--surface-08:#232f4314;--surface-12:#232f431f;--surface-18:#232f432e;--shadow-sm:0 12px 30px #1f293729;--shadow-lg:0 18px 56px #1f293733;--shadow-pop:0 10px 22px #1f293724;--shadow-bubble:0 14px 34px #1f29372e, 0 0 24px #4d6d973d;--glow:#0085ff29;--hero-glow:#ffffffb8;--hero-glow-fade:#fff0;--success:#1f8a4c;--error:#c0392b;--scrollbar:#232f434d;--on-panel:#ede8de}.theme-toggle{border:1px solid var(--line);width:40px;height:40px;color:var(--text-2);cursor:pointer;transition:color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);background:0 0;border-radius:999px;justify-content:center;align-items:center;padding:0;display:inline-flex}.theme-toggle:hover,.theme-toggle:focus-visible{color:var(--text);border-color:var(--line-strong);background:var(--surface-05)}.theme-toggle svg{width:18px;height:18px}.theme-toggle__sun,html[data-theme=light] .theme-toggle__moon{display:none}html[data-theme=light] .theme-toggle__sun{display:block}@media (width<=560px){.header-actions{gap:8px}.theme-toggle{width:36px;height:36px}.theme-toggle svg{width:16px;height:16px}}.icon-theme--light,html[data-theme=light] .icon-theme--dark{display:none!important}html[data-theme=light] .icon-theme--light{display:block!important}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.qimei-chatbot{z-index:90;font-family:var(--font);position:fixed;bottom:42px;right:24px}.qimei-chatbot-window{width:min(26rem,100vw - 32px);height:calc(100vh - 132px);height:calc(var(--qimei-vvh,100vh) - 132px);color:var(--text);background:var(--bg-elev);border:1px solid var(--line-strong);box-shadow:var(--shadow-lg);contain:layout paint;transform-origin:100% 100%;opacity:1;visibility:visible;transition:transform .4s var(--ease), border-radius .4s var(--ease), width .3s var(--ease), opacity .3s var(--ease), visibility .4s;border-radius:18px;flex-direction:column;display:flex;position:fixed;top:90px;right:24px;overflow:hidden;transform:scale(1)}.qimei-chatbot.is-animating .qimei-chatbot-window{will-change:transform, opacity}.qimei-chatbot.is-open.is-expanded .qimei-chatbot-window{width:50vw;max-width:calc(100vw - 96px)}.qimei-chatbot:not(.is-open) .qimei-chatbot-window{opacity:0;visibility:hidden;pointer-events:none;border-radius:999px;transform:scale(.08)}.qimei-chatbot-header,.qimei-chatbot-body{opacity:0;transition:opacity .2s var(--ease)}.qimei-chatbot.is-open .qimei-chatbot-header,.qimei-chatbot.is-open .qimei-chatbot-body{opacity:1;transition-delay:.14s}.qimei-chatbot-header{min-height:40px;color:var(--text);background:var(--surface-05);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:7px 8px 7px 16px;display:flex}.qimei-chatbot-header h2{letter-spacing:0;margin:0;font-size:15px;line-height:1.2}.qimei-chatbot-header-actions{align-items:center;gap:6px;display:flex}.qimei-chatbot-expand,.qimei-chatbot-close,.qimei-chatbot-bubble,.qimei-chatbot-send{cursor:pointer;border:0;place-items:center;padding:0;display:inline-grid}.qimei-chatbot-expand,.qimei-chatbot-close{width:28px;height:28px;color:var(--text);background:var(--surface-08);opacity:.9;transition:background .18s var(--ease), opacity .18s var(--ease);border-radius:6px}.qimei-chatbot-expand:hover,.qimei-chatbot-expand:focus-visible,.qimei-chatbot-close:hover,.qimei-chatbot-close:focus-visible{background:var(--surface-18);opacity:1;outline:none}.qimei-chatbot-expand svg,.qimei-chatbot-close svg,.qimei-chatbot-bubble svg,.qimei-chatbot-send svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.qimei-chatbot-expand svg,.qimei-chatbot-close svg{stroke-width:2px;width:17px;height:17px}.qimei-chatbot-bubble svg{width:21px;height:21px}.qimei-chatbot-body{background:var(--bg-elev);flex-direction:column;flex:1;min-height:0;padding:14px 16px 16px;display:flex}.qimei-chatbot-messages{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--scrollbar) transparent;flex-direction:column;flex:1;min-height:0;padding:0 8px 34px;display:flex;overflow-y:auto}.qimei-chatbot-messages::-webkit-scrollbar{width:8px}.qimei-chatbot-messages::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:999px}.qimei-chat-message{max-width:100%;color:var(--text);overflow-wrap:anywhere;font-size:15px;font-weight:500;line-height:1.62}.qimei-chat-message+.qimei-chat-message{margin-top:14px}.qimei-chat-message-user{max-width:86%;color:var(--bg);background:var(--brand);border-radius:14px 14px 4px;align-self:flex-end;padding:10px 14px;font-size:15px;font-weight:600;line-height:1.55}.qimei-chat-message-assistant:not(:first-child){background:var(--surface-05);border:1px solid var(--line);border-radius:14px 14px 14px 4px;max-width:92%;padding:10px 14px;font-size:15px;font-weight:500;line-height:1.62}.qimei-chat-message-assistant:first-child{background:0 0;border-radius:0;padding:0;font-size:15px;font-weight:500;line-height:1.62}.qimei-chat-message-assistant p,.qimei-chat-message-assistant ul,.qimei-chat-message-assistant h3,.qimei-chat-message-assistant h4,.qimei-chat-message-assistant h5{margin:0}.qimei-chat-message-assistant p+p,.qimei-chat-message-assistant p+ul,.qimei-chat-message-assistant ul+p,.qimei-chat-message-assistant .qimei-chat-table-wrap+p,.qimei-chat-message-assistant p+.qimei-chat-table-wrap{margin-top:10px}.qimei-chat-message-assistant h3,.qimei-chat-message-assistant h4,.qimei-chat-message-assistant h5{color:var(--text);margin-top:14px;margin-bottom:8px;font-size:16px;line-height:1.35}.qimei-chat-message-assistant h3:first-child,.qimei-chat-message-assistant h4:first-child,.qimei-chat-message-assistant h5:first-child{margin-top:0}.qimei-chat-message-assistant ul{padding-left:1.2em}.qimei-chat-message-assistant li+li{margin-top:5px}.qimei-chat-message-assistant a{color:var(--brand);text-underline-offset:3px;font-weight:650;text-decoration:underline}.qimei-chat-message-assistant code{color:var(--code-text);background:var(--code-bg);border-radius:5px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.92em}.qimei-chat-message-assistant hr{background:var(--surface-12);border:0;height:1px;margin:12px 0}.qimei-chat-message-assistant img{object-fit:contain;border:1px solid var(--line);background:#fff;border-radius:8px;width:min(100%,320px);max-width:100%;height:auto;max-height:240px;margin:10px auto;display:block}.qimei-chatbot.is-expanded .qimei-chat-message-assistant img{width:min(100%,420px);max-height:280px}.qimei-chat-table-wrap{border:1px solid var(--line);border-radius:8px;max-width:100%;margin-top:10px;overflow-x:auto}.qimei-chat-message-assistant table{border-collapse:collapse;background:var(--surface-05);width:100%;min-width:360px;font-size:13px;line-height:1.45}.qimei-chat-message-assistant th,.qimei-chat-message-assistant td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:8px 10px}.qimei-chat-message-assistant th{color:var(--text);background:var(--code-bg);font-weight:700}.qimei-chat-message-assistant tr:last-child td{border-bottom:0}.qimei-chatbot.is-sending .qimei-chat-message-assistant:last-child:empty:after{color:var(--text-3);content:"正在输入..."}.qimei-chatbot-form{background:var(--input-bg);border:1px solid var(--line);min-height:52px;box-shadow:var(--shadow-pop);border-radius:14px;grid-template-columns:minmax(0,1fr) 40px;align-items:center;gap:7px;padding:6px;display:grid}.qimei-chatbot-form input{width:100%;min-width:0;height:40px;color:var(--text);background:0 0;border:0;outline:none;font-size:15px}.qimei-chatbot-form input::placeholder{color:var(--text-3);opacity:1}.qimei-chatbot-send{width:40px;height:40px;color:var(--paper-text);background:var(--paper);transition:background .18s var(--ease), transform .18s var(--ease), opacity .18s var(--ease);border-radius:11px}.qimei-chatbot-send:hover,.qimei-chatbot-send:focus-visible{background:var(--paper-hover);outline:none}.qimei-chatbot-send:active{transform:translateY(1px)}.qimei-chatbot-send:disabled{cursor:wait;opacity:.68}.qimei-chatbot-bubble{width:52px;height:52px;color:var(--paper-text);background:var(--paper);box-shadow:var(--shadow-bubble);transition:background .18s var(--ease), transform .22s var(--ease) .16s, opacity .22s var(--ease) .16s;border-radius:50%;position:relative}.qimei-chatbot-bubble:before{content:"";border-radius:inherit;box-shadow:0 0 0 0 var(--glow);animation:qimei-chat-halo 3s var(--ease) infinite;pointer-events:none;position:absolute;inset:0}.qimei-chatbot-bubble:hover,.qimei-chatbot-bubble:focus-visible{background:var(--paper-hover);outline:none;transform:translateY(-2px)}.qimei-chatbot.is-open .qimei-chatbot-bubble{opacity:0;pointer-events:none;transition-delay:0s;transform:scale(.6)}.qimei-chatbot.is-open .qimei-chatbot-bubble:before{animation:none}@keyframes qimei-chat-halo{0%{box-shadow:0 0 #738cad4d}70%,to{box-shadow:0 0 0 16px #738cad00}}@media (width<=720px){.qimei-chatbot{right:10px;bottom:calc(34px + env(safe-area-inset-bottom,0px))}.qimei-chatbot-window{width:calc(100vw - 20px);height:calc(100vh - 118px);height:calc(var(--qimei-vvh,100vh) - 84px - 34px - env(safe-area-inset-bottom,0px));top:84px;right:10px}.qimei-chatbot.is-open.is-expanded .qimei-chatbot-window{width:calc(100vw - 20px)}.qimei-chatbot-header{min-height:38px;padding:6px 8px 6px 14px}.qimei-chatbot-header h2{font-size:13px}.qimei-chatbot-expand,.qimei-chatbot-close{border-radius:6px;width:26px;height:26px}.qimei-chatbot-body{padding:12px 10px}.qimei-chatbot-messages{padding:0 6px 14px}.qimei-chat-message{font-size:14px;line-height:1.56}.qimei-chat-message-assistant:not(:first-child),.qimei-chat-message-assistant:first-child,.qimei-chat-message-user{font-size:14px}.qimei-chatbot-form{border-radius:12px;grid-template-columns:minmax(0,1fr) 34px;min-height:46px;padding:6px}.qimei-chatbot-form input{height:34px;font-size:13px}.qimei-chatbot-send{border-radius:9px;width:34px;height:34px}.qimei-chatbot-bubble{width:48px;height:48px}}@media (width<=420px){.qimei-chatbot-window,.qimei-chatbot.is-open.is-expanded .qimei-chatbot-window{width:calc(100vw - 20px);right:10px}.qimei-chatbot-form{gap:5px}.qimei-chatbot-form input::placeholder{font-size:12px}}@media (prefers-reduced-motion:reduce){.qimei-chatbot-bubble:before{animation:none}.qimei-chatbot-bubble:hover,.qimei-chatbot-send:active{transform:none}.qimei-chatbot-window,.qimei-chatbot-header,.qimei-chatbot-body{transition:none}}
