*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f5f7fb;color:#111827;line-height:1.6}.app{max-width:960px;margin:0 auto;padding:20px;min-height:100vh}.header{text-align:center;padding:40px 0 30px}.header h1{font-size:42px;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.subtitle{color:#6b7280;font-size:16px;margin-top:8px}.upload-zone{background:#fff;border:2px dashed #d1d5db;border-radius:16px;padding:40px;text-align:center;transition:all .3s;cursor:pointer}.upload-zone:hover{border-color:#667eea;background:#fafbff}.upload-zone.drag-over{border-color:#667eea;background:#667eea14;box-shadow:0 0 0 3px #667eea33;transform:scale(1.01);transition:all .15s ease}.upload-zone.has-file{border-style:solid;border-color:#667eea}.upload-icon{font-size:48px;margin-bottom:16px}.upload-placeholder p{color:#888;margin-bottom:16px}.upload-placeholder input[type=file]{display:none}.upload-btn{display:inline-block;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:10px 28px;border-radius:8px;cursor:pointer;font-size:15px;transition:transform .2s}.upload-btn:hover{transform:scale(1.05)}.preview-img{max-width:100%;max-height:350px;border-radius:12px;box-shadow:0 4px 12px #0000001a;margin-bottom:20px}.upload-actions{display:flex;gap:12px;justify-content:center}.file-list{margin:12px 0 0;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.file-item{background:#f1f5f9;border:1px solid #e2e8f0;color:#1f2937;padding:6px 10px;border-radius:6px;font-size:12px;cursor:pointer;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-item.active{background:#e0e7ff;border-color:#c7d2fe;color:#1e1b4b}.batch-progress{font-size:12px;color:#cbd5e1;margin-left:6px}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 32px;border-radius:8px;font-size:16px;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .3s}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-primary:disabled{opacity:.7;cursor:wait}.btn-secondary{background:#f3f4f6;color:#666;border:1px solid #e5e7eb;padding:12px 24px;border-radius:8px;font-size:14px;cursor:pointer}.btn-secondary:hover{background:#e5e7eb}.spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-banner{background:#fef2f2;color:#991b1b;padding:14px 20px;border-radius:10px;margin-top:16px;border-left:4px solid #ef4444;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.btn-retry{background:#ef4444;color:#fff;border:none;padding:6px 16px;border-radius:6px;cursor:pointer;font-size:.9rem;white-space:nowrap;transition:background .2s}.btn-retry:hover{background:#dc2626}.stats-bar{display:flex;gap:16px;margin:24px 0}.stat-item{flex:1;background:#fff;border-radius:12px;padding:20px;text-align:center;box-shadow:0 2px 8px #0f172a0f}.stat-num{display:block;font-size:32px;font-weight:700;color:#4f46e5}.stat-item.stat-warn .stat-num{color:#f59e0b}.stat-item.stat-ok .stat-num{color:#10b981}.stat-label{display:block;font-size:13px;color:#888;margin-top:4px}.result-card{background:#fff;border-radius:12px;padding:24px;margin-bottom:16px;box-shadow:0 2px 8px #0f172a0f}.result-card h3{font-size:18px;color:#111827;margin-bottom:16px;display:flex;align-items:center;gap:8px}.count-badge{background:#667eea;color:#fff;font-size:12px;padding:2px 10px;border-radius:12px;font-weight:500}.count-badge.warn{background:#f59e0b}.data-table{width:100%;border-collapse:collapse;font-size:14px}.data-table th{background:#f1f5f9;padding:10px 14px;text-align:left;font-weight:600;color:#1f2937;border-bottom:2px solid #e5e7eb;font-size:13px}.data-table td{padding:10px 14px;border-bottom:1px solid #e5e7eb;color:#111827}.data-table tr:hover td{background:#fafbff}.data-table .ref{font-weight:600;color:#667eea}.data-table .value{font-family:SF Mono,monospace;color:#333}.data-table .center{text-align:center}.data-table .desc{color:#888;font-size:13px}.type-badge{display:inline-block;background:#f0f2ff;color:#667eea;padding:2px 10px;border-radius:4px;font-size:12px;font-weight:500}.info-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.info-card{background:#f1f5f9;border-radius:10px;padding:16px;border-left:3px solid #667eea}.info-label{font-size:13px;font-weight:600;color:#4f46e5;margin-bottom:6px}.info-value{font-size:14px;color:#111827;line-height:1.5}.info-text{white-space:pre-wrap}.bilingual{display:flex;flex-direction:column;gap:4px}.bilingual .cn{color:#1a1a2e;font-weight:500}.bilingual .en{color:#6b7280;font-size:13px}.function-card{background:linear-gradient(135deg,#eef2ff,#e0e7ff);border-radius:12px;padding:20px}.func-type{display:flex;align-items:center;gap:10px;margin-bottom:12px}.func-icon{font-size:24px}.func-type-text{font-size:20px;font-weight:700;color:#111827}.func-desc{font-size:15px;color:#1f2937;margin-bottom:12px;line-height:1.6}.func-app{font-size:14px;color:#374151;background:#fff;padding:10px 14px;border-radius:8px}.key-nodes{display:flex;flex-wrap:wrap;gap:8px}.node-tag{background:#f0f2ff;color:#667eea;padding:6px 14px;border-radius:20px;font-size:13px;font-weight:500;border:1px solid #d5dbff}.errors-list{display:flex;flex-direction:column;gap:12px}.error-card{background:#fffbf5;border-radius:10px;padding:16px;border-left:4px solid #f59e0b}.error-header{display:flex;align-items:center;gap:10px;margin-bottom:8px}.error-severity{color:#fff;font-size:11px;padding:2px 10px;border-radius:4px;font-weight:600;text-transform:uppercase}.error-type{font-weight:600;color:#333;font-size:14px}.error-desc{color:#555;font-size:14px;margin-bottom:8px}.error-suggestion{background:#fff;padding:10px 14px;border-radius:6px;font-size:13px;color:#666}.empty{color:#aaa;text-align:center;padding:20px}.text-content{font-size:15px;color:#444;line-height:1.7}.footer{text-align:center;padding:30px 0;color:#aaa;font-size:13px}.btn-theme{background:#eef2ff;border:1px solid #c7d2fe;color:#1f2937;padding:8px 12px;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600;transition:all .2s}.btn-theme:hover{background:#e0e7ff}[data-theme=dark] body{background:#1a1a2e;color:#e0e0e0}[data-theme=dark] .upload-zone{background:#252542;border-color:#3a3a5c}[data-theme=dark] .upload-zone:hover{border-color:#667eea;background:#2a2a4a}[data-theme=dark] .upload-zone.drag-over{background:#667eea26}[data-theme=dark] .result-card,[data-theme=dark] .stat-item,[data-theme=dark] .history-panel{background:#252542;box-shadow:0 2px 8px #0000004d}[data-theme=dark] .result-card h3{color:#e0e0e0}[data-theme=dark] .subtitle{color:#aaa}[data-theme=dark] .btn-theme,[data-theme=dark] .btn-lang,[data-theme=dark] .btn-history{background:#ffffff26;border:1px solid rgba(255,255,255,.3);color:#fff}[data-theme=dark] .btn-theme:hover,[data-theme=dark] .btn-lang:hover,[data-theme=dark] .btn-history:hover{background:#ffffff40}[data-theme=dark] .file-item{background:#2a2a4a;border-color:#3a3a5c;color:#e5e7eb}[data-theme=dark] .file-item.active{background:#3a3a5c;border-color:#4f46e5;color:#fff}[data-theme=dark] .data-table th{background:#2a2a4a;color:#ccc;border-bottom-color:#3a3a5c}[data-theme=dark] .data-table td{border-bottom-color:#2a2a4a;color:#ddd}[data-theme=dark] .data-table tr:hover td{background:#2e2e50}[data-theme=dark] .data-table .value{color:#e0e0e0}[data-theme=dark] .info-card{background:#2a2a4a}[data-theme=dark] .info-value{color:#ccc}[data-theme=dark] .bilingual .cn{color:#e5e7eb}[data-theme=dark] .bilingual .en{color:#9ca3af}[data-theme=dark] .function-card{background:linear-gradient(135deg,#252542,#2a2a4a)}[data-theme=dark] .func-type-text{color:#e0e0e0}[data-theme=dark] .func-desc{color:#bbb}[data-theme=dark] .func-app{background:#1a1a2e;color:#ccc}[data-theme=dark] .error-card{background:#2e2518}[data-theme=dark] .error-suggestion{background:#252542;color:#ccc}[data-theme=dark] .error-banner{background:#2e1a1a;color:#fca5a5;border-left-color:#ef4444}[data-theme=dark] .node-tag{background:#2a2a4a;color:#8b9cf7;border-color:#3a3a5c}[data-theme=dark] .type-badge{background:#2a2a4a;color:#8b9cf7}[data-theme=dark] .btn-secondary{background:#2a2a4a;color:#ccc;border-color:#3a3a5c}[data-theme=dark] .btn-secondary:hover{background:#3a3a5c}[data-theme=dark] .history-item{border-bottom-color:#3a3a5c}[data-theme=dark] .history-name{color:#e0e0e0}[data-theme=dark] .text-content{color:#ccc}[data-theme=dark] .footer{color:#666}@media (max-width: 768px){.app{padding:12px}.header{padding:24px 0 20px}.header h1{font-size:32px}.subtitle{font-size:14px}.upload-zone{padding:24px 16px}.result-card{padding:16px}.info-cards{grid-template-columns:1fr}.data-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.data-table th,.data-table td{white-space:nowrap;padding:8px 10px;font-size:13px}}@media (max-width: 480px){.app{padding:8px}.header{padding:16px 0 12px}.header h1{font-size:26px}.subtitle{font-size:13px}.upload-zone{padding:20px 12px;border-radius:12px}.upload-icon{font-size:36px;margin-bottom:10px}.preview-img{max-height:200px;border-radius:8px}.upload-actions{flex-direction:column}.btn-primary,.btn-secondary{width:100%;justify-content:center}.stats-bar{flex-direction:column;gap:10px}.stat-item{padding:14px}.stat-num{font-size:26px}.result-card{padding:14px;border-radius:10px;margin-bottom:12px}.result-card h3{font-size:16px;flex-wrap:wrap}.function-card{padding:14px}.func-type-text{font-size:17px}.func-desc{font-size:14px}.error-card{padding:12px}.key-nodes{gap:6px}.node-tag{font-size:12px;padding:4px 10px}.export-buttons{flex-direction:column}.btn-export-main{width:100%;text-align:center}.btn-export{display:block;margin:6px 0 0}.history-panel{border-radius:0;margin:0 -8px 16px}.btn-history{right:8px;top:8px;padding:6px 12px;font-size:13px}.footer{padding:20px 0;font-size:12px}}.btn-export{display:inline-block;margin-left:12px;padding:4px 12px;font-size:13px;font-weight:500;color:#fff;background:#10b981;border-radius:6px;text-decoration:none;vertical-align:middle;transition:background .2s}.btn-export:hover{background:#059669}.header-actions{position:absolute;right:20px;top:20px;display:flex;gap:8px;align-items:center}.btn-lang{background:#eef2ff;border:1px solid #c7d2fe;color:#1f2937;padding:8px 12px;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600;transition:all .2s}.btn-lang:hover{background:#e0e7ff}.btn-history{background:#eef2ff;border:1px solid #c7d2fe;color:#1f2937;padding:8px 16px;border-radius:8px;cursor:pointer;font-size:14px;transition:all .2s;position:static}.btn-history:hover{background:#e0e7ff}.history-panel{max-width:600px;margin:0 auto 20px;background:#fff;border-radius:12px;box-shadow:0 2px 12px #00000014;padding:20px}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.history-header h3{margin:0;font-size:18px}.btn-close{background:none;border:none;font-size:18px;cursor:pointer;color:#999}.btn-close:hover{color:#333}.history-list{list-style:none;padding:0;margin:0}.history-item{display:flex;align-items:center;padding:10px 0;border-bottom:1px solid #f0f0f0}.history-item:last-child{border-bottom:none}.history-badge{font-size:.75rem;margin-left:4px;opacity:.7}.history-info{flex:1;cursor:pointer;display:flex;flex-direction:column;gap:2px}.history-info:hover .history-name{color:#4f46e5}.history-name{font-weight:600;font-size:14px}.history-date{font-size:12px;color:#999}.history-stats{font-size:12px;color:#666}.btn-delete{background:none;border:none;font-size:16px;cursor:pointer;opacity:.4;transition:opacity .2s}.btn-delete:hover{opacity:1}.pdf-preview{display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 20px;color:#94a3b8}.pdf-icon{font-size:48px}.pdf-name{font-size:14px;word-break:break-all}.error-boundary{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;padding:2rem;text-align:center}.error-boundary-icon{font-size:3rem;margin-bottom:1rem}.error-boundary h2{font-size:1.5rem;margin-bottom:.5rem;color:#ef4444}.error-boundary-msg{color:#6b7280;margin-bottom:1.5rem;font-family:monospace;font-size:.9rem}body{margin:0;padding:0;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;background:#f3f4f6}*{box-sizing:border-box}
