.sidebar{position:fixed;left:0;top:0;width:200px;height:100vh;background:linear-gradient(180deg,#2c3e50,#1a252f);color:#fff;display:flex;flex-direction:column;z-index:100}.sidebar-logo{padding:20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.1)}.logo-icon{font-size:24px}.logo-text{font-size:16px;font-weight:600}.sidebar-nav{flex:1;padding:15px 0;overflow-y:auto}.nav-section{margin-bottom:20px}.nav-section h3{font-size:12px;color:#ffffff80;padding:0 20px;margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}.nav-item{width:100%;display:flex;align-items:center;gap:10px;padding:12px 20px;border:none;background:transparent;color:#fffc;cursor:pointer;transition:all .2s;text-align:left;font-size:14px}.nav-item:hover{background:#ffffff1a;color:#fff}.nav-item.active{background:#3498db4d;color:#fff;border-left:3px solid #3498db}.nav-icon{font-size:18px;width:24px;text-align:center}.nav-text{flex:1}.nav-badge{font-size:10px;padding:2px 6px;border-radius:10px;background:#27ae60}.nav-badge.readonly{background:#7f8c8d}.sidebar-footer{padding:15px 20px;border-top:1px solid rgba(255,255,255,.1);font-size:12px;color:#fff6}.file-importer{margin-bottom:20px}.file-input{display:none}.file-label{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;border:2px dashed #d9d9d9;border-radius:8px;background:#fafafa;cursor:pointer;transition:all .3s}.file-label:hover,.file-importer.dragging .file-label{border-color:#3498db;background:#f0f9ff}.upload-icon{font-size:40px;margin-bottom:10px}.upload-text{font-size:14px;color:#666}.upload-text .link{color:#3498db;text-decoration:underline}.upload-hint{font-size:12px;color:#999;margin-top:8px}.file-importer.loading .file-label{pointer-events:none;opacity:.7}.loading-spinner{display:flex;flex-direction:column;align-items:center;gap:10px}.spinner{width:30px;height:30px;border:3px solid #e8e8e8;border-top-color:#3498db;border-radius:50%;animation:spin 1s linear infinite}.error-message{margin-top:10px;padding:10px;background:#fff2f0;border:1px solid #ffccc7;border-radius:4px;color:#ff4d4f;font-size:14px}.toolbar{display:flex;align-items:center;gap:10px;padding:10px 15px;background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-bottom:20px}.toolbar-group{display:flex;gap:5px}.toolbar-divider{width:1px;height:24px;background:#e8e8e8;margin:0 5px}.toolbar-btn{display:flex;align-items:center;gap:5px;padding:8px 12px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;color:#333;font-size:13px;cursor:pointer;transition:all .2s}.toolbar-btn:hover:not(:disabled){border-color:#3498db;color:#3498db}.toolbar-btn:disabled{opacity:.5;cursor:not-allowed}.toolbar-btn.primary{background:#3498db;border-color:#3498db;color:#fff}.toolbar-btn.primary:hover:not(:disabled){background:#2980b9;border-color:#2980b9;color:#fff}.excel-editor{height:100%;display:flex;flex-direction:column}.sheet-tabs{display:flex;padding:10px 10px 0;background:#f5f5f5;border-bottom:1px solid #e8e8e8}.sheet-tab{padding:8px 16px;border:1px solid #d9d9d9;border-bottom:none;background:#fff;margin-right:2px;cursor:pointer;border-radius:4px 4px 0 0;font-size:13px}.sheet-tab.active{background:#fff;border-bottom:1px solid white;margin-bottom:-1px;font-weight:500}.excel-toolbar{padding:10px;background:#fafafa;border-bottom:1px solid #e8e8e8;display:flex;gap:10px}.excel-toolbar button{padding:6px 12px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;cursor:pointer;font-size:12px}.excel-toolbar button:hover{border-color:#3498db;color:#3498db}.excel-table-container{flex:1;overflow:auto}.excel-table{border-collapse:collapse;font-size:13px;min-width:100%}.excel-table th,.excel-table td{border:1px solid #e8e8e8;padding:0;min-width:80px;height:28px}.excel-table .row-header,.excel-table .col-header{background:#f5f5f5;color:#666;font-weight:400;text-align:center;min-width:40px;position:sticky}.excel-table .col-header{top:0;z-index:2}.excel-table .row-header{left:0;z-index:1}.excel-table thead th:first-child{z-index:3}.cell{cursor:cell;padding:4px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.cell:hover{background:#f0f9ff}.cell.editing{padding:0;background:#fff}.cell input{width:100%;height:100%;border:2px solid #3498db;padding:4px 8px;font-size:13px;outline:none;box-sizing:border-box}.word-editor{height:100%;display:flex;flex-direction:column}.word-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;background:#f9f9f9;border-bottom:1px solid #e8e8e8}.word-toolbar .toolbar-group{display:flex;gap:2px}.word-toolbar .toolbar-divider{width:1px;height:24px;background:#ddd;margin:0 4px}.word-toolbar button{width:32px;height:32px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}.word-toolbar button:hover{background:#f0f0f0;border-color:#3498db}.word-toolbar select{height:32px;padding:0 8px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;cursor:pointer;font-size:13px}.word-toolbar input[type=color]{width:32px;height:32px;padding:2px;border:1px solid #d9d9d9;border-radius:4px;cursor:pointer}.word-content{flex:1;padding:40px 60px;overflow-y:auto;background:#fff;min-height:500px;font-size:14px;line-height:1.8;outline:none}.word-content:focus{box-shadow:inset 0 0 0 2px #3498db33}.word-content h1{font-size:28px;margin:20px 0 10px}.word-content h2{font-size:24px;margin:18px 0 8px}.word-content h3{font-size:20px;margin:16px 0 6px}.word-content h4{font-size:16px;margin:14px 0 4px}.word-content p{margin:10px 0}.word-content blockquote{margin:10px 0;padding:10px 20px;border-left:4px solid #3498db;background:#f8f9fa}.word-content ul,.word-content ol{margin:10px 0;padding-left:30px}.word-content img{max-width:100%;height:auto}.word-content a{color:#3498db}.word-content hr{margin:20px 0;border:none;border-top:1px solid #e8e8e8}.markdown-editor{height:100%;display:flex;flex-direction:column}.md-toolbar{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f9f9f9;border-bottom:1px solid #e8e8e8}.md-toolbar-left{display:flex;align-items:center;gap:2px;flex-wrap:wrap}.md-toolbar-right{display:flex;gap:4px}.md-toolbar-btn{width:32px;height:32px;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center}.md-toolbar-btn:hover{background:#e8e8e8;border-color:#d9d9d9}.md-toolbar .toolbar-divider{width:1px;height:20px;background:#ddd;margin:0 6px}.view-btn{padding:6px 12px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;cursor:pointer;font-size:12px}.view-btn:hover{border-color:#3498db}.view-btn.active{background:#3498db;border-color:#3498db;color:#fff}.md-content{flex:1;display:flex;overflow:hidden}.md-content.edit .md-edit-pane,.md-content.preview .md-preview-pane{width:100%}.md-content.split .md-edit-pane,.md-content.split .md-preview-pane{width:50%}.md-edit-pane{border-right:1px solid #e8e8e8}.md-editor-textarea{width:100%;height:100%;padding:20px;border:none;resize:none;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px;line-height:1.6;outline:none;background:#fafafa}.md-preview-pane{overflow-y:auto;background:#fff}.md-preview-content{padding:20px 30px;font-size:14px;line-height:1.8}.md-preview-content h1{font-size:28px;margin:20px 0 10px;padding-bottom:10px;border-bottom:2px solid #e8e8e8}.md-preview-content h2{font-size:24px;margin:18px 0 8px;padding-bottom:8px;border-bottom:1px solid #e8e8e8}.md-preview-content h3{font-size:20px;margin:16px 0 6px}.md-preview-content h4,.md-preview-content h5,.md-preview-content h6{font-size:16px;margin:14px 0 4px}.md-preview-content p{margin:10px 0}.md-preview-content blockquote{margin:10px 0;padding:10px 20px;border-left:4px solid #3498db;background:#f8f9fa;color:#666}.md-preview-content code{padding:2px 6px;background:#f5f5f5;border-radius:4px;font-family:Monaco,Menlo,monospace;font-size:13px;color:#c7254e}.md-preview-content pre{margin:10px 0;padding:15px;background:#2d2d2d;border-radius:6px;overflow-x:auto}.md-preview-content pre code{padding:0;background:transparent;color:#f8f8f2}.md-preview-content ul,.md-preview-content ol{margin:10px 0;padding-left:30px}.md-preview-content li{margin:5px 0}.md-preview-content table{width:100%;border-collapse:collapse;margin:15px 0}.md-preview-content th,.md-preview-content td{padding:10px 15px;border:1px solid #e8e8e8;text-align:left}.md-preview-content th{background:#f5f5f5;font-weight:600}.md-preview-content img{max-width:100%;height:auto}.md-preview-content a{color:#3498db}.md-preview-content hr{margin:20px 0;border:none;border-top:1px solid #e8e8e8}.pdf-viewer{height:100%;display:flex;flex-direction:column;background:#525659}.pdf-toolbar{display:flex;justify-content:center;align-items:center;gap:30px;padding:12px 20px;background:#323639;flex-shrink:0}.pdf-toolbar .toolbar-group{display:flex;align-items:center;gap:8px}.pdf-toolbar button{padding:8px 16px;border:none;border-radius:4px;background:#4a4d50;color:#fff;cursor:pointer;font-size:13px;transition:background .2s}.pdf-toolbar button:hover:not(:disabled){background:#5a5d60}.pdf-toolbar button:disabled{opacity:.5;cursor:not-allowed}.page-info,.zoom-info{color:#fff;font-size:14px;min-width:60px;text-align:center}.page-label{color:#ffffffb3;font-size:13px}.page-input{width:60px;padding:6px 10px;border:none;border-radius:4px;text-align:center;font-size:14px}.pdf-container{flex:1;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:20px}.pdf-canvas-wrapper{box-shadow:0 4px 20px #0000004d;background:#fff}.pdf-canvas{display:block}.pdf-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#fff;height:100%}.pdf-loading .spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}.pdf-error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#fff;text-align:center;padding:40px}.pdf-error .error-icon{font-size:48px;margin-bottom:20px}.pdf-error p{margin:10px 0;font-size:16px}.pdf-error .error-hint{color:#fff9;font-size:14px}.ppt-viewer{height:100%;display:flex;background:#1e1e1e}.ppt-viewer.fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999}.ppt-main{flex:1;display:flex;flex-direction:column}.ppt-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 20px;background:#2d2d2d;border-bottom:1px solid #3d3d3d}.ppt-toolbar button{padding:8px 16px;border:none;border-radius:4px;background:#4a4a4a;color:#fff;cursor:pointer;font-size:13px;transition:all .2s}.ppt-toolbar button:hover:not(:disabled){background:#5a5a5a}.ppt-toolbar button:disabled{opacity:.4;cursor:not-allowed}.slide-counter{color:#fff;font-size:14px;padding:0 10px;min-width:80px;text-align:center}.ppt-slide-area{flex:1;display:flex;align-items:center;justify-content:center;padding:30px;overflow:auto}.ppt-slide{width:100%;max-width:960px;aspect-ratio:16/9;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:8px;box-shadow:0 20px 60px #00000080;padding:50px 60px;display:flex;flex-direction:column;overflow:auto}.slide-title{font-size:42px;font-weight:700;color:#fff;margin-bottom:30px;text-shadow:0 2px 4px rgba(0,0,0,.2)}.slide-content{flex:1}.content-item{display:flex;align-items:flex-start;gap:15px;margin:15px 0;font-size:24px;color:#fffffff2;line-height:1.5}.content-item .bullet{color:#ffd93d;font-size:28px;line-height:1.3}.content-item .number{color:#ffd93d;font-weight:600;min-width:30px}.content-item.plain{padding-left:0}.slide-images{display:flex;flex-wrap:wrap;gap:15px;margin-top:20px}.slide-images img{max-width:100%;max-height:200px;border-radius:8px;box-shadow:0 4px 12px #0000004d}.slide-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff9}.slide-empty p{margin:5px 0}.slide-empty .hint{font-size:14px;opacity:.6}.ppt-hint{padding:10px;text-align:center;color:#fff6;font-size:12px;background:#252525}.ppt-sidebar{width:200px;background:#252525;border-left:1px solid #3d3d3d;display:flex;flex-direction:column}.sidebar-title{padding:15px;color:#fffc;font-size:14px;font-weight:500;border-bottom:1px solid #3d3d3d}.thumbnails-scroll{flex:1;overflow-y:auto;padding:15px}.thumbnail{position:relative;margin-bottom:15px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:4px;aspect-ratio:16/9;cursor:pointer;transition:all .2s;overflow:hidden}.thumbnail:hover{transform:scale(1.02);box-shadow:0 4px 12px #0006}.thumbnail.active{outline:3px solid #3498db;outline-offset:2px}.thumbnail-number{position:absolute;top:5px;left:5px;width:22px;height:22px;background:#000000b3;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;border-radius:3px;z-index:1}.thumbnail-preview{width:100%;height:100%;padding:10px;display:flex;align-items:center;justify-content:center}.preview-title{font-size:10px;color:#fff;text-align:center;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.preview-empty{font-size:10px;color:#ffffff80}.ppt-empty{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#ffffffb3}.ppt-empty .empty-icon{font-size:64px;margin-bottom:20px}.ppt-empty p{margin:10px 0;font-size:18px}.ppt-empty .empty-hint{font-size:14px;color:#fff6;text-align:center;max-width:400px;line-height:1.6}.ppt-viewer.fullscreen .ppt-slide{max-width:1200px}.ppt-viewer.fullscreen .slide-title{font-size:56px}.ppt-viewer.fullscreen .content-item{font-size:32px}.epub-viewer{height:100%;display:flex;background:#f5f5f5}.epub-sidebar{width:280px;background:#2c3e50;color:#fff;display:flex;flex-direction:column;overflow:hidden}.epub-meta{padding:20px;text-align:center;border-bottom:1px solid rgba(255,255,255,.1)}.epub-cover{width:120px;height:auto;border-radius:4px;box-shadow:0 4px 12px #0000004d;margin-bottom:15px}.epub-title{font-size:16px;font-weight:600;margin:0 0 8px;line-height:1.4}.epub-author{font-size:13px;color:#fff9;margin:0}.epub-toc{flex:1;overflow-y:auto;padding:15px 0}.epub-toc h3{font-size:12px;color:#ffffff80;padding:0 20px;margin:0 0 10px;text-transform:uppercase;letter-spacing:1px}.epub-toc ul{list-style:none;padding:0;margin:0}.epub-toc li{display:flex;align-items:center;gap:10px;padding:10px 20px;cursor:pointer;transition:all .2s;font-size:13px;color:#fffc}.epub-toc li:hover{background:#ffffff1a}.epub-toc li.active{background:#3498db4d;border-left:3px solid #3498db}.chapter-num{width:24px;height:24px;background:#ffffff1a;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0}.chapter-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.epub-main{flex:1;display:flex;flex-direction:column;overflow:hidden}.epub-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#fff;border-bottom:1px solid #e8e8e8;flex-shrink:0}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:10px}.epub-toolbar button{padding:8px 16px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;cursor:pointer;font-size:13px;transition:all .2s}.epub-toolbar button:hover:not(:disabled){border-color:#3498db;color:#3498db}.epub-toolbar button:disabled{opacity:.5;cursor:not-allowed}.chapter-info{font-size:14px;color:#666;min-width:80px;text-align:center}.font-label{font-size:13px;color:#666}.font-size{font-size:13px;color:#333;min-width:50px;text-align:center}.epub-content-wrapper{flex:1;overflow-y:auto;background:#fafafa}.epub-content{max-width:800px;margin:0 auto;padding:40px 60px;background:#fff;min-height:100%;box-shadow:0 0 20px #0000000d}.content-title{font-size:1.8em;font-weight:600;margin:0 0 30px;padding-bottom:20px;border-bottom:2px solid #e8e8e8;color:#333}.content-body{line-height:1.8;color:#333}.content-body p{margin:1em 0;text-indent:2em}.content-body h1,.content-body h2,.content-body h3{margin:1.5em 0 .8em;text-indent:0}.content-body img{max-width:100%;height:auto;display:block;margin:20px auto}.content-body a{color:#3498db}.content-body blockquote{margin:1em 0;padding:15px 20px;border-left:4px solid #3498db;background:#f8f9fa;text-indent:0}.epub-footer{padding:10px;text-align:center;font-size:12px;color:#999;background:#fff;border-top:1px solid #e8e8e8;flex-shrink:0}.epub-loading,.epub-error{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#666}.epub-loading .spinner{width:40px;height:40px;border:3px solid #e8e8e8;border-top-color:#3498db;border-radius:50%;animation:spin 1s linear infinite}.epub-error .error-icon{font-size:48px}@keyframes spin{to{transform:rotate(360deg)}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:#f5f7fa}.app{display:flex;min-height:100vh}.main-content{flex:1;display:flex;flex-direction:column;padding:20px;margin-left:200px}.header{display:flex;align-items:center;gap:20px;margin-bottom:20px}.header h1{font-size:24px;color:#333}.file-name{font-size:14px;color:#666;background:#e8e8e8;padding:4px 12px;border-radius:4px}.modified{color:#ff6b6b;font-weight:700}.editor-container{flex:1;background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;overflow:hidden;min-height:500px}.empty-state{display:flex;align-items:center;justify-content:center;height:100%;min-height:500px;color:#999;font-size:16px}
