.chat-scope{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--font-sans);color:var(--color-text-primary);--color-bg-primary:#f8fafc;--color-bg-secondary:#fff;--color-bg-tertiary:#f1f5f9;--color-bg-input:#f8fafc;--color-bg-hover:#f1f5f9;--color-bg-overlay:#0006;--color-text-primary:#0f172a;--color-text-secondary:#64748b;--color-text-tertiary:#94a3b8;--color-text-inverse:#fff;--color-border:#e2e8f0;--color-border-hover:#cbd5e1;--color-border-active:#3b82f6;--color-accent:#3b82f6;--color-accent-hover:#2563eb;--color-accent-soft:#3b82f61a;--color-accent-text:#fff;--color-success:#22c55e;--color-warning:#f59e0b;--color-error:#ef4444;--color-bubble-user:#3b82f6;--color-bubble-user-text:#fff;--color-bubble-ai:transparent;--color-bubble-ai-text:#0f172a;--shadow-sm:0 1px 3px #0000000f;--shadow-md:0 4px 16px #00000014;--shadow-lg:0 12px 48px #0000001a;--shadow-popup:0 8px 32px #0000001f;--header-height:56px;--input-max-height:200px;--content-max-width:960px;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:24px;--radius-full:9999px;--transition-fast:.15s ease;--transition-base:.2s ease;--transition-slow:.3s ease;--safe-area-top:env(safe-area-inset-top,0px);--safe-area-bottom:env(safe-area-inset-bottom,0px);--safe-area-left:env(safe-area-inset-left,0px);--safe-area-right:env(safe-area-inset-right,0px)}.dark .chat-scope{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg-primary:#0f1117;--color-bg-secondary:#1a1b1e;--color-bg-tertiary:#1e2028;--color-bg-input:#1a1b1e;--color-bg-hover:#ffffff0d;--color-bg-overlay:#0009;--color-text-primary:#f8fafc;--color-text-secondary:#94a3b8;--color-text-tertiary:#64748b;--color-text-inverse:#0f172a;--color-border:#27272a;--color-border-hover:#3f3f46;--color-border-active:#60a5fa;--color-accent:#60a5fa;--color-accent-hover:#3b82f6;--color-accent-soft:#60a5fa1f;--color-accent-text:#0f172a;--color-bubble-user:#2563eb;--color-bubble-user-text:#fff;--color-bubble-ai:transparent;--color-bubble-ai-text:#f8fafc;--shadow-sm:0 1px 3px #0000004d;--shadow-md:0 4px 16px #0006;--shadow-lg:0 12px 48px #00000080;--shadow-popup:0 8px 32px #00000080}.chat-scope .katex-display{overflow:auto hidden}.chat-scope .katex-display>.katex{overflow-x:auto}@media (max-width:767px){.chat-scope{--header-height:48px}html:has(.chat-scope){font-size:14px}body:has(.chat-scope){overscroll-behavior:none}}@layer base{@media (max-width:767px){.chat-scope :is(button,a,[role=button]){min-width:44px;min-height:44px}.chat-scope .msg-action-btn{min-width:32px;min-height:32px}}}
@layer components{.prose-chat{color:var(--color-text-primary);font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif;font-size:15px;line-height:1.75}@media (max-width:767px){.prose-chat{font-size:13.5px!important;line-height:1.65!important}}.prose-chat h1,.prose-chat h2,.prose-chat h3{margin-top:1.5em;margin-bottom:.5em;font-weight:600}.prose-chat h1{font-size:1.25em}.prose-chat h2{font-size:1.125em}.prose-chat h3{font-size:1em}.prose-chat p{margin-bottom:.75em}.prose-chat ul{margin-bottom:.75em;padding-left:1.5em;list-style-type:disc}.prose-chat ol{margin-bottom:.75em;padding-left:1.5em;list-style-type:decimal}.prose-chat ul ul{list-style-type:circle}.prose-chat ul ul ul{list-style-type:square}.prose-chat ol ol{list-style-type:lower-alpha}.prose-chat li{margin-bottom:.25em}.prose-chat code{background:var(--color-bg-tertiary);font-size:.9em;font-family:var(--font-mono);border-radius:4px;padding:.15em .4em}.code-block-wrapper{border-radius:var(--radius-md);background:#1e1e2e;border:1px solid #ffffff0f;margin:1em 0;overflow:hidden}.code-block-header{background:#ffffff0a;border-bottom:1px solid #ffffff0f;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.code-block-lang{color:#9ca3af;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:500;font-family:var(--font-mono)}.code-block-copy{color:#9ca3af;cursor:pointer;background:0 0;border-radius:4px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;font-weight:500;transition:all .15s;display:flex}.code-block-copy:hover{color:#e2e8f0;background:#ffffff14}.code-block-pre{background:0 0;border-radius:0;margin:0;padding:0;overflow:hidden}.code-block-pre code{color:#cdd6f4;background:0 0;padding:1em 1.25em;font-size:.85em;line-height:1.6;display:block;overflow-x:auto}.prose-chat pre:not(.code-block-pre){border-radius:var(--radius-md);background:#1e1e2e;margin:1em 0;padding:0;overflow:hidden}.prose-chat pre:not(.code-block-pre) code{color:#cdd6f4;background:0 0;padding:1em 1.25em;font-size:.85em;line-height:1.6;display:block;overflow-x:auto}.prose-chat table{border-collapse:collapse;width:100%;margin:1em 0;font-size:.9em}.prose-chat th,.prose-chat td{border:1px solid var(--color-border);text-align:left;padding:.5em .75em}.prose-chat th{background:var(--color-bg-tertiary);font-weight:600}.prose-chat blockquote{border-left:3px solid var(--color-accent);color:var(--color-text-secondary);margin:1em 0;padding-left:1em}.prose-chat a{color:var(--color-accent);text-underline-offset:2px;text-decoration:underline}.prose-chat img{border-radius:var(--radius-md);max-width:100%}.prose-thinking{font-size:13px;line-height:1.7}.prose-thinking p{margin-bottom:.5em}.prose-thinking ul{margin-bottom:.5em;padding-left:1.25em;list-style-type:disc}.prose-thinking ol{margin-bottom:.5em;padding-left:1.25em;list-style-type:decimal}.prose-thinking li{margin-bottom:.15em}.prose-thinking code{font-size:.88em;font-family:var(--font-mono);background:#0000000f;border-radius:3px;padding:.1em .35em}.dark .prose-thinking code{background:#ffffff14}.prose-thinking pre{background:#0000000a;border-radius:6px;margin:.5em 0;padding:.75em;overflow-x:auto}.dark .prose-thinking pre{background:#ffffff0a}.prose-thinking pre code{background:0 0;padding:0;font-size:.85em;line-height:1.5}.prose-thinking blockquote{opacity:.8;border-left:2px solid;margin:.5em 0;padding-left:.75em}.prose-thinking a{text-underline-offset:2px;text-decoration:underline}.prose-thinking table{border-collapse:collapse;width:100%;margin:.5em 0;font-size:.9em}.prose-thinking th,.prose-thinking td{text-align:left;border:1px solid #0000001a;padding:.3em .5em}.dark .prose-thinking th,.dark .prose-thinking td{border-color:#ffffff1a}.prose-thinking h1,.prose-thinking h2,.prose-thinking h3{margin-top:1em;margin-bottom:.3em;font-weight:600}.prose-thinking h1{font-size:1.15em}.prose-thinking h2{font-size:1.05em}.prose-thinking h3{font-size:1em}.anchor-highlight{border-radius:4px;animation:1.5s ease-out anchor-flash}}
@layer components{.chat-scope .scrollbar-thin::-webkit-scrollbar{width:6px}.chat-scope .scrollbar-thin::-webkit-scrollbar-track{background:0 0}.chat-scope .scrollbar-thin::-webkit-scrollbar-thumb{background:var(--color-text-tertiary);border-radius:var(--radius-full);opacity:0}.chat-scope .scrollbar-thin:hover::-webkit-scrollbar-thumb{opacity:1}.chat-scope .scrollbar-subtle{scrollbar-width:thin;scrollbar-color:transparent transparent}.chat-scope .scrollbar-subtle:hover{scrollbar-color:#00000026 transparent}.dark .chat-scope .scrollbar-subtle:hover{scrollbar-color:#ffffff1f transparent}.chat-scope .scrollbar-subtle::-webkit-scrollbar{width:3px;height:3px}.chat-scope .scrollbar-subtle::-webkit-scrollbar-track{background:0 0}.chat-scope .scrollbar-subtle::-webkit-scrollbar-thumb{background:0 0;border-radius:9999px;transition:background .2s}.chat-scope .scrollbar-subtle:hover::-webkit-scrollbar-thumb{background:#00000026}.dark .chat-scope .scrollbar-subtle:hover::-webkit-scrollbar-thumb{background:#ffffff1f}.chat-scope .scrollbar-none{scrollbar-width:none;-ms-overflow-style:none}.chat-scope .scrollbar-none::-webkit-scrollbar{display:none}.book-loader{--background:linear-gradient(135deg,#23c4f8,#275efe);--shadow:#275efe47;--text:#6c7486;--page:#ffffff5c;--page-fold:#ffffff85;--duration:3s;width:200px;height:140px;position:relative}.book-loader:before,.book-loader:after{--r:-6deg;content:"";width:120px;box-shadow:0 16px 12px var(--shadow);transform:rotate(var(--r));position:absolute;top:80%;bottom:8px}.book-loader:before{left:4px}.book-loader:after{--r:6deg;right:4px}.book-loader div{z-index:1;perspective:600px;width:100%;height:100%;box-shadow:0 4px 6px var(--shadow);background-image:var(--background);border-radius:13px;position:relative}.book-loader div ul{margin:0;padding:0;list-style:none;position:relative}.book-loader div ul li{--r:180deg;--o:0;--c:var(--page);transform-origin:100%;color:var(--c);opacity:var(--o);transform:rotateY(var(--r));animation:var(--duration)ease infinite;position:absolute;top:10px;left:10px}.book-loader div ul li:nth-child(2){--c:var(--page-fold);animation-name:book-page-2}.book-loader div ul li:nth-child(3){--c:var(--page-fold);animation-name:book-page-3}.book-loader div ul li:nth-child(4){--c:var(--page-fold);animation-name:book-page-4}.book-loader div ul li:nth-child(5){--c:var(--page-fold);animation-name:book-page-5}.book-loader div ul li svg{width:90px;height:120px;display:block}.book-loader div ul li:first-child{--r:0deg;--o:1}.book-loader div ul li:last-child{--o:1}.book-loader span{text-align:center;color:var(--text);letter-spacing:.05em;margin-top:20px;font-size:14px;font-weight:500;display:block;top:100%;left:0;right:0}.cloud-loader{--cloud-color:#4387f4;--arrows-color:#80b1ff;--time-animation:1s;flex-direction:column;align-items:center;gap:16px;display:flex;transform:scale(1)}.cloud-loader #cloud{width:136px;height:158px;overflow:visible}.cloud-loader #cloud rect{fill:var(--cloud-color)}.cloud-loader #cloud g:nth-child(3){transform-origin:50% 72.8938%;fill:var(--arrows-color);filter:drop-shadow(0 0 8px #0000004d);animation:cloud-rotation var(--time-animation)linear infinite}.cloud-loader #shapes g g circle{animation:cloud-morph calc(var(--time-animation)*2)linear infinite}.cloud-loader #shapes g g circle:nth-child(2){animation-delay:calc((var(--time-animation)*2)/-3)}.cloud-loader #shapes g g circle:nth-child(3){animation-delay:calc((var(--time-animation)*2)/-1.5)}.cloud-loader svg #lines g line{stroke-width:5px;transform-origin:50%;animation:cloud-lines calc(var(--time-animation)/1.33)linear infinite;rotate:-65deg}.cloud-loader span{color:#6c7486;letter-spacing:.04em;font-size:13px;font-weight:500}}.citation-group{vertical-align:.12em;gap:2px;margin-left:2px;display:inline-flex}.citation-dot{color:#2563eb;cursor:pointer;-webkit-user-select:none;user-select:none;background:#dbeafed9;border-radius:999px;justify-content:center;align-items:center;min-width:16px;height:16px;padding:0 4px;font-size:10px;font-weight:600;line-height:1;transition:background-color .15s,color .15s;display:inline-flex}.citation-dot:hover,.citation-dot:focus-visible{color:#fff;background:#2563eb;outline:none}.dark .citation-dot{color:#93c5fd;background:#1e3a8a80}.dark .citation-dot:hover,.dark .citation-dot:focus-visible{color:#0b1220;background:#93c5fd}
@layer components{@keyframes shimmer{to{transform:translate(100%)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse-dot{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}@keyframes book-page-2{0%{opacity:0;transform:rotateY(180deg)}20%{opacity:1}35%,to{opacity:0}50%,to{transform:rotateY(0)}}@keyframes book-page-3{15%{opacity:0;transform:rotateY(180deg)}35%{opacity:1}50%,to{opacity:0}65%,to{transform:rotateY(0)}}@keyframes book-page-4{30%{opacity:0;transform:rotateY(180deg)}50%{opacity:1}65%,to{opacity:0}80%,to{transform:rotateY(0)}}@keyframes book-page-5{45%{opacity:0;transform:rotateY(180deg)}65%{opacity:1}80%,to{opacity:0}95%,to{transform:rotateY(0)}}@keyframes cloud-rotation{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}@keyframes cloud-lines{0%{transform:translateY(-10px)}to{transform:translateY(8px)}}@keyframes cloud-morph{0%{cx:20;cy:60;r:15}50%{cx:50;cy:45;r:20}to{cx:80;cy:60;r:15}}@keyframes anchor-flash{0%{box-shadow:0 0 #3b82f666}50%{box-shadow:0 0 0 6px #3b82f626}to{box-shadow:0 0 #3b82f600}}}
.chat-scope pre code.hljs{padding:1em;display:block;overflow-x:auto}.chat-scope code.hljs{padding:3px 5px}.chat-scope .hljs{color:#c9d1d9;background:#0d1117}.chat-scope .hljs-doctag,.chat-scope .hljs-keyword,.chat-scope .hljs-meta .hljs-keyword,.chat-scope .hljs-template-tag,.chat-scope .hljs-template-variable,.chat-scope .hljs-type,.chat-scope .hljs-variable.language_{color:#ff7b72}.chat-scope .hljs-title,.chat-scope .hljs-title.class_,.chat-scope .hljs-title.class_.inherited__,.chat-scope .hljs-title.function_{color:#d2a8ff}.chat-scope .hljs-attr,.chat-scope .hljs-attribute,.chat-scope .hljs-literal,.chat-scope .hljs-meta,.chat-scope .hljs-number,.chat-scope .hljs-operator,.chat-scope .hljs-variable,.chat-scope .hljs-selector-attr,.chat-scope .hljs-selector-class,.chat-scope .hljs-selector-id{color:#79c0ff}.chat-scope .hljs-regexp,.chat-scope .hljs-string,.chat-scope .hljs-meta .hljs-string{color:#a5d6ff}.chat-scope .hljs-built_in,.chat-scope .hljs-symbol{color:#ffa657}.chat-scope .hljs-comment,.chat-scope .hljs-code,.chat-scope .hljs-formula{color:#8b949e}.chat-scope .hljs-name,.chat-scope .hljs-quote,.chat-scope .hljs-selector-tag,.chat-scope .hljs-selector-pseudo{color:#7ee787}.chat-scope .hljs-subst{color:#c9d1d9}.chat-scope .hljs-section{color:#1f6feb;font-weight:700}.chat-scope .hljs-bullet{color:#f2cc60}.chat-scope .hljs-emphasis{color:#c9d1d9;font-style:italic}.chat-scope .hljs-strong{color:#c9d1d9;font-weight:700}.chat-scope .hljs-addition{color:#aff5b4;background-color:#033a16}.chat-scope .hljs-deletion{color:#ffdcd7;background-color:#67060c}
