
.tools-wrap{max-width:var(--container);margin:0 auto}
.tools-hero{display:flex;align-items:center;gap:16px;margin:2px 0 18px;padding:20px 24px;border-radius:16px;background:linear-gradient(120deg,var(--primary-50),var(--card));border:1px solid var(--primary-100)}
.tools-hero .th-left{display:flex;align-items:center;gap:15px;min-width:0}
.tools-hero .th-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,var(--primary),var(--primary-dark));font-size:26px;box-shadow:0 8px 18px rgba(var(--primary-rgb),.25);flex:0 0 auto}
.tools-hero h1{font-size:21px;font-weight:700;color:var(--text);margin:0;line-height:1.3}
.tools-hero p{font-size:13px;color:var(--text-muted);margin:3px 0 0}
.tools-hero p b{color:var(--primary-dark)}
.tools-layout{display:grid;grid-template-columns:208px minmax(0,1fr);gap:22px;align-items:start}
.cat-side{position:sticky;top:14px;max-height:calc(100vh - 28px);overflow-y:auto;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:8px;scrollbar-width:thin}
.cat-side .si{display:flex;align-items:center;gap:9px;padding:9px 12px;border-radius:9px;font-size:13.5px;color:var(--text-secondary);text-decoration:none;white-space:nowrap;transition:.15s;margin-bottom:2px}
.cat-side .si .ic{width:20px;text-align:center;flex:0 0 auto}
.cat-side .si .tx{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.cat-side .si .nn{font-size:11px;color:var(--text-muted);flex:0 0 auto}
.cat-side .si:hover{background:var(--primary-50);color:var(--primary-dark)}
.cat-side .si.active{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;font-weight:600;box-shadow:0 4px 12px rgba(var(--primary-rgb),.25)}
.cat-side .si.active .nn{color:rgba(255,255,255,.85)}
.tg-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(min-width:640px){.tg-grid{grid-template-columns:repeat(3,1fr);gap:12px}}
@media(min-width:1024px){.tg-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:13px}}
.tool-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:13px 13px 11px;text-align:left;text-decoration:none;transition:.2s;height:100%;min-width:0}
.tool-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(var(--primary-rgb),.13);border-color:var(--primary-200)}
.tc-top{display:flex;align-items:center;gap:9px;margin-bottom:7px}
.tool-ico{width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;flex:0 0 auto}
.tool-name{font-size:13.5px;font-weight:600;color:var(--text);line-height:1.3;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tool-desc{font-size:11.5px;color:var(--text-muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:35px}
.tc-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:7px}
.tc-tag{font-size:10.5px;color:var(--primary-dark);background:var(--primary-50);border:1px solid var(--primary-100);border-radius:6px;padding:1px 7px;white-space:nowrap}
.tc-view{display:inline-flex;align-items:center;gap:3px;font-size:10.5px;color:var(--text-muted);margin-left:auto;white-space:nowrap}
.tc-view svg{opacity:.75;flex:0 0 auto}
.cat-section{background:transparent;margin-bottom:28px;scroll-margin-top:14px}
.cat-sec-head{display:flex;align-items:center;gap:9px;margin-bottom:13px}
.cat-sec-head .bar{width:3px;height:17px;background:var(--primary);border-radius:2px}
.cat-sec-head .ti{font-size:19px}
.cat-sec-head .tn{font-size:16px;font-weight:700;color:var(--text);margin:0;line-height:1.4}
.cat-sec-head .tc{font-size:12px;color:var(--text-muted)}
.cat-sec-head .more{margin-left:auto;font-size:13px;color:var(--primary-dark);text-decoration:none;display:inline-flex;align-items:center;gap:3px}
.empty-box{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:60px;text-align:center;color:var(--text-muted)}
.sec-title{font-size:15px;font-weight:700;color:var(--text);margin:4px 0 14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:1023px){
  .tools-layout{display:block}
  .cat-side{position:static;max-height:none;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px;margin-bottom:14px;border-radius:12px}
  .cat-side .si{margin:0;border:1px solid var(--border);background:var(--card);padding:6px 2px;flex-direction:column;justify-content:center;gap:1px;white-space:normal;line-height:1.15;text-align:center}
  .cat-side .si .ic{width:auto;flex:0 0 auto;font-size:15px}
  .cat-side .si .tx{flex:none;width:100%;text-align:center;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cat-side .si .nn{margin:0;font-size:9.5px;line-height:1}
}
@media(max-width:639px){
  .tools-hero{padding:15px 16px;gap:12px;margin-bottom:14px}
  .tools-hero .th-icon{width:44px;height:44px;font-size:22px;border-radius:12px}
  .tools-hero h1{font-size:18px}
  .tools-hero p{font-size:12px}
  .tool-card{padding:11px}.tc-top{gap:7px;margin-bottom:5px}
  .tool-ico{width:36px;height:36px;border-radius:10px;font-size:18px}
  .tool-name{font-size:12.5px}.tool-desc{min-height:31px;font-size:11px}
  .cat-section .tg-grid .tool-card:nth-child(n+5){display:none}
}
