/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.novaterm-gate{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 140px);padding:2rem}.gate-card{background:var(--bg-card);border:1px solid rgba(34,211,238,.15);border-radius:12px;padding:3rem 2.5rem;max-width:480px;width:100%;text-align:center;box-shadow:0 0 40px var(--accent-glow)}.gate-icon{font-size:3.5rem;margin-bottom:1rem}.gate-card h1{font-size:1.6rem;color:var(--accent);margin-bottom:.75rem}.gate-desc{color:var(--text-secondary);font-size:.9rem;margin-bottom:1.5rem;line-height:1.7}.gate-desc code{background:#22d3ee1a;padding:2px 6px;border-radius:4px;font-size:.85rem}.gate-form{display:flex;flex-direction:column;gap:.75rem}.gate-input{background:var(--bg-primary);border:1px solid rgba(255,255,255,.1);border-radius:6px;padding:.85rem 1rem;color:var(--text-primary);font-size:1rem;width:100%;box-sizing:border-box;transition:border-color .2s}.gate-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-glow)}.gate-btn{width:100%;padding:.85rem;font-size:1rem;min-height:44px}.gate-error{color:#f87171;font-size:.85rem;margin-top:.5rem}.novaterm-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;gap:1rem;color:var(--text-secondary)}.nt-shell{display:flex;flex-direction:column;height:calc(100vh - 60px);overflow:hidden;background:var(--bg-primary)}.nt-body{flex:1;display:flex;overflow:hidden;position:relative}.nt-mobile-only{display:none!important}.nt-desktop-only{display:flex!important}.nt-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:0 1rem;height:52px;flex-shrink:0;background:var(--bg-card);border-bottom:1px solid rgba(255,255,255,.08)}.nt-header-left{display:flex;align-items:center;gap:.75rem;min-width:0}.nt-header-right{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.nt-header-brand{display:flex;align-items:center;gap:.5rem}.nt-header-brand img{width:26px;height:26px;border-radius:6px;object-fit:cover;box-shadow:0 0 0 1px #22d3ee40}.nt-header-title{font-size:1rem;font-weight:600;color:var(--accent);letter-spacing:.2px}.nt-header-sub{font-size:.68rem;color:var(--text-secondary);border:1px solid rgba(255,255,255,.12);border-radius:4px;padding:1px 6px;letter-spacing:1px}.nt-breadcrumb{display:flex;align-items:center;gap:.45rem;font-size:.82rem;color:var(--text-secondary);padding-left:.75rem;border-left:1px solid rgba(255,255,255,.08);white-space:nowrap;overflow:hidden}.nt-breadcrumb-sep{opacity:.5}.nt-breadcrumb-current{color:var(--text-primary);font-weight:500}.nt-icon-btn{background:#ffffff0a;border:1px solid rgba(255,255,255,.08);border-radius:6px;color:var(--text-primary);font-size:1rem;width:36px;height:36px;min-width:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s}.nt-icon-btn:hover{background:#22d3ee1a;border-color:#22d3ee4d}.nt-status-badge{display:inline-flex;align-items:center;gap:.4rem;font-size:.75rem;color:var(--text-secondary);border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:.25rem .7rem;white-space:nowrap}.nt-status-dot{width:7px;height:7px;border-radius:50%;background:#ffffff40}.nt-status-badge.online{color:#86efac;border-color:#22c55e59}.nt-status-badge.online .nt-status-dot{background:#22c55e;box-shadow:0 0 6px #22c55eb3}.nt-status-badge.offline{color:#fca5a5;border-color:#f8717159}.nt-status-badge.offline .nt-status-dot{background:#f87171}.nt-new-session{white-space:nowrap}.nt-drawer-overlay{position:fixed;inset:0;background:#0000008c;z-index:190;backdrop-filter:blur(2px);animation:ntFadeIn .18s ease}@keyframes ntFadeIn{0%{opacity:0}to{opacity:1}}.novaterm-sidebar{width:264px;min-width:264px;background:var(--bg-card);border-right:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;overflow:hidden;z-index:200;transition:width .18s ease,min-width .18s ease,transform .22s ease}.nt-side-group{display:flex;flex-direction:column;min-height:0}.nt-side-sessions{flex:1;overflow:hidden}.nt-side-group-title{padding:.7rem 1.1rem .35rem;font-size:.7rem;letter-spacing:1.5px;color:var(--text-secondary);text-transform:uppercase;user-select:none}.sidebar-search{padding:.4rem .9rem .7rem}.sidebar-search input{width:100%;background:var(--bg-primary);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:.55rem .8rem;color:var(--text-primary);font-size:.86rem;box-sizing:border-box;min-height:38px}.sidebar-search input:focus{outline:none;border-color:var(--accent)}.session-list{flex:1;overflow-y:auto;padding:.2rem 0 .5rem;-webkit-overflow-scrolling:touch}.session-item{padding:.65rem 1.1rem;cursor:pointer;transition:background .15s;display:flex;align-items:center;gap:.6rem;border-left:2px solid transparent;min-height:42px}.session-item:hover{background:#ffffff08}.session-item.active{background:#22d3ee14;border-left-color:var(--accent)}.session-name{font-size:.88rem;color:var(--text-primary);flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-actions{display:none;gap:.3rem}.session-item:hover .session-actions,.session-item.active .session-actions{display:flex}.session-actions button{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:.85rem;padding:4px 6px;border-radius:5px}.session-actions button:hover{color:#f87171;background:#f871711a}.sidebar-footer{padding:.35rem .6rem .6rem;border-top:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;gap:1px}.nt-nav-item{display:flex;align-items:center;gap:.65rem;padding:.6rem .8rem;min-height:40px;background:none;border:none;border-radius:6px;color:var(--text-secondary);font-size:.9rem;cursor:pointer;transition:background .15s,color .15s;text-align:left}.nt-nav-item:hover{background:#ffffff0a;color:var(--text-primary)}.nt-nav-item.active{background:#22d3ee1a;color:var(--accent)}.nt-nav-icon{font-size:1rem;width:20px;text-align:center;flex-shrink:0}.nt-shell.collapsed .novaterm-sidebar{width:60px;min-width:60px}.nt-shell.collapsed .nt-side-group-title,.nt-shell.collapsed .nt-side-sessions{display:none}.nt-shell.collapsed .sidebar-footer{border-top:none;padding-top:.6rem}.nt-shell.collapsed .nt-nav-item{justify-content:center;padding:.6rem 0}.nt-shell.collapsed .nt-nav-label{display:none}.nt-main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}.nt-tabbar{display:flex;align-items:flex-end;gap:2px;padding:.4rem .6rem 0;flex-shrink:0;background:var(--bg-card);border-bottom:1px solid rgba(255,255,255,.07);overflow-x:auto;scrollbar-width:thin}.nt-tabbar::-webkit-scrollbar{height:4px}.nt-tab-item{display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .9rem;min-height:36px;min-width:0;font-size:.85rem;color:var(--text-secondary);background:#ffffff05;border:1px solid rgba(255,255,255,.06);border-bottom:none;border-radius:8px 8px 0 0;cursor:pointer;white-space:nowrap;user-select:none;transition:background .15s,color .15s;position:relative;top:1px}.nt-tab-item:hover{color:var(--text-primary);background:#ffffff0d}.nt-tab-item.active{color:var(--accent);background:var(--bg-primary);border-color:#22d3ee40}.nt-tab-icon{font-size:.9rem}.nt-tab-text{max-width:120px;overflow:hidden;text-overflow:ellipsis}.nt-tab-close{background:none;border:none;color:var(--text-secondary);font-size:.95rem;line-height:1;cursor:pointer;width:18px;height:18px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;padding:0}.nt-tab-close:hover{color:#f87171;background:#f871711f}.nt-panels{flex:1;display:flex;flex-direction:column;overflow:hidden}.nt-tab-panel{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-panel{flex:1;display:flex;flex-direction:column;overflow:hidden}.chat-timeline{flex:1;overflow-y:auto;padding:1.5rem 2rem;display:flex;flex-direction:column;gap:1rem;-webkit-overflow-scrolling:touch}.chat-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--text-secondary);gap:.5rem;padding:2rem;text-align:center}.chat-empty h2{font-size:1.3rem;color:var(--accent)}.chat-msg{animation:fadeInUp .3s ease}.msg-user{display:flex;justify-content:flex-end}.msg-user .bubble{background:var(--accent);color:#0a0e1a;max-width:70%;border-radius:10px 10px 3px;padding:.75rem 1rem;font-size:.92rem;line-height:1.5}.msg-agent{display:flex;justify-content:flex-start}.msg-agent .bubble{background:var(--bg-card);border:1px solid rgba(255,255,255,.08);max-width:85%;border-radius:10px 10px 10px 3px;padding:.75rem 1rem;font-size:.92rem;line-height:1.6}.msg-tool{display:flex;justify-content:flex-start}.msg-tool .bubble{background:#22d3ee0f;border:1px solid rgba(34,211,238,.2);border-radius:8px;padding:.6rem .85rem;font-size:.82rem;max-width:80%}.msg-tool .tool-name{color:var(--accent);font-weight:600;margin-bottom:.3rem}.msg-tool .tool-args{color:var(--text-secondary);font-family:monospace;font-size:.78rem;word-break:break-all}.msg-tool .tool-result{color:#86efac;font-family:monospace;font-size:.78rem;margin-top:.4rem;white-space:pre-wrap;word-break:break-all;max-height:200px;overflow-y:auto}.msg-error .bubble{background:#f8717114;border-color:#f871714d;color:#fca5a5}.msg-system{text-align:center;color:var(--text-secondary);font-size:.8rem;font-style:italic;padding:.5rem 0}.step-indicator{display:flex;gap:.6rem;padding:.55rem 1.5rem;flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,.06);align-items:center}.step-dot{width:8px;height:8px;border-radius:50%;background:#ffffff26;transition:background .3s;flex-shrink:0}.step-dot.done{background:#22c55e}.step-dot.current{background:var(--accent);animation:pulse-step 1s infinite}.step-label{font-size:.75rem;color:var(--text-secondary)}.step-label.current{color:var(--accent)}@keyframes pulse-step{0%,to{box-shadow:0 0 0 0 var(--accent-glow)}50%{box-shadow:0 0 0 6px transparent}}.chat-input-area{padding:.8rem 1.25rem;border-top:1px solid rgba(255,255,255,.06);display:flex;gap:.75rem;align-items:center;background:var(--bg-primary)}.chat-input-area textarea{flex:1;background:var(--bg-card);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:.7rem 1rem;color:var(--text-primary);font-size:.92rem;resize:none;min-height:42px;max-height:120px;font-family:inherit}.chat-input-area textarea:focus{outline:none;border-color:var(--accent)}.chat-input-area .btn{min-height:42px}.terminal-panel{flex:1;display:flex;flex-direction:column;overflow:hidden;padding:0}.terminal-container{flex:1;padding:.4rem}.terminal-container .xterm{height:100%}.novaterm-page{padding:1.75rem 2rem;overflow-y:auto;height:100%;box-sizing:border-box;-webkit-overflow-scrolling:touch}.novaterm-page h2{color:var(--accent);margin-bottom:1.5rem;font-size:1.15rem}.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:.9rem}.tool-card{background:var(--bg-card);border:1px solid rgba(255,255,255,.06);border-radius:8px;padding:1.1rem 1.2rem;transition:border-color .15s}.tool-card:hover{border-color:#22d3ee33}.tool-card h3{color:var(--accent);font-size:.95rem;margin-bottom:.4rem}.tool-card p{color:var(--text-secondary);font-size:.85rem;line-height:1.5}.model-list,.rule-list{display:flex;flex-direction:column;gap:.7rem;margin-bottom:1.5rem}.model-item,.rule-item{background:var(--bg-card);border:1px solid rgba(255,255,255,.06);border-radius:8px;padding:.9rem 1.2rem;display:flex;justify-content:space-between;align-items:center}.model-info h4,.rule-info h4{font-size:.95rem;color:var(--text-primary);margin-bottom:.2rem}.model-info span,.rule-info span{font-size:.8rem;color:var(--text-secondary)}.confirm-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000}.confirm-box{background:var(--bg-card);border:1px solid rgba(34,211,238,.2);border-radius:10px;padding:1.5rem 2rem;max-width:420px;width:90%}.confirm-box h3{color:var(--accent);margin-bottom:.75rem}.confirm-box p{color:var(--text-secondary);font-size:.9rem;margin-bottom:.5rem}.confirm-actions{display:flex;gap:.75rem;margin-top:1.25rem}@media (max-width: 768px){.nt-desktop-only{display:none!important}.nt-mobile-only{display:flex!important}.nt-header{height:48px;padding:0 .65rem}.nt-breadcrumb,.nt-header-sub{display:none}.nt-status-badge{font-size:.68rem;padding:.2rem .55rem}.nt-new-session-text{display:none}.nt-new-session{min-width:40px}.novaterm-sidebar{position:fixed;top:0;left:0;bottom:0;width:82vw;max-width:320px;min-width:0;transform:translate(-100%);box-shadow:4px 0 24px #00000080}.novaterm-sidebar.open{transform:translate(0)}.session-actions{display:flex}.nt-tabbar{padding:.35rem .5rem 0}.nt-tab-item{padding:.4rem .75rem;font-size:.82rem;min-height:34px}.chat-timeline{padding:1rem .85rem}.msg-user .bubble,.msg-agent .bubble{max-width:88%}.msg-tool .bubble{max-width:92%}.step-indicator{padding:.5rem .85rem;gap:.45rem}.chat-input-area{padding:.6rem .75rem;gap:.5rem}.novaterm-page{padding:1.25rem 1rem}.tool-grid{grid-template-columns:1fr}.gate-card{padding:2rem 1.5rem}}.nt-shell{--nt-bg: #ffffff;--nt-bg-soft: #f5f6f7;--nt-border: #e5e7eb;--nt-text: #1f2329;--nt-text-dim: #6b7280;--nt-green: #34d399;background:var(--nt-bg);color:var(--nt-text)}.nt-shell .nt-header{background:var(--nt-bg);border-bottom-color:var(--nt-border)}.nt-shell .nt-header-title{color:var(--nt-text)}.nt-shell .nt-header-sub{color:var(--nt-text-dim);border-color:var(--nt-border)}.nt-shell .nt-breadcrumb{color:var(--nt-text-dim);border-left-color:var(--nt-border)}.nt-shell .nt-breadcrumb-current{color:var(--nt-text)}.nt-shell .nt-icon-btn{background:var(--nt-bg);border-color:var(--nt-border);color:var(--nt-text)}.nt-shell .nt-icon-btn:hover{background:var(--nt-bg-soft);border-color:#d1d5db}.nt-shell .nt-status-badge{color:var(--nt-text-dim);border-color:var(--nt-border)}.nt-shell .nt-status-badge.online{color:#059669;border-color:#10b98159}.nt-shell .nt-status-badge.offline{color:#dc2626;border-color:#dc26264d}.nt-shell .novaterm-sidebar{background:var(--nt-bg-soft);border-right-color:var(--nt-border)}.nt-shell .nt-side-group-title{color:var(--nt-text-dim)}.nt-shell .sidebar-search input{background:var(--nt-bg);border-color:var(--nt-border);color:var(--nt-text)}.nt-shell .sidebar-search input:focus{border-color:var(--nt-green)}.nt-shell .session-item:hover{background:#0000000a}.nt-shell .session-item.active{background:#34d3991f;border-left-color:#10b981}.nt-shell .session-name{color:var(--nt-text)}.nt-shell .session-actions button{color:var(--nt-text-dim)}.nt-shell .session-actions button:hover{color:#dc2626;background:#dc262614}.nt-shell .sidebar-footer{border-top-color:var(--nt-border)}.nt-shell .nt-nav-item{color:var(--nt-text-dim)}.nt-shell .nt-nav-item:hover{background:#0000000a;color:var(--nt-text)}.nt-shell .nt-nav-item.active{background:#34d39924;color:#059669}.nt-shell .nt-tabbar{background:var(--nt-bg);border-bottom-color:var(--nt-border)}.nt-shell .nt-tab-item{background:var(--nt-bg-soft);border-color:var(--nt-border);color:var(--nt-text-dim)}.nt-shell .nt-tab-item:hover{background:#eceef0;color:var(--nt-text)}.nt-shell .nt-tab-item.active{background:var(--nt-bg);color:var(--nt-text);border-color:var(--nt-border)}.nt-shell .nt-tab-close{color:var(--nt-text-dim)}.nt-shell .nt-tab-close:hover{color:#dc2626;background:#dc262614}.nt-shell .chat-input-area{background:var(--nt-bg);border-top-color:var(--nt-border)}.nt-shell .chat-input-area textarea{background:var(--nt-bg);border-color:var(--nt-border);color:var(--nt-text)}.nt-shell .chat-input-area textarea:focus{border-color:var(--nt-green)}.nt-shell .step-indicator{border-bottom-color:var(--nt-border)}.nt-shell .step-label{color:var(--nt-text-dim)}.nt-shell .step-label.current{color:#059669}.nt-shell .step-dot.current{background:var(--nt-green)}.nt-shell .msg-user .bubble{background:var(--nt-green);color:#fff}.nt-shell .msg-agent .bubble{background:var(--nt-bg-soft);border-color:var(--nt-border);color:var(--nt-text)}.nt-shell .msg-tool .bubble{background:#34d3990f;border-color:#34d3994d;color:var(--nt-text)}.nt-shell .msg-tool .tool-name{color:#059669}.nt-shell .msg-tool .tool-args{color:var(--nt-text-dim)}.nt-shell .msg-tool .tool-result{color:#059669}.nt-shell .msg-error .bubble{background:#dc26260f;border-color:#dc262640;color:#b91c1c}.nt-shell .msg-system{color:var(--nt-text-dim)}.novaterm-gate{background:#f5f6f7}.novaterm-gate .gate-card{background:#fff;border:1px solid #e5e7eb;box-shadow:0 8px 32px #00000014}.novaterm-gate .gate-card h1{color:#1f2329}.novaterm-gate .gate-desc{color:#6b7280}.novaterm-gate .gate-desc code{background:#34d3991f;color:#059669}.novaterm-gate .gate-input{background:#fff;border-color:#e5e7eb;color:#1f2329}.novaterm-gate .gate-input:focus{border-color:#34d399;box-shadow:0 0 0 3px #34d39926}.chat-hero{flex:1;overflow-y:auto;padding:7vh 1.25rem 2rem;background:#fff}.chat-hero-title{font-size:clamp(1.7rem,5vw,2.5rem);font-weight:700;letter-spacing:-.5px;color:#1f2329;margin:0 0 1.6rem;max-width:760px}.chat-hero-accent{color:#10b981}.chat-hero-card{max-width:760px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 4px 24px #0000000f;overflow:hidden;transition:border-color .15s,box-shadow .15s}.chat-hero-card:focus-within{border-color:#34d399;box-shadow:0 4px 28px #34d39926}.chat-hero-input{width:100%;box-sizing:border-box;border:none;outline:none;resize:none;padding:1rem 1.1rem .4rem;font-size:.95rem;font-family:inherit;color:#1f2329;background:transparent;min-height:84px}.chat-hero-input::placeholder{color:#9ca3af}.chat-hero-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.35rem .8rem .7rem}.chat-hero-hint{font-size:.75rem;color:#9ca3af;padding-left:.3rem}.chat-hero-send{width:40px;height:40px;border:none;border-radius:12px;background:#b9f2d8;color:#065f46;font-size:1.15rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.chat-hero-send:hover:not(:disabled){background:#34d399;color:#fff}.chat-hero-send:disabled{opacity:.45;cursor:not-allowed}.chat-hero-send.abort{background:#fecaca;color:#991b1b}.chat-hero-send.abort:hover{background:#f87171;color:#fff}.chat-hero-chips{display:flex;gap:.6rem;flex-wrap:wrap;max-width:760px;margin-top:1.1rem}.chat-chip{background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:.5rem 1.1rem;font-size:.85rem;color:#1f2329;cursor:pointer;transition:border-color .15s,background .15s;min-height:40px}.chat-chip:hover:not(:disabled){border-color:#34d399;background:#34d39914}.chat-chip:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 768px){.chat-hero{padding:5vh .9rem 1.5rem}.chat-hero-chips{gap:.45rem}.chat-chip{padding:.45rem .95rem;font-size:.82rem}}.nt-login-overlay{position:fixed;inset:0;z-index:1200;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:1rem;backdrop-filter:blur(2px)}.nt-login-dialog{position:relative;width:100%;max-width:380px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 20px 60px #0000002e;padding:1.75rem 1.5rem 1.5rem}.nt-login-dialog h3{margin:0 0 .5rem;font-size:1.1rem;color:#1f2329}.nt-login-close{position:absolute;top:.6rem;right:.7rem;border:none;background:transparent;cursor:pointer;font-size:1.25rem;line-height:1;color:#9ca3af;width:32px;height:32px;border-radius:8px}.nt-login-close:hover{background:#f3f4f6;color:#4b5563}.nt-login-desc{margin:0 0 1rem;font-size:.86rem;color:#6b7280;line-height:1.55}.nt-lock-panel{align-items:center;justify-content:center;overflow:auto}.nt-lock-card{max-width:460px;margin:auto;text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 8px 32px #0000000f;padding:2.5rem 2rem}.nt-lock-icon{font-size:2.6rem;margin-bottom:.75rem}.nt-lock-card h2{margin:0 0 .75rem;font-size:1.3rem;color:#1f2329}.nt-lock-card p{margin:0 0 .9rem;font-size:.92rem;color:#4b5563;line-height:1.65}.nt-lock-hint{font-size:.8rem!important;color:#9ca3af!important}.nt-lock-card .btn{min-width:160px;min-height:42px}.nt-nav-auth{border:1px dashed rgba(52,211,153,.4);border-radius:10px;margin-bottom:.35rem}.nt-shell .nt-nav-auth{color:#059669}.nt-shell .nt-nav-auth:hover{background:#34d3991f;color:#047857}.app.app-novaterm{height:100vh;height:100dvh;min-height:0;overflow:hidden}.app.app-novaterm .app-main{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.app.app-novaterm .nt-shell{height:auto;flex:1;min-height:0}.nt-header-brand{min-width:0;overflow:hidden}.nt-header-brand .nt-header-title{font-size:clamp(.85rem,2.5vw,1.05rem);line-height:1.2;white-space:normal;word-break:break-word}.nt-header-brand .nt-header-sub{flex-shrink:0}.chat-hero-title{font-size:clamp(1.4rem,4.5vw,2.2rem);line-height:1.25;word-break:break-word}@media (max-width: 768px){.nt-header-brand .nt-header-title{font-size:clamp(.8rem,4vw,.95rem)}.nt-header-brand{gap:.4rem}}.chat-input-area{align-items:stretch}.chat-input-area textarea{flex:1;min-height:118px;max-height:118px;resize:none}.chat-input-actions{display:flex;flex-direction:column;gap:.5rem;align-items:stretch;justify-content:flex-end;position:relative}.chat-input-actions .btn{min-height:42px;white-space:nowrap}.btn-abort{background:#f87171!important;color:#fff!important;border:none!important}.chat-attach{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;border:1px solid var(--nt-border, #e5e7eb);background:var(--nt-bg-soft, #f5f6f7);cursor:pointer;font-size:1.05rem;transition:background .15s}.chat-attach:hover{background:#34d3991f}.chat-file-badge{position:absolute;top:-4px;left:26px;min-width:16px;height:16px;border-radius:8px;background:#059669;color:#fff;font-size:.66rem;display:inline-flex;align-items:center;justify-content:center;padding:0 4px}.chat-hero-toolbar{display:flex;align-items:center;gap:.6rem}.chat-hero-hint{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 768px){.chat-input-actions{flex-direction:row;align-items:center}.chat-input-actions .btn{flex:1}}@media (max-width: 768px){.nt-lock-card{padding:1.8rem 1.2rem;margin:1rem}}.lab-page{padding:2rem;overflow-y:auto;height:100%;box-sizing:border-box}.lab-page h1{color:var(--accent);font-size:1.8rem;margin-bottom:.5rem}.lab-page .lab-subtitle{color:var(--text-secondary);margin-bottom:2rem;font-size:.95rem}.lab-page .lab-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:.75rem}.lab-page .lab-tab{padding:.5rem 1rem;border-radius:8px;cursor:pointer;font-size:.88rem;border:1px solid rgba(255,255,255,.08);background:var(--bg-card);color:var(--text-secondary);transition:all .2s;white-space:nowrap}.lab-page .lab-tab:hover{border-color:var(--accent);color:var(--text-primary)}.lab-page .lab-tab.active{background:#22d3ee1f;border-color:var(--accent);color:var(--accent);font-weight:600}.lab-page .lab-card{background:var(--bg-card);border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.lab-page .lab-card h3{color:var(--accent);font-size:1.1rem;margin:0 0 .75rem;display:flex;align-items:center;gap:.5rem}.lab-page .lab-card h4{color:var(--text-primary);font-size:.95rem;margin:0 0 .5rem}.lab-page .lab-row{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}@media (max-width: 768px){.lab-page .lab-row{grid-template-columns:1fr}}.lab-page .lab-input-group{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1rem}.lab-page .lab-input-group label{font-size:.85rem;color:var(--text-secondary);font-weight:500}.lab-page .lab-input{background:var(--bg-primary);border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:.7rem .9rem;color:var(--text-primary);font-size:.9rem;font-family:inherit;box-sizing:border-box;width:100%;transition:border-color .2s}.lab-page .lab-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-glow)}.lab-page .lab-input::placeholder{color:#fff3}.lab-page textarea.lab-input{resize:vertical;min-height:80px;font-family:Cascadia Code,Fira Code,monospace;font-size:.85rem}.lab-page select.lab-input{cursor:pointer}.lab-page .lab-btn{padding:.65rem 1.2rem;border-radius:8px;cursor:pointer;font-size:.88rem;font-weight:500;border:1px solid transparent;transition:all .2s;font-family:inherit}.lab-page .lab-btn-primary{background:var(--accent);color:#0a0e1a;border-color:var(--accent)}.lab-page .lab-btn-primary:hover{filter:brightness(1.15)}.lab-page .lab-btn-secondary{background:var(--bg-primary);color:var(--text-primary);border-color:#ffffff1f}.lab-page .lab-btn-secondary:hover{border-color:var(--accent)}.lab-page .lab-btn-danger{background:#f871711f;color:#f87171;border-color:#f8717140}.lab-page .lab-btn-danger:hover{background:#f8717133}.lab-page .lab-btn-sm{padding:.4rem .75rem;font-size:.8rem}.lab-page .lab-btn-group{display:flex;gap:.5rem;flex-wrap:wrap}.lab-page .lab-output{background:var(--bg-primary);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:1rem 1.25rem;font-family:Cascadia Code,Fira Code,monospace;font-size:.85rem;color:var(--text-primary);white-space:pre-wrap;word-break:break-all;max-height:400px;overflow-y:auto;position:relative;line-height:1.6}.lab-page .lab-output-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.lab-page .lab-output-header span{font-size:.8rem;color:var(--text-secondary);font-family:inherit}.lab-page .lab-copy-btn{background:#22d3ee1a;border:1px solid rgba(34,211,238,.2);color:var(--accent);padding:.3rem .7rem;border-radius:6px;cursor:pointer;font-size:.78rem;transition:all .2s;font-family:inherit}.lab-page .lab-copy-btn:hover{background:#22d3ee33}.lab-page .lab-copy-btn.copied{background:#22c55e26;border-color:#22c55e4d;color:#22c55e}.lab-page .lab-param-row{display:flex;gap:.75rem;align-items:flex-end;flex-wrap:wrap;margin-bottom:1rem}.lab-page .lab-param-row .lab-input-group{flex:1;min-width:120px;margin-bottom:0}.lab-page .lab-stats{display:flex;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.lab-page .lab-stat{background:var(--bg-primary);border:1px solid rgba(255,255,255,.06);border-radius:8px;padding:.75rem 1rem;text-align:center;min-width:90px}.lab-page .lab-stat .value{font-size:1.3rem;font-weight:700;color:var(--accent)}.lab-page .lab-stat .label{font-size:.75rem;color:var(--text-secondary);margin-top:.2rem}.lab-page .lab-viz{background:var(--bg-primary);border:1px solid rgba(255,255,255,.06);border-radius:10px;padding:1rem;min-height:200px;overflow:auto;display:flex;flex-wrap:wrap;gap:.4rem;align-items:flex-end}.lab-page .lab-bar{display:flex;flex-direction:column;align-items:center;gap:.3rem;transition:all .3s}.lab-page .lab-bar-fill{width:36px;border-radius:4px 4px 0 0;transition:height .5s ease;background:linear-gradient(to top,var(--accent),rgba(34,211,238,.4))}.lab-page .lab-bar-label{font-size:.7rem;color:var(--text-secondary)}.lab-page .lab-nodes{display:flex;gap:1rem;justify-content:center;align-items:center;flex-wrap:wrap;padding:1rem}.lab-page .lab-node{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:600;transition:all .4s;border:2px solid rgba(255,255,255,.15);background:var(--bg-card)}.lab-page .lab-node.leader{border-color:#22c55e;box-shadow:0 0 12px #22c55e66;color:#22c55e}.lab-page .lab-node.follower{border-color:#ffffff1a;color:var(--text-secondary)}.lab-page .lab-node.candidate{border-color:#f59e0b;box-shadow:0 0 10px #f59e0b4d;color:#f59e0b}.lab-page .lab-node.dead{border-color:#f87171;opacity:.5}.lab-page .lab-grid{display:grid;gap:.5rem}.lab-page .lab-grid-cell{padding:.5rem;border-radius:6px;text-align:center;font-family:monospace;font-size:.82rem;background:#ffffff08;border:1px dashed rgba(255,255,255,.06);transition:all .3s}.lab-page .lab-gossip-ring{width:300px;height:300px;border-radius:50%;position:relative;margin:1rem auto;border:2px dashed rgba(34,211,238,.2)}@keyframes propagate{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:0}}@keyframes pulse-node{0%,to{box-shadow:0 0 4px var(--accent-glow)}50%{box-shadow:0 0 18px var(--accent)}}.lab-page .lab-step-list{display:flex;flex-direction:column;gap:.5rem}.lab-page .lab-step{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;border-radius:8px;background:#ffffff05;font-size:.88rem}.lab-page .lab-step-idx{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;background:#22d3ee26;color:var(--accent);flex-shrink:0}.lab-page .lab-step-text{flex:1;color:var(--text-primary)}.lab-page .lab-step-time{font-size:.75rem;color:var(--text-secondary);white-space:nowrap}.lab-page .lab-note{font-size:.82rem;color:var(--text-secondary);background:#22d3ee0a;border-left:3px solid var(--accent);padding:.6rem 1rem;border-radius:0 8px 8px 0;margin-top:1rem}.lab-page .lab-presets{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:.75rem}.lab-page .lab-preset{padding:.3rem .6rem;border-radius:6px;cursor:pointer;font-size:.78rem;background:#ffffff0a;border:1px solid rgba(255,255,255,.08);color:var(--text-secondary);font-family:monospace;transition:all .15s}.lab-page .lab-preset:hover{border-color:var(--accent);color:var(--accent);background:#22d3ee14}.lab-page .lab-progress{height:8px;border-radius:4px;background:#ffffff0f;overflow:hidden}.lab-page .lab-progress-fill{height:100%;border-radius:4px;background:var(--accent);transition:width .5s ease}.lab-page .lab-demo-inline{display:flex;gap:1rem;align-items:center;justify-content:center;padding:1.5rem;flex-wrap:wrap}.lab-page .lab-log{background:#0000004d;border-radius:8px;padding:.75rem 1rem;font-family:monospace;font-size:.8rem;color:#86efac;max-height:300px;overflow-y:auto;white-space:pre-wrap;line-height:1.5}.lab-page .lab-grid{grid-template-columns:initial}:root{--bg-primary: #0a0e1a;--bg-secondary: #111827;--bg-card: #151d2e;--bg-card-hover: #1a2438;--border: #2a3650;--text-primary: #e5eaf3;--text-secondary: #94a3b8;--text-muted: #64748b;--accent: #22d3ee;--accent-glow: rgba(34, 211, 238, .15);--success: #34d399;--warning: #fbbf24;--danger: #f87171;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--shadow: 0 4px 24px rgba(0, 0, 0, .4);--transition: all .25s cubic-bezier(.4, 0, .2, 1);--font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace}*{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;background:var(--bg-primary);color:var(--text-primary);line-height:1.6;-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none;transition:var(--transition)}a:hover{text-decoration:underline;text-underline-offset:4px}.container{max-width:1200px;margin:0 auto;padding:0 24px}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:24px;transition:var(--transition)}.card:hover{background:var(--bg-card-hover);border-color:var(--accent);box-shadow:var(--shadow);transform:translateY(-2px)}.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg-card);color:var(--text-primary);font-size:14px;font-weight:500;cursor:pointer;transition:var(--transition)}.btn:hover{border-color:var(--accent);color:var(--accent);box-shadow:0 0 16px var(--accent-glow)}.btn-primary{background:var(--accent);border-color:var(--accent);color:#0a0e1a;font-weight:600}.btn-primary:hover{background:#67e8f9;color:#0a0e1a}.badge{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:500;font-family:var(--font-mono)}.badge-success{background:#34d3991f;color:var(--success)}.badge-warning{background:#fbbf241f;color:var(--warning)}.badge-danger{background:#f871711f;color:var(--danger)}.badge-accent{background:var(--accent-glow);color:var(--accent)}@keyframes fadeInUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}@keyframes scanline{0%{transform:translateY(-100%)}to{transform:translateY(100%)}}.fade-in-up{animation:fadeInUp .5s ease-out both}.delay-1{animation-delay:.1s}.delay-2{animation-delay:.2s}.delay-3{animation-delay:.3s}.terminal{background:#0d1117;border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font-mono);font-size:13px;overflow:hidden}.terminal-header{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#161b22;border-bottom:1px solid var(--border)}.terminal-dot{width:10px;height:10px;border-radius:50%}.terminal-body{padding:12px 16px;color:var(--text-secondary)}@media (max-width: 768px){.container{padding:0 16px}.card{padding:16px}}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--accent)}.app{display:flex;flex-direction:column;min-height:100vh}.app-main{flex:1}.navbar{position:sticky;top:0;z-index:100;background:#0a0e1ab8;backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);border-bottom:1px solid rgba(42,54,80,.6);box-shadow:0 4px 24px #00000040}.navbar-inner{display:flex;align-items:center;justify-content:space-between;height:60px;gap:12px}.navbar-brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}.brand-logo{width:34px;height:34px;border-radius:9px;object-fit:cover;box-shadow:0 0 0 1px #22d3ee40,0 2px 10px #22d3ee2e;transition:transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s}.navbar-brand:hover .brand-logo{transform:rotate(-6deg) scale(1.06);box-shadow:0 0 0 1px #22d3ee80,0 4px 16px #22d3ee59}.brand-text{font-family:var(--font-mono);font-size:17px;font-weight:700;letter-spacing:.5px;background:linear-gradient(120deg,#e5eaf3 30%,#22d3ee);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;white-space:nowrap}.nav-desktop{display:flex;align-items:center;gap:2px}.nav-link{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;color:var(--text-secondary);font-size:13.5px;font-weight:500;text-decoration:none;border:1px solid transparent;background:none;cursor:pointer;font-family:inherit;transition:color .2s,background .2s,border-color .2s;white-space:nowrap}.nav-link .nav-ic{display:inline-flex;opacity:.75;transition:opacity .2s,transform .2s}.nav-link:hover{color:var(--text-primary);background:#ffffff0d;text-decoration:none}.nav-link:hover .nav-ic{opacity:1;transform:translateY(-1px)}.nav-link.active{color:#0a0e1a;background:linear-gradient(135deg,#22d3ee,#34d399);border-color:transparent;font-weight:600;box-shadow:0 2px 12px #22d3ee59}.nav-link.active .nav-ic{opacity:1}.nav-group{position:relative}.nav-group-btn .caret{transition:transform .2s;opacity:.6}.nav-group-btn .caret.up{transform:rotate(180deg)}.nav-dropdown{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%) translateY(-6px);min-width:200px;background:#111827eb;backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);border:1px solid rgba(42,54,80,.8);border-radius:14px;padding:6px;box-shadow:0 12px 40px #00000073,0 0 0 1px #22d3ee0f;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s,transform .18s,visibility .18s}.nav-dropdown.show{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%) translateY(0)}.nav-drop-item{display:flex;align-items:center;gap:9px;padding:9px 12px;border-radius:9px;color:var(--text-secondary);font-size:13.5px;text-decoration:none;transition:background .15s,color .15s;white-space:nowrap}.nav-drop-item .nav-ic{display:inline-flex;opacity:.7}.nav-drop-item:hover{background:#22d3ee14;color:var(--text-primary);text-decoration:none}.nav-drop-item.active{background:#22d3ee1f;color:var(--accent);font-weight:600}.navbar-toggle{display:none;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:40px;height:40px;background:#ffffff0a;border:1px solid var(--border);border-radius:10px;cursor:pointer;padding:0}.navbar-toggle .bar{display:block;width:18px;height:2px;border-radius:2px;background:var(--text-primary);transition:transform .25s,opacity .25s}.navbar-toggle .bar.x:nth-child(1){transform:translateY(7px) rotate(45deg)}.navbar-toggle .bar.x:nth-child(2){opacity:0}.navbar-toggle .bar.x:nth-child(3){transform:translateY(-7px) rotate(-45deg)}.nav-mobile{display:none}@media (max-width: 900px){.nav-desktop{display:none}.navbar-toggle{display:flex}.nav-mobile{display:block;max-height:0;overflow:hidden;transition:max-height .3s cubic-bezier(.4,0,.2,1);border-top:1px solid transparent}.nav-mobile.open{max-height:80vh;overflow-y:auto;border-top-color:#2a365099}.nav-mobile-inner{display:flex;flex-direction:column;gap:2px;padding:12px 20px 18px}.nav-mobile .nav-link{border-radius:10px;padding:10px 14px;font-size:14px}.nav-mobile-sec{margin:10px 4px 4px;font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--text-muted)}}.footer{border-top:1px solid var(--border);background:var(--bg-secondary);margin-top:64px}.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;padding:40px 24px 24px}.footer-logo{font-family:var(--font-mono);font-weight:700;font-size:16px;color:var(--text-primary)}.footer-desc{color:var(--text-muted);font-size:13px;margin-top:8px}.footer-col{display:flex;flex-direction:column;gap:8px}.footer-col h4{color:var(--text-primary);font-size:14px;margin-bottom:4px}.footer-col a{color:var(--text-muted);font-size:13px}.footer-col a:hover{color:var(--accent)}.footer-status{display:flex;align-items:flex-start}.footer-bottom{display:flex;justify-content:space-between;padding:16px 24px;border-top:1px solid var(--border);color:var(--text-muted);font-size:12px}.footer-mono{font-family:var(--font-mono)}.footer-declaration{padding:20px 24px 0;text-align:center}.footer-declaration p{margin:0 auto;max-width:720px;color:var(--text-muted);font-size:13px;line-height:1.9}.footer-beian{display:flex;justify-content:center;align-items:center;gap:24px;padding:12px 24px 20px}.footer-beian a{color:var(--text-muted);font-size:12px}.footer-beian a:hover{color:var(--accent)}.footer-beian .beian-gongan{display:inline-flex;align-items:center;gap:5px}.footer-beian .beian-badge{height:16px;width:auto;vertical-align:middle;display:inline-block}@media (max-width: 768px){.footer-beian{flex-direction:column;gap:8px}}.dot-live{width:8px;height:8px;border-radius:50%;background:currentColor;animation:pulse 2s infinite}@media (max-width: 768px){.footer-inner{grid-template-columns:1fr}}.section{padding:48px 0}.section-title{font-size:28px;font-weight:700;margin-bottom:8px}.section-subtitle{color:var(--text-secondary);margin-bottom:32px}.page-header{padding:48px 0 24px}.page-header h1{font-size:32px;font-weight:700}.page-header p{color:var(--text-secondary);margin-top:8px}.hero{padding:80px 0 48px;background:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(34,211,238,.08),transparent),linear-gradient(180deg,var(--bg-primary) 0%,var(--bg-secondary) 100%);border-bottom:1px solid var(--border)}.hero-content{max-width:640px}.hero-title{font-size:48px;font-weight:800;line-height:1.2;margin:16px 0}.hero-highlight{color:var(--accent);text-shadow:0 0 24px var(--accent-glow)}.hero-desc{color:var(--text-secondary);font-size:16px;margin-bottom:28px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:48px}.stat-card{display:flex;flex-direction:column;gap:4px;padding:20px}.stat-value{font-size:28px;font-weight:700;font-family:var(--font-mono)}.stat-success{color:var(--success)}.stat-accent{color:var(--accent)}.stat-warning{color:var(--warning)}.stat-label{color:var(--text-muted);font-size:13px}@media (max-width: 768px){.hero-title{font-size:32px}.hero-stats{grid-template-columns:repeat(2,1fr)}}.module-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.module-card{display:flex;align-items:center;gap:16px;text-decoration:none;color:inherit}.module-card:hover{text-decoration:none}.module-icon{font-size:32px}.module-body{flex:1}.module-title-row{display:flex;align-items:center;gap:10px;margin-bottom:6px}.module-title-row h3{font-size:17px}.module-body p{color:var(--text-secondary);font-size:14px}.module-arrow{color:var(--text-muted);transition:var(--transition)}.module-card:hover .module-arrow{color:var(--accent);transform:translate(4px)}@media (max-width: 768px){.module-grid{grid-template-columns:1fr}}.cta{text-align:center;padding:48px}.cta h2{font-size:24px;margin-bottom:12px}.cta p{color:var(--text-secondary);margin-bottom:24px}.threat-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.threat-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}.threat-filters{display:flex;gap:8px;flex-wrap:wrap}.threat-list{max-height:480px;overflow-y:auto;display:flex;flex-direction:column;gap:4px}.threat-row{display:grid;grid-template-columns:90px 60px 1fr 1fr 80px;align-items:center;gap:12px;padding:8px 12px;border-radius:6px;font-family:var(--font-mono);font-size:13px}.threat-row:hover{background:var(--bg-card)}.threat-time{color:var(--text-muted)}.threat-type{color:var(--text-primary)}.threat-path{color:var(--text-secondary)}.threat-empty{color:var(--text-muted);padding:24px;text-align:center}.terminal-title{margin-left:8px;color:var(--text-muted);font-size:12px}@media (max-width: 768px){.threat-stats{grid-template-columns:repeat(2,1fr)}.threat-row{grid-template-columns:80px 56px 1fr 72px}.threat-path{display:none}}.lab-tabs{display:flex;gap:12px;margin-bottom:24px}.lab-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.lab-panel h3{font-size:18px;margin-bottom:8px}.lab-hint{color:var(--text-muted);font-size:13px;margin-bottom:16px}.lab-input{width:100%;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);padding:10px 14px;font-size:14px;font-family:var(--font-mono);resize:vertical;transition:var(--transition)}.lab-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}.lab-result{margin-top:16px;display:flex;flex-direction:column;gap:12px}.lab-result-row{display:flex;flex-direction:column;gap:4px}.lab-label{color:var(--text-muted);font-size:12px;font-family:var(--font-mono)}.lab-code{background:var(--bg-secondary);border:1px solid var(--border);border-radius:6px;padding:8px 12px;font-family:var(--font-mono);font-size:13px;color:var(--accent);word-break:break-all}.pw-meter{height:8px;background:var(--bg-secondary);border-radius:4px;overflow:hidden;margin-bottom:12px}.pw-meter-fill{height:100%;background:linear-gradient(90deg,var(--danger),var(--warning),var(--success));transition:width .4s ease}.pw-result{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wargame-header{display:flex;justify-content:space-between;margin-bottom:20px}.wargame-q{font-size:18px;margin-bottom:20px;line-height:1.6}.wargame-options{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.wargame-option{justify-content:flex-start}.wargame-option.correct{border-color:var(--success);color:var(--success)}.wargame-option.wrong{border-color:var(--danger);color:var(--danger)}.wargame-explain{margin-top:20px;padding:16px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-sm)}.wargame-explain p{color:var(--text-secondary);font-size:14px;margin:10px 0 16px}.wargame-result{text-align:center;padding:48px}.wargame-score{margin:16px 0}@media (max-width: 768px){.lab-grid,.wargame-options{grid-template-columns:1fr}}.ebpf-controls{display:flex;align-items:center;gap:16px;margin-bottom:24px}.ebpf-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.ebpf-panel h3{font-size:18px;margin-bottom:8px}.syscall-list{display:flex;flex-direction:column;gap:10px}.syscall-row{display:grid;grid-template-columns:90px 1fr 70px;align-items:center;gap:12px}.syscall-name{font-family:var(--font-mono);font-size:13px;color:var(--text-secondary)}.syscall-bar-bg{height:10px;background:var(--bg-secondary);border-radius:5px;overflow:hidden}.syscall-bar{height:100%;border-radius:5px;transition:width .5s ease}.syscall-count{font-family:var(--font-mono);font-size:13px;color:var(--text-primary);text-align:right}.conn-row{display:grid;grid-template-columns:50px 1fr 1fr 110px;align-items:center;gap:10px;padding:6px 0;font-family:var(--font-mono);font-size:13px}.conn-local{color:var(--text-primary)}.conn-remote{color:var(--text-secondary)}@media (max-width: 768px){.ebpf-grid{grid-template-columns:1fr}}.resource-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.resource-card h3{font-size:16px;margin:12px 0 8px}.resource-card p{color:var(--text-secondary);font-size:14px}.resource-head{display:flex;justify-content:space-between}@media (max-width: 1024px){.resource-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.resource-grid{grid-template-columns:1fr}}.about-intro{margin-bottom:8px}.about-intro h3{font-size:18px;margin-bottom:12px}.about-intro p{color:var(--text-secondary);line-height:1.8}.about-intro strong{color:var(--accent)}.about-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.about-card{text-align:left}.about-icon{font-size:28px}.about-card h3{font-size:16px;margin:12px 0 8px}.about-card p{color:var(--text-secondary);font-size:14px}.tech-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.tech-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.tech-name{font-family:var(--font-mono);color:var(--accent);font-size:15px;font-weight:600}.tech-desc{color:var(--text-muted);font-size:13px}.about-cta{text-align:center;padding:40px}.about-cta h3{font-size:20px;margin-bottom:8px}.about-cta p{color:var(--text-secondary);margin-bottom:20px}@media (max-width: 768px){.about-grid{grid-template-columns:1fr}.tech-grid{grid-template-columns:repeat(2,1fr)}}.articles-controls{margin-bottom:16px}.articles-search{max-width:420px}.articles-count{color:var(--text-muted);font-size:13px;margin-bottom:16px}.articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.article-card{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:inherit}.article-card:hover{text-decoration:none}.article-card h3{font-size:15px;line-height:1.5;flex:1}.article-arrow{color:var(--text-muted);font-size:13px;transition:var(--transition)}.article-card:hover .article-arrow{color:var(--accent)}.articles-empty{text-align:center;color:var(--text-muted);padding:40px}.articles-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:32px}.articles-pagination .btn:disabled{opacity:.4;cursor:not-allowed}.articles-page-info{font-family:var(--font-mono);color:var(--text-secondary);font-size:14px}@media (max-width: 1024px){.articles-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.articles-grid{grid-template-columns:1fr}}.stat-danger{color:var(--danger)}.service-list{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.banned-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;padding:4px}.banned-ip{font-family:var(--font-mono);font-size:13px;color:var(--text-primary)}.banned-scroll{max-height:320px;overflow-y:auto;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-secondary)}.banned-card{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);transition:var(--transition)}.banned-card:hover{border-color:var(--danger);background:#f871710f;transform:translateY(-1px)}.banned-icon{font-size:14px}.ai-notice-banner{background:linear-gradient(90deg,#dc2626,#f59e0b,#dc2626);background-size:200% 100%;animation:aiNoticeShine 3s ease-in-out infinite;color:#fff;font-weight:700;font-size:15px;padding:10px 0;text-align:center;letter-spacing:1px;position:relative;z-index:1001}@keyframes aiNoticeShine{0%{background-position:200% 0}to{background-position:-200% 0}}.ai-notice-inner{display:flex;align-items:center;justify-content:center;gap:10px}.ai-notice-icon{font-size:18px;animation:aiNoticePulse 1.5s ease-in-out infinite}@keyframes aiNoticePulse{0%,to{transform:scale(1)}50%{transform:scale(1.2)}}.ai-notice-text{text-shadow:0 1px 2px rgba(0,0,0,.3)}@media (max-width: 768px){.ai-notice-banner{font-size:13px;padding:8px 0}.ai-notice-inner{padding:0 16px}}.about-contact{margin-top:32px;text-align:center}.about-contact h3{color:var(--accent);margin-bottom:12px;font-size:20px}.about-contact>p{color:var(--text-secondary);margin-bottom:16px}.contact-item{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-md);font-size:16px}.contact-label{color:var(--text-secondary)}.contact-email{color:var(--accent);font-weight:600;font-family:var(--font-mono);text-decoration:none}.contact-email:hover{text-decoration:underline;color:#67e8f9}
