:root{
  --ink:#172033;
  --muted:#6b7280;
  --soft:#f7f8fb;
  --line:#e8eaf0;
  --primary:#635bdb;
  --primary-dark:#5048c7;
  --white:#fff;
  --shadow:0 12px 35px rgba(26,32,56,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,select,input{font:inherit}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.site-header{
  height:68px;
  border-bottom:1px solid rgba(232,234,240,.85);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(16px);
  position:sticky;
  top:0;
  z-index:10;
}
.header-inner,.footer-inner{
  width:min(1180px,calc(100% - 48px));
  height:100%;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  text-decoration:none;
  font-size:19px;
  font-weight:800;
  letter-spacing:-.5px;
}
.brand-mark{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(145deg,#756ded,#544bd0);
  box-shadow:0 6px 14px rgba(99,91,219,.24);
}
.brand-mark svg{width:19px}
.legal-warning{
  flex:1;
  margin:0 22px;
  color:#d62828;
  font-size:13px;
  font-weight:700;
  line-height:1.45;
  text-align:center;
}
.privacy-badge{
  display:flex;
  align-items:center;
  gap:8px;
  color:#4f675a;
  font-size:12px;
  font-weight:600;
  background:#f1f7f3;
  border:1px solid #e2eee6;
  border-radius:999px;
  padding:8px 12px;
}
.privacy-badge i{width:7px;height:7px;border-radius:50%;background:#45a46a;box-shadow:0 0 0 4px rgba(69,164,106,.1)}
main{width:min(1180px,calc(100% - 48px));margin:auto}
.hero{
  padding:82px 0 72px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  border-bottom:1px solid var(--line);
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 11px;
  color:var(--primary);
  background:#f4f2ff;
  border:1px solid #e8e5ff;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.4px;
}
.hero-badge svg{width:15px;height:15px}
.hero h1{
  margin:22px 0 18px;
  font-size:clamp(43px,5.4vw,68px);
  line-height:1;
  letter-spacing:-3.6px;
  font-weight:800;
}
.hero h1 span{
  background:linear-gradient(100deg,#5951cc,#8278ef);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero>p{
  margin:0;
  max-width:620px;
  color:var(--muted);
  font-size:17px;
  line-height:1.75;
}
.hero-meta{display:flex;gap:24px;margin-top:26px;color:#626979;font-size:13px}
.hero-meta span{display:flex;align-items:center;gap:6px}
.hero-meta svg{width:16px;color:#55a672;stroke-width:2.4}
.tools-section{padding:66px 0 26px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:26px;gap:24px}
.section-kicker{display:block;color:var(--primary);font-size:12px;font-weight:800;letter-spacing:1.6px;margin-bottom:8px}
.section-heading h2{margin:0;font-size:28px;letter-spacing:-1px}
.tabs{display:flex;gap:5px;padding:4px;background:#f5f6f8;border-radius:12px}
.tabs button{
  border:0;
  background:transparent;
  color:#737a87;
  padding:9px 14px;
  border-radius:9px;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
  transition:.2s ease;
}
.tabs button:hover{color:var(--ink)}
.tabs button.active{color:var(--ink);background:#fff;box-shadow:0 2px 8px rgba(26,32,56,.08)}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}
.tool{
  grid-column:span 4;
  min-width:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  box-shadow:0 4px 16px rgba(26,32,56,.035);
  display:flex;
  flex-direction:column;
  gap:22px;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.tool:hover{transform:translateY(-3px);border-color:#dcdfea;box-shadow:var(--shadow)}
.tool-convert{grid-column:span 7}
.tool-crop{grid-column:span 5}
.tool-medium{grid-column:span 6}
.tool.hidden{display:none}
.tool-head{display:flex;align-items:flex-start;gap:15px}
.icon{
  width:46px;
  height:46px;
  border-radius:13px;
  flex:0 0 46px;
  display:grid;
  place-items:center;
}
.icon svg{width:23px;height:23px}
.purple{color:#655ddb;background:#f0efff}.rose{color:#d96472;background:#fff0f2}.green{color:#3d9a6a;background:#eaf8f0}.blue{color:#4b83d1;background:#edf5ff}.amber{color:#c2852e;background:#fff6e7}.teal{color:#278f91;background:#eaf8f7}
.tool-copy{min-width:0}.tool-tag{display:block;color:#9197a3;font-size:11px;font-weight:700;letter-spacing:.8px;margin:1px 0 5px}
.tool h3{margin:0;font-size:19px;letter-spacing:-.4px;line-height:1.4}
.tool p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.65}
form{display:flex;flex-direction:column;gap:13px;margin-top:auto}
.drop{
  min-height:132px;
  padding:18px;
  border:1.5px dashed #d7dae3;
  border-radius:14px;
  background:#fafbfc;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition:.2s ease;
}
.drop.compact{min-height:114px}
.drop:hover,.drop.drag{background:#f7f6ff;border-color:#8b83e8}
.drop.has-file{border-style:solid;border-color:#70ad86;background:#f1f8f3}
.drop input{position:absolute;opacity:0;pointer-events:none}
.upload-icon{
  width:31px;height:31px;border:1px solid #e3e5eb;border-radius:9px;background:#fff;color:#7b8290;
  display:grid;place-items:center;margin-bottom:8px;box-shadow:0 2px 6px rgba(26,32,56,.04)
}
.upload-icon svg{width:17px}
.drop b{font-size:13px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drop small{font-size:11px;color:#969ca7;margin-top:5px}
.row{display:flex;align-items:flex-end;gap:10px}
.row>*{flex:1;min-width:0}
.select-wrap{display:flex;flex-direction:column;gap:6px}
.select-wrap>span,.crop-grid label>span{font-size:11px;color:#848b98;font-weight:600}
select,input[type=number],input[type=text]{
  width:100%;
  height:45px;
  color:var(--ink);
  background:#fff;
  border:1px solid #dfe2e8;
  border-radius:11px;
  padding:0 12px;
  outline:none;
  transition:border .2s,box-shadow .2s;
}
select:focus,input[type=number]:focus,input[type=text]:focus{border-color:#8a82e8;box-shadow:0 0 0 3px rgba(99,91,219,.1)}
button[type=submit]{
  height:45px;
  border:0;
  border-radius:11px;
  padding:0 17px;
  color:#fff;
  background:var(--primary);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(99,91,219,.17);
  transition:.2s ease;
}
button[type=submit]:hover{background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 8px 18px rgba(99,91,219,.24)}
button[type=submit] span{margin-left:4px;font-size:16px}
button:disabled{opacity:.55;cursor:wait;transform:none!important}
.crop-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.crop-grid label{display:flex;flex-direction:column;gap:6px}
.crop-grid label div{position:relative}
.crop-grid input{padding-right:30px}
.crop-grid i{position:absolute;right:11px;top:50%;transform:translateY(-50%);font-size:11px;color:#9ca2ad;font-style:normal}
.simple-row{align-items:center}
.watermark-options{align-items:center}
.opacity-field{display:flex;align-items:center;gap:8px;color:#737b89;font-size:12px}
.opacity-field input{width:78px;flex:none}
.info-card{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin:18px 0 70px;
  padding:20px 22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fafbfc;
}
.info-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:#fff;color:#7b8290;border:1px solid #e5e7ec}
.info-icon svg{width:18px}
.info-card h3{margin:1px 0 5px;font-size:14px}.info-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
footer{height:92px;border-top:1px solid var(--line);background:#fff}.footer-inner{height:100%}.footer-brand{font-size:15px}.footer-brand .brand-mark{width:29px;height:29px;border-radius:8px}.footer-brand .brand-mark svg{width:16px}.footer-inner p{color:#9aa0aa;font-size:11px}
#toast{
  position:fixed;left:50%;bottom:26px;z-index:30;max-width:calc(100% - 36px);
  transform:translateX(-50%) translateY(80px);opacity:0;
  padding:12px 17px;border-radius:11px;color:#fff;background:#202634;
  font-size:13px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.18);transition:.25s;
}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
#toast.error{background:#b44550}
#working{display:none;position:fixed;inset:0;z-index:20;background:rgba(18,23,36,.28);backdrop-filter:blur(5px);align-items:center;justify-content:center}
#working.show{display:flex}
.working-card{width:260px;padding:28px 24px;border-radius:18px;background:#fff;box-shadow:0 25px 70px rgba(18,23,36,.2);display:flex;flex-direction:column;align-items:center;gap:9px}
.working-card b{font-size:14px}.working-card span{font-size:11px;color:#9298a3}
.progress-track{width:100%;height:5px;margin:7px 0 1px;border-radius:99px;background:#ececf4;overflow:hidden}
.progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7067e5,#958df4);transition:width .2s ease}
.progress-track.processing i{width:45%;animation:processing 1.35s ease-in-out infinite}
.spinner{width:35px;height:35px;margin-bottom:5px;border:3px solid #ececf5;border-top-color:var(--primary);border-radius:50%;animation:spin .75s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes processing{0%{transform:translateX(-120%)}50%{transform:translateX(120%)}100%{transform:translateX(260%)}}
@media(max-width:900px){
  .tool-convert,.tool-crop,.tool-medium{grid-column:span 6}.tool-small{grid-column:span 6}
  .section-heading{align-items:flex-start;flex-direction:column}
}
@media(max-width:650px){
  .header-inner,.footer-inner,main{width:min(100% - 32px,1180px)}
  .site-header{height:auto;min-height:62px}.header-inner{padding:10px 0;flex-wrap:wrap;gap:8px}.legal-warning{order:3;flex-basis:100%;margin:0;text-align:left;font-size:11px}.privacy-badge{padding:7px 9px}.privacy-badge i{display:none}
  .hero{padding:55px 0 48px}.hero h1{font-size:41px;letter-spacing:-2.4px}.hero>p{font-size:14px}
  .hero-meta{gap:10px 16px;flex-wrap:wrap;justify-content:center;font-size:11px}
  .tools-section{padding-top:45px}.section-heading h2{font-size:24px}.tabs{width:100%;overflow-x:auto}.tabs button{flex:1}
  .tool,.tool-convert,.tool-crop,.tool-small,.tool-medium{grid-column:span 12;padding:20px}
  .row{flex-direction:column;align-items:stretch}.simple-row{flex-direction:row}
  .info-card{margin-bottom:48px}.footer-inner{flex-direction:column;justify-content:center;gap:8px}.footer-inner p{margin:0}
}
@media(max-width:390px){
  .privacy-badge{font-size:10px}.brand{font-size:17px}.hero h1{font-size:36px}
  .simple-row{flex-direction:column}.crop-grid{grid-template-columns:1fr}
}
