.title-bar{display:flex;justify-content:space-between;align-items:center;height:32px;background:#2b579a;color:#fff;padding:0 8px;-webkit-user-select:none;user-select:none;font-size:12px}.title-bar-left{display:flex;align-items:center;gap:8px}.word-icon{width:20px;height:20px;background:#fff;color:#2b579a;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;border-radius:2px}.title-text{font-size:12px}.title-bar-controls{display:flex;gap:1px}.title-btn{width:45px;height:32px;border:none;background:transparent;color:#fff;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.title-btn:hover{background:#ffffff1a}.title-btn.close:hover{background:#e81123}.ribbon{background:#f3f3f3;border-bottom:1px solid #d1d1d1}.ribbon-tabs{display:flex;background:#fff;border-bottom:1px solid #d1d1d1;padding:0 10px}.ribbon-tab{padding:8px 16px;cursor:pointer;font-size:13px;color:#333;transition:background .2s;border-bottom:2px solid transparent}.ribbon-tab:hover{background:#e6e6e6}.ribbon-tab.active{border-bottom-color:#2b579a;background:#f3f3f3}.ribbon-tab.file-tab{background:#2b579a;color:#fff;font-weight:600}.ribbon-tab.file-tab:hover{background:#204872}.ribbon-tab.help-tab{margin-left:auto;color:#2b579a}.ribbon-content{display:flex;padding:8px 10px;gap:15px;overflow-x:auto;align-items:flex-start}.ribbon-group{display:flex;flex-direction:column;border-right:1px solid #d1d1d1;padding-right:15px;min-height:80px}.ribbon-group:last-child{border-right:none}.ribbon-group-wide{min-width:280px}.ribbon-group-styles{min-width:400px}.ribbon-group-header{font-size:11px;color:#666;margin-bottom:5px;text-align:center;white-space:nowrap}.ribbon-buttons{display:flex;gap:5px;align-items:center}.clipboard-group{display:flex;gap:8px}.ribbon-btn-large{display:flex;flex-direction:column;align-items:center;padding:10px 14px;border:1px solid transparent;background:transparent;cursor:pointer;border-radius:2px;transition:all .2s;min-height:65px}.ribbon-btn-large:hover{background:#e6e6e6;border-color:#d1d1d1}.ribbon-btn-column{display:flex;flex-direction:column;gap:4px}.ribbon-btn{display:flex;flex-direction:column;align-items:center;padding:8px 12px;border:1px solid transparent;background:transparent;cursor:pointer;border-radius:2px;transition:all .2s}.ribbon-btn:hover{background:#e6e6e6;border-color:#d1d1d1}.ribbon-btn.disabled{opacity:.4;cursor:not-allowed}.ribbon-btn.disabled:hover{background:transparent;border-color:transparent}.btn-icon{font-size:24px;margin-bottom:4px}.btn-label{font-size:11px;color:#333}.ribbon-btn-small{padding:6px 10px;border:1px solid transparent;background:transparent;cursor:pointer;border-radius:2px;font-size:12px;transition:all .2s;white-space:nowrap}.ribbon-btn-small:hover{background:#e6e6e6;border-color:#d1d1d1}.ribbon-select{padding:4px 8px;border:1px solid #d1d1d1;border-radius:2px;font-size:12px;background:#fff;cursor:pointer;min-width:120px}.ribbon-select-size{width:50px;padding:4px;border:1px solid #d1d1d1;border-radius:2px;font-size:12px;background:#fff;cursor:pointer}.ribbon-btn-icon{padding:4px 6px;border:1px solid transparent;background:transparent;cursor:pointer;border-radius:2px;font-size:13px;transition:all .2s;min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center}.ribbon-btn-icon:hover{background:#e6e6e6;border-color:#d1d1d1}.ribbon-btn-tiny{padding:2px 4px;border:1px solid transparent;background:transparent;cursor:pointer;border-radius:2px;font-size:10px;transition:all .2s;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center}.ribbon-btn-tiny:hover{background:#e6e6e6;border-color:#d1d1d1}.ribbon-font-controls{display:flex;flex-direction:column;gap:4px}.font-row{display:flex;gap:4px;align-items:center}.paragraph-group{display:flex;flex-direction:column;gap:4px}.paragraph-row{display:flex;gap:4px;align-items:center}.styles-group{display:flex;gap:6px;overflow-x:auto}.style-btn{display:flex;flex-direction:column;align-items:center;padding:8px 10px;border:1px solid #d1d1d1;background:#fff;cursor:pointer;border-radius:2px;transition:all .2s;min-width:80px;min-height:60px;gap:4px}.style-btn:hover{background:#e6e6e6;border-color:#2b579a}.style-label{font-size:10px;color:#666;white-space:nowrap}@media (max-width: 1200px){.ribbon-content{gap:10px}.ribbon-group-wide{min-width:200px}.ribbon-group-styles{min-width:300px}}@media (max-width: 768px){.ribbon-tabs{overflow-x:auto;padding:0 5px}.ribbon-tab{padding:6px 12px;font-size:12px}.ribbon-content{gap:8px;padding:5px}.ribbon-group{padding-right:10px;min-height:60px}.ribbon-group-wide,.ribbon-group-styles{min-width:auto}.style-btn{min-width:60px;min-height:50px;padding:6px 8px}}.status-bar{display:flex;justify-content:space-between;align-items:center;height:32px;background:#f3f3f3;border-top:1px solid #d1d1d1;padding:0 15px;font-size:12px;color:#333;-webkit-user-select:none;user-select:none}.status-left{display:flex;gap:10px;align-items:center}.status-item{cursor:default;font-weight:500}.status-separator{color:#999}.status-right{display:flex;gap:10px;align-items:center}.progress-label{font-size:11px;color:#666;white-space:nowrap}.progress-btn{width:28px;height:28px;border:1px solid #d1d1d1;background:#fff;cursor:pointer;border-radius:3px;font-size:10px;display:flex;align-items:center;justify-content:center;transition:all .2s;color:#2b579a}.progress-btn:hover{background:#2b579a;color:#fff;border-color:#2b579a}.progress-btn:active{transform:scale(.95)}.progress-slider{width:200px;height:24px;position:relative;display:flex;align-items:center}.progress-slider input[type=range]{width:100%;height:8px;background:transparent;outline:none;cursor:pointer;position:relative;z-index:2;-webkit-appearance:none}.progress-slider input[type=range]::-webkit-slider-track{width:100%;height:8px;background:#e0e0e0;border-radius:4px}.progress-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;background:#2b579a;border-radius:50%;cursor:pointer;border:2px solid white;box-shadow:0 2px 4px #0003;transition:all .2s}.progress-slider input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2);background:#1f3f6f}.progress-slider input[type=range]::-moz-range-track{width:100%;height:8px;background:#e0e0e0;border-radius:4px}.progress-slider input[type=range]::-moz-range-thumb{width:16px;height:16px;background:#2b579a;border-radius:50%;cursor:pointer;border:2px solid white;box-shadow:0 2px 4px #0003}.progress-fill{position:absolute;left:0;top:50%;transform:translateY(-50%);height:8px;background:linear-gradient(90deg,#2b579a,#4a7bc5);border-radius:4px;pointer-events:none;transition:width .1s ease-out;z-index:1}.progress-slider.dragging .progress-fill{transition:none}.progress-slider.dragging input[type=range]::-webkit-slider-thumb{transform:scale(1.3);box-shadow:0 4px 8px #0000004d}.reader-view{flex:1;background:#f0f0f0;overflow-y:auto;padding:30px 20px}.document-container{max-width:850px;margin:0 auto;background:#fff;min-height:1100px;box-shadow:0 0 0 1px #0000000d,0 2px 8px #00000014,0 8px 20px #0000000f;border-radius:2px;position:relative}.document-container:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(to right,transparent,#e0e0e0 10%,#e0e0e0 90%,transparent)}.document-content{padding:96px}.text-content{font-family:Calibri,Arial,微软雅黑,sans-serif;font-size:16px;line-height:1.8;color:#000;white-space:pre-wrap;word-wrap:break-word;word-break:break-word;position:relative;text-align:justify;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-indent:0;letter-spacing:.02em}.cursor-blink{display:inline-block;width:2px;height:20px;background:#000;margin-left:2px;animation:blink 1s step-end infinite;vertical-align:text-bottom}@keyframes blink{0%,50%{opacity:1}51%,to{opacity:0}}.reader-view::-webkit-scrollbar{width:12px}.reader-view::-webkit-scrollbar-track{background:#f1f1f1}.reader-view::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:6px}.reader-view::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.decoy-view{flex:1;background:#f0f0f0;overflow-y:auto;padding:30px 20px}.decoy-content{font-family:Calibri,Arial,微软雅黑,sans-serif;font-size:16px;line-height:1.6;color:#000;white-space:pre-wrap;word-wrap:break-word;word-break:break-word;position:relative;text-align:left;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.decoy-view::-webkit-scrollbar{width:12px}.decoy-view::-webkit-scrollbar-track{background:#f1f1f1}.decoy-view::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:6px}.decoy-view::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.file-import{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:40px 20px;color:#fff}.import-header{text-align:center;margin-bottom:40px;position:relative;display:flex;flex-direction:column;align-items:center}.word-logo{width:60px;height:60px;background:#fff;color:#2b579a;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:36px;font-weight:700;margin-bottom:20px;box-shadow:0 4px 12px #0003}.header-content{text-align:center}.import-header h1{font-size:32px;margin:0 0 10px;font-weight:600}.subtitle{font-size:16px;opacity:.9;margin:0}.settings-btn{position:absolute;top:0;right:0;background:#fff3;border:1px solid rgba(255,255,255,.3);border-radius:8px;padding:12px 16px;font-size:24px;cursor:pointer;transition:all .3s;color:#fff}.settings-btn:hover{background:#ffffff4d;transform:rotate(90deg) scale(1.1);box-shadow:0 4px 12px #0003}.drop-zone{background:#fffffff2;border:2px dashed #ccc;border-radius:12px;padding:60px 80px;text-align:center;transition:all .3s;color:#333;cursor:pointer;max-width:500px;width:100%}.drop-zone.active{border-color:#2b579a;background:#fff;transform:scale(1.02)}.drop-icon{font-size:64px;margin-bottom:20px}.drop-text{font-size:18px;margin:0 0 10px;color:#333;font-weight:500}.drop-subtext{margin:10px 0;color:#666}.file-select-btn{display:inline-block;padding:12px 32px;background:#2b579a;color:#fff;border-radius:6px;cursor:pointer;transition:all .3s;font-size:16px;font-weight:500}.file-select-btn:hover{background:#1f4170;transform:translateY(-2px);box-shadow:0 4px 12px #2b579a4d}.supported-formats{margin-top:20px;font-size:12px;color:#999}.recent-books{margin-top:60px;width:100%;max-width:600px}.recent-books h2{font-size:20px;margin-bottom:20px;font-weight:500}.books-list{display:flex;flex-direction:column;gap:12px}.book-item{background:#fffffff2;border-radius:8px;padding:16px;display:flex;align-items:center;gap:16px;cursor:pointer;transition:all .3s;color:#333;position:relative}.book-item:hover{background:#fff;transform:translate(4px);box-shadow:0 4px 12px #0000001a}.book-icon{font-size:32px;flex-shrink:0}.book-info{flex:1;min-width:0}.book-title{font-size:16px;font-weight:500;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-meta{font-size:12px;color:#666;display:flex;gap:8px}.book-delete{width:28px;height:28px;border:none;background:#f0f0f0;border-radius:50%;cursor:pointer;font-size:20px;color:#666;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0}.book-delete:hover{background:#f44;color:#fff}.import-footer{margin-top:60px;max-width:800px;width:100%;display:flex;justify-content:space-between;align-items:flex-start;gap:40px}.tips{text-align:left;flex:1}.tips h3{font-size:16px;margin-bottom:12px;font-weight:500}.tips ul{list-style:none;padding:0;margin:0;font-size:14px;opacity:.9}.tips li{margin-bottom:8px;line-height:1.5}.tips kbd{background:#fff3;padding:2px 8px;border-radius:4px;font-family:monospace;font-size:12px}.tips strong{color:#fff;font-weight:600}.contact-info{display:flex;gap:12px}.contact-info a{width:36px;height:36px;background:#fff3;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;transition:all .3s;text-decoration:none}.contact-info a:hover{background:#ffffff4d;transform:scale(1.1)}.toc-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0000004d;z-index:998;animation:fadeIn .2s ease-out}.table-of-contents{position:fixed;top:0;right:-350px;width:350px;height:100vh;background:#fff;box-shadow:-2px 0 12px #00000026;z-index:999;display:flex;flex-direction:column;transition:right .3s ease-out}.table-of-contents.open{right:0}.toc-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:2px solid #2b579a;background:linear-gradient(135deg,#2b579a,#4a7bc5);color:#fff}.toc-header h3{margin:0;font-size:18px;font-weight:600}.toc-close{width:32px;height:32px;border:none;background:#fff3;color:#fff;border-radius:50%;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;line-height:1}.toc-close:hover{background:#ffffff4d;transform:scale(1.1)}.toc-info{padding:12px 20px;background:#f8f9fa;border-bottom:1px solid #e0e0e0;font-size:13px;color:#666}.current-chapter-hint{color:#2b579a;font-weight:500}.toc-list{flex:1;overflow-y:auto;padding:8px 0}.toc-item{display:flex;align-items:center;padding:12px 20px;cursor:pointer;transition:all .2s;border-left:3px solid transparent;gap:12px}.toc-item:hover{background:#f0f4f8;border-left-color:#2b579a}.toc-item.active{background:#e3f2fd;border-left-color:#2b579a}.toc-number{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;background:#e0e0e0;border-radius:50%;font-size:12px;font-weight:600;color:#666;flex-shrink:0}.toc-item.active .toc-number{background:#2b579a;color:#fff}.toc-title{flex:1;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toc-item.active .toc-title{color:#2b579a;font-weight:600}.toc-badge{font-size:11px;padding:3px 8px;background:#2b579a;color:#fff;border-radius:10px;flex-shrink:0}.toc-list::-webkit-scrollbar{width:6px}.toc-list::-webkit-scrollbar-track{background:#f1f1f1}.toc-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.toc-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.toc-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#999;font-size:14px}.toc-empty-icon{font-size:48px;margin-bottom:12px;opacity:.5}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:1000;animation:fadeIn .2s ease-out}.modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:12px;box-shadow:0 8px 32px #0000004d;z-index:1001;min-width:400px;max-width:500px;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translate(-50%,-45%)}to{opacity:1;transform:translate(-50%,-50%)}}.modal-header{display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid #e0e0e0}.modal-icon{font-size:32px;flex-shrink:0}.modal-title{flex:1;margin:0;font-size:18px;font-weight:600;color:#333}.modal-close{width:32px;height:32px;border:none;background:#f0f0f0;color:#666;border-radius:50%;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;line-height:1;flex-shrink:0}.modal-close:hover{background:#e0e0e0;color:#333}.modal-body{padding:24px}.modal-message{margin:0;font-size:15px;line-height:1.6;color:#555;white-space:pre-line}.modal-footer{padding:16px 24px;border-top:1px solid #e0e0e0;display:flex;justify-content:flex-end}.modal-btn{padding:10px 24px;background:#2b579a;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.modal-btn:hover{background:#1f4170;transform:translateY(-1px);box-shadow:0 4px 8px #2b579a4d}.modal-btn:active{transform:translateY(0)}@media (max-width: 600px){.modal{min-width:auto;width:90%}}.settings-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease-out}.settings-modal-content{background:#fff;border-radius:8px;box-shadow:0 4px 24px #0003;max-width:600px;width:90%;max-height:80vh;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.settings-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e0e0e0}.settings-modal-header h2{margin:0;font-size:20px;font-weight:600;color:#333}.close-btn{background:none;border:none;font-size:32px;line-height:1;color:#999;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.close-btn:hover{background:#f0f0f0;color:#333}.settings-modal-body{padding:24px;overflow-y:auto;flex:1}.settings-section{margin-bottom:32px}.settings-section:last-child{margin-bottom:0}.settings-section h3{margin:0 0 16px;font-size:16px;font-weight:600;color:#333}.settings-hint{margin:0 0 20px;color:#666;font-size:14px;text-align:center;padding:12px;background:#f5f5f5;border-radius:6px}.language-selector{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.language-btn{padding:12px 16px;font-size:14px;font-weight:500;background:#fff;border:2px solid #e0e0e0;border-radius:8px;color:#666;cursor:pointer;transition:all .2s;text-align:center}.language-btn:hover{background:#f5f5f5;border-color:#2196f3;color:#2196f3}.language-btn.active{background:#2196f3;border-color:#2196f3;color:#fff;font-weight:600}.language-btn.active:hover{background:#1976d2;border-color:#1976d2}.error-message{margin:0 0 16px;padding:12px 16px;background:#fff3f3;border:1px solid #ffcdd2;border-radius:6px;color:#d32f2f;font-size:14px;animation:shake .3s}.hotkey-list{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.hotkey-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#f9f9f9;border:1px solid #e0e0e0;border-radius:8px;transition:all .2s}.hotkey-item:hover{background:#f5f5f5;border-color:#2196f3}.hotkey-info{flex:1;margin-right:16px}.hotkey-label{font-size:16px;font-weight:600;color:#333;margin-bottom:4px}.hotkey-description{font-size:13px;color:#666}.hotkey-button{min-width:120px;padding:10px 20px;font-size:14px;font-weight:600;font-family:Courier New,monospace;background:#fff;border:2px solid #2196F3;border-radius:6px;color:#2196f3;cursor:pointer;transition:all .2s;position:relative}.hotkey-button:hover{background:#e3f2fd;transform:translateY(-2px);box-shadow:0 4px 8px #2196f333}.hotkey-button:focus{outline:none;box-shadow:0 0 0 3px #2196f34d}.hotkey-button.editing{background:#2196f3;color:#fff;animation:pulse 1s infinite;border-color:#2196f3}.hotkey-tips{margin-top:24px;padding:16px;background:#fff9e6;border:1px solid #ffe082;border-radius:8px}.hotkey-tips h3{margin:0 0 12px;font-size:15px;font-weight:600;color:#f57c00}.hotkey-tips ul{margin:0;padding-left:20px;list-style:none}.hotkey-tips li{margin-bottom:8px;font-size:13px;color:#666;line-height:1.5;position:relative;padding-left:4px}.hotkey-tips li:last-child{margin-bottom:0}.settings-modal-footer{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-top:1px solid #e0e0e0;background:#fafafa}.btn-group{display:flex;gap:12px}.btn-primary,.btn-secondary{padding:10px 24px;font-size:14px;font-weight:500;border:none;border-radius:6px;cursor:pointer;transition:all .2s}.btn-primary{background:#2196f3;color:#fff}.btn-primary:hover{background:#1976d2;transform:translateY(-2px);box-shadow:0 4px 8px #2196f34d}.btn-secondary{background:#fff;color:#666;border:1px solid #ddd}.btn-secondary:hover{background:#f5f5f5;border-color:#999}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}@media (max-width: 768px){.settings-modal-content{width:95%;max-height:90vh}.language-selector{grid-template-columns:repeat(2,1fr)}.hotkey-item{flex-direction:column;align-items:flex-start}.hotkey-info{margin-right:0;margin-bottom:12px}.hotkey-button{width:100%}}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app{display:flex;flex-direction:column;height:100vh;overflow:hidden}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;background:#f3f3f3;color:#333}.loading-spinner{width:50px;height:50px;border:4px solid #f3f3f3;border-top:4px solid #2b579a;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.title-bar,.ribbon,.status-bar{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}
