*{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#f7f8fa;--card:#fff;--ink:#1f2430;--sub:#6b7280;--line:#e6e8ee;--brand:#4f46e5;--brand2:#4338ca;--soft:#eef2ff;--ok:#059669}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
.wrap{max-width:960px;margin:0 auto;padding:0 20px}
header{background:var(--card);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;color:var(--brand)}
.logo svg{width:26px;height:26px;stroke:var(--brand);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nav .links{display:flex;gap:22px;font-size:14px;color:var(--sub)}
.nav .links a:hover{color:var(--brand)}
.hero{background:linear-gradient(135deg,#eef2ff 0%,#f7f8fa 100%);padding:56px 0 40px;border-bottom:1px solid var(--line)}
.hero h1{font-size:34px;line-height:1.3;letter-spacing:-.5px}
.hero h1 em{font-style:normal;color:var(--brand)}
.hero p{color:var(--sub);font-size:16px;margin-top:14px;max-width:620px}
.hero .badges{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.badge{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:5px 13px;font-size:12px;color:var(--sub)}
.sec{padding:40px 0}
.sec h2{font-size:20px;margin-bottom:6px}
.sec .hint{color:var(--sub);font-size:13px;margin-bottom:22px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.tool{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px;transition:.15s;display:block}
.tool:hover{border-color:var(--brand);transform:translateY(-2px);box-shadow:0 6px 20px rgba(79,70,229,.08)}
.tool .ic{width:34px;height:34px;border-radius:9px;background:var(--soft);display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.tool .ic svg{width:19px;height:19px;stroke:var(--brand);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tool h3{font-size:15px;margin-bottom:5px}
.tool p{font-size:12.5px;color:var(--sub);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.crumb{font-size:12px;color:var(--sub);margin:22px 0 16px}
.crumb a:hover{color:var(--brand)}
.crumb span{margin:0 8px;color:#c3c8d0}
.page-head{display:flex;align-items:center;gap:14px;margin-bottom:8px}
.page-head .ic{width:44px;height:44px;border-radius:11px;background:var(--soft);display:flex;align-items:center;justify-content:center;flex:none}
.page-head .ic svg{width:23px;height:23px;stroke:var(--brand);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.page-head h1{font-size:26px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:24px;margin-top:20px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:620px){.grid2{grid-template-columns:1fr}}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;color:var(--sub);margin-bottom:7px}
input[type=text],input[type=number],input:not([type]),textarea,select{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:14px;font-family:inherit;background:#fff;color:var(--ink);outline:none}
textarea{resize:vertical;line-height:1.6;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
input:focus,textarea:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,70,229,.08)}
.actions{display:flex;gap:9px;flex-wrap:wrap;margin:6px 0 16px}
button,.btn{border:1px solid var(--brand);background:var(--brand);color:#fff;border-radius:8px;padding:9px 16px;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit;transition:.15s;display:inline-block}
button:hover,.btn:hover{background:var(--brand2)}
button.ghost,.btn.ghost{background:#fff;color:var(--brand)}
button.ghost:hover,.btn.ghost:hover{background:var(--soft)}
.result{background:#f8f9fc;border:1px solid var(--line);border-radius:9px;padding:14px;min-height:52px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;white-space:pre-wrap;word-break:break-all;cursor:pointer}
.muted{color:var(--sub)}
.checks{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:14px;font-size:13px;color:var(--sub)}
.checks label{display:flex;align-items:center;gap:6px;cursor:pointer}
.chipbox{display:flex;gap:8px;flex-wrap:wrap}
.chip{background:var(--soft);color:var(--brand);border-radius:16px;padding:5px 13px;font-size:12px;cursor:pointer;user-select:none}
.chip:hover{background:#dde3ff}
.cdot{width:28px;height:28px;border-radius:7px;cursor:pointer;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);display:inline-block}
.swatch{height:76px;border-radius:9px;margin-bottom:14px;border:1px solid var(--line)}
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:10px;margin-top:8px}
.stat{background:#f8f9fc;border:1px solid var(--line);border-radius:9px;padding:12px;text-align:center}
.stat b{display:block;font-size:20px;color:var(--brand)}
.stat span{font-size:11px;color:var(--sub)}
.preview{max-width:100%;max-height:340px;margin-top:14px;border-radius:8px;display:none}
.preview[src]{display:block}
.faq{margin-top:14px}
.faq details{border-bottom:1px solid var(--line);padding:13px 0}
.faq summary{cursor:pointer;font-size:14px;font-weight:500;list-style:none;display:flex;justify-content:space-between}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:'+';color:var(--brand);font-size:18px;line-height:1}
.faq details[open] summary:after{content:'−'}
.faq p{font-size:13px;color:var(--sub);margin-top:9px}
.related{margin-top:34px}
.related .grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.related .tool{padding:14px}
.adslot{margin:22px 0;text-align:center}
.adslot .ph{border:1px dashed #cbd0db;border-radius:10px;padding:18px;color:#a3a9b6;font-size:12px;background:#fbfcfe}
footer{border-top:1px solid var(--line);background:var(--card);margin-top:50px;padding:28px 0;font-size:12.5px;color:var(--sub)}
footer .frow{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
footer a:hover{color:var(--brand)}
.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:9px 18px;border-radius:20px;font-size:13px;z-index:99}