*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;color:#0f172a;background:#f8fafc;-webkit-font-smoothing:antialiased}#app{display:flex;width:100%;height:100%}.sidebar{width:248px;flex-shrink:0;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e2e8f0;height:100%;z-index:10}.sidebar-header{padding:14px 14px 10px;border-bottom:1px solid #e2e8f0}.site-title{margin:0 0 8px;font-size:14px;font-weight:700;color:#0f172a;letter-spacing:-.01em}.search-input{width:100%;padding:6px 9px;font-size:12.5px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc;color:#0f172a;outline:none}.search-input:focus{border-color:#2563eb;background:#fff}.nav-scroll{flex:1;overflow-y:auto;padding:8px 8px 16px}.pillar-group{margin-bottom:10px}.pillar-title{font-size:11px;font-weight:700;color:#64748b;padding:6px 8px 4px;line-height:1.35}.topic-btn{display:block;width:100%;text-align:left;padding:6px 9px;margin-bottom:2px;border:none;border-radius:6px;background:transparent;color:#334155;font-size:12.5px;line-height:1.38;cursor:pointer;transition:background .12s ease,color .12s ease}.topic-btn:hover{background:#f1f5f9;color:#0f172a}.topic-btn.active{background:#eff6ff;color:#1d4ed8;font-weight:600}.stage-wrap{flex:1;position:relative;min-width:0;height:100%;background:#f4f6f9}#viewport{width:100%;height:100%;display:block}.stage-topbar{position:absolute;top:12px;left:14px;right:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.stage-title-pill{pointer-events:auto;background:#ffffffe6;border:1px solid #e2e8f0;border-radius:6px;padding:5px 11px;font-size:13px;font-weight:600;color:#0f172a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.stage-actions{pointer-events:auto;display:flex;align-items:center;gap:6px}.tool-btn{padding:5px 10px;font-size:12px;font-weight:500;color:#334155;background:#ffffffeb;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.tool-btn:hover{background:#fff;border-color:#94a3b8;color:#0f172a}.tool-btn.active{background:#eff6ff;border-color:#2563eb;color:#1d4ed8}.legend-box{position:absolute;left:14px;bottom:12px;display:flex;flex-direction:column;gap:5px;padding:8px 11px;background:#ffffffe6;border:1px solid #e2e8f0;border-radius:6px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);font-size:11.5px;color:#334155;pointer-events:none;z-index:6}.legend-item{display:flex;align-items:center;gap:7px;line-height:1.25}.legend-line{width:18px;height:0;border-top-width:2.5px;flex-shrink:0}.legend-line.solid{border-top-style:solid}.legend-line.dashed{border-top-style:dashed}.legend-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;margin:0 4.5px}.legend-arrow{width:18px;text-align:center;font-size:13px;font-weight:700;line-height:1;flex-shrink:0}.watermark{position:absolute;right:14px;bottom:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;letter-spacing:.06em;color:#64748b;opacity:.28;pointer-events:none;-webkit-user-select:none;user-select:none;z-index:5}.inspector{width:400px;flex-shrink:0;display:flex;flex-direction:column;background:#fff;border-left:1px solid #e2e8f0;height:100%;transition:width .18s ease}.inspector.collapsed{width:0;border-left:none;overflow:hidden}.inspector-tabs{display:flex;border-bottom:1px solid #e2e8f0;background:#f8fafc;padding:0 10px;flex-shrink:0}.tab-btn{padding:10px 12px;font-size:12.5px;font-weight:600;color:#64748b;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer}.tab-btn.active{color:#0f172a;border-bottom-color:#2563eb}.inspector-body{flex:1;overflow-y:auto;padding:14px 16px 28px}.controls-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px;margin-bottom:14px}.control-row{margin-bottom:10px}.control-row:last-child{margin-bottom:0}.control-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#334155;margin-bottom:4px}.control-val{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:600;color:#0f172a}.control-row input[type=range]{width:100%;accent-color:#2563eb;cursor:pointer}.control-row select{width:100%;padding:5px 8px;font-size:12.5px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#0f172a}.toggle-label{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#1e293b;cursor:pointer}.metrics-grid{display:grid;grid-template-columns:1fr;gap:6px;margin-bottom:16px}.metric-item{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:7px 10px;display:flex;flex-direction:column;gap:2px}.metric-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.metric-label{font-size:11.5px;color:#64748b}.metric-value{font-size:12.5px;font-weight:650;color:#0f172a;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.metric-note{font-size:11px;color:#64748b}.knowledge-head{margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #e2e8f0}.knowledge-head h2{margin:0 0 4px;font-size:16px;font-weight:700;color:#0f172a;line-height:1.35}.knowledge-head p{margin:0;font-size:12px;color:#64748b;line-height:1.45}.knowledge-body{font-size:12.5px;line-height:1.62;color:#1e293b}.knowledge-body h3{margin:16px 0 8px;font-size:13.5px;font-weight:700;color:#0f172a;padding-left:8px;border-left:3px solid #2563eb}.knowledge-body h4{margin:12px 0 6px;font-size:12.5px;font-weight:700;color:#1e293b}.knowledge-body p{margin:6px 0}.knowledge-body ul,.knowledge-body ol{margin:6px 0;padding-left:18px}.knowledge-body li{margin-bottom:4px}.knowledge-body .insight-box{background:#f8fafc;border:1px solid #e2e8f0;border-left:3px solid #2563eb;border-radius:6px;padding:9px 11px;margin-bottom:12px;font-size:12.2px;color:#334155}.knowledge-body .pitfall-box,.knowledge-body .warn-box{background:#fef2f2;border:1px solid #fecaca;border-left:3px solid #dc2626;border-radius:6px;padding:9px 11px;margin:10px 0;font-size:12.2px;color:#7f1d1d}.knowledge-body .formula-box,.knowledge-body .formula-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:8px 10px;margin:8px 0;font-family:"Cambria Math",Times New Roman,serif;font-size:13px}.knowledge-body .formula-grid{display:grid;grid-template-columns:1fr;gap:8px;margin:8px 0}.knowledge-body .compare-table,.knowledge-body table{width:100%;border-collapse:collapse;margin:8px 0;font-size:11.8px;display:block;overflow-x:auto}.knowledge-body th,.knowledge-body td{border:1px solid #e2e8f0;padding:5px 7px;text-align:left;vertical-align:top}.knowledge-body th{background:#f1f5f9;font-weight:650;color:#0f172a;white-space:nowrap}.knowledge-body .svg-diagram-wrap{margin:8px 0;overflow-x:auto}.knowledge-body .inline-svg{width:100%;height:auto;display:block}.knowledge-body .section-block{margin-bottom:14px}.mobile-toggle{display:none}@media(max-width:980px){.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translate(-100%);transition:transform .2s ease;box-shadow:4px 0 18px #0f172a1a}.sidebar.open{transform:translate(0)}.mobile-toggle{display:inline-block}.inspector{width:320px}}@media(max-width:700px){#app{flex-direction:column}.stage-wrap{height:52%;flex:none}.inspector{width:100%;height:48%;border-left:none;border-top:1px solid #e2e8f0}.inspector.collapsed{height:0;width:100%}}
