.code-executor-container{display:flex;height:calc(100vh - 100px);min-height:700px;background:#f8fafc;gap:0}.left-sidebar{width:280px;background:linear-gradient(135deg,rgba(102,126,234,0.05) 0,rgba(118,75,162,0.05) 100%);border-right:2px solid rgba(102,126,234,0.2);display:flex;flex-direction:column;overflow:hidden;flex-shrink:0}.sidebar-header{display:flex;justify-content:space-between;align-items:center;padding:16px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:white;flex-wrap:wrap}.sidebar-header h3{margin:0;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-actions{display:flex;gap:8px}.btn-add,.btn-bulk-export,.btn-bulk-import{border:none;color:white;padding:6px 10px;border-radius:6px;cursor:pointer;font-size:13px;transition:all 0.3s}.btn-add{background:rgba(255,255,255,0.2)}.btn-bulk-export{background:rgba(245,158,11,0.3);border:1px solid rgba(245,158,11,0.5)}.btn-bulk-import{background:rgba(34,197,94,0.3);border:1px solid rgba(34,197,94,0.5)}.btn-add:hover{background:rgba(255,255,255,0.3);transform:scale(1.05)}.btn-bulk-export:hover{background:rgba(245,158,11,0.5);border-color:rgba(245,158,11,0.8);transform:scale(1.05);box-shadow:0 2px 8px rgba(245,158,11,0.4)}.btn-bulk-import:hover{background:rgba(34,197,94,0.5);border-color:rgba(34,197,94,0.8);transform:scale(1.05);box-shadow:0 2px 8px rgba(34,197,94,0.4)}.sidebar-search{padding:12px;background:rgba(255,255,255,0.5);border-bottom:1px solid rgba(102,126,234,0.15);position:relative}.sidebar-search input{width:calc(100% - 24px);max-width:100%;padding:8px 32px 8px 12px;border:1px solid rgba(102,126,234,0.2);border-radius:6px;font-size:13px;outline:none;transition:all 0.3s;box-sizing:border-box}.sidebar-search input:focus{border-color:#667eea;box-shadow:0 0 0 3px rgba(102,126,234,0.1)}.search-clear-btn{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:none;background:rgba(102,126,234,0.1);color:#667eea;border-radius:50%;cursor:pointer;font-size:14px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;transition:all 0.2s}.search-clear-btn:hover{background:rgba(102,126,234,0.2)}.code-list{flex:1;overflow-y:auto;padding:8px}.code-item{display:flex;align-items:center;padding:12px;margin-bottom:6px;background:white;border:2px solid rgba(102,126,234,0.1);border-radius:8px;cursor:pointer;transition:all 0.3s;gap:10px}.code-item:hover{border-color:#667eea;box-shadow:0 4px 12px rgba(102,126,234,0.15);transform:translateY(-2px)}.code-item.active{background:linear-gradient(135deg,rgba(102,126,234,0.1) 0,rgba(118,75,162,0.1) 100%);border-color:#667eea;box-shadow:0 4px 12px rgba(102,126,234,0.2)}.code-icon{font-size:24px;flex-shrink:0}.code-info{flex:1;min-width:0}.code-name{font-size:13px;font-weight:600;color:#1e293b;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.code-preview{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn-delete{background:rgba(239,68,68,0.1);border:none;color:#ef4444;padding:4px 8px;border-radius:4px;cursor:pointer;font-size:12px;opacity:0;transition:all 0.3s;flex-shrink:0}.code-item:hover .btn-delete{opacity:1}.btn-delete:hover{background:#ef4444;color:white}.sidebar-resize-divider{width:8px;background:linear-gradient(180deg,rgba(102,126,234,0.1) 0,rgba(118,75,162,0.1) 100%);cursor:ew-resize;display:flex;align-items:center;justify-content:center;transition:background 0.3s;position:relative;z-index:10;flex-shrink:0}.sidebar-resize-divider:hover{background:linear-gradient(180deg,rgba(102,126,234,0.2) 0,rgba(118,75,162,0.2) 100%)}.sidebar-resize-divider.dragging{background:linear-gradient(180deg,#667eea 0,#764ba2 100%)}.sidebar-resize-divider .resize-handle{writing-mode:vertical-lr;transform:rotate(90deg);color:#94a3b8;font-size:12px;user-select:none;pointer-events:none}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.top-toolbar{display:flex;justify-content:space-between;padding:8px 12px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);flex-wrap:wrap;gap:8px;flex-shrink:0}.toolbar-group{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.toolbar-btn{padding:6px 10px;background:rgba(255,255,255,0.95);border:none;border-radius:4px;cursor:pointer;font-size:12px;font-weight:500;color:#667eea;transition:all 0.3s;white-space:nowrap}.toolbar-btn:hover{background:#fff;transform:translateY(-1px);box-shadow:0 3px 8px rgba(0,0,0,0.15)}.toolbar-btn.ai-btn{background:linear-gradient(135deg,#10b981 0,#059669 100%);color:white;font-weight:600}.toolbar-btn.ai-btn:hover{background:linear-gradient(135deg,#059669 0,#047857 100%)}.toolbar-btn-small{padding:0 10px;background:rgba(255,255,255,0.2);color:#fff;border:1px solid rgba(255,255,255,0.3);border-radius:4px;cursor:pointer;font-size:11px;white-space:nowrap;height:28px;line-height:26px;display:inline-flex;align-items:center;box-sizing:border-box}.toolbar-btn-small:hover{background:rgba(255,255,255,0.3)}.dark-mode-btn{font-size:16px;transition:all 0.3s}.dark-mode-btn:hover{transform:scale(1.1)}body.dark-mode .dark-mode-btn{background:linear-gradient(135deg,#fbbf24 0,#f59e0b 100%);border-color:rgba(251,191,36,0.5);box-shadow:0 0 12px rgba(251,191,36,0.4)}.editor-panel{background:white;display:flex;flex-direction:column;flex-shrink:0;border-bottom:1px solid rgba(102,126,234,0.08)}.editor-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:2px solid #e2e8f0;gap:12px;flex-wrap:wrap}.editor-header h3{margin:0;font-size:16px;font-weight:600;color:#1e293b}.editor-tabs{display:flex;gap:4px}.editor-tab{padding:8px 16px;font-size:13px;font-weight:600;color:#64748b;cursor:pointer;border-bottom:3px solid transparent;transition:all 0.3s;border-radius:4px 4px 0 0}.editor-tab:hover{color:#667eea;background:rgba(102,126,234,0.05)}.editor-tab.active{color:#667eea;border-bottom-color:#667eea;background:rgba(102,126,234,0.08)}.editor-actions{display:flex;gap:8px;flex-wrap:wrap}.btn-format,.btn-run,.btn-save,.btn-save-as{padding:8px 16px;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:600;transition:all 0.3s;white-space:nowrap}.btn-format{background:linear-gradient(135deg,#8b5cf6 0,#7c3aed 100%);color:white}.btn-run{background:linear-gradient(135deg,#10b981 0,#059669 100%);color:white}.btn-save{background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:white}.btn-save-as{background:linear-gradient(135deg,#f59e0b 0,#d97706 100%);color:white}.btn-format:hover,.btn-run:hover,.btn-save:hover,.btn-save-as:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.2)}.editor-content{position:relative;flex:1;overflow:hidden}.editor-tab-content{display:none;height:100%}.editor-tab-content.active{display:block}.code-textarea{width:100%;height:100%;padding:16px;border:none;outline:none;font-family:'Courier New','Consolas',monospace;font-size:14px;line-height:1.6;resize:none;background:#f8fafc;color:#1e293b;box-sizing:border-box}.code-textarea:focus{background:#fff;outline:2px solid #667eea;outline-offset:-2px}.code-textarea.with-line-numbers{padding-left:50px;background:linear-gradient(to right,#f8fafc 40px,transparent 40px),repeating-linear-gradient(#f8fafc 0,#f8fafc 20px,#e2e8f0 20px,#e2e8f0 21px)}body.dark-mode .code-textarea.with-line-numbers{background:linear-gradient(to right,#1e293b 40px,#0f172a 40px),repeating-linear-gradient(#1e293b 0,#1e293b 20px,#334155 20px,#334155 21px) !important}body.dark-mode .code-textarea:focus{background:#0f172a;outline-color:#a5b4fc}.editor-status{display:flex;gap:16px;padding:8px 16px;background:#f1f5f9;border-top:1px solid #e2e8f0;font-size:12px;color:#64748b}.editor-status .status-item{display:flex;gap:4px;align-items:center}.editor-status .status-item label{color:#64748b;cursor:pointer;transition:color 0.2s}.editor-status .status-item label:hover{color:#667eea}.resize-divider{height:8px;background:linear-gradient(135deg,rgba(102,126,234,0.1) 0,rgba(118,75,162,0.1) 100%);cursor:ns-resize;display:flex;align-items:center;justify-content:center;transition:background 0.3s;position:relative;z-index:10}.resize-divider:hover{background:linear-gradient(135deg,rgba(102,126,234,0.2) 0,rgba(118,75,162,0.2) 100%)}.resize-divider.dragging{background:linear-gradient(135deg,#667eea 0,#764ba2 100%)}.resize-handle{color:#94a3b8;font-size:12px;user-select:none;pointer-events:none}.preview-panel{background:white;display:flex;flex-direction:column;flex:1;overflow:hidden}.preview-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:linear-gradient(135deg,rgba(102,126,234,0.08) 0,rgba(118,75,162,0.08) 100%);border-bottom:2px solid #e2e8f0;gap:12px;flex-wrap:wrap}.preview-header h3{margin:0;font-size:16px;color:#1e293b}.preview-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.btn-refresh,.btn-clear-console,.btn-open-new{padding:6px 12px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);border:none;border-radius:4px;color:white;font-size:12px;font-weight:600;cursor:pointer;transition:all 0.3s;white-space:nowrap}.btn-refresh:hover,.btn-clear-console:hover,.btn-open-new:hover{transform:translateY(-1px);box-shadow:0 3px 8px rgba(102,126,234,0.3)}.device-selector{padding:6px 12px;border:2px solid rgba(102,126,234,0.2);border-radius:4px;font-size:12px;font-weight:600;color:#667eea;background:white;cursor:pointer;outline:none;transition:all 0.3s}.device-selector:hover{border-color:#667eea;box-shadow:0 0 0 3px rgba(102,126,234,0.1)}.device-selector:focus{border-color:#667eea;box-shadow:0 0 0 3px rgba(102,126,234,0.1)}.preview-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.preview-frame-wrapper{flex:1;background:white;border:1px solid #e2e8f0;margin:0;overflow:hidden}.preview-frame{width:100%;height:100%;border:none;background:white}.preview-frame.tablet{max-width:768px;margin:0 auto;border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0}.preview-frame.mobile{max-width:375px;margin:0 auto;border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0}.console-panel{background:#1e293b;color:#e2e8f0;border-top:2px solid #334155;display:flex;flex-direction:column;max-height:200px;min-height:40px;transition:max-height 0.3s}.console-panel.collapsed{max-height:40px}.console-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#0f172a;font-size:13px;font-weight:600;cursor:pointer}.console-toggle{background:none;border:none;color:#94a3b8;cursor:pointer;font-size:12px;padding:4px;transition:all 0.3s}.console-toggle:hover{color:#e2e8f0}.console-panel.collapsed .console-toggle{transform:rotate(-90deg)}.console-content{flex:1;overflow-y:auto;padding:8px 12px;font-family:'Courier New',monospace;font-size:12px;line-height:1.6}.console-message{padding:4px 0;border-bottom:1px solid #334155}.console-message:last-child{border-bottom:none}.console-message.console-log{color:#e2e8f0}.console-message.console-info{color:#60a5fa}.console-message.console-warn{color:#fbbf24}.console-message.console-error{color:#f87171}.status-bar{display:flex;justify-content:space-between;padding:8px 16px;background:linear-gradient(135deg,rgba(102,126,234,0.05) 0,rgba(118,75,162,0.05) 100%);border-top:2px solid rgba(102,126,234,0.2);font-size:12px;color:#64748b;flex-wrap:wrap;gap:16px}.status-bar .status-item{display:flex;gap:6px}.status-label{font-weight:600}.status-value{color:#667eea;font-weight:500}.modal-panel{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn 0.3s}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.modal-content{background:white;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,0.3);max-width:90%;max-height:90%;overflow:hidden;display:flex;flex-direction:column;animation:slideUp 0.3s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@keyframes slideUp{from{transform:translate(-50%,-40%);opacity:0}to{transform:translate(-50%,-50%);opacity:1}}.template-modal{width:700px;max-height:80vh}.history-modal{width:700px;min-height:400px}.find-replace-modal{width:550px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:white}.modal-header h3{margin:0;font-size:16px}.btn-close{background:rgba(255,255,255,0.2);border:none;color:white;font-size:20px;width:32px;height:32px;border-radius:50%;cursor:pointer;transition:all 0.3s}.btn-close:hover{background:rgba(255,255,255,0.3);transform:rotate(90deg)}.modal-body{flex:1;overflow-y:auto;padding:16px;min-height:200px}.template-categories{display:flex;flex-direction:column;gap:16px}.template-category h4{margin:0 0 8px 0;font-size:14px;color:#1e293b;font-weight:600}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.template-card{background:white;border:2px solid rgba(102,126,234,0.1);border-radius:8px;padding:12px;cursor:pointer;transition:all 0.3s;text-align:center}.template-card:hover{border-color:#667eea;box-shadow:0 4px 12px rgba(102,126,234,0.2);transform:translateY(-2px)}.template-icon{font-size:36px;margin-bottom:8px}.template-name{font-size:13px;font-weight:600;color:#1e293b;margin-bottom:0}.template-desc{font-size:11px;color:#64748b}.shortcut-modal{width:650px;max-width:90%}.shortcut-categories{display:flex;flex-direction:column;gap:20px}.shortcut-category{background:linear-gradient(135deg,rgba(102,126,234,0.03) 0,rgba(118,75,162,0.03) 100%);border-radius:12px;padding:16px;border:1px solid rgba(102,126,234,0.1)}.shortcut-category-title{margin:0 0 12px 0;font-size:15px;font-weight:600;color:#667eea;display:flex;align-items:center;gap:6px}.shortcut-list{display:flex;flex-direction:column;gap:8px}.shortcut-item{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:white;border-radius:8px;border:1px solid #e2e8f0;transition:all 0.2s}.shortcut-item:hover{border-color:#667eea;background:linear-gradient(135deg,rgba(102,126,234,0.05) 0,rgba(118,75,162,0.05) 100%);transform:translateX(4px);box-shadow:0 2px 8px rgba(102,126,234,0.15)}.shortcut-info{display:flex;align-items:center;gap:10px}.shortcut-icon{font-size:18px;width:24px;text-align:center}.shortcut-desc{font-size:14px;color:#475569;font-weight:500}.shortcut-key{padding:6px 12px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:white;border-radius:6px;font-size:12px;font-weight:600;font-family:'Consolas','Monaco','Courier New',monospace;letter-spacing:0.5px;box-shadow:0 2px 4px rgba(102,126,234,0.3);border:none;white-space:nowrap}.history-list{display:flex;flex-direction:column;gap:12px}.history-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background:linear-gradient(135deg,rgba(102,126,234,0.05) 0,rgba(118,75,162,0.05) 100%);border:2px solid rgba(102,126,234,0.15);border-radius:8px;cursor:pointer;transition:all 0.3s}.history-item:hover{border-color:#667eea;background:linear-gradient(135deg,rgba(102,126,234,0.1) 0,rgba(118,75,162,0.1) 100%);transform:translateX(4px);box-shadow:0 4px 12px rgba(102,126,234,0.2)}.history-info{flex:1;display:flex;flex-direction:column;gap:6px}.history-time{font-size:14px;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:6px}.history-action{font-size:12px;color:#64748b}.history-restore{padding:8px 16px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);border:none;border-radius:6px;color:white;font-size:13px;font-weight:600;cursor:pointer;transition:all 0.3s;white-space:nowrap}.history-restore:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(102,126,234,0.4)}.history-empty{text-align:center;padding:60px 20px;color:#94a3b8}.history-empty-icon{font-size:48px;margin-bottom:16px}.history-empty-text{font-size:16px;font-weight:500}body.dark-mode .history-item{background:linear-gradient(135deg,rgba(30,41,59,0.5) 0,rgba(15,23,42,0.5) 100%);border-color:rgba(100,116,139,0.3)}body.dark-mode .history-item:hover{border-color:#a5b4fc;background:linear-gradient(135deg,rgba(102,126,234,0.2) 0,rgba(118,75,162,0.2) 100%)}body.dark-mode .history-time{color:#e2e8f0}body.dark-mode .history-action{color:#cbd5e1}.ai-generate-form{display:flex;flex-direction:column;gap:16px}.ai-generate-form label{font-size:14px;font-weight:600;color:#1e293b}.ai-description-input{width:100%;padding:12px;border:2px solid rgba(102,126,234,0.2);border-radius:6px;font-size:14px;font-family:inherit;outline:none;resize:vertical;transition:all 0.3s;box-sizing:border-box}.ai-description-input:focus{border-color:#667eea;box-shadow:0 0 0 3px rgba(102,126,234,0.1)}.ai-options{display:flex;gap:24px}.ai-options label{display:flex;align-items:center;gap:8px;font-weight:normal;cursor:pointer}.btn-ai-generate{padding:12px 24px;background:linear-gradient(135deg,#10b981 0,#059669 100%);border:none;border-radius:6px;color:white;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.3s}.btn-ai-generate:hover{background:linear-gradient(135deg,#059669 0,#047857 100%);transform:translateY(-2px);box-shadow:0 4px 12px rgba(16,185,129,0.3)}body.dark-mode{background:#0f172a;color:#e2e8f0}body.dark-mode .code-executor-container{background:#1e293b}body.dark-mode .left-sidebar{background:linear-gradient(135deg,rgba(30,41,59,0.8) 0,rgba(15,23,42,0.8) 100%);border-right-color:rgba(100,116,139,0.3)}body.dark-mode .sidebar-search{background:rgba(30,41,59,0.5)}body.dark-mode .sidebar-search input{background:#1e293b;color:#e2e8f0;border-color:rgba(100,116,139,0.3)}body.dark-mode .code-item{background:#1e293b;border-color:rgba(100,116,139,0.3)}body.dark-mode .code-item.active{background:linear-gradient(135deg,rgba(102,126,234,0.2) 0,rgba(118,75,162,0.2) 100%)}body.dark-mode .code-name{color:#e2e8f0}body.dark-mode .editor-panel,body.dark-mode .preview-panel{background:#1e293b}body.dark-mode .editor-header,body.dark-mode .preview-header{background:linear-gradient(135deg,rgba(30,41,59,0.5) 0,rgba(15,23,42,0.5) 100%);border-bottom-color:rgba(100,116,139,0.3)}body.dark-mode .editor-header h3,body.dark-mode .preview-header h3{color:#e2e8f0}body.dark-mode .editor-tab{color:#94a3b8}body.dark-mode .editor-tab.active{color:#60a5fa;border-bottom-color:#60a5fa}body.dark-mode .code-textarea{background:#0f172a;color:#e2e8f0}body.dark-mode .editor-status{background:#0f172a;border-top-color:rgba(100,116,139,0.3);color:#cbd5e1}body.dark-mode .editor-status .status-item label{color:#cbd5e1}body.dark-mode .editor-status .status-item label:hover{color:#a5b4fc}body.dark-mode .preview-frame-wrapper{background:#0f172a;border-color:rgba(100,116,139,0.3)}body.dark-mode .preview-frame{background:#0f172a}body.dark-mode .status-bar{background:linear-gradient(135deg,rgba(30,41,59,0.5) 0,rgba(15,23,42,0.5) 100%);border-top-color:rgba(100,116,139,0.3);color:#cbd5e1}body.dark-mode .status-bar .status-value{color:#a5b4fc}body.dark-mode .modal-content{background:#1e293b}body.dark-mode .template-card{background:#0f172a;border-color:rgba(100,116,139,0.3)}body.dark-mode .template-name{color:#e2e8f0}body.dark-mode .shortcut-category{background:linear-gradient(135deg,rgba(30,41,59,0.5) 0,rgba(15,23,42,0.5) 100%);border-color:rgba(100,116,139,0.3)}body.dark-mode .shortcut-category-title{color:#a5b4fc}body.dark-mode .shortcut-item{background:#1e293b;border-color:rgba(100,116,139,0.3)}body.dark-mode .shortcut-item:hover{border-color:#a5b4fc;background:linear-gradient(135deg,rgba(102,126,234,0.15) 0,rgba(118,75,162,0.15) 100%)}body.dark-mode .shortcut-desc{color:#cbd5e1}body.dark-mode .ai-description-input{background:#0f172a;color:#e2e8f0;border-color:rgba(100,116,139,0.3)}body.dark-mode .device-selector{background:#1e293b;color:#a5b4fc;border-color:rgba(100,116,139,0.5)}body.dark-mode .device-selector:focus{border-color:#a5b4fc;box-shadow:0 0 0 3px rgba(165,180,252,0.2)}body.dark-mode .editor-status{color:#cbd5e1}@media (max-width:768px){.code-executor-container{flex-direction:column}.left-sidebar{width:100%;height:200px;border-right:none;border-bottom:2px solid rgba(102,126,234,0.2)}.sidebar-resize-divider{display:none}.top-toolbar{flex-direction:column}.editor-header{flex-direction:column;align-items:stretch}.editor-actions{justify-content:stretch}.editor-actions button{flex:1}.preview-actions{justify-content:stretch}.template-grid{grid-template-columns:1fr}}body.fullscreen-mode{overflow:hidden}body.fullscreen-mode .code-executor-container{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:9999}body.fullscreen-mode .bar-panel,body.fullscreen-mode .status-bar{display:none}.welcome-guide{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);display:flex;align-items:center;justify-content:center;z-index:10000;opacity:0;transition:opacity 0.3s;backdrop-filter:blur(5px);overflow-y:auto;padding:20px}.welcome-guide.show{opacity:1}.guide-content{background:white;padding:24px;border-radius:16px;max-width:550px;max-height:90vh;width:90%;box-shadow:0 20px 60px rgba(0,0,0,0.3);animation:slideUp 0.4s ease-out;overflow-y:auto;position:relative}.guide-content h3{margin:0 0 16px 0;font-size:20px;color:#1e293b;text-align:center;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;padding-right:30px}.guide-steps{display:grid;gap:12px;margin-bottom:16px}.guide-step{display:flex;align-items:flex-start;gap:10px;padding:12px;background:linear-gradient(135deg,rgba(102,126,234,0.05) 0,rgba(118,75,162,0.05) 100%);border-radius:8px;border-left:3px solid #667eea}.step-num{background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:white;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:bold;flex-shrink:0;font-size:14px}.step-text{flex:1;line-height:1.5;color:#475569;font-size:13px}.step-text strong{color:#1e293b;display:block;margin-bottom:2px;font-size:14px}.guide-tips{background:#fef3c7;border:1px solid #fbbf24;border-radius:8px;padding:12px;margin-bottom:16px}.guide-tips p{margin:0 0 6px 0;color:#78350f;font-size:13px}.guide-tips ul{margin:0;padding-left:18px;color:#92400e;line-height:1.6;font-size:12px}.guide-tips li{margin-bottom:3px}.btn-start{width:100%;padding:12px 24px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:white;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all 0.3s}.btn-start:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(102,126,234,0.4)}.btn-start:active{transform:translateY(0)}.guide-close{position:absolute;top:16px;right:16px;width:32px;height:32px;border:none;background:rgba(0,0,0,0.05);color:#64748b;border-radius:50%;cursor:pointer;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;transition:all 0.2s;padding:0}.guide-close:hover{background:rgba(239,68,68,0.1);color:#dc2626;transform:scale(1.1)}@keyframes slideUp{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}@media (max-width:768px){.guide-content{padding:20px;max-width:95%}.guide-content h3{font-size:18px;margin-bottom:12px}.guide-step{padding:10px}.step-num{width:24px;height:24px;font-size:12px}.step-text{font-size:12px}.step-text strong{font-size:13px}}.editor-content.drag-over{background:linear-gradient(135deg,rgba(102,126,234,0.1) 0,rgba(118,75,162,0.1) 100%);border:2px dashed #667eea;border-radius:8px}.editor-content.drag-over::before{content:'📂 拖放文件到这里';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:24px;color:#667eea;font-weight:bold;z-index:10;pointer-events:none}.code-warning{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b;padding:8px 12px;border-radius:6px;font-size:13px;margin:8px 0;display:flex;align-items:center;gap:8px;animation:slideIn 0.3s}.btn-run.running{background:#94a3b8 !important;cursor:not-allowed;pointer-events:none}.btn-run.running::after{content:'';display:inline-block;width:12px;height:12px;border:2px solid rgba(255,255,255,0.3);border-top-color:white;border-radius:50%;animation:spin 0.6s linear infinite;margin-left:8px}@keyframes spin{to{transform:rotate(360deg)}}[title]:hover::after{display:none}.btn-add,.btn-bulk-export,.btn-bulk-import,.toolbar-btn,.toolbar-btn-small,.btn-delete,.search-clear-btn{position:relative}.editor-tab,.toolbar-btn,.code-item,.template-card{transition:all 0.3s cubic-bezier(0.4,0,0.2,1)}.code-textarea:focus{outline:2px solid #667eea;outline-offset:2px}button:focus-visible{outline:2px solid #667eea;outline-offset:2px}body.dark-mode .welcome-guide{background:rgba(0,0,0,0.85)}body.dark-mode .guide-content{background:#1e293b}body.dark-mode .guide-content h3{color:white}body.dark-mode .guide-close{background:rgba(255,255,255,0.1);color:#94a3b8}body.dark-mode .guide-close:hover{background:rgba(239,68,68,0.2);color:#fca5a5}body.dark-mode .step-text{color:#cbd5e1}body.dark-mode .step-text strong{color:white}body.dark-mode .guide-tips{background:#422006;border-color:#78350f}body.dark-mode .guide-tips p{color:#fbbf24}body.dark-mode .guide-tips ul{color:#fcd34d}body.dark-mode .code-warning{background:#450a0a;border-color:#991b1b;color:#fca5a5}@media (prefers-reduced-motion:reduce){*{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important}}@media print{.toolbar-group,.left-sidebar,.preview-actions,.status-bar{display:none !important}.code-executor-container{height:auto}.editor-content{page-break-inside:avoid}}.context-menu{position:fixed;background:white;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,0.15),0 0 0 1px rgba(0,0,0,0.05);padding:6px 0;z-index:10000;min-width:160px;animation:contextMenuSlideIn 0.15s ease-out}@keyframes contextMenuSlideIn{from{opacity:0;transform:translateY(-5px) scale(0.95)}to{opacity:1;transform:translateY(0) scale(1)}}.context-menu-item{padding:10px 16px;cursor:pointer;display:flex;align-items:center;gap:10px;font-size:14px;color:#1e293b;transition:all 0.15s;user-select:none}.context-menu-item:hover{background:linear-gradient(135deg,rgba(102,126,234,0.1) 0,rgba(118,75,162,0.1) 100%);color:#667eea}.context-menu-item.danger:hover{background:#fef2f2;color:#dc2626}.context-menu-item span{font-size:16px}body.dark-mode .context-menu{background:#1e293b;box-shadow:0 8px 24px rgba(0,0,0,0.4),0 0 0 1px rgba(255,255,255,0.1)}body.dark-mode .context-menu-item{color:#e2e8f0}body.dark-mode .context-menu-item:hover{background:linear-gradient(135deg,rgba(102,126,234,0.2) 0,rgba(118,75,162,0.2) 100%);color:#a5b4fc}body.dark-mode .context-menu-item.danger:hover{background:#450a0a;color:#fca5a5}.code-item{position:relative}.code-item::after{content:'🖉 双击重命名 | 右键菜单';position:absolute;bottom:-30px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,0.8);color:white;padding:6px 12px;border-radius:6px;font-size:11px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity 0.2s;z-index:100}.code-item:hover::after{opacity:1}body.dark-mode .code-item::after{background:rgba(255,255,255,0.9);color:#1e293b}.find-replace-modal{width:550px}.find-replace-form{display:flex;flex-direction:column;gap:20px}.form-row{display:flex;flex-direction:column;gap:8px}.form-row label{font-size:13px;font-weight:600;color:#1e293b}.find-input,.replace-input{width:100%;padding:12px 14px;border:2px solid #e2e8f0;border-radius:8px;font-size:14px;font-family:'Consolas','Monaco',monospace;transition:all 0.3s;box-sizing:border-box}.find-input:focus,.replace-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px rgba(102,126,234,0.15)}.form-row:has(label:not([for])){flex-direction:row;align-items:flex-start;gap:20px;flex-wrap:wrap;background:linear-gradient(135deg,rgba(102,126,234,0.05) 0,rgba(118,75,162,0.05) 100%);padding:12px 16px;border-radius:8px}.form-row label:has(input[type="checkbox"]){font-weight:500;font-size:13px;display:flex;align-items:center;gap:8px;cursor:pointer;color:#475569}.form-row label:has(input[type="checkbox"]):hover{color:#667eea}.form-row input[type="checkbox"]{width:16px;height:16px;cursor:pointer}.find-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:4px}.btn-find,.btn-replace,.btn-replace-all{padding:12px 16px;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.3s}.btn-find{background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:white}.btn-find:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(102,126,234,0.3)}.btn-replace{background:#10b981;color:white}.btn-replace:hover{background:#059669;transform:translateY(-2px);box-shadow:0 4px 12px rgba(16,185,129,0.3)}.btn-replace-all{background:#f59e0b;color:white;grid-column:1 / -1}.btn-replace-all:hover{background:#d97706;transform:translateY(-2px);box-shadow:0 4px 12px rgba(245,158,11,0.3)}.find-result-info{text-align:center;padding:10px;border-radius:8px;font-size:13px;font-weight:600;min-height:24px}body.dark-mode .find-replace-form label{color:#e2e8f0}body.dark-mode .form-row label:has(input[type="checkbox"]){color:#cbd5e1}body.dark-mode .form-row label:has(input[type="checkbox"]):hover{color:#a5b4fc}body.dark-mode .form-row:has(label:not([for])){background:linear-gradient(135deg,rgba(30,41,59,0.5) 0,rgba(15,23,42,0.5) 100%)}body.dark-mode .find-input,body.dark-mode .replace-input{background:#334155;border-color:#475569;color:#e2e8f0}body.dark-mode .find-input:focus,body.dark-mode .replace-input:focus{border-color:#a5b4fc}.btn-font-size{padding:4px 8px;margin:0 2px;border:1px solid #e2e8f0;background:white;border-radius:4px;cursor:pointer;font-size:12px;font-weight:600;color:#667eea;transition:all 0.2s}.btn-font-size:hover{background:linear-gradient(135deg,rgba(102,126,234,0.1) 0,rgba(118,75,162,0.1) 100%);border-color:#667eea;transform:scale(1.05)}body.dark-mode .btn-font-size{background:#334155;border-color:#475569;color:#a5b4fc}body.dark-mode .btn-font-size:hover{background:#475569;border-color:#a5b4fc}