
:root{--primary:#0057FF;--primary-dark:#003FCC;--primary-light:#EBF1FF;--accent:#00D68F;--accent-dark:#00B377;--bg:#F7F9FC;--bg-white:#FFFFFF;--text:#1A2332;--text-secondary:#5A6B7F;--border:#E2E8F0;--shadow-sm:0 1px 3px rgba(0,0,0,0.06);--shadow-md:0 4px 16px rgba(0,0,0,0.08);--shadow-lg:0 12px 40px rgba(0,0,0,0.12);--radius:12px;--radius-lg:20px;--font-display:'Outfit',sans-serif;--font-body:'DM Sans',sans-serif;--transition:0.25s cubic-bezier(0.4,0,0.2,1)}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth}
body{font-family:var(--font-body);background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased}
.navbar{position:sticky;top:0;z-index:100;background:rgba(255,255,255,0.92);backdrop-filter:blur(16px);border-bottom:1px solid var(--border)}
.nav-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0.75rem 1.5rem}
.logo{display:flex;align-items:center;gap:0.5rem;text-decoration:none;color:var(--text);font-family:var(--font-display);font-weight:700;font-size:1.25rem}
.logo-icon{font-size:1.5rem}.logo-accent{color:var(--primary)}
.nav-links{display:flex;gap:1.5rem;align-items:center}
.nav-links a{text-decoration:none;color:var(--text-secondary);font-weight:500;font-size:0.95rem;transition:color var(--transition)}
.nav-links a:hover{color:var(--primary)}
.menu-toggle{display:none;background:none;border:none;font-size:1.5rem;cursor:pointer;color:var(--text)}
.hero{text-align:center;padding:4rem 1.5rem 2.5rem;background:linear-gradient(160deg,var(--primary-light) 0%,var(--bg) 50%,#E8FFF6 100%)}
.hero h1{font-family:var(--font-display);font-size:clamp(2rem,5vw,3.2rem);font-weight:800;color:var(--text);line-height:1.15;margin-bottom:1rem}
.hero h1 span{color:var(--primary)}
.hero p{font-size:1.15rem;color:var(--text-secondary);max-width:600px;margin:0 auto}
.hero-badge{display:inline-flex;align-items:center;gap:0.4rem;background:var(--accent);color:#fff;padding:0.35rem 1rem;border-radius:50px;font-size:0.8rem;font-weight:700;margin-bottom:1.25rem;letter-spacing:0.03em}
.tools-section{max-width:1200px;margin:0 auto;padding:2rem 1.5rem 3rem}
.tools-section h2{text-align:center;font-family:var(--font-display);font-size:1.75rem;font-weight:700;margin-bottom:0.5rem}
.tools-section .subtitle{text-align:center;color:var(--text-secondary);margin-bottom:2rem}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem}
.tool-card{background:var(--bg-white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.75rem;text-decoration:none;color:var(--text);transition:all var(--transition);position:relative;overflow:hidden}
.tool-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--primary)}
.tool-card .card-icon{font-size:2.5rem;margin-bottom:0.75rem;display:block}
.tool-card h3{font-family:var(--font-display);font-size:1.2rem;font-weight:700;margin-bottom:0.4rem}
.tool-card p{color:var(--text-secondary);font-size:0.9rem;line-height:1.5}
.tool-card .card-arrow{position:absolute;top:1.5rem;right:1.5rem;width:32px;height:32px;border-radius:50%;background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700;transition:all var(--transition)}
.tool-card:hover .card-arrow{background:var(--primary);color:#fff}
.trust-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:2rem;padding:2rem 1.5rem;max-width:900px;margin:0 auto}
.trust-item{display:flex;align-items:center;gap:0.5rem;color:var(--text-secondary);font-size:0.95rem;font-weight:500}
.trust-icon{font-size:1.3rem}
.tool-hero{text-align:center;padding:3rem 1.5rem 1.5rem;background:linear-gradient(160deg,var(--primary-light) 0%,var(--bg) 100%)}
.tool-hero h1{font-family:var(--font-display);font-size:clamp(1.75rem,4vw,2.5rem);font-weight:800;margin-bottom:0.5rem}
.tool-hero p{color:var(--text-secondary);font-size:1.05rem;max-width:550px;margin:0 auto}
.tool-wrapper{max-width:1100px;margin:2rem auto 0;padding:0 1.5rem;display:grid;grid-template-columns:1fr 280px;gap:1.5rem;align-items:start}
.tool-container{min-width:0}
.tool-sidebar{display:flex;flex-direction:column;gap:1rem;}
.tool-box{background:var(--bg-white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem;box-shadow:var(--shadow-sm)}
.upload-zone{border:2px dashed var(--border);border-radius:var(--radius);padding:3rem 1.5rem;text-align:center;cursor:pointer;transition:all var(--transition);position:relative;background:var(--bg)}
.upload-zone:hover,.upload-zone.dragover{border-color:var(--primary);background:var(--primary-light)}
.upload-zone .upload-icon{font-size:3rem;margin-bottom:0.75rem;display:block}
.upload-zone .upload-text{font-weight:600;font-size:1.05rem;margin-bottom:0.25rem}
.upload-zone .upload-hint{color:var(--text-secondary);font-size:0.85rem}
.upload-zone input[type="file"]{position:absolute;inset:0;opacity:0;cursor:pointer}
.file-list{margin-top:1rem}
.file-item{display:flex;align-items:center;gap:0.75rem;padding:0.75rem 1rem;background:var(--bg);border-radius:var(--radius);margin-bottom:0.5rem;font-size:0.9rem}
.file-item .file-name{flex:1;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-item .file-size{color:var(--text-secondary);font-size:0.8rem}
.file-item .file-remove{background:none;border:none;color:#e53e3e;cursor:pointer;font-size:1.1rem;padding:0 0.25rem}
.tool-options{margin-top:1.25rem}
.option-group{margin-bottom:1rem}
.option-group label{display:block;font-weight:600;font-size:0.9rem;margin-bottom:0.35rem}
.option-group select,.option-group input[type="text"],.option-group input[type="number"]{width:100%;padding:0.6rem 0.75rem;border:1px solid var(--border);border-radius:8px;font-size:0.9rem;background:var(--bg);font-family:var(--font-body);transition:border-color var(--transition)}
.option-group select:focus,.option-group input:focus{outline:none;border-color:var(--primary)}
.option-row{display:flex;gap:1rem;flex-wrap:wrap}
.option-row .option-group{flex:1;min-width:120px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.85rem 2rem;border:none;border-radius:10px;font-family:var(--font-body);font-size:1rem;font-weight:700;cursor:pointer;transition:all var(--transition);text-decoration:none}
.btn-primary{background:var(--primary);color:#fff;width:100%;margin-top:1.25rem;box-shadow:0 4px 14px rgba(0,87,255,0.3)}
.btn-primary:hover{background:var(--primary-dark);transform:translateY(-1px)}
.btn-primary:disabled{opacity:0.5;cursor:not-allowed;transform:none}
.btn-download{background:var(--accent);color:#fff;width:100%;margin-top:1rem;box-shadow:0 4px 14px rgba(0,214,143,0.3)}
.btn-download:hover{background:var(--accent-dark)}
.progress-bar{width:100%;height:6px;background:var(--border);border-radius:3px;margin-top:1rem;overflow:hidden;display:none}
.progress-bar .progress-fill{height:100%;background:var(--primary);border-radius:3px;transition:width 0.3s ease;width:0%}
.status-msg{text-align:center;margin-top:0.75rem;font-size:0.9rem;color:var(--text-secondary);display:none}
.result-area{margin-top:1.5rem;display:none}
.result-preview{display:flex;flex-wrap:wrap;gap:0.75rem;margin-bottom:1rem}
.result-preview img{max-width:150px;max-height:200px;border-radius:8px;border:1px solid var(--border);object-fit:contain}
.info-section{max-width:800px;margin:0 auto 3rem;padding:0 1.5rem}
.info-section h2{font-family:var(--font-display);font-size:1.5rem;font-weight:700;margin-bottom:1rem}
.info-section p,.info-section li{color:var(--text-secondary);line-height:1.7;margin-bottom:0.75rem}
.faq-item{margin-bottom:1.25rem}
.faq-item h3{font-size:1rem;font-weight:700;margin-bottom:0.3rem;color:var(--text)}
.ad-container{max-width:800px;margin:1.5rem auto;padding:0 1.5rem;min-height:90px;text-align:center}
.content-page{max-width:800px;margin:0 auto;padding:3rem 1.5rem}
.content-page h1{font-family:var(--font-display);font-size:2rem;font-weight:800;margin-bottom:1.5rem}
.content-page h2{font-family:var(--font-display);font-size:1.35rem;font-weight:700;margin:2rem 0 0.75rem}
.content-page p{color:var(--text-secondary);line-height:1.75;margin-bottom:1rem}
.content-page a{color:var(--primary)}
.site-footer{background:var(--text);color:#CBD5E0;padding:3rem 1.5rem 1.5rem;margin-top:auto}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-brand{font-family:var(--font-display);font-weight:700;font-size:1.15rem;color:#fff;margin-bottom:0.25rem}
.footer-tagline{font-size:0.85rem;color:#8896A6;margin-bottom:2rem;font-weight:400}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;margin-bottom:2rem}
.footer-col h4{color:#fff;font-size:0.85rem;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:0.75rem}
.footer-col a{display:block;color:#8896A6;text-decoration:none;font-size:0.9rem;padding:0.2rem 0;transition:color var(--transition)}
.footer-col a:hover{color:#fff}
.footer-bottom{border-top:1px solid #2D3748;padding-top:1.5rem;text-align:center}
.footer-bottom p{font-size:0.8rem;color:#667788}
@media(max-width:768px){
  .menu-toggle{display:block}
  .nav-links{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;padding:1rem 1.5rem;border-bottom:1px solid var(--border);box-shadow:var(--shadow-md)}
  .nav-links.open{display:flex}
  .hero{padding:2.5rem 1rem 1.5rem}
  .tools-grid{grid-template-columns:1fr}
  .tool-wrapper{grid-template-columns:1fr}
  .tool-sidebar{order:2}
  .option-row{flex-direction:column}
  .trust-bar{gap:1rem}
}
