*{margin:0;padding:0;box-sizing:border-box}body{font-family:Microsoft YaHei,-apple-system,BlinkMacSystemFont,sans-serif;background:#f5f7fa;min-height:100vh}.toolbar{background:#fff;padding:15px 20px;box-shadow:0 2px 8px #0000001a;display:flex;align-items:center;gap:15px;flex-wrap:wrap;position:sticky;top:0;z-index:100}.toolbar h1{font-size:18px;color:#333;margin-right:20px}.toolbar-actions{display:flex;gap:10px}.btn{padding:8px 16px;border:none;border-radius:6px;cursor:pointer;font-size:14px;transition:all .2s}.btn-primary{background:#667eea;color:#fff}.btn-primary:hover{background:#5a6fd6}.btn-secondary{background:#2196f3;color:#fff}.btn-secondary:hover{background:#1976d2}.btn-warning{background:#ff9800;color:#fff}.btn-warning:hover{background:#f57c00}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-slice{padding:12px 30px;font-weight:600}.params-bar{background:#fff;padding:12px 20px;border-bottom:1px solid #eee;display:flex;flex-wrap:wrap;gap:15px 25px;align-items:center}.param-group{display:flex;align-items:center;gap:15px;background:#f8f9fa;padding:10px 18px;border-radius:10px;border:1px solid #e8e8e8}.group-label{font-size:11px;color:#888;font-weight:600;text-transform:uppercase;padding-right:15px;border-right:2px solid #ddd}.slider-item{display:flex;align-items:center;gap:10px}.slider-item label{font-size:13px;color:#555;min-width:35px;font-weight:500}.slider-item input[type=range]{width:160px;height:8px;-webkit-appearance:none;background:linear-gradient(to right,#a5d6a7,#4caf50);border-radius:4px;cursor:pointer}.slider-item input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;background:#fff;border:3px solid #4CAF50;border-radius:50%;cursor:pointer;box-shadow:0 2px 6px #0003}.slider-item .value{font-size:13px;color:#2e7d32;font-weight:600;min-width:45px;text-align:center;background:#e8f5e9;padding:4px 8px;border-radius:5px}.main-content{display:grid;grid-template-columns:1fr 1fr 420px;gap:15px;padding:15px;height:calc(100vh - 150px)}.panel{background:#fff;border-radius:8px;box-shadow:0 2px 8px #00000014;display:flex;flex-direction:column;overflow:hidden}.panel-header{padding:12px 15px;background:#fafafa;border-bottom:1px solid #eee;font-weight:600;font-size:14px;color:#333}.panel-body{flex:1;overflow:auto;padding:15px}.upload-zone{border:2px dashed #ddd;border-radius:8px;padding:50px;text-align:center;cursor:pointer;transition:all .2s;background:#fafafa}.upload-zone:hover,.upload-zone.dragover{border-color:#667eea;background:#f0f4ff}.upload-zone .upload-icon{width:64px;height:64px;color:#bbb;margin-bottom:12px;transition:color .2s}.upload-zone:hover .upload-icon{color:#667eea}.upload-zone p{color:#666;font-size:15px;margin-bottom:8px}.upload-zone .upload-hint{color:#999;font-size:12px}.preview-container{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.preview-container img{max-width:100%;max-height:100%;object-fit:contain}#gridOverlay{position:absolute;top:0;left:0;pointer-events:none}.slices-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.slice-item{border:2px solid #e0e0e0;border-radius:6px;overflow:hidden;cursor:pointer;transition:all .2s;background:#fff;position:relative}.slice-item:hover{border-color:#667eea;transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.slice-item.selected{border-color:#667eea;box-shadow:0 0 0 3px #667eea33}.slice-item.passed{border-color:#10b981;background:#ecfdf5}.slice-item.hasIssues{border-color:#f59e0b;background:#fffbeb}.slice-item.error{border-color:#ef4444;background:#fef2f2}.slice-item.checking{border-color:#3b82f6;background:#eff6ff}.slice-item.pending{border-color:#d1d5db}.slice-item img{width:100%;height:90px;object-fit:contain;background:#f5f5f5}.slice-item .slice-info{padding:6px;font-size:11px;text-align:center;border-top:1px solid #eee}.slice-item .slice-status{font-size:10px;margin-top:3px;font-weight:500}.slice-item.passed .slice-status{color:#059669}.slice-item.hasIssues .slice-status{color:#d97706}.slice-item.error .slice-status{color:#dc2626}.slice-item.checking .slice-status{color:#2563eb}.issues-badge{position:absolute;top:-6px;right:-6px;background:#ef4444;color:#fff;font-size:10px;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-weight:700;padding:0 4px}.stats{display:flex;gap:15px;padding:10px;background:#f5f5f5;border-radius:6px;margin-bottom:12px}.stat-item{text-align:center;flex:1}.stat-item .num{font-size:22px;font-weight:600;color:#333;display:block}.stat-item .label{font-size:11px;color:#666}.stat-item.success .num{color:#10b981}.stat-item.error .num{color:#f59e0b}.stat-item.warning .num{color:#6b7280}.progress-bar{width:100%;height:4px;background:#e0e0e0;border-radius:2px;overflow:hidden;margin-bottom:12px}.progress-bar .progress{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .3s;width:0%}#resultPanel{padding:5px}.slice-preview-img{width:100%;max-height:160px;object-fit:contain;border:1px solid #ddd;border-radius:6px;margin-bottom:12px;background:#fafafa}.check-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:15px}.step-item{padding:8px 4px;border-radius:8px;background:#f3f4f6;text-align:center;font-size:11px;border:2px solid transparent;transition:all .2s}.step-item.pending{background:#f3f4f6;color:#9ca3af}.step-item.success{background:#d1fae5;color:#065f46;border-color:#10b981}.step-item.warning{background:#fef3c7;color:#92400e;border-color:#f59e0b}.step-item.error{background:#fee2e2;color:#991b1b;border-color:#ef4444}.step-num{display:block;font-size:16px;font-weight:700;margin-bottom:2px}.step-name{display:block;font-weight:600;font-size:10px}.step-status{display:block;font-size:9px;margin-top:2px;opacity:.9}.action-section{text-align:center;padding:25px;background:#f9fafb;border-radius:8px;margin-bottom:15px}.action-section .btn{padding:12px 35px;font-size:15px;font-weight:600}.result-section{background:#f9fafb;border-radius:8px;padding:12px;margin-bottom:12px;border-left:4px solid #e5e7eb}.result-section.success{border-left-color:#10b981;background:#ecfdf5}.result-section.warning{border-left-color:#f59e0b;background:#fffbeb}.result-section.error{border-left-color:#ef4444;background:#fef2f2}.result-section h4{font-size:13px;color:#374151;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid rgba(0,0,0,.06)}.pass-msg{color:#059669;font-size:13px;padding:8px;background:#10b9811a;border-radius:4px}.warning-msg{color:#d97706;font-size:13px;padding:8px;background:#f59e0b1a;border-radius:4px}.error-msg{color:#dc2626;font-size:13px;padding:8px;background:#ef44441a;border-radius:4px}.issues-list,.spelling-errors{margin-bottom:10px}.issue-item{font-size:13px;padding:8px 10px;background:#f59e0b1a;border-radius:4px;margin-bottom:6px;color:#92400e}.spelling-item{font-size:13px;padding:8px 10px;background:#fff;border-radius:4px;margin-bottom:6px;border:1px solid #fcd34d}.spelling-item .wrong{color:#dc2626;text-decoration:line-through;font-weight:500}.spelling-item .correct{color:#059669;font-weight:600}.spelling-item .context{color:#6b7280;font-size:11px;margin-left:8px}.suggestion{background:#fef3c7;padding:10px 12px;border-radius:6px;font-size:13px;color:#92400e;border:1px solid #fcd34d}.suggestion strong{color:#78350f}.content-items{display:flex;flex-direction:column;gap:4px}.content-item{display:flex;justify-content:space-between;align-items:flex-start;padding:8px 10px;background:#fff;border-radius:4px;font-size:12px;border:1px solid #e5e7eb}.content-item .label{color:#6b7280;font-weight:600;min-width:100px}.content-item .value{color:#111827;text-align:right;flex:1;word-break:break-all;margin-left:10px}.compare-items{display:flex;flex-direction:column;gap:4px}.compare-item{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-radius:4px;font-size:12px}.compare-item .field{font-weight:600}.compare-item.match{background:#d1fae5;color:#065f46}.compare-item.mismatch{background:#fee2e2;color:#991b1b}.compare-item .status{font-weight:700;font-size:14px}.compare-detail{background:#fef2f2;padding:8px 10px;border-radius:4px;margin-top:4px;font-size:11px;border:1px solid #fecaca}.compare-detail .ocr-val{color:#dc2626;font-weight:500}.compare-detail .excel-val{color:#059669;font-weight:500}.loading{display:inline-block;width:24px;height:24px;border:3px solid #e5e7eb;border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite;margin:20px auto}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 1400px){.main-content{grid-template-columns:1fr 1fr}.main-content>.panel:last-child{grid-column:span 2}}@media (max-width: 900px){.main-content{grid-template-columns:1fr}.main-content>.panel:last-child{grid-column:span 1}.check-steps{grid-template-columns:repeat(2,1fr)}}.modal-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#000000eb;z-index:1000;justify-content:center;align-items:center}.modal-overlay.active{display:flex}.modal-content{position:relative;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;align-items:center}.modal-content img{max-width:90vw;max-height:80vh;object-fit:contain;border-radius:8px;box-shadow:0 8px 32px #00000080}.modal-close{position:absolute;top:-45px;right:0;width:36px;height:36px;background:#ffffff26;border:none;border-radius:50%;color:#fff;font-size:24px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.modal-close:hover{background:#ffffff40}.modal-nav{position:absolute;top:50%;transform:translateY(-50%);width:50px;height:50px;background:#ffffff1a;border:none;border-radius:50%;color:#fff;font-size:20px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.modal-nav:hover:not(:disabled){background:#ffffff40}.modal-nav:disabled{opacity:.3;cursor:not-allowed}.modal-prev{left:-70px}.modal-next{right:-70px}.modal-info{margin-top:15px;color:#ffffffe6;font-size:14px;background:#00000080;padding:8px 20px;border-radius:20px}.compare-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#000000f2;z-index:1000}.compare-overlay.active{display:flex}.compare-left{flex:1;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.1)}.compare-right{width:35%;display:flex;flex-direction:column;background:#1a1a1a}.compare-header{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#0006;color:#fff;font-size:14px;font-weight:500;border-bottom:1px solid rgba(255,255,255,.1)}.compare-header .modal-close{position:static;width:32px;height:32px;font-size:20px}.compare-nav{display:flex;align-items:center;gap:12px}.compare-nav .nav-btn{width:32px;height:32px;background:#ffffff1a;border:none;border-radius:6px;color:#fff;font-size:14px;cursor:pointer;transition:all .2s}.compare-nav .nav-btn:hover:not(:disabled){background:#fff3}.compare-nav .nav-btn:disabled{opacity:.3;cursor:not-allowed}.compare-nav span{color:#ffffffb3;font-size:13px;min-width:50px;text-align:center}.compare-image-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.compare-image-wrap img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px}.compare-result{flex:1;overflow:auto;padding:15px;color:#e0e0e0}.compare-result .result-section{background:#ffffff0d;border-left-color:#fff3}.compare-result .result-section.success{background:#10b98126;border-left-color:#10b981}.compare-result .result-section.warning{background:#f59e0b26;border-left-color:#f59e0b}.compare-result .result-section.error{background:#ef444426;border-left-color:#ef4444}.compare-result .result-section h4{color:#fff;border-bottom-color:#ffffff1a}.compare-result .content-item,.compare-result .compare-item{background:#ffffff14;border-color:#ffffff1a}.compare-result .content-item .label{color:#aaa}.compare-result .content-item .value{color:#fff}.compare-result .pass-msg{background:#10b98133;color:#6ee7b7}.compare-result .warning-msg{background:#f59e0b33;color:#fcd34d}.compare-result .compare-detail{background:#ef444426;border-color:#ef44444d}.slice-item .zoom-btn{position:absolute;top:4px;right:4px;width:24px;height:24px;background:#0009;border:none;border-radius:4px;color:#fff;font-size:14px;cursor:pointer;opacity:0;transition:opacity .2s;display:flex;align-items:center;justify-content:center}.slice-item:hover .zoom-btn{opacity:1}.slice-item .zoom-btn:hover{background:#667eeae6}.excel-status{font-size:12px;color:#16a34a;margin-left:8px}.excel-status.error{color:#f87171}.workflow{display:flex;align-items:center;gap:0;flex:1;justify-content:center}.step{display:flex;align-items:center;gap:8px;padding:10px 20px;border-radius:25px;cursor:pointer;transition:all .3s;background:#f0f0f0;color:#999;position:relative}.step:hover:not(.disabled){background:#e0e0e0}.step.active{background:#667eea;color:#fff;box-shadow:0 2px 8px #667eea66}.step.done{background:#16a34a;color:#fff}.step.disabled{opacity:.5;cursor:not-allowed}.step-num{width:22px;height:22px;border-radius:50%;background:#ffffff4d;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.step.done .step-num{background:#fff6}.step-label{font-size:13px;font-weight:500;white-space:nowrap}.step-info{font-size:13px;color:inherit;margin-left:6px;font-weight:700}.step-info:empty{display:none}.step-arrow{width:30px;height:2px;background:#ddd;position:relative}.step-arrow:after{content:"";position:absolute;right:0;top:-3px;border:4px solid transparent;border-left-color:#ddd}.step.done+.step-arrow{background:#16a34a}.step.done+.step-arrow:after{border-left-color:#16a34a}.value-input{width:55px;padding:4px 8px;font-size:13px;color:#2e7d32;font-weight:600;text-align:center;background:#e8f5e9;border:1px solid #a5d6a7;border-radius:5px;outline:none;transition:all .2s}.value-input:focus{border-color:#4caf50;box-shadow:0 0 0 2px #4caf5033}.value-input::-webkit-inner-spin-button,.value-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.label-consistency{padding:10px 12px;border-radius:6px;margin-bottom:12px;border:1px solid}.label-consistency.success{background:#d1fae5;border-color:#10b981;color:#065f46}.label-consistency.warning{background:#fef3c7;border-color:#f59e0b;color:#92400e}.label-consistency strong{display:block;margin-bottom:6px}.consistency-issues{margin:0;padding-left:20px;font-size:12px}.consistency-issues li{margin-bottom:4px}
