:root {
  --nav:#193e37; --nav-hover:#285248; --nav-text:#f3f8f5; --nav-muted:#bed1c9;
  --canvas:#f4f6f3; --surface:#fff; --surface-soft:#edf3ee; --ink:#243c34; --muted:#596c62;
  --accent:#176552; --accent-hover:#104d3e; --line:#d9e2dc; --focus:#af6820; --brand:#e3edb3;
  --radius:14px; --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px;
  --font:"Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--canvas); color:var(--ink); font:14px/1.6 var(--font); }
button,input,select { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-decoration:none; }
button { cursor:pointer; }
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
::selection { color:var(--nav); background:var(--brand); }
input { caret-color:var(--accent); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link { position:fixed; left:16px; top:-80px; z-index:100; padding:12px 16px; background:var(--surface); color:var(--ink); border-radius:8px; }
.skip-link:focus { top:12px; }
.sidebar { position:fixed; inset:0 auto 0 0; width:224px; padding:30px 18px 24px; display:flex; flex-direction:column; background:var(--nav); color:var(--nav-text); overflow-y:auto; }
.brand { display:flex; align-items:center; gap:12px; padding:0 10px; }
.brand-symbol { width:36px; height:36px; flex-shrink:0; fill:none; stroke:var(--brand); stroke-width:1.7; stroke-linejoin:round; stroke-linecap:round; }
.brand strong { display:block; font-size:20px; font-weight:600; letter-spacing:.02em; }
.brand small { display:block; margin-top:3px; color:var(--nav-muted); font-size:12px; letter-spacing:.12em; }
.desktop-nav { margin-top:44px; }
.nav-shortcuts { padding-bottom:24px; border-bottom:1px solid var(--nav-hover); }
.nav-label { color:var(--nav-muted); margin:24px 12px 12px; font-size:12px; }
.nav-button { width:100%; min-height:46px; display:flex; align-items:center; gap:12px; padding:10px 12px; margin:3px 0; border:0; border-radius:8px; background:transparent; color:var(--nav-muted); text-align:left; transition:background .16s,color .16s; }
.nav-button:hover { background:var(--nav-hover); color:var(--nav-text); }
.nav-button[aria-pressed="true"] { color:var(--nav); background:var(--brand); font-weight:600; }
.nav-button svg { width:19px; height:19px; flex-shrink:0; }
.nav-count { margin-left:auto; font-size:12px; font-variant-numeric:tabular-nums; opacity:.85; }
.sidebar-footer { margin-top:auto; padding:44px 12px 0; color:var(--nav-muted); font-size:12px; }
.sidebar-rule { display:block; width:24px; height:1px; background:var(--nav-muted); }
.sidebar-footer p { margin:16px 0 5px; }
.sidebar-footer>span:last-child { font-size:12px; letter-spacing:.06em; }
.mobile-nav { display:none; }
.main-shell { margin-left:224px; min-height:100svh; display:flex; flex-direction:column; }
.topbar { min-height:72px; padding:0 40px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); background:var(--surface); font-size:12px; }
.breadcrumb { display:flex; gap:14px; color:var(--muted); }
.breadcrumb>span:last-child { color:var(--ink); font-weight:600; }
.site-purpose { color:var(--muted); }
main { width:100%; max-width:1380px; padding:38px 40px 48px; margin:0 auto; flex:1; }
.welcome { margin-bottom:34px; display:flex; justify-content:space-between; align-items:center; gap:28px; }
h1 { font-size:30px; font-weight:600; letter-spacing:-.02em; line-height:1.4; margin:0; }
.welcome p { margin:10px 0 0; color:var(--muted); font-size:13px; }
.mobile-break { display:none; }
.search-box { width:340px; max-width:100%; flex-shrink:0; min-height:48px; display:flex; align-items:center; gap:10px; padding:8px 14px; border:1px solid #aabbb0; border-radius:10px; background:var(--surface); }
.search-box:focus-within { border-color:var(--accent); box-shadow:0 0 0 2px var(--surface-soft); }
.search-box svg { width:20px; height:20px; flex-shrink:0; fill:none; stroke:var(--muted); stroke-width:1.7; }
.search-box input { min-width:0; width:100%; border:0; background:transparent; outline:none; color:var(--ink); font-size:13px; }
.search-box input::placeholder { color:var(--muted); opacity:1; }
.search-box input::-webkit-search-cancel-button { display:none; }
.search-box button { border:0; padding:4px 0; color:var(--accent); background:none; font-size:12px; white-space:nowrap; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.section-heading>div { display:flex; gap:10px; align-items:center; }
h2 { font-size:17px; font-weight:600; margin:0; }
.section-heading p { margin:0; color:var(--muted); font-size:12px; }
.result-count { color:var(--muted); font-size:12px; }
.tool-list { display:grid; gap:12px; }
.tool-card { display:flex; align-items:flex-start; padding:0 22px 0 0; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); transition:border-color .16s; }
.tool-card:hover { border-color:#8da899; }
.module-entry { display:flex; align-items:center; gap:22px; flex:1; min-width:0; padding:26px; border-radius:var(--radius); }
.tool-emblem { display:grid; place-items:center; width:64px; height:76px; border-radius:8px 16px 8px 8px; background:var(--surface-soft); color:var(--accent); flex-shrink:0; }
.tool-emblem svg { width:30px; height:30px; }
.tool-content { flex:1; min-width:0; }
.tool-category { font-size:12px; color:var(--accent); }
h3 { overflow-wrap:anywhere; margin:5px 0 0; font-size:21px; font-weight:600; line-height:1.5; }
.tool-content p { margin:8px 0 0; color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.tool-bottom { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:22px; font-size:12px; color:var(--muted); }
.enter-label { display:flex; align-items:center; gap:10px; color:var(--accent); font-weight:600; white-space:nowrap; }
.enter-label svg { width:18px; height:18px; }
.favorite-button { display:grid; place-items:center; width:40px; height:40px; margin-top:22px; background:none; border:1px solid var(--line); border-radius:8px; color:var(--muted); flex-shrink:0; }
.favorite-button svg { width:18px; height:18px; }
.favorite-button:hover { color:var(--accent); background:var(--surface-soft); }
.favorite-button[aria-pressed="true"] { color:var(--accent); border-color:var(--accent); }
.favorite-button[aria-pressed="true"] svg { fill:var(--surface-soft); }
.category-index { margin-top:34px; }
.category-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 32px; border-top:1px solid var(--line); }
.category-link { display:flex; gap:14px; align-items:center; text-align:left; min-height:92px; padding:18px 4px; border:0; border-bottom:1px solid var(--line); background:none; color:var(--ink); }
.category-link:hover { color:var(--accent); background:var(--surface-soft); }
.category-link svg { width:24px; height:24px; flex-shrink:0; color:var(--accent); }
.category-info { flex:1; min-width:0; }
.category-info strong { display:block; font-weight:500; font-size:14px; }
.category-info small { display:block; margin-top:4px; font-size:12px; color:var(--muted); }
.category-status { font-size:12px; color:var(--muted); white-space:nowrap; }
.empty-state { text-align:center; padding:52px 20px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.empty-state>svg { width:42px; height:42px; fill:none; stroke:var(--muted); stroke-width:1.5; }
.empty-state h3 { font-size:19px; margin-top:12px; }
.empty-state p { color:var(--muted); margin:10px auto 20px; max-width:36em; }
.empty-state button { min-height:40px; border:0; border-radius:8px; padding:8px 18px; background:var(--accent); color:var(--surface); }
.empty-state button:hover { background:var(--accent-hover); }
footer { display:flex; justify-content:space-between; gap:20px; padding:20px 40px; font-size:12px; color:var(--muted); border-top:1px solid var(--line); }
.toast { position:fixed; bottom:24px; left:calc(50% + 112px); max-width:calc(100% - 32px); transform:translateX(-50%); padding:10px 18px; border-radius:8px; color:var(--surface); background:var(--nav); font-size:13px; opacity:0; pointer-events:none; transition:opacity .16s; z-index:20; }
.toast.visible { opacity:1; }
@media(max-width:1200px) { .welcome { display:block; } .search-box { margin-top:22px; width:100%; } .category-grid { column-gap:22px; } .category-link { gap:10px; } .category-info small { max-width:17em; } main { padding:30px; } .topbar { padding:0 30px; } }
@media(max-width:950px) { .sidebar { width:204px; padding-inline:12px; } .brand { padding-inline:6px; gap:8px; } .brand strong { font-size:18px; } .main-shell { margin-left:204px; } main { padding:28px 24px; } .topbar { padding:0 24px; } .site-purpose { display:none; } .category-grid { grid-template-columns:1fr; } .category-link { min-height:78px; } .category-info small { max-width:none; } .module-entry { gap:16px; padding:20px; } .tool-card { padding-right:16px; } .tool-emblem { width:46px; height:58px; } h3 { font-size:19px; } .toast { left:calc(50% + 102px); } }
@media(max-width:700px) {
 .sidebar { position:static; width:100%; padding:20px; overflow:visible; } .brand { padding:0; } .brand strong { font-size:20px; } .brand-symbol { width:34px; height:34px; } .brand small { margin-top:0; }
 .desktop-nav,.sidebar-footer { display:none; } .mobile-nav { margin-top:18px; display:flex; align-items:center; gap:16px; color:var(--nav-muted); font-size:13px; } .mobile-nav select { flex:1; min-width:0; min-height:42px; padding:8px 10px; border:1px solid #74998a; border-radius:8px; background:var(--nav); color:var(--nav-text); }
 .main-shell { margin-left:0; min-height:calc(100svh - 150px); } .topbar { min-height:48px; padding:0 20px; } main { padding:26px 20px 36px; } h1 { font-size:26px; } .welcome { margin-bottom:28px; } .welcome p { font-size:13px; line-height:1.8; } .search-box { margin-top:18px; }
 .section-heading { align-items:flex-start; } .results>.section-heading { flex-wrap:wrap; gap:5px; } .tool-card { padding-right:12px; } .module-entry { padding:20px 12px 20px 16px; align-items:flex-start; gap:12px; } .tool-emblem { display:none; } h3 { font-size:19px; } .tool-bottom { align-items:flex-start; flex-direction:column; margin-top:18px; gap:10px; } .favorite-button { margin-top:18px; width:38px; height:38px; }
 .category-index { margin-top:30px; } .category-index .section-heading { align-items:center; } .category-index .section-heading p { font-size:12px; } .category-link { min-height:86px; } footer { padding:18px 20px; flex-wrap:wrap; gap:4px; } .toast { left:50%; } .empty-state { padding:36px 18px; }
}
@media(max-width:360px) { h1 { font-size:22px; } .category-info small { max-width:14em; } .category-index .section-heading { display:block; } .category-index .section-heading p { margin-top:4px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; animation:none!important; } }
