*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--primary: #2563eb;--primary-hover: #1d4ed8;--primary-light: #eff6ff;--bg: #f0f4f8;--surface: #ffffff;--text: #1e293b;--text-muted: #64748b;--border: #e2e8f0;--success: #10b981;--error: #ef4444;--radius: 12px;--shadow: 0 1px 3px rgba(0,0,0,.08);--shadow-lg: 0 4px 12px rgba(0,0,0,.12)}html{font-size:16px;scroll-behavior:smooth}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh;display:flex;flex-direction:column}.container{max-width:720px;margin:0 auto;padding:0 16px;width:100%}.site-header{background:var(--surface);border-bottom:1px solid var(--border);padding:12px 0;position:sticky;top:0;z-index:100}.site-header .container{display:flex;align-items:center;justify-content:space-between}.site-logo{font-size:1.25rem;font-weight:700;color:var(--primary);text-decoration:none}.site-logo:hover{opacity:.8}.site-nav{display:flex;gap:8px;align-items:center}.site-nav a{color:var(--text-muted);text-decoration:none;font-size:.875rem;padding:6px 12px;border-radius:6px;transition:background .2s,color .2s}.site-nav a:hover{background:var(--primary-light);color:var(--primary)}.lang-switch{position:relative}.lang-btn{background:none;border:1px solid var(--border);padding:6px 10px;border-radius:6px;cursor:pointer;font-size:.875rem;color:var(--text-muted)}.lang-btn:hover{background:var(--primary-light)}.site-footer{background:var(--surface);border-top:1px solid var(--border);padding:24px 0;margin-top:auto;text-align:center;font-size:.875rem;color:var(--text-muted)}.footer-links{margin-top:8px}.footer-links a{color:var(--primary);text-decoration:none}.footer-links a:hover{text-decoration:underline}.breadcrumb{font-size:.8rem;padding:8px 0;color:var(--text-muted)}.breadcrumb a{color:var(--primary);text-decoration:none}.breadcrumb a:hover{text-decoration:underline}.breadcrumb span{color:var(--text-muted)}.hero{text-align:center;padding:48px 0 32px}.hero h1{font-size:2rem;font-weight:800;color:var(--text);margin-bottom:12px}.hero-sub{font-size:1.125rem;color:var(--text-muted);max-width:500px;margin:0 auto}.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;padding-bottom:48px}.tool-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px 16px;text-decoration:none;color:var(--text);transition:transform .2s,box-shadow .2s,border-color .2s;text-align:center}.tool-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--primary)}.tool-icon{font-size:2rem;display:block;margin-bottom:12px}.tool-card h2{font-size:1rem;font-weight:600;margin-bottom:4px}.tool-card p{font-size:.8125rem;color:var(--text-muted)}.tool-page{padding:32px 0 48px}.tool-header{margin-bottom:24px}.tool-header h1{font-size:1.75rem;font-weight:700;margin-bottom:8px}.tool-header p{color:var(--text-muted);font-size:1rem}.dropzone{background:var(--surface);border:2px dashed var(--border);border-radius:var(--radius);padding:48px 24px;text-align:center;cursor:pointer;transition:border-color .2s,background .2s;margin-bottom:16px}.dropzone:hover,.dropzone.drag-over{border-color:var(--primary);background:var(--primary-light)}.dropzone-icon{font-size:3rem;margin-bottom:16px;display:block}.dropzone-text{font-size:1.125rem;font-weight:600;margin-bottom:8px}.dropzone-hint{font-size:.875rem;color:var(--text-muted)}.dropzone-info{font-size:.75rem;color:var(--text-muted);margin-top:12px}.file-list{list-style:none;margin-top:12px}.file-list li{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px 12px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;font-size:.875rem}.file-list .file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.file-list .file-size{color:var(--text-muted);margin-left:12px;white-space:nowrap}.file-list .file-remove{background:none;border:none;color:var(--error);cursor:pointer;margin-left:8px;font-size:1.125rem;padding:0 4px}.tool-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:24px}.tool-controls label{font-size:.875rem;font-weight:500;color:var(--text-muted)}.tool-controls select,.tool-controls input[type=text]{padding:8px 12px;border:1px solid var(--border);border-radius:8px;font-size:.875rem;background:var(--surface);color:var(--text)}.tool-controls select:focus,.tool-controls input[type=text]:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb1a}.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border:none;border-radius:var(--radius);font-size:1rem;font-weight:600;cursor:pointer;transition:background .2s,transform .1s}.btn:active{transform:scale(.98)}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-success{background:var(--success);color:#fff}.btn-success:hover{background:#059669}.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{background:var(--primary-light);border-color:var(--primary);color:var(--primary)}.status{padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:.875rem;display:none}.status.show{display:block}.status.processing{background:var(--primary-light);color:var(--primary);border:1px solid var(--primary)}.status.success{background:#ecfdf5;color:#065f46;border:1px solid var(--success)}.status.error{background:#fef2f2;color:#991b1b;border:1px solid var(--error)}.content-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin-bottom:24px}.content-section h2{font-size:1.25rem;font-weight:700;margin-bottom:12px}.content-section h3{font-size:1rem;font-weight:600;margin-bottom:8px}.content-section p,.content-section li{font-size:.9375rem;color:var(--text);line-height:1.7}.content-section ol,.content-section ul{padding-left:20px}.content-section li{margin-bottom:8px}.faq-item{border-bottom:1px solid var(--border);padding:16px 0}.faq-item:last-child{border-bottom:none}.faq-question{font-weight:600;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:.9375rem}.faq-question:after{content:"+";font-size:1.25rem;color:var(--text-muted);transition:transform .2s}.faq-item.open .faq-question:after{content:"−"}.faq-answer{max-height:0;overflow:hidden;transition:max-height .3s ease;font-size:.875rem;color:var(--text-muted);line-height:1.7}.faq-item.open .faq-answer{max-height:300px;padding-top:12px}.ad-unit{background:#f8fafc;border:1px dashed var(--border);border-radius:var(--radius);padding:24px;text-align:center;margin-bottom:24px;font-size:.75rem;color:var(--text-muted);min-height:90px;display:flex;align-items:center;justify-content:center}.ad-unit-leaderboard{min-height:90px}.ad-unit-incontent{min-height:250px}.related-tools{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-top:16px}.related-tool-link{background:var(--primary-light);color:var(--primary);text-decoration:none;padding:8px 16px;border-radius:8px;font-size:.875rem;font-weight:500;text-align:center;transition:background .2s}.related-tool-link:hover{background:#dbeafe}canvas{max-width:100%;height:auto!important}pre{white-space:pre-wrap;word-break:break-word;overflow-x:auto;max-width:100%}.progress-bar{width:100%;height:6px;background:var(--border);border-radius:3px;overflow:hidden;margin-bottom:16px;display:none}.progress-bar.show{display:block}.progress-fill{height:100%;background:var(--primary);width:0%;transition:width .3s;border-radius:3px}@media(max-width:640px){.hero{padding:32px 0 24px}.hero h1{font-size:1.5rem}.hero-sub{font-size:1rem}.tool-grid{grid-template-columns:repeat(2,1fr);gap:12px}.tool-card{padding:16px 12px}.tool-icon{font-size:1.5rem}.tool-header h1{font-size:1.375rem}.tool-header p{font-size:.9375rem}.dropzone{padding:32px 16px}.dropzone-icon{font-size:2rem}.dropzone-text{font-size:1rem}.tool-controls{flex-direction:column;align-items:stretch}.tool-controls select,.tool-controls input[type=text],.tool-controls input[type=number],.tool-controls input[type=range]{padding:10px 12px;font-size:1rem}.btn{justify-content:center;padding:14px 20px;font-size:1rem;min-height:48px}.btn-secondary{min-height:44px}.site-nav a,.lang-btn{font-size:.8125rem;padding:8px 10px;min-height:40px;display:inline-flex;align-items:center}.file-list li{padding:12px}.file-list .file-remove{padding:4px 8px;font-size:1.25rem}.content-section{padding:16px}.related-tools{grid-template-columns:1fr 1fr}.ad-unit{min-height:60px}.ad-unit-incontent{min-height:200px}.preview-controls{flex-wrap:wrap;justify-content:center}.preview-controls button{padding:10px 16px;min-height:44px}}
