
:root{
  --bg:#ffffff; --surface:#f7fafc; --card:#ffffff; --text:#152033; --muted:#6d7786;
  --line:#e1e6ed; --primary:#168fe8; --primary2:#1b70e7; --soft:#eef8ff;
  --shadow:0 12px 35px rgba(21,32,51,.07); --radius:24px;
}
html[data-theme="dark"]{
  --bg:#0e1420; --surface:#121a27; --card:#172131; --text:#f3f6fb; --muted:#aeb8c7;
  --line:#293548; --soft:#142a3c; --shadow:0 16px 40px rgba(0,0,0,.28);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:auto}
.site-header{height:76px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 94%,transparent);position:sticky;top:0;z-index:50;backdrop-filter:blur(14px)}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:24px;letter-spacing:-.5px}
.logo{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:18px;background:linear-gradient(135deg,#18a8bd,#2377e8);box-shadow:0 8px 18px rgba(35,119,232,.20)}
.header-actions{display:flex;gap:9px}
.icon-btn{width:52px;height:52px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);display:grid;place-items:center;cursor:pointer;transition:.2s}
.icon-btn:hover{transform:translateY(-1px);border-color:#9eb6ce}
.icon-btn svg{width:22px;height:22px}
.mobile-menu{position:absolute;right:16px;top:84px;width:min(330px,calc(100% - 32px));background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:12px;display:none}
.mobile-menu.open{display:block;animation:menuIn .18s ease}
.mobile-menu a{display:block;padding:12px 14px;border-radius:12px;color:var(--muted);font-weight:650}
.mobile-menu a:hover{background:var(--surface);color:var(--text)}
@keyframes menuIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.hero{background:linear-gradient(180deg,#eefaff 0%,var(--bg) 72%);padding:80px 0 62px;text-align:center}
html[data-theme="dark"] .hero{background:linear-gradient(180deg,#112538 0%,var(--bg) 72%)}
.badge{display:inline-flex;padding:9px 16px;border-radius:999px;background:var(--soft);color:#236477;font-weight:800}
html[data-theme="dark"] .badge{color:#8edcf0}
.hero h1{font-size:clamp(42px,7vw,72px);line-height:1.02;letter-spacing:-3px;margin:30px auto 18px;max-width:820px}
.hero h1 span{background:linear-gradient(90deg,#12a8b8,#2576e8);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{font-size:20px;color:var(--muted);max-width:760px;margin:0 auto 30px}
.search-box{max-width:760px;margin:auto;display:flex;gap:10px}
.search-input{flex:1;height:58px;border:1px solid var(--line);border-radius:18px;padding:0 18px;background:var(--card);color:var(--text);outline:none}
.search-input:focus{border-color:#2988dc;box-shadow:0 0 0 4px rgba(41,136,220,.12)}
.btn{height:58px;border:0;border-radius:18px;padding:0 25px;font-weight:800;cursor:pointer;color:#fff;background:linear-gradient(100deg,#12a8b8,#2476e9);box-shadow:0 10px 25px rgba(36,118,233,.18)}
.pills{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:24px}
.pill{background:var(--soft);padding:10px 17px;border-radius:999px;font-weight:750;color:#286477}
html[data-theme="dark"] .pill{color:#9de4ef}
.section{padding:65px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}
.section h2{font-size:38px;letter-spacing:-1.5px;margin:0}
.section-lead{color:var(--muted);font-size:18px;margin:6px 0 0}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.category-card,.tool-card{border:1px solid var(--line);background:var(--card);border-radius:26px;padding:26px;transition:.2s;box-shadow:0 5px 18px rgba(21,32,51,.035)}
.category-card:hover,.tool-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#c8d6e5}
.category-card{min-height:240px}
.card-icon{width:62px;height:62px;border-radius:17px;background:linear-gradient(135deg,#168fe8,#2377e8);color:#fff;display:grid;place-items:center;font-weight:900;font-size:17px;margin-bottom:22px}
.card-title{font-size:26px;font-weight:850;letter-spacing:-.6px;margin:0 0 8px}
.card-desc{color:var(--muted);margin:0 0 20px;font-size:16px}
.card-foot{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-weight:750}
.tool-card{display:flex;align-items:center;gap:20px;min-height:132px}
.tool-card .card-icon{flex:0 0 72px;width:72px;height:72px;margin:0;background:#eef7ff;color:#2878c4}
html[data-theme="dark"] .tool-card .card-icon{background:#17344d;color:#8dc8f5}
.tool-main{min-width:0;flex:1}
.tool-title{font-size:21px;font-weight:850;margin:0 0 5px;letter-spacing:-.3px}
.tool-desc{color:var(--muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.arrow{font-size:23px;color:var(--muted)}
.page-hero{background:var(--surface);padding:65px 0}
.page-hero h1{font-size:56px;letter-spacing:-2px;margin:0 0 10px}
.page-hero p{font-size:20px;color:var(--muted);margin:0}
.page-content{padding:55px 0}
.list-search{height:58px;width:100%;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);padding:0 18px;margin-bottom:22px;outline:none}
.site-footer{margin-top:40px;background:#f3f8fc;border-top:1px solid var(--line)}
html[data-theme="dark"] .site-footer{background:#111a27}
.footer-main{padding:50px 0 38px;display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:40px}
.footer-brand p{color:var(--muted);max-width:330px}
.footer-col h3{margin:0 0 13px;font-size:17px}
.footer-col a{display:block;color:var(--muted);padding:6px 0}
.footer-col a:hover{color:var(--primary)}
.footer-bottom{border-top:1px solid var(--line);padding:18px 0;color:var(--muted);text-align:center}
.search-overlay{position:fixed;inset:0;background:rgba(17,25,38,.72);backdrop-filter:blur(7px);z-index:100;display:none;padding:10vh 16px}
.search-overlay.open{display:block;animation:fadeIn .16s ease}
.search-panel{width:min(700px,100%);margin:auto;background:var(--card);border:1px solid var(--line);border-radius:24px;box-shadow:0 25px 70px rgba(0,0,0,.25);overflow:hidden}
.search-top{display:flex;gap:8px;padding:14px;border-bottom:1px solid var(--line)}
.search-top input{height:54px;flex:1;border:1px solid #d9e0e8;border-radius:16px;padding:0 16px;outline:none;background:var(--bg);color:var(--text)}
.close-search{width:54px;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:16px;cursor:pointer}
.popular{padding:13px 18px 8px;font-size:13px;letter-spacing:1px;font-weight:850;color:var(--muted)}
.search-results{max-height:55vh;overflow:auto;padding:0 8px 10px}
.search-item{display:flex;align-items:center;gap:14px;padding:13px 12px;border-radius:13px}
.search-item:hover{background:var(--soft)}
.search-item .mini{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;background:#eaf5ff;color:#2677bd;font-weight:850}
.search-item strong{display:block}
.search-item small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-item .sr-arrow{margin-left:auto;color:var(--muted)}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.theme-flash{position:fixed;inset:0;z-index:90;pointer-events:none;background:radial-gradient(circle at var(--x,50%) var(--y,20%),rgba(35,119,232,.18),transparent 32%);animation:themeFlash .5s ease forwards}
@keyframes themeFlash{from{opacity:1}to{opacity:0}}
.form-card{max-width:520px;margin:auto;border:1px solid var(--line);background:var(--card);border-radius:24px;padding:28px;box-shadow:var(--shadow)}
.form-card label{display:block;font-weight:750;margin:14px 0 7px}
.form-card input,.form-card textarea{width:100%;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--text);padding:13px;outline:none}
.form-card textarea{min-height:140px;resize:vertical}
.form-card .btn{width:100%;margin-top:18px}
.notice{padding:15px 18px;background:var(--soft);border:1px solid var(--line);border-radius:16px;color:var(--muted)}
@media(max-width:800px){
 .site-header{height:70px}.logo{width:42px;height:42px;border-radius:13px}.brand{font-size:20px}
 .icon-btn{width:48px;height:48px;border-radius:15px}
 .hero{padding:55px 0 45px}.hero h1{letter-spacing:-2px}.hero p{font-size:18px}
 .search-box{display:block}.search-input{width:100%;margin-bottom:10px}.btn{width:100%}
 .section{padding:48px 0}.section h2{font-size:31px}
 .grid-2{grid-template-columns:1fr}
 .category-card{min-height:220px}
 .tool-card{min-height:120px;padding:20px}
 .tool-card .card-icon{width:62px;height:62px;flex-basis:62px}
 .page-hero{padding:48px 0}.page-hero h1{font-size:42px}
 .footer-main{grid-template-columns:1fr 1fr;gap:28px}
 .footer-brand{grid-column:1/-1}
}
@media(max-width:480px){
 .container{width:min(100% - 24px,1180px)}
 .header-actions{gap:6px}.icon-btn{width:46px;height:46px}
 .brand{gap:8px}
 .hero h1{font-size:43px}
 .footer-main{grid-template-columns:1fr}
 .footer-brand{grid-column:auto}
 .tool-card{gap:14px}.tool-title{font-size:18px}
 .tool-card .card-icon{width:58px;height:58px;flex-basis:58px;font-size:14px}
}
