*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%;width:100%;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#0f0f1a;color:#f7fafc}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#1a1a2e}::-webkit-scrollbar-thumb{background:#4a5568;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#5a6578}::selection{background:#3182ce;color:#fff}a{color:#63b3ed;text-decoration:none}a:hover{text-decoration:underline}button{font-family:inherit}button:focus{outline:none}button:focus-visible{outline:2px solid #63b3ed;outline-offset:2px}.header{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:linear-gradient(135deg,#1a1a2e,#16213e);border-bottom:1px solid #2d3748;height:50px;box-sizing:border-box}.header-left{flex:1;display:flex;align-items:center}.back-link{color:#63b3ed;text-decoration:none;font-size:14px;transition:color .2s;white-space:nowrap}.back-link:hover{color:#90cdf4}.header-center{flex:2;display:flex;justify-content:center}.title-link{text-decoration:none}.title{color:#f7fafc;font-size:20px;font-weight:600;margin:0;text-align:center;transition:color .2s}.title-link:hover .title{color:#63b3ed}.header-right{flex:1;display:flex;align-items:center;justify-content:flex-end;gap:12px}.thought-btn{background:linear-gradient(135deg,#2d3748,#1a202c);border:1px solid #4a5568;color:#f7fafc;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:13px;transition:all .2s;white-space:nowrap}.thought-btn:hover{background:linear-gradient(135deg,#4a5568,#2d3748);border-color:#63b3ed}.github-link{display:flex;align-items:center;gap:6px;color:#f7fafc;text-decoration:none;padding:6px 10px;border-radius:6px;background:#ffffff1a;transition:all .2s}.github-link:hover{background:#fff3}.github-icon{width:20px;height:20px}.star-count{font-size:13px;font-weight:500}.data-input-container{padding:8px 16px;background:#1a1a2e;border-bottom:1px solid #2d3748}.input-row{display:flex;align-items:center;gap:12px}.input-label{color:#a0aec0;font-size:14px;white-space:nowrap}.input-field{flex:1;max-width:400px;padding:8px 12px;border:1px solid #4a5568;border-radius:6px;background:#2d3748;color:#f7fafc;font-size:14px;font-family:Monaco,Menlo,monospace;transition:border-color .2s}.input-field:focus{outline:none;border-color:#63b3ed}.input-field.input-error{border-color:#fc8181}.input-field::placeholder{color:#718096}.random-btn{padding:8px 16px;background:linear-gradient(135deg,#38a169,#2f855a);border:none;border-radius:6px;color:#fff;font-size:13px;cursor:pointer;transition:all .2s;white-space:nowrap}.random-btn:hover{background:linear-gradient(135deg,#48bb78,#38a169);transform:translateY(-1px)}.error-message{color:#fc8181;font-size:12px;margin-top:4px;padding-left:70px}.examples-row{display:flex;align-items:center;gap:8px;margin-top:8px}.examples-label{color:#718096;font-size:13px}.example-btn{padding:4px 12px;background:#2d3748;border:1px solid #4a5568;border-radius:4px;color:#e2e8f0;font-size:12px;cursor:pointer;transition:all .2s}.example-btn:hover{background:#4a5568;border-color:#63b3ed}.code-panel{display:flex;flex-direction:column;background:#1e1e1e;border-radius:8px;overflow:hidden;height:100%}.code-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#252526;border-bottom:1px solid #3c3c3c}.code-title{color:#ccc;font-size:13px;font-weight:500}.language-tabs{display:flex;gap:4px}.language-tab{padding:4px 10px;background:transparent;border:1px solid transparent;border-radius:4px;color:#858585;font-size:12px;cursor:pointer;transition:all .2s}.language-tab:hover{color:#ccc;background:#3c3c3c}.language-tab.active{color:#fff;background:#0e639c;border-color:#0e639c}.code-content{flex:1;overflow:auto;padding:8px 0}.code-pre{margin:0;font-family:Monaco,Menlo,Consolas,monospace;font-size:13px;line-height:1.6}.code-line{display:flex;align-items:center;padding:0 12px;min-height:22px;transition:background-color .2s}.code-line.highlighted{background:#ffd50026;border-left:3px solid #ffd500;padding-left:9px}.line-number{width:35px;color:#858585;text-align:right;padding-right:12px;-webkit-user-select:none;user-select:none;flex-shrink:0}.line-content{flex:1;color:#d4d4d4;white-space:pre}.variable-value{margin-left:20px;padding:2px 8px;background:#264f78;border-radius:4px;color:#9cdcfe;font-size:11px;white-space:nowrap}.keyword{color:#569cd6}.comment{color:#6a9955}.number{color:#b5cea8}.string{color:#ce9178}.code-content::-webkit-scrollbar{width:10px;height:10px}.code-content::-webkit-scrollbar-track{background:#1e1e1e}.code-content::-webkit-scrollbar-thumb{background:#424242;border-radius:5px}.code-content::-webkit-scrollbar-thumb:hover{background:#4f4f4f}.canvas-container{display:flex;flex-direction:column;background:#1a1a2e;border-radius:8px;overflow:hidden;height:100%;position:relative}.canvas-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#16213e;border-bottom:1px solid #2d3748}.canvas-title{color:#a0aec0;font-size:13px;font-weight:500}.canvas-hint{color:#718096;font-size:11px}.canvas-svg{flex:1;cursor:grab;background:linear-gradient(135deg,#0f0f1a,#1a1a2e)}.canvas-svg:active{cursor:grabbing}.result-badge{position:absolute;bottom:20px;left:50%;transform:translate(-50%);padding:12px 24px;background:linear-gradient(135deg,#38a169,#2f855a);border-radius:8px;color:#fff;font-size:18px;font-weight:600;box-shadow:0 4px 20px #38a16966;animation:fadeInUp .5s ease-out}@keyframes fadeInUp{0%{opacity:0;transform:translate(-50%) translateY(20px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.array-cell rect{transition:fill .3s,stroke .3s}.nodes circle{transition:fill .3s,stroke .3s}.arrows line{transition:stroke .3s}.control-panel{background:#1a1a2e;border-top:1px solid #2d3748;padding:12px 16px}.control-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.step-info{display:flex;align-items:center;gap:12px}.step-counter{color:#63b3ed;font-size:14px;font-weight:600;white-space:nowrap}.step-description{color:#a0aec0;font-size:13px;max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.control-buttons{display:flex;align-items:center;gap:8px}.control-btn{display:flex;align-items:center;gap:6px;padding:8px 14px;background:#2d3748;border:1px solid #4a5568;border-radius:6px;color:#e2e8f0;font-size:13px;cursor:pointer;transition:all .2s;white-space:nowrap}.control-btn:hover:not(:disabled){background:#4a5568;border-color:#63b3ed}.control-btn:disabled{opacity:.5;cursor:not-allowed}.control-btn kbd{padding:2px 6px;background:#1a202c;border-radius:3px;font-size:11px;color:#718096}.play-btn{background:linear-gradient(135deg,#3182ce,#2b6cb0);border-color:#3182ce}.play-btn:hover:not(:disabled){background:linear-gradient(135deg,#4299e1,#3182ce);border-color:#4299e1}.reset-btn{background:linear-gradient(135deg,#744210,#5a3510);border-color:#744210}.reset-btn:hover:not(:disabled){background:linear-gradient(135deg,#975a16,#744210);border-color:#975a16}.speed-control{position:relative}.speed-btn{padding:8px 14px;background:#2d3748;border:1px solid #4a5568;border-radius:6px;color:#e2e8f0;font-size:13px;cursor:pointer;transition:all .2s}.speed-btn:hover{background:#4a5568}.speed-menu{position:absolute;bottom:100%;right:0;margin-bottom:4px;background:#2d3748;border:1px solid #4a5568;border-radius:6px;overflow:hidden;z-index:100}.speed-option{display:block;width:100%;padding:8px 16px;background:transparent;border:none;color:#e2e8f0;font-size:13px;cursor:pointer;text-align:left;transition:background .2s}.speed-option:hover{background:#4a5568}.speed-option.active{background:#3182ce;color:#fff}.progress-bar{position:relative;height:8px;background:#4a5568;border-radius:4px;cursor:pointer;overflow:visible}.progress-fill{height:100%;background:linear-gradient(90deg,#38a169,#48bb78);border-radius:4px;transition:width .1s ease-out}.progress-handle{position:absolute;top:50%;width:16px;height:16px;background:#48bb78;border:2px solid #fff;border-radius:50%;transform:translate(-50%,-50%);cursor:grab;transition:transform .1s;box-shadow:0 2px 4px #0000004d}.progress-handle:hover{transform:translate(-50%,-50%) scale(1.2)}.progress-bar:active .progress-handle{cursor:grabbing;transform:translate(-50%,-50%) scale(1.3)}.thought-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.thought-modal{background:#1a1a2e;border-radius:12px;width:90%;max-width:700px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #00000080;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.thought-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #2d3748}.thought-title{color:#f7fafc;font-size:18px;font-weight:600;margin:0}.thought-close{width:32px;height:32px;background:#2d3748;border:none;border-radius:6px;color:#a0aec0;font-size:16px;cursor:pointer;transition:all .2s}.thought-close:hover{background:#4a5568;color:#f7fafc}.thought-content{flex:1;overflow-y:auto;padding:20px;color:#e2e8f0;line-height:1.7}.thought-h2{color:#63b3ed;font-size:20px;font-weight:600;margin:0 0 16px;padding-bottom:8px;border-bottom:2px solid #2d3748}.thought-h3{color:#48bb78;font-size:16px;font-weight:600;margin:20px 0 12px}.thought-p{margin:8px 0;color:#a0aec0}.thought-bold{color:#f7fafc;font-weight:600;margin:16px 0 8px}.thought-li{padding-left:8px;color:#a0aec0;list-style-type:disc;margin:6px 0 6px 20px}.thought-li-num{padding-left:8px;color:#a0aec0;list-style-type:decimal;margin:6px 0 6px 20px}.thought-code{background:#0d1117;border-radius:6px;padding:12px 16px;margin:12px 0;overflow-x:auto}.thought-code code{color:#e6edf3;font-family:Monaco,Menlo,monospace;font-size:13px;line-height:1.5}.thought-content::-webkit-scrollbar{width:8px}.thought-content::-webkit-scrollbar-track{background:#1a1a2e}.thought-content::-webkit-scrollbar-thumb{background:#4a5568;border-radius:4px}.thought-content::-webkit-scrollbar-thumb:hover{background:#5a6578}.wechat-float{position:fixed;bottom:24px;right:24px;z-index:900}.wechat-btn{display:flex;align-items:center;gap:6px;padding:10px 16px;background:linear-gradient(135deg,#07c160,#06ad56);border-radius:24px;color:#fff;cursor:pointer;box-shadow:0 4px 16px #07c16066;transition:all .3s}.wechat-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #07c16080}.wechat-icon{width:20px;height:20px}.wechat-text{font-size:13px;font-weight:500}.wechat-popup{position:absolute;bottom:100%;right:0;margin-bottom:12px;background:#fff;border-radius:12px;box-shadow:0 8px 32px #0003;animation:popupFadeIn .2s ease-out;overflow:hidden}@keyframes popupFadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.popup-arrow{position:absolute;bottom:-8px;right:24px;width:16px;height:16px;background:#fff;transform:rotate(45deg);box-shadow:4px 4px 8px #0000001a}.popup-content{position:relative;padding:16px;background:#fff;z-index:1}.qrcode-img{width:200px;height:auto;display:block;border-radius:8px}.popup-hint{margin:12px 0 0;text-align:center;color:#666;font-size:13px;line-height:1.5}.popup-hint strong{color:#07c160}.app{display:flex;flex-direction:column;height:100vh;background:#0f0f1a;overflow:hidden}.main-content{flex:1;display:flex;gap:12px;padding:12px;min-height:0}.left-panel{width:380px;flex-shrink:0;display:flex;flex-direction:column}.right-panel{flex:1;display:flex;flex-direction:column;min-width:0}@media(max-width:1200px){.left-panel{width:320px}}@media(max-width:900px){.main-content{flex-direction:column}.left-panel{width:100%;height:250px}.right-panel{flex:1}}
