:root { --bg:#f5f6f8; --surface:#fff; --ink:#18201f; --muted:#7a8583; --line:#e8ebea; --coral:#ff7255; --blue:#536ee8; font-family:"Noto Sans SC","PingFang SC",system-ui,sans-serif; color-scheme:light; }
* { box-sizing:border-box; }
html { background:#e8ebef; scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:#e8ebef; }
button,input { font:inherit; }
a { color:inherit; text-decoration:none; -webkit-tap-highlight-color:transparent; }
.svg-sprite { position:absolute; width:0; height:0; overflow:hidden; }
svg { width:1.25em; height:1.25em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.app-shell { width:100%; max-width:480px; min-height:100vh; margin:0 auto; padding-bottom:92px; background:var(--bg); box-shadow:0 0 60px rgba(37,46,44,.1); }
.site-header { height:72px; padding:0 18px; display:flex; align-items:center; justify-content:space-between; background:rgba(245,246,248,.92); border-bottom:1px solid rgba(232,235,234,.75); backdrop-filter:blur(16px); }
.brand { display:flex; align-items:center; gap:10px; }
.brand-mark { width:34px; height:34px; display:grid; grid-template-columns:1fr 1fr; gap:3px; transform:rotate(-4deg); }
.brand-mark span { border-radius:4px; background:var(--ink); }
.brand-mark span:nth-child(2) { background:var(--coral); border-radius:50%; }
.brand-mark span:nth-child(3) { background:var(--blue); border-radius:50%; }
.brand-copy { display:grid; gap:1px; }
.brand-copy strong { font-size:16px; letter-spacing:.02em; }
.brand-copy small { color:var(--muted); font-size:9px; }
.icon-button { width:38px; height:38px; display:grid; place-items:center; border:0; border-radius:12px; color:var(--ink); background:var(--surface); box-shadow:0 3px 12px rgba(29,38,36,.06); }
.header-actions { display:flex; align-items:center; gap:8px; }
main { padding:0 16px; }
.welcome { padding:28px 2px 20px; display:flex; justify-content:space-between; align-items:end; gap:12px; }
.welcome p { margin:0 0 4px; color:var(--muted); font-size:12px; }
.welcome h1 { margin:0; font-size:25px; line-height:1.2; letter-spacing:-.04em; }
.secure-pill { flex:0 0 auto; display:flex; align-items:center; gap:5px; padding:6px 9px; border-radius:999px; background:#e5f5ed; color:#287654; font-size:10px; }
.secure-pill span { width:6px; height:6px; border-radius:50%; background:#35a875; }
.quick-section,.tool-section { padding-top:26px; }
.section-title { height:30px; margin:0 2px 12px; display:flex; align-items:center; justify-content:space-between; }
.section-title h2 { margin:0; font-size:17px; letter-spacing:-.02em; }
.section-title button,.section-title span { border:0; background:transparent; color:var(--muted); font-size:11px; }
.quick-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.quick-card { min-height:112px; position:relative; padding:14px; display:flex; flex-direction:column; align-items:flex-start; overflow:hidden; border-radius:18px; color:white; }
.quick-card::after { content:""; position:absolute; width:100px; height:100px; right:-48px; bottom:-55px; border:16px solid rgba(255,255,255,.09); border-radius:50%; }
.quick-coral { background:linear-gradient(145deg,#ff846a,#f26043); }
.quick-blue { background:linear-gradient(145deg,#6680ef,#435fd4); }
.quick-icon { width:34px; height:34px; display:grid; place-items:center; margin-bottom:12px; border-radius:11px; background:rgba(255,255,255,.2); }
.quick-icon svg { width:19px; height:19px; }
.quick-card strong { display:block; font-size:14px; }
.quick-card small { display:block; margin-top:2px; color:rgba(255,255,255,.72); font-size:9px; }
.quick-arrow { position:absolute; top:17px; right:13px; width:16px; height:16px; opacity:.8; }
.filters { display:flex; gap:8px; overflow-x:auto; margin:0 -16px 14px; padding:0 16px 2px; scrollbar-width:none; }
.filters::-webkit-scrollbar { display:none; }
.filters button { flex:0 0 auto; min-width:58px; padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--muted); font-size:11px; }
.filters button.is-active { background:var(--ink); color:white; border-color:var(--ink); }
.tool-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.tool-card { min-height:145px; position:relative; padding:15px; background:var(--surface); border:1px solid var(--line); border-radius:17px; box-shadow:0 5px 18px rgba(38,47,45,.035); }
.favorite-button { position:absolute; top:13px; right:13px; z-index:2; width:34px; height:34px; padding:0; border:0; border-radius:50%; background:var(--soft); color:var(--muted); font-size:22px; line-height:34px; }
.favorite-button.is-active { color:#ef5b5b; background:#fff0f0; }
.tool-card[hidden] { display:none; }
.card-icon { width:39px; height:39px; display:grid; place-items:center; border-radius:12px; margin-bottom:12px; }
.card-icon svg { width:20px; height:20px; }
.card-icon.coral { background:#ffe4de; color:#df5c40; }.card-icon.blue { background:#e1e7ff; color:#4562dc; }.card-icon.ink { background:#e1e8e7; color:#29413d; }.card-icon.lime { background:#e8f0d3; color:#5d7931; }.card-icon.amber { background:#ffedcd; color:#a9680a; }.card-icon.lilac { background:#eee4fb; color:#74549b; }.card-icon.rose { background:#f8e1ed; color:#aa507b; }.card-icon.mint { background:#dbf0ea; color:#2e7d65; }.card-icon.sky { background:#dfeff8; color:#377998; }
.tool-card h3 { margin:0 0 3px; padding-right:18px; font-size:13px; line-height:1.35; }
.tool-card p { margin:0; color:var(--muted); font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tool-card>a { position:absolute; right:13px; bottom:13px; width:27px; height:27px; display:grid; place-items:center; border-radius:50%; background:var(--bg); color:var(--ink); }
.tool-card>a svg { width:13px; height:13px; }
.empty-state { padding:54px 20px; text-align:center; border:1px dashed #d4d9d7; border-radius:17px; }
.empty-state svg { width:30px; height:30px; color:var(--muted); }.empty-state h3 { margin:10px 0 4px; font-size:14px; }.empty-state p { margin:0; color:var(--muted); font-size:11px; }
.bottom-nav { position:fixed; z-index:20; left:50%; bottom:0; width:min(480px,100%); height:76px; padding:9px 22px max(9px,env(safe-area-inset-bottom)); transform:translateX(-50%); display:grid; grid-template-columns:repeat(3,1fr); background:rgba(255,255,255,.94); border-top:1px solid var(--line); backdrop-filter:blur(18px); }
.bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:#98a09e; font-size:9px; }.bottom-nav a svg { width:20px; height:20px; }.bottom-nav a strong { font-weight:500; }.bottom-nav a.is-active { color:var(--coral); }
.nav-grid { width:20px; height:20px; display:grid; grid-template-columns:1fr 1fr; gap:3px; }.nav-grid i { border-radius:2px; background:currentColor; }
body.dark { --bg:#161e1d; --surface:#222c2a; --ink:#f5f1e9; --muted:#a7b0ae; --line:#34413e; background:#101615; color-scheme:dark; }
body.dark .site-header { background:rgba(22,30,29,.92); } body.dark .bottom-nav { background:rgba(34,44,42,.95); } body.dark .filters button.is-active { background:#f5f1e9; color:#18201f; }
@media (min-width:481px) { body { padding:20px 0; } .app-shell { min-height:calc(100vh - 40px); border-radius:28px; overflow:hidden; } .bottom-nav { bottom:20px; border-radius:0 0 28px 28px; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; } }
